/* V10.16 Admin theme repair. Loaded after existing admin themes. */
/* IPO admin header: isolate it from the public full-width logo rules */
body[data-ipo-admin="1"] > header.nav.premium-nav.aurora-nav{
  display:flex!important;flex-direction:row!important;align-items:center!important;
  justify-content:space-between!important;gap:12px!important;
  min-height:82px!important;height:auto!important;padding:11px clamp(15px,3vw,48px)!important;
  box-sizing:border-box!important;overflow:visible!important;
}
body[data-ipo-admin="1"] > header.nav .brand.brand-logo{
  display:flex!important;align-items:center!important;justify-content:flex-start!important;
  position:relative!important;inset:auto!important;float:none!important;
  flex:0 0 clamp(170px,19vw,255px)!important;width:clamp(170px,19vw,255px)!important;
  height:auto!important;min-height:0!important;max-width:255px!important;
  padding:0!important;margin:0!important;background:transparent!important;border:0!important;
}
body[data-ipo-admin="1"] > header.nav .brand.brand-logo img.admin-gold-logo{
  display:block!important;position:static!important;inset:auto!important;
  width:100%!important;max-width:100%!important;height:auto!important;
  max-height:75px!important;min-height:0!important;object-fit:contain!important;
  object-position:left center!important;transform:none!important;filter:none!important;
}
body[data-ipo-admin="1"] > header.nav nav{flex:1 1 auto!important;min-width:0!important;display:flex;align-items:center;gap:clamp(8px,1vw,17px)!important;justify-content:center!important}
body[data-ipo-admin="1"] > header.nav nav a{white-space:nowrap!important;font-size:clamp(11px,.89vw,14px)!important}
body[data-ipo-admin="1"] > header.nav .nav-cta{white-space:nowrap!important;flex-shrink:0!important;font-size:12px!important;padding:10px 15px!important}
body[data-ipo-admin="1"] > header.nav .lang-toggle,
body[data-ipo-admin="1"] > header.nav .theme-toggle{flex-shrink:0!important}
@media(max-width:1000px){
 body[data-ipo-admin="1"] > header.nav .brand.brand-logo{flex-basis:180px!important;width:180px!important;max-width:180px!important}
 body[data-ipo-admin="1"] > header.nav nav{display:none!important}
 body[data-ipo-admin="1"] > header.nav .menu{display:block!important;order:3!important}
}
@media(max-width:600px){
 body[data-ipo-admin="1"] > header.nav.premium-nav.aurora-nav{min-height:72px!important;padding:9px 12px!important;gap:7px!important}
 body[data-ipo-admin="1"] > header.nav .brand.brand-logo{flex-basis:150px!important;width:150px!important;max-width:150px!important}
 body[data-ipo-admin="1"] > header.nav .nav-cta{display:none!important}
 body[data-ipo-admin="1"] > header.nav .lang-toggle{display:none!important}
}

