/* ==================== HSBC RED & WHITE THEME ====================
   Selectors use #wrapper.theme-hsbc prefix (specificity 1,1,0+)
   to beat the Apex Navy rules in j.custom.css which use #accordionSidebar.
   ================================================================ */

/* ── Sidebar background ── */
#wrapper.theme-hsbc #accordionSidebar {
    background: linear-gradient(180deg, #DB0011 0%, #a8000d 60%, #7a0009 100%) !important;
}

/* ── Active / expanded nav link ── */
#wrapper.theme-hsbc #accordionSidebar .nav-link:not(.collapsed),
#wrapper.theme-hsbc #accordionSidebar .nav-item .nav-link[aria-expanded="true"] {
    background: rgba(255,255,255,.18) !important;
    border-left-color: #fff !important;
    color: #fff !important;
}
#wrapper.theme-hsbc #accordionSidebar .nav-link:not(.collapsed) i,
#wrapper.theme-hsbc #accordionSidebar .nav-link:not(.collapsed) .mdi {
    color: #fff !important;
}

/* ── Sub-menu container ── */
#wrapper.theme-hsbc #accordionSidebar .collapse-inner {
    background: rgba(120, 0, 8, 0.6) !important;
}

/* ── Sub-items ── */
#wrapper.theme-hsbc #accordionSidebar .collapse-item {
    color: rgba(255,255,255,.75) !important;
    border-left-color: transparent !important;
}
#wrapper.theme-hsbc #accordionSidebar .collapse-item:hover {
    background: rgba(255,255,255,.15) !important;
    color: #fff !important;
    border-left-color: rgba(255,255,255,.4) !important;
}
#wrapper.theme-hsbc #accordionSidebar .collapse-item.active {
    color: #fff !important;
    background: rgba(255,255,255,.22) !important;
    border-left-color: #fff !important;
    font-weight: 600 !important;
}

/* ── Sidebar toggle button ── */
#wrapper.theme-hsbc #sidebarToggle {
    background-color: rgba(255,255,255,.2) !important;
}

/* ── Topbar ── */
#wrapper.theme-hsbc .topbar.bg-skyblue {
    background-color: #ffffff !important;
    border-bottom: 3px solid #DB0011 !important;
    box-shadow: 0 2px 6px rgba(0,0,0,.08) !important;
}

/* ── Topbar icons and text ── */
#wrapper.theme-hsbc .topbar.bg-skyblue .text-gray-600,
#wrapper.theme-hsbc .topbar .nav-link .mdi,
#wrapper.theme-hsbc .topbar .nav-link > .mdi,
#wrapper.theme-hsbc .topbar #darkModeIcon {
    color: #444444 !important;
}
#wrapper.theme-hsbc .topbar .topbar-divider {
    border-right-color: rgba(0,0,0,.15) !important;
}

/* ── Primary buttons ── */
.theme-hsbc .btn-primary {
    background-color: #DB0011 !important;
    border-color: #b8000e !important;
}
.theme-hsbc .btn-primary:hover,
.theme-hsbc .btn-primary:focus {
    background-color: #b8000e !important;
    border-color: #7a0009 !important;
}

