/*
========================================================================
   PT DIGITAL INDONESIA HEBAT - MODERN ENTERPRISE DASHBOARD THEME
   Palet: Deep Navy + Ocean Blue + Warm Amber Accent
   Gaya: Modern, High Density, Sleek Cards, Soft Gradients, Frosted Glass
========================================================================
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    /* --- Base Brand Colors (Aligned with official DIH Logo digitali.png #003399) --- */
    --brand-navy: #001A4D;
    --brand-navy-light: #002673;
    --brand-navy-dark: #001133;

    --brand-blue: #003399;
    --brand-blue-hover: #00287A;
    --brand-blue-soft: #EBF1FA;
    --brand-blue-light: #1E60D2;

    --brand-accent: #FF9F1C;
    --brand-accent-hover: #E88A00;
    --brand-accent-soft: rgba(255, 159, 28, 0.14);
    --brand-accent-dark: #D97706;

    /* --- System State Colors --- */
    --sys-green: #10B981;
    --sys-green-bg: #DCFCE7;
    --sys-green-text: #047857;

    --sys-red: #EF4444;
    --sys-red-bg: #FEE2E2;
    --sys-red-text: #B91C1C;

    --sys-orange: #F97316;
    --sys-orange-bg: #FFEDD5;
    --sys-orange-text: #C2410C;

    --sys-cyan: #06B6D4;
    --sys-cyan-bg: #E0F2FE;
    --sys-cyan-text: #0369A1;

    --sys-purple: #8B5CF6;
    --sys-purple-bg: #EDE9FE;
    --sys-purple-text: #6D28D9;

    /* --- Neutral Palette --- */
    --bs-body-bg: #F4F6FB;
    --bs-body-font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --card-bg: #FFFFFF;

    --text-main: #0F172A;
    --text-secondary: #334155;
    --text-muted: #64748B;
    --text-sidebar-muted: #94A3B8;

    --border-light: #E2E8F0;
    --border-lighter: #F1F5F9;
    --border-sidebar: rgba(255, 255, 255, 0.08);

    /* --- Gradients --- */
    --grad-primary: linear-gradient(135deg, #001A4D 0%, #003399 100%);
    --grad-primary-hover: linear-gradient(135deg, #001236 0%, #00287A 100%);
    --grad-blue-vibrant: linear-gradient(135deg, #003399 0%, #1E60D2 100%);
    --grad-accent: linear-gradient(135deg, #FF9F1C 0%, #F59E0B 100%);
    --grad-emerald: linear-gradient(135deg, #10B981 0%, #059669 100%);
    --grad-cyan: linear-gradient(135deg, #06B6D4 0%, #0284C7 100%);
    --grad-rose: linear-gradient(135deg, #F43F5E 0%, #E11D48 100%);
    --grad-purple: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
    --grad-card-dark: linear-gradient(135deg, #001A4D 0%, #002673 100%);
    --grad-hero: linear-gradient(135deg, #00153B 0%, #002266 50%, #003399 100%);
    --grad-soft-blue: linear-gradient(180deg, rgba(0, 51, 153, 0.06) 0%, rgba(0, 51, 153, 0.00) 100%);
    --grad-mesh: radial-gradient(at 0% 0%, rgba(0, 51, 153, 0.15) 0, transparent 50%), radial-gradient(at 100% 100%, rgba(255, 159, 28, 0.12) 0, transparent 50%);

    /* --- Shadows --- */
    --shadow-xs: 0 1px 2px rgba(0, 26, 77, 0.04);
    --shadow-sm: 0 2px 8px rgba(0, 26, 77, 0.04), 0 1px 2px rgba(0, 26, 77, 0.02);
    --shadow-md: 0 8px 24px -2px rgba(0, 26, 77, 0.07), 0 3px 6px -2px rgba(0, 26, 77, 0.03);
    --shadow-lg: 0 16px 36px -4px rgba(0, 26, 77, 0.10), 0 6px 12px -3px rgba(0, 26, 77, 0.04);
    --shadow-glow-blue: 0 8px 24px -3px rgba(0, 51, 153, 0.35);
    --shadow-glow-accent: 0 8px 24px -3px rgba(255, 159, 28, 0.35);

    /* --- Layout Dimensions & Radii --- */
    --sidebar-width: 270px;
    --navbar-height: 72px;

    --radius-xxl: 22px;
    --radius-xl: 16px;
    --radius-lg: 12px;
    --radius-md: 10px;
    --radius-sm: 6px;
    --radius-pill: 50rem;
}

/* -----------------------------------------------------------------
   BASE TYPOGRAPHY & DEFAULTS
----------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    background-color: var(--bs-body-bg);
    color: var(--text-secondary);
    font-family: var(--bs-body-font-family);
    font-size: 0.885rem;
    font-weight: 500;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.01em;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    color: var(--text-main);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.25;
}

a {
    color: var(--brand-blue);
    text-decoration: none;
    transition: color .2s ease, transform .2s ease;
}
a:hover {
    color: var(--brand-accent-hover);
}

/* Global Custom Scrollbar (Vertical sleek, Horizontal hidden) */
::-webkit-scrollbar {
    width: 6px;
    height: 0px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 20px;
    transition: background .2s ease;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--brand-blue-light);
}

/* -----------------------------------------------------------------
   SIDEBAR - DEEP LUXURY NAVY WITH REFINED ACCENTS
----------------------------------------------------------------- */
.sidebar-wrapper {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, var(--brand-navy) 0%, var(--brand-navy-dark) 100%);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1030;
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1.15rem;
    border-right: 1px solid var(--border-sidebar);
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all .25s ease;
}
.sidebar-brand:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 159, 28, 0.3);
}

.sidebar-brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(0, 51, 153, 0.8) 0%, rgba(0, 26, 77, 0.9) 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.sidebar-brand-icon img {
    height: 22px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.sidebar-brand-text {
    font-size: 0.95rem;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.15;
    letter-spacing: -0.02em;
    display: flex;
    flex-direction: column;
}
.sidebar-brand-text small {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--brand-accent);
    letter-spacing: 0.02em;
}

.sidebar-brand-badge {
    font-size: 0.62rem;
    font-weight: 800;
    padding: 0.15rem 0.45rem;
    border-radius: var(--radius-pill);
    background: rgba(255, 159, 28, 0.18);
    color: var(--brand-accent);
    border: 1px solid rgba(255, 159, 28, 0.35);
    margin-left: auto;
    letter-spacing: 0.04em;
}

.sidebar-menu-scroll {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding-right: 4px;
    margin-right: -4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}

/* Custom Sleek Scrollbar for Sidebar */
.sidebar-menu-scroll::-webkit-scrollbar {
    width: 4px;
    height: 0px !important;
    display: block;
}
.sidebar-menu-scroll::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar-menu-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    transition: background 0.25s ease;
}
.sidebar-wrapper:hover .sidebar-menu-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
}
.sidebar-menu-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--brand-accent) !important;
}

