/* ============================================================================
 * Adorn Boys Hostel SHMS — Dynamic Brand Theme & Customizer Layer (Template 2)
 * Default Palette from demo/ (SANFI SYS Crimson #C8102E + Obsidian Black #111216)
 * All primary accents bind to var(--brand-primary) for real-time customizer switching.
 * ============================================================================ */

:root {
    --brand-primary: #c8102e;
    --brand-primary-hover: #a60d26;
    --brand-primary-rgb: 200, 16, 46;
    --brand-primary-soft: rgba(200, 16, 46, 0.10);
    --brand-primary-border: rgba(200, 16, 46, 0.28);
    --brand-primary-focus: rgba(200, 16, 46, 0.16);

    --brand-secondary: #111216;
    --brand-secondary-deep: #090a0d;
    --brand-secondary-mid: #1b1d24;
    --brand-astronaut: #26272f;
    --brand-secondary-soft: #f3f4f6;
    --brand-secondary-border: #e2e4e9;

    /* Remap Template 2 base tokens away from RHD green to Adorn/SANFI SYS palette */
    --wms-ink: #18181b;
    --wms-muted: #636674;
    --wms-canvas: #f5f6f8;
    --wms-surface: #ffffff;
    --wms-line: #dfe2e6;
    --wms-green: var(--brand-primary);
    --wms-green-deep: var(--brand-primary-hover);
    --wms-green-soft: var(--brand-primary-soft);
    --wms-amber: #d97706;
    --wms-red: #c8102e;
    --wms-shadow: 0 2px 8px rgba(13, 14, 18, 0.07);
}

body.ui-template-template_2 {
    font-family: var(--shms-font-sans, 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif) !important;
    background: var(--wms-canvas);
    color: var(--wms-ink);
}
.ui-template-template_2 :is(button, input, select, textarea, .btn, .form-control, .form-select, .table, h1, h2, h3, h4, h5, h6) {
    font-family: inherit;
}

.ui-template-template_2 {
    --wms-muted: #636674;
    --control-accent: var(--brand-primary);
    --control-accent-hover: var(--brand-primary-hover);
    --control-on-accent: #ffffff;
    --control-soft: var(--brand-primary-soft);
    --control-focus: var(--brand-primary-focus);
    --control-muted: #f2f3f7;
    --control-info: #0369a1;
    --control-info-soft: #e0f2fe;
    --control-info-line: #bae6fd;
    --control-warning: #b45309;
    --control-warning-soft: #fff2d6;
    --control-warning-line: #ffe09e;
    --control-danger: #c8102e;
    --control-danger-soft: #ffe4e8;
    --control-danger-line: #f5bfc8;
    --sb-accent: var(--brand-primary);
}

/* ---- Unified container-fluid for ALL /admin/* pages (Fluid 100% default / Compact 1440px option) ---- */
.ui-template-template_2 .main-content > .container-fluid,
.ui-template-template_2 .main-content > .shms-page-container {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 20px 24px 36px !important;
}

.ui-template-template_2 .main-content > .shms-page-container .dh-home {
    padding: 0 !important;
}

.ui-template-template_2 .main-content > .shms-page-container section.content {
    padding-top: 4px;
    padding-bottom: 16px;
}

html[data-wms-width="compact"] .ui-template-template_2 .main-content > .container-fluid,
html[data-wms-width="compact"] .ui-template-template_2 .main-content > .shms-page-container {
    max-width: 1440px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

@media (max-width: 767.98px) {
    .ui-template-template_2 .main-content > .container-fluid,
    .ui-template-template_2 .main-content > .shms-page-container {
        padding: 16px 14px 28px !important;
    }
}

/* ---- Card Skin: Bordered (Flat) vs Default (Shadow) ---- */
html[data-wms-card-skin="bordered"] .ui-template-template_2 :is(
    .card, .panel, .dh-panel, .dh-pulse, .dh-hero, .shms-kpi,
    .shms-unit-card, .shms-mini-unit, .workspace-bar, .t2-settings-section,
    .workspace-clock-card
) {
    box-shadow: none !important;
    border: 1px solid var(--wms-line) !important;
}

/* Remove inherited RHD brand prefix */
.ui-template-template_2 .sidebar-brand__copy strong::before {
    content: none !important;
}

/* ---- Sidebar Skins ---- */
html[data-wms-skin=dark] .ui-template-template_2 {
    --sb-bg: #0d0e12;
    --sb-line: rgba(255, 255, 255, 0.09);
    --sb-text: #d4d6e0;
    --sb-muted: #808290;
    --sb-icon: #9a9cae;
    --sb-hover: rgba(255, 255, 255, 0.08);
    --sb-active-bg: var(--brand-primary);
    --sb-active-text: #ffffff;
    --sb-accent: var(--brand-primary);
}

html[data-wms-skin=dark] .ui-template-template_2 #sidebar,
html[data-wms-skin=dark] .ui-template-template_2 #sidebarCollapse {
    background: #0d0e12 !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-wms-skin=dark] .ui-template-template_2 #sidebar .t2-account {
    background: #15171c !important;
    border-top-color: rgba(255, 255, 255, 0.09) !important;
}

html[data-wms-skin=dark] .ui-template-template_2 #sidebar .nav-link.active,
html[data-wms-skin=dark] .ui-template-template_2 #sidebar .t2-nav-item > .nav-link.active {
    background: var(--brand-primary) !important;
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(var(--brand-primary-rgb), 0.36) !important;
}

html[data-wms-skin=dark] .ui-template-template_2 #sidebar .nav-link.active .fe,
html[data-wms-skin=dark] .ui-template-template_2 #sidebar .nav-link:hover .fe {
    color: #ffffff !important;
}

html[data-wms-skin=dark] .ui-template-template_2 #sidebar .nav-link:hover:not(.active) {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
}

html[data-wms-skin=dark] .ui-template-template_2 #sidebar .t2-nav-group__label {
    color: #636674 !important;
}

html[data-wms-skin=dark] .ui-template-template_2 #sidebar .t2-account__menu {
    background: #15171c !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
}

html[data-wms-skin=dark] .ui-template-template_2 #sidebar .t2-account__menu .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

html[data-wms-skin=light] .ui-template-template_2 {
    --sb-bg: #ffffff;
    --sb-line: #dfe2e6;
    --sb-text: #18181b;
    --sb-muted: #636674;
    --sb-icon: #6b7682;
    --sb-hover: #f2f3f7;
    --sb-active-bg: var(--brand-primary-soft);
    --sb-active-text: var(--brand-primary);
    --sb-accent: var(--brand-primary);
}

html[data-wms-skin=light] .ui-template-template_2 #sidebar,
html[data-wms-skin=light] .ui-template-template_2 #sidebarCollapse {
    background: #ffffff !important;
    color: #18181b !important;
    border-right: 1px solid #dfe2e6 !important;
}

html[data-wms-skin=light] .ui-template-template_2 #sidebar .nav-link.active,
html[data-wms-skin=light] .ui-template-template_2 #sidebar .t2-nav-item > .nav-link.active {
    background: var(--brand-primary-soft) !important;
    color: var(--brand-primary) !important;
}

html[data-wms-skin=light] .ui-template-template_2 #sidebar .nav-link.active .fe {
    color: var(--brand-primary) !important;
}

html[data-wms-skin=gradient] .ui-template-template_2 {
    --sb-bg: #0d0e12;
    --sb-line: rgba(255, 255, 255, 0.12);
    --sb-text: #e4e6ef;
    --sb-muted: #9a9cae;
    --sb-icon: #9a9cae;
    --sb-hover: rgba(255, 255, 255, 0.1);
    --sb-active-bg: var(--brand-primary);
    --sb-active-text: #ffffff;
    --sb-accent: var(--brand-primary);
}

html[data-wms-skin=gradient] .ui-template-template_2 #sidebar,
html[data-wms-skin=gradient] .ui-template-template_2 #sidebarCollapse {
    background: linear-gradient(165deg, #111216 0%, #181a21 58%, var(--brand-primary-hover) 100%) !important;
}

html[data-wms-skin=gradient] .ui-template-template_2 #sidebar .nav-link.active {
    background: var(--brand-primary) !important;
    color: #ffffff !important;
}

/* ---- Buttons & Semantic Distinction ---- */
.ui-template-template_2 .btn-primary {
    background-color: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
    color: #ffffff !important;
}
.ui-template-template_2 .btn-primary:hover,
.ui-template-template_2 .btn-primary:focus {
    background-color: var(--brand-primary-hover) !important;
    border-color: var(--brand-primary-hover) !important;
    color: #ffffff !important;
}
.ui-template-template_2 .btn-outline-primary {
    color: var(--brand-primary) !important;
    border-color: var(--brand-primary-border) !important;
    background-color: var(--brand-primary-soft) !important;
    font-weight: 650;
}
.ui-template-template_2 .btn-outline-primary:hover,
.ui-template-template_2 .btn-outline-primary:focus {
    background-color: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
    color: #ffffff !important;
}
html[data-wms-theme=dark] .ui-template-template_2 .btn-outline-primary {
    color: var(--brand-primary-on-dark, #ff8a9c) !important;
    border-color: rgba(var(--brand-primary-rgb), 0.55) !important;
    background-color: rgba(var(--brand-primary-rgb), 0.16) !important;
}
html[data-wms-theme=dark] .ui-template-template_2 .btn-outline-primary:hover {
    background-color: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
    color: #ffffff !important;
}

/* Links, focus, chips, pagination */
.ui-template-template_2 a {
    color: #111216;
}
.ui-template-template_2 a:hover {
    color: var(--brand-primary);
}
.ui-template-template_2 .text-primary {
    color: #111216 !important;
}
.ui-template-template_2 .text-success {
    color: #1b7f3a !important;
}
.ui-template-template_2 .text-danger {
    color: #c8102e !important;
}

.ui-template-template_2 .workspace-bar {
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid #dfe2e6;
}
.ui-template-template_2 .workspace-eyebrow {
    color: var(--brand-primary);
}
.ui-template-template_2 .workspace-status {
    color: #111216;
    background: #f3f4f6;
    border: 1px solid #e2e4e9;
}
.ui-template-template_2 .workspace-status i {
    background: #1b7f3a;
    box-shadow: 0 0 0 4px rgba(27, 127, 58, 0.14);
}
.ui-template-template_2 .workspace-profile:hover {
    color: var(--brand-primary);
}
.ui-template-template_2 .modal-backdrop {
    background: #090a0d;
}

.ui-template-template_2 .table thead th {
    background: #f8f9fb;
    color: #52525b;
    border-bottom-color: #dfe2e6;
}
.ui-template-template_2 .table td {
    border-color: #edf0f4;
}
.ui-template-template_2 .panel-footer,
.ui-template-template_2 .modal-footer {
    background: #f8f9fb;
    border-top-color: #dfe2e6;
}

.ui-template-template_2 .t2-chip.is-active,
.ui-template-template_2 .t2-chip:hover,
.ui-template-template_2 .page-item.active .page-link {
    background: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
    color: #ffffff !important;
}
.ui-template-template_2 .t2-chip.is-active .t2-chip__label,
.ui-template-template_2 .t2-chip:hover .t2-chip__label {
    color: #ffffff !important;
}
.ui-template-template_2 .page-link {
    color: #111216;
}

.ui-template-template_2 .t2-badge--ok {
    background: #e8fadf;
    color: #1b7f3a;
    border-color: #c6f0b6;
}
.ui-template-template_2 .t2-badge--info {
    background: #e8eef7;
    color: #111216;
    border-color: #e2e4e9;
}
.ui-template-template_2 .t2-badge--warn {
    background: #fff2d6;
    color: #b45309;
    border-color: #ffe09e;
}
.ui-template-template_2 .t2-badge--danger {
    background: #ffe4e8;
    color: #c8102e;
    border-color: #f5bfc8;
}
.ui-template-template_2 .t2-pill {
    background: #f3f4f6;
    color: #111216 !important;
    border-color: #e2e4e9;
}

/* ---- Dashboard Hero & Pulse Cards ---- */
.ui-template-template_2 .dh-home .dh-hero {
    background: linear-gradient(115deg, #f3f4f6 0%, #ffffff 64%, var(--brand-primary-soft) 100%);
    border: 1px solid #e2e4e9;
    border-top: 3px solid var(--brand-primary);
}
.ui-template-template_2 .dh-home .dh-eyebrow {
    color: var(--brand-primary);
}
.ui-template-template_2 .dh-home h1,
.ui-template-template_2 .dh-home h2 {
    color: #111216;
}
.ui-template-template_2 .dh-home p,
.ui-template-template_2 .dh-home .dh-hero-side small {
    color: #52525b;
}
.ui-template-template_2 .dh-home .dh-shortcuts a {
    background: #ffffff;
    border: 1px solid #e2e4e9;
    color: #111216;
}
.ui-template-template_2 .dh-home .dh-shortcuts a:hover {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #ffffff;
}
.ui-template-template_2 .dh-home .dh-panel {
    border-color: #dfe2e6;
    box-shadow: 0 2px 6px rgba(13, 14, 18, 0.06);
}
.ui-template-template_2 .dh-snapshot-label {
    color: #111216;
    background: #f3f4f6;
    border: 1px solid #e2e4e9;
}
.ui-template-template_2 .dh-pulse {
    --pulse: var(--brand-primary);
    --pulse-bg: var(--brand-primary-soft);
    border-color: #dfe2e6;
    box-shadow: 0 2px 8px rgba(13, 14, 18, 0.06);
}
.ui-template-template_2 .dh-pulse--blue {
    --pulse: #0369a1;
    --pulse-bg: #e0f2fe;
}
.ui-template-template_2 .dh-pulse--amber {
    --pulse: #b45309;
    --pulse-bg: #fff2d6;
}
.ui-template-template_2 .dh-pulse--rose {
    --pulse: #c8102e;
    --pulse-bg: #ffe4e8;
}
.ui-template-template_2 .dh-pulse-heading {
    color: #18181b;
}
.ui-template-template_2 .dh-pulse-total {
    color: #111216;
}
.ui-template-template_2 .dh-pulse-track {
    background: #f3f4f6;
}
.ui-template-template_2 .dh-pulse-row strong {
    color: #18181b;
}

/* ---- Auth Split Screen (Obsidian Black #111216 + Primary Accent) ---- */
.ui-template-template_2.auth-shell {
    background: #f5f6f8 !important;
}
.ui-template-template_2 .auth-t2__cover {
    background-color: #111216 !important;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) !important;
    background-size: 36px 36px !important;
}
.ui-template-template_2 .auth-t2__cover::before {
    content: "";
    position: absolute;
    z-index: 5;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--brand-primary);
}
.ui-template-template_2 .auth-t2__cover-slides,
.ui-template-template_2 .auth-t2__cover-slide {
    display: none !important;
}
.ui-template-template_2 .auth-t2__cover-shade {
    background:
        radial-gradient(circle at 14% 12%, rgba(var(--brand-primary-rgb), 0.22), transparent 38%),
        linear-gradient(160deg, rgba(13, 14, 18, 0.96) 0%, rgba(21, 23, 28, 0.92) 55%, rgba(9, 10, 13, 0.98) 100%) !important;
}
.ui-template-template_2 .auth-t2__eyebrow {
    color: #f8b4c0 !important;
    background: rgba(var(--brand-primary-rgb), 0.18) !important;
    border-color: rgba(var(--brand-primary-rgb), 0.38) !important;
}
.ui-template-template_2 .auth-t2__points i,
.ui-template-template_2 .auth-t2__stats-title i,
.ui-template-template_2 .auth-t2__cover-footer i {
    color: #f3a4b1 !important;
}
.ui-template-template_2 .auth-t2__stats-title small {
    color: #dbeafe !important;
    background: rgba(255, 255, 255, 0.12) !important;
}
.ui-template-template_2 .auth-t2__stats-title small::before {
    background: #71dd37 !important;
    box-shadow: 0 0 0 3px rgba(113, 221, 55, 0.25) !important;
}
.ui-template-template_2 .auth-t2__panel-brand strong,
.ui-template-template_2 .auth-t2__form-heading h2 {
    color: #111216 !important;
}
.ui-template-template_2 .auth-t2__form-eyebrow,
.ui-template-template_2 .auth-t2__link,
.ui-template-template_2 .auth-t2__switch a,
.ui-template-template_2 .auth-t2__back,
.ui-template-template_2 .auth-t2__credit,
.ui-template-template_2 .auth-t2__control:focus-within .auth-t2__field-icon,
.ui-template-template_2 .auth-t2__password-toggle:hover {
    color: var(--brand-primary) !important;
}
.ui-template-template_2 .auth-t2__link:hover,
.ui-template-template_2 .auth-t2__back:hover,
.ui-template-template_2 .auth-t2__switch a:hover {
    color: var(--brand-primary-hover) !important;
}
.ui-template-template_2 .auth-t2__field .form-control {
    background: #f8f9fb;
    border-color: #dfe2e6;
    color: #18181b;
}
.ui-template-template_2 .auth-t2__field .form-control:focus {
    border-color: var(--brand-primary) !important;
    box-shadow: 0 0 0 3px var(--brand-primary-focus) !important;
}
.ui-template-template_2 .auth-t2__check input {
    accent-color: var(--brand-primary) !important;
}
.ui-template-template_2 .auth-t2__submit {
    background: var(--brand-primary) !important;
    border-color: var(--brand-primary-hover) !important;
    box-shadow: 0 8px 18px rgba(var(--brand-primary-rgb), 0.24) !important;
}
.ui-template-template_2 .auth-t2__submit:hover,
.ui-template-template_2 .auth-t2__submit:focus {
    background: var(--brand-primary-hover) !important;
    box-shadow: 0 10px 22px rgba(var(--brand-primary-rgb), 0.34) !important;
}
.ui-template-template_2 .auth-t2__segment {
    background: #f3f4f6 !important;
}
.ui-template-template_2 .auth-t2__segment-item input:checked + span {
    color: var(--brand-primary) !important;
}

/* ---- Upgraded Theme Customizer Drawer (Matches demo/ Customizer UI) ---- */
.t2-customizer header {
    padding: 20px 22px 16px !important;
}
.t2-customizer header h2 {
    font-size: 18px !important;
    margin: 4px 0 3px !important;
    color: var(--wms-ink) !important;
}
.t2-customizer .t2-theme-eyebrow {
    color: var(--brand-primary) !important;
}
.t2-customizer .t2-theme-options {
    padding: 18px 22px !important;
}
.t2-cust-section {
    margin: 0 0 20px !important;
    padding: 0 0 18px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--wms-line) !important;
}
.t2-cust-section:last-of-type {
    border-bottom: 0 !important;
    padding-bottom: 6px !important;
}
.t2-cust-section legend {
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    color: var(--wms-muted) !important;
    margin-bottom: 11px !important;
}

