/* BAFF OS v1.6.19.3 — Unified luxury dashboard presentation */
:root{--baff-lux-night:#0b211a;--baff-lux-panel:#102b22;--baff-lux-ivory:#fffaf0;--baff-lux-gold:#e7c66e;--baff-lux-muted:#b9cbc2;--baff-lux-line:#31594b}

/* Rich emerald fades for every principal dashboard hero. */
:is(.baff-command-dashboard .command-hero,.executive .hero,.crm-growth-hero,.inventory-control .inv-hero,.finance .finance-hero,.marketing .mkt-hero,.proc .hero,.cash-control .cash-hero,.workforce .hr-hero,.communications-page .comms-hero,.ops-head-refined){
  background:
    radial-gradient(circle at 88% 12%,rgba(240,205,121,.15),transparent 25%),
    radial-gradient(circle at 60% 115%,rgba(24,166,122,.2),transparent 42%),
    linear-gradient(118deg,#032f25 0%,#00664c 57%,#3d8968 100%)!important;
  border:1px solid rgba(231,198,110,.34)!important;
  box-shadow:0 22px 52px rgba(0,40,30,.22)!important;
  color:var(--baff-lux-ivory)!important;
}

/* v1.6.19.4 — final module-specific consistency overrides. */
html body .communications-page .comms-hero h1{color:#fffaf0!important;opacity:1!important;text-shadow:0 2px 18px rgba(0,25,18,.28)!important}
html body .inventory-control .inv-scope label{color:#efdca9!important;opacity:1!important}

html body[data-module="executive_dashboard"] .ceo-visual .kpi-card{
  --lux-accent:#1aa879;background:radial-gradient(circle at 100% 0,color-mix(in srgb,var(--lux-accent) 25%,transparent),transparent 50%),linear-gradient(140deg,color-mix(in srgb,var(--lux-accent) 14%,#112b22),#0b211a 74%)!important;
  border:1px solid color-mix(in srgb,var(--lux-accent) 64%,#31594b)!important;color:#fffaf0!important;box-shadow:0 17px 38px rgba(0,31,23,.18)!important
}
html body[data-module="executive_dashboard"] .ceo-visual .kpi-card:nth-child(2){--lux-accent:#3f83dc}
html body[data-module="executive_dashboard"] .ceo-visual .kpi-card:nth-child(3){--lux-accent:#9460b5}
html body[data-module="executive_dashboard"] .ceo-visual .kpi-card:nth-child(4){--lux-accent:#d6a02d}
html body[data-module="executive_dashboard"] .ceo-visual .kpi-card:nth-child(5){--lux-accent:#20a9ae}
html body[data-module="executive_dashboard"] .ceo-visual .kpi-card:nth-child(6){--lux-accent:#e45258}
html body[data-module="executive_dashboard"] .ceo-visual .kpi-card:nth-child(7){--lux-accent:#a99f8f}
html body[data-module="executive_dashboard"] .ceo-visual .kpi-card:nth-child(8){--lux-accent:#d47b24}
html body[data-module="executive_dashboard"] .ceo-visual .kpi-card:nth-child(9){--lux-accent:#cc4380}
html body[data-module="executive_dashboard"] .ceo-visual .kpi-card .kpi-label{color:#efdca9!important;opacity:1!important}
html body[data-module="executive_dashboard"] .ceo-visual .kpi-card .visual-value,html body[data-module="executive_dashboard"] .ceo-visual .kpi-card .kpi-unavailable-title{color:#fffaf0!important;opacity:1!important}
html body[data-module="executive_dashboard"] .ceo-visual .kpi-card small{color:#bfd0c8!important;opacity:1!important}
html body[data-module="executive_dashboard"] .ceo-visual .chart-card,html body[data-module="executive_dashboard"] .ceo-quick-actions{background:linear-gradient(145deg,#133229 0%,#0d241d 72%,#0b211a 100%)!important;border-color:#31594b!important;color:#fffaf0!important;box-shadow:0 16px 38px rgba(0,30,22,.14)!important}
html body[data-module="executive_dashboard"] .ceo-visual .chart-card :is(h2,h3,strong,b),html body[data-module="executive_dashboard"] .ceo-quick-actions :is(h2,strong){color:#fffaf0!important}
html body[data-module="executive_dashboard"] .ceo-visual .chart-card :is(p,small,.axis-label),html body[data-module="executive_dashboard"] .ceo-quick-actions span{color:#b9cbc2!important;opacity:1!important}

/* v1.6.19.5 — final visual closure across legacy operational surfaces. */
html body[data-module="executive_dashboard"] .workforce-facts p{background:linear-gradient(135deg,#17372d,#122a22)!important;border:1px solid #31594b!important;color:#dce9e3!important}
html body[data-module="executive_dashboard"] .workforce-facts p:first-child{background:linear-gradient(135deg,#1d4638,#173229)!important}
html body[data-module="executive_dashboard"] .workforce-facts p :is(span,b){color:inherit!important}
html body[data-module="executive_dashboard"] .branch-row{grid-template-columns:20px minmax(120px,1fr) minmax(72px,auto)!important;gap:6px 10px!important;align-items:center!important}
html body[data-module="executive_dashboard"] .branch-row>small{grid-column:2/-1!important;white-space:normal!important;color:#aebfb7!important}
html body[data-module="executive_dashboard"] .branch-row .visual-bar{grid-column:2/-1!important}
html body[data-module="executive_dashboard"] .branch-row strong{white-space:normal!important;overflow-wrap:anywhere!important}

html body .accountant-shell .accountant-kpi{--lux-accent:#1aa879;background:radial-gradient(circle at 100% 0,color-mix(in srgb,var(--lux-accent) 24%,transparent),transparent 50%),linear-gradient(140deg,#133229,#0b211a 75%)!important;border-color:color-mix(in srgb,var(--lux-accent) 62%,#31594b)!important;color:#fffaf0!important;box-shadow:0 15px 34px rgba(0,31,23,.16)!important}
html body .accountant-shell .accountant-kpi:nth-child(2n){--lux-accent:#3f83dc}html body .accountant-shell .accountant-kpi:nth-child(3n){--lux-accent:#9460b5}html body .accountant-shell .accountant-kpi:nth-child(4n){--lux-accent:#d6a02d}
html body .accountant-shell .accountant-kpi :is(small,.accountant-card-link){color:#efdca9!important}html body .accountant-shell .accountant-kpi :is(.accountant-value,span,strong){color:#fffaf0!important}
html body .accountant-shell .accountant-panel{background:linear-gradient(145deg,#133229,#0b211a)!important;border-color:#31594b!important;color:#fffaf0!important}
html body .accountant-shell .accountant-panel :is(h2,strong){color:#fffaf0!important}html body .accountant-shell .accountant-panel :is(small,.accountant-empty){color:#b9cbc2!important}

html body .classic-pos :is(.classic-pos__panel,.classic-pos__assurance,.classic-pos__recent){background:linear-gradient(145deg,#133229,#0b211a 76%)!important;border-color:#31594b!important;color:#fffaf0!important;box-shadow:0 16px 38px rgba(0,30,22,.15)!important}
html body .classic-pos :is(.classic-pos__section-heading h2,.classic-pos__assurance h2,.classic-pos__assurance-item b){color:#fffaf0!important}
html body .classic-pos :is(.classic-pos__assurance-item span,label small){color:#b9cbc2!important}
html body .classic-pos .classic-pos__assurance-item{border-color:#31594b!important}
html body .classic-pos :is(input,select){background:#fffdf8!important;color:#14251f!important;border-color:#b9a66f!important}
html body .classic-pos__recent table{background:#10271f!important;color:#fffaf0!important}html body .classic-pos__recent th{background:#292b3c!important;color:#efdca9!important}html body .classic-pos__recent td{color:#e8f1ed!important;border-color:#31594b!important}

.staff-management-luxury{max-width:1540px;margin:0 auto;padding:18px 22px 56px}.staff-management-hero{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:30px 36px;border:1px solid rgba(231,198,110,.38);border-radius:22px;background:radial-gradient(circle at 90% 8%,rgba(231,198,110,.16),transparent 28%),linear-gradient(118deg,#032f25,#00664c 58%,#3d8968)!important;box-shadow:0 22px 52px rgba(0,40,30,.2);color:#fffaf0}.staff-management-hero span{color:#e7c66e;font-size:.75rem;font-weight:850;letter-spacing:.16em}.staff-management-hero h1{margin:.3rem 0;font-family:Georgia,serif;font-size:clamp(2rem,4vw,3.25rem);font-weight:500}.staff-management-hero p{margin:0;color:#d7e6df}.staff-management-hero .btn{padding:14px 18px;background:linear-gradient(135deg,#e0b54d,#c68c25)!important;border:1px solid #e5bf67!important;color:#10251d!important;white-space:nowrap}
.staff-management-filter,.staff-management-table{margin-top:20px;padding:22px;border:1px solid #31594b;border-radius:18px;background:linear-gradient(145deg,#133229,#0b211a);box-shadow:0 15px 34px rgba(0,30,22,.14);color:#fffaf0}.staff-management-filter label{color:#efdca9}.staff-management-filter :is(input,select){background:#fffdf8!important;color:#14251f!important;border-color:#b9a66f!important}.staff-management-filter button{background:linear-gradient(135deg,#d9af4b,#bc8423)!important;color:#10251d!important}.staff-management-table table{margin:0;background:#10271f!important;color:#fffaf0!important}.staff-management-table th{background:#292b3c!important;color:#efdca9!important}.staff-management-table td{color:#e8f1ed!important;border-color:#31594b!important}.staff-management-table tr:nth-child(even){background:#142e25!important}.staff-management-table a{color:#e7c66e!important}
@media(max-width:760px){.staff-management-hero{align-items:flex-start;flex-direction:column}.staff-management-hero .btn{width:100%;text-align:center}.staff-management-luxury{padding:12px}}

/* v1.6.19.6 — Executive lower-section closure. */
html body[data-module="executive_dashboard"] .visual-analytics-secondary .attention-card{grid-column:1/-1!important;height:auto!important;min-height:190px!important;max-height:none!important}
html body[data-module="executive_dashboard"] .attention-card .attention-list{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important}
html body[data-module="executive_dashboard"] .attention-card .attention-list a{min-height:88px!important;padding:12px!important;background:linear-gradient(135deg,#17372d,#10271f)!important;border:1px solid #396657!important;color:#fffaf0!important}
html body[data-module="executive_dashboard"] .attention-card .attention-list a :is(strong,.attention-title){color:#fffaf0!important;opacity:1!important}
html body[data-module="executive_dashboard"] .attention-card .attention-list a :is(small,.attention-location,.attention-chevron){color:#b9cbc2!important;opacity:1!important}
html body[data-module="executive_dashboard"] .ceo-quick-actions a{background:linear-gradient(135deg,#17372d,#10271f)!important;border:1px solid #396657!important;color:#fffaf0!important;box-shadow:0 8px 20px rgba(0,25,18,.12)!important}
html body[data-module="executive_dashboard"] .ceo-quick-actions a:hover{background:linear-gradient(135deg,#1e493a,#143328)!important;border-color:#e7c66e!important;transform:translateY(-2px)}
html body[data-module="executive_dashboard"] .ceo-quick-actions a i{background:linear-gradient(135deg,#e8d39a,#c99432)!important;color:#17352b!important}
@media(max-width:900px){html body[data-module="executive_dashboard"] .attention-card .attention-list{grid-template-columns:1fr!important}}

/* Module KPI cards: coloured emerald fades rather than flat blocks. */
:is(.executive .kpi,.crm-growth-kpi,.inventory-control .inv-card,.finance .kpi,.marketing .mkt-kpi,.proc .kpi,.cash-control .cash-kpis>article,.workforce .hr-kpi,.communications-page .comms-kpis>article,body[data-module="operations_platform"] .ops-kpis>div){
  --lux-accent:#1aa879;
  background:
    radial-gradient(circle at 100% 0,color-mix(in srgb,var(--lux-accent) 24%,transparent),transparent 48%),
    linear-gradient(140deg,color-mix(in srgb,var(--lux-accent) 13%,#112b22),#0b211a 72%)!important;
  border:1px solid color-mix(in srgb,var(--lux-accent) 58%,#31594b)!important;
  color:var(--baff-lux-ivory)!important;
  box-shadow:0 14px 32px rgba(0,31,23,.16)!important;
}
:is(.executive .kpi,.crm-growth-kpi,.inventory-control .inv-card,.finance .kpi,.marketing .mkt-kpi,.proc .kpi,.cash-control .cash-kpis>article,.workforce .hr-kpi,.communications-page .comms-kpis>article,body[data-module="operations_platform"] .ops-kpis>div):nth-child(2n){--lux-accent:#3f83dc}
:is(.executive .kpi,.crm-growth-kpi,.inventory-control .inv-card,.finance .kpi,.marketing .mkt-kpi,.proc .kpi,.cash-control .cash-kpis>article,.workforce .hr-kpi,.communications-page .comms-kpis>article,body[data-module="operations_platform"] .ops-kpis>div):nth-child(3n){--lux-accent:#9460b5}
:is(.executive .kpi,.crm-growth-kpi,.inventory-control .inv-card,.finance .kpi,.marketing .mkt-kpi,.proc .kpi,.cash-control .cash-kpis>article,.workforce .hr-kpi,.communications-page .comms-kpis>article,body[data-module="operations_platform"] .ops-kpis>div):nth-child(4n){--lux-accent:#d6a02d}
:is(.executive .kpi,.crm-growth-kpi,.inventory-control .inv-card,.finance .kpi,.marketing .mkt-kpi,.proc .kpi,.cash-control .cash-kpis>article,.workforce .hr-kpi,.communications-page .comms-kpis>article,body[data-module="operations_platform"] .ops-kpis>div) :is(span,.label,.kpi-label){color:var(--baff-lux-gold)!important;opacity:1!important}
:is(.executive .kpi,.crm-growth-kpi,.inventory-control .inv-card,.finance .kpi,.marketing .mkt-kpi,.proc .kpi,.cash-control .cash-kpis>article,.workforce .hr-kpi,.communications-page .comms-kpis>article,body[data-module="operations_platform"] .ops-kpis>div) :is(strong,.metric,.kpi-value){color:var(--baff-lux-ivory)!important;opacity:1!important}
:is(.executive .kpi,.crm-growth-kpi,.inventory-control .inv-card,.finance .kpi,.marketing .mkt-kpi,.proc .kpi,.cash-control .cash-kpis>article,.workforce .hr-kpi,.communications-page .comms-kpis>article,body[data-module="operations_platform"] .ops-kpis>div) :is(small,.muted,.kpi-note){color:var(--baff-lux-muted)!important;opacity:1!important}

/* Larger dashboard panels retain depth with a restrained emerald fade. */
:is(.executive .panel,.crm-luxury-card,.inventory-control .inv-panel,.finance .panel,.marketing .mkt-panel,.proc .panel,.cash-control .cash-panel,.workforce .hr-panel,.communications-page .comms-panel,body[data-module="operations_platform"] .ops-branch-card,body[data-module="operations_platform"] .ops-panels>.card){
  background:linear-gradient(145deg,#133229 0%,#0d241d 72%,#0b211a 100%)!important;
  border-color:var(--baff-lux-line)!important;
  color:var(--baff-lux-ivory)!important;
  box-shadow:0 16px 38px rgba(0,30,22,.14)!important;
}
:is(.executive .panel,.crm-luxury-card,.inventory-control .inv-panel,.finance .panel,.marketing .mkt-panel,.proc .panel,.cash-control .cash-panel,.workforce .hr-panel,.communications-page .comms-panel,body[data-module="operations_platform"] .ops-branch-card,body[data-module="operations_platform"] .ops-panels>.card) :is(h2,h3,strong){color:var(--baff-lux-ivory)!important}
:is(.executive .panel,.crm-luxury-card,.inventory-control .inv-panel,.finance .panel,.marketing .mkt-panel,.proc .panel,.cash-control .cash-panel,.workforce .hr-panel,.communications-page .comms-panel,body[data-module="operations_platform"] .ops-branch-card,body[data-module="operations_platform"] .ops-panels>.card) :is(p,small,.muted){color:var(--baff-lux-muted)!important}

/* Main dashboard final readability details. */
html body .baff-command-dashboard .health-signals strong{color:#fffaf0!important}
html body .baff-command-dashboard .health-signals small{color:#b9cbc2!important;opacity:1!important}
html body .baff-command-dashboard .health-ring strong{color:#17352b!important;text-shadow:none!important}
html body .baff-command-dashboard .health-ring span{color:#5e746b!important;opacity:1!important}
html body .baff-command-dashboard .intelligence-statement{background:linear-gradient(110deg,#f7f0df,#eef4ed)!important;color:#405d52!important}
html body .baff-command-dashboard .intelligence-statement strong{color:#173c30!important}
html body .baff-command-dashboard .attention-clear{background:linear-gradient(110deg,#17392e,#122b23)!important;border:1px solid #36735e!important}
html body .baff-command-dashboard .attention-clear strong{color:#fffaf0!important;opacity:1!important}
html body .baff-command-dashboard .attention-clear small{color:#b9cbc2!important;opacity:1!important}
html body .baff-command-dashboard .command-actions a{background:linear-gradient(135deg,#16362c,#10271f)!important;border-color:#8ca59b!important;color:#fffaf0!important}
html body .baff-command-dashboard .command-actions a strong{color:#f1d48a!important;opacity:1!important}
html body .baff-command-dashboard .command-actions a span{color:#c3d2cb!important;opacity:1!important}

/* Forms remain light and immediately usable inside dark dashboard panels. */
:is(.crm-luxury-card,.inventory-control,.finance,.marketing,.proc,.cash-control,.workforce,.communications-page) :is(input,select,textarea){background:#fffdf8;color:#14251f;border-color:#b9a66f}

@media(max-width:760px){
  :is(.baff-command-dashboard .command-hero,.executive .hero,.crm-growth-hero,.inventory-control .inv-hero,.finance .finance-hero,.marketing .mkt-hero,.proc .hero,.cash-control .cash-hero,.workforce .hr-hero,.communications-page .comms-hero,.ops-head-refined){background:linear-gradient(145deg,#043b2e,#087357)!important}
}