/* White/light admin: every heading, label and card must remain readable. */
html[data-admin-theme="light"] body.sc-premium-admin,
html[data-admin-theme="light"] body.sc-premium-admin .sc-admin-content,
html[data-admin-theme="light"] body.sc-premium-admin .sc-admin-main {color:#153c2a!important}
html[data-admin-theme="light"] .sc-admin-hero h1,
html[data-admin-theme="light"] .sc-hero-copy h1{color:#17452d!important;text-shadow:none!important}
html[data-admin-theme="light"] .sc-admin-hero h1 em{color:#a06e0c!important}
html[data-admin-theme="light"] .sc-admin-hero p:not(.sc-eyebrow),
html[data-admin-theme="light"] .sc-hero-copy p:not(.sc-eyebrow){color:#466350!important}
html[data-admin-theme="light"] .sc-kpi b{color:#154b31!important}
html[data-admin-theme="light"] .sc-kpi span:not(.sc-kpi-icon){color:#4b5b45!important}
html[data-admin-theme="light"] .sc-tool,
html[data-admin-theme="light"] .sc-tool-copy,
html[data-admin-theme="light"] .sc-tool-copy strong,
html[data-admin-theme="light"] .sc-tool strong{color:#173e2a!important}
html[data-admin-theme="light"] .sc-tool-copy small,
html[data-admin-theme="light"] .sc-tool small{color:#49604e!important}
html[data-admin-theme="light"] .sc-data-panel,
html[data-admin-theme="light"] .sc-data-panel p,
html[data-admin-theme="light"] .sc-data-panel td,
html[data-admin-theme="light"] .sc-data-panel th,
html[data-admin-theme="light"] .sc-data-panel span,
html[data-admin-theme="light"] .sc-data-empty,
html[data-admin-theme="light"] .sc-activity-list,
html[data-admin-theme="light"] .sc-followup-panel,
html[data-admin-theme="light"] .sc-followup-panel *{color:#294b35!important}
html[data-admin-theme="light"] .sc-data-title h2,
html[data-admin-theme="light"] .sc-data-title strong{color:#17452d!important}
html[data-admin-theme="light"] .sc-data-title a,
html[data-admin-theme="light"] .sc-tool-arrow{color:#966511!important}
html[data-admin-theme="light"] .sc-kpi-icon,
html[data-admin-theme="light"] .sc-tool-icon{background:#0c4e31!important;color:#ffdb72!important}
html[data-admin-theme="light"] .sc-sidebar .sc-side-nav a{color:#234631!important}
html[data-admin-theme="light"] .sc-sidebar .sc-side-nav a.active{background:#d5e5c7!important;color:#65480b!important}
html[data-admin-theme="light"] .sc-sidebar .sc-side-quick a,
html[data-admin-theme="light"] .sc-sidebar .sc-side-quick button{background:#e6efd9!important;color:#21412d!important;border-color:#a78c4b!important}
html[data-admin-theme="light"] .sc-sidebar .sc-sidebar-label{color:#805d1b!important}
html[data-admin-theme="light"] .sc-side-art{opacity:.34}
html[data-admin-theme="light"] .sc-admin-footer{color:#385743!important}
/* IPO page light theme: reset old gold/white and blue/cyan rules on text and inputs */
html[data-admin-theme="light"] body[data-ipo-admin="1"] .ipo-admin-topline h1,
html[data-admin-theme="light"] body[data-ipo-admin="1"] .ipo-admin-dashboard h1,
html[data-admin-theme="light"] body[data-ipo-admin="1"] .ipo-admin-label{color:#163d2b!important;text-shadow:none!important}
html[data-admin-theme="light"] body[data-ipo-admin="1"] .ipo-card-grid article,
html[data-admin-theme="light"] body[data-ipo-admin="1"] .ipo-card-grid article h2,
html[data-admin-theme="light"] body[data-ipo-admin="1"] .ipo-card-grid article h3,
html[data-admin-theme="light"] body[data-ipo-admin="1"] .ipo-card-grid article p,
html[data-admin-theme="light"] body[data-ipo-admin="1"] .ipo-card-grid article label{color:#19422e!important}
html[data-admin-theme="light"] body[data-ipo-admin="1"] input,
html[data-admin-theme="light"] body[data-ipo-admin="1"] textarea,
html[data-admin-theme="light"] body[data-ipo-admin="1"] select{background:#fffdf3!important;color:#153a29!important;border:1px solid #bba35a!important}
html[data-admin-theme="dark"] body[data-ipo-admin="1"] input,
html[data-admin-theme="dark"] body[data-ipo-admin="1"] textarea,
html[data-admin-theme="dark"] body[data-ipo-admin="1"] select{background:#072c1d!important;color:#f5f2dd!important;border:1px solid #aa8c36!important}
html[data-admin-theme="light"] body[data-ipo-admin="1"] .ipo-card-grid,
html[data-admin-theme="light"] body[data-ipo-admin="1"] .ipo-tab-panel{color:#19422e!important}
/* Preserve red Closing Today status badge in both themes */
body[data-ipo-admin="1"] .ipo-closing-today{background:#a51e3c!important;color:#fff!important;border-color:#eaa1b0!important}