/* Color Swatches Row */
.t2-swatch-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.t2-swatch-btn {
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    border-radius: 9px !important;
    border: 2px solid transparent !important;
    cursor: pointer;
    transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.t2-swatch-btn:hover {
    transform: translateY(-1px);
}
.t2-swatch-btn.is-active {
    border-color: #ffffff !important;
    box-shadow: 0 0 0 2.5px var(--wms-ink) !important;
}
.t2-custom-color-wrap {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    border: 1.5px dashed var(--wms-line);
    display: grid;
    place-items: center;
    cursor: pointer;
    position: relative;
    color: var(--wms-muted);
    background: var(--wms-surface);
    margin: 0;
}
.t2-custom-color-wrap:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}
.t2-custom-color-wrap input[type="color"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* Option Cards & Pills */
.t2-opt-grid {
    display: grid;
    gap: 8px;
}
.t2-opt-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.t2-opt-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.t2-opt-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.t2-opt-card,
.t2-opt-pill {
    position: relative;
    margin: 0 !important;
    cursor: pointer;
}
.t2-opt-card input,
.t2-opt-pill input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}
.t2-opt-card span {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 12px 8px;
    border: 1.5px solid var(--wms-line);
    border-radius: 10px;
    background: var(--wms-surface);
    color: var(--wms-ink);
    font-size: 12px;
    font-weight: 650;
    transition: border-color 0.14s ease, background 0.14s ease, color 0.14s ease;
}
.t2-opt-card span i {
    font-size: 16px;
}
.t2-opt-pill span {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 9px 10px;
    border: 1.5px solid var(--wms-line);
    border-radius: 9px;
    background: var(--wms-surface);
    color: var(--wms-ink);
    font-size: 12px;
    font-weight: 650;
    transition: border-color 0.14s ease, background 0.14s ease, color 0.14s ease;
}
.t2-opt-card input:checked + span,
.t2-opt-pill input:checked + span {
    border-color: var(--brand-primary) !important;
    background: var(--brand-primary-soft) !important;
    color: var(--brand-primary) !important;
    font-weight: 700;
}
.t2-opt-card:hover span,
.t2-opt-pill:hover span {
    border-color: var(--brand-primary-border);
}

.t2-cust-footer {
    padding: 16px 22px !important;
    border-top: 1px solid var(--wms-line) !important;
}
.t2-cust-footer__actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}
.t2-cust-btn-outline {
    background: var(--wms-surface) !important;
    color: var(--wms-ink) !important;
    border: 1px solid var(--wms-line) !important;
    border-radius: 9px !important;
    padding: 9px 12px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    cursor: pointer;
}
.t2-cust-btn-outline:hover {
    border-color: var(--brand-primary) !important;
    color: var(--brand-primary) !important;
}
.t2-cust-btn-primary {
    background: var(--brand-primary) !important;
    color: #ffffff !important;
    border: 1px solid var(--brand-primary) !important;
    border-radius: 9px !important;
    padding: 9px 18px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    cursor: pointer;
}
.t2-cust-btn-primary:hover {
    background: var(--brand-primary-hover) !important;
}

/* ---- Gradient Workspace Theme ---- */
html[data-wms-theme=gradient] {
    --wms-canvas: #f3f4f6;
}
html[data-wms-theme=gradient] body.ui-template-template_2 {
    background: linear-gradient(125deg, #e8eef7 0%, #f5f6f8 55%, var(--brand-primary-soft) 100%) !important;
    background-attachment: fixed !important;
}
html[data-wms-theme=gradient] .ui-template-template_2 :is(.workspace-bar, .dh-hero) {
    background: linear-gradient(110deg, #f3f4f6ee, #ffffffef, var(--brand-primary-soft)) !important;
}
html[data-wms-theme=gradient] .ui-template-template_2 :is(.workspace-status, .header-pretitle) {
    color: #111216 !important;
}

/* ---- Dark Workspace Theme (Metronic Obsidian Dark matching demo/) ---- */
html[data-wms-theme=dark] {
    --wms-ink: #f5f5f5 !important;
    --wms-muted: #9a9cae !important;
    --wms-canvas: #0f1014 !important;
    --wms-surface: #15171c !important;
    --wms-line: #26272f !important;
    --wms-accent-text: var(--brand-primary-on-dark, #ff8a9c) !important;
}
html[data-wms-theme=dark] .ui-template-template_2 {
    --wms-muted: #9a9cae !important;
    --control-accent: var(--brand-primary) !important;
    --control-accent-hover: var(--brand-primary-hover) !important;
    --control-soft: var(--brand-primary-soft) !important;
    --control-focus: var(--brand-primary-focus) !important;
    --control-muted: #1b1d24 !important;
}
html[data-wms-theme=dark] .ui-template-template_2 :is(.table th, .table tbody tr:hover, .dh-vehicle-icon, .dh-result-count, .t2-chip, .t2-pill, .dataTables_wrapper > .row.mb-2, .input-group-text) {
    background: #1b1d24 !important;
    border-color: #26272f !important;
    color: #f5f5f5 !important;
}
html[data-wms-theme=dark] .ui-template-template_2 :is(.t2-chip.is-active, .t2-chip:hover, .page-item.active .page-link, .btn-primary) {
    background: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
    color: #ffffff !important;
}
html[data-wms-theme=dark] .ui-template-template_2 .btn-success {
    background: #1b7f3a !important;
    border-color: #249b49 !important;
    color: #ffffff !important;
}
html[data-wms-theme=dark] .ui-template-template_2 .dh-pulse {
    background: #15171c !important;
    border-color: #26272f !important;
}
html[data-wms-theme=dark] .ui-template-template_2 .dh-pulse-total,
html[data-wms-theme=dark] .ui-template-template_2 .dh-home h1,
html[data-wms-theme=dark] .ui-template-template_2 .dh-home h2 {
    color: #f5f5f5 !important;
}
html[data-wms-theme=dark] .ui-template-template_2 .t2-badge--info {
    background: rgba(96, 165, 250, 0.18) !important;
    color: #93c5fd !important;
    border-color: rgba(96, 165, 250, 0.34) !important;
}
html[data-wms-theme=dark] .ui-template-template_2 .t2-badge--ok {
    background: rgba(113, 221, 55, 0.16) !important;
    color: #71dd37 !important;
    border-color: rgba(113, 221, 55, 0.32) !important;
}
html[data-wms-theme=dark] .ui-template-template_2 .t2-badge--danger {
    background: rgba(255, 91, 92, 0.2) !important;
    color: #ff7076 !important;
    border-color: rgba(255, 91, 92, 0.36) !important;
}
html[data-wms-theme=dark] .t2-swatch-btn.is-active {
    border-color: #15171c !important;
    box-shadow: 0 0 0 2.5px #ffffff !important;
}
html[data-wms-theme=dark] .highcharts-background {
    fill: #15171c !important;
}
html[data-wms-theme=dark] .highcharts-axis-labels text {
    fill: #9a9cae !important;
}


/* ============================================================================
 * Executive Left Sidebar Redesign + Interactive Header + Universal Tooltips
 * ============================================================================ */

/* Floating Edge Collapse Toggle on Sidebar Border (Sneat Signature Polish) */
.ui-template-template_2 #sidebar {
    transition: width 0.22s cubic-bezier(0.2, 0, 0, 1);
}
.ui-template-template_2 .main-content {
    transition: margin-left 0.22s cubic-bezier(0.2, 0, 0, 1);
}
.ui-template-template_2 .shms-edge-toggle {
    position: absolute;
    top: 22px;
    right: -13px;
    z-index: 1055;
    width: 26px;
    height: 26px;
    padding: 0;
    border-radius: 50%;
    border: 3px solid var(--wms-canvas, #f5f6f8);
    background: var(--brand-primary, #c8102e);
    color: #ffffff;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(var(--brand-primary-rgb), 0.38);
    transition: transform 0.22s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}
.ui-template-template_2 .shms-edge-toggle:hover {
    background: var(--brand-primary-hover, #a60d26);
    box-shadow: 0 4px 14px rgba(var(--brand-primary-rgb), 0.5);
}
.ui-template-template_2 .shms-edge-toggle i {
    font-size: 13px;
    line-height: 1;
    transition: transform 0.22s ease;
}
html[data-wms-sidebar=compact] .ui-template-template_2 .shms-edge-toggle i {
    transform: rotate(180deg);
}

/* Executive Sidebar Brand Lockup */
.ui-template-template_2 #sidebar .sidebar-brand {
    padding: 16px 16px 0;
}
.ui-template-template_2 #sidebar .sidebar-brand__link {
    padding: 0 2px 15px;
    gap: 12px;
    text-decoration: none;
}
.ui-template-template_2 #sidebar .sidebar-brand__mark {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
    overflow: hidden;
}
html[data-wms-skin=light] .ui-template-template_2 #sidebar .sidebar-brand__mark {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(13, 14, 18, 0.12);
}
.ui-template-template_2 #sidebar .sidebar-brand__mark img {
    width: 38px !important;
    height: 38px !important;
    border-radius: 9px;
}
.ui-template-template_2 #sidebar .sidebar-brand__copy strong {
    font-size: 15px !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em;
}
.ui-template-template_2 #sidebar .sidebar-brand__copy small {
    font-size: 10.5px !important;
    font-weight: 500 !important;
    margin-top: 2px;
    opacity: 0.78;
}

/* Frosted Sidebar Quick-Filter Search */
.ui-template-template_2 #sidebar .t2-nav-search {
    margin: 12px 0 6px;
}
.ui-template-template_2 #sidebar .t2-nav-search__box input {
    height: 36px;
    border-radius: 9px;
    font-size: 12.5px;
}
html:is([data-wms-skin=dark],[data-wms-skin=gradient]) .ui-template-template_2 #sidebar .t2-nav-search__box input {
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid rgba(255, 255, 255, 0.11) !important;
    color: #ffffff !important;
}
html:is([data-wms-skin=dark],[data-wms-skin=gradient]) .ui-template-template_2 #sidebar .t2-nav-search__box input::placeholder {
    color: rgba(203, 213, 225, 0.62) !important;
}
html:is([data-wms-skin=dark],[data-wms-skin=gradient]) .ui-template-template_2 #sidebar .t2-nav-search__box input:focus {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: var(--brand-primary) !important;
    box-shadow: 0 0 0 3px rgba(var(--brand-primary-rgb), 0.25) !important;
}
html:is([data-wms-skin=dark],[data-wms-skin=gradient]) .ui-template-template_2 #sidebar .t2-nav-search__box kbd {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
    color: #cbd5e1 !important;
}

/* Collapsible Section Headers */
.ui-template-template_2 #sidebar .t2-nav-group {
    margin: 14px 0 4px !important;
    padding: 8px 4px 2px !important;
    border-top: 1px solid var(--sb-line);
}
.ui-template-template_2 #sidebar .t2-nav-search + .t2-nav-group {
    border-top: 0;
    padding-top: 2px !important;
    margin-top: 8px !important;
}
.ui-template-template_2 #sidebar .t2-nav-group__toggle {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 2px 6px;
    border: 0;
    background: transparent;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.14s ease;
}
.ui-template-template_2 #sidebar .t2-nav-group__toggle:hover {
    background: var(--sb-hover);
}
.ui-template-template_2 #sidebar .t2-nav-group__chev {
    font-size: 12px;
    color: var(--sb-muted);
    transition: transform 0.18s ease;
    opacity: 0.7;
}
.ui-template-template_2 #sidebar .t2-nav-group.is-collapsed .t2-nav-group__chev {
    transform: rotate(-90deg);
}
.ui-template-template_2 #sidebar .t2-nav-item.is-group-hidden {
    display: none !important;
}

/* Executive Sidebar Navigation Items */
.ui-template-template_2 #sidebar .navbar-nav .t2-nav-item > .nav-link {
    min-height: 39px !important;
    margin: 2px 0 !important;
    padding: 5px 10px !important;
    gap: 10px !important;
    border-radius: 9px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    transition: background-color 0.16s ease, color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease !important;
}
.ui-template-template_2 #sidebar .navbar-nav .t2-nav-item > .nav-link:hover:not(.active) {
    transform: translateX(2px) !important;
}
.ui-template-template_2 #sidebar .t2-nav-icon-wrap {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    font-size: 14.5px;
    transition: background-color 0.16s ease, color 0.16s ease;
}
html:is([data-wms-skin=dark],[data-wms-skin=gradient]) .ui-template-template_2 #sidebar .t2-nav-icon-wrap {
    background: rgba(255, 255, 255, 0.06);
    color: #9a9cae;
}
html[data-wms-skin=light] .ui-template-template_2 #sidebar .t2-nav-icon-wrap {
    background: #f1f4f8;
    color: #52525b;
}
.ui-template-template_2 #sidebar .nav-link:hover .t2-nav-icon-wrap {
    color: #ffffff;
}
html[data-wms-skin=light] .ui-template-template_2 #sidebar .nav-link:hover .t2-nav-icon-wrap {
    background: var(--brand-primary-soft);
    color: var(--brand-primary);
}
html:is([data-wms-skin=dark],[data-wms-skin=gradient]) .ui-template-template_2 #sidebar .nav-link.active,
html:is([data-wms-skin=dark],[data-wms-skin=gradient]) .ui-template-template_2 #sidebar .t2-nav-item > .nav-link.active {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-hover) 100%) !important;
    color: #ffffff !important;
    font-weight: 650 !important;
    box-shadow: 0 4px 14px rgba(var(--brand-primary-rgb), 0.36) !important;
}
html:is([data-wms-skin=dark],[data-wms-skin=gradient]) .ui-template-template_2 #sidebar .nav-link.active .t2-nav-icon-wrap {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
}
html[data-wms-skin=light] .ui-template-template_2 #sidebar .nav-link.active,
html[data-wms-skin=light] .ui-template-template_2 #sidebar .t2-nav-item > .nav-link.active {
    background: var(--brand-primary-soft) !important;
    color: var(--brand-primary) !important;
    font-weight: 700 !important;
    box-shadow: inset 3px 0 0 var(--brand-primary) !important;
}
html[data-wms-skin=light] .ui-template-template_2 #sidebar .nav-link.active .t2-nav-icon-wrap {
    background: var(--brand-primary) !important;
    color: #ffffff !important;
}
.ui-template-template_2 #sidebar .t2-nav-link--future {
    opacity: 0.68;
}
.ui-template-template_2 #sidebar .t2-nav-link--future:hover {
    opacity: 1;
}

/* Compact Rail Mode Fixes */
@media (min-width: 768px) {
    html[data-wms-sidebar=compact] .ui-template-template_2 #sidebar .t2-nav-badge,
    html[data-wms-sidebar=compact] .ui-template-template_2 #sidebar .t2-vendor-strip {
        display: none !important;
    }
    html[data-wms-sidebar=compact] .ui-template-template_2 #sidebar .navbar-nav .t2-nav-item > .nav-link {
        justify-content: center !important;
        padding: 6px !important;
    }
}