.sidebar-menu-section {
    margin-bottom: 1.15rem;
}

.sidebar-menu-title {
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-sidebar-muted);
    padding-left: 0.65rem;
    margin-bottom: 0.45rem;
    opacity: 0.8;
}

.sidebar-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu-item {
    margin-bottom: 0.25rem;
}

.sidebar-menu-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.48rem 0.7rem;
    font-size: 0.84rem;
    color: var(--text-sidebar-muted);
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all .2s cubic-bezier(.4, 0, .2, 1);
    position: relative;
}

.sidebar-icon-box {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.05);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    transition: all .25s ease;
    flex-shrink: 0;
    color: var(--text-sidebar-muted);
}

.sidebar-menu-link:hover {
    color: #FFFFFF;
    background-color: rgba(255, 255, 255, 0.07);
    transform: translateX(3px);
}
.sidebar-menu-link:hover .sidebar-icon-box {
    background: rgba(255, 159, 28, 0.2);
    color: var(--brand-accent);
    transform: scale(1.06);
}

.sidebar-menu-link.mm-active,
.sidebar-menu-link.active {
    color: #FFFFFF;
    background: linear-gradient(90deg, rgba(0, 51, 153, 0.55) 0%, rgba(255, 159, 28, 0.15) 100%);
    font-weight: 700;
    border: 1px solid rgba(255, 159, 28, 0.28);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.sidebar-menu-link.mm-active::before,
.sidebar-menu-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    height: 70%;
    width: 3.5px;
    background: var(--grad-accent);
    border-radius: 0 4px 4px 0;
    box-shadow: var(--shadow-glow-accent);
}

.sidebar-menu-link.mm-active .sidebar-icon-box,
.sidebar-menu-link.active .sidebar-icon-box {
    background: var(--grad-accent);
    color: var(--brand-navy);
    box-shadow: 0 4px 12px rgba(255, 159, 28, 0.4);
}

.sidebar-menu-link .dropdown-caret {
    margin-left: auto;
    font-size: 0.65rem;
    transition: transform .25s ease;
    opacity: 0.7;
}
.sidebar-menu-link[aria-expanded="true"] .dropdown-caret,
.sidebar-menu-link.mm-active .dropdown-caret {
    transform: rotate(180deg);
    opacity: 1;
}

.sidebar-submenu {
    list-style: none;
    padding-left: 2.25rem;
    margin: 0.25rem 0 0.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    margin-left: 1.25rem;
}

.sidebar-submenu-link {
    display: block;
    padding: 0.35rem 0.5rem;
    color: var(--text-sidebar-muted);
    font-size: 0.81rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all .2s ease;
}
.sidebar-submenu-link:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.04);
}
.sidebar-submenu-link.mm-active,
.sidebar-submenu-link.active {
    color: #FFFFFF;
    font-weight: 700;
    background: rgba(255, 159, 28, 0.15);
    border-left: 2.5px solid var(--brand-accent);
    padding-left: 0.65rem;
}

.sidebar-menu-badge {
    margin-left: auto;
    font-size: 0.68rem;
    font-weight: 800;
    background: var(--grad-accent);
    color: var(--brand-navy);
    padding: 0.15rem 0.55rem;
    border-radius: var(--radius-pill);
    box-shadow: 0 2px 8px rgba(255, 159, 28, 0.3);
}

.sidebar-profile {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    padding: 0.75rem 0.85rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-sidebar);
    color: #FFFFFF;
    transition: all .2s ease;
}
.sidebar-profile:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 159, 28, 0.3);
}