/* ── Primary color utilities ── */
.theme-hsbc .bg-primary    { background-color: #DB0011 !important; }
.theme-hsbc .text-primary  { color: #DB0011 !important; }
.theme-hsbc .badge-primary { background-color: #DB0011 !important; }

/* ── Nav tabs ── */
.theme-hsbc .nav-tabs .nav-link.active {
    border-top-color: #DB0011 !important;
    color: #DB0011 !important;
}

/* ── Link buttons ── */
.theme-hsbc a.btn-link       { color: #DB0011; }
.theme-hsbc a.btn-link:hover { color: #7a0009; }

/* ── Card title ── */
.theme-hsbc .card-title { color: #DB0011; }

/* ── Module table headers — HSBC red ── */
#wrapper.theme-hsbc thead.bg-primary,
#wrapper.theme-hsbc thead.bg-primary tr,
#wrapper.theme-hsbc tr.bg-primary {
    background-color: #DB0011 !important;
    background-image: linear-gradient(125deg, #DB0011 0%, #a8000d 60%, #7a0009 100%) !important;
}
#wrapper.theme-hsbc thead.bg-primary th,
#wrapper.theme-hsbc thead.bg-primary tr th,
#wrapper.theme-hsbc tr.bg-primary th {
    background-color: transparent !important;
    background-image: none !important;
    color: #fff !important;
    border-bottom-color: rgba(255,255,255,.2) !important;
}
#wrapper.theme-hsbc table.report_table thead {
    background-color: #DB0011 !important;
    background-image: linear-gradient(125deg, #DB0011 0%, #a8000d 60%, #7a0009 100%) !important;
}
#wrapper.theme-hsbc table.report_table thead tr th {
    background-color: transparent !important;
    background-image: none !important;
    color: #fff !important;
    border-bottom-color: rgba(255,255,255,.2) !important;
}

/* ── Dashboard: KPI hero banner ── */
#wrapper.theme-hsbc .db-kpi-hero {
    background: linear-gradient(125deg, #DB0011 0%, #a8000d 60%, #7a0009 100%) !important;
}

/* ── Dashboard: Section headers ── */
#wrapper.theme-hsbc .db-sec-header {
    background: linear-gradient(125deg, #DB0011 0%, #a8000d 60%, #7a0009 100%) !important;
}

/* ── Section header icon circle: white tint instead of sky-blue ── */
#wrapper.theme-hsbc .db-sec-icon {
    background: rgba(255,255,255,.18) !important;
    color: #fff !important;
}

/* ── Section header "View →" button ── */
#wrapper.theme-hsbc .db-sec-btn {
    background: rgba(255,255,255,.15) !important;
    color: rgba(255,255,255,.9) !important;
    border-color: rgba(255,255,255,.25) !important;
}
#wrapper.theme-hsbc .db-sec-btn:hover {
    background: rgba(255,255,255,.28) !important;
    color: #fff !important;
}

/* ── Period pills (Monthly / Quarterly) ── */
#wrapper.theme-hsbc .db-period-pill.active,
#wrapper.theme-hsbc .db-period-pill:hover {
    background: rgba(255,255,255,.25) !important;
    color: #fff !important;
    border-color: rgba(255,255,255,.4) !important;
}

/* ── KPI link hover ── */
#wrapper.theme-hsbc .db-kpi-link:hover {
    color: rgba(255,255,255,.72) !important;
}

/* ── Sequence/stat table header rows inside sections ── */
#wrapper.theme-hsbc .db-section .table thead tr {
    background-color: #DB0011 !important;
    background-image: linear-gradient(125deg, #DB0011 0%, #a8000d 60%, #7a0009 100%) !important;
}

/* ── Modal header — HSBC red (overrides Obsidian navy) ── */
#wrapper.theme-hsbc .modal-header {
    background-color: #DB0011 !important;
    background-image: linear-gradient(125deg, #DB0011 0%, #a8000d 60%, #7a0009 100%) !important;
}

/* ── Save button in modal — HSBC red ── */
.theme-hsbc .modal-footer .btn.btn-primary {
    background: #DB0011 !important;
    border-color: #b8000e !important;
}
.theme-hsbc .modal-footer .btn.btn-primary:hover {
    background: #b8000e !important;
    border-color: #7a0009 !important;
}

/* ── Feedback module ── */
#wrapper.theme-hsbc .fb-header {
    background: linear-gradient(125deg, #DB0011 0%, #a8000d 60%, #7a0009 100%) !important;
}
#wrapper.theme-hsbc .fb-icon-wrap {
    background: rgba(255,255,255,.15) !important;
    border-color: rgba(255,255,255,.28) !important;
}
#wrapper.theme-hsbc .fb-icon-wrap .mdi { color: #fff !important; }
#wrapper.theme-hsbc #feedback_table thead tr {
    background: linear-gradient(125deg, #DB0011 0%, #a8000d 60%, #7a0009 100%) !important;
}
#wrapper.theme-hsbc #feedback_table thead th {
    color: #fff !important;
    border-bottom-color: rgba(255,255,255,.2) !important;
}