/* Executive Sidebar Account Card + Avatar Fix + Vendor Strip */
.ui-template-template_2 #sidebar .t2-account {
    padding: 10px 12px 10px !important;
}
.ui-template-template_2 #sidebar .t2-account__btn {
    padding: 8px 10px !important;
    border-radius: 10px !important;
    border: 1px solid var(--sb-line) !important;
}
html:is([data-wms-skin=dark],[data-wms-skin=gradient]) .ui-template-template_2 #sidebar .t2-account__btn {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}
html:is([data-wms-skin=dark],[data-wms-skin=gradient]) .ui-template-template_2 #sidebar .t2-account__btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}
.ui-template-template_2 .t2-account__avatar .avatar-title,
.ui-template-template_2 .workspace-profile .avatar-title {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-hover) 100%) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    letter-spacing: 0.02em;
}
.ui-template-template_2 .t2-account__avatar > i {
    background: #22c55e !important;
    border-color: var(--sb-bg) !important;
}
.ui-template-template_2 .t2-vendor-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
    padding-top: 7px;
    border-top: 1px solid var(--sb-line);
    font-size: 10.5px;
    color: var(--sb-muted);
    letter-spacing: 0.02em;
}
.ui-template-template_2 .t2-vendor-strip strong {
    color: var(--sb-text);
    font-weight: 700;
}
.ui-template-template_2 .t2-vendor-strip__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.22);
}

/* ---- Interactive Operational Alerts Bell Popover ---- */
.shms-notif-wrap {
    position: relative;
}
.shms-alert-bell {
    position: relative;
}
.shms-bell-dot {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--brand-primary, #c8102e);
    color: #ffffff;
    font-size: 9.5px;
    font-weight: 800;
    display: grid;
    place-items: center;
    border: 2px solid var(--wms-surface, #ffffff);
}
.shms-notif-pop {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: 330px;
    max-width: calc(100vw - 24px);
    z-index: 1080;
    background: var(--wms-surface, #ffffff);
    border: 1px solid var(--wms-line, #dfe2e6);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(13, 14, 18, 0.18);
    overflow: hidden;
}
.shms-notif-pop[hidden] { display: none !important; }
.shms-notif-pop__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid var(--wms-line, #dfe2e6);
    font-size: 13px;
}
.shms-notif-pop__body {
    max-height: 310px;
    overflow-y: auto;
}
.shms-notif-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--wms-line, #edf0f4);
    text-decoration: none;
    color: var(--wms-ink);
    transition: background-color 0.14s ease;
}
.shms-notif-item:last-child { border-bottom: 0; }
.shms-notif-item:hover {
    background: var(--brand-primary-soft);
    text-decoration: none;
}
.shms-notif-item__icon {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: #f3f4f6;
    color: #111216;
    font-size: 14px;
}
.shms-notif-item--danger .shms-notif-item__icon { background: #ffe4e8; color: #c8102e; }
.shms-notif-item--warn .shms-notif-item__icon { background: #fff2d6; color: #b45309; }
.shms-notif-item__copy {
    flex: 1;
    min-width: 0;
    display: grid;
    gap: 1px;
}
.shms-notif-item__copy strong {
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.shms-notif-item__copy small {
    font-size: 11px;
    color: var(--wms-muted);
}

/* ---- Interactive Clickable KPI Cards & Stat Pills ---- */
a.shms-kpi--link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
a.shms-kpi--link:hover {
    transform: translateY(-2px);
    border-color: var(--brand-primary) !important;
    box-shadow: 0 8px 22px rgba(var(--brand-primary-rgb), 0.12);
    text-decoration: none;
}
a.shms-stat-pill {
    transition: background-color 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
a.shms-stat-pill:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.36);
    transform: translateY(-1px);
}
.shms-seat-code {
    cursor: copy;
}

/* ---- Floating Bottom-Right Theme Customizer FAB ---- */
.shms-customizer-fab {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1040;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    border: 0;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-hover) 100%);
    color: #ffffff;
    display: grid;
    place-items: center;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(var(--brand-primary-rgb), 0.4);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.shms-customizer-fab:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 12px 28px rgba(var(--brand-primary-rgb), 0.52);
}

/* ---- Universal Floating Hover Tooltip (#wms-action-tooltip) ---- */
#wms-action-tooltip {
    position: fixed;
    z-index: 9999;
    max-width: 290px;
    padding: 6px 11px;
    border-radius: 8px;
    background: #0d0e12;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-family: var(--shms-font-sans, 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif);
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0.01em;
    box-shadow: 0 10px 26px rgba(13, 14, 18, 0.38);
    pointer-events: none;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.14s ease, transform 0.14s ease;
    white-space: normal;
    text-align: center;
    word-break: break-word;
}
#wms-action-tooltip.is-visible {
    opacity: 1;
    transform: translateY(0);
}
#wms-action-tooltip::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #0d0e12;
}
#wms-action-tooltip.is-bottom::after {
    top: auto;
    bottom: 100%;
    border-top-color: transparent;
    border-bottom-color: #0d0e12;
}
html[data-wms-theme=dark] #wms-action-tooltip {
    background: #f5f5f5;
    color: #0d0e12;
    border-color: rgba(13, 14, 18, 0.16);
}
html[data-wms-theme=dark] #wms-action-tooltip::after {
    border-top-color: #f5f5f5;
}
html[data-wms-theme=dark] #wms-action-tooltip.is-bottom::after {
    border-top-color: transparent;
    border-bottom-color: #f5f5f5;
}

/* ---- Mini Copy Toast ---- */
.shms-mini-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translate(-50%, 14px);
    z-index: 2300;
    padding: 8px 16px;
    border-radius: 999px;
    background: #111216;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 10px 26px rgba(13, 14, 18, 0.36);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}
.shms-mini-toast.is-open {
    opacity: 1;
    transform: translate(-50%, 0);
}


/* ============================================================================
 * Comprehensive Audit Fixes (v4.0.0)
 * Fixes all 12 Theme Customizer + Left Sidebar specificity, contrast & layout flaws
 * ============================================================================ */

/* 1. High-specificity container-fluid padding (beats app.css line 4420) */
body.ui-template-template_2 .navbar-vertical ~ .main-content > .container-fluid,
body.ui-template-template_2 .navbar-vertical:not([style*="display: none"]) ~ .main-content > .container-fluid,
body.ui-template-template_2 .navbar-vertical-sm:not([style*="display: none"]) ~ .main-content > .container-fluid,
body.ui-template-template_2 .main-content > .container-fluid,
body.ui-template-template_2 .main-content > .shms-page-container {
    width: 100% !important;
    max-width: none !important;
    padding: 20px 24px 36px !important;
}
html[data-wms-width="compact"] body.ui-template-template_2 .navbar-vertical ~ .main-content > .container-fluid,
html[data-wms-width="compact"] body.ui-template-template_2 .navbar-vertical:not([style*="display: none"]) ~ .main-content > .container-fluid,
html[data-wms-width="compact"] body.ui-template-template_2 .main-content > .shms-page-container {
    max-width: 1440px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
@media (max-width: 767.98px) {
    body.ui-template-template_2 .navbar-vertical ~ .main-content > .container-fluid,
    body.ui-template-template_2 .navbar-vertical:not([style*="display: none"]) ~ .main-content > .container-fluid,
    body.ui-template-template_2 .main-content > .shms-page-container {
        padding: 14px 12px 28px !important;
    }
}

/* 2. Pixel-aligned 64px Sidebar Brand Header flush with Workspace Bar */
@media (min-width: 768px) {
    .ui-template-template_2 #sidebar .sidebar-brand {
        padding: 0 14px !important;
    }
    .ui-template-template_2 #sidebar .sidebar-brand__link {
        height: 64px !important;
        padding: 0 2px !important;
        box-sizing: border-box !important;
        border-bottom: 1px solid var(--sb-line) !important;
    }
    .ui-template-template_2 .shms-edge-toggle {
        top: 19px !important;
    }
}

/* 3. Beat controls.css (#sidebar --sb-muted/#59665f) & theme-settings.css double search box + sage icon overrides */
html:is([data-wms-skin=dark],[data-wms-skin=gradient]) .ui-template-template_2 #sidebar {
    --sb-text: #e4e6ef !important;
    --sb-muted: #93a9c5 !important;
    --sb-icon: #9a9cae !important;
}
html[data-wms-skin=light] .ui-template-template_2 #sidebar {
    --sb-text: #18181b !important;
    --sb-muted: #636674 !important;
    --sb-icon: #64748b !important;
}
html:is([data-wms-skin=dark],[data-wms-skin=gradient]) .ui-template-template_2 #sidebar .sidebar-brand__copy strong,
html:is([data-wms-skin=dark],[data-wms-skin=gradient]) .ui-template-template_2 #sidebar .t2-account__copy strong {
    color: #ffffff !important;
}
html:is([data-wms-skin=dark],[data-wms-skin=gradient]) .ui-template-template_2 #sidebar .sidebar-brand__copy small,
html:is([data-wms-skin=dark],[data-wms-skin=gradient]) .ui-template-template_2 #sidebar .t2-account__copy small {
    color: #93a9c5 !important;
}
html:is([data-wms-skin=dark],[data-wms-skin=gradient]) .ui-template-template_2 #sidebar .t2-nav-group__label {
    color: #829bb8 !important;
}
html[data-wms-skin=light] .ui-template-template_2 #sidebar .sidebar-brand__copy strong,
html[data-wms-skin=light] .ui-template-template_2 #sidebar .t2-account__copy strong {
    color: #111216 !important;
}
html[data-wms-skin=light] .ui-template-template_2 #sidebar .sidebar-brand__copy small,
html[data-wms-skin=light] .ui-template-template_2 #sidebar .t2-account__copy small,
html[data-wms-skin=light] .ui-template-template_2 #sidebar .t2-nav-group__label {
    color: #64748b !important;
}

/* Remove double-box artifact on .t2-nav-search__box from theme-settings.css line 42 */
html:is([data-wms-skin=dark],[data-wms-skin=gradient]) .ui-template-template_2 #sidebar .t2-nav-search__box {
    background: transparent !important;
    border: 0 !important;
}
html:is([data-wms-skin=dark],[data-wms-skin=gradient]) .ui-template-template_2 #sidebar .t2-nav-search__box > .fe-search {
    color: #93a9c5 !important;
}

/* Ensure sidebar active pill NEVER blends into Navy sidebar even if Midnight (#111216) is chosen as Primary */
html:is([data-wms-skin=dark],[data-wms-skin=gradient]) .ui-template-template_2 #sidebar .nav-link.active,
html:is([data-wms-skin=dark],[data-wms-skin=gradient]) .ui-template-template_2 #sidebar .t2-nav-item > .nav-link.active {
    background: linear-gradient(135deg, var(--brand-sb-active, var(--brand-primary)) 0%, var(--brand-sb-active-end, var(--brand-primary-hover)) 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
}
html:is([data-wms-skin=dark],[data-wms-skin=gradient]) .ui-template-template_2 #sidebar .nav-link .fe {
    color: inherit !important;
}
html:is([data-wms-skin=dark],[data-wms-skin=gradient]) .ui-template-template_2 #sidebar .nav-link.active .fe {
    color: #ffffff !important;
}

/* 4. Sleek custom sidebar scrollbar (fixes pale sage scrollbar on Navy) */
.ui-template-template_2 #sidebar .sidebar-content {
    scrollbar-width: thin !important;
    scrollbar-color: rgba(148, 163, 184, 0.25) transparent !important;
}
.ui-template-template_2 #sidebar .sidebar-content::-webkit-scrollbar {
    width: 5px !important;
}
.ui-template-template_2 #sidebar .sidebar-content::-webkit-scrollbar-track {
    background: transparent !important;
}
.ui-template-template_2 #sidebar .sidebar-content::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.24) !important;
    border-radius: 99px !important;
}
.ui-template-template_2 #sidebar .sidebar-content::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.44) !important;
}

/* 5. Elevated upward Account Dropdown menu (never blends into sidebar) */
.ui-template-template_2 #sidebar .t2-account__menu {
    z-index: 1090 !important;
    margin-bottom: 8px !important;
    box-shadow: 0 18px 42px rgba(0, 14, 32, 0.38) !important;
}
html:is([data-wms-skin=dark],[data-wms-skin=gradient]) .ui-template-template_2 #sidebar .t2-account__menu {
    background: #0a2647 !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
}
html:is([data-wms-skin=dark],[data-wms-skin=gradient]) .ui-template-template_2 #sidebar .t2-account__menu-head,
html:is([data-wms-skin=dark],[data-wms-skin=gradient]) .ui-template-template_2 #sidebar .t2-account__menu .dropdown-item {
    background: transparent !important;
    color: #e4e6ef !important;
}
html:is([data-wms-skin=dark],[data-wms-skin=gradient]) .ui-template-template_2 #sidebar .t2-account__menu .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}
html:is([data-wms-skin=dark],[data-wms-skin=gradient]) .ui-template-template_2 #sidebar .t2-account__menu .t2-account__signout:hover {
    background: rgba(200, 16, 46, 0.24) !important;
    color: #ff99a8 !important;
}

/* 6. Collapsed Rail Mode Polish (un-hide collapsed groups, center icons, right-pop account menu) */
@media (min-width: 768px) {
    html[data-wms-sidebar=compact] .ui-template-template_2 #sidebar .t2-nav-item.is-group-hidden {
        display: block !important;
    }
    html[data-wms-sidebar=compact] .ui-template-template_2 #sidebar .sidebar-brand {
        padding: 0 8px !important;
    }
    html[data-wms-sidebar=compact] .ui-template-template_2 #sidebar .sidebar-brand__link {
        justify-content: center !important;
    }
    html[data-wms-sidebar=compact] .ui-template-template_2 #sidebar .t2-nav-icon-wrap {
        width: 38px !important;
        height: 38px !important;
        flex: 0 0 38px !important;
        font-size: 16px !important;
        border-radius: 10px !important;
    }
    html[data-wms-sidebar=compact] .ui-template-template_2 #sidebar .t2-account__btn {
        justify-content: center !important;
        padding: 8px 4px !important;
    }
    html[data-wms-sidebar=compact] .ui-template-template_2 #sidebar .t2-account__menu {
        left: calc(100% + 12px) !important;
        bottom: 0 !important;
        width: 230px !important;
    }
}

/* 7. Dark Mode + Light White Sidebar Harmony (No blinding white sidebar in Dark Mode!) */
html[data-wms-theme=dark][data-wms-skin=light] .ui-template-template_2 {
    --sb-bg: #15171c !important;
    --sb-line: #26272f !important;
    --sb-text: #f5f5f5 !important;
    --sb-muted: #9a9cae !important;
    --sb-icon: #9a9cae !important;
    --sb-hover: #242730 !important;
    --sb-active-bg: var(--brand-primary-soft) !important;
    --sb-active-text: var(--brand-primary-on-dark) !important;
}
html[data-wms-theme=dark][data-wms-skin=light] .ui-template-template_2 #sidebar,
html[data-wms-theme=dark][data-wms-skin=light] .ui-template-template_2 #sidebarCollapse {
    background: #15171c !important;
    color: #f5f5f5 !important;
    border-right: 1px solid #26272f !important;
}
html[data-wms-theme=dark][data-wms-skin=light] .ui-template-template_2 #sidebar .sidebar-brand__mark {
    background: #242730 !important;
}
html[data-wms-theme=dark][data-wms-skin=light] .ui-template-template_2 #sidebar .sidebar-brand__copy strong,
html[data-wms-theme=dark][data-wms-skin=light] .ui-template-template_2 #sidebar .t2-account__copy strong {
    color: #f5f5f5 !important;
}
html[data-wms-theme=dark][data-wms-skin=light] .ui-template-template_2 #sidebar .sidebar-brand__copy small,
html[data-wms-theme=dark][data-wms-skin=light] .ui-template-template_2 #sidebar .t2-account__copy small,
html[data-wms-theme=dark][data-wms-skin=light] .ui-template-template_2 #sidebar .t2-nav-group__label {
    color: #9a9cae !important;
}
html[data-wms-theme=dark][data-wms-skin=light] .ui-template-template_2 #sidebar .t2-nav-icon-wrap {
    background: #242730 !important;
    color: #9a9cae !important;
}
html[data-wms-theme=dark][data-wms-skin=light] .ui-template-template_2 #sidebar .nav-link,
html[data-wms-theme=dark][data-wms-skin=light] .ui-template-template_2 #sidebar .t2-nav-item > .nav-link {
    color: #d4d6e0 !important;
}
html[data-wms-theme=dark][data-wms-skin=light] .ui-template-template_2 #sidebar .nav-link.active,
html[data-wms-theme=dark][data-wms-skin=light] .ui-template-template_2 #sidebar .t2-nav-item > .nav-link.active {
    background: var(--brand-primary-soft) !important;
    color: var(--brand-primary-on-dark) !important;
    box-shadow: inset 3px 0 0 var(--brand-primary-on-dark) !important;
}
html[data-wms-theme=dark][data-wms-skin=light] .ui-template-template_2 #sidebar .nav-link.active .t2-nav-icon-wrap {
    background: var(--brand-sb-active, var(--brand-primary)) !important;
    color: #ffffff !important;
}
html[data-wms-theme=dark][data-wms-skin=light] .ui-template-template_2 #sidebar .t2-nav-search__box input {
    background: #1b1d24 !important;
    border: 1px solid #26272f !important;
    color: #f5f5f5 !important;
}
html[data-wms-theme=dark][data-wms-skin=light] .ui-template-template_2 #sidebar .t2-account {
    background: #1b1d24 !important;
}
html[data-wms-theme=dark][data-wms-skin=light] .ui-template-template_2 #sidebar .t2-account__menu {
    background: #1b1d24 !important;
    border-color: #26272f !important;
}
html[data-wms-theme=dark][data-wms-skin=light] .ui-template-template_2 #sidebar .t2-nav-badge {
    background: #242730 !important;
    color: #f5f5f5 !important;
}