.sidebar-profile-img {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    object-fit: cover;
    background-color: var(--brand-navy-light);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
}

.profile-status-dot.online {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    background-color: var(--sys-green);
    border: 2px solid var(--brand-navy-dark);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.8);
}

.sidebar-profile-info {
    flex-grow: 1;
    min-width: 0;
}
.sidebar-profile-name {
    font-size: 0.83rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #FFFFFF;
}
.sidebar-profile-role {
    font-size: 0.7rem;
    color: var(--brand-accent);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 700;
    letter-spacing: 0.03em;
}

/* -----------------------------------------------------------------
   MAIN WRAPPER & FROSTED NAVBAR
----------------------------------------------------------------- */
.main-wrapper {
    margin-left: var(--sidebar-width);
    padding: 1.5rem 2rem 1.5rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
}

.navbar-custom {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(244, 246, 251, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    margin: -1.5rem -2rem 1.5rem;
    padding: 0.85rem 2rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-toggle-btn,
.btn-desktop-toggle,
.navbar-action-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    background-color: #FFFFFF;
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.92rem;
    box-shadow: var(--shadow-xs);
    transition: all .2s ease;
    cursor: pointer;
}
.sidebar-toggle-btn:hover,
.btn-desktop-toggle:hover,
.navbar-action-btn:hover {
    background-color: var(--brand-blue-soft);
    color: var(--brand-blue);
    border-color: rgba(0, 51, 153, 0.25);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.sidebar-toggle-btn { display: none; }

.navbar-breadcrumb {
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-pill);
    font-size: 0.77rem;
    font-weight: 600;
    box-shadow: var(--shadow-xs);
    gap: 0.45rem;
}
.breadcrumb-icon { color: var(--brand-blue); font-size: 0.78rem; }
.breadcrumb-sep { font-size: 0.58rem; color: #94A3B8; }
.breadcrumb-org { color: var(--text-muted); }
.breadcrumb-page { color: var(--text-main); font-weight: 700; }

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar-date-pill {
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-pill);
    font-size: 0.77rem;
    font-weight: 600;
    color: var(--text-secondary);
    box-shadow: var(--shadow-xs);
}

.navbar-action-btn { position: relative; }
.navbar-action-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background: var(--brand-accent);
    border-radius: 50rem;
    border: 1.5px solid #FFFFFF;
}

.ping-ring {
    position: absolute;
    top: -1px;
    left: -1px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-accent);
    animation: ping-pulse 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes ping-pulse {
    75%, 100% {
        transform: scale(2.6);
        opacity: 0;
    }
}

.navbar-profile-btn {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-pill);
    padding: 0.28rem 0.85rem 0.28rem 0.35rem;
    box-shadow: var(--shadow-xs);
    transition: all .2s ease;
    cursor: pointer;
}
.navbar-profile-btn:hover {
    border-color: rgba(0, 51, 153, 0.25);
    box-shadow: var(--shadow-sm);
}

.navbar-profile-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--brand-blue-soft);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.navbar-profile-name {
    font-size: 0.83rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
}
.navbar-profile-role {
    font-size: 0.67rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* -----------------------------------------------------------------
   PAGE HEADER / BREADCRUMBS
----------------------------------------------------------------- */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.95rem;
}

.page-title-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--grad-primary);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-glow-blue);
}

.page-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.1rem;
    letter-spacing: -0.025em;
}

.page-subtitle {
    font-size: 0.825rem;
    color: var(--text-muted);
    margin-bottom: 0;
    font-weight: 500;
}

.page-title-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* -----------------------------------------------------------------
   DASHBOARD CSS GRID ROWS (NO h-100 STRETCHING ISSUES)
----------------------------------------------------------------- */
.dash-grid-row {
    display: grid;
    gap: 1rem;
    align-items: stretch; /* cards in the same row share equal height */
    margin-bottom: 0;
}

/* 8/12 + 4/12 â‰ˆ 66.66% + 33.33% */
.dash-grid-8-4 {
    grid-template-columns: 1fr 0.5fr;
}

/* 7/12 + 5/12 â‰ˆ 58.33% + 41.66% */
.dash-grid-7-5 {
    grid-template-columns: 1.4fr 1fr;
}

@media (max-width: 991.98px) {
    .dash-grid-8-4,
    .dash-grid-7-5 {
        grid-template-columns: 1fr;
    }
}

/* -----------------------------------------------------------------
   CARD SYSTEM (UNIFIES .card-dih, .card, .main-card)
----------------------------------------------------------------- */
.card-dih,
.main-card.card,
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
    overflow: hidden;
    position: relative;
}

.card-dih {
    padding: 1.35rem 1.6rem;
}


.card-dih:hover,
.main-card.card:hover {
    box-shadow: var(--shadow-md);
    border-color: #CBD5E1;
}

