/* GYPTO Desk V3.4.1 — compact headers on ALL pages.
   Presentation only. Routing, tickets, Supabase permissions and data are untouched. */

/* Dashboard Home: same compact white toolbar as internal pages. */
#app[data-gy-view="dashboard"] .home313-head{
  box-sizing:border-box!important;
  background:#fff!important;
  background-image:none!important;
  color:#123d5b!important;
  border:1px solid #dce7ef!important;
  border-inline-start:4px solid #e9872c!important;
  border-radius:11px!important;
  min-height:0!important;
  padding:12px 18px!important;
  margin:0 0 15px!important;
  box-shadow:0 2px 10px rgba(17,50,76,.035)!important;
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:space-between!important;
  flex-wrap:wrap!important;
  gap:10px 16px!important;
}
#app[data-gy-view="dashboard"] .home313-head > div:first-child{min-width:0;flex:1 1 250px}
#app[data-gy-view="dashboard"] .home313-head h1{
  color:#143e5b!important;
  font-size:clamp(17px,1.5vw,21px)!important;
  font-weight:850!important;
  line-height:1.25!important;
  letter-spacing:-.015em!important;
  margin:2px 0!important;
}
#app[data-gy-view="dashboard"] .home313-head p{
  color:#6e8192!important;
  font-size:11px!important;
  line-height:1.4!important;
  margin:2px 0 0!important;
  max-width:800px!important;
}
#app[data-gy-view="dashboard"] .home313-head p span{color:#bc6f27!important}
#app[data-gy-view="dashboard"] .home313-overline{
  color:#ce7a2b!important;font-size:9px!important;line-height:1.3!important;
  font-weight:850!important;letter-spacing:.08em!important;margin:0 0 2px!important;
}
#app[data-gy-view="dashboard"] .home313-head-actions{
  display:flex!important;flex:0 1 auto!important;align-items:center!important;
  justify-content:flex-end!important;flex-wrap:wrap!important;gap:6px!important;
  width:auto!important;
}
#app[data-gy-view="dashboard"] .home313-head-actions button{white-space:nowrap;max-width:100%}
#app[data-gy-view="dashboard"] .home313-refresh,
#app[data-gy-view="dashboard"] .home313-outline{background:#fff;border-color:#d5e4ee;color:#174564}