/* ── Notification module ── */
#wrapper.theme-hsbc .noti-header {
    background: linear-gradient(125deg, #DB0011 0%, #a8000d 60%, #7a0009 100%) !important;
}
#wrapper.theme-hsbc .noti-bell-wrap {
    background: rgba(255,255,255,.15) !important;
    border-color: rgba(255,255,255,.28) !important;
}
#wrapper.theme-hsbc .noti-bell-wrap .mdi { color: #fff !important; }
#wrapper.theme-hsbc .noti-bell-pulse { background: #fff !important; }
#wrapper.theme-hsbc .noti-unread-badge {
    background: rgba(255,255,255,.18) !important;
    border-color: rgba(255,255,255,.35) !important;
}
#wrapper.theme-hsbc .noti-badge-dot { background: #fff !important; }
#wrapper.theme-hsbc .noti-pill.active { background: #DB0011 !important; }
#wrapper.theme-hsbc #noti_table thead tr {
    background: linear-gradient(125deg, #DB0011 0%, #a8000d 60%, #7a0009 100%) !important;
}
#wrapper.theme-hsbc #noti_table thead th {
    color: #fff !important;
    border-bottom-color: rgba(255,255,255,.2) !important;
}

/* ── Restaurant module ── */
#wrapper.theme-hsbc .res-header { background: #a8000d !important; }
#wrapper.theme-hsbc .res-header::after {
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.45) 30%, rgba(255,255,255,.7) 55%, rgba(255,255,255,.45) 75%, transparent 100%) !important;
}
#wrapper.theme-hsbc .res-header-icon {
    background: rgba(255,255,255,.15) !important;
    border-color: rgba(255,255,255,.28) !important;
}
#wrapper.theme-hsbc #display_table thead tr {
    background: linear-gradient(125deg, #DB0011 0%, #a8000d 60%, #7a0009 100%) !important;
}
#wrapper.theme-hsbc #display_table thead th {
    color: #fff !important;
    border-bottom-color: rgba(255,255,255,.2) !important;
}

/* ── Goal (100 Goals) module ── */
#wrapper.theme-hsbc .goal-banner {
    background: linear-gradient(135deg, #DB0011 0%, #a8000d 60%, #7a0009 100%) !important;
}
#wrapper.theme-hsbc .goal-progress-fill {
    background: linear-gradient(90deg, rgba(255,255,255,.65) 0%, #fff 100%) !important;
}
#wrapper.theme-hsbc .goal-tab-nav .nav-link:hover {
    border-color: #DB0011 !important;
    color: #DB0011 !important;
    background: #fff5f5 !important;
}
#wrapper.theme-hsbc .goal-tab-nav .nav-link.active {
    border-color: #DB0011 !important;
    background: #DB0011 !important;
}
#wrapper.theme-hsbc .goal-section-hdr.lt { border-left-color: #DB0011 !important; }

/* ==================== ALLIANZ BLUE THEME ====================
   Primary: #003781 (Pantone PMS 288 C — Official Allianz Blue)
   Accent:  #007AB3 (Allianz Light Blue)
   Selectors use #wrapper.theme-allianz prefix (specificity 1,1,0+)
   ================================================================ */

/* ── Sidebar background ── */
#wrapper.theme-allianz #accordionSidebar {
    background: linear-gradient(180deg, #002260 0%, #003781 60%, #004d9e 100%) !important;
}

/* ── Active / expanded nav link ── */
#wrapper.theme-allianz #accordionSidebar .nav-link:not(.collapsed),
#wrapper.theme-allianz #accordionSidebar .nav-item .nav-link[aria-expanded="true"] {
    background: rgba(0,122,179,.22) !important;
    border-left-color: #007AB3 !important;
    color: #7dd3fc !important;
}
#wrapper.theme-allianz #accordionSidebar .nav-link:not(.collapsed) i,
#wrapper.theme-allianz #accordionSidebar .nav-link:not(.collapsed) .mdi {
    color: #7dd3fc !important;
}