/* 8. Full Dark Mode Coverage for Bootstrap Utilities & Domain Components */
html[data-wms-theme=dark] .ui-template-template_2 :is(.bg-light, .table-light, .alert-light, .list-group-item) {
    background-color: #1b1d24 !important;
    color: #f5f5f5 !important;
    border-color: #26272f !important;
}
html[data-wms-theme=dark] .ui-template-template_2 .text-dark {
    color: #f5f5f5 !important;
}
html[data-wms-theme=dark] .ui-template-template_2 .text-primary {
    color: #93c5fd !important;
}
html[data-wms-theme=dark] .ui-template-template_2 .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%) !important;
}
html[data-wms-theme=dark] .ui-template-template_2 .shms-kpi__icon {
    background: #242730 !important;
    color: #93c5fd !important;
}
html[data-wms-theme=dark] .ui-template-template_2 .shms-kpi__icon--amber { background: rgba(255, 171, 0, 0.2) !important; color: #ffbe3d !important; }
html[data-wms-theme=dark] .ui-template-template_2 .shms-kpi__icon--rose { background: rgba(255, 91, 92, 0.22) !important; color: #ff7076 !important; }
html[data-wms-theme=dark] .ui-template-template_2 .shms-kpi__icon--blue { background: rgba(56, 213, 247, 0.2) !important; color: #38d5f7 !important; }
html[data-wms-theme=dark] .ui-template-template_2 .shms-notif-pop,
html[data-wms-theme=dark] .ui-template-template_2 .shms-search-results {
    background: #15171c !important;
    border-color: #26272f !important;
    color: #f5f5f5 !important;
}
html[data-wms-theme=dark] .ui-template-template_2 .shms-notif-item,
html[data-wms-theme=dark] .ui-template-template_2 .shms-search-item {
    color: #f5f5f5 !important;
    border-color: #26272f !important;
}
html[data-wms-theme=dark] .ui-template-template_2 .shms-notif-item__icon {
    background: #242730 !important;
    color: #93c5fd !important;
}
html[data-wms-theme=dark] .ui-template-template_2 .workspace-status {
    background: #1b1d24 !important;
    color: #f5f5f5 !important;
    border-color: #26272f !important;
}
html[data-wms-theme=dark] .ui-template-template_2 .workspace-eyebrow,
html[data-wms-theme=dark] .ui-template-template_2 .dh-home .dh-eyebrow,
html[data-wms-theme=dark] .t2-customizer .t2-theme-eyebrow {
    color: var(--brand-primary-on-dark) !important;
}
html[data-wms-theme=dark] .t2-opt-card input:checked + span,
html[data-wms-theme=dark] .t2-opt-pill input:checked + span {
    border-color: var(--brand-primary-on-dark) !important;
    color: var(--brand-primary-on-dark) !important;
}
/* Keep printable documents inside modals white-paper crisp even in Dark Mode (v5.0.0) */
html[data-wms-theme=dark] .ui-template-template_2 .shms-doc {
    background: #ffffff !important;
    border-color: #dfe2e6 !important;
    color: #18181b !important;
}
html[data-wms-theme=dark] .ui-template-template_2 .shms-doc :is(h1, h2, h3, h4, h5, h6, p, div, span, td, th, strong, small, li) {
    color: #18181b !important;
}
html[data-wms-theme=dark] .ui-template-template_2 .shms-doc .text-muted { color: #52525b !important; }
html[data-wms-theme=dark] .ui-template-template_2 .shms-doc .text-success { color: #15803d !important; }
html[data-wms-theme=dark] .ui-template-template_2 .shms-doc .text-danger { color: #b91c1c !important; }
html[data-wms-theme=dark] .ui-template-template_2 .shms-doc .text-primary { color: #1d4ed8 !important; }
html[data-wms-theme=dark] .ui-template-template_2 .shms-doc :is(.badge.bg-dark, .badge.bg-success, .badge.bg-danger, .badge.bg-primary, .badge.bg-info, .badge.bg-secondary) {
    color: #ffffff !important;
}
html[data-wms-theme=dark] .ui-template-template_2 .shms-doc .t2-pill,
html[data-wms-theme=dark] .ui-template-template_2 .shms-doc .shms-seat-code {
    background: #f3f4f6 !important;
    border-color: #d4d6e0 !important;
    color: #111216 !important;
}
html[data-wms-theme=dark] .ui-template-template_2 .shms-doc .alert-danger {
    background: #fef2f2 !important;
    border-color: #fecaca !important;
    color: #991b1b !important;
}
html[data-wms-theme=dark] .ui-template-template_2 .shms-doc table,
html[data-wms-theme=dark] .ui-template-template_2 .shms-doc td,
html[data-wms-theme=dark] .ui-template-template_2 .shms-doc th,
html[data-wms-theme=dark] .ui-template-template_2 .shms-doc tbody tr:hover,
html[data-wms-theme=dark] .ui-template-template_2 .shms-doc tbody tr:hover td {
    background: #ffffff !important;
    border-color: #dfe2e6 !important;
}
html[data-wms-theme=dark] .ui-template-template_2 .shms-doc thead th,
html[data-wms-theme=dark] .ui-template-template_2 .shms-doc tr.table-light,
html[data-wms-theme=dark] .ui-template-template_2 .shms-doc tr.table-light td,
html[data-wms-theme=dark] .ui-template-template_2 .shms-doc tr.table-light th {
    background: #f3f5f8 !important;
    color: #111216 !important;
}

/* 9. TopNav & Combo Executive Bar Polish */
.ui-template-template_2 .t2-topnav {
    align-items: center !important;
    padding: 8px 24px !important;
    gap: 6px !important;
    z-index: 95 !important;
    box-shadow: 0 2px 8px rgba(13, 14, 18, 0.05);
}
.ui-template-template_2 .t2-topnav summary {
    padding: 7px 12px !important;
    border-radius: 8px !important;
    font-size: 12.5px !important;
    font-weight: 650 !important;
    color: var(--wms-ink) !important;
    transition: background-color 0.14s ease, color 0.14s ease;
}
.ui-template-template_2 .t2-topnav summary:hover,
.ui-template-template_2 .t2-topnav details[open] > summary,
.ui-template-template_2 .t2-topnav .is-current > summary {
    background: var(--brand-primary-soft) !important;
    color: var(--brand-primary) !important;
}
html[data-wms-theme=dark] .ui-template-template_2 .t2-topnav summary:hover,
html[data-wms-theme=dark] .ui-template-template_2 .t2-topnav details[open] > summary,
html[data-wms-theme=dark] .ui-template-template_2 .t2-topnav .is-current > summary {
    color: var(--brand-primary-on-dark) !important;
}
.ui-template-template_2 .t2-topnav-menu {
    width: 260px !important;
    padding: 8px !important;
    border-radius: 12px !important;
    z-index: 1085 !important;
}
.ui-template-template_2 .t2-topnav-menu .nav-link {
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
    padding: 7px 10px !important;
    border-radius: 8px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    color: var(--wms-ink) !important;
}
.ui-template-template_2 .t2-topnav-menu .t2-nav-icon-wrap {
    width: 24px !important;
    height: 24px !important;
    flex: 0 0 24px !important;
    display: grid;
    place-items: center;
    border-radius: 6px;
    background: var(--brand-primary-soft);
    color: var(--brand-primary);
    font-size: 13px;
}
.ui-template-template_2 .t2-topnav-menu .nav-link:hover,
.ui-template-template_2 .t2-topnav-menu .nav-link.active {
    background: var(--brand-primary) !important;
    color: #ffffff !important;
}
.ui-template-template_2 .t2-topnav-menu .nav-link:hover .t2-nav-icon-wrap,
.ui-template-template_2 .t2-topnav-menu .nav-link.active .t2-nav-icon-wrap {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}
.ui-template-template_2 .t2-topnav-menu .t2-nav-badge {
    background: var(--brand-primary-soft) !important;
    color: var(--brand-primary) !important;
}
.ui-template-template_2 .t2-topnav-menu .nav-link.active .t2-nav-badge,
.ui-template-template_2 .t2-topnav-menu .nav-link:hover .t2-nav-badge {
    background: rgba(255, 255, 255, 0.24) !important;
    color: #ffffff !important;
}
.ui-template-template_2 .t2-topnav__brand span {
    color: var(--brand-primary) !important;
}

/* 10. Gradient Workspace Mode Glass Polish */
html[data-wms-theme=gradient] .ui-template-template_2 :is(.card, .panel, .dh-panel, .dh-pulse, .shms-kpi, .shms-unit-card) {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(8px);
}

/* 11. Customizer Sidebar-Only Dim State when TopNav Selected */
.t2-cust-dimmed {
    opacity: 0.45;
    pointer-events: none;
}

/* ============================================================================
 * Deep Edge-Case Polish (v4.1.0)
 * Eliminates all residual RHD green leaks in Dark/Gradient modes, fixes Dark Mode
 * links & Midnight (#111216) accent buttons, mobile drawer dark contrast, and z-index.
 * ============================================================================ */

/* A. Guarantee desktop sidebar + edge toggle + compact flyout paint cleanly above workspace-bar */
@media (min-width: 768px) {
    .ui-template-template_2 #sidebar {
        z-index: 1035 !important;
        overflow: visible !important;
    }
    .ui-template-template_2 #sidebar > .container-fluid {
        overflow: visible !important;
    }
}

/* B. Card Skin Default (Shadow) subtle elevation vs Bordered (Flat) */
html[data-wms-card-skin="default"] .ui-template-template_2 :is(.card, .panel, .dh-panel, .dh-pulse, .shms-kpi, .shms-unit-card) {
    box-shadow: 0 3px 12px rgba(13, 14, 18, 0.065) !important;
}
html[data-wms-theme=dark][data-wms-card-skin="default"] .ui-template-template_2 :is(.card, .panel, .dh-panel, .dh-pulse, .shms-kpi, .shms-unit-card) {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28) !important;
}

/* C. Custom Hex Color Picker active visual ring */
.t2-custom-color-wrap.is-active {
    border-style: solid !important;
    border-color: #ffffff !important;
    box-shadow: 0 0 0 2.5px var(--wms-ink) !important;
}
html[data-wms-theme=dark] .t2-custom-color-wrap.is-active {
    border-color: #15171c !important;
    box-shadow: 0 0 0 2.5px #ffffff !important;
}

/* D. Beat controls.css (#42625d RHD teal) in Gradient Theme Mode */
html[data-wms-theme=gradient] {
    --wms-green: var(--brand-primary) !important;
    --wms-green-deep: var(--brand-primary-hover) !important;
    --wms-green-soft: var(--brand-primary-soft) !important;
}
html[data-wms-theme=gradient] .ui-template-template_2 {
    --control-accent: var(--brand-primary) !important;
    --control-accent-hover: var(--brand-primary-hover) !important;
    --control-soft: var(--brand-primary-soft) !important;
    --control-focus: var(--brand-primary-focus) !important;
    --wms-green: var(--brand-primary) !important;
    --wms-green-deep: var(--brand-primary-hover) !important;
    --wms-green-soft: var(--brand-primary-soft) !important;
}

/* E. Strip EVERY residual RHD Forest/Mint Green (#24372d, #326e4c, #b4ddc1) in Dark Mode */
html[data-wms-theme=dark] .ui-template-template_2 :is(
    .t2-chip, .t2-chip__count, .t2-list-summary__meta, .t2-sort-hint,
    .t2-vehicle__model, .t2-link-btn, .t2-qr-btn, .t2-icon-btn,
    .t2-filter-select > span, .t2-filter-select > select, .t2-master-filter select,
    .t2-mcard__head, .t2-pill, .t2-detail__tags span, .t2-history__tags span,
    .t2-settings-actions, .t2-settings-help, .input-group-text, .custom-file-label,
    input[type=file], .select2-search__field, .select2-selection__choice,
    .t2-history__empty, .t2-locked, .t2-back-link, .t2-profile .card.bg-light,
    .t2-profile .form-control[readonly], .form-group .input-group > .input-group-addon,
    .t2-profile .btn-white, .t2-import-icon, .t2-import-step,
    .dataTables_paginate .paginate_button > a,
    .daterangepicker td.off, .daterangepicker td.in-range,
    .cke, .cke_inner, .cke_top, .cke_bottom, .cke_toolgroup, .cke_combo_button
) {
    background: #1b1d24 !important;
    color: #f5f5f5 !important;
    border-color: #26272f !important;
}
html[data-wms-theme=dark] .ui-template-template_2 :is(
    .t2-chip__label, .t2-vehicle__bn, .t2-muted, .t2-dates, .t2-num,
    .t2-detail__meta, .t2-slip__meta, .t2-history__eyebrow, .help-block,
    .text-muted, .select2-selection__rendered, .dropdown-item, .workspace-date,
    .t2-list-summary__meta, .t2-history__empty :is(strong, span)
) {
    color: #9a9cae !important;
}
html[data-wms-theme=dark] .ui-template-template_2 :is(
    .t2-history__empty strong, .dropdown-item, .select2-selection__rendered
) {
    color: #f5f5f5 !important;
}
html[data-wms-theme=dark] .ui-template-template_2 .dropdown-item:hover,
html[data-wms-theme=dark] .ui-template-template_2 .dropdown-item:focus {
    background: #242730 !important;
    color: #ffffff !important;
}
html[data-wms-theme=dark] .ui-template-template_2 :is(
    .select2-results__option[aria-selected=true],
    .select2-results__option--selected
) {
    background: #242730 !important;
    color: #ffffff !important;
}
html[data-wms-theme=dark] .ui-template-template_2 :is(
    .select2-results__option--highlighted,
    .daterangepicker .ranges li.active,
    .daterangepicker td.active,
    .dataTables_paginate .paginate_button.active > a
) {
    background: var(--brand-sb-active, var(--brand-primary)) !important;
    border-color: var(--brand-sb-active, var(--brand-primary)) !important;
    color: #ffffff !important;
}
html[data-wms-theme=dark] .ui-template-template_2 .dataTables_processing {
    background: rgba(43, 44, 64, 0.96) !important;
    color: #f5f5f5 !important;
    border-color: #26272f !important;
}
html[data-wms-theme=dark] .ui-template-template_2 .t2-profile__tabs a.active {
    background: var(--brand-primary-soft) !important;
    border-color: var(--brand-primary-on-dark) !important;
    color: var(--brand-primary-on-dark) !important;
}
html[data-wms-theme=dark] .ui-template-template_2 :is(
    .dh-vehicle-link, .dh-slip-id, .dh-stat-bottom a, .workspace-crumbs a,
    .t2-settings-help code, .t2-back-link, .t2-badge a, .t2-detail__title a,
    .t2-mcard__grid a, .t2-mcard__foot a:not(.btn), .t2-detail__grid a, .t2-history__legend,
    .table td a:not(.btn), .input-group-text, .t2-filter-select > span:not(.select2-container)
) {
    color: #93c5fd !important;
}
html[data-wms-theme=dark] .ui-template-template_2 a:not(.btn):not(.nav-link):not(.dropdown-item):not(.page-link):not(.shms-kpi--link):not(.shms-mini-unit):not(.shms-tab):not(.t2-topnav__brand):not(.shms-notif-item):not(.shms-search-item):not(.shms-stat-pill):not(.dh-shortcuts a):not(.sidebar-brand__link) {
    color: #93c5fd;
}
html[data-wms-theme=dark] .ui-template-template_2 a:not(.btn):not(.nav-link):not(.dropdown-item):not(.page-link):not(.shms-kpi--link):not(.shms-mini-unit):not(.shms-tab):not(.t2-topnav__brand):not(.shms-notif-item):not(.shms-search-item):not(.shms-stat-pill):not(.dh-shortcuts a):not(.sidebar-brand__link):hover {
    color: var(--brand-primary-on-dark);
}
html[data-wms-theme=dark] .ui-template-template_2 .btn-primary strong,
html[data-wms-theme=dark] .ui-template-template_2 .btn-success strong {
    background: transparent !important;
    border: 0 !important;
    color: #ffffff !important;
}

/* F. Ensure Midnight (#111216) Primary Swatch buttons, tabs, chips & FAB pop cleanly in Dark Mode */
html[data-wms-theme=dark] .ui-template-template_2 :is(
    .btn-primary, .t2-chip.is-active, .t2-chip:hover,
    .page-item.active .page-link, .shms-tab.is-active, .shms-tab:hover,
    .t2-topnav-menu .nav-link.active, .t2-topnav-menu .nav-link:hover,
    .t2-cust-btn-primary, .shms-customizer-fab, .shms-edge-toggle
) {
    background: var(--brand-sb-active, var(--brand-primary)) !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
    color: #ffffff !important;
}
html[data-wms-theme=dark] .ui-template-template_2 .btn-outline-primary {
    color: var(--brand-primary-on-dark) !important;
    border-color: var(--brand-primary-on-dark) !important;
    background: var(--brand-primary-soft) !important;
}
html[data-wms-theme=dark] .ui-template-template_2 .btn-outline-primary:hover {
    background: var(--brand-sb-active, var(--brand-primary)) !important;
    color: #ffffff !important;
}
html[data-wms-theme=dark] .ui-template-template_2 .t2-topnav__brand span {
    color: var(--brand-primary-on-dark) !important;
}

/* G. Compact Sidebar Hover Tooltip (.t2-nav-tip) aligned to SANFI Navy / Dark Slate */
.t2-nav-tip {
    background: #0d0e12 !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 26px rgba(13, 14, 18, 0.40) !important;
}
.t2-nav-tip::before {
    border-right-color: #0d0e12 !important;
}
html[data-wms-theme=dark] .t2-nav-tip {
    background: #f5f5f5 !important;
    color: #0d0e12 !important;
    border-color: rgba(13, 14, 18, 0.16);
}
html[data-wms-theme=dark] .t2-nav-tip::before {
    border-right-color: #f5f5f5 !important;
}

/* H. Mobile Topbar & Drawer (<768px) Harmony across all Sidebar Skins + Dark Mode */
html[data-wms-theme=dark][data-wms-skin=light] .ui-template-template_2 .navbar-toggler {
    border-color: #26272f !important;
}
html[data-wms-theme=dark][data-wms-skin=light] .ui-template-template_2 .navbar-toggler-icon {
    filter: brightness(0) invert(1) !important;
}
html[data-wms-skin=gradient] .ui-template-template_2 #sidebar .t2-drawer-head {
    background: transparent !important;
}
html:is([data-wms-skin=dark],[data-wms-skin=gradient]) .ui-template-template_2 #sidebar .t2-drawer-head__brand strong {
    color: #ffffff !important;
}
html:is([data-wms-skin=dark],[data-wms-skin=gradient]) .ui-template-template_2 #sidebar .t2-drawer-head__brand small {
    color: #93a9c5 !important;
}
html[data-wms-theme=dark][data-wms-skin=light] .ui-template-template_2 #sidebar .t2-drawer-head {
    background: #1b1d24 !important;
    border-bottom-color: #26272f !important;
}
html[data-wms-theme=dark][data-wms-skin=light] .ui-template-template_2 #sidebar .t2-drawer-head__brand strong {
    color: #f5f5f5 !important;
}
html[data-wms-theme=dark][data-wms-skin=light] .ui-template-template_2 #sidebar .t2-drawer-close {
    color: #f5f5f5 !important;
    border-color: #26272f !important;
    background: #242730 !important;
}
@media (max-width: 767.98px) {
    .ui-template-template_2 #sidebar .sidebar-brand {
        padding: 0 !important;
    }
    .ui-template-template_2 #sidebar .sidebar-brand__link {
        height: auto !important;
        padding: 0 !important;
        border-bottom: 0 !important;
    }
    .ui-template-template_2 #sidebar .sidebar-brand__mark {
        width: 34px !important;
        height: 34px !important;
        flex: 0 0 34px !important;
        border-radius: 9px !important;
    }
    .ui-template-template_2 #sidebar .sidebar-brand__mark img {
        width: 32px !important;
        height: 32px !important;
    }
}