.card-header,
.card-header-tab {
    background: transparent;
    border-bottom: 1px solid var(--border-lighter);
    padding: 0.95rem 1.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.card-header-title {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    font-size: 0.86rem !important;
    font-weight: 700 !important;
    color: var(--text-main) !important;
    margin: 0 !important;
}

.card-header-title select.form-select,
.card-header-title select.form-control {
    max-width: 280px !important;
    height: 38px !important;
    margin: 0 0.5rem !important;
}

.btn-actions-pane-right .btn-outline-primary,
.btn-actions-pane-right .btn-primary {
    background: var(--grad-primary) !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: var(--radius-pill) !important;
    height: 38px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    padding: 0 1.25rem !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 8px rgba(0, 51, 153, 0.25) !important;
}
.btn-actions-pane-right .btn-outline-primary:hover,
.btn-actions-pane-right .btn-primary:hover {
    background: var(--grad-primary-hover) !important;
    transform: translateY(-1px) !important;
    box-shadow: var(--shadow-glow-blue) !important;
}

/* Neutralize legacy table-bordered & table-striped */
.table.table-bordered,
.table-bordered {
    border: 1px solid var(--border-light) !important;
    border-radius: var(--radius-lg);
}
.table-bordered th,
.table-bordered td {
    border: none !important;
    border-bottom: 1px solid var(--border-lighter) !important;
}
.table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: rgba(248, 250, 252, 0.5) !important;
}

/* -----------------------------------------------------------------
   TABLE: GLOBAL OVERFLOW & CELL WRAPPING FIX
   Mencegah teks overlap antar kolom di semua tabel DataTables
----------------------------------------------------------------- */
.table th,
.table td {
    vertical-align: middle;
    white-space: nowrap;   /* semua cell default nowrap */
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;      /* batasan default agar tidak terlalu lebar */
}

/* Kolom yang boleh wrap (nama perusahaan, perihal, produk, dll) */
.table td.col-wrap,
.table th.col-wrap {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

/* Kolom teks panjang: truncate elegan */
.table td.col-truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

/* Kolom tanggal: selalu nowrap, lebar fixed */
.table th.col-date,
.table td.col-date {
    white-space: nowrap;
    width: 100px;
    min-width: 90px;
}

/* Kolom nomor dokumen */
.table th.col-no,
.table td.col-no {
    white-space: nowrap;
    min-width: 140px;
}

/* Kolom aksi: tidak boleh truncate */
.table th.col-action,
.table td.col-action {
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
}

/* DataTables: pastikan wrapper punya scroll horizontal */
.dataTables_wrapper {
    overflow-x: auto;
}
.dataTables_wrapper .table {
    min-width: 700px; /* cegah collapse di layar kecil */
}

/* Internal Memo & Blade-paginated tables: kolom teks panjang */
.table td:is(.col-perihal, .col-kepada, .col-dari) {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

.card-title,
.dh-section-title {
    font-size: 0.94rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.02em;
    margin-bottom: 0;
}

.card-body {
    padding: 1.25rem 1.4rem;
}

/* -----------------------------------------------------------------
   STAT CARDS & METRIC WIDGETS (HIGH-DENSITY PURITY STYLE)
----------------------------------------------------------------- */
.dh-stat-card-wrapper {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 1.25rem 1.35rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all .25s ease;
    position: relative;
    overflow: hidden;
}
.dh-stat-card-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    transition: background .25s ease;
}
.dh-stat-card-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: #CBD5E1;
}
.dh-stat-card-wrapper:hover::after {
    background: var(--grad-accent);
}

.dh-stat-info {
    display: flex;
    flex-direction: column;
}

.dh-stat-label {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.dh-stat-value {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.dh-stat-trend {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.72rem;
    font-weight: 700;
    margin-top: 0.4rem;
}
.dh-stat-trend.up {
    color: var(--sys-green-text);
}
.dh-stat-trend.neutral {
    color: var(--text-muted);
}

.dh-stat-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #FFFFFF;
    flex-shrink: 0;
    transition: transform .25s ease;
}
.dh-stat-card-wrapper:hover .dh-stat-icon-box {
    transform: scale(1.06);
}

.icon-box-primary {
    background: var(--grad-primary);
    box-shadow: var(--shadow-glow-blue);
}
.icon-box-accent {
    background: var(--grad-accent);
    box-shadow: var(--shadow-glow-accent);
    color: var(--brand-navy) !important;
}
.icon-box-emerald {
    background: var(--grad-emerald);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.32);
}
.icon-box-cyan {
    background: var(--grad-cyan);
    box-shadow: 0 6px 18px rgba(6, 182, 212, 0.32);
}
.icon-box-purple {
    background: var(--grad-purple);
    box-shadow: 0 6px 18px rgba(139, 92, 246, 0.32);
}

/* -----------------------------------------------------------------
   HERO BANNER COMPONENT & EXECUTIVE GLASS PANEL
----------------------------------------------------------------- */
.hero-welcome-card {
    background: var(--grad-hero);
    border-radius: var(--radius-xl);
    padding: 1.35rem 1.65rem;
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.hero-welcome-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 159, 28, 0.22) 0%, transparent 70%);
    pointer-events: none;
}
.hero-welcome-card::after {
    content: '';
    position: absolute;
    bottom: -40%;
    right: 20%;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

.hero-welcome-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-top: 0;
    margin-bottom: 0.65rem;
    letter-spacing: -0.005em;
    line-height: 1.35;
}
.hero-welcome-desc {
    font-size: 0.835rem;
    color: rgba(255, 255, 255, 0.88);
    max-width: 580px;
    margin-bottom: 1.15rem;
    line-height: 1.55;
}