/* ── Sub-menu container ── */
#wrapper.theme-allianz #accordionSidebar .collapse-inner {
    background: rgba(0,30,80,.6) !important;
}

/* ── Sub-items ── */
#wrapper.theme-allianz #accordionSidebar .collapse-item {
    color: rgba(255,255,255,.75) !important;
    border-left-color: transparent !important;
}
#wrapper.theme-allianz #accordionSidebar .collapse-item:hover {
    background: rgba(0,122,179,.18) !important;
    color: #fff !important;
    border-left-color: rgba(0,122,179,.5) !important;
}
#wrapper.theme-allianz #accordionSidebar .collapse-item.active {
    color: #7dd3fc !important;
    background: rgba(0,122,179,.22) !important;
    border-left-color: #007AB3 !important;
    font-weight: 600 !important;
}

/* ── Sidebar toggle button ── */
#wrapper.theme-allianz #sidebarToggle {
    background-color: rgba(255,255,255,.2) !important;
}

/* ── Topbar ── */
#wrapper.theme-allianz .topbar.bg-skyblue {
    background-color: #ffffff !important;
    border-bottom: 3px solid #003781 !important;
    box-shadow: 0 2px 6px rgba(0,0,0,.08) !important;
}

/* ── Topbar icons and text ── */
#wrapper.theme-allianz .topbar.bg-skyblue .text-gray-600,
#wrapper.theme-allianz .topbar .nav-link .mdi,
#wrapper.theme-allianz .topbar .nav-link > .mdi,
#wrapper.theme-allianz .topbar #darkModeIcon {
    color: #444444 !important;
}
#wrapper.theme-allianz .topbar .topbar-divider {
    border-right-color: rgba(0,0,0,.15) !important;
}

/* ── Primary buttons ── */
.theme-allianz .btn-primary {
    background-color: #003781 !important;
    border-color: #002260 !important;
}
.theme-allianz .btn-primary:hover,
.theme-allianz .btn-primary:focus {
    background-color: #002260 !important;
    border-color: #001840 !important;
}

/* ── Primary color utilities ── */
.theme-allianz .bg-primary    { background-color: #003781 !important; }
.theme-allianz .text-primary  { color: #003781 !important; }
.theme-allianz .badge-primary { background-color: #003781 !important; }

/* ── Nav tabs ── */
.theme-allianz .nav-tabs .nav-link.active {
    border-top-color: #003781 !important;
    color: #003781 !important;
}

/* ── Link buttons ── */
.theme-allianz a.btn-link       { color: #003781; }
.theme-allianz a.btn-link:hover { color: #002260; }

/* ── Card title ── */
.theme-allianz .card-title { color: #003781; }

/* ── Module table headers — Allianz blue ── */
#wrapper.theme-allianz thead.bg-primary,
#wrapper.theme-allianz thead.bg-primary tr,
#wrapper.theme-allianz tr.bg-primary {
    background-color: #003781 !important;
    background-image: linear-gradient(125deg, #002260 0%, #003781 55%, #004d9e 100%) !important;
}
#wrapper.theme-allianz thead.bg-primary th,
#wrapper.theme-allianz thead.bg-primary tr th,
#wrapper.theme-allianz tr.bg-primary th {
    background-color: transparent !important;
    background-image: none !important;
    color: #fff !important;
    border-bottom-color: rgba(255,255,255,.2) !important;
}
#wrapper.theme-allianz table.report_table thead {
    background-color: #003781 !important;
    background-image: linear-gradient(125deg, #002260 0%, #003781 55%, #004d9e 100%) !important;
}
#wrapper.theme-allianz table.report_table thead tr th {
    background-color: transparent !important;
    background-image: none !important;
    color: #fff !important;
    border-bottom-color: rgba(255,255,255,.2) !important;
}

/* ── Dashboard: KPI hero banner ── */
#wrapper.theme-allianz .db-kpi-hero {
    background: linear-gradient(125deg, #002260 0%, #003781 55%, #004d9e 100%) !important;
}

/* ── Dashboard: Section headers ── */
#wrapper.theme-allianz .db-sec-header {
    background: linear-gradient(125deg, #002260 0%, #003781 55%, #004d9e 100%) !important;
}

/* ── Section header icon circle: Allianz light blue tint ── */
#wrapper.theme-allianz .db-sec-icon {
    background: rgba(0,122,179,.22) !important;
    color: #7dd3fc !important;
}

/* ── Section header "View →" button ── */
#wrapper.theme-allianz .db-sec-btn {
    background: rgba(0,122,179,.18) !important;
    color: rgba(255,255,255,.9) !important;
    border-color: rgba(0,122,179,.35) !important;
}
#wrapper.theme-allianz .db-sec-btn:hover {
    background: rgba(0,122,179,.32) !important;
    color: #fff !important;
}

/* ── Period pills (Monthly / Quarterly) ── */
#wrapper.theme-allianz .db-period-pill.active,
#wrapper.theme-allianz .db-period-pill:hover {
    background: rgba(0,122,179,.28) !important;
    color: #fff !important;
    border-color: rgba(0,122,179,.5) !important;
}