/* I. TopNav Brand Logo crisp rounded square */
.ui-template-template_2 .t2-topnav__brand img {
    border-radius: 7px !important;
}

/* ============================================================================
 * Executive Interactive Menu System (v4.2.0)
 * Sidebar groups/filter/rail dividers + TopNav icons/hover/flip + Header +Quick/Profile
 * + Hybrid ⌘K Command Search + Segmented Executive Sub-Tab Menus
 * ============================================================================ */

/* 1. Left Sidebar Interactive Enhancements */
.ui-template-template_2 #sidebar .t2-nav-search__clear {
    position: absolute;
    right: 8px;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    display: grid;
    place-items: center;
    background: transparent;
    color: var(--sb-muted);
    cursor: pointer;
    font-size: 12px;
    z-index: 2;
}
.ui-template-template_2 #sidebar .t2-nav-search__clear:hover {
    background: var(--sb-hover);
    color: var(--sb-text);
}
.ui-template-template_2 #sidebar .t2-nav-search__clear[hidden] {
    display: none !important;
}
.ui-template-template_2 #sidebar .t2-nav-group__label {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
}
.ui-template-template_2 #sidebar .t2-nav-group__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-primary, #c8102e);
    box-shadow: 0 0 0 3px rgba(var(--brand-primary-rgb), 0.24);
    flex-shrink: 0;
}
.ui-template-template_2 #sidebar .t2-nav-group__right {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.ui-template-template_2 #sidebar .t2-nav-group__count {
    display: none;
    font-size: 9.5px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 999px;
    background: var(--sb-hover);
    color: var(--sb-muted);
}
.ui-template-template_2 #sidebar .t2-nav-group.is-collapsed .t2-nav-group__count {
    display: inline-block;
}
.ui-template-template_2 #sidebar .navbar-nav .t2-nav-item > .nav-link:hover .t2-nav-icon-wrap {
    transform: scale(1.06);
}
.ui-template-template_2 #sidebar .navbar-nav .t2-nav-item > .nav-link.is-kbd-focus {
    outline: 2px solid var(--brand-sb-active, var(--brand-primary)) !important;
    outline-offset: -1px;
    background: var(--sb-hover) !important;
}
.ui-template-template_2 #sidebar .t2-nav-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 20px 12px;
    color: var(--sb-muted);
    font-size: 12px;
}
.ui-template-template_2 #sidebar .t2-nav-empty[hidden] {
    display: none !important;
}
/* Compact Rail visual dividers between operational groups */
@media (min-width: 768px) {
    html[data-wms-sidebar=compact] .ui-template-template_2 #sidebar .t2-nav-group {
        display: block !important;
        margin: 8px auto !important;
        padding: 0 !important;
        width: 28px;
        height: 1px;
        border: 0 !important;
        background: var(--sb-line) !important;
        overflow: hidden;
    }
    html[data-wms-sidebar=compact] .ui-template-template_2 #sidebar .t2-nav-search + .t2-nav-group {
        display: none !important;
    }
    html[data-wms-sidebar=compact] .ui-template-template_2 #sidebar .t2-nav-group > * {
        display: none !important;
    }
}