/* All non-home pages share one lightweight toolbar/header treatment. */
#app:not([data-gy-view="dashboard"]) .staff298-welcome,
#app:not([data-gy-view="dashboard"]) .mgr317-hero,
#app:not([data-gy-view="dashboard"]) .workday-page-hero{
  box-sizing:border-box!important;
  background:#fff!important;
  background-image:none!important;
  color:#123d5b!important;
  border:1px solid #dce7ef!important;
  border-inline-start:4px solid #e9872c!important;
  border-radius:11px!important;
  padding:13px 18px!important;
  min-height:0!important;
  margin:0 0 15px!important;
  box-shadow:0 2px 10px rgba(17,50,76,.035)!important;
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:space-between!important;
  flex-wrap:wrap!important;
  gap:10px 16px!important;
}
#app:not([data-gy-view="dashboard"]) .staff298-welcome > div:first-child,
#app:not([data-gy-view="dashboard"]) .mgr317-hero > div:first-child,
#app:not([data-gy-view="dashboard"]) .workday-page-hero > div:first-child{
  min-width:0!important;flex:1 1 250px!important;
}
#app:not([data-gy-view="dashboard"]) .staff298-welcome h1,
#app:not([data-gy-view="dashboard"]) .mgr317-hero h1,
#app:not([data-gy-view="dashboard"]) .workday-page-hero h1{
  color:#143e5b!important;
  font-size:clamp(17px,1.5vw,21px)!important;
  font-weight:850!important;
  line-height:1.25!important;
  letter-spacing:-.015em!important;
  margin:2px 0!important;
}
#app:not([data-gy-view="dashboard"]) .staff298-welcome p,
#app:not([data-gy-view="dashboard"]) .mgr317-hero p,
#app:not([data-gy-view="dashboard"]) .workday-page-hero p{
  color:#6e8192!important;
  font-size:11px!important;
  line-height:1.4!important;
  margin:2px 0 0!important;
  max-width:800px!important;
}
#app:not([data-gy-view="dashboard"]) .staff298-brow,
#app:not([data-gy-view="dashboard"]) .mgr317-eyebrow,
#app:not([data-gy-view="dashboard"]) .workday-page-hero > div:first-child > span{
  color:#ce7a2b!important;
  font-size:9px!important;
  line-height:1.3!important;
  font-weight:850!important;
  letter-spacing:.08em!important;
  margin:0 0 2px!important;
}
#app:not([data-gy-view="dashboard"]) .staff298-welcome-actions,
#app:not([data-gy-view="dashboard"]) .mgr317-actions,
#app:not([data-gy-view="dashboard"]) .workday-hero-actions{
  display:flex!important;flex:0 1 auto!important;align-items:center!important;
  justify-content:flex-end!important;flex-wrap:wrap!important;gap:6px!important;
  width:auto!important;
}
#app:not([data-gy-view="dashboard"]) .staff298-welcome-actions .btn,
#app:not([data-gy-view="dashboard"]) .mgr317-actions .btn,
#app:not([data-gy-view="dashboard"]) .workday-hero-actions .btn{
  white-space:nowrap;max-width:100%;
}
/* Minor adjustment for request lists already using a plain white header. */
#app:not([data-gy-view="dashboard"]) .gh29-overview-head{
  padding:9px 0 13px!important;margin-bottom:4px!important;gap:10px 16px!important;
}
#app:not([data-gy-view="dashboard"]) .gh29-overview-head h1{
  font-size:21px!important;margin:3px 0!important;
}
#app:not([data-gy-view="dashboard"]) .gh29-overview-head p{font-size:11px!important}
/* Dark mode: no unreadable dark-blue title on dark surface. */
body[data-dark="true"] #app:not([data-gy-view="dashboard"]) .staff298-welcome,
body[data-dark="true"] #app:not([data-gy-view="dashboard"]) .mgr317-hero,
body[data-dark="true"] #app:not([data-gy-view="dashboard"]) .workday-page-hero{
  background:#1b3043!important;border-color:#375066!important;color:#e4eef7!important;
}
body[data-dark="true"] #app:not([data-gy-view="dashboard"]) .staff298-welcome h1,
body[data-dark="true"] #app:not([data-gy-view="dashboard"]) .mgr317-hero h1,
body[data-dark="true"] #app:not([data-gy-view="dashboard"]) .workday-page-hero h1{color:#eef5fc!important}
body[data-dark="true"] #app:not([data-gy-view="dashboard"]) .staff298-welcome p,
body[data-dark="true"] #app:not([data-gy-view="dashboard"]) .mgr317-hero p,
body[data-dark="true"] #app:not([data-gy-view="dashboard"]) .workday-page-hero p{color:#b9ccdb!important}
/* Dashboard shares readable dark-mode styling with internal headers. */
body[data-dark="true"] #app[data-gy-view="dashboard"] .home313-head{
  background:#1b3043!important;border-color:#375066!important;color:#e4eef7!important;
}
body[data-dark="true"] #app[data-gy-view="dashboard"] .home313-head h1{color:#eef5fc!important}
body[data-dark="true"] #app[data-gy-view="dashboard"] .home313-head p{color:#b9ccdb!important}
body[data-dark="true"] #app[data-gy-view="dashboard"] .home313-head p span{color:#ffbb80!important}
@media(max-width:760px){
  #app[data-gy-view="dashboard"] .home313-head{
    padding:13px 14px!important;margin:0 0 12px!important;align-items:flex-start!important;
    flex-direction:column!important;gap:9px!important;
  }
  #app[data-gy-view="dashboard"] .home313-head > div:first-child{flex:0 1 auto!important;width:100%!important}
  #app[data-gy-view="dashboard"] .home313-head-actions{justify-content:flex-start!important;width:100%!important}
  #app[data-gy-view="dashboard"] .home313-head-actions button{flex:1 1 auto!important}
  #app:not([data-gy-view="dashboard"]) .staff298-welcome,
  #app:not([data-gy-view="dashboard"]) .mgr317-hero,
  #app:not([data-gy-view="dashboard"]) .workday-page-hero{
    padding:13px 14px!important;margin:0 0 12px!important;align-items:flex-start!important;
    flex-direction:column!important;gap:9px!important;
  }
  #app:not([data-gy-view="dashboard"]) .staff298-welcome > div:first-child,
  #app:not([data-gy-view="dashboard"]) .mgr317-hero > div:first-child,
  #app:not([data-gy-view="dashboard"]) .workday-page-hero > div:first-child{
    flex:0 1 auto!important;width:100%!important;
  }
  #app:not([data-gy-view="dashboard"]) .staff298-welcome-actions,
  #app:not([data-gy-view="dashboard"]) .mgr317-actions,
  #app:not([data-gy-view="dashboard"]) .workday-hero-actions{
    justify-content:flex-start!important;width:100%!important;
  }
}