/* ── KPI link hover ── */
#wrapper.theme-allianz .db-kpi-link:hover {
    color: #7dd3fc !important;
}

/* ── Sequence/stat table header rows inside sections ── */
#wrapper.theme-allianz .db-section .table thead tr {
    background-color: #003781 !important;
    background-image: linear-gradient(125deg, #002260 0%, #003781 55%, #004d9e 100%) !important;
}

/* ── Modal header — Allianz blue ── */
#wrapper.theme-allianz .modal-header {
    background-color: #003781 !important;
    background-image: linear-gradient(125deg, #002260 0%, #003781 55%, #004d9e 100%) !important;
}

/* ── Save button in modal — Allianz blue ── */
.theme-allianz .modal-footer .btn.btn-primary {
    background: #003781 !important;
    border-color: #002260 !important;
}
.theme-allianz .modal-footer .btn.btn-primary:hover {
    background: #002260 !important;
    border-color: #001840 !important;
}

/* ── Feedback module ── */
#wrapper.theme-allianz .fb-header {
    background: linear-gradient(125deg, #002260 0%, #003781 55%, #004d9e 100%) !important;
}
#wrapper.theme-allianz .fb-icon-wrap {
    background: rgba(0,122,179,.22) !important;
    border-color: rgba(0,122,179,.38) !important;
}
#wrapper.theme-allianz .fb-icon-wrap .mdi { color: #7dd3fc !important; }
#wrapper.theme-allianz #feedback_table thead tr {
    background: linear-gradient(125deg, #002260 0%, #003781 55%, #004d9e 100%) !important;
}
#wrapper.theme-allianz #feedback_table thead th {
    color: #fff !important;
    border-bottom-color: rgba(255,255,255,.2) !important;
}

/* ── Notification module ── */
#wrapper.theme-allianz .noti-header {
    background: linear-gradient(125deg, #002260 0%, #003781 55%, #004d9e 100%) !important;
}
#wrapper.theme-allianz .noti-bell-wrap {
    background: rgba(0,122,179,.22) !important;
    border-color: rgba(0,122,179,.38) !important;
}
#wrapper.theme-allianz .noti-bell-wrap .mdi { color: #7dd3fc !important; }
#wrapper.theme-allianz .noti-bell-pulse { background: #7dd3fc !important; }
#wrapper.theme-allianz .noti-unread-badge {
    background: rgba(0,122,179,.18) !important;
    border-color: rgba(0,122,179,.35) !important;
}
#wrapper.theme-allianz .noti-badge-dot { background: #7dd3fc !important; }
#wrapper.theme-allianz .noti-pill.active { background: #003781 !important; }
#wrapper.theme-allianz #noti_table thead tr {
    background: linear-gradient(125deg, #002260 0%, #003781 55%, #004d9e 100%) !important;
}
#wrapper.theme-allianz #noti_table thead th {
    color: #fff !important;
    border-bottom-color: rgba(255,255,255,.2) !important;
}