/* 2. Executive TopNav / Combo Horizontal Menu */
.ui-template-template_2 .t2-topnav summary {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
}
.ui-template-template_2 .t2-topnav summary::after {
    content: none !important;
    display: none !important;
}
.ui-template-template_2 .t2-topnav__gicon {
    font-size: 14px;
    opacity: 0.78;
}
.ui-template-template_2 .t2-topnav .is-current > summary .t2-topnav__gicon,
.ui-template-template_2 .t2-topnav details[open] > summary .t2-topnav__gicon {
    opacity: 1;
}
.ui-template-template_2 .t2-topnav__chev {
    font-size: 12px;
    opacity: 0.62;
    transition: transform 0.18s ease;
}
.ui-template-template_2 .t2-topnav details[open] > summary .t2-topnav__chev {
    transform: rotate(180deg);
    opacity: 1;
}
@keyframes t2TopMenuIn {
    from { opacity: 0; transform: translateY(-6px) scale(0.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.ui-template-template_2 .t2-topnav details[open] > .t2-topnav-menu {
    animation: t2TopMenuIn 0.15s cubic-bezier(0.2, 0, 0, 1);
    box-shadow: 0 18px 40px rgba(13, 14, 18, 0.16) !important;
}
.ui-template-template_2 .t2-topnav-menu.is-align-right {
    left: auto !important;
    right: 0 !important;
}
html[data-wms-theme=dark] .ui-template-template_2 .t2-topnav details[open] > .t2-topnav-menu {
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.48) !important;
}

/* 3. Workspace Header Interactive Popovers (+ Quick, Staff Profile, ⌘K Command Search) */
.shms-pop-wrap {
    position: relative;
}
.shms-quick-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid var(--brand-primary-border, rgba(200, 16, 46, 0.28));
    background: var(--brand-primary-soft, rgba(200, 16, 46, 0.1));
    color: var(--brand-primary, #c8102e);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.14s ease;
}
.shms-quick-btn:hover,
.shms-quick-btn.is-open {
    background: var(--brand-primary, #c8102e);
    border-color: var(--brand-primary, #c8102e);
    color: #ffffff;
}
.shms-quick-btn__chev {
    font-size: 12px;
    transition: transform 0.16s ease;
}
.shms-quick-btn.is-open .shms-quick-btn__chev {
    transform: rotate(180deg);
}
html[data-wms-theme=dark] .shms-quick-btn {
    background: var(--brand-primary-soft);
    border-color: var(--brand-primary-on-dark);
    color: var(--brand-primary-on-dark);
}
html[data-wms-theme=dark] .shms-quick-btn:hover,
html[data-wms-theme=dark] .shms-quick-btn.is-open {
    background: var(--brand-sb-active, var(--brand-primary));
    border-color: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.shms-profile-trigger {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 11px;
    padding: 4px 8px 4px 5px;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}
.shms-profile-trigger:hover,
.shms-profile-trigger.is-open {
    background: var(--brand-primary-soft);
    border-color: var(--brand-primary-border);
}
.shms-profile-chev {
    font-size: 13px;
    color: var(--wms-muted);
    margin-left: 2px;
    transition: transform 0.16s ease;
}
.shms-profile-trigger.is-open .shms-profile-chev {
    transform: rotate(180deg);
}

.shms-menu-pop {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: 280px;
    max-width: calc(100vw - 24px);
    z-index: 1085;
    background: var(--wms-surface, #ffffff);
    border: 1px solid var(--wms-line, #dfe2e6);
    border-radius: 14px;
    box-shadow: 0 18px 44px rgba(13, 14, 18, 0.18);
    overflow: hidden;
    animation: t2TopMenuIn 0.15s cubic-bezier(0.2, 0, 0, 1);
}
.shms-menu-pop[hidden] {
    display: none !important;
}
.shms-menu-pop__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 14px;
    border-bottom: 1px solid var(--wms-line, #dfe2e6);
    font-size: 12.5px;
}
.shms-profile-pop__head {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px 14px;
    border-bottom: 1px solid var(--wms-line, #dfe2e6);
    background: var(--wms-canvas, #f5f6f8);
}
.shms-menu-pop__body {
    padding: 6px;
    max-height: 360px;
    overflow-y: auto;
}
.shms-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--wms-ink, #18181b);
    text-decoration: none;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.14s ease, color 0.14s ease;
}
.shms-menu-item:hover,
.shms-menu-item:focus-visible,
.shms-menu-item.is-active {
    background: var(--brand-primary-soft);
    color: var(--brand-primary);
    text-decoration: none;
    outline: none;
}
.shms-menu-item__icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: #f3f4f6;
    color: #111216;
    font-size: 14px;
    transition: background-color 0.14s ease, color 0.14s ease;
}
.shms-menu-item:hover .shms-menu-item__icon,
.shms-menu-item.is-active .shms-menu-item__icon {
    background: var(--brand-primary);
    color: #ffffff;
}
.shms-menu-item__copy {
    min-width: 0;
    display: grid;
    gap: 1px;
}
.shms-menu-item__copy strong {
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.25;
}
.shms-menu-item__copy small {
    font-size: 11px;
    color: var(--wms-muted);
    line-height: 1.2;
}
.shms-menu-divider {
    height: 1px;
    margin: 5px 8px;
    background: var(--wms-line, #dfe2e6);
}
.shms-menu-item--danger:hover {
    background: rgba(200, 16, 46, 0.12) !important;
    color: #c8102e !important;
}
.shms-menu-item--danger:hover .shms-menu-item__icon {
    background: #c8102e !important;
    color: #ffffff !important;
}

/* Dark Mode for Workspace Popover Menus */
html[data-wms-theme=dark] .shms-menu-pop {
    background: #15171c !important;
    border-color: #26272f !important;
    box-shadow: 0 20px 46px rgba(0, 0, 0, 0.5) !important;
}
html[data-wms-theme=dark] .shms-profile-pop__head {
    background: #0f1014 !important;
    border-color: #26272f !important;
}
html[data-wms-theme=dark] .shms-menu-item {
    color: #f5f5f5 !important;
}
html[data-wms-theme=dark] .shms-menu-item:hover,
html[data-wms-theme=dark] .shms-menu-item.is-active {
    background: var(--brand-primary-soft) !important;
    color: var(--brand-primary-on-dark) !important;
}
html[data-wms-theme=dark] .shms-menu-item__icon {
    background: #242730 !important;
    color: #93c5fd !important;
}
html[data-wms-theme=dark] .shms-menu-item:hover .shms-menu-item__icon,
html[data-wms-theme=dark] .shms-menu-item.is-active .shms-menu-item__icon {
    background: var(--brand-sb-active, var(--brand-primary)) !important;
    color: #ffffff !important;
}

/* Hybrid ⌘K Command Search Polish */
.shms-global-search input {
    padding-right: 44px !important;
}
.shms-search-kbd {
    position: absolute;
    right: 9px;
    top: 50%;
    transform: translateY(-50%);
    padding: 2px 6px;
    border-radius: 5px;
    border: 1px solid var(--wms-line, #dfe2e6);
    background: var(--wms-surface, #ffffff);
    color: var(--wms-muted, #636674);
    font-size: 10px;
    font-weight: 700;
    pointer-events: none;
}
.shms-global-search input:focus ~ .shms-search-kbd {
    opacity: 0;
}
.shms-search-section {
    padding: 7px 12px 4px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--wms-muted);
    background: var(--wms-canvas, #f5f6f8);
    border-bottom: 1px solid var(--wms-line, #edf0f4);
}
.shms-search-item__lead {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}
.shms-search-item__lead > i {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    border-radius: 7px;
    display: grid;
    place-items: center;
    background: var(--brand-primary-soft);
    color: var(--brand-primary);
    font-size: 13px;
}
.shms-search-item__grp {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: var(--brand-primary);
    line-height: 1.1;
}
.shms-search-item.is-active,
.shms-search-item:hover {
    background: var(--brand-primary-soft) !important;
}
html[data-wms-theme=dark] .shms-search-kbd {
    background: #242730;
    border-color: #26272f;
    color: #9a9cae;
}
html[data-wms-theme=dark] .shms-search-section {
    background: #0f1014;
    border-color: #26272f;
}
html[data-wms-theme=dark] .shms-search-item__lead > i,
html[data-wms-theme=dark] .shms-search-item__grp {
    color: var(--brand-primary-on-dark);
}

/* 4. Executive Segmented Sub-Tab Menus (.shms-tabs / .shms-tab) */
.ui-template-template_2 .shms-tabs {
    display: inline-flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: 100%;
    gap: 4px;
    padding: 4px !important;
    border: 1px solid var(--wms-line, #dfe2e6) !important;
    border-radius: 12px;
    background: var(--wms-surface, #ffffff);
    box-shadow: 0 2px 6px rgba(13, 14, 18, 0.04);
    scrollbar-width: none;
}
.ui-template-template_2 .shms-tabs::-webkit-scrollbar {
    display: none;
}
.ui-template-template_2 .shms-tab {
    white-space: nowrap;
    padding: 7px 13px;
    border-radius: 9px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--wms-muted, #636674);
    font-size: 12.5px;
    font-weight: 650;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.14s ease;
}
.ui-template-template_2 .shms-tab:hover:not(.is-active) {
    background: var(--brand-primary-soft);
    border-color: transparent;
    color: var(--brand-primary);
}
.ui-template-template_2 .shms-tab.is-active {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-hover) 100%);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(var(--brand-primary-rgb), 0.3);
}
.ui-template-template_2 .shms-tab__count {
    font-size: 10.5px;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #111216;
    margin-left: 2px;
}
.ui-template-template_2 .shms-tab.is-active .shms-tab__count {
    background: rgba(255, 255, 255, 0.24);
    color: #ffffff;
}
html[data-wms-theme=dark] .ui-template-template_2 .shms-tabs {
    background: #15171c !important;
    border-color: #26272f !important;
}
html[data-wms-theme=dark] .ui-template-template_2 .shms-tab:not(.is-active) {
    background: transparent !important;
    border-color: transparent !important;
    color: #9a9cae !important;
}
html[data-wms-theme=dark] .ui-template-template_2 .shms-tab:hover:not(.is-active) {
    background: #242730 !important;
    color: #ffffff !important;
}
html[data-wms-theme=dark] .ui-template-template_2 .shms-tab__count {
    background: #242730;
    color: #f5f5f5;
}
html[data-wms-theme=dark] .ui-template-template_2 .shms-tab.is-active .shms-tab__count {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

/* ============================================================================
 * Universal jQuery-Style Validation Errors & Required Element Highlighting (v4.3.0)
 * ============================================================================ */

/* Required Field Label Marker (*) */
.ui-template-template_2 .shms-req-star {
    color: #c8102e !important;
    font-weight: 800;
    margin-left: 2px;
    font-size: 1em;
    line-height: 1;
}
html[data-wms-theme=dark] .ui-template-template_2 .shms-req-star {
    color: #ff7076 !important;
}

/* Required Control Visual Accent (clearly distinguishes mandatory inputs from optional) */
.ui-template-template_2 .form-control.shms-required-control,
.ui-template-template_2 .form-select.shms-required-control,
.ui-template-template_2 select.shms-required-control,
.ui-template-template_2 textarea.shms-required-control,
.ui-template-template_2 .select2-selection.shms-required-control {
    border-left: 3px solid rgba(var(--brand-primary-rgb), 0.58) !important;
}
.ui-template-template_2 .auth-t2__control.shms-required-control-wrap .form-control {
    border-left: 3px solid rgba(var(--brand-primary-rgb), 0.65) !important;
}
html[data-wms-theme=dark] .ui-template-template_2 .form-control.shms-required-control,
html[data-wms-theme=dark] .ui-template-template_2 .form-select.shms-required-control,
html[data-wms-theme=dark] .ui-template-template_2 textarea.shms-required-control,
html[data-wms-theme=dark] .ui-template-template_2 .select2-selection.shms-required-control {
    border-left: 3px solid var(--brand-primary-on-dark, #ff8a9c) !important;
}

/* Valid Completed Required Control Accent */
.ui-template-template_2 .form-control.shms-required-control.is-valid,
.ui-template-template_2 .form-select.shms-required-control.is-valid,
.ui-template-template_2 textarea.shms-required-control.is-valid,
.ui-template-template_2 .select2-selection.shms-required-control.is-valid {
    border-left: 3px solid #1b7f3a !important;
}
html[data-wms-theme=dark] .ui-template-template_2 .form-control.shms-required-control.is-valid,
html[data-wms-theme=dark] .ui-template-template_2 .form-select.shms-required-control.is-valid,
html[data-wms-theme=dark] .ui-template-template_2 textarea.shms-required-control.is-valid,
html[data-wms-theme=dark] .ui-template-template_2 .select2-selection.shms-required-control.is-valid {
    border-left: 3px solid #4ade80 !important;
}

/* Invalid Control Highlight (Red border + crimson bar + rose surface + glow) */
@keyframes shmsFieldShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
}
.ui-template-template_2 .form-control.error,
.ui-template-template_2 .form-control.is-invalid,
.ui-template-template_2 .form-control.shms-input-error,
.ui-template-template_2 .form-select.error,
.ui-template-template_2 .form-select.is-invalid,
.ui-template-template_2 .form-select.shms-input-error,
.ui-template-template_2 textarea.error,
.ui-template-template_2 textarea.is-invalid,
.ui-template-template_2 .select2-selection.is-invalid,
.ui-template-template_2 .select2-selection.shms-input-error {
    border-color: #dc2626 !important;
    border-left: 3.5px solid #c8102e !important;
    background-color: #fff6f7 !important;
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.14) !important;
    background-image: none !important;
}
.ui-template-template_2 .shms-field-has-error > label:not(.error),
.ui-template-template_2 .shms-field-has-error > .auth-t2__field-row > label:not(.error) {
    color: #b91c1c !important;
}
html[data-wms-theme=dark] .ui-template-template_2 .form-control.error,
html[data-wms-theme=dark] .ui-template-template_2 .form-control.is-invalid,
html[data-wms-theme=dark] .ui-template-template_2 .form-control.shms-input-error,
html[data-wms-theme=dark] .ui-template-template_2 .form-select.error,
html[data-wms-theme=dark] .ui-template-template_2 .form-select.is-invalid,
html[data-wms-theme=dark] .ui-template-template_2 textarea.error,
html[data-wms-theme=dark] .ui-template-template_2 textarea.is-invalid,
html[data-wms-theme=dark] .ui-template-template_2 .select2-selection.is-invalid {
    border-color: #f87171 !important;
    border-left: 3.5px solid #ff5b5c !important;
    background-color: rgba(220, 38, 38, 0.12) !important;
    box-shadow: 0 0 0 3px rgba(255, 91, 92, 0.22) !important;
}
html[data-wms-theme=dark] .ui-template-template_2 .shms-field-has-error > label:not(.error),
html[data-wms-theme=dark] .ui-template-template_2 .shms-field-has-error > .auth-t2__field-row > label:not(.error) {
    color: #ff8a9c !important;
}

/* jQuery Validate Inline Error Message (label.error) */
@keyframes shmsErrIn {
    from { opacity: 0; transform: translateY(-3px); }
    to { opacity: 1; transform: translateY(0); }
}
.ui-template-template_2 label.error {
    display: flex !important;
    align-items: flex-start;
    gap: 6px;
    width: 100%;
    margin: 5px 0 2px !important;
    padding: 4px 8px;
    border-radius: 7px;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #be123c !important;
    font-size: 11.5px !important;
    font-weight: 650 !important;
    line-height: 1.35 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    animation: shmsErrIn 0.16s ease-out;
}
.ui-template-template_2 label.error::before {
    content: "!";
    display: inline-grid;
    place-items: center;
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    margin-top: 1px;
    border-radius: 50%;
    background: #c8102e;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}
html[data-wms-theme=dark] .ui-template-template_2 label.error {
    background: rgba(220, 38, 38, 0.16) !important;
    border-color: rgba(248, 113, 113, 0.36) !important;
    color: #fca5a5 !important;
}
html[data-wms-theme=dark] .ui-template-template_2 label.error::before {
    background: #ff5b5c;
    color: #1f1215;
}

/* Form-Level jQuery Inline Error Summary Banner */
.shms-form-error-banner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    padding: 11px 13px;
    border-radius: 10px;
    background: #fff1f2;
    border: 1px solid #fda4af;
    border-left: 4px solid #c8102e;
    color: #9f1239;
    font-size: 12.5px;
    line-height: 1.4;
    animation: shmsErrIn 0.16s ease-out;
}
.shms-form-error-banner__icon {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: #ffe4e6;
    color: #c8102e;
    font-size: 14px;
}
.shms-form-error-banner__body {
    flex: 1;
    min-width: 0;
}
.shms-form-error-banner__body strong {
    display: block;
    font-weight: 700;
    color: #9f1239 !important;
}
.shms-form-error-banner__list {
    margin: 5px 0 0;
    padding-left: 18px;
    font-size: 12px;
}
.shms-form-error-banner__close {
    border: 0;
    background: transparent;
    color: #9f1239;
    padding: 2px 4px;
    border-radius: 6px;
    cursor: pointer;
    line-height: 1;
}
.shms-form-error-banner__close:hover {
    background: rgba(200, 16, 46, 0.12);
}
html[data-wms-theme=dark] .shms-form-error-banner {
    background: rgba(220, 38, 38, 0.16) !important;
    border-color: rgba(248, 113, 113, 0.35) !important;
    border-left-color: #ff5b5c !important;
    color: #fecaca !important;
}
html[data-wms-theme=dark] .shms-form-error-banner__icon {
    background: rgba(255, 91, 92, 0.22);
    color: #ff8a9c;
}
html[data-wms-theme=dark] .shms-form-error-banner__body strong,
html[data-wms-theme=dark] .shms-form-error-banner__close {
    color: #fecaca !important;
}

/* ============================================================================
 * Universal Searchable Select2 (>5 options), Bootstrap Datepicker & Photo Picker (v4.4.0)
 * ============================================================================ */

/* 1. Searchable Select2 Polish (Modals + Toolbars + Dark Mode) */
.ui-template-template_2 .select2-container--open {
    z-index: 1095 !important;
}
.ui-template-template_2 .modal .select2-container--open {
    z-index: 1110 !important;
}
.ui-template-template_2 .shms-select2-sm .select2-selection--single {
    height: 34px !important;
    min-height: 34px !important;
    font-size: 12.5px !important;
}
.ui-template-template_2 .shms-select2-sm {
    min-width: 155px;
}
.ui-template-template_2 .select2-container--default .select2-search--dropdown .select2-search__field {
    border-radius: 7px !important;
    padding: 6px 10px !important;
    font-size: 12.5px !important;
}

/* 2. Universal Bootstrap Datepicker Styling (Light + Dark + Modals) */
.ui-template-template_2 input.shms-datepicker-input {
    padding-right: 34px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%235f6c78' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 15px 15px !important;
    cursor: pointer;
}
html[data-wms-theme=dark] .ui-template-template_2 input.shms-datepicker-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%23a5a7c2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E") !important;
}
.datepicker.datepicker-dropdown {
    z-index: 1165 !important;
    padding: 10px !important;
    border-radius: 12px !important;
    border: 1px solid var(--wms-line, #dfe2e6) !important;
    background: var(--wms-surface, #ffffff) !important;
    color: var(--wms-ink, #18181b) !important;
    box-shadow: 0 18px 42px rgba(13, 14, 18, 0.18) !important;
    font-family: var(--shms-font-sans, 'Public Sans', sans-serif) !important;
    font-size: 12.5px !important;
}
.datepicker table tr td,
.datepicker table tr th {
    border-radius: 7px !important;
    width: 32px;
    height: 30px;
}
.datepicker table tr td.active,
.datepicker table tr td.active:hover,
.datepicker table tr td span.active,
.datepicker table tr td span.active:hover {
    background: var(--brand-primary, #c8102e) !important;
    background-image: none !important;
    color: #ffffff !important;
    font-weight: 700 !important;
}
.datepicker table tr td.today,
.datepicker table tr td.today:hover {
    background: var(--brand-primary-soft, rgba(200, 16, 46, 0.1)) !important;
    background-image: none !important;
    color: var(--brand-primary, #c8102e) !important;
    font-weight: 700 !important;
}
.datepicker table tr td.day:hover,
.datepicker table tr td span:hover,
.datepicker thead tr:first-child th:hover,
.datepicker tfoot tr th:hover {
    background: var(--brand-primary-soft, rgba(200, 16, 46, 0.1)) !important;
    color: var(--wms-ink, #18181b) !important;
}
html[data-wms-theme=dark] .datepicker.datepicker-dropdown {
    background: #15171c !important;
    border-color: #26272f !important;
    color: #f5f5f5 !important;
    box-shadow: 0 20px 46px rgba(0, 0, 0, 0.5) !important;
}
html[data-wms-theme=dark] .datepicker table tr td.old,
html[data-wms-theme=dark] .datepicker table tr td.new {
    color: #636674 !important;
}
html[data-wms-theme=dark] .datepicker table tr td.today {
    color: var(--brand-primary-on-dark, #ff8a9c) !important;
}
html[data-wms-theme=dark] .datepicker table tr td.active,
html[data-wms-theme=dark] .datepicker table tr td span.active {
    background: var(--brand-sb-active, var(--brand-primary)) !important;
    color: #ffffff !important;
}
html[data-wms-theme=dark] .datepicker table tr td.day:hover,
html[data-wms-theme=dark] .datepicker table tr td span:hover,
html[data-wms-theme=dark] .datepicker thead tr:first-child th:hover,
html[data-wms-theme=dark] .datepicker tfoot tr th:hover {
    background: #242730 !important;
    color: #ffffff !important;
}

/* 3. Reusable Executive Photo Uploader (.shms-img-picker) & Thumbnails */
.shms-img-picker {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 13px;
    border: 1.5px dashed var(--wms-line, #e2e4e9);
    border-radius: 12px;
    background: var(--wms-canvas, #f8f9fb);
    transition: border-color 0.15s ease, background-color 0.15s ease;
}
.shms-img-picker:hover {
    border-color: var(--brand-primary-border, rgba(200, 16, 46, 0.35));
}
.shms-img-picker__preview {
    width: 66px;
    height: 66px;
    flex: 0 0 66px;
    border-radius: 11px;
    overflow: hidden;
    border: 1px solid var(--wms-line, #dfe2e6);
    background: var(--wms-surface, #ffffff);
    display: grid;
    place-items: center;
}
.shms-img-picker__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.shms-img-picker__img[hidden],
.shms-img-picker__placeholder[hidden],
.shms-img-picker__clear[hidden],
.shms-img-picker__err[hidden] {
    display: none !important;
}
.shms-img-picker__placeholder {
    color: var(--wms-muted, #64748b);
    font-size: 22px;
}
.shms-img-picker__meta {
    flex: 1;
    min-width: 0;
}
.shms-img-picker__title {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--wms-ink, #18181b);
}
.shms-img-picker__hint {
    display: block;
    font-size: 11px;
    color: var(--wms-muted, #636674);
    margin-bottom: 6px;
}
.shms-img-picker__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
html[data-wms-theme=dark] .shms-img-picker {
    background: #0f1014 !important;
    border-color: #26272f !important;
}
html[data-wms-theme=dark] .shms-img-picker__preview {
    background: #1b1d24 !important;
    border-color: #26272f !important;
}

/* Crisp Table Thumbnails & Detail Modal Photos */
.shms-tbl-thumb {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 9px;
    object-fit: cover;
    border: 1px solid var(--wms-line, #dfe2e6);
    background: #f3f4f6;
    display: inline-grid;
    place-items: center;
    color: #111216;
    font-size: 13px;
    font-weight: 700;
}
.shms-tbl-thumb--circle {
    border-radius: 50%;
}
html[data-wms-theme=dark] .shms-tbl-thumb {
    background: #242730;
    border-color: #26272f;
    color: #93c5fd;
}
.t2-detail__media img.shms-detail-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    display: block;
}
.shms-asset-photo-box {
    width: 100%;
    max-height: 165px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--wms-line, #dfe2e6);
    margin-bottom: 10px;
    background: var(--wms-surface, #ffffff);
}
.shms-asset-photo-box img {
    width: 100%;
    max-height: 165px;
    object-fit: cover;
    display: block;
}

/* ============================================================================
 * International Standard Semantic Button Color System (v4.5.0)
 * Distinct WCAG AA/AAA colors across Light, Gradient & Dark Modes:
 *   Green = Success/Create/Save/Collect/Income | Red = Danger/Delete/Reverse/Expense
 *   Yellow = Warning/History/Adjust/Repair     | Blue = Info/Edit/View/Transfer/Filter
 *   Navy = Dark/Print/PDF/Backup               | Slate = Secondary/Cancel/Neutral
 * ============================================================================ */

/* Success — Emerald Green (#16a34a) */
.ui-template-template_2 .btn-success,
html[data-wms-theme=dark] .ui-template-template_2 .btn-success {
    background-color: #16a34a !important;
    border-color: #16a34a !important;
    color: #ffffff !important;
}
.ui-template-template_2 .btn-success:hover,
.ui-template-template_2 .btn-success:focus,
html[data-wms-theme=dark] .ui-template-template_2 .btn-success:hover {
    background-color: #15803d !important;
    border-color: #15803d !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.30) !important;
}

/* Danger — Crimson Red (#dc2626) */
.ui-template-template_2 .btn-danger,
html[data-wms-theme=dark] .ui-template-template_2 .btn-danger {
    background-color: #dc2626 !important;
    border-color: #dc2626 !important;
    color: #ffffff !important;
}
.ui-template-template_2 .btn-danger:hover,
.ui-template-template_2 .btn-danger:focus,
html[data-wms-theme=dark] .ui-template-template_2 .btn-danger:hover {
    background-color: #b91c1c !important;
    border-color: #b91c1c !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.30) !important;
}

/* Warning — Amber Yellow (#f59e0b with crisp #1c1917 dark ink — AAA contrast) */
.ui-template-template_2 .btn-warning,
html[data-wms-theme=dark] .ui-template-template_2 .btn-warning {
    background-color: #f59e0b !important;
    border-color: #d97706 !important;
    color: #1c1917 !important;
    font-weight: 700 !important;
}
.ui-template-template_2 .btn-warning:hover,
.ui-template-template_2 .btn-warning:focus,
html[data-wms-theme=dark] .ui-template-template_2 .btn-warning:hover {
    background-color: #d97706 !important;
    border-color: #b45309 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.34) !important;
}

/* Info — Sky Blue (#0284c7) */
.ui-template-template_2 .btn-info,
html[data-wms-theme=dark] .ui-template-template_2 .btn-info {
    background-color: #0284c7 !important;
    border-color: #0284c7 !important;
    color: #ffffff !important;
}
.ui-template-template_2 .btn-info:hover,
.ui-template-template_2 .btn-info:focus,
html[data-wms-theme=dark] .ui-template-template_2 .btn-info:hover {
    background-color: #0369a1 !important;
    border-color: #0369a1 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.30) !important;
}

/* Dark — Obsidian Black (#111216 Light / Slate #334155 Dark) for Print, PDF, Labels & Backups */
.ui-template-template_2 .btn-dark {
    background-color: #111216 !important;
    border-color: #111216 !important;
    color: #ffffff !important;
}
.ui-template-template_2 .btn-dark:hover,
.ui-template-template_2 .btn-dark:focus {
    background-color: #1b1d24 !important;
    border-color: #1b1d24 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(13, 14, 18, 0.28) !important;
}
html[data-wms-theme=dark] .ui-template-template_2 .btn-dark {
    background-color: #242730 !important;
    border-color: #363843 !important;
    color: #f8fafc !important;
}
html[data-wms-theme=dark] .ui-template-template_2 .btn-dark:hover {
    background-color: #303340 !important;
    border-color: #464857 !important;
    color: #ffffff !important;
}

/* Secondary — Cool Slate (#475569) */
.ui-template-template_2 .btn-secondary {
    background-color: #475569 !important;
    border-color: #475569 !important;
    color: #ffffff !important;
}
.ui-template-template_2 .btn-secondary:hover {
    background-color: #334155 !important;
    border-color: #334155 !important;
    color: #ffffff !important;
}

/* Semantic Outline Buttons (CSV Export, Info, Caution, Destructive, Neutral) */
.ui-template-template_2 .btn-outline-success {
    background-color: rgba(22, 163, 74, 0.08) !important;
    border-color: #16a34a !important;
    color: #15803d !important;
    font-weight: 650;
}
.ui-template-template_2 .btn-outline-success:hover {
    background-color: #16a34a !important;
    border-color: #16a34a !important;
    color: #ffffff !important;
}
html[data-wms-theme=dark] .ui-template-template_2 .btn-outline-success {
    background-color: rgba(34, 197, 94, 0.14) !important;
    border-color: #4ade80 !important;
    color: #4ade80 !important;
}
html[data-wms-theme=dark] .ui-template-template_2 .btn-outline-success:hover {
    background-color: #16a34a !important;
    border-color: #16a34a !important;
    color: #ffffff !important;
}

.ui-template-template_2 .btn-outline-info {
    background-color: rgba(2, 132, 199, 0.08) !important;
    border-color: #0284c7 !important;
    color: #0369a1 !important;
    font-weight: 650;
}
.ui-template-template_2 .btn-outline-info:hover {
    background-color: #0284c7 !important;
    border-color: #0284c7 !important;
    color: #ffffff !important;
}
html[data-wms-theme=dark] .ui-template-template_2 .btn-outline-info {
    background-color: rgba(14, 165, 233, 0.15) !important;
    border-color: #38bdf8 !important;
    color: #38bdf8 !important;
}
html[data-wms-theme=dark] .ui-template-template_2 .btn-outline-info:hover {
    background-color: #0284c7 !important;
    border-color: #0284c7 !important;
    color: #ffffff !important;
}

.ui-template-template_2 .btn-outline-warning {
    background-color: rgba(245, 158, 11, 0.10) !important;
    border-color: #d97706 !important;
    color: #b45309 !important;
    font-weight: 650;
}
.ui-template-template_2 .btn-outline-warning:hover {
    background-color: #f59e0b !important;
    border-color: #d97706 !important;
    color: #1c1917 !important;
}
html[data-wms-theme=dark] .ui-template-template_2 .btn-outline-warning {
    background-color: rgba(245, 158, 11, 0.16) !important;
    border-color: #fbbf24 !important;
    color: #fbbf24 !important;
}
html[data-wms-theme=dark] .ui-template-template_2 .btn-outline-warning:hover {
    background-color: #f59e0b !important;
    border-color: #f59e0b !important;
    color: #1c1917 !important;
}

.ui-template-template_2 .btn-outline-danger {
    background-color: rgba(220, 38, 38, 0.08) !important;
    border-color: #dc2626 !important;
    color: #dc2626 !important;
    font-weight: 650;
}
.ui-template-template_2 .btn-outline-danger:hover {
    background-color: #dc2626 !important;
    border-color: #dc2626 !important;
    color: #ffffff !important;
}
html[data-wms-theme=dark] .ui-template-template_2 .btn-outline-danger {
    background-color: rgba(239, 68, 68, 0.15) !important;
    border-color: #f87171 !important;
    color: #fca5a5 !important;
}
html[data-wms-theme=dark] .ui-template-template_2 .btn-outline-danger:hover {
    background-color: #dc2626 !important;
    border-color: #dc2626 !important;
    color: #ffffff !important;
}

.ui-template-template_2 .btn-outline-dark {
    background-color: rgba(13, 14, 18, 0.06) !important;
    border-color: #111216 !important;
    color: #111216 !important;
    font-weight: 650;
}
.ui-template-template_2 .btn-outline-dark:hover {
    background-color: #111216 !important;
    border-color: #111216 !important;
    color: #ffffff !important;
}
html[data-wms-theme=dark] .ui-template-template_2 .btn-outline-dark {
    background-color: rgba(148, 163, 184, 0.12) !important;
    border-color: #94a3b8 !important;
    color: #e2e8f0 !important;
}
html[data-wms-theme=dark] .ui-template-template_2 .btn-outline-dark:hover {
    background-color: #475569 !important;
    border-color: #475569 !important;
    color: #ffffff !important;
}

.ui-template-template_2 .btn-outline-secondary {
    background-color: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #334155 !important;
    font-weight: 600;
}
.ui-template-template_2 .btn-outline-secondary:hover {
    background-color: #475569 !important;
    border-color: #475569 !important;
    color: #ffffff !important;
}
html[data-wms-theme=dark] .ui-template-template_2 .btn-outline-secondary {
    background-color: #1b1d24 !important;
    border-color: #363843 !important;
    color: #d4d6e0 !important;
}
html[data-wms-theme=dark] .ui-template-template_2 .btn-outline-secondary:hover {
    background-color: #475569 !important;
    border-color: #64748b !important;
    color: #ffffff !important;
}

/* Remove filter:brightness hack from controls.css so clean semantic hover colors apply */
.ui-template-template_2 :is(.btn-info, .btn-warning, .btn-danger, .btn-success, .btn-dark):hover {
    filter: none !important;
}

/* ============================================================================
 * Global Button Sizing, Icon Alignment, Semantic Polish & Table Column Fix (v4.6.0)
 * Overrides legacy dashboard_css.blade.php .btn-xs & table.table-bordered rules
 * ============================================================================ */

/* 1. Neutralize legacy 5px/145px table-bordered column squashing from dashboard_css.blade.php */
.ui-template-template_2 table.table-bordered th:first-child,
.ui-template-template_2 table.table-bordered td:first-child {
    width: auto !important;
    text-align: inherit !important;
}
.ui-template-template_2 table.table-bordered th:last-child,
.ui-template-template_2 table.table-bordered td:last-child {
    width: auto !important;
    text-align: inherit !important;
    border-right-width: 1px !important;
}
.ui-template-template_2 table.table-bordered th.shms-num,
.ui-template-template_2 table.table-bordered td.shms-num,
.ui-template-template_2 table.table-bordered th.text-end,
.ui-template-template_2 table.table-bordered td.text-end {
    text-align: right !important;
}
.ui-template-template_2 table.table-bordered th.shms-action-col,
.ui-template-template_2 table.table-bordered td.shms-action-col {
    white-space: nowrap !important;
    text-align: right !important;
    width: 1% !important;
}

/* 2. Uniform Button Geometry & Crisp Feather Icon Alignment */
.ui-template-template_2 .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 600;
    line-height: 1.3;
    vertical-align: middle;
}
.ui-template-template_2 .btn.w-100 {
    display: flex;
}
.ui-template-template_2 .btn.text-start {
    justify-content: flex-start;
}
.ui-template-template_2 .btn i,
.ui-template-template_2 .btn em {
    font-size: 1.05em;
    line-height: 1;
    flex-shrink: 0;
}
.ui-template-template_2 .btn-sm,
.ui-template-template_2 .btn-group-sm > .btn {
    min-height: 32px;
    padding: 5px 12px;
    font-size: 12px;
    border-radius: 8px;
    gap: 6px;
}
.ui-template-template_2 .btn-xs,
.ui-template-template_2 .btn-group-xs > .btn {
    min-height: 28px !important;
    padding: 4px 10px !important;
    font-size: 11.5px !important;
    line-height: 1.25 !important;
    border-radius: 7px !important;
    font-weight: 600 !important;
    gap: 5px !important;
}
.ui-template-template_2 .table td .btn {
    min-height: 29px;
    padding: 4px 10px;
    border-radius: 7px;
    font-size: 11.5px;
    white-space: nowrap;
    vertical-align: middle;
}
.ui-template-template_2 .table td .btn:not(:has(> span)):has(> i:only-child, > em:only-child) {
    min-width: 30px;
    padding: 5px 8px;
}
.ui-template-template_2 .table td .btn + .btn {
    margin-left: 4px;
}

/* 3. Neutral .btn-white & Customizer Footer Buttons Icon Alignment */
.ui-template-template_2 .btn-white {
    background-color: #ffffff !important;
    border: 1px solid var(--wms-line, #cbd5e1) !important;
    color: var(--wms-ink, #18181b) !important;
}
.ui-template-template_2 .btn-white:hover {
    background-color: #f1f5f9 !important;
    border-color: #94a3b8 !important;
    color: #111216 !important;
}
html[data-wms-theme=dark] .ui-template-template_2 .btn-white {
    background-color: #1b1d24 !important;
    border-color: #363843 !important;
    color: #f5f5f5 !important;
}
html[data-wms-theme=dark] .ui-template-template_2 .btn-white:hover {
    background-color: #2d303c !important;
    color: #ffffff !important;
}
.t2-cust-btn-outline,
.t2-cust-btn-primary {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
}
.ui-template-template_2 .fileinput-button {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
.ui-template-template_2 .user-password-toggle,
.ui-template-template_2 .permissions-filters button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* ============================================================================
 * Metronic 8 Obsidian Black Chrome & Dark-Mode Surface Refinement (v4.7.0)
 * ============================================================================ */
html[data-wms-theme=dark] .ui-template-template_2 .workspace-bar,
html[data-wms-theme=dark] .ui-template-template_2 .t2-topnav {
    background: #0d0e12 !important;
    border-bottom-color: #1f212a !important;
}
html[data-wms-theme=dark] .ui-template-template_2 :is(.card, .panel, .panel-heading, .panel-body, .panel-footer, .modal-content, .modal-header, .modal-body, .modal-footer, .dropdown-menu, .dh-panel, .dh-hero, .dh-pulse, .t2-theme-panel, .t2-topnav-menu, .shms-menu-pop, .shms-kpi, .shms-unit-card, .shms-mini-unit) {
    background-color: #15171c !important;
    border-color: #26272f !important;
}
html[data-wms-theme=dark] .ui-template-template_2 :is(.form-control, .form-select, .select2-selection, .select2-dropdown, .select2-search__field, .shms-global-search input) {
    background-color: #1b1d24 !important;
    border-color: #26272f !important;
    color: #f5f5f5 !important;
}
html[data-wms-theme=dark] .ui-template-template_2 :is(.t2-chip, .t2-pill, .input-group-text, .dataTables_paginate .paginate_button > a, .workspace-logout, .page-link) {
    background-color: #1b1d24 !important;
    border-color: #26272f !important;
    color: #d4d6e0 !important;
}
html[data-wms-theme=dark] .ui-template-template_2 :is(.workspace-logout:hover, .dropdown-item:hover, .table tbody tr:hover, .shms-search-item:hover) {
    background-color: #242730 !important;
    color: #ffffff !important;
}
html[data-wms-skin=dark] .ui-template-template_2 #sidebar,
html[data-wms-skin=dark] .ui-template-template_2 #sidebarCollapse {
    background: #0d0e12 !important;
    border-right: 1px solid #1f212a !important;
}
html[data-wms-skin=dark] .ui-template-template_2 #sidebar .t2-account {
    background: #15171c !important;
    border-top-color: #1f212a !important;
}
html[data-wms-skin=dark] .ui-template-template_2 #sidebar .nav-link:hover:not(.active) {
    background: #1b1d24 !important;
    color: #ffffff !important;
}
html[data-wms-theme=dark] .ui-template-template_2 .user-password-section,
html[data-wms-theme=dark] .ui-template-template_2 .user-role-section,
html[data-wms-theme=dark] .ui-template-template_2 .module-permission {
    background: #15171c !important;
    border-color: #26272f !important;
}
html[data-wms-theme=dark] .ui-template-template_2 .user-role-icon,
html[data-wms-theme=dark] .ui-template-template_2 .permissions-filters,
html[data-wms-theme=dark] .ui-template-template_2 .permissions-columns {
    background: #1b1d24 !important;
    color: #d4d6e0 !important;
    border-color: #26272f !important;
}
html[data-wms-theme=dark] .ui-template-template_2 .permissions-filters button.is-active {
    background: #242730 !important;
    color: #ffffff !important;
}
html[data-wms-theme=dark] .ui-template-template_2 .t2-nav-tip {
    background: #f5f5f5 !important;
    color: #0d0e12 !important;
}
html[data-wms-theme=dark] .ui-template-template_2 .t2-nav-tip::before {
    border-right-color: #f5f5f5 !important;
}
.ui-template-template_2 .t2-nav-tip {
    background: #0d0e12 !important;
    color: #ffffff !important;
}
.ui-template-template_2 .t2-nav-tip::before {
    border-right-color: #0d0e12 !important;
}

/* ============================================================================
 * Universal Screen-Adaptive Full-Width & Full-Height Modals (v4.8.0)
 * Responsive to viewport: edge-padded full-screen workspace modal on desktop
 * & tablet, edge-to-edge 100vw x 100dvh on mobile, sticky header & footer.
 * ============================================================================ */
.ui-template-template_2 .modal {
    padding: 0 !important;
}
.ui-template-template_2 .modal .modal-dialog,
.ui-template-template_2 .modal .modal-dialog.modal-sm,
.ui-template-template_2 .modal .modal-dialog.modal-lg,
.ui-template-template_2 .modal .modal-dialog.modal-xl {
    width: calc(100vw - 32px) !important;
    max-width: calc(100vw - 32px) !important;
    height: calc(100vh - 32px) !important;
    height: calc(100dvh - 32px) !important;
    max-height: calc(100dvh - 32px) !important;
    min-height: 0 !important;
    margin: 16px auto !important;
    display: flex !important;
    align-items: stretch !important;
}
.ui-template-template_2 .modal .modal-content {
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    border-radius: 14px !important;
    box-shadow: 0 24px 64px rgba(9, 10, 13, 0.42) !important;
}
.ui-template-template_2 .modal .modal-content > form {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
}
.ui-template-template_2 .modal .modal-header {
    flex: 0 0 auto !important;
    padding: 16px 26px !important;
    border-bottom: 1px solid var(--wms-line, #e2e4e9) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px;
}
.ui-template-template_2 .modal .modal-header .modal-title {
    font-size: 17px !important;
    font-weight: 800 !important;
    letter-spacing: -0.01em;
    margin: 0 !important;
}
.ui-template-template_2 .modal .modal-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    padding: 24px 28px !important;
}
.ui-template-template_2 .modal .modal-footer {
    flex: 0 0 auto !important;
    padding: 14px 26px !important;
    border-top: 1px solid var(--wms-line, #e2e4e9) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px;
}
.ui-template-template_2 #modalBootstrap .modal-body > form {
    display: block;
}
.ui-template-template_2 .modal .modal-footer .pull-right {
    float: none !important;
}
@media (max-width: 991.98px) {
    .ui-template-template_2 .modal .modal-dialog,
    .ui-template-template_2 .modal .modal-dialog.modal-sm,
    .ui-template-template_2 .modal .modal-dialog.modal-lg,
    .ui-template-template_2 .modal .modal-dialog.modal-xl {
        width: calc(100vw - 16px) !important;
        max-width: calc(100vw - 16px) !important;
        height: calc(100vh - 16px) !important;
        height: calc(100dvh - 16px) !important;
        max-height: calc(100dvh - 16px) !important;
        margin: 8px auto !important;
    }
    .ui-template-template_2 .modal .modal-header { padding: 14px 18px !important; }
    .ui-template-template_2 .modal .modal-body { padding: 18px 18px !important; }
    .ui-template-template_2 .modal .modal-footer { padding: 12px 18px !important; }
}
@media (max-width: 767.98px) {
    .ui-template-template_2 .modal .modal-dialog,
    .ui-template-template_2 .modal .modal-dialog.modal-sm,
    .ui-template-template_2 .modal .modal-dialog.modal-lg,
    .ui-template-template_2 .modal .modal-dialog.modal-xl {
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        margin: 0 !important;
    }
    .ui-template-template_2 .modal .modal-content {
        border-radius: 0 !important;
        border: 0 !important;
    }
}

/* ============================================================================
 * Focus-Based Role-Aware Executive Dashboard (v4.9.0)
 * ============================================================================ */
.shms-focus-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 20px;
    margin-bottom: 14px;
    background: var(--wms-surface, #ffffff);
    border: 1px solid var(--wms-line, #e2e4e9);
    border-top: 3px solid var(--brand-primary, #c8102e);
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(13, 14, 18, 0.05);
}
.shms-focus-bar__eyebrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brand-primary, #c8102e);
    margin-bottom: 4px;
}
.shms-focus-bar__date {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--wms-muted, #636674);
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
    font-size: 11px;
}
.shms-focus-bar__copy h1 {
    font-size: 20px !important;
    font-weight: 800 !important;
    margin: 0 0 3px !important;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.shms-focus-bar__copy p {
    margin: 0 !important;
    font-size: 12.5px !important;
    color: var(--wms-muted, #636674);
}
.shms-focus-bar__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

/* Segmented Focus Lens Switcher */
.shms-focus-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    padding: 6px;
    background: var(--wms-surface, #ffffff);
    border: 1px solid var(--wms-line, #e2e4e9);
    border-radius: 12px;
}
.shms-focus-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: var(--wms-muted, #636674);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.shms-focus-tab:hover {
    background: var(--brand-secondary-soft, #f3f4f6);
    color: var(--wms-ink, #18181b);
}
.shms-focus-tab.is-active {
    background: var(--brand-secondary, #111216);
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(13, 14, 18, 0.20);
}
.shms-focus-tab i {
    font-size: 14px;
    line-height: 1;
}
.shms-focus-badge {
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(13, 14, 18, 0.08);
    color: var(--wms-ink, #18181b);
    font-variant-numeric: tabular-nums;
}
.shms-focus-tab.is-active .shms-focus-badge {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}
.shms-focus-badge--danger {
    background: #dc2626 !important;
    color: #ffffff !important;
}
.shms-focus-badge--warn {
    background: #f59e0b !important;
    color: #1c1917 !important;
}
.shms-focus-badge--ok {
    background: #16a34a !important;
    color: #ffffff !important;
}
.shms-focus-pane[hidden] {
    display: none !important;
}

/* Priority Queue Cards */
.shms-priority-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.shms-priority-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 13px;
    border: 1px solid var(--wms-line, #e2e4e9);
    border-left: 3.5px solid #0284c7;
    border-radius: 10px;
    background: var(--wms-canvas, #f5f6f8);
}
.shms-priority-item--danger { border-left-color: #dc2626; }
.shms-priority-item--warn   { border-left-color: #f59e0b; }
.shms-priority-item--info   { border-left-color: #0284c7; }
.shms-priority-item__icon {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: var(--wms-surface, #ffffff);
    color: var(--wms-ink, #18181b);
    border: 1px solid var(--wms-line, #e2e4e9);
    font-size: 14px;
}
.shms-priority-item__body {
    flex: 1;
    min-width: 0;
}
.shms-priority-item__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    margin-bottom: 2px;
}
.shms-priority-item__body small {
    display: block;
    font-size: 11.5px;
    color: var(--wms-muted, #636674);
}

/* All-Clear Quick Start Launch Grid */
.shms-focus-clear__head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(22, 163, 74, 0.08);
    border: 1px solid rgba(22, 163, 74, 0.24);
    margin-bottom: 14px;
}
.shms-focus-clear__icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: #16a34a;
    color: #ffffff;
    font-size: 16px;
}
.shms-focus-clear__head strong {
    display: block;
    font-size: 13px;
    color: #15803d;
}
.shms-focus-clear__head p {
    font-size: 12px !important;
    margin-top: 2px !important;
}
.shms-quickstart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: 10px;
}
.shms-quickstart-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 10px;
    border: 1px solid var(--wms-line, #e2e4e9);
    background: var(--wms-canvas, #f5f6f8);
    text-decoration: none;
    color: var(--wms-ink, #18181b);
    transition: border-color 0.14s ease, transform 0.14s ease, box-shadow 0.14s ease;
}
.shms-quickstart-card:hover {
    border-color: var(--brand-primary, #c8102e);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(13, 14, 18, 0.08);
    text-decoration: none;
}
.shms-quickstart-card i {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: var(--wms-surface, #ffffff);
    border: 1px solid var(--wms-line, #e2e4e9);
    color: var(--brand-primary, #c8102e);
    font-size: 15px;
}
.shms-quickstart-card strong {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.2;
}
.shms-quickstart-card small {
    display: block;
    font-size: 11px;
    color: var(--wms-muted, #636674);
    margin-top: 2px;
}

/* Compact Module Pulse List */
.shms-compact-pulse-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.shms-compact-pulse {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 11px;
    border-radius: 10px;
    border: 1px solid var(--wms-line, #e2e4e9);
    background: var(--wms-canvas, #f5f6f8);
    text-decoration: none;
    color: var(--wms-ink, #18181b);
    transition: border-color 0.14s ease, background-color 0.14s ease;
}
.shms-compact-pulse:hover {
    border-color: var(--brand-primary, #c8102e);
    text-decoration: none;
}
.shms-compact-pulse__icon {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: var(--brand-primary-soft);
    color: var(--brand-primary);
    font-size: 14px;
}
.shms-compact-pulse__icon--blue  { background: #e0f2fe; color: #0369a1; }
.shms-compact-pulse__icon--amber { background: #fff2d6; color: #b45309; }
.shms-compact-pulse__icon--rose  { background: #ffe4e8; color: #c8102e; }
.shms-compact-pulse__copy {
    flex: 1;
    min-width: 0;
}
.shms-compact-pulse__copy strong {
    display: block;
    font-size: 12.5px;
    line-height: 1.2;
}
.shms-compact-pulse__copy small {
    display: block;
    font-size: 11px;
    color: var(--wms-muted, #636674);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.shms-compact-pulse__total {
    font-size: 16px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--wms-ink, #18181b);
}

/* Dark Mode Parity for Focus Dashboard */
html[data-wms-theme=dark] .shms-focus-bar,
html[data-wms-theme=dark] .shms-focus-nav {
    background: #15171c !important;
    border-color: #26272f !important;
}
html[data-wms-theme=dark] .shms-focus-tab:hover {
    background: #1b1d24;
    color: #ffffff;
}
html[data-wms-theme=dark] .shms-focus-tab.is-active {
    background: var(--brand-primary, #c8102e) !important;
    color: #ffffff !important;
}
html[data-wms-theme=dark] .shms-focus-badge {
    background: #242730;
    color: #e6e7ec;
}
html[data-wms-theme=dark] .shms-priority-item,
html[data-wms-theme=dark] .shms-quickstart-card,
html[data-wms-theme=dark] .shms-compact-pulse {
    background: #1b1d24 !important;
    border-color: #26272f !important;
    color: #f5f5f5 !important;
}
html[data-wms-theme=dark] .shms-priority-item__icon,
html[data-wms-theme=dark] .shms-quickstart-card i {
    background: #15171c !important;
    border-color: #26272f !important;
}
html[data-wms-theme=dark] .shms-focus-clear__head {
    background: rgba(22, 163, 74, 0.14);
    border-color: rgba(74, 222, 128, 0.28);
}
html[data-wms-theme=dark] .shms-focus-clear__head strong {
    color: #4ade80;
}
html[data-wms-theme=dark] .shms-compact-pulse__total {
    color: #f5f5f5;
}

/* ============================================================================
 * Print, Obsidian Dark Parity & Mobile Responsive QA Polish (v5.0.0)
 * ============================================================================ */

/* 1. Obsidian Dark Mode Parity for Borders, Report Catalog, Settings & User Roles */
html[data-wms-theme=dark] .ui-template-template_2 .border:not(.border-danger):not(.border-success):not(.border-warning):not(.border-info):not(.border-primary) {
    border-color: #26272f !important;
}
html[data-wms-theme=dark] .ui-template-template_2 .shms-doc .border,
html[data-wms-theme=dark] .ui-template-template_2 .shms-doc .border-bottom {
    border-color: #dfe2e6 !important;
}
html[data-wms-theme=dark] .ui-template-template_2 .shms-report-card {
    background: #15171c !important;
    border-color: #26272f !important;
}
html[data-wms-theme=dark] .ui-template-template_2 .shms-report-card.is-selected {
    background: #1b1d24 !important;
    border-color: #c8102e !important;
}
html[data-wms-theme=dark] .ui-template-template_2 .shms-font-card__cat {
    background: #242730 !important;
    color: #d4d6e0 !important;
}
html[data-wms-theme=dark] .ui-template-template_2 .shms-font-card.is-selected .shms-font-card__cat {
    background: var(--brand-primary, #c8102e) !important;
    color: #ffffff !important;
}
html[data-wms-theme=dark] .ui-template-template_2 :is(.user-password-title h4, .user-role-intro h4, .permissions-header h4) {
    color: #f5f5f5 !important;
}
html[data-wms-theme=dark] .ui-template-template_2 .permissions-footer {
    background: #1b1d24 !important;
    border-top-color: #26272f !important;
    color: #9a9cae !important;
}
html[data-wms-theme=dark] .ui-template-template_2 .permissions-count {
    background: rgba(200, 16, 46, 0.18) !important;
    border-color: rgba(200, 16, 46, 0.36) !important;
    color: #ff8b99 !important;
}
html[data-wms-theme=dark] .ui-template-template_2 code {
    background: #1b1d24;
    color: #e6e7ec;
    border-color: #26272f !important;
}

/* 2. Mobile Responsive Ergonomics (Tablet & Phone <=767.98px / <=575.98px) */
@media (max-width: 767.98px) {
    .ui-template-template_2 .workspace-bar {
        padding: 10px 14px !important;
        gap: 8px !important;
        flex-wrap: wrap;
    }
    .ui-template-template_2 .workspace-bar__identity {
        min-width: 0;
        flex: 1 1 auto;
    }
    .ui-template-template_2 .workspace-bar__identity strong {
        font-size: 14.5px !important;
    }
    .ui-template-template_2 .workspace-bar__identity strong small {
        display: none !important;
    }
    .ui-template-template_2 .workspace-bar__meta {
        gap: 6px !important;
    }
    .shms-focus-bar {
        padding: 13px 14px;
        gap: 10px;
    }
    .shms-focus-bar__copy h1 {
        font-size: 17px !important;
    }
    .shms-focus-bar__actions {
        width: 100%;
    }
    .shms-focus-bar__actions .btn {
        flex: 1 1 auto;
        justify-content: center;
    }
    .shms-focus-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 6px;
        padding: 5px;
    }
    .shms-focus-nav::-webkit-scrollbar {
        display: none;
    }
    .shms-focus-tab {
        flex: 0 0 auto;
        white-space: nowrap;
        padding: 7px 11px;
        font-size: 12px;
    }
    .ui-template-template_2 .panel-heading {
        padding: 12px 14px !important;
    }
    .ui-template-template_2 .panel-body {
        padding: 13px 14px !important;
    }
    .ui-template-template_2 .t2-detail__head {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    .ui-template-template_2 .t2-detail__tags {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
    }
    .ui-template-template_2 .t2-detail__tags .ms-1 {
        margin-left: 0 !important;
    }
}

@media (max-width: 575.98px) {
    .ui-template-template_2 .shms-profile-trigger > span,
    .ui-template-template_2 .shms-profile-chev {
        display: none !important;
    }
    .ui-template-template_2 .shms-profile-trigger {
        padding: 3px !important;
    }
    /* Clamp workspace dropdown popovers cleanly inside narrow phone screens */
    .shms-notif-pop,
    .shms-menu-pop {
        position: fixed !important;
        top: 64px !important;
        left: 12px !important;
        right: 12px !important;
        width: auto !important;
        max-width: none !important;
    }
    .shms-priority-item {
        flex-wrap: wrap;
        align-items: flex-start;
        padding: 10px 11px;
    }
    .shms-priority-item > .d-flex {
        width: 100%;
        justify-content: flex-end;
        padding-top: 6px;
        border-top: 1px dashed var(--wms-line, #e2e4e9);
    }
    .shms-quickstart-grid {
        grid-template-columns: 1fr;
    }
    .shms-customizer-fab {
        width: 40px;
        height: 40px;
        right: 14px;
        bottom: 14px;
        border-radius: 11px;
        font-size: 16px;
    }
    .ui-template-template_2 .dataTables_wrapper .dataTables_length,
    .ui-template-template_2 .dataTables_wrapper .dataTables_filter {
        text-align: left !important;
        margin-bottom: 8px;
    }
    .ui-template-template_2 .dataTables_wrapper .dataTables_filter input {
        width: 100% !important;
        margin-left: 0 !important;
        margin-top: 4px;
    }
    .ui-template-template_2 .dataTables_wrapper .dataTables_paginate {
        display: flex;
        justify-content: center;
        margin-top: 8px;
    }
    .ui-template-template_2 .modal .modal-footer {
        flex-wrap: wrap;
        gap: 8px;
    }
    .ui-template-template_2 .modal .modal-footer .btn {
        flex: 1 1 auto;
        justify-content: center;
    }
}

/* 3. Direct Print (Cmd/Ctrl+P) — Force Crisp White Paper even from Obsidian Dark Mode */
@media print {
    html[data-wms-theme=dark],
    html[data-wms-theme=dark] body,
    html[data-wms-theme=dark] .ui-template-template_2,
    html[data-wms-theme=dark] .ui-template-template_2 .main-content,
    html[data-wms-theme=dark] .ui-template-template_2 :is(.card, .panel, .panel-heading, .panel-body, .shms-kpi, .shms-unit-card, .shms-focus-bar, .shms-priority-item, .shms-compact-pulse) {
        background: #ffffff !important;
        color: #18181b !important;
        border-color: #d4d6e0 !important;
        box-shadow: none !important;
    }
    html[data-wms-theme=dark] .ui-template-template_2 :is(h1, h2, h3, h4, h5, h6, strong, td, th, p, span, .shms-kpi__value) {
        color: #18181b !important;
    }
    .shms-focus-nav,
    .shms-focus-bar__actions,
    .shms-customizer-fab,
    .workspace-bar,
    #sidebar,
    .t2-topnav,
    .t2-theme-panel {
        display: none !important;
    }
    .ui-template-template_2 .main-content {
        margin-left: 0 !important;
        padding-top: 0 !important;
    }
    .ui-template-template_2 .shms-kpi-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
    .panel, .shms-kpi, .shms-unit-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* 4. Z-Index Layering & Obsidian Dark Mode SweetAlert2 Polish (v5.1.0) */
.swal2-overlay,
.swal2-container,
.swal-overlay {
    z-index: 2050 !important;
}
.datepicker.datepicker-dropdown {
    z-index: 1090 !important;
}
html[data-wms-theme=dark] .swal2-modal,
html[data-wms-theme=dark] .swal2-popup {
    background: #15171c !important;
    color: #f5f5f5 !important;
    border: 1px solid #26272f !important;
}
html[data-wms-theme=dark] .swal2-modal h2,
html[data-wms-theme=dark] .swal2-title {
    color: #f5f5f5 !important;
}
html[data-wms-theme=dark] .swal2-modal .swal2-content,
html[data-wms-theme=dark] .swal2-html-container {
    color: #b5b7c6 !important;
}
