/* R113 — Header hierarchy refresh (TEST)
   Desktop/iPad: Brand left -> Clock center -> Session right.
   Mobile <=767px keeps existing compact stacked behavior. */

@media (min-width:768px){
  .app-header .app-header-inner{
    display:grid!important;
    grid-template-columns:minmax(300px,1fr) auto minmax(230px,1fr)!important;
    align-items:center!important;
    gap:18px!important;
    padding-top:14px!important;
    padding-bottom:14px!important;
  }

  .app-header .app-header-brand{
    justify-self:start;
    min-width:0;
  }

  .app-header .app-header-brand > div{
    min-width:0;
  }

  .app-header .app-header-brand h1{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }

  .app-header .app-header-meta{
    justify-self:center;
    align-items:center;
    width:auto;
    min-width:0;
  }

  .app-header .app-header-clock{
    gap:9px!important;
    min-height:48px;
    border-color:rgba(255,255,255,.18)!important;
    border-radius:14px!important;
    padding:7px 11px!important;
    background:rgba(255,255,255,.075)!important;
    box-shadow:none!important;
  }

  .app-header .app-header-clock:hover{
    background:rgba(255,255,255,.10)!important;
  }

  .app-header .app-header-clock > div:first-child{
    padding:6px!important;
    border-radius:10px!important;
    background:rgba(255,255,255,.15)!important;
  }

  .app-header .app-header-clock > div:first-child .ui-icon{
    width:17px!important;
    height:17px!important;
  }

  .app-header #headerDateText{
    font-size:10px!important;
    font-weight:650!important;
    opacity:.86!important;
  }

  .app-header #headerTimeText{
    font-size:17px!important;
    font-weight:850!important;
    letter-spacing:.035em;
  }

  .app-header .app-header-session{
    justify-self:end;
    min-width:0;
    max-width:100%;
    border-radius:13px!important;
    padding:6px 7px 6px 10px!important;
    background:rgba(255,255,255,.09)!important;
    box-shadow:none!important;
  }

  .app-header .app-header-session #staffSessionStatus{
    max-width:180px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    color:rgba(255,255,255,.96)!important;
    font-size:11px!important;
    font-weight:800!important;
  }

  .app-header .app-header-session #staffLogoutButton{
    min-height:34px;
    border-radius:9px!important;
    padding:6px 9px!important;
  }

  .app-header .app-header-version{
    margin-top:1px;
  }
}

@media (min-width:768px) and (max-width:980px){
  .app-header .app-header-inner{
    grid-template-columns:minmax(245px,1fr) auto minmax(190px,.85fr)!important;
    gap:12px!important;
    padding-left:12px!important;
    padding-right:12px!important;
  }

  .app-header .app-header-brand{
    gap:8px!important;
  }

  .app-header .app-header-brand img{
    width:42px!important;
    height:42px!important;
  }

  .app-header .app-header-brand h1{
    font-size:18px!important;
  }

  .app-header .app-header-brand p{
    font-size:10px!important;
  }

  .app-header .app-header-session #staffSessionStatus{
    max-width:130px;
  }

  .app-header .app-header-clock{
    gap:7px!important;
    padding:6px 9px!important;
  }

  .app-header #headerDateText{
    max-width:145px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
}