/* ── Restaurant module ── */
#wrapper.theme-allianz .res-header { background: #002260 !important; }
#wrapper.theme-allianz .res-header::after {
    background: linear-gradient(90deg, transparent 0%, rgba(0,122,179,.5) 30%, rgba(122,211,252,.7) 55%, rgba(0,122,179,.5) 75%, transparent 100%) !important;
}
#wrapper.theme-allianz .res-header-icon {
    background: rgba(0,122,179,.22) !important;
    border-color: rgba(0,122,179,.38) !important;
}
#wrapper.theme-allianz #display_table thead tr {
    background: linear-gradient(125deg, #002260 0%, #003781 55%, #004d9e 100%) !important;
}
#wrapper.theme-allianz #display_table thead th {
    color: #fff !important;
    border-bottom-color: rgba(255,255,255,.2) !important;
}

/* ── Goal (100 Goals) module ── */
#wrapper.theme-allianz .goal-banner {
    background: linear-gradient(135deg, #002260 0%, #003781 55%, #004d9e 100%) !important;
}
#wrapper.theme-allianz .goal-progress-fill {
    background: linear-gradient(90deg, #007AB3 0%, #7dd3fc 100%) !important;
}
#wrapper.theme-allianz .goal-tab-nav .nav-link:hover {
    border-color: #003781 !important;
    color: #003781 !important;
    background: #f0f5ff !important;
}
#wrapper.theme-allianz .goal-tab-nav .nav-link.active {
    border-color: #003781 !important;
    background: #003781 !important;
}
#wrapper.theme-allianz .goal-section-hdr.lt { border-left-color: #003781 !important; }

/* ==================== AC COLOR THEME (ASCEND COLLECTIVE) ====================
   Deep Green: #1E4620  (logo arrow & text)
   AC Gold:    #C49438  (logo mountain body)
   Summit Red: #8B1C1C  (logo mountain peak)
   ================================================================ */

/* ── Sidebar background ── */
#wrapper.theme-ac #accordionSidebar {
    background: linear-gradient(180deg, #0d2610 0%, #1E4620 60%, #152e17 100%) !important;
}

/* ── Active / expanded nav link ── */
#wrapper.theme-ac #accordionSidebar .nav-link:not(.collapsed),
#wrapper.theme-ac #accordionSidebar .nav-item .nav-link[aria-expanded="true"] {
    background: rgba(196,148,56,.22) !important;
    border-left-color: #C49438 !important;
    color: #fde68a !important;
}
#wrapper.theme-ac #accordionSidebar .nav-link:not(.collapsed) i,
#wrapper.theme-ac #accordionSidebar .nav-link:not(.collapsed) .mdi {
    color: #fde68a !important;
}

/* ── Sub-menu container ── */
#wrapper.theme-ac #accordionSidebar .collapse-inner {
    background: rgba(13,38,16,.65) !important;
}

/* ── Sub-items ── */
#wrapper.theme-ac #accordionSidebar .collapse-item {
    color: rgba(255,255,255,.75) !important;
    border-left-color: transparent !important;
}
#wrapper.theme-ac #accordionSidebar .collapse-item:hover {
    background: rgba(196,148,56,.15) !important;
    color: #fde68a !important;
    border-left-color: rgba(196,148,56,.5) !important;
}
#wrapper.theme-ac #accordionSidebar .collapse-item.active {
    color: #fde68a !important;
    background: rgba(196,148,56,.22) !important;
    border-left-color: #C49438 !important;
    font-weight: 600 !important;
}

/* ── Sidebar toggle button ── */
#wrapper.theme-ac #sidebarToggle {
    background-color: rgba(255,255,255,.2) !important;
}

/* ── Topbar ── */
#wrapper.theme-ac .topbar.bg-skyblue {
    background-color: #ffffff !important;
    border-bottom: 3px solid #1E4620 !important;
    box-shadow: 0 2px 6px rgba(0,0,0,.08) !important;
}

/* ── Topbar icons and text ── */
#wrapper.theme-ac .topbar.bg-skyblue .text-gray-600,
#wrapper.theme-ac .topbar .nav-link .mdi,
#wrapper.theme-ac .topbar .nav-link > .mdi,
#wrapper.theme-ac .topbar #darkModeIcon {
    color: #444444 !important;
}
#wrapper.theme-ac .topbar .topbar-divider {
    border-right-color: rgba(0,0,0,.15) !important;
}