.hero-glass-panel {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    padding: 0.9rem 1.15rem;
}
.hero-glass-header {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.65rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.hero-glass-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.4rem;
    margin-bottom: 0.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.76rem;
}
.hero-glass-stat .label {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
}
.hero-glass-stat .val {
    font-weight: 700;
    color: #FFFFFF;
}
.hero-glass-stat .val.text-emerald {
    color: #34D399;
}

.quick-shortcut-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    background: var(--border-lighter);
    text-decoration: none;
    transition: all .2s ease;
}
.quick-shortcut-item:hover {
    background: var(--brand-blue-soft);
    transform: translateX(3px);
}
.quick-shortcut-item .title {
    font-size: 0.82rem;
    color: var(--text-main);
    line-height: 1.2;
}
.quick-shortcut-item .sub {
    font-size: 0.71rem;
    color: var(--text-muted);
}
.quick-shortcut-item .arrow {
    font-size: 0.72rem;
    color: #94A3B8;
    transition: transform .2s ease, color .2s ease;
}
.quick-shortcut-item:hover .arrow {
    transform: translateX(2px);
    color: var(--brand-blue);
}

/* -----------------------------------------------------------------
   BUTTONS (MODERN, GRADIENT, PILL, SLEEK HOVER)
----------------------------------------------------------------- */
.btn-custom {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1.15rem;
    border-radius: var(--radius-pill);
    font-size: 0.835rem;
    font-weight: 700;
    border: none;
    transition: all .2s cubic-bezier(.4, 0, .2, 1);
    box-shadow: var(--shadow-xs);
    cursor: pointer;
    line-height: 1.35;
    white-space: nowrap;
}

.btn-custom-primary,
.btn-primary {
    background: var(--grad-primary) !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 4px 14px rgba(0, 51, 153, 0.25) !important;
}
.btn-custom-primary:hover,
.btn-primary:hover {
    background: var(--grad-primary-hover) !important;
    color: #FFFFFF !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow-blue) !important;
}

.btn-custom-accent {
    background: var(--grad-accent) !important;
    color: var(--brand-navy) !important;
    box-shadow: 0 4px 14px rgba(255, 159, 28, 0.25) !important;
}
.btn-custom-accent:hover {
    background: linear-gradient(135deg, #FF9400 0%, #EA8C00 100%) !important;
    color: var(--brand-navy) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow-accent) !important;
}

.btn-custom-outline,
.btn-outline-primary {
    background-color: #FFFFFF !important;
    border: 1px solid var(--border-light) !important;
    color: var(--text-secondary) !important;
}
.btn-custom-outline:hover,
.btn-outline-primary:hover {
    background-color: var(--brand-blue-soft) !important;
    border-color: rgba(0, 51, 153, 0.25) !important;
    color: var(--brand-blue) !important;
    transform: translateY(-1px);
}

.btn-custom-danger,
.btn-danger {
    background: var(--grad-rose) !important;
    color: #FFFFFF !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25) !important;
}
.btn-custom-danger:hover,
.btn-danger:hover {
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.38) !important;
    transform: translateY(-1px);
    color: #FFFFFF !important;
}

.btn-custom-sm {
    padding: 0.35rem 0.8rem;
    font-size: 0.78rem;
}

/* -----------------------------------------------------------------
   TABLES & DATATABLES (UNIFIED ENTERPRISE DESIGN SYSTEM)
----------------------------------------------------------------- */
.table,
.table-hover,
.dataTable {
    margin-bottom: 0 !important;
    color: var(--text-secondary) !important;
    vertical-align: middle !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    width: 100% !important;
}

.table thead th,
.dataTable thead th {
    background-color: #F8FAFC !important;
    color: #475569 !important;
    font-weight: 700 !important;
    font-size: 0.74rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    border-top: none !important;
    border-bottom: 2px solid #E2E8F0 !important;
    padding: 0.8rem 1rem !important;
    white-space: nowrap !important;
}

.table tbody td,
.dataTable tbody td {
    padding: 0.78rem 1rem !important;
    font-size: 0.84rem !important;
    border-bottom: 1px solid #F1F5F9 !important;
    border-top: none !important;
    vertical-align: middle !important;
    color: #1E293B !important;
    background-color: transparent !important;
}

.table tbody tr,
.dataTable tbody tr {
    transition: background-color .15s ease;
}
.table tbody tr:hover td,
.dataTable tbody tr:hover td {
    background-color: rgba(0, 51, 153, 0.025) !important;
}

/* Action Icon Buttons inside Tables */
.btn-action,
.btn-action-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    border: 1px solid var(--border-light);
    background: #FFFFFF;
    color: var(--text-secondary);
    transition: all .2s ease;
    cursor: pointer;
    text-decoration: none;
}
.btn-action:hover,
.btn-action-icon:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-xs);
}
.btn-action.edit:hover,
.btn-action.btn-outline-primary:hover {
    background: var(--brand-blue-soft) !important;
    color: var(--brand-blue) !important;
    border-color: rgba(0, 51, 153, 0.3) !important;
}
.btn-action.delete:hover,
.btn-action.btn-outline-danger:hover {
    background: var(--sys-red-bg) !important;
    color: var(--sys-red) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
}
.btn-action.view:hover,
.btn-action.btn-outline-success:hover {
    background: var(--sys-green-bg) !important;
    color: var(--sys-green-text) !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
}
.btn-action.warning:hover,
.btn-action.btn-outline-warning:hover {
    background: var(--brand-accent-soft) !important;
    color: var(--brand-accent-dark) !important;
    border-color: rgba(255, 159, 28, 0.3) !important;
}

/* DataTables pagination & controls */
.dataTables_wrapper {
    padding: 0.25rem 0;
}
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 0.85rem !important;
    font-size: 0.82rem !important;
    color: var(--text-muted) !important;
}
.dataTables_wrapper .dataTables_length select {
    border-radius: 8px !important;
    border: 1px solid #CBD5E1 !important;
    padding: 0.35rem 1.75rem 0.35rem 0.65rem !important;
    font-size: 0.82rem !important;
}
.dataTables_wrapper .dataTables_filter input {
    border-radius: 8px !important;
    border: 1px solid #CBD5E1 !important;
    padding: 0.4rem 0.8rem !important;
    font-size: 0.82rem !important;
    margin-left: 0.5rem !important;
}
.dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--brand-blue) !important;
    box-shadow: 0 0 0 3px rgba(0, 51, 153, 0.12) !important;
    outline: 0 !important;
}

.dataTables_wrapper .dataTables_paginate {
    padding-top: 1rem !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button,
.pagination .page-item .page-link {
    border-radius: 8px !important;
    padding: 0.38rem 0.78rem !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    margin: 0 2px !important;
    border: 1px solid #E2E8F0 !important;
    background: #FFFFFF !important;
    color: #475569 !important;
    transition: all .2s ease !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover,
.pagination .page-item .page-link:hover {
    background: var(--brand-blue-soft) !important;
    border-color: rgba(0, 51, 153, 0.25) !important;
    color: var(--brand-blue) !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover,
.pagination .page-item.active .page-link {
    background: var(--brand-blue) !important;
    border-color: var(--brand-blue) !important;
    color: #FFFFFF !important;
    box-shadow: 0 2px 8px rgba(0, 51, 153, 0.25) !important;
}

.dataTables_wrapper .dataTables_info {
    font-size: 0.8rem !important;
    color: #64748B !important;
    padding-top: 1rem !important;
    font-weight: 500 !important;
}

/* -----------------------------------------------------------------
   FORM CONTROLS & FILTER TOOLBARS (UNIFIED 42PX HEIGHT & ALIGNMENT)
----------------------------------------------------------------- */
.form-label {
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    color: #1E293B !important;
    margin-bottom: 0.35rem !important;
    letter-spacing: -0.01em !important;
}

.form-control,
.form-select {
    height: 42px !important;
    border-radius: 10px !important;
    border: 1px solid #CBD5E1 !important;
    background-color: #FFFFFF !important;
    padding: 0.55rem 0.95rem !important;
    font-size: 0.865rem !important;
    color: #1E293B !important;
    transition: border-color .18s ease, box-shadow .18s ease !important;
}

textarea.form-control {
    height: auto !important;
    min-height: 95px !important;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--brand-blue) !important;
    background-color: #FFFFFF !important;
    box-shadow: 0 0 0 3.5px rgba(0, 51, 153, 0.12) !important;
    outline: none !important;
}

.form-control::placeholder {
    color: #94A3B8 !important;
    font-weight: 400 !important;
}

.input-group .form-control:first-child,
.input-group .form-select:first-child {
    border-top-left-radius: 10px !important;
    border-bottom-left-radius: 10px !important;
}
.input-group .btn-custom:last-child,
.input-group .btn:last-child {
    border-top-right-radius: 10px !important;
    border-bottom-right-radius: 10px !important;
    height: 42px !important;
}
.input-group-text {
    border-radius: 10px !important;
    border: 1px solid #CBD5E1 !important;
    background-color: #F8FAFC !important;
    color: #64748B !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
}

.filter-toolbar-card {
    background-color: #FFFFFF;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 1.15rem 1.4rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-sm);
}

/* -----------------------------------------------------------------
   STATUS BADGES & PILLS (SOFT PASTEL TINTS + SATURATED TEXT)
----------------------------------------------------------------- */
.badge-soft {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.75rem;
    border-radius: var(--radius-pill);
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.015em;
    line-height: 1.2;
    white-space: nowrap;
    flex-shrink: 0;
}

.badge-soft-blue {
    background-color: #EBF5FF;
    color: #1E429F;
    border: 1px solid rgba(63, 131, 248, 0.25);
}

.badge-soft-accent,
.badge-soft-amber,
.badge-soft-warning {
    background-color: #FEF3C7;
    color: #92400E;
    border: 1px solid rgba(245, 158, 11, 0.28);
}

.badge-soft-green,
.badge-soft-emerald,
.badge-soft-success {
    background-color: #DEF7EC;
    color: #03543F;
    border: 1px solid rgba(49, 196, 141, 0.28);
}

.badge-soft-red,
.badge-soft-danger {
    background-color: #FDE8E8;
    color: #9B1C1C;
    border: 1px solid rgba(249, 128, 128, 0.28);
}

.badge-soft-purple {
    background-color: #EDEBFE;
    color: #5521B5;
    border: 1px solid rgba(144, 97, 249, 0.28);
}

.badge-soft-slate,
.badge-soft-secondary {
    background-color: #F1F5F9;
    color: #475569;
    border: 1px solid #CBD5E1;
}

/* -----------------------------------------------------------------
   ACTIVITY TIMELINE & RECENT LIST
----------------------------------------------------------------- */
.dh-activity-list {
    max-height: 320px;
    overflow-y: auto;
    padding-right: 4px;
}

.dh-activity-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-lighter);
}
.dh-activity-item:last-child {
    border-bottom: none;
}