/* ── Primary buttons ── */
.theme-ac .btn-primary {
    background-color: #1E4620 !important;
    border-color: #0d2610 !important;
}
.theme-ac .btn-primary:hover,
.theme-ac .btn-primary:focus {
    background-color: #0d2610 !important;
    border-color: #081808 !important;
}

/* ── Primary color utilities ── */
.theme-ac .bg-primary    { background-color: #1E4620 !important; }
.theme-ac .text-primary  { color: #1E4620 !important; }
.theme-ac .badge-primary { background-color: #1E4620 !important; }

/* ── Nav tabs ── */
.theme-ac .nav-tabs .nav-link.active {
    border-top-color: #1E4620 !important;
    color: #1E4620 !important;
}

/* ── Link buttons ── */
.theme-ac a.btn-link       { color: #1E4620; }
.theme-ac a.btn-link:hover { color: #0d2610; }

/* ── Card title ── */
.theme-ac .card-title { color: #1E4620; }

/* ── Module table headers ── */
#wrapper.theme-ac thead.bg-primary,
#wrapper.theme-ac thead.bg-primary tr,
#wrapper.theme-ac tr.bg-primary {
    background-color: #1E4620 !important;
    background-image: linear-gradient(125deg, #0d2610 0%, #1E4620 55%, #152e17 100%) !important;
}
#wrapper.theme-ac thead.bg-primary th,
#wrapper.theme-ac thead.bg-primary tr th,
#wrapper.theme-ac tr.bg-primary th {
    background-color: transparent !important;
    background-image: none !important;
    color: #fff !important;
    border-bottom-color: rgba(255,255,255,.2) !important;
}
#wrapper.theme-ac table.report_table thead {
    background-color: #1E4620 !important;
    background-image: linear-gradient(125deg, #0d2610 0%, #1E4620 55%, #152e17 100%) !important;
}
#wrapper.theme-ac table.report_table thead tr th {
    background-color: transparent !important;
    background-image: none !important;
    color: #fff !important;
    border-bottom-color: rgba(255,255,255,.2) !important;
}

/* ── Dashboard: KPI hero banner ── */
#wrapper.theme-ac .db-kpi-hero {
    background: linear-gradient(125deg, #0d2610 0%, #1E4620 55%, #152e17 100%) !important;
}

/* ── Dashboard: Section headers ── */
#wrapper.theme-ac .db-sec-header {
    background: linear-gradient(125deg, #0d2610 0%, #1E4620 55%, #152e17 100%) !important;
}

/* ── Section header icon circle: gold tint ── */
#wrapper.theme-ac .db-sec-icon {
    background: rgba(196,148,56,.22) !important;
    color: #fde68a !important;
}

/* ── Section header "View →" button ── */
#wrapper.theme-ac .db-sec-btn {
    background: rgba(196,148,56,.15) !important;
    color: rgba(255,255,255,.9) !important;
    border-color: rgba(196,148,56,.3) !important;
}
#wrapper.theme-ac .db-sec-btn:hover {
    background: rgba(196,148,56,.28) !important;
    color: #fff !important;
}

/* ── Period pills ── */
#wrapper.theme-ac .db-period-pill.active,
#wrapper.theme-ac .db-period-pill:hover {
    background: rgba(196,148,56,.25) !important;
    color: #fff !important;
    border-color: rgba(196,148,56,.45) !important;
}

/* ── KPI link hover ── */
#wrapper.theme-ac .db-kpi-link:hover {
    color: #fde68a !important;
}

/* ── Section table heads ── */
#wrapper.theme-ac .db-section .table thead tr {
    background-color: #1E4620 !important;
    background-image: linear-gradient(125deg, #0d2610 0%, #1E4620 55%, #152e17 100%) !important;
}

/* ── Modal header ── */
#wrapper.theme-ac .modal-header {
    background-color: #1E4620 !important;
    background-image: linear-gradient(125deg, #0d2610 0%, #1E4620 55%, #152e17 100%) !important;
}

/* ── Save button in modal ── */
.theme-ac .modal-footer .btn.btn-primary {
    background: #1E4620 !important;
    border-color: #0d2610 !important;
}
.theme-ac .modal-footer .btn.btn-primary:hover {
    background: #0d2610 !important;
    border-color: #081808 !important;
}

/* ── Feedback module ── */
#wrapper.theme-ac .fb-header {
    background: linear-gradient(125deg, #0d2610 0%, #1E4620 55%, #152e17 100%) !important;
}
#wrapper.theme-ac .fb-icon-wrap {
    background: rgba(196,148,56,.2) !important;
    border-color: rgba(196,148,56,.35) !important;
}
#wrapper.theme-ac .fb-icon-wrap .mdi { color: #fde68a !important; }
#wrapper.theme-ac #feedback_table thead tr {
    background: linear-gradient(125deg, #0d2610 0%, #1E4620 55%, #152e17 100%) !important;
}
#wrapper.theme-ac #feedback_table thead th {
    color: #fff !important;
    border-bottom-color: rgba(255,255,255,.2) !important;
}

/* ── Notification module ── */
#wrapper.theme-ac .noti-header {
    background: linear-gradient(125deg, #0d2610 0%, #1E4620 55%, #152e17 100%) !important;
}
#wrapper.theme-ac .noti-bell-wrap {
    background: rgba(196,148,56,.2) !important;
    border-color: rgba(196,148,56,.35) !important;
}
#wrapper.theme-ac .noti-bell-wrap .mdi { color: #fde68a !important; }
#wrapper.theme-ac .noti-bell-pulse { background: #fde68a !important; }
#wrapper.theme-ac .noti-unread-badge {
    background: rgba(139,28,28,.2) !important;
    border-color: rgba(139,28,28,.38) !important;
}
#wrapper.theme-ac .noti-badge-dot { background: #8B1C1C !important; }
#wrapper.theme-ac .noti-pill.active { background: #1E4620 !important; }
#wrapper.theme-ac #noti_table thead tr {
    background: linear-gradient(125deg, #0d2610 0%, #1E4620 55%, #152e17 100%) !important;
}
#wrapper.theme-ac #noti_table thead th {
    color: #fff !important;
    border-bottom-color: rgba(255,255,255,.2) !important;
}

/* ── Restaurant module ── */
#wrapper.theme-ac .res-header {
    background: linear-gradient(125deg, #0d2610 0%, #1E4620 55%, #152e17 100%) !important;
}
#wrapper.theme-ac .res-header::after {
    background: linear-gradient(90deg, transparent 0%, rgba(196,148,56,.5) 30%, rgba(253,230,138,.75) 55%, rgba(196,148,56,.5) 75%, transparent 100%) !important;
}
#wrapper.theme-ac .res-header-icon {
    background: rgba(196,148,56,.2) !important;
    border-color: rgba(196,148,56,.35) !important;
}
#wrapper.theme-ac #display_table thead tr {
    background: linear-gradient(125deg, #0d2610 0%, #1E4620 55%, #152e17 100%) !important;
}
#wrapper.theme-ac #display_table thead th {
    color: #fff !important;
    border-bottom-color: rgba(255,255,255,.2) !important;
}

/* ── Goal (100 Goals) module ── */
#wrapper.theme-ac .goal-banner {
    background: linear-gradient(125deg, #0d2610 0%, #1E4620 55%, #152e17 100%) !important;
}
#wrapper.theme-ac .goal-progress-fill {
    background: linear-gradient(90deg, #C49438 0%, #fde68a 100%) !important;
}
#wrapper.theme-ac .goal-tab-nav .nav-link:hover {
    border-color: #1E4620 !important;
    color: #1E4620 !important;
    background: #f0faf4 !important;
}
#wrapper.theme-ac .goal-tab-nav .nav-link.active {
    border-color: #1E4620 !important;
    background: #1E4620 !important;
}
#wrapper.theme-ac .goal-section-hdr.lt { border-left-color: #C49438 !important; }