.dh-activity-left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
    flex: 1 1 auto;
}

.dh-activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.dh-activity-info {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
}

.dh-activity-title {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}
.dh-activity-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    margin-top: 1px;
}

/* -----------------------------------------------------------------
   MODERN PROFILE COMPONENTS (REFERENCE #4)
----------------------------------------------------------------- */
.profile-cover {
    height: 180px;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    background: var(--grad-hero);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.profile-cover::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 159, 28, 0.4) 0%, transparent 45%),
        radial-gradient(circle at 85% 30%, rgba(37, 99, 235, 0.4) 0%, transparent 50%),
        linear-gradient(135deg, rgba(0, 26, 77, 0.8) 0%, rgba(0, 51, 153, 0.6) 100%);
}

.profile-card-floating {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-xl);
    padding: 1.25rem 1.75rem;
    margin: -45px 1.5rem 1.5rem;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
    z-index: 5;
}

.profile-avatar-wrap {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.profile-avatar-img {
    width: 76px;
    height: 76px;
    border-radius: 18px;
    object-fit: cover;
    border: 3.5px solid #FFFFFF;
    box-shadow: var(--shadow-md);
    background-color: var(--brand-navy-light);
}

.profile-tabs-pill {
    display: flex;
    gap: 0.4rem;
    background: #F1F5F9;
    padding: 0.3rem;
    border-radius: var(--radius-pill);
}

.profile-tabs-pill .nav-link {
    border-radius: var(--radius-pill);
    padding: 0.45rem 1.1rem;
    font-size: 0.81rem;
    font-weight: 700;
    color: var(--text-muted);
    border: none;
    transition: all .2s ease;
}
.profile-tabs-pill .nav-link.active {
    background: #FFFFFF;
    color: var(--brand-blue);
    box-shadow: var(--shadow-sm);
}

/* -----------------------------------------------------------------
   ARCHITECTUI COMPATIBILITY BRIDGE (TRANSLATES OLD THEME CLASSES)
----------------------------------------------------------------- */
.app-page-title {
    padding: 0 !important;
    margin-bottom: 1.5rem !important;
    background: transparent !important;
}
.page-title-heading {
    display: flex !important;
    align-items: center !important;
    gap: 0.95rem !important;
    font-size: 1.35rem !important;
    font-weight: 800 !important;
    color: var(--text-main) !important;
}
.page-title-subheading {
    font-size: 0.825rem !important;
    color: var(--text-muted) !important;
    font-weight: 500 !important;
    margin-top: 2px !important;
}

.widget-content {
    padding: 0.75rem 0 !important;
}
.widget-content .widget-content-wrapper {
    display: flex !important;
    align-items: center !important;
}
.widget-heading {
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    color: var(--text-main) !important;
}
.widget-subheading {
    font-size: 0.77rem !important;
    color: var(--text-muted) !important;
    margin-bottom: 0.15rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
}

.icon-wrapper {
    width: 38px !important;
    height: 38px !important;
    border-radius: 10px !important;
    background: var(--brand-blue-soft) !important;
    color: var(--brand-blue) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1rem !important;
}

.list-group-flush > .list-group-item {
    border-color: var(--border-lighter) !important;
    padding: 0.85rem 0 !important;
    background: transparent !important;
}

/* -----------------------------------------------------------------
   ENTERPRISE FOOTER (.app-footer-custom)
----------------------------------------------------------------- */
.app-footer-custom {
    margin-top: auto;
    padding-top: 1.5rem;
}

.app-footer-custom .footer-inner {
    border-top: 1px solid var(--border-light);
    padding: 1.15rem 0 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.app-footer-custom .footer-left {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.footer-brand-badge {
    font-size: 0.68rem;
    font-weight: 800;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    background: var(--grad-primary);
    color: #FFFFFF;
    letter-spacing: 0.05em;
}

.footer-copyright {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.system-status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.85rem;
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-pill);
    font-size: 0.76rem;
    box-shadow: var(--shadow-xs);
}

.status-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--sys-green);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse-green 2s infinite;
}
@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.status-text {
    font-weight: 700;
    color: var(--text-secondary);
}
.status-version {
    color: var(--text-muted);
    font-weight: 600;
}

.app-footer-custom .footer-right {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.footer-link {
    font-size: 0.79rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: color .2s ease;
}
.footer-link:hover {
    color: var(--brand-blue);
}

.footer-divider {
    color: #CBD5E1;
    font-size: 0.75rem;
}

/* -----------------------------------------------------------------
   RESPONSIVE LAYOUT & SIDEBAR MINIMIZED
----------------------------------------------------------------- */
@media (max-width: 1199.98px) {
    .sidebar-wrapper {
        left: -100%;
    }
    .sidebar-wrapper.show {
        left: 0;
        box-shadow: var(--shadow-lg);
    }
    .main-wrapper {
        margin-left: 0;
        padding: 1.25rem 1rem;
    }
    .navbar-custom {
        margin: -1.25rem -1rem 1.25rem;
        padding: 0.85rem 1rem;
    }
    .sidebar-toggle-btn {
        display: flex;
    }
    .btn-desktop-toggle {
        display: none !important;
    }
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 26, 77, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1025;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}
.sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Sidebar Minimized (Desktop) */
body.sidebar-minimized {
    --sidebar-width: 78px;
}
body.sidebar-minimized .sidebar-wrapper {
    padding: 1.5rem 0.65rem;
    align-items: center;
}
body.sidebar-minimized .sidebar-brand-text,
body.sidebar-minimized .sidebar-menu-title,
body.sidebar-minimized .sidebar-menu-link span,
body.sidebar-minimized .sidebar-menu-badge,
body.sidebar-minimized .dropdown-caret,
body.sidebar-minimized .sidebar-submenu,
body.sidebar-minimized .sidebar-profile-info {
    display: none !important;
}
body.sidebar-minimized .sidebar-brand {
    justify-content: center;
    padding: 0.4rem;
}
body.sidebar-minimized .sidebar-menu-link {
    justify-content: center;
    padding: 0.65rem;
}
body.sidebar-minimized .sidebar-menu-link.mm-active::before,
body.sidebar-minimized .sidebar-menu-link.active::before {
    left: 0;
}


/* ============================================================
   DataTables — Expand Row (child row) global fix
   Memastikan baris detail tidak floating/overlap
   ============================================================ */
table.dataTable tbody tr.dt-child-row > td {
    padding: 0 !important;
    background: transparent !important;
    border-top: none !important;
    box-shadow: none !important;
}
table.dataTable tbody tr.dt-child-row > td > div {
    animation: dtRowFadeIn 0.18s ease forwards;
}
@keyframes dtRowFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   DataTables — Sorting Icons (Hidden / Clean Headers)
   ============================================================ */
table.dataTable thead th::before,
table.dataTable thead th::after,
table.dataTable thead td::before,
table.dataTable thead td::after,
table.dataTable thead > tr > th.sorting::before,
table.dataTable thead > tr > th.sorting::after,
table.dataTable thead > tr > th.sorting_asc::before,
table.dataTable thead > tr > th.sorting_asc::after,
table.dataTable thead > tr > th.sorting_desc::before,
table.dataTable thead > tr > th.sorting_desc::after,
table.dataTable thead > tr > th.sorting_asc_disabled::before,
table.dataTable thead > tr > th.sorting_asc_disabled::after,
table.dataTable thead > tr > th.sorting_desc_disabled::before,
table.dataTable thead > tr > th.sorting_desc_disabled::after,
table.dataTable thead > tr > td.sorting::before,
table.dataTable thead > tr > td.sorting::after,
table.dataTable thead > tr > td.sorting_asc::before,
table.dataTable thead > tr > td.sorting_asc::after,
table.dataTable thead > tr > td.sorting_desc::before,
table.dataTable thead > tr > td.sorting_desc::after {
    display: none !important;
    content: "" !important;
    background-image: none !important;
}

table.dataTable thead > tr > th.sorting,
table.dataTable thead > tr > th.sorting_asc,
table.dataTable thead > tr > th.sorting_desc {
    padding-right: 0.75rem !important;
}

/* ============================================================
   GLOBAL TABLE RESPONSIVENESS & HORIZONTAL SCROLL
   Memastikan seluruh tabel di sistem dapat digeser ke samping
   secara mulus tanpa teks terpotong / tergencet
   ============================================================ */
.table-responsive,
.dataTables_wrapper .table-responsive {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
}

/* Scrollbar Modern Kustom untuk Tabel */
.table-responsive::-webkit-scrollbar,
.dataTables_wrapper::-webkit-scrollbar {
    height: 7px;
    width: 7px;
}
.table-responsive::-webkit-scrollbar-track,
.dataTables_wrapper::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}
.table-responsive::-webkit-scrollbar-thumb,
.dataTables_wrapper::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
    transition: background-color 0.2s ease;
}
.table-responsive::-webkit-scrollbar-thumb:hover,
.dataTables_wrapper::-webkit-scrollbar-thumb:hover {
    background: #0284c7;
}

/* Pastikan tabel DataTables mempertahankan layout proporsional */
.table-responsive table.table,
.table-responsive table.dataTable {
    min-width: 950px;
    margin-bottom: 0 !important;
}

/* Kolom Aksi dan Badge tetap utuh tanpa patah baris berlebihan */
table.dataTable th,
table.dataTable td {
    vertical-align: middle;
}
table.dataTable th {
    white-space: nowrap;
    background-color: #f8fafc;
    color: #1e293b;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 2px solid #e2e8f0;
}
table.dataTable td .badge {
    white-space: nowrap;
}

