/* ==========================================================================
   J&T EXPRESS - TRANSPORTATION MONITORING SYSTEM STYLESHEET
   ========================================================================== */
:root {
    --primary-red: #E30613;
    --primary-red-hover: #C8000A;
    --primary-red-gradient: linear-gradient(90deg, #C8000A 0%, #E50914 100%);
    --bg-dark-main: #0B0F17;
    --bg-dark-card: #121824;
    --bg-dark-sidebar: #101622;
    --bg-dark-input: #172030;
    --border-dark: #1E2A3C;
    --border-dark-light: #2A3B52;
    --text-white: #FFFFFF;
    --text-light: #E2E8F0;
    --text-muted: #94A3B8;
    --text-dim: #64748B;
    --green-accent: #10B981;
    --green-dark-bg: #064E3B;
    --green-dark-text: #34D399;
    --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

svg {
    max-width: 100%;
}

button svg,
.btn svg,
a svg,
.btn-jnt-red svg,
.btn-dark-outline svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

html {
    font-size: 13px;
}

/* ==========================================================================
   FONT SIZE PREFERENCES (Ukuran Font: Kecil, Sedang, Besar)
   Menggunakan skala variabel tipografi (--fs-*) agar judul utama (.inc-main-title
   & .header-main-title), sidebar, tabel, dan KPI tetap 100% konsisten di semua menu.
   ========================================================================== */
html.font-size-small {
    font-size: 11.5px !important;
    --fs-page-title: 19px;
    --fs-section-title: 13.5px;
    --fs-kpi-number: 21px;
    --fs-btn-tab: 11.5px;
    --fs-nav-sidebar: 11.5px;
    --fs-body-table: 11.5px;
    --fs-table-th: 10px;
    --fs-badge-sub: 10px;
}

html.font-size-small body,
html.font-size-small table,
html.font-size-small input,
html.font-size-small select,
html.font-size-small textarea,
html.font-size-small button {
    font-size: 11.5px !important;
}

html.font-size-medium {
    font-size: 13px !important;
    --fs-page-title: 22px;
    --fs-section-title: 15px;
    --fs-kpi-number: 24px;
    --fs-btn-tab: 13px;
    --fs-nav-sidebar: 12.5px;
    --fs-body-table: 12.5px;
    --fs-table-th: 11px;
    --fs-badge-sub: 11px;
}

html.font-size-large {
    font-size: 14.5px !important;
    --fs-page-title: 24px;
    --fs-section-title: 16.5px;
    --fs-kpi-number: 26px;
    --fs-btn-tab: 14px;
    --fs-nav-sidebar: 13.5px;
    --fs-body-table: 13.5px;
    --fs-table-th: 12px;
    --fs-badge-sub: 12px;
}

html.font-size-large body {
    font-size: 14.5px !important;
}

html.font-size-large table {
    font-size: 13.5px !important;
}

html.font-size-large input,
html.font-size-large select,
html.font-size-large textarea,
html.font-size-large button {
    font-size: 14px !important;
}

html.font-size-large .sh-driver-name {
    font-size: 12.5px !important;
}

html.font-size-large .sh-driver-phone {
    font-size: 11px !important;
}

/* Kompak (Compact) */
html.density-compact .sla-enterprise-table th,
html.density-compact .sla-enterprise-table td,
html.density-compact .inc-data-table th,
html.density-compact .inc-data-table td,
html.density-compact .monitoring-table th,
html.density-compact .monitoring-table td,
html.density-compact table th,
html.density-compact table td {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
}

html.density-compact .mon-sticky-col-6 {
    padding: 4px 6px !important;
}

html.density-compact .settings-card .st-card-body {
    padding: 14px 18px !important;
    gap: 8px !important;
}

html.density-compact .form-group-st {
    margin-bottom: 8px !important;
}

html.density-compact .form-group-st input,
html.density-compact .form-group-st select,
html.density-compact .form-group-st textarea {
    padding: 6px 10px !important;
}

html.density-compact .settings-card-header {
    padding: 10px 18px !important;
}

html.density-compact .sla-kpi-grid {
    gap: 8px !important;
}

html.density-compact .sla-kpi-card {
    padding: 10px 14px !important;
}

/* Lega (Comfortable) */
html.density-comfortable .sla-enterprise-table th,
html.density-comfortable .sla-enterprise-table td,
html.density-comfortable .inc-data-table th,
html.density-comfortable .inc-data-table td,
html.density-comfortable .monitoring-table th,
html.density-comfortable .monitoring-table td,
html.density-comfortable table th,
html.density-comfortable table td {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}

html.density-comfortable .mon-sticky-col-6 {
    padding: 10px 12px !important;
}

html.density-comfortable .settings-card .st-card-body {
    padding: 24px 28px !important;
    gap: 16px !important;
}

html.density-comfortable .form-group-st {
    margin-bottom: 18px !important;
}

html.density-comfortable .form-group-st input,
html.density-comfortable .form-group-st select,
html.density-comfortable .form-group-st textarea {
    padding: 11px 14px !important;
}

html.density-comfortable .settings-card-header,
html.density-comfortable .sla-kpi-card {
    padding: 18px 24px !important;
}

html.density-comfortable .sla-kpi-grid {
    gap: 16px !important;
}

/* ==========================================================
   LOGIN PAGE SCROLL LOCK
   Ketika halaman login aktif, body tidak boleh scroll sendiri.
   Satu-satunya scroll surface adalah .form-panel.
   Kelas ini ditambahkan via JS saat index.html dimuat.
   ========================================================== */
body.login-page {
    overflow: hidden;
    height: 100vh;
}

.app-container {
    min-height: 100vh;
    width: 100%;
}

/* App-container di login page: kunci ke tinggi viewport */
body.login-page .app-container {
    height: 100vh;
    min-height: unset;
    overflow: hidden;
}

.hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
}

/* ==========================================================================
   LOGIN SECTION - FULL LANDSCAPE BACKGROUND & CENTERED GLASS CARD
   ========================================================================== */
.login-section {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Subtle Vignette Dark Overlay so background landscape is visible */
.login-bg-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(10, 18, 32, 0.15) 0%, rgba(5, 11, 20, 0.5) 100%);
    z-index: 2;
}

/* ── Centered Form Panel ─────────────────────────────────────────────────── */
.map-watermark {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 60%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.2;
}

.red-diagonal-accent {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 350px;
    height: 350px;
    pointer-events: none;
    z-index: 1;
}

.red-diagonal-accent svg {
    width: 100%;
    height: 100%;
}

/* ── Eye-Pleasing Login Card Entrance & Glow Animations ───────────────── */
@keyframes cardFloatIn {
    0% {
        opacity: 0;
        transform: translateY(28px) scale(0.95);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 20px rgba(227, 6, 19, 0.15);
    }
}

@keyframes laserBorderGlow {

    0%,
    100% {
        border-color: rgba(255, 255, 255, 0.18);
        box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65), 0 0 15px rgba(227, 6, 19, 0.12);
    }

    50% {
        border-color: rgba(227, 6, 19, 0.45);
        box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75), 0 0 28px rgba(227, 6, 19, 0.28);
    }
}

@keyframes badgePulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(227, 6, 19, 0.45);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(227, 6, 19, 0.7);
    }
}

/* ── Compact Login Card (Centered & Semi-Transparent Glass) ──────────────── */
.login-card {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 380px;
    background: rgba(11, 18, 30, 0.92);
    border-radius: 20px;
    padding: 24px 28px 20px 28px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.58), 0 0 28px rgba(227, 6, 19, 0.16);
    animation: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Brand header inside card */
.login-brand-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo-jnt-text {
    font-size: 13px;
    font-weight: 900;
    font-style: italic;
    color: #FFFFFF;
    letter-spacing: -0.5px;
}

.login-brand-meta {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.login-brand-name {
    font-size: 14px;
    font-weight: 800;
    color: #FFFFFF;
}

.login-brand-product {
    font-size: 11px;
    font-weight: 600;
    color: #38BDF8;
}

.login-header {
    margin-bottom: 14px;
}

.login-title {
    font-size: 21px;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.login-subtitle {
    font-size: 12px;
    font-weight: 500;
    color: #94A3B8;
    line-height: 1.4;
    margin-bottom: 0;
}

/* ── System Status Bar ──────────────────────────────────────────────────── */
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    background-color: #94A3B8;
    transition: background-color 0.3s ease;
}

.status-dot.online {
    background-color: #10B981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
    animation: pulse-online 2s infinite;
}

.status-dot.local {
    background-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.status-dot.error {
    background-color: #EF4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

@keyframes pulse-online {

    0%,
    100% {
        box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.08);
    }
}

/* ── Alert Box ──────────────────────────────────────────────────────────── */
.alert-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background-color: #FEF2F2;
    border: 1px solid #FCA5A5;
    border-left: 4px solid #DC2626;
    color: #991B1B;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    margin-bottom: 18px;
    animation: alertSlideIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

:is(html, body).dark-body-theme .alert-box {
    background-color: rgba(220, 38, 38, 0.14);
    border-color: rgba(248, 113, 113, 0.35);
    border-left-color: #EF4444;
    color: #FECACA;
}

.alert-icon {
    flex-shrink: 0;
    margin-top: 1px;
    color: #DC2626;
}

@keyframes alertSlideIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Form Elements ──────────────────────────────────────────────────────── */
.form-group {
    margin-bottom: 12px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #CBD5E1;
    margin-bottom: 5px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border: 1.5px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    background-color: rgba(15, 23, 42, 0.6);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.input-wrapper:focus-within {
    border-color: #E30613;
    background-color: rgba(15, 23, 42, 0.85);
    box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.18);
}

.input-icon {
    position: absolute;
    left: 12px;
    color: #64748B;
    display: flex;
    align-items: center;
    pointer-events: none;
    transition: color 0.15s ease;
}

.input-wrapper:focus-within .input-icon {
    color: #E30613;
}

.form-input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    padding: 10px 38px;
    font-family: inherit;
    font-size: 13px;
    color: #FFFFFF;
}

.form-input::placeholder {
    color: #64748B;
    font-size: 12.5px;
}

/* Field validation hints */
.field-hint {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: #FCA5A5;
    margin-top: 4px;
    padding-left: 2px;
}

/* Password toggle */
.password-toggle-btn {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    cursor: pointer;
    color: #64748B;
    padding: 4px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.password-toggle-btn:hover {
    color: #E30613;
    background-color: rgba(227, 6, 19, 0.15);
}

.password-toggle-btn:focus-visible,
.checkbox-container input:focus-visible~.custom-checkbox {
    outline: 2px solid #E30613;
    outline-offset: 2px;
}

.eye-icon {
    display: block;
    width: 16px;
    height: 16px;
}

/* ── Form Options Row (Remember Me + Forgot) ────────────────────────────── */
.form-options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}

.checkbox-container {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.custom-checkbox {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    background: rgba(15, 23, 42, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease, border-color 0.15s ease;
    flex-shrink: 0;
}

.checkbox-container input:checked~.custom-checkbox {
    background-color: #E30613;
    border-color: #E30613;
}

.custom-checkbox svg {
    color: transparent;
    transition: color 0.1s ease;
}

.checkbox-container input:checked~.custom-checkbox svg {
    color: #FFFFFF;
}

.checkbox-label {
    font-size: 12px;
    font-weight: 600;
    color: #CBD5E1;
}

.forgot-link {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: #FCA5A5;
    padding: 0;
    text-decoration: none;
    transition: color 0.15s ease;
    font-family: inherit;
}

.forgot-link:hover {
    color: var(--primary-red-hover);
    text-decoration: underline;
}

.forgot-link:focus-visible {
    outline: 2px solid var(--primary-red);
    outline-offset: 2px;
    border-radius: 3px;
}

/* ── Login Button ───────────────────────────────────────────────────────── */
.btn-login:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(227, 6, 19, 0.3);
}

.btn-login:disabled {
    cursor: not-allowed;
    opacity: 0.8;
}

.btn-login:focus-visible {
    outline: 3px solid rgba(227, 6, 19, 0.5);
    outline-offset: 2px;
}

.btn-text-content {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.2s ease;
}

.login-btn-icon {
    flex-shrink: 0;
}

/* Spinner */
.btn-spinner {
    width: 20px;
    height: 20px;
    border: 2.5px solid rgba(255, 255, 255, 0.35);
    border-top-color: #FFFFFF;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: inline-block;
    position: absolute;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── Card Footer ────────────────────────────────────────────────────────── */
.card-footer {
    margin-top: 24px;
}

.footer-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.footer-divider span:first-child,
.footer-divider span:last-child {
    flex: 1;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    display: block;
}

.footer-divider-text {
    font-size: 11px;
    font-weight: 600;
    color: #64748B;
    white-space: nowrap;
    flex: none;
}

.footer-info-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.footer-info-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 600;
    color: #64748B;
}

.footer-info-item svg {
    color: #64748B;
    flex-shrink: 0;
}

.footer-copyright {
    text-align: center;
    font-size: 11.5px;
    color: #64748B;
    font-weight: 500;
}

/* ── Forgot Password Modal ──────────────────────────────────────────────── */
.login-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: overlayFadeIn 0.2s ease;
}

.login-modal-overlay.hidden {
    display: none;
}

@keyframes overlayFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.login-modal-box {
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 400px;
    overflow: hidden;
    animation: modalSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid #F1F5F9;
}

.login-modal-title {
    font-size: 16px;
    font-weight: 800;
    color: #0F172A;
}

.login-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #94A3B8;
    padding: 6px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.login-modal-close:hover {
    color: #0F172A;
    background-color: #F1F5F9;
}

.login-modal-close:focus-visible {
    outline: 2px solid var(--primary-red);
    outline-offset: 2px;
}

.login-modal-body {
    padding: 24px 20px;
    text-align: center;
}

.help-icon-wrap {
    font-size: 40px;
    margin-bottom: 12px;
}

.help-desc {
    font-size: 13px;
    color: #64748B;
    line-height: 1.6;
    margin-bottom: 20px;
}

.help-contact-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 14px 16px;
    text-align: left;
}

.help-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    font-weight: 600;
    color: #334155;
}

.help-contact-item svg {
    color: var(--primary-red);
    flex-shrink: 0;
}

/* Base container sizing */
html,
body,
.app-container {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

@media (min-width: 993px) {

    html,
    body,
    .app-container {
        height: 100%;
        overflow: hidden;
    }

    .dashboard-layout {
        display: flex;
        width: 100%;
        height: 100vh;
        overflow: hidden;
    }
}

/* Sidebar Styles (STAY FIXED ON THE LEFT) */
.sidebar-panel {
    width: 195px;
    min-width: 195px;
    font-size: 12px;
    background-color: var(--bg-dark-sidebar);
    border-right: 1px solid var(--border-dark);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100vh;
    position: sticky;
    top: 0;
    left: 0;
    flex-shrink: 0;
    overflow-y: auto;
    z-index: 50;
    transition: width 0.25s ease;
}

.sidebar-red-header {
    background-color: var(--primary-red);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jnt-logo-text {
    font-size: 17px;
    font-weight: 900;
    color: #FFFFFF;
    font-style: italic;
    letter-spacing: -1px;
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
}

.express-tag {
    font-size: 11px;
    font-weight: 800;
    color: #FFFFFF;
    font-style: italic;
}

.sidebar-user-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    margin: 8px 8px 4px 8px;
    background-color: #172030;
    border-radius: 8px;
    border: 1px solid var(--border-dark);
    cursor: pointer;
    transition: background 0.2s ease;
}

.avatar-wrapper {
    position: relative;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
}

.user-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #2A3B52;
}

.online-indicator-dot {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 8px;
    height: 8px;
    background-color: #10B981;
    border: 2px solid var(--bg-dark-sidebar);
    border-radius: 50%;
}

.user-profile-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.user-name-row,
.history-left,
.summary-label-wrap,
.mode-select-btns {
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-name {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chevron-down-icon {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
    color: var(--text-muted);
}

.profile-role {
    font-size: 9.5px;
    font-weight: 700;
    color: var(--primary-red);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.profile-status {
    font-size: 9px;
    font-weight: 600;
    color: var(--green-accent);
    display: flex;
    align-items: center;
    gap: 3px;
    margin-top: 1px;
}

.sidebar-nav {
    flex: 1;
    padding: 4px 6px;
    overflow-y: auto;
}

.sidebar-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 7px;
    color: var(--text-muted);
    font-size: 11.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-icon {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.nav-item:hover .nav-link {
    color: var(--text-white);
    background-color: #1A2333;
}

.nav-item.active .nav-link {
    background: var(--primary-red-gradient);
    color: var(--text-white);
    box-shadow: 0 4px 14px rgba(227, 6, 19, 0.4);
}

.nav-item.active .nav-link .nav-icon {
    color: var(--text-white);
}

.sidebar-footer-graphic {
    padding: 10px 10px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(16, 22, 34, 0) 0%, rgba(227, 6, 19, 0.15) 100%);
    border-top: 1px solid var(--border-dark);
}

.route-line-svg {
    width: 100%;
    height: 44px;
    opacity: 0.8;
}

.truck-image-wrapper {
    width: 100%;
    height: 72px;
    margin-top: -20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-truck-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    opacity: 0.9;
}

.sidebar-system-title {
    margin-top: 6px;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.sys-light {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 500;
}

.sys-bold {
    font-size: 11px;
    font-weight: 800;
    color: var(--text-white);
}

/* Action Bar */
.btn-jnt-red {
    background-color: var(--primary-red);
    color: #FFFFFF;
    border: none;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(227, 6, 19, 0.3);
}

.btn-jnt-red:hover {
    background-color: var(--primary-red-hover);
}

/* Main SLA Data Card */
.btn-dark-outline {
    background-color: #172030;
    color: var(--text-light);
    border: 1px solid var(--border-dark-light);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-dark-outline svg,
.btn-white-outline svg {
    width: 14px;
    height: 14px;
}

/* Complex SLA Table (PHOTO 2 EXACT STYLING) */
.col-center {
    text-align: center !important;
}

/* SLA Pagination Footer */
.page-dots {
    padding: 0 4px;
    color: var(--text-dim);
}

/* Modal Form Styles */
.modal-overlay::-webkit-scrollbar,
.modal-card::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.form-field input {
    background-color: #172030;
    border: 1px solid var(--border-dark);
    border-radius: 6px;
    padding: 10px 12px;
    color: var(--text-white);
    font-size: 13px;
    outline: none;
}

/* ==========================================================================
   INCOMING PAGE STYLES (MATCHING USER SCREENSHOT)
   ========================================================================== */
.main-incoming-body {
    flex: 1;
    min-width: 0;
    height: 100vh;
    padding: 16px 20px;
    background-color: #F8FAFC;
    color: #1E293B;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    box-sizing: border-box;
}

/* Top Nav Header */
.inc-top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 8px;
}

.inc-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hamburger-btn {
    background: rgba(100, 116, 139, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    padding: 6px;
    cursor: pointer;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.12s ease;
}

.hamburger-btn:hover,
.hamburger-btn:focus-visible {
    background: rgba(227, 6, 19, 0.1);
    border-color: rgba(227, 6, 19, 0.3);
    color: var(--primary-red);
    outline: none;
}

.hamburger-btn:active {
    transform: scale(0.95);
}

.hamburger-btn svg {
    width: 20px;
    height: 20px;
}

.inc-main-title {
    font-size: 20px;
    font-weight: 800;
    color: #0F172A;
}

.inc-breadcrumb {
    font-size: 12.5px;
    color: #94A3B8;
    font-weight: 500;
    margin-left: 4px;
}

.inc-top-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.inc-date-chip {
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.inc-date-chip svg {
    width: 15px;
    height: 15px;
    color: #64748B;
}

.inc-notif-bell {
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    width: 38px;
    height: 38px;
    border-radius: 9px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #334155;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.12s ease;
}

.inc-notif-bell:hover,
.inc-notif-bell:focus-visible {
    background-color: #FEF2F2;
    border-color: rgba(227, 6, 19, 0.35);
    color: var(--primary-red);
    outline: none;
}

.inc-notif-bell:active {
    transform: scale(0.95);
}

.inc-notif-bell svg {
    width: 18px;
    height: 18px;
}

.inc-bell-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-red);
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    padding: 0 5px;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(227, 6, 19, 0.45);
    border: 2px solid #FFFFFF;
}

.inc-bell-badge.jnt-badge-zero,
.jnt-notif-count-badge.jnt-badge-zero {
    display: none !important;
}

:is(html, body).dark-body-theme .inc-notif-bell {
    background-color: #121824 !important;
    border-color: #1E2A3C !important;
    color: #E2E8F0 !important;
}

:is(html, body).dark-body-theme .inc-notif-bell:hover,
:is(html, body).dark-body-theme .inc-notif-bell:focus-visible {
    background-color: rgba(227, 6, 19, 0.16) !important;
    border-color: rgba(248, 113, 113, 0.45) !important;
    color: #FCA5A5 !important;
}

:is(html, body).dark-body-theme .inc-notif-bell svg {
    color: inherit !important;
    stroke: currentColor !important;
}

:is(html, body).dark-body-theme .inc-bell-badge {
    border-color: #0F172A;
}

.inc-user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.inc-avatar-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.inc-user-meta,
.detail-hero-meta {
    display: flex;
    flex-direction: column;
}

.inc-user-name {
    font-size: 13.5px;
    font-weight: 700;
    color: #0F172A;
}

.inc-user-role {
    font-size: 11.5px;
    color: #64748B;
}

/* Action Header Row */
.inc-action-row {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn-inc-import {
    background-color: #FFFFFF;
    border: 1px solid #CBD5E1;
    color: #334155;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.btn-inc-import svg {
    width: 16px;
    height: 16px;
}

.btn-inc-add {
    background-color: var(--primary-red);
    color: #FFFFFF;
    border: none;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(227, 6, 19, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1;
}

.btn-inc-add svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    display: block;
}

/* 5 KPI Cards Row */
.inc-kpi-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.inc-kpi-card {
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.inc-kpi-icon-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.inc-kpi-icon-circle svg {
    width: 20px;
    height: 20px;
}

.inc-kpi-icon-circle.red-light {
    background-color: #FEF2F2;
    color: #EF4444;
}

.inc-kpi-icon-circle.orange-light {
    background-color: #FFFBEB;
    color: #F59E0B;
}

.inc-kpi-icon-circle.blue-light {
    background-color: #EFF6FF;
    color: #3B82F6;
}

.inc-kpi-icon-circle.green-light {
    background-color: #ECFDF5;
    color: #10B981;
}

.inc-kpi-icon-circle.purple-light {
    background-color: #F3E8FF;
    color: #9333EA;
}

.inc-kpi-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.inc-kpi-label {
    font-size: 10.5px;
    font-weight: 700;
    color: #64748B;
    letter-spacing: 0.3px;
}

.inc-kpi-val-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 4px;
}

.inc-kpi-number {
    font-size: 24px;
    font-weight: 800;
    color: #0F172A;
    line-height: 1.1;
}

.inc-kpi-unit {
    font-size: 13px;
    font-weight: 600;
    color: #64748B;
}

.inc-kpi-sub {
    font-size: 11px;
    font-weight: 600;
    margin-top: 4px;
}

.inc-kpi-sub.green {
    color: #10B981;
}

.inc-progress-bar-wrap {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.progress-pct {
    font-size: 11px;
    font-weight: 700;
}

.progress-pct.orange {
    color: #F59E0B;
}

.progress-pct.blue {
    color: #3B82F6;
}

.progress-pct.green {
    color: #10B981;
}

.progress-track {
    width: 100%;
    height: 4px;
    background-color: #F1F5F9;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 4px;
}

.progress-fill.orange {
    background-color: #F59E0B;
}

.progress-fill.blue {
    background-color: #3B82F6;
}

.progress-fill.green {
    background-color: #10B981;
}

/* Filter Section */
.inc-filter-card {
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.filter-inputs-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-group label {
    font-size: 11.5px;
    font-weight: 600;
    color: #475569;
}

.filter-group input,
.filter-group select {
    background-color: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 12.5px;
    color: #1E293B;
    outline: none;
    font-family: inherit;
}

.search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrap input {
    width: 100%;
    padding-right: 32px;
}

.search-input-wrap svg {
    position: absolute;
    right: 10px;
    width: 16px;
    height: 16px;
    color: #94A3B8;
}

.filter-action-btns {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn-inc-reset {
    background-color: #F1F5F9;
    border: 1px solid #CBD5E1;
    color: #475569;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
}

/* Incoming Split Layout (Table + Detail Panel) */
.inc-split-container {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.inc-table-card {
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    flex: 1;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.inc-table-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.inc-table-title,
.detail-title,
.detail-code {
    font-size: 15px;
    font-weight: 800;
    color: #0F172A;
}

.inc-per-page {
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
    color: #334155;
    outline: none;
}

.inc-data-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    font-size: 12px;
}

.inc-data-table th {
    background-color: #F8FAFC;
    color: #64748B;
    font-weight: 700;
    text-align: left;
    padding: 10px 12px;
    border-bottom: 2px solid #E2E8F0;
    white-space: nowrap;
}

.inc-data-table td {
    padding: 12px;
    border-bottom: 1px solid #F1F5F9;
    color: #334155;
    white-space: nowrap;
}

.inc-row:hover {
    background-color: #F8FAFC;
    cursor: pointer;
}

.inc-row.active-selected {
    background-color: #EFF6FF;
}

/* Status Badges */
.badge-status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    display: inline-block;
}

.badge-status.orange-outline {
    border: 1.5px solid #F97316;
    color: #EA580C;
    background-color: #FFF7ED;
}

.badge-status.blue-outline {
    border: 1.5px solid #3B82F6;
    color: #2563EB;
    background-color: #EFF6FF;
}

.badge-status.green-outline {
    border: 1.5px solid #22C55E;
    color: #16A34A;
    background-color: #F0FDF4;
}

.btn-view-eye {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

/* Pagination */
.inc-table-footer {
    display: flex;
    justify-content: center;
    padding-top: 10px;
}

.inc-pagination {
    display: flex;
    align-items: center;
    gap: 6px;
}

.p-btn {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: 1px solid #E2E8F0;
    background-color: #FFFFFF;
    color: #475569;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.p-btn.active {
    background-color: var(--primary-red);
    color: #FFFFFF;
    border-color: var(--primary-red);
    font-weight: 800;
}

/* Right Detail Incoming Panel */
.inc-detail-card {
    width: 380px;
    min-width: 380px;
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detail-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.detail-route {
    font-size: 12px;
    font-weight: 700;
    color: #475569;
}

.detail-info-list,
.history-items-list,
.legend-items-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    border-bottom: 1px dashed #F1F5F9;
    padding-bottom: 8px;
}

.info-label {
    color: #64748B;
    display: flex;
    align-items: center;
    gap: 6px;
}

.info-value {
    color: #0F172A;
    font-weight: 600;
}

.font-bold {
    font-weight: 800 !important;
}

/* Timeline Perjalanan */
.detail-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 6px;
}

.btn-group-2 {
    display: flex;
    gap: 10px;
}

.btn-white-outline {
    flex: 1;
    background-color: #FFFFFF;
    border: 1px solid #CBD5E1;
    color: #334155;
    padding: 8px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-red-full {
    width: 100%;
    background-color: var(--primary-red);
    color: #FFFFFF;
    border: none;
    padding: 10px;
    border-radius: 6px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(227, 6, 19, 0.3);
}

.btn-red-full svg {
    width: 16px;
    height: 16px;
}

/* Bottom Info Banner */
.inc-info-banner {
    background-color: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-radius: 10px;
    padding: 14px 18px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

/* Trouble & Laka Specific Gallery & Timeline Styles */
.incident-thumb {
    width: 100%;
    height: 54px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #E2E8F0;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.incident-thumb:hover {
    transform: scale(1.05);
}

.step-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 4px;
    flex-shrink: 0;
}

.step-dot.orange-dot {
    background-color: #F59E0B;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.step-meta {
    flex: 1;
}

/* ==========================================================================
   USER MANAGEMENT STYLES (MATCHING USER SCREENSHOT)
   ========================================================================== */
.user-row-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #E2E8F0;
}

.text-dim {
    color: #64748B;
}

.role-badge {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    display: inline-block;
}

.role-operator {
    background-color: #DCFCE7;
    color: #16A34A;
}

.role-supervisor {
    background-color: #DBEAFE;
    color: #2563EB;
}

.role-admin {
    background-color: #FEE2E2;
    color: #DC2626;
}

.status-dot-active {
    color: #16A34A;
    font-weight: 700;
    font-size: 11.5px;
}

.status-dot-inactive {
    color: #DC2626;
    font-weight: 700;
    font-size: 11.5px;
}

.user-actions-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-action-sm {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 4px;
    padding: 3px 6px;
    font-size: 12px;
    cursor: pointer;
}

.btn-action-sm:hover {
    background: #F1F5F9;
}

/* Right Detail User Panel */
.user-detail-profile-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding-bottom: 14px;
    border-bottom: 1px dashed #E2E8F0;
}

.user-detail-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #E2E8F0;
}

.user-detail-hero-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-detail-name {
    font-size: 16px;
    font-weight: 800;
    color: #0F172A;
}

.user-active-chip {
    background-color: #DCFCE7;
    color: #16A34A;
    font-size: 10.5px;
    font-weight: 800;
    padding: 1px 8px;
    border-radius: 10px;
}

.user-detail-uname {
    font-size: 12px;
    color: #64748B;
}

.user-detail-role {
    font-size: 12px;
    font-weight: 600;
    color: #334155;
}

.user-actions-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.btn-white-outline-full {
    width: 100%;
    background-color: #FFFFFF;
    border: 1px solid #CBD5E1;
    color: #334155;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-white-outline-full:hover {
    background-color: #F8FAFC;
}

.btn-red-outline-full {
    width: 100%;
    background-color: #FFFFFF;
    border: 1px solid #FCA5A5;
    color: #DC2626;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-red-outline-full:hover {
    background-color: #FEF2F2;
}

/* User Login History Section */
.user-login-history-section {
    background-color: #F8FAFC;
    border-radius: 10px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.history-heading {
    font-size: 13px;
    font-weight: 700;
    color: #0F172A;
}

.login-history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11.5px;
}

.green-dot-sm {
    font-size: 8px;
}

.history-time {
    font-weight: 700;
    color: #1E293B;
    display: block;
}

.history-device {
    font-size: 10.5px;
    color: #64748B;
}

.history-ip {
    font-size: 11px;
    color: #94A3B8;
}

.btn-view-all-history {
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    color: #475569;
    padding: 7px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 4px;
}

.btn-view-all-history:hover {
    background-color: #F1F5F9;
}

/* Sidebar Help Box Widget */
.help-title {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 8px;
}

/* Page Footer */
.app-page-footer {
    padding: 12px 28px;
    border-top: 1px solid #E2E8F0;
    background-color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #94A3B8;
}

/* ==========================================================================
   MONITORING 4 JAM STYLES (MATCHING USER SCREENSHOT)
   ========================================================================== */
.monitoring-table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.monitoring-table th,
.monitoring-table td {
    box-sizing: border-box;
}

.monitoring-table td {
    font-size: 11.5px;
}

/* ── Sticky Freeze Columns: Kolom 1 (No) sampai Kolom 6 (Driver) ── */
.monitoring-table th.mon-sticky-col,
.monitoring-table td.mon-sticky-col {
    position: sticky !important;
}

.monitoring-table thead th.mon-sticky-col {
    z-index: 25 !important;
    background-color: #F8FAFC !important;
}

.monitoring-table tbody td.mon-sticky-col {
    z-index: 15 !important;
    background-color: #FFFFFF !important;
}

.monitoring-table tbody tr:hover td.mon-sticky-col {
    background-color: #F1F5F9 !important;
}

.mon-sticky-col-0 {
    left: 0 !important;
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    text-align: center;
    padding-left: 6px !important;
    padding-right: 6px !important;
}

.mon-sticky-col-1 {
    left: 38px !important;
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    text-align: center;
}

.mon-sticky-col-2 {
    left: 86px !important;
    width: 135px !important;
    min-width: 135px !important;
    max-width: 135px !important;
}

.mon-sticky-col-3 {
    left: 221px !important;
    width: 130px !important;
    min-width: 130px !important;
    max-width: 130px !important;
    text-align: center;
}

.mon-sticky-col-4 {
    left: 351px !important;
    width: 105px !important;
    min-width: 105px !important;
    max-width: 105px !important;
}

.mon-sticky-col-5 {
    left: 456px !important;
    width: 115px !important;
    min-width: 115px !important;
    max-width: 115px !important;
}

.mon-sticky-col-6 {
    left: 571px !important;
    width: 165px !important;
    min-width: 165px !important;
    max-width: 165px !important;
    border-right: 2px solid #CBD5E1 !important;
    box-shadow: 4px 0 10px -2px rgba(15, 23, 42, 0.12);
    box-sizing: border-box !important;
    padding: 6px 8px !important;
    overflow: hidden !important;
}

/* Dark Mode support untuk freeze table */
:is(html, body).dark-body-theme .monitoring-table thead th.mon-sticky-col {
    background-color: #0F172A !important;
    color: #94A3B8 !important;
    border-bottom: 2px solid #334155 !important;
}

:is(html, body).dark-body-theme .monitoring-table tbody td.mon-sticky-col {
    background-color: #121824 !important;
    color: #F1F5F9 !important;
    border-bottom: 1px solid #1E293B !important;
}

:is(html, body).dark-body-theme .monitoring-table tbody tr:hover td.mon-sticky-col {
    background-color: #1E293B !important;
}

:is(html, body).dark-body-theme .mon-sticky-col-6 {
    border-right: 2px solid #334155 !important;
    box-shadow: 4px 0 10px -2px rgba(0, 0, 0, 0.4);
}

.side-card-title {
    font-size: 13px;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 10px;
}

.summary-items-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #334155;
    padding-bottom: 6px;
    border-bottom: 1px dashed #F1F5F9;
}

.icon-sq {
    font-size: 12px;
}

.legend-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.leg-icon {
    font-size: 12px;
    margin-top: 2px;
}

.leg-title {
    font-size: 11.5px;
    font-weight: 700;
    color: #0F172A;
    display: block;
}

.leg-desc {
    font-size: 10.5px;
    color: #64748B;
    display: block;
    line-height: 1.3;
}

/* Donut Chart Component */
.green-dot {
    background-color: #16A34A;
}

/* ==========================================================================
   SETTINGS (PENGATURAN) OVERHAUL STYLES (MATCHING USER SCREENSHOT)
   ========================================================================== */
.settings-nav-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid #E2E8F0;
    padding-bottom: 2px;
    overflow-x: auto;
}

.settings-tab-item {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 8px 12px;
    font-size: 12.5px;
    font-weight: 600;
    color: #64748B;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.settings-tab-item.active {
    color: #E30613;
    border-bottom-color: #E30613;
    font-weight: 700;
}

.settings-grid-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.sys-monitor-ic {
    width: 28px;
    height: 28px;
}

.form-group-st input[type="text"],
.form-group-st select,
.form-group-st textarea {
    background-color: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 11.5px;
    color: #0F172A;
    outline: none;
}

.st-double-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* Switch Toggle Styling */
.toggle-setting-row.no-ic {
    padding-left: 0;
}

.switch-toggle {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
    flex-shrink: 0;
}

.switch-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-round {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #CBD5E1;
    transition: .3s;
    border-radius: 20px;
}

.slider-round:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked+.slider-round,
.color-dot.red {
    background-color: #E30613;
}

input:checked+.slider-round:before {
    transform: translateX(16px);
}

/* Color Theme Dots */
.color-theme-dots {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.color-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.color-dot.blue {
    background-color: #2563EB;
}

.color-dot.green {
    background-color: #16A34A;
}

.color-dot.purple {
    background-color: #9333EA;
}

.color-dot.orange {
    background-color: #EA580C;
}

.color-dot.dark {
    background-color: #1E293B;
}

/* Display Mode Buttons */
.btn-mode {
    flex: 1;
    background-color: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 11.5px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
}

.btn-mode.active {
    background-color: #FEF2F2;
    border-color: #FCA5A5;
    color: #DC2626;
}

body.dark-body-theme .btn-mode {
    background-color: #172030;
    border-color: #2A3B52;
    color: #E2E8F0;
}

body.dark-body-theme .btn-mode.active {
    background-color: #3B1D25;
    border-color: #E30613;
    color: #FCA5A5;
}

/* Data Management Items */
.btn-data-action {
    background-color: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
}

.btn-data-action:hover {
    background-color: #F1F5F9;
}

/* Danger Reset Box */

/* ==========================================================================
   PROFILE PAGE STYLES
   ========================================================================== */
.profile-hero-card {
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
}

.profile-cover-bg {
    height: 120px;
    background: linear-gradient(135deg, #E30613 0%, #990000 100%);
    position: relative;
}

.cover-overlay-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px);
    background-size: 16px 16px;
    opacity: 0.6;
}

.profile-hero-main {
    padding: 0 24px 20px 24px;
    display: flex;
    align-items: flex-end;
    gap: 20px;
    margin-top: -45px;
    position: relative;
}

.profile-avatar-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.profile-hero-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #FFFFFF;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    background-color: #FFFFFF;
}

.avatar-edit-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 30px;
    height: 30px;
    background-color: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.avatar-edit-badge:hover {
    transform: scale(1.1);
    background-color: #FEF2F2;
    border-color: #FCA5A5;
}

.profile-hero-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 4px;
}

.profile-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.profile-full-name {
    font-size: 22px;
    font-weight: 800;
    color: #0F172A;
    margin: 0;
}

.badge-role-hero {
    background-color: #FEF2F2;
    color: #E30613;
    border: 1px solid #FCA5A5;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
}

.badge-status-green {
    background-color: #F0FDF4;
    color: #16A34A;
    border: 1px solid #86EFAC;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
}

.profile-sub-meta {
    font-size: 12px;
    color: #64748B;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0;
}

.meta-dot {
    color: #CBD5E1;
}

.profile-hero-actions {
    margin-bottom: 6px;
}

.profile-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    border-top: 1px solid #F1F5F9;
    background-color: #FAFAFA;
}

.p-stat-box {
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-right: 1px solid #F1F5F9;
    min-width: 0;
}

.p-stat-box:last-child {
    border-right: none;
}

.p-stat-ic {
    font-size: 18px;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.p-stat-ic.red {
    background-color: #FEF2F2;
    color: #DC2626;
}

.p-stat-ic.green {
    background-color: #F0FDF4;
    color: #16A34A;
}

.p-stat-ic.blue {
    background-color: #EFF6FF;
    color: #2563EB;
}

.p-stat-ic.purple {
    background-color: #F3E8FF;
    color: #9333EA;
}

.p-stat-val {
    font-size: 15px;
    font-weight: 800;
    color: #0F172A;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.p-stat-lbl {
    font-size: 11px;
    color: #64748B;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.form-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* Device Sessions Card */
.device-session-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background-color: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    margin-bottom: 8px;
}

.device-session-item.active-session {
    background-color: #EFF6FF;
    border-color: #BFDBFE;
}

.device-ic-wrap {
    font-size: 18px;
}

.device-meta {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.device-name {
    font-size: 12px;
    color: #0F172A;
}

.device-sub {
    font-size: 10.5px;
    color: #64748B;
}

.device-status-tag {
    font-size: 10px;
    font-weight: 700;
    margin-top: 2px;
}

.btn-revoke-session {
    background: none;
    border: none;
    color: #94A3B8;
    cursor: pointer;
    font-size: 13px;
    padding: 4px;
}

.btn-revoke-session:hover {
    color: #DC2626;
}

/* Profile Activity Timeline */
.profile-activity-timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.p-act-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.p-act-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 5px;
    flex-shrink: 0;
}

.p-act-dot.green {
    background-color: #16A34A;
}

.p-act-dot.blue {
    background-color: #2563EB;
}

.p-act-dot.red {
    background-color: #DC2626;
}

.p-act-meta {
    display: flex;
    flex-direction: column;
    font-size: 11.5px;
}

.p-act-meta strong {
    color: #0F172A;
    font-weight: 700;
}

.p-act-meta span {
    color: #475569;
}

.p-act-time {
    font-size: 10px !important;
    color: #94A3B8 !important;
    margin-top: 2px;
}

/* ==========================================================================
   SETTINGS & FORM STYLES
   ========================================================================== */
.settings-card {
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.settings-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid #F1F5F9;
}

.st-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.st-icon {
    font-size: 16px;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.st-icon.blue {
    background-color: #EFF6FF;
}

.st-icon.orange {
    background-color: #FFFBEB;
}

.st-icon.purple {
    background-color: #F3E8FF;
}

.st-icon.red {
    background-color: #FEF2F2;
}

.st-icon.dark {
    background-color: #F1F5F9;
}

.st-icon.green {
    background-color: #ECFDF5;
}

.st-title {
    font-size: 14px;
    font-weight: 800;
    color: #0F172A;
}

.st-card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group-st {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group-st label {
    font-size: 11.5px;
    font-weight: 700;
    color: #475569;
}

.form-group-st input,
.form-group-st select,
.form-group-st textarea {
    width: 100%;
    padding: 9px 12px;
    font-size: 12.5px;
    font-weight: 600;
    color: #0F172A;
    border: 1.5px solid #CBD5E1;
    border-radius: 8px;
    background-color: #FFFFFF;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group-st input:focus,
.form-group-st select:focus,
.form-group-st textarea:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.1);
}

.btn-st-red {
    background-color: var(--primary-red);
    color: #FFFFFF;
    border: none;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(227, 6, 19, 0.25);
    transition: background-color 0.2s ease;
}

.btn-st-red:hover {
    background-color: var(--primary-red-hover);
}

.btn-st-outline {
    background-color: #FFFFFF;
    color: #334155;
    border: 1.5px solid #CBD5E1;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-st-outline:hover {
    background-color: #F8FAFC;
    border-color: #94A3B8;
}

.toggle-setting-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11.5px;
    padding-bottom: 6px;
    border-bottom: 1px dashed #F8FAFC;
    justify-content: space-between;
}

.toggle-text-meta {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.toggle-text-meta strong {
    font-size: 12px;
    color: #0F172A;
}

/* ==========================================================================
   BULK ACTION FLOATING BAR STYLES
   ========================================================================== */
@keyframes slideUpFloat {
    from {
        transform: translate(-50%, 20px);
        opacity: 0;
    }

    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

/* ==========================================================================
   UNIVERSAL MODAL OVERLAY & POPUP STYLES
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(11, 15, 23, 0.8);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    right: 0;
    bottom: 0;
    padding: 20px;
    opacity: 1;
    visibility: visible;
}

.modal-overlay.hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.modal-card {
    background-color: #121824;
    border: 1px solid #2A3B52;
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    padding: 24px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    color: #FFFFFF;
    animation: modalPopIn 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPopIn {
    from {
        opacity: 0;
        transform: scale(0.97) translateY(6px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #1E2A3C;
    padding: 18px 24px;
}

.modal-header h3 {
    font-size: 16px;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0;
}

.btn-close-x {
    background: none;
    border: none;
    color: #94A3B8;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 6px;
    transition: color 0.2s ease, background 0.2s ease;
}

.btn-close-x:hover {
    color: #FFFFFF;
    background-color: rgba(255, 255, 255, 0.1);
}

.modal-body-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-row-2 {
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr 1fr;
}

.form-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field label {
    font-size: 12px;
    font-weight: 700;
    color: #94A3B8;
}

.form-field input,
.form-field select,
.form-field textarea,
.modal-body-form input,
.modal-body-form select,
.modal-body-form textarea {
    background-color: #172030 !important;
    border: 1px solid #2A3B52 !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    color: #FFFFFF !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    outline: none !important;
    font-family: inherit !important;
    color-scheme: dark !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

/* Chrome / Edge / Safari Autofill Dark Overlay Fix */
.form-field input:-webkit-autofill,
.form-field input:-webkit-autofill:hover,
.form-field input:-webkit-autofill:focus,
.form-field input:-webkit-autofill:active,
.input-wrapper input:-webkit-autofill,
.input-wrapper input:-webkit-autofill:hover,
.input-wrapper input:-webkit-autofill:focus,
.input-wrapper input:-webkit-autofill:active,
.modal-body-form input:-webkit-autofill,
.modal-body-form input:-webkit-autofill:hover,
.modal-body-form input:-webkit-autofill:focus,
.modal-body-form input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #0F172A inset !important;
    -webkit-text-fill-color: #FFFFFF !important;
    caret-color: #FFFFFF !important;
    transition: background-color 5000s ease-in-out 0s;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--primary-red) !important;
    box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.2) !important;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 12px;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #1E2A3C;
}

.toggle-text-meta span {
    font-size: 10.5px;
    color: #64748B;
}

/* ==========================================================================
   SLA INPUT SUCCESS ACTION MODAL & TOAST NOTIFICATION STYLES
   ========================================================================== */
.success-icon-badge-pulse {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(16, 185, 129, 0.08) 100%);
    border: 2px solid #10B981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
    color: #10B981;
    box-shadow: 0 0 24px rgba(16, 185, 129, 0.5);
    animation: pulseRing 1.8s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

.success-icon-badge-pulse svg {
    animation: checkmarkRotatePop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.modal-card-bounce {
    animation: modalBouncePop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards !important;
}

@keyframes modalBouncePop {
    0% {
        opacity: 0;
        transform: scale(0.72) translateY(40px);
    }

    70% {
        opacity: 1;
        transform: scale(1.03) translateY(-4px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes checkmarkRotatePop {
    0% {
        opacity: 0;
        transform: scale(0.2) rotate(-45deg);
    }

    70% {
        opacity: 1;
        transform: scale(1.2) rotate(10deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes pulseRing {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
    }

    70% {
        box-shadow: 0 0 0 16px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.sla-success-detail-box {
    background: #0F172A;
    border: 1px solid #1E293B;
    border-radius: 12px;
    padding: 16px 20px;
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sla-success-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
    padding-bottom: 8px;
}

.sla-success-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sla-success-label {
    color: #94A3B8;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sla-success-val {
    color: #F8FAFC;
    font-weight: 700;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.row-highlight-success {
    animation: rowSuccessGlow 2.5s ease-out;
}

@keyframes rowSuccessGlow {
    0% {
        background-color: rgba(16, 185, 129, 0.35) !important;
        box-shadow: inset 0 0 12px rgba(16, 185, 129, 0.6);
    }

    100% {
        background-color: transparent;
        box-shadow: none;
    }
}

/* ==========================================================================
   SLA VENDOR MODERN UI/UX ACTION BUTTONS & DELETE MODAL
   ========================================================================== */
.sla-action-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-sla-action {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    border: 1px solid #334155;
    background: #172030;
    color: #F8FAFC;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.btn-sla-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.btn-sla-action:active {
    transform: translateY(0);
}

.btn-sla-action.btn-edit {
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(59, 130, 246, 0.12);
    color: #60A5FA;
}

.btn-sla-action.btn-edit:hover {
    background: rgba(59, 130, 246, 0.25);
    border-color: #3B82F6;
    color: #FFFFFF;
}

.btn-sla-action.btn-delete {
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.12);
    color: #F87171;
}

.btn-sla-action.btn-delete:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: #EF4444;
    color: #FFFFFF;
}

/* Modern Modal Buttons */
.btn-modal-secondary {
    background: transparent;
    color: #94A3B8;
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    outline: none;
}

.btn-modal-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.btn-modal-secondary:active {
    transform: translateY(0);
}

.btn-modal-primary {
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
    color: #FFFFFF;
    border: none;
    padding: 10px 22px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    outline: none;
}

.btn-modal-primary:hover {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.5);
    transform: translateY(-1px);
}

.btn-modal-primary:active {
    transform: translateY(0);
}

.btn-modal-danger {
    background: linear-gradient(135deg, #E30613 0%, #B9040E 100%);
    color: #FFFFFF;
    border: none;
    padding: 10px 22px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(227, 6, 19, 0.4);
    outline: none;
}

.btn-modal-danger:hover {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    box-shadow: 0 6px 18px rgba(227, 6, 19, 0.55);
    transform: translateY(-1px);
}

.btn-modal-danger:active {
    transform: translateY(0);
}

.delete-icon-badge {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(227, 6, 19, 0.15);
    border: 2px solid rgba(227, 6, 19, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* Light Theme Body Polish */
body.light-body-theme {
    background-color: #F8FAFC !important;
    color: #1E293B;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* SLA Modern Header */
.sla-header-modern {
    padding: 16px 24px;
    background: #FFFFFF;
    border-bottom: 1px solid #E2E8F0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.header-text-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.header-main-title {
    font-size: 24px;
    font-weight: 800;
    color: #0F172A;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.header-title-icon {
    font-size: 22px;
}

.header-subtitle {
    font-size: 13px;
    color: #64748B;
    margin: 0;
    font-weight: 500;
}

/* KPI Summary Cards Grid */
.sla-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 18px 0;
}

.sla-kpi-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sla-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.sla-kpi-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.sla-kpi-icon.total {
    background: #EFF6FF;
    color: #2563EB;
}

.sla-kpi-icon.success {
    background: #ECFDF5;
    color: #10B981;
}

.sla-kpi-icon.danger {
    background: #FEF2F2;
    color: #EF4444;
}

.sla-kpi-icon.warning {
    background: #FFFBEB;
    color: #F59E0B;
}

.sla-kpi-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.sla-kpi-title {
    font-size: 11px;
    font-weight: 700;
    color: #64748B;
    letter-spacing: 0.5px;
}

.sla-kpi-val-group {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 4px;
}

.sla-kpi-number {
    font-size: 24px;
    font-weight: 800;
    color: #0F172A;
    line-height: 1.1;
}

.sla-kpi-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
}

.sla-kpi-badge.neutral {
    background: #F1F5F9;
    color: #475569;
}

.sla-kpi-badge.green {
    background: #DCFCE7;
    color: #15803D;
}

.sla-kpi-badge.red {
    background: #FEE2E2;
    color: #B91C1C;
}

.sla-kpi-badge.blue {
    background: #DBEAFE;
    color: #1D4ED8;
}

/* Modern Segmented Navigation */
.sla-segmented-tabs {
    background: #E2E8F0;
    padding: 4px;
    border-radius: 12px;
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
}

.sla-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px 16px;
    border-radius: 9px;
    font-size: 13.5px;
    font-weight: 700;
    color: #64748B;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    outline: none;
}

.sla-tab-btn:hover {
    color: #0F172A;
}

.sla-tab-btn.active {
    background: #FFFFFF;
    color: #0F172A;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
    border-bottom: 2px solid #E30613;
}

.tab-sub {
    font-size: 11px;
    font-weight: 600;
    color: #94A3B8;
    margin-left: 4px;
}

.sla-tab-btn.active .tab-sub {
    color: #64748B;
}

/* Main Card Redesign */
.sla-table-card-redesign {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
    margin-bottom: 24px;
}

.sla-card-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid #F1F5F9;
}

.sla-card-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sla-card-title {
    font-size: 16px;
    font-weight: 800;
    color: #0F172A;
    letter-spacing: 0.5px;
    margin: 0;
}

.sla-card-badge {
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    color: #16A34A;
    font-size: 10.5px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 999px;
    letter-spacing: 0.5px;
}

.sla-card-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-sla-primary-action {
    background: linear-gradient(135deg, #E30613 0%, #B9040E 100%);
    color: #FFFFFF;
    border: none;
    height: 40px;
    padding: 0 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(227, 6, 19, 0.3);
    transition: all 0.2s ease;
}

.btn-sla-primary-action:hover {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(227, 6, 19, 0.45);
}

.btn-sla-secondary-action {
    background: #FFFFFF;
    color: #2563EB;
    border: 1.5px solid #BFDBFE;
    height: 40px;
    padding: 0 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-sla-secondary-action:hover {
    background: #EFF6FF;
    border-color: #2563EB;
    transform: translateY(-1px);
}

/* Enterprise Data Table */
.sla-enterprise-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
}

.sla-enterprise-table th {
    background: #F8FAFC;
    color: #64748B;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 12px 14px;
    border-bottom: 2px solid #E2E8F0;
    text-align: left;
    white-space: nowrap;
}

.sla-enterprise-table td {
    padding: 14px;
    border-bottom: 1px solid #EEF0F4;
    color: #334155;
    vertical-align: middle;
    white-space: nowrap;
}

.sla-enterprise-table tbody tr {
    height: 58px;
}

.sla-enterprise-table tbody tr:hover {
    background-color: #F8FAFC;
}

/* Table Typography & Badges */
.kode-tugas-mono {
    font-family: 'JetBrains Mono', 'Plus Jakarta Sans', monospace;
    font-size: 13px;
    font-weight: 700;
    color: #E30613;
    letter-spacing: 0.2px;
}

.sla-trip-pill {
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    color: #2563EB;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 999px;
    display: inline-block;
}

.sla-target-badge {
    background: #F1F5F9;
    border: 1px solid #E2E8F0;
    color: #475569;
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
    display: inline-block;
}

.date-hierarchy {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.date-hierarchy .date-part {
    font-size: 11px;
    color: #64748B;
    font-weight: 500;
}

.date-hierarchy .time-part {
    font-size: 13px;
    color: #0F172A;
    font-weight: 700;
}

/* Status SLA Badges & Live Countdown Styling */
.sla-status-pill .dot {
    font-size: 10px;
}

.sla-status-pill.on-time,
.sla-status-pill.green {
    background: #DCFCE7;
    color: #15803D;
    border: 1px solid #86EFAC;
}

.sla-status-pill.transit,
.sla-status-pill.blue {
    background: #DBEAFE;
    color: #1D4ED8;
    border: 1px solid #93C5FD;
}

.sla-live-status {
    contain: content;
    display: inline-block;
}

/* Thin Scrollbar for Table (Monitoring 4 Jam, SLA Vendor, dll.) */
.inc-table-scroll::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}

.inc-table-scroll::-webkit-scrollbar-track {
    background: #E2E8F0;
    border-radius: 6px;
}

.inc-table-scroll::-webkit-scrollbar-thumb {
    background: #64748B;
    border-radius: 6px;
}

.inc-table-scroll::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Dark Mode Table Horizontal Scrollbar — Kontras Tinggi Agar Tidak Nyaru */
:is(html, body).dark-body-theme .inc-table-scroll::-webkit-scrollbar-track {
    background: #0B111E !important;
    border: 1px solid #1E293B !important;
    border-radius: 6px;
}

:is(html, body).dark-body-theme .inc-table-scroll::-webkit-scrollbar-thumb {
    background: #3B82F6 !important;
    border-radius: 6px;
    border: 1px solid rgba(56, 189, 248, 0.45) !important;
}

:is(html, body).dark-body-theme .inc-table-scroll::-webkit-scrollbar-thumb:hover {
    background: #38BDF8 !important;
}

:is(html, body).dark-body-theme .inc-table-scroll::-webkit-scrollbar-thumb:active {
    background: #E30613 !important;
}

/* ==========================================================================
   MONITORING 4 JAM CONTROL TOWER - ENTERPRISE REDESIGN
   ========================================================================== */
.chip-pos {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
    color: #1E293B;
    background-color: #F1F5F9;
    border: 1px solid #E2E8F0;
    transition: all 0.2s ease;
}

.chip-pos:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.chip-pos.green {
    background-color: #DCFCE7;
    color: #15803D;
    border-color: #86EFAC;
}

.chip-pos.active-slot {
    background-color: #FEF3C7;
    color: #B45309;
    border: 1px solid #FCD34D;
    border-color: #FCD34D;
    font-weight: 700;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.15);
}

.btn-checkin-action {
    background: #EFF6FF;
    color: #2563EB;
    border: 1.5px solid #BFDBFE;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.btn-checkin-action:hover {
    background: #2563EB;
    color: #FFFFFF;
    border-color: #2563EB;
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.3);
    transform: translateY(-1px);
}

/* Selesaikan Perjalanan Button & Double Status Pills */
.btn-finish-action {
    background: #F0FDF4;
    color: #16A34A;
    border: 1.5px solid #BBF7D0;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.btn-finish-action:hover {
    background: #16A34A;
    color: #FFFFFF;
    border-color: #16A34A;
    box-shadow: 0 3px 10px rgba(22, 163, 74, 0.35);
    transform: translateY(-1px);
}

.btn-finish-action.completed {
    background: #F1F5F9;
    color: #94A3B8;
    border: 1px solid #CBD5E1;
    cursor: default;
    box-shadow: none;
    transform: none;
}

.btn-icon-delete-sq {
    background: #FEF2F2;
    color: #EF4444;
    border: 1px solid #FECACA;
    border-radius: 8px;
    width: 32px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
}

.btn-icon-delete-sq:hover {
    background: #EF4444;
    color: #FFFFFF;
    border-color: #DC2626;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.35);
    transform: translateY(-1px);
}

/* Double Status Pills (Compact Vertical & Animated) */
.mon-status-group,
.mon-status-cell {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    vertical-align: middle;
}

.mon-status-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

/* Animations for Status Trigger (Late Pulse & Arrival Glow) */
@keyframes pulse-late-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.55);
        border-color: #EF4444;
    }

    50% {
        box-shadow: 0 0 0 6px rgba(220, 38, 38, 0);
        border-color: #DC2626;
        transform: scale(1.02);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
        border-color: #EF4444;
    }
}

@keyframes dot-blink-danger {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.25;
        transform: scale(0.65);
    }
}

@keyframes pulse-arrival-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55);
        border-color: #10B981;
    }

    50% {
        box-shadow: 0 0 0 5px rgba(16, 185, 129, 0);
        border-color: #059669;
        transform: scale(1.03);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
        border-color: #10B981;
    }
}

@keyframes dot-pulse-success {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.75);
    }
}

.mon-pill-ontime {
    background: #ECFDF5;
    color: #059669;
    border: 1.5px solid #6EE7B7;
    border-radius: 20px;
    padding: 2px 9px;
    font-size: 10.5px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.mon-pill-ontime .dot {
    animation: dot-pulse-success 1.6s infinite ease-in-out;
    display: inline-block;
}

.mon-pill-late {
    background: #FEF2F2;
    color: #DC2626;
    border: 1.5px solid #FCA5A5;
    border-radius: 20px;
    padding: 2px 9px;
    font-size: 10.5px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    animation: pulse-late-glow 1.8s infinite ease-in-out;
}

.mon-pill-late .dot,
.sla-status-pill.late .dot,
.sla-status-pill.red .dot {
    animation: dot-blink-danger 0.9s infinite ease-in-out;
    display: inline-block;
}

.mon-pill-badge-completed {
    background: #ECFDF5;
    color: #059669;
    border: 1.5px solid #10B981;
    border-radius: 6px;
    padding: 2px 7px;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
    animation: pulse-arrival-glow 2.4s infinite ease-in-out;
}

.mon-pill-badge-late-completed {
    background: #FEF2F2;
    color: #DC2626;
    border: 1.5px solid #F87171;
    border-radius: 6px;
    padding: 2px 7px;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
    animation: pulse-late-glow 2s infinite ease-in-out;
}

.sla-status-pill.late,
.sla-status-pill.red {
    background: #FEE2E2;
    color: #B91C1C;
    border: 1.5px solid #F87171;
    animation: pulse-late-glow 1.8s infinite ease-in-out;
}

/* Side Card Enhancements */
.monitoring-summary-box,
.monitoring-legend-box,
.monitoring-timeline-box {
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
}

.monitoring-summary-box:hover,
.monitoring-legend-box:hover,
.monitoring-timeline-box:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    border-color: #CBD5E1;
}

.vertical-slot-timeline {
    display: flex;
    flex-direction: column;
    position: relative;
    padding-left: 20px;
    gap: 10px;
    margin-top: 10px;
}

.vertical-slot-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: #E2E8F0;
}

.timeline-slot-node {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 10px;
    background: #F8FAFC;
    border: 1px solid #EEF0F4;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    transition: all 0.2s ease;
}

.timeline-slot-node::before {
    content: '';
    position: absolute;
    left: -17px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #94A3B8;
    border: 2px solid #FFFFFF;
    box-shadow: 0 0 0 2px #E2E8F0;
}

.timeline-slot-node.active-slot {
    background: #FEF2F2;
    border-color: #FCA5A5;
    color: #E30613;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(227, 6, 19, 0.12);
}

.timeline-slot-node.active-slot::before {
    background: #E30613;
    box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.2);
    animation: pulseRedDot 2s infinite;
}

@keyframes pulseRedDot {
    0% {
        box-shadow: 0 0 0 0 rgba(227, 6, 19, 0.5);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(227, 6, 19, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(227, 6, 19, 0);
    }
}

/* ==========================================================================
   SHIFT MANAGEMENT CONTROL CENTER ENHANCEMENTS
   ========================================================================== */
.shift-control-hero {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #0F172A 100%);
    border-radius: 16px;
    padding: 20px 24px;
    color: #FFFFFF;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 6px solid #E30613;
    position: relative;
    flex-shrink: 0;
}

.shift-timeline-container {
    margin-top: 20px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px 20px;
}

.shift-timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 12.5px;
    font-weight: 700;
    color: #94A3B8;
}

.shift-timeline-track {
    position: relative;
    height: 10px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    overflow: visible;
}

.shift-timeline-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #3B82F6 0%, #10B981 70%, #E30613 100%);
    border-radius: 6px;
    transition: width 0.5s ease;
}

.shift-timeline-pin {
    position: absolute;
    top: -5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 3px solid #E30613;
    transform: translateX(-50%);
    box-shadow: 0 0 12px rgba(227, 6, 19, 0.8);
    z-index: 5;
    animation: pinPulse 2s infinite;
}

@keyframes pinPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(227, 6, 19, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(227, 6, 19, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(227, 6, 19, 0);
    }
}

.shift-timeline-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 12px;
    font-weight: 700;
    color: #CBD5E1;
}

.operator-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.operator-card-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 18px;
    display: flex;
    gap: 16px;
    align-items: center;
    transition: all 0.2s ease;
}

.operator-card-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.op-avatar-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.op-avatar-img.op1-border {
    border: 3px solid #E30613;
    box-shadow: 0 0 12px rgba(227, 6, 19, 0.4);
}

.op-avatar-img.op2-border {
    border: 3px solid #3B82F6;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
}

.op-badge-tag {
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.op-badge-tag.op1 {
    background: #E30613;
    color: #FFFFFF;
}

.op-badge-tag.op2 {
    background: #2563EB;
    color: #FFFFFF;
}

.shift-kpi-grid-6 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
    gap: 12px;
    margin-top: 14px;
    flex-shrink: 0;
}

.shift-kpi-grid-6 .inc-kpi-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: space-between !important;
    gap: 6px !important;
    min-width: 0;
}

.sh-tab-panel {
    flex-shrink: 0;
    width: 100%;
}

/* Dark theme override: KPI cards in shift page use inline white bg — force dark */
body.dark-body-theme .shift-kpi-grid-6 .inc-kpi-card {
    background: #121824 !important;
    border-color: #1E2A3C !important;
    color: #E2E8F0 !important;
}

body.dark-body-theme .shift-kpi-grid-6 .inc-kpi-icon-circle {
    background: rgba(255, 255, 255, 0.06) !important;
}

body.dark-body-theme .shift-kpi-grid-6 .inc-kpi-label,
body.dark-body-theme .shift-kpi-grid-6 .inc-kpi-unit {
    color: #94A3B8 !important;
}

body.dark-body-theme .shift-kpi-grid-6 .inc-kpi-number {
    color: #FFFFFF !important;
}

.audit-badge {
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    display: inline-block;
    text-transform: uppercase;
}

.audit-badge.monitoring {
    background: #FEF3C7;
    color: #D97706;
    border: 1px solid #FCD34D;
}

.audit-badge.sla {
    background: #DCFCE7;
    color: #15803D;
    border: 1px solid #86EFAC;
}

.audit-badge.trouble {
    background: #FEE2E2;
    color: #B91C1C;
    border: 1px solid #FCA5A5;
}

.audit-badge.shift {
    background: #F3E8FF;
    color: #7E22CE;
    border: 1px solid #D8B4FE;
}

.audit-badge.master {
    background: #E0F2FE;
    color: #0369A1;
    border: 1px solid #BAE6FD;
}

/* Shift History & Audit Trail table cards: full-width, no cramping */
#section-shift-history,
#section-audit-trail {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Shift history table: proper min-width so columns don't wrap */
.shift-history-table,
.handover-history-table {
    min-width: 860px;
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
}

.shift-history-table th,
.handover-history-table th,
.audit-table th {
    background-color: #F8FAFC;
    color: #64748B;
    font-weight: 700;
    text-align: left;
    padding: 10px 14px;
    border-bottom: 2px solid #E2E8F0;
    white-space: nowrap;
    font-size: 12px;
}

.shift-history-table td,
.handover-history-table td,
.audit-table td {
    padding: 11px 14px;
    border-bottom: 1px solid #F1F5F9;
    color: #334155;
    white-space: nowrap;
    vertical-align: middle;
}

.shift-history-table tbody tr:hover,
.handover-history-table tbody tr:hover,
.audit-table tbody tr:hover {
    background-color: #F8FAFC;
}

/* Shift Management Filter Controls Styling */
#sh-history-search,
#audit-module-filter,
#sh-history-status-filter {
    padding: 8px 12px;
    font-size: 12.5px;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    background-color: #FFFFFF;
    color: #0F172A;
    outline: none;
    transition: all 0.2s ease;
}

#sh-history-search:focus,
#audit-module-filter:focus,
#sh-history-status-filter:focus {
    border-color: #E30613;
    box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.1);
}

/* Audit trail table */
.audit-table {
    min-width: 760px;
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
}

/* Shift table header: title group + controls layout */
#section-shift-history .inc-table-header,
#section-audit-trail .inc-table-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    padding: 18px 20px 14px 20px;
    border-bottom: 1px solid #F1F5F9;
    margin-bottom: 0;
}

/* Remove default gap from inc-table-card when used in shift page */
#section-shift-history.inc-table-card,
#section-handover-history.inc-table-card,
#section-audit-trail.inc-table-card {
    padding: 0;
    gap: 0;
}

/* Scroll wrapper for shift tables */
#section-shift-history .inc-table-scroll,
#section-handover-history .inc-table-scroll,
#section-audit-trail .inc-table-scroll {
    width: 100%;
    max-height: 420px;
    overflow-y: auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Filter controls row: allow wrapping, align nicely */
#section-shift-history .inc-table-header>div:last-child,
#section-handover-history .inc-table-header>div:last-child,
#section-audit-trail .inc-table-header>div:last-child {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

/* Shift history search input: responsive width */
#sh-history-search {
    padding: 8px 14px;
    border: 1.5px solid #CBD5E1;
    border-radius: 8px;
    font-size: 12.5px;
    outline: none;
    min-width: 180px;
    max-width: 240px;
    flex: 1;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

#sh-history-search:focus {
    border-color: #E30613;
    box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.08);
}

/* Status filter select & audit module filter */
#sh-history-status-filter,
#audit-module-filter {
    padding: 8px 12px;
    border: 1.5px solid #CBD5E1;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    outline: none;
    background: #FFFFFF;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

#sh-history-status-filter:focus,
#audit-module-filter:focus {
    border-color: #E30613;
}

/* Pagination footer for shift history */
#section-shift-history>div:last-child {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-top: 1px solid #E2E8F0;
    font-size: 12.5px;
    color: #64748B;
    flex-wrap: wrap;
    gap: 10px;
}

/* ==========================================================================
   SHIFT MANAGEMENT DARK THEME COMPATIBILITY
   ========================================================================== */
body.dark-body-theme #section-shift-history,
body.dark-body-theme #section-audit-trail {
    background-color: #121824 !important;
    border-color: #1E2A3C !important;
}

/* Dark theme: table header area inside shift sections */
body.dark-body-theme #section-shift-history .inc-table-header,
body.dark-body-theme #section-audit-trail .inc-table-header {
    background-color: #121824;
    border-bottom-color: #1E2A3C !important;
}

body.dark-body-theme #section-shift-history .inc-table-title,
body.dark-body-theme #section-audit-trail .inc-table-title {
    color: #FFFFFF !important;
}

body.dark-body-theme #section-shift-history span[style],
body.dark-body-theme #section-audit-trail span[style],
body.dark-body-theme #section-shift-history .inc-table-header div:first-child span,
body.dark-body-theme #section-audit-trail .inc-table-header div:first-child span {
    color: #94A3B8 !important;
}

/* Dark theme: shift history & audit table th/td */
body.dark-body-theme .shift-history-table thead th,
body.dark-body-theme .audit-table thead th {
    background-color: #172030 !important;
    color: #94A3B8 !important;
    border-bottom-color: #1E2A3C !important;
}

body.dark-body-theme .shift-history-table tbody td,
body.dark-body-theme .audit-table tbody td {
    border-bottom-color: #1E2A3C !important;
    color: #E2E8F0 !important;
}

body.dark-body-theme .shift-history-table tbody tr:hover,
body.dark-body-theme .audit-table tbody tr:hover {
    background-color: rgba(30, 42, 60, 0.5) !important;
}

/* Dark theme: pagination footer */
body.dark-body-theme #section-shift-history>div:last-child {
    border-top-color: #1E2A3C !important;
    color: #94A3B8 !important;
    background-color: #121824;
}

/* Dark theme: pagination buttons */
body.dark-body-theme #sh-pagination-controls .p-btn {
    background-color: #172030;
    border-color: #2A3B52;
    color: #E2E8F0;
}

body.dark-body-theme #sh-pagination-controls .p-btn.active {
    background-color: #E30613;
    border-color: #E30613;
    color: #FFFFFF;
}

/* Dark theme: Reset & Export buttons in shift sections */
body.dark-body-theme #btn-reset-history-filter,
body.dark-body-theme #btn-export-audit-log {
    background: #172030 !important;
    border-color: #2A3B52 !important;
    color: #E2E8F0 !important;
}

body.dark-body-theme #btn-reset-history-filter:hover,
body.dark-body-theme #btn-export-audit-log:hover {
    background: #1E2A3C !important;
    border-color: #38BDF8 !important;
    color: #FFFFFF !important;
}

/* ==========================================================================
   LIVE SLA COUNTDOWN ENGINE STYLES
   ========================================================================== */
.sla-live-countdown {
    font-family: 'Courier New', Courier, monospace, var(--font-family);
    font-size: 13.5px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-block;
    white-space: nowrap;
    text-align: center;
    will-change: contents;
    contain: content;
    min-width: 82px;
    letter-spacing: 0.5px;
    transition: color 0.3s ease, background 0.3s ease;
}

.sla-live-countdown.sla-rem-green {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.sla-live-countdown.sla-rem-yellow {
    background: rgba(245, 158, 11, 0.1);
    color: #F59E0B;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.sla-live-countdown.sla-rem-orange {
    background: rgba(249, 115, 22, 0.12);
    color: #F97316;
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.sla-live-countdown.sla-rem-red {
    background: rgba(239, 68, 68, 0.15);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.35);
    animation: pulse-late-glow 1.8s infinite ease-in-out;
    font-weight: 800;
}

.sla-live-countdown.sla-rem-gray {
    background: rgba(148, 163, 184, 0.1);
    color: #94A3B8;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.sla-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
    line-height: 1.2;
}

.sla-status-pill.green {
    background: rgba(16, 185, 129, 0.15);
    color: #34D399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.sla-status-pill.yellow {
    background: rgba(245, 158, 11, 0.15);
    color: #FBBF24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.sla-status-pill.orange {
    background: rgba(249, 115, 22, 0.15);
    color: #FB923C;
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.sla-status-pill.red {
    background: rgba(239, 68, 68, 0.18);
    color: #F87171;
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.sla-status-pill.gray {
    background: rgba(148, 163, 184, 0.15);
    color: #CBD5E1;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.sla-remaining-cell.overdue {
    color: #EF4444;
    font-weight: 800;
}

/* ==========================================================================
   DARK BODY THEME & TOAST NOTIFICATION EXTENSIONS (ZERO-FLASH ANTI-GLITCH)
   ========================================================================== */
:is(html, body).dark-body-theme,
html.dark-body-theme body {
    background-color: #0B0F17 !important;
    background: #0B0F17 !important;
    color: #E2E8F0 !important;
}

:is(html, body).dark-body-theme p,
:is(html, body).dark-body-theme span:not([style*="color"]):not([class*="badge"]):not([class*="status"]):not([class*="tab-sub"]),
:is(html, body).dark-body-theme label,
:is(html, body).dark-body-theme strong:not([style*="color"]),
:is(html, body).dark-body-theme th,
:is(html, body).dark-body-theme td,
:is(html, body).dark-body-theme h1,
:is(html, body).dark-body-theme h2,
:is(html, body).dark-body-theme h3,
:is(html, body).dark-body-theme h4,
:is(html, body).dark-body-theme h5,
:is(html, body).dark-body-theme h6,
:is(html, body).dark-body-theme .hamburger-btn,
:is(html, body).dark-body-theme .inc-user-name,
:is(html, body).dark-body-theme .inc-user-meta span {
    color: #E2E8F0 !important;
}

:is(html, body).dark-body-theme .main-incoming-body,
:is(html, body).dark-body-theme .app-container,
:is(html, body).dark-body-theme .dashboard-layout {
    background-color: #0B0F17 !important;
    background: #0B0F17 !important;
}

/* Headers across all pages */
:is(html, body).dark-body-theme .inc-top-nav,
:is(html, body).dark-body-theme .sla-header-modern,
:is(html, body).dark-body-theme header {
    background: #0B0F17 !important;
    background-color: #0B0F17 !important;
    border-color: #1E2A3C !important;
    box-shadow: none !important;
}

:is(html, body).dark-body-theme .header-main-title,
:is(html, body).dark-body-theme .header-title-icon,
:is(html, body).dark-body-theme .header-main-title *,
:is(html, body).dark-body-theme .sla-card-title,
:is(html, body).dark-body-theme .inc-main-title,
:is(html, body).dark-body-theme .inc-table-title,
:is(html, body).dark-body-theme .detail-title,
:is(html, body).dark-body-theme .st-title,
:is(html, body).dark-body-theme .inc-kpi-number,
body.dark-body-theme .exec-summary-val {
    color: #FFFFFF !important;
}

:is(html, body).dark-body-theme .header-subtitle,
:is(html, body).dark-body-theme .inc-user-role {
    color: #94A3B8 !important;
}

:is(html, body).dark-body-theme .inc-table-card,
:is(html, body).dark-body-theme .inc-detail-card,
:is(html, body).dark-body-theme .inc-filter-card,
:is(html, body).dark-body-theme .inc-kpi-card,
:is(html, body).dark-body-theme .settings-card,
:is(html, body).dark-body-theme .profile-hero-card,
:is(html, body).dark-body-theme .modal-card,
:is(html, body).dark-body-theme .sla-table-card-redesign,
:is(html, body).dark-body-theme .sla-kpi-card,
:is(html, body).dark-body-theme .monitoring-summary-box,
:is(html, body).dark-body-theme .monitoring-legend-box,
:is(html, body).dark-body-theme .monitoring-timeline-box,
:is(html, body).dark-body-theme .exec-card-box {
    background: #121824 !important;
    background-color: #121824 !important;
    border-color: #1E2A3C !important;
    color: #E2E8F0 !important;
}

:is(html, body).dark-body-theme .inc-data-table thead th,
:is(html, body).dark-body-theme .sla-enterprise-table thead th {
    background-color: #172030 !important;
    color: #94A3B8 !important;
    border-color: #1E2A3C !important;
}

:is(html, body).dark-body-theme .inc-data-table tbody td,
:is(html, body).dark-body-theme .sla-enterprise-table tbody td {
    border-color: #1E2A3C !important;
    color: #E2E8F0 !important;
}

:is(html, body).dark-body-theme .inc-data-table td,
:is(html, body).dark-body-theme .inc-data-table th,
:is(html, body).dark-body-theme .inc-data-table span,
:is(html, body).dark-body-theme .inc-data-table strong,
:is(html, body).dark-body-theme .inc-data-table div,
:is(html, body).dark-body-theme .inc-detail-card span,
:is(html, body).dark-body-theme .inc-detail-card div,
:is(html, body).dark-body-theme .inc-detail-card strong,
:is(html, body).dark-body-theme .inc-detail-card p,
:is(html, body).dark-body-theme .inc-detail-card label,
:is(html, body).dark-body-theme .inc-detail-card h4,
:is(html, body).dark-body-theme .monitoring-summary-box span,
:is(html, body).dark-body-theme .monitoring-summary-box strong,
:is(html, body).dark-body-theme .monitoring-summary-box div,
:is(html, body).dark-body-theme .monitoring-legend-box span,
:is(html, body).dark-body-theme .monitoring-legend-box strong,
:is(html, body).dark-body-theme .monitoring-legend-box div,
:is(html, body).dark-body-theme .leg-title,
:is(html, body).dark-body-theme .leg-desc {
    color: #E2E8F0 !important;
}

:is(html, body).dark-body-theme .inc-data-table td,
:is(html, body).dark-body-theme .inc-data-table td span,
:is(html, body).dark-body-theme .inc-data-table td strong,
:is(html, body).dark-body-theme .inc-info-banner strong,
:is(html, body).dark-body-theme .inc-info-banner div {
    color: #FFFFFF !important;
}

:is(html, body).dark-body-theme .inc-data-table tbody tr:hover,
:is(html, body).dark-body-theme .sla-enterprise-table tbody tr:hover {
    background-color: rgba(30, 42, 60, 0.4) !important;
}

:is(html, body).dark-body-theme .sla-card-header-bar {
    background-color: #172030 !important;
    border-color: #1E2A3C !important;
    color: #FFFFFF !important;
}

:is(html, body).dark-body-theme input,
:is(html, body).dark-body-theme select,
:is(html, body).dark-body-theme textarea {
    background-color: #172030 !important;
    color: #FFFFFF !important;
    border-color: #2A3B52 !important;
}

:is(html, body).dark-body-theme input::placeholder,
:is(html, body).dark-body-theme textarea::placeholder {
    color: #64748B !important;
}

:is(html, body).dark-body-theme .inc-info-banner {
    background-color: #172030 !important;
    border-color: #2A3B52 !important;
    color: #E2E8F0 !important;
}

body.dark-body-theme .inc-kpi-sub,
body.dark-body-theme .inc-kpi-label,
body.dark-body-theme .form-field label,
body.dark-body-theme .filter-group label,
body.dark-body-theme .excel-sheet-subtitle {
    color: #94A3B8 !important;
}

body.dark-body-theme .inc-detail-card,
body.dark-body-theme .inc-detail-card *,
body.dark-body-theme .detail-info-list *,
body.dark-body-theme .info-label,
body.dark-body-theme .info-value,
body.dark-body-theme .detail-route,
body.dark-body-theme .detail-code {
    color: #E2E8F0 !important;
}

body.dark-body-theme .inc-detail-card .detail-hero-box {
    background-color: #172030 !important;
    border-color: #2A3B52 !important;
}

/* Executive Dashboard SLA Dark Overrides */
body.dark-body-theme .exec-card-header,
body.dark-body-theme .excel-sheet-header {
    border-color: #1E2A3C !important;
}

body.dark-body-theme .exec-card-title,
body.dark-body-theme .excel-sheet-title {
    color: #F8FAFC !important;
}

body.dark-body-theme .exec-mini-table th {
    background-color: #172030 !important;
    color: #94A3B8 !important;
    border-color: #1E2A3C !important;
}

body.dark-body-theme .exec-mini-table td {
    border-color: #1E2A3C !important;
    color: #E2E8F0 !important;
}

body.dark-body-theme .exec-mini-table tr.total-row {
    background-color: rgba(30, 58, 138, 0.3) !important;
    color: #93C5FD !important;
}

body.dark-body-theme .exec-subnote-bar {
    background: rgba(2, 132, 199, 0.15) !important;
    border-color: rgba(2, 132, 199, 0.3) !important;
    color: #38BDF8 !important;
}

body.dark-body-theme .exec-subnote-bar strong {
    color: #38BDF8 !important;
}

body.dark-body-theme .exec-route-meta,
body.dark-body-theme .exec-summary-body {
    color: #CBD5E1 !important;
}

body.dark-body-theme .exec-route-track {
    background: #1E2A3C !important;
}

body.dark-body-theme .exec-summary-card,
body.dark-body-theme .excel-sheet-nav-container,
body.dark-body-theme .inc-table-scroll {
    background: #121824 !important;
    border-color: #1E2A3C !important;
}

body.dark-body-theme .exec-summary-card.green-theme {
    background: rgba(6, 78, 59, 0.25) !important;
    border-color: rgba(52, 211, 153, 0.35) !important;
    color: #34D399 !important;
}

body.dark-body-theme .exec-summary-card.red-theme {
    background: rgba(153, 27, 27, 0.25) !important;
    border-color: rgba(248, 113, 113, 0.35) !important;
    color: #FCA5A5 !important;
}

body.dark-body-theme .exec-summary-card.pink-theme {
    background: rgba(136, 19, 55, 0.25) !important;
    border-color: rgba(251, 113, 133, 0.35) !important;
    color: #FDA4AF !important;
}

body.dark-body-theme .exec-summary-card.blue-theme {
    background: rgba(30, 58, 138, 0.25) !important;
    border-color: rgba(96, 165, 250, 0.35) !important;
    color: #93C5FD !important;
}

body.dark-body-theme .exec-summary-card.navy-theme {
    background: #1E2A3C !important;
    border-color: #2A3B52 !important;
    color: #F8FAFC !important;
}

body.dark-body-theme .exec-summary-body span[style],
body.dark-body-theme .inc-date-chip svg,
body.dark-body-theme .inc-notif-bell svg {
    color: #94A3B8 !important;
}

/* Segmented Navigation Tabs Dark Mode */
body.dark-body-theme .sla-segmented-tabs {
    background: #121824 !important;
    border: 1px solid #1E2A3C !important;
}

body.dark-body-theme .sla-tab-btn {
    color: #94A3B8 !important;
    background: transparent !important;
}

body.dark-body-theme .sla-tab-btn:hover {
    color: #F8FAFC !important;
    background: rgba(30, 42, 60, 0.5) !important;
}

body.dark-body-theme .sla-tab-btn.active {
    background: #1E2A3C !important;
    color: #FFFFFF !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
    border-bottom: 2px solid #E30613 !important;
}

body.dark-body-theme .sla-tab-btn .tab-sub {
    color: #64748B !important;
}

body.dark-body-theme .sla-tab-btn.active .tab-sub {
    color: #CBD5E1 !important;
}

/* Excel Sheet Navigation Bar Dark Mode */
body.dark-body-theme .excel-nav-arrow {
    background: #1E2A3C !important;
    border-color: #2A3B52 !important;
    color: #CBD5E1 !important;
}

body.dark-body-theme .excel-nav-arrow:hover {
    background: #253346 !important;
    color: #FFFFFF !important;
}

body.dark-body-theme .excel-tab-item {
    background: #1E2A3C !important;
    border-color: #2A3B52 !important;
    color: #94A3B8 !important;
}

body.dark-body-theme .excel-tab-item:hover {
    background: #253346 !important;
    color: #F8FAFC !important;
}

body.dark-body-theme .excel-tab-item.active {
    background: #121824 !important;
    color: #FFFFFF !important;
    border-color: #2A3B52 !important;
    border-bottom: 3px solid #107C41 !important;
}

body.dark-body-theme .excel-tab-item.all-tab.active {
    border-bottom-color: #E30613 !important;
}

body.dark-body-theme .excel-tab-badge,
body.dark-body-theme .sla-kpi-badge.neutral {
    background: #2A3B52 !important;
    color: #CBD5E1 !important;
}

body.dark-body-theme .excel-tab-item.active .excel-tab-badge {
    background: #107C41 !important;
    color: #FFFFFF !important;
}

body.dark-body-theme .excel-tab-item.all-tab.active .excel-tab-badge {
    background: #E30613 !important;
    color: #FFFFFF !important;
}

/* KPI Icon Circles & Badges (Monitoring 4h & SLA Vendor) */
body.dark-body-theme .inc-kpi-icon-circle.blue-light,
body.dark-body-theme .sla-kpi-icon.total {
    background: rgba(37, 99, 235, 0.2) !important;
    color: #60A5FA !important;
}

body.dark-body-theme .inc-kpi-icon-circle.red-light,
body.dark-body-theme .sla-kpi-icon.danger {
    background: rgba(227, 6, 19, 0.2) !important;
    color: #F87171 !important;
}

body.dark-body-theme .inc-kpi-icon-circle.green-light,
body.dark-body-theme .sla-kpi-icon.success,
body.dark-body-theme .sla-kpi-badge.green {
    background: rgba(22, 163, 74, 0.2) !important;
    color: #4ADE80 !important;
}

body.dark-body-theme .inc-kpi-icon-circle.orange-light,
body.dark-body-theme .sla-kpi-icon.warning {
    background: rgba(217, 119, 6, 0.2) !important;
    color: #FBBF24 !important;
}

body.dark-body-theme .sla-kpi-badge.red {
    background: rgba(239, 68, 68, 0.2) !important;
    color: #F87171 !important;
}

body.dark-body-theme .sla-kpi-badge.blue {
    background: rgba(37, 99, 235, 0.2) !important;
    color: #60A5FA !important;
}

/* Tables & Scroll Wrappers */
body.dark-body-theme th[style*="background"],
body.dark-body-theme tr[style*="background"] {
    background-color: #172030 !important;
    color: #CBD5E1 !important;
    border-color: #1E2A3C !important;
}

body.dark-body-theme .btn-inc-reset {
    background: #172030 !important;
    border-color: #2A3B52 !important;
    color: #CBD5E1 !important;
}

body.dark-body-theme .btn-inc-reset:hover {
    background: #1E2A3C !important;
    color: #FFFFFF !important;
    border-color: #38BDF8 !important;
}

/* Header Top Chips */
body.dark-body-theme .inc-date-chip,
body.dark-body-theme .inc-notif-bell {
    background: #121824 !important;
    border-color: #1E2A3C !important;
    color: #E2E8F0 !important;
}

/* ==========================================================================
   UNIFIED J&T TOAST & ALERT NOTIFICATION SYSTEM (Light + Dark Synced)
   ========================================================================== */
.jnt-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    bottom: auto;
    z-index: 100020;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    width: 380px;
    max-width: calc(100vw - 24px);
    pointer-events: none;
}

.jnt-toast-item {
    position: relative;
    overflow: hidden;
    pointer-events: auto;
    width: 100%;
    min-width: 280px;
    max-width: 380px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-left: 4px solid #10B981;
    border-radius: 12px;
    padding: 13px 14px 15px 14px;
    color: #0F172A;
    box-shadow: 0 12px 30px -8px rgba(15, 23, 42, 0.18), 0 4px 10px -4px rgba(15, 23, 42, 0.08);
    display: flex;
    align-items: flex-start;
    gap: 11px;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    animation: jntToastIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.jnt-toast-item.is-leaving {
    opacity: 0;
    transform: translateX(32px) scale(0.97);
}

@keyframes jntToastIn {
    from {
        opacity: 0;
        transform: translateX(28px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.jnt-toast-icon-badge {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.jnt-toast-icon-badge svg {
    width: 18px;
    height: 18px;
}

.jnt-toast-content {
    flex: 1;
    min-width: 0;
}

.jnt-toast-title {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: #0F172A;
    line-height: 1.3;
    margin-bottom: 3px;
    letter-spacing: -0.01em;
    overflow-wrap: anywhere;
}

.jnt-toast-message {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #475569;
    line-height: 1.45;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.jnt-toast-close {
    background: transparent;
    border: none;
    color: #94A3B8;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.jnt-toast-close:hover {
    background: rgba(148, 163, 184, 0.16);
    color: #0F172A;
}

.jnt-toast-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 100%;
    transform-origin: left center;
    animation: jntToastProgress linear forwards;
    opacity: 0.85;
}

.jnt-toast-item:hover .jnt-toast-progress {
    animation-play-state: paused;
}

@keyframes jntToastProgress {
    from {
        transform: scaleX(1);
    }

    to {
        transform: scaleX(0);
    }
}

/* Semantic Variants */
.jnt-toast-item.toast-success {
    border-left-color: #10B981;
}

.jnt-toast-item.toast-success .jnt-toast-icon-badge {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}

.jnt-toast-item.toast-success .jnt-toast-progress {
    background: #10B981;
}

.jnt-toast-item.toast-error {
    border-left-color: #EF4444;
}

.jnt-toast-item.toast-error .jnt-toast-icon-badge {
    background: rgba(239, 68, 68, 0.12);
    color: #DC2626;
}

.jnt-toast-item.toast-error .jnt-toast-progress {
    background: #EF4444;
}

.jnt-toast-item.toast-warning {
    border-left-color: #F59E0B;
}

.jnt-toast-item.toast-warning .jnt-toast-icon-badge {
    background: rgba(245, 158, 11, 0.14);
    color: #D97706;
}

.jnt-toast-item.toast-warning .jnt-toast-progress {
    background: #F59E0B;
}

.jnt-toast-item.toast-info {
    border-left-color: #3B82F6;
}

.jnt-toast-item.toast-info .jnt-toast-icon-badge {
    background: rgba(59, 130, 246, 0.12);
    color: #2563EB;
}

.jnt-toast-item.toast-info .jnt-toast-progress {
    background: #3B82F6;
}

/* Dark Theme Sync for Toast */
:is(html, body).dark-body-theme .jnt-toast-item {
    background: #131B2E;
    border-color: #26344E;
    color: #F8FAFC;
    box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.55), 0 6px 14px -6px rgba(0, 0, 0, 0.4);
}

:is(html, body).dark-body-theme .jnt-toast-title {
    color: #F8FAFC;
}

:is(html, body).dark-body-theme .jnt-toast-message {
    color: #CBD5E1;
}

:is(html, body).dark-body-theme .jnt-toast-close {
    color: #94A3B8;
}

:is(html, body).dark-body-theme .jnt-toast-close:hover {
    background: rgba(148, 163, 184, 0.18);
    color: #FFFFFF;
}

:is(html, body).dark-body-theme .jnt-toast-item.toast-success .jnt-toast-icon-badge {
    background: rgba(16, 185, 129, 0.18);
    color: #34D399;
}

:is(html, body).dark-body-theme .jnt-toast-item.toast-error .jnt-toast-icon-badge {
    background: rgba(239, 68, 68, 0.18);
    color: #F87171;
}

:is(html, body).dark-body-theme .jnt-toast-item.toast-warning .jnt-toast-icon-badge {
    background: rgba(245, 158, 11, 0.18);
    color: #FBBF24;
}

:is(html, body).dark-body-theme .jnt-toast-item.toast-info .jnt-toast-icon-badge {
    background: rgba(59, 130, 246, 0.18);
    color: #60A5FA;
}

/* Unified J&T Alert Dialog Modal (for detailed / multi-line alerts) */
.jnt-alert-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100030;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: alertSlideIn 0.18s ease;
}

.jnt-alert-modal-overlay.hidden {
    display: none !important;
}

.jnt-alert-modal-card {
    width: 100%;
    max-width: 460px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    box-shadow: 0 24px 56px -12px rgba(15, 23, 42, 0.35);
    overflow: hidden;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.jnt-alert-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px 12px 18px;
    border-bottom: 1px solid #F1F5F9;
}

.jnt-alert-modal-title {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: #0F172A;
    flex: 1;
}

.jnt-alert-modal-body {
    padding: 14px 18px 16px 18px;
    font-size: 13px;
    line-height: 1.55;
    color: #334155;
    white-space: pre-line;
    overflow-wrap: anywhere;
    max-height: 55vh;
    overflow-y: auto;
}

.jnt-alert-modal-footer {
    padding: 12px 18px 16px 18px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    background: #F8FAFC;
    border-top: 1px solid #F1F5F9;
}

.jnt-alert-modal-btn {
    border: none;
    border-radius: 8px;
    padding: 9px 20px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    background: #E30613;
    color: #FFFFFF;
    transition: background-color 0.15s ease, transform 0.1s ease;
}

.jnt-alert-modal-btn:hover {
    background: #C80510;
}

.jnt-alert-modal-btn:active {
    transform: scale(0.97);
}

:is(html, body).dark-body-theme .jnt-alert-modal-card {
    background: #131B2E;
    border-color: #26344E;
}

:is(html, body).dark-body-theme .jnt-alert-modal-header {
    border-bottom-color: #1E2A42;
}

:is(html, body).dark-body-theme .jnt-alert-modal-title {
    color: #F8FAFC;
}

:is(html, body).dark-body-theme .jnt-alert-modal-body {
    color: #CBD5E1;
}

:is(html, body).dark-body-theme .jnt-alert-modal-footer {
    background: #0F172A;
    border-top-color: #1E2A42;
}

/* Mobile Sidebar Backdrop Overlay */
.sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(3px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.25s ease;
}

.sidebar-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Topbar User Dropdown Menu */
.topbar-user-wrapper {
    position: relative;
    display: inline-block;
}

.topbar-user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 12px 30px -4px rgba(0, 0, 0, 0.18), 0 4px 12px -2px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    min-width: 220px;
    max-width: min(280px, calc(100vw - 24px));
    display: none;
}

body.dark-body-theme .topbar-user-dropdown {
    background: #172030;
    border-color: #1E2A3C;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
}

.topbar-user-dropdown.show {
    display: block !important;
    animation: topbarDropdownFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes topbarDropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dropdown-user-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px 10px;
    border-bottom: 1px solid #E2E8F0;
    margin-bottom: 6px;
}

body.dark-body-theme .dropdown-user-header {
    border-color: #1E2A3C;
}

.dropdown-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 3px #FECACA;
}

.dropdown-user-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.dropdown-user-header strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #0F172A;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.dark-body-theme .dropdown-user-header strong {
    color: #F8FAFC;
}

.dropdown-user-header .dropdown-user-email {
    display: block;
    font-size: 11px;
    color: #64748B;
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-user-header .dropdown-user-role-badge {
    align-self: flex-start;
    display: inline-block;
    margin-top: 4px;
    padding: 1px 7px;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #B91C1C;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 999px;
}

body.dark-body-theme .dropdown-user-header .dropdown-user-role-badge {
    color: #FCA5A5;
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.3);
}

.inc-user-name .inc-user-chevron {
    font-size: 10px;
    margin-left: 4px;
    color: #64748B;
}

.dropdown-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
    background: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s ease, color 0.15s ease;
}

body.dark-body-theme .dropdown-nav-item {
    color: #CBD5E1;
}

.dropdown-nav-item:hover {
    background-color: #F1F5F9;
    color: #0F172A;
}

body.dark-body-theme .dropdown-nav-item:hover {
    background-color: #1E2A3C;
    color: #FFFFFF;
}

.dropdown-nav-item.logout-item {
    color: #DC2626 !important;
    margin-top: 6px;
    border-top: 1px solid #E2E8F0;
    padding-top: 10px;
    border-radius: 0 0 8px 8px;
}

body.dark-body-theme .dropdown-nav-item.logout-item {
    color: #EF4444 !important;
    border-color: #1E2A3C;
}

.dropdown-nav-item.logout-item:hover {
    background-color: #FEF2F2 !important;
    color: #B91C1C !important;
}

body.dark-body-theme .dropdown-nav-item.logout-item:hover {
    background-color: rgba(239, 68, 68, 0.15) !important;
    color: #F87171 !important;
}

/* ==========================================================================
   EXECUTIVE DASHBOARD MONITORING SLA VENDOR (EXACT MATCH FOR PHOTO DESIGN)
   ========================================================================== */
.exec-dashboard-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 24px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* 1. Banner Header Executive */
.exec-header-banner {
    background: linear-gradient(135deg, #0B192C 0%, #1E3E62 100%);
    border-radius: 12px;
    padding: 14px 20px;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(11, 25, 44, 0.2);
    border-left: 6px solid #E30613;
}

.exec-banner-title-group {
    display: flex;
    align-items: center;
    gap: 14px;
}

.exec-truck-icon-wrap {
    width: 44px;
    height: 44px;
    background: rgba(227, 6, 19, 0.2);
    border: 1px solid rgba(227, 6, 19, 0.5);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.exec-main-title {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.03em;
    color: #FFFFFF;
    margin: 0;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.exec-sub-title {
    font-size: 12px;
    color: #94A3B8;
    font-weight: 600;
    margin-top: 2px;
}

.exec-banner-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.exec-period-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    outline: none;
}

.exec-period-select option {
    background: #0F172A;
    color: #FFFFFF;
}

.exec-tagline {
    font-size: 11px;
    color: #CBD5E1;
    font-weight: 600;
    text-align: right;
    line-height: 1.3;
}

/* 2. Top 5 KPI Summary Cards */
.exec-kpi-5grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.exec-kpi-card {
    border-radius: 10px;
    padding: 12px 14px;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.exec-kpi-card.blue {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    border-bottom: 3px solid #2563EB;
}

.exec-kpi-card.green {
    background: linear-gradient(135deg, #065F46 0%, #047857 100%);
    border-bottom: 3px solid #10B981;
}

.exec-kpi-card.red {
    background: linear-gradient(135deg, #991B1B 0%, #DC2626 100%);
    border-bottom: 3px solid #EF4444;
}

.exec-kpi-card.cyan {
    background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
    border-bottom: 3px solid #38BDF8;
}

.exec-kpi-card.orange {
    background: linear-gradient(135deg, #D97706 0%, #B45309 100%);
    border-bottom: 3px solid #F59E0B;
}

.exec-kpi-meta {
    display: flex;
    flex-direction: column;
}

.exec-kpi-title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    opacity: 0.9;
    text-transform: uppercase;
}

.exec-kpi-num {
    font-size: 22px;
    font-weight: 800;
    margin: 2px 0;
    line-height: 1.1;
}

.exec-kpi-sub {
    font-size: 10px;
    font-weight: 700;
    opacity: 0.85;
}

.exec-kpi-icon {
    font-size: 26px;
    opacity: 0.85;
}

/* 3. Middle 4-Column Section */
.exec-middle-4grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.exec-card-box {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    min-width: 0;
    box-sizing: border-box;
}

.exec-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid #F1F5F9;
}

.exec-card-title {
    font-size: 11.5px;
    font-weight: 800;
    color: #0F172A;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.exec-mini-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 10px;
}

.exec-mini-table th {
    background: #F8FAFC;
    color: #475569;
    font-weight: 800;
    text-align: left;
    padding: 4px 4px;
    border-bottom: 1px solid #E2E8F0;
    white-space: nowrap;
}

.exec-mini-table td {
    padding: 3px 4px;
    border-bottom: 1px solid #F1F5F9;
    color: #1E293B;
    white-space: nowrap;
}

.exec-mini-table tr.total-row {
    background: #EFF6FF;
    font-weight: 800;
}

/* Status Badges for Vendor SLA */
.badge-sla-status {
    display: inline-block;
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 800;
    text-align: center;
}

.badge-sla-status.sangat-baik {
    background: #DCFCE7;
    color: #15803D;
}

.badge-sla-status.baik {
    background: #E0E7FF;
    color: #3730A3;
}

.badge-sla-status.cukup {
    background: #FEF3C7;
    color: #B45309;
}

.badge-sla-status.kurang {
    background: #FFEDD5;
    color: #C2410C;
}

.badge-sla-status.buruk {
    background: #FEE2E2;
    color: #B91C1C;
}

/* Subnote Strip */
.exec-subnote-bar {
    background: #F0F9FF;
    border: 1px solid #BAE6FD;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 11px;
    color: #0369A1;
    font-weight: 600;
}

/* 4. Lower 2-Column Section */
.exec-lower-2grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 10px;
    width: 100%;
}

.exec-chart-container {
    height: 220px;
    position: relative;
    margin-top: 6px;
}

.exec-route-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 6px;
}

.exec-route-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.exec-route-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 700;
    color: #334155;
}

.exec-route-track {
    height: 10px;
    background: #E2E8F0;
    border-radius: 5px;
    overflow: hidden;
}

.exec-route-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 0.4s ease;
}

/* 5. Bottom 5 Summary Cards */
.exec-bottom-5grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
}

.exec-summary-card {
    border-radius: 10px;
    padding: 10px 12px;
    border: 1px solid #E2E8F0;
    background: #FFFFFF;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.exec-summary-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.exec-summary-card.green-theme {
    background: #F0FDF4;
    border-color: #BBF7D0;
    color: #166534;
}

.exec-summary-card.red-theme {
    background: #FEF2F2;
    border-color: #FECACA;
    color: #991B1B;
}

.exec-summary-card.pink-theme {
    background: #FFF1F2;
    border-color: #FFE4E6;
    color: #BE123C;
}

.exec-summary-card.blue-theme {
    background: #EFF6FF;
    border-color: #BFDBFE;
    color: #1E40AF;
}

.exec-summary-card.navy-theme {
    background: #0F172A;
    border-color: #1E293B;
    color: #FFFFFF;
}

.exec-summary-body {
    font-size: 11px;
    line-height: 1.35;
    font-weight: 600;
}

.exec-summary-val {
    font-size: 16px;
    font-weight: 800;
    margin: 2px 0;
}

/* Backdrop */
.jnt-notif-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(15, 23, 42, 0.25);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    animation: jntNotifFadeIn 0.2s ease;
}

.jnt-notif-backdrop.open {
    display: block;
}

/* Main Panel */
.jnt-notif-panel {
    position: fixed;
    top: 62px;
    right: 16px;
    z-index: 9999;
    width: 380px;
    max-width: calc(100vw - 32px);
    background: #FFFFFF;
    border-radius: 18px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 24px 60px -8px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(226, 232, 240, 0.9);
    transform: translateY(-12px) scale(0.97);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 520px;
}

.jnt-notif-panel.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

/* Header */
.jnt-notif-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px 14px;
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    color: #FFFFFF;
    flex-shrink: 0;
    gap: 8px;
}

.jnt-notif-header-left {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #F1F5F9;
}

.jnt-notif-header-left svg {
    color: #E30613;
    flex-shrink: 0;
}

.jnt-notif-count-badge {
    background: #E30613;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 800;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(227, 6, 19, 0.45);
    transition: transform 0.15s ease;
}

.jnt-notif-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.jnt-notif-mark-all {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #94A3B8;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.jnt-notif-mark-all:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #E2E8F0;
}

.jnt-notif-close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #94A3B8;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease;
    font-family: inherit;
    flex-shrink: 0;
}

.jnt-notif-close-btn:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #FCA5A5;
    border-color: rgba(239, 68, 68, 0.3);
}

/* Body / Scroll Area */
.jnt-notif-body {
    overflow-y: auto;
    flex: 1;
    padding: 6px 0;
    scrollbar-width: thin;
    scrollbar-color: #E2E8F0 transparent;
}

.jnt-notif-body::-webkit-scrollbar {
    width: 5px;
}

.jnt-notif-body::-webkit-scrollbar-thumb {
    background: #E2E8F0;
    border-radius: 10px;
}

/* Notification Item */
.jnt-notif-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 18px;
    cursor: pointer;
    border-bottom: 1px solid #F1F5F9;
    position: relative;
    transition: background 0.15s ease;
}

.jnt-notif-item:last-child {
    border-bottom: none;
}

.jnt-notif-item:hover {
    background: #F8FAFC;
}

.jnt-notif-item.unread {
    background: #FFF7F7;
}

.jnt-notif-item.unread:hover {
    background: #FFF0F0;
}

/* Left border accent by severity */
.jnt-notif-item.critical {
    border-left: 3px solid #EF4444;
}

.jnt-notif-item.warning {
    border-left: 3px solid #F59E0B;
}

.jnt-notif-item.success {
    border-left: 3px solid #10B981;
}

.jnt-notif-item.info {
    border-left: 3px solid #3B82F6;
}

.jnt-notif-item-icon {
    font-size: 22px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 1px;
}

.jnt-notif-item-content {
    flex: 1;
    min-width: 0;
}

.jnt-notif-item-title {
    font-size: 13px;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 3px;
    line-height: 1.4;
}

.jnt-notif-item-msg {
    font-size: 12px;
    font-weight: 500;
    color: #64748B;
    line-height: 1.5;
    margin-bottom: 6px;
}

.jnt-notif-item-time {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #94A3B8;
}

.jnt-notif-item-time svg {
    flex-shrink: 0;
}

/* Unread dot indicator */
.jnt-notif-unread-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #E30613;
    flex-shrink: 0;
    margin-top: 5px;
    box-shadow: 0 0 0 2px rgba(227, 6, 19, 0.2);
    opacity: 0;
    transition: opacity 0.15s ease;
}

.jnt-notif-item.unread .jnt-notif-unread-dot {
    opacity: 1;
}

/* Empty State */
.jnt-notif-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 44px 24px;
    text-align: center;
}

.jnt-notif-empty-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #F1F5F9 0%, #E2E8F0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: #CBD5E1;
}

.jnt-notif-empty-title {
    font-size: 15px;
    font-weight: 800;
    color: #1E293B;
    margin-bottom: 6px;
}

.jnt-notif-mark-all:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.jnt-notif-tabs {
    display: flex;
    gap: 6px;
    padding: 10px 14px;
    border-bottom: 1px solid #E2E8F0;
    overflow-x: auto;
    background: #F8FAFC;
    scrollbar-width: none;
}

.jnt-notif-tabs::-webkit-scrollbar {
    display: none;
}

.jnt-notif-tab-btn {
    border: 1px solid #CBD5E1;
    background: #FFFFFF;
    color: #475569;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.jnt-notif-tab-btn:hover {
    border-color: #94A3B8;
    color: #0F172A;
}

.jnt-notif-tab-btn.active {
    border-color: #E30613;
    background: #E30613;
    color: #FFFFFF;
}

.jnt-notif-item.is-read {
    opacity: 0.72;
}

.jnt-notif-item.is-read .jnt-notif-item-title {
    font-weight: 600;
}

.jnt-notif-item-time {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    color: #94A3B8;
}

.jnt-notif-time-meta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.jnt-notif-item-cta {
    color: #E30613;
    font-weight: 700;
    font-size: 11px;
    white-space: nowrap;
}

.jnt-notif-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-top: 1px solid #F1F5F9;
    background: #F8FAFC;
    font-size: 11px;
    font-weight: 600;
    color: #64748B;
    flex-shrink: 0;
}

.jnt-notif-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.22);
}

/* Unified Dark Theme for Notification Panel (Synced Across Every Page) */
:is(html, body).dark-body-theme .jnt-notif-panel {
    background: #111827;
    box-shadow: 0 24px 60px -8px rgba(0, 0, 0, 0.65), 0 0 0 1px #1F2937;
}

:is(html, body).dark-body-theme .jnt-notif-tabs {
    background: #0F172A;
    border-bottom-color: #1E293B;
}

:is(html, body).dark-body-theme .jnt-notif-tab-btn {
    background: #1E293B;
    border-color: #334155;
    color: #CBD5E1;
}

:is(html, body).dark-body-theme .jnt-notif-tab-btn:hover {
    border-color: #64748B;
    color: #FFFFFF;
}

:is(html, body).dark-body-theme .jnt-notif-tab-btn.active {
    background: #E30613;
    border-color: #E30613;
    color: #FFFFFF;
}

:is(html, body).dark-body-theme .jnt-notif-body {
    scrollbar-color: #334155 transparent;
}

:is(html, body).dark-body-theme .jnt-notif-body::-webkit-scrollbar-thumb {
    background: #334155;
}

:is(html, body).dark-body-theme .jnt-notif-item {
    border-bottom-color: #1E293B;
}

:is(html, body).dark-body-theme .jnt-notif-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

:is(html, body).dark-body-theme .jnt-notif-item.unread {
    background: rgba(227, 6, 19, 0.09);
}

:is(html, body).dark-body-theme .jnt-notif-item.unread:hover {
    background: rgba(227, 6, 19, 0.14);
}

:is(html, body).dark-body-theme .jnt-notif-item-title {
    color: #F8FAFC;
}

:is(html, body).dark-body-theme .jnt-notif-item-msg {
    color: #94A3B8;
}

:is(html, body).dark-body-theme .jnt-notif-item-cta {
    color: #F87171;
}

:is(html, body).dark-body-theme .jnt-notif-empty-icon {
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    color: #64748B;
}

:is(html, body).dark-body-theme .jnt-notif-empty-title {
    color: #F8FAFC;
}

:is(html, body).dark-body-theme .jnt-notif-empty-sub {
    color: #94A3B8;
}

:is(html, body).dark-body-theme .jnt-notif-footer {
    background: #0F172A;
    border-top-color: #1E293B;
    color: #94A3B8;
}

.jnt-notif-empty-sub {
    font-size: 12.5px;
    color: #64748B;
}

/* ═══════════════════════════════════════════════════════════════════════════
   EXCEL-STYLE VENDOR SHEET NAVIGATION TABS (SLA VENDOR & MONITORING)
   ═══════════════════════════════════════════════════════════════════════════ */
.excel-sheet-nav-container {
    background: #F8FAFC;
    border: 1px solid #CBD5E1;
    border-radius: 12px;
    padding: 10px 12px 0 12px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

.excel-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 8px;
    border-bottom: 1px solid #E2E8F0;
    margin-bottom: 6px;
    gap: 12px;
    flex-wrap: wrap;
}

.excel-sheet-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
    color: #0F172A;
}

.excel-sheet-subtitle {
    font-size: 11.5px;
    color: #64748B;
    font-weight: 500;
    margin-left: 6px;
}

.excel-sheet-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.excel-nav-arrow {
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: 6px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
}

.excel-nav-arrow:hover {
    background: #E2E8F0;
    color: #0F172A;
}

.excel-tabs-scroll-track {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 0px;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    -webkit-overflow-scrolling: touch;
}

.excel-tabs-scroll-track::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.excel-tab-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #E2E8F0;
    border: 1px solid #CBD5E1;
    border-bottom: none;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
    user-select: none;
    outline: none;
}

.excel-tab-item:hover {
    background: #F1F5F9;
    color: #0F172A;
}

.excel-tab-item.active {
    background: #FFFFFF;
    color: #0F172A;
    border-color: #94A3B8;
    border-bottom: 3px solid #107C41;
    box-shadow: 0 -2px 6px rgba(15, 23, 42, 0.06);
    font-weight: 800;
}

.excel-tab-badge {
    background: #CBD5E1;
    color: #1E293B;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.excel-tab-item.active .excel-tab-badge {
    background: #107C41;
    color: #FFFFFF;
}

.excel-tab-item.all-tab.active {
    border-bottom-color: #E30613;
}

.excel-tab-item.all-tab.active .excel-tab-badge {
    background: #E30613;
}

/* ==========================================================================
   ⚡ INSTANT TOUCH & CLICK RESPONSIVENESS & HARDWARE ACCELERATION
   Menghilangkan delay 300ms pada klik/tap di browser, memberikan feedback
   visual instan saat ditekan (:active), dan mengoptimalkan rendering GPU.
   ========================================================================== */
html,
body {
    height: 100%;
    width: 100%;
    font-family: var(--font-family);
    background-color: var(--bg-dark-main);
    color: var(--text-light);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

button,
input[type="button"],
input[type="submit"],
input[type="reset"],
.btn,
.btn-login,
.btn-sla-action,
.btn-sla-primary-action,
.btn-sla-secondary-action,
.btn-modal-primary,
.btn-modal-secondary,
.btn-modal-danger,
.excel-tab-item,
.excel-nav-arrow,
.sla-tab-btn,
.sidebar-nav a,
.inc-user-chip,
.modal-close-btn,
.btn-close-x {
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    cursor: pointer;
}

/* Efek instan saat tombol ditekan (feedback 0ms tanpa delay) */
button:active:not(:disabled),
.btn:active:not(:disabled),
.btn-sla-action:active,
.btn-sla-primary-action:active,
.btn-sla-secondary-action:active,
.btn-modal-primary:active,
.btn-modal-secondary:active,
.btn-modal-danger:active,
.excel-tab-item:active,
.excel-nav-arrow:active,
.sla-tab-btn:active {
    transform: scale(0.97) !important;
    transition: transform 0.05s ease !important;
}

/* Akselerasi GPU untuk animasi modal & overlay agar 60fps mulus */
.modal-overlay,
.modal-card,
.excel-tabs-track,
.sidebar-panel {
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* ==========================================================================
   REPORT & EXPORT CENTER + EXCEL UPLOAD ENGINE STYLES
   ========================================================================== */
.report-tab-nav {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid #E2E8F0;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.btn-tab-report {
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 10px 18px;
    font-size: 13.5px;
    font-weight: 700;
    color: #64748B;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    border-radius: 6px 6px 0 0;
    white-space: nowrap;
}

.btn-tab-report:hover {
    color: #E30613;
    background: #FEF2F2;
}

.btn-tab-report.active {
    color: #E30613;
    border-bottom-color: #E30613;
    background: #FFF5F5;
}

.btn-tab-report .tab-badge-count {
    background: #E2E8F0;
    color: #475569;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 800;
}

.btn-tab-report.active .tab-badge-count {
    background: #E30613;
    color: #FFFFFF;
}

/* Excel Upload Dropzone & Container */
.excel-upload-container {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-bottom: 24px;
}

.excel-dropzone {
    border: 2px dashed #93C5FD;
    background: #F8FAFC;
    border-radius: 12px;
    padding: 36px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.excel-dropzone:hover,
.excel-dropzone.dragover {
    background: #EFF6FF;
    border-color: #3B82F6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.12);
}

.excel-dropzone-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #DCFCE7;
    color: #16A34A;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 2px 6px rgba(22, 163, 74, 0.15);
}

.excel-preview-badge-jam {
    background: #DCFCE7;
    color: #15803D;
    border: 1px solid #86EFAC;
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 11.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Dark Mode Support for Report */
:is(html, body).dark-body-theme .excel-upload-container {
    background: #121824;
    border-color: #1E293B;
    color: #F1F5F9;
}

:is(html, body).dark-body-theme .btn-tab-report {
    color: #94A3B8;
}

:is(html, body).dark-body-theme .btn-tab-report:hover {
    color: #F87171;
    background: rgba(227, 6, 19, 0.1);
}

:is(html, body).dark-body-theme .btn-tab-report.active {
    color: #EF4444;
    border-bottom-color: #EF4444;
    background: rgba(227, 6, 19, 0.15);
}

:is(html, body).dark-body-theme .excel-dropzone {
    background: #0F172A;
    border-color: #334155;
}

:is(html, body).dark-body-theme .excel-dropzone:hover,
:is(html, body).dark-body-theme .excel-dropzone.dragover {
    background: #1E293B;
    border-color: #3B82F6;
}

/* Login screen anti-flicker & layout stability */
.fullscreen-login-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 1;
    object-position: center;
}

.form-panel {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow-y: hidden;
    background: transparent;
    scrollbar-gutter: stable;
}

.map-watermark,
.red-diagonal-accent {
    pointer-events: none;
}

.login-card:hover {
    transform: none;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.62), 0 0 30px rgba(227, 6, 19, 0.2);
    border-color: rgba(255, 255, 255, 0.24);
}

.login-logo-badge {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #E30613 0%, #990000 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(227, 6, 19, 0.45);
    animation: none;
}

.btn-login {
    width: 100%;
    padding: 12px 18px;
    background: linear-gradient(135deg, #E30613 0%, #B80000 50%, #E30613 100%);
    background-size: 200% auto;
    border: none;
    border-radius: 10px;
    color: #FFFFFF;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(227, 6, 19, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: inherit;
    transition: background-position 0.25s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    position: relative;
    overflow: hidden;
}

.btn-login:hover:not(:disabled) {
    background-position: right center;
    transform: none;
    box-shadow: 0 10px 28px rgba(227, 6, 19, 0.6);
}

/* 1. Pagination Buttons (.p-btn across Monitoring, Trouble, Shift, Master, SLA) */
:is(html, body).dark-body-theme .p-btn,
:is(html, body).dark-body-theme .btn-view-all-history,
:is(html, body).dark-body-theme .inc-detail-card .btn-view-all-history {
    background-color: #172030 !important;
    border-color: #2A3B52 !important;
    color: #CBD5E1 !important;
}

:is(html, body).dark-body-theme .p-btn:hover:not(:disabled):not(.active),
:is(html, body).dark-body-theme .btn-view-all-history:hover,
:is(html, body).dark-body-theme .inc-detail-card .btn-view-all-history:hover {
    background-color: #1E293B !important;
    border-color: #38BDF8 !important;
    color: #FFFFFF !important;
}

:is(html, body).dark-body-theme .p-btn.active {
    background-color: var(--primary-red) !important;
    border-color: var(--primary-red) !important;
    color: #FFFFFF !important;
}

:is(html, body).dark-body-theme .p-btn:disabled {
    opacity: 0.45 !important;
    cursor: not-allowed !important;
}

/* 2. Monitoring Sidebar Cards: Ringkasan Live Pill & Timeline Slot 4 Jam */
:is(html, body).dark-body-theme .monitoring-summary-box #summary-total-trip {
    color: #F8FAFC !important;
}

:is(html, body).dark-body-theme .monitoring-summary-box .summary-label-wrap span,
:is(html, body).dark-body-theme #dt-incident-keterangan {
    color: #CBD5E1 !important;
}

:is(html, body).dark-body-theme .monitoring-summary-box .sla-target-badge {
    background: rgba(16, 185, 129, 0.16) !important;
    border-color: rgba(52, 211, 153, 0.4) !important;
    color: #34D399 !important;
}

:is(html, body).dark-body-theme .vertical-slot-timeline::before {
    background: #2A3B52 !important;
}

:is(html, body).dark-body-theme .timeline-slot-node,
:is(html, body).dark-body-theme .btn-action-sm,
:is(html, body).dark-body-theme .btn-white-outline,
:is(html, body).dark-body-theme .btn-white-outline-full,
:is(html, body).dark-body-theme .btn-st-outline,
:is(html, body).dark-body-theme .btn-inc-import,
:is(html, body).dark-body-theme .btn-data-action:not([style*="background"]) {
    background: #172030 !important;
    border-color: #2A3B52 !important;
    color: #E2E8F0 !important;
}

:is(html, body).dark-body-theme .timeline-slot-node span {
    color: #E2E8F0 !important;
}

:is(html, body).dark-body-theme .timeline-slot-node span:last-child,
:is(html, body).dark-body-theme .detail-route,
:is(html, body).dark-body-theme #sh-fleet-pagination-info,
:is(html, body).dark-body-theme .per-page-row,
:is(html, body).dark-body-theme #sh-live-fleet-tbody td span[style*="#475569"],
:is(html, body).dark-body-theme #sh-live-fleet-tbody td span[style*="#64748B"],
:is(html, body).dark-body-theme .history-device,
:is(html, body).dark-body-theme .inc-detail-card .history-device,
:is(html, body).dark-body-theme .history-ip,
:is(html, body).dark-body-theme .inc-detail-card .history-ip {
    color: #94A3B8 !important;
}

:is(html, body).dark-body-theme .timeline-slot-node::before {
    background: #64748B !important;
    border-color: #121824 !important;
    box-shadow: 0 0 0 2px #2A3B52 !important;
}

:is(html, body).dark-body-theme .timeline-slot-node.active-slot {
    background: rgba(227, 6, 19, 0.18) !important;
    border-color: rgba(248, 113, 113, 0.55) !important;
    color: #FCA5A5 !important;
    box-shadow: 0 2px 10px rgba(227, 6, 19, 0.22) !important;
}

:is(html, body).dark-body-theme .timeline-slot-node.active-slot span {
    color: #FCA5A5 !important;
}

:is(html, body).dark-body-theme .timeline-slot-node.active-slot::before {
    background: #EF4444 !important;
    border-color: #121824 !important;
}

/* 3. Monitoring Table Sticky Columns Text & Slot Check-in Chips */
:is(html, body).dark-body-theme .monitoring-table tbody td.mon-sticky-col,
:is(html, body).dark-body-theme .monitoring-table tbody td.mon-sticky-col strong,
:is(html, body).dark-body-theme .toggle-setting-row.no-ic[style*="background"] .toggle-text-meta strong,
:is(html, body).dark-body-theme .device-session-item .device-name,
:is(html, body).dark-body-theme #sh-live-fleet-tbody td strong[style*="#0F172A"],
:is(html, body).dark-body-theme .history-heading,
:is(html, body).dark-body-theme .inc-detail-card .history-heading,
:is(html, body).dark-body-theme .history-time,
:is(html, body).dark-body-theme .inc-detail-card .history-time {
    color: #F1F5F9 !important;
}

:is(html, body).dark-body-theme .monitoring-table tbody td.mon-sticky-col-1,
:is(html, body).dark-body-theme .toggle-setting-row.no-ic[style*="background"] .toggle-text-meta span,
:is(html, body).dark-body-theme .device-session-item .device-sub {
    color: #94A3B8 !important;
}

:is(html, body).dark-body-theme .monitoring-table tbody td.mon-sticky-col-2 .kode-tugas-mono,
:is(html, body).dark-body-theme #sh-live-fleet-tbody td strong[style*="#E30613"] {
    color: #F87171 !important;
}

:is(html, body).dark-body-theme .monitoring-table tbody td.mon-sticky-col-3>div:first-child {
    color: #60A5FA !important;
}

:is(html, body).dark-body-theme .monitoring-table .chip-pos,
:is(html, body).dark-body-theme .chip-pos {
    background: rgba(16, 185, 129, 0.16) !important;
    color: #34D399 !important;
    border: 1px solid rgba(52, 211, 153, 0.38) !important;
}

:is(html, body).dark-body-theme .monitoring-table .chip-pos span {
    color: inherit !important;
}

:is(html, body).dark-body-theme .monitoring-table .chip-pos[style*="#DC2626"],
:is(html, body).dark-body-theme .monitoring-table .chip-pos[style*="#FEF2F2"] {
    background: rgba(239, 68, 68, 0.18) !important;
    color: #F87171 !important;
    border-color: rgba(248, 113, 113, 0.42) !important;
}

:is(html, body).dark-body-theme .monitoring-table .chip-pos[style*="#D97706"],
:is(html, body).dark-body-theme .monitoring-table .chip-pos[style*="#FFFBEB"] {
    background: rgba(245, 158, 11, 0.18) !important;
    color: #FBBF24 !important;
    border-color: rgba(251, 191, 36, 0.42) !important;
}

/* 4. Route/Target/Status Pills & Table Action Buttons (Monitoring + SLA Vendor) */
:is(html, body).dark-body-theme .sla-trip-pill,
:is(html, body).dark-body-theme .btn-view-photo,
:is(html, body).dark-body-theme .btn-info-action,
:is(html, body).dark-body-theme .sla-action-buttons .btn-sla-action[onclick*="openSLAInfoModal"] {
    background: rgba(37, 99, 235, 0.18) !important;
    border-color: rgba(96, 165, 250, 0.42) !important;
    color: #93C5FD !important;
}

:is(html, body).dark-body-theme .sla-target-badge {
    background: #1E293B !important;
    border-color: #334155 !important;
    color: #CBD5E1 !important;
}

:is(html, body).dark-body-theme .sla-card-badge {
    background: rgba(16, 185, 129, 0.16) !important;
    border-color: rgba(52, 211, 153, 0.35) !important;
    color: #34D399 !important;
}

:is(html, body).dark-body-theme #section-sla-return .sla-card-badge {
    background: rgba(37, 99, 235, 0.18) !important;
    border-color: rgba(96, 165, 250, 0.4) !important;
    color: #60A5FA !important;
}

:is(html, body).dark-body-theme .btn-sla-secondary-action {
    background: #172030 !important;
    border-color: #2A3B52 !important;
    color: #93C5FD !important;
}

:is(html, body).dark-body-theme .btn-sla-secondary-action:hover {
    background: #1E293B !important;
    border-color: #3B82F6 !important;
    color: #FFFFFF !important;
}

:is(html, body).dark-body-theme .btn-sla-secondary-action[onclick*="exportOfficialSLAExcel"] {
    background: rgba(22, 163, 74, 0.16) !important;
    border-color: rgba(74, 222, 128, 0.38) !important;
    color: #4ADE80 !important;
}

:is(html, body).dark-body-theme .btn-sla-secondary-action[onclick*="exportOfficialSLAExcel"]:hover {
    background: rgba(22, 163, 74, 0.28) !important;
    border-color: #22C55E !important;
    color: #86EFAC !important;
}

:is(html, body).dark-body-theme a.btn-sla-secondary-action[href*="monitoring.html"] {
    background: rgba(37, 99, 235, 0.16) !important;
    border-color: rgba(96, 165, 250, 0.38) !important;
    color: #93C5FD !important;
}

:is(html, body).dark-body-theme .btn-view-photo:hover,
:is(html, body).dark-body-theme .btn-info-action:hover,
:is(html, body).dark-body-theme .sla-action-buttons .btn-sla-action[onclick*="openSLAInfoModal"]:hover {
    background: rgba(37, 99, 235, 0.32) !important;
    border-color: #3B82F6 !important;
    color: #FFFFFF !important;
}

:is(html, body).dark-body-theme .btn-finish-action {
    background: rgba(22, 163, 74, 0.16) !important;
    border-color: rgba(74, 222, 128, 0.4) !important;
    color: #4ADE80 !important;
}

:is(html, body).dark-body-theme .btn-finish-action:hover {
    background: #16A34A !important;
    border-color: #16A34A !important;
    color: #FFFFFF !important;
}

:is(html, body).dark-body-theme .btn-finish-action.completed {
    background: #172030 !important;
    border-color: #2A3B52 !important;
    color: #94A3B8 !important;
}

:is(html, body).dark-body-theme .btn-icon-delete-sq {
    background: rgba(239, 68, 68, 0.16) !important;
    border-color: rgba(248, 113, 113, 0.4) !important;
    color: #F87171 !important;
}

:is(html, body).dark-body-theme .btn-icon-delete-sq:hover {
    background: #EF4444 !important;
    border-color: #DC2626 !important;
    color: #FFFFFF !important;
}

:is(html, body).dark-body-theme .mon-pill-ontime,
:is(html, body).dark-body-theme .mon-pill-badge-completed {
    background: rgba(16, 185, 129, 0.16) !important;
    border-color: rgba(52, 211, 153, 0.45) !important;
    color: #34D399 !important;
}

:is(html, body).dark-body-theme .mon-pill-late,
:is(html, body).dark-body-theme .mon-pill-badge-late-completed,
:is(html, body).dark-body-theme .sla-status-pill.late,
:is(html, body).dark-body-theme .sla-status-pill.red,
:is(html, body).dark-body-theme .sla-live-countdown.sla-rem-red {
    background: rgba(239, 68, 68, 0.18) !important;
    border-color: rgba(248, 113, 113, 0.45) !important;
    color: #F87171 !important;
}

/* 5. Trouble & Laka Redesign & Dark Theme Overrides */
.trouble-row {
    transition: background-color 0.15s ease, border-color 0.15s ease;
    cursor: pointer;
}

.trouble-row.active-selected {
    background-color: rgba(254, 242, 242, 0.8) !important;
    border-left: 3.5px solid #E30613 !important;
}

:is(html, body).dark-body-theme .trouble-row.active-selected {
    background-color: rgba(239, 68, 68, 0.15) !important;
    border-left: 3.5px solid #EF4444 !important;
}

.trouble-row:hover:not(.active-selected) {
    background-color: #F8FAFC;
}

:is(html, body).dark-body-theme .trouble-row:hover:not(.active-selected) {
    background-color: rgba(255, 255, 255, 0.03) !important;
}

/* Detail Hero Box */
.detail-hero-box {
    background-color: #FEF2F2;
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #FEE2E2;
    transition: all 0.2s ease;
}

:is(html, body).dark-body-theme .detail-hero-box,
:is(html, body).dark-body-theme #dt-hero-box {
    background-color: #172030 !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
}

.detail-hero-icon {
    width: 36px;
    height: 36px;
    background-color: #FEE2E2;
    color: #EF4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.detail-hero-icon svg {
    width: 20px;
    height: 20px;
}

:is(html, body).dark-body-theme .detail-hero-icon,
:is(html, body).dark-body-theme #dt-hero-icon {
    background-color: rgba(239, 68, 68, 0.18) !important;
    color: #F87171 !important;
}

.incident-badge-type {
    font-size: 10.5px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    letter-spacing: 0.3px;
}

.incident-badge-type.trouble-type {
    background-color: #FEE2E2;
    color: #DC2626;
}

.incident-badge-type.laka-type {
    background-color: #F3E8FF;
    color: #9333EA;
}

:is(html, body).dark-body-theme .incident-badge-type.trouble-type {
    background-color: rgba(239, 68, 68, 0.2) !important;
    color: #FCA5A5 !important;
    border: 1px solid rgba(248, 113, 113, 0.35) !important;
}

:is(html, body).dark-body-theme .incident-badge-type.laka-type {
    background-color: rgba(168, 85, 247, 0.2) !important;
    color: #D8B4FE !important;
    border: 1px solid rgba(192, 132, 252, 0.35) !important;
}

:is(html, body).dark-body-theme .detail-code,
:is(html, body).dark-body-theme .user-row.active-selected strong,
:is(html, body).dark-body-theme .excel-banner-text strong {
    color: #FFFFFF !important;
}

.incident-section-label {
    font-size: 12.5px;
    font-weight: 700;
    color: #0F172A;
}

:is(html, body).dark-body-theme .incident-section-label {
    color: #F1F5F9 !important;
}

.btn-add-photo-chip {
    font-size: 11px;
    font-weight: 700;
    color: #2563EB;
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-radius: 6px;
    padding: 3px 9px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-add-photo-chip:hover {
    background: #DBEAFE;
    color: #1D4ED8;
}

:is(html, body).dark-body-theme .btn-add-photo-chip,
:is(html, body).dark-body-theme #btn-dt-add-photo {
    background: rgba(37, 99, 235, 0.18) !important;
    border-color: rgba(96, 165, 250, 0.45) !important;
    color: #93C5FD !important;
}

:is(html, body).dark-body-theme .btn-add-photo-chip:hover,
:is(html, body).dark-body-theme #btn-dt-add-photo:hover {
    background: rgba(37, 99, 235, 0.32) !important;
    color: #FFFFFF !important;
}

/* Badges Status */
:is(html, body).dark-body-theme .badge-status.orange-outline {
    background-color: rgba(249, 115, 22, 0.16) !important;
    border-color: rgba(251, 146, 60, 0.55) !important;
    color: #FB923C !important;
}

:is(html, body).dark-body-theme .badge-status.blue-outline {
    background-color: rgba(59, 130, 246, 0.16) !important;
    border-color: rgba(96, 165, 250, 0.55) !important;
    color: #60A5FA !important;
}

:is(html, body).dark-body-theme .badge-status.green-outline {
    background-color: rgba(34, 197, 94, 0.16) !important;
    border-color: rgba(74, 222, 128, 0.55) !important;
    color: #4ADE80 !important;
}

:is(html, body).dark-body-theme .badge-status.red-outline {
    background-color: rgba(239, 68, 68, 0.16) !important;
    border-color: rgba(248, 113, 113, 0.55) !important;
    color: #F87171 !important;
}

:is(html, body).dark-body-theme .inc-detail-card .detail-info-list .info-item {
    border-color: #1E2A3C !important;
}

/* Timeline Container */
.timeline-container {
    background-color: #F8FAFC;
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1px solid #E2E8F0;
    transition: all 0.2s ease;
}

:is(html, body).dark-body-theme .timeline-container,
:is(html, body).dark-body-theme #dt-timeline-container,
:is(html, body).dark-body-theme .user-login-history-section {
    background-color: #0F172A !important;
    border: 1px solid #1E2A3C !important;
}

.timeline-heading {
    font-size: 12px;
    font-weight: 700;
    color: #0F172A;
}

:is(html, body).dark-body-theme .timeline-heading,
:is(html, body).dark-body-theme .timeline-step-time {
    color: #F1F5F9 !important;
}

.timeline-step-time {
    font-size: 11px;
    font-weight: 700;
    color: #0F172A;
}

.timeline-step-note {
    font-size: 11px;
    color: #334155;
    line-height: 1.35;
    display: block;
    margin-top: 2px;
}

:is(html, body).dark-body-theme .timeline-step-note,
:is(html, body).dark-body-theme .user-row.active-selected .text-dim {
    color: #CBD5E1 !important;
}

.timeline-step-user {
    font-size: 10px;
    color: #94A3B8;
}

:is(html, body).dark-body-theme .timeline-step-user {
    color: #64748B !important;
}

/* Buttons */
:is(html, body).dark-body-theme .btn-white-outline:hover,
:is(html, body).dark-body-theme .btn-white-outline-full:hover,
:is(html, body).dark-body-theme .btn-st-outline:hover,
:is(html, body).dark-body-theme .btn-inc-import:hover,
:is(html, body).dark-body-theme .btn-data-action:not([style*="background"]):hover,
:is(html, body).dark-body-theme .btn-action-sm:hover {
    background-color: #1E293B !important;
    border-color: #38BDF8 !important;
    color: #FFFFFF !important;
}

/* Modal Form Styles */
.form-label-highlight {
    font-weight: 700 !important;
    color: #1E293B;
}

:is(html, body).dark-body-theme .form-label-highlight {
    color: #F1F5F9 !important;
}

.form-hint-text {
    font-size: 11px;
    color: #64748B;
    margin-top: 3px;
    display: block;
}

.form-select-highlight {
    background-color: #FFFFFF;
    border: 1.5px solid #EF4444;
    border-radius: 6px;
    padding: 10px 12px;
    color: #1E293B;
    font-size: 13px;
    font-weight: 700;
    outline: none;
    transition: all 0.15s ease;
}

:is(html, body).dark-body-theme .form-select-highlight {
    background-color: #172030 !important;
    border-color: #EF4444 !important;
    color: #FFFFFF !important;
}

.form-input-readonly {
    background-color: #F8FAFC;
    border: 1px solid #CBD5E1;
    border-radius: 6px;
    padding: 9px 12px;
    color: #475569;
    font-size: 13px;
    outline: none;
}

:is(html, body).dark-body-theme .form-input-readonly {
    background-color: rgba(15, 23, 42, 0.6) !important;
    border: 1px dashed #334155 !important;
    color: #CBD5E1 !important;
}

.drop-upload-box {
    border: 2px dashed #CBD5E1;
    border-radius: 8px;
    padding: 14px;
    text-align: center;
    cursor: pointer;
    background: #F8FAFC;
    transition: all 0.2s ease;
}

.drop-upload-box:hover {
    border-color: #3B82F6;
    background: #EFF6FF;
}

:is(html, body).dark-body-theme .drop-upload-box {
    border-color: #334155 !important;
    background: rgba(15, 23, 42, 0.5) !important;
}

:is(html, body).dark-body-theme .drop-upload-box:hover {
    border-color: #38BDF8 !important;
    background: rgba(30, 41, 59, 0.7) !important;
}

.drop-upload-box-success {
    border-color: #BBF7D0;
    background: #F0FDF4;
}

.drop-upload-box-success:hover {
    border-color: #22C55E;
    background: #DCFCE7;
}

:is(html, body).dark-body-theme .drop-upload-box-success {
    border-color: rgba(34, 197, 94, 0.4) !important;
    background: rgba(34, 197, 94, 0.08) !important;
}

:is(html, body).dark-body-theme .drop-upload-box-success:hover {
    border-color: #4ADE80 !important;
    background: rgba(34, 197, 94, 0.15) !important;
}

.drop-upload-title {
    font-size: 12px;
    font-weight: 700;
    color: #2563EB;
    margin-top: 4px;
}

:is(html, body).dark-body-theme .drop-upload-title {
    color: #60A5FA !important;
}

.drop-upload-sub {
    font-size: 11px;
    color: #64748B;
    display: block;
    margin-top: 2px;
}

:is(html, body).dark-body-theme .drop-upload-sub {
    color: #94A3B8 !important;
}

/* 6. Shared Secondary Outline Buttons & Shift Management Armada Table */
:is(html, body).dark-body-theme .inc-table-card .inc-table-header[style*="border-bottom"],
:is(html, body).dark-body-theme .user-detail-profile-box {
    border-bottom-color: #1E2A3C !important;
}

:is(html, body).dark-body-theme #sh-live-fleet-tbody td>div[style*="#1E40AF"] {
    color: #93C5FD !important;
}

:is(html, body).dark-body-theme #sh-live-fleet-tbody td span[style*="#EFF6FF"] {
    background: rgba(37, 99, 235, 0.18) !important;
    border: 1px solid rgba(96, 165, 250, 0.4) !important;
    color: #93C5FD !important;
}

:is(html, body).dark-body-theme #sh-live-fleet-tbody td span[style*="#FEF3C7"] {
    background: rgba(245, 158, 11, 0.18) !important;
    border: 1px solid rgba(251, 191, 36, 0.42) !important;
    color: #FBBF24 !important;
}

/* 7. Profile & Settings Cards, 2FA Row, Connected Devices, Migration & Reset */
:is(html, body).dark-body-theme .toggle-setting-row.no-ic[style*="background"] {
    background: #172030 !important;
    border: 1px solid #2A3B52 !important;
}

:is(html, body).dark-body-theme .device-session-item {
    background-color: #172030 !important;
    border-color: #2A3B52 !important;
}

:is(html, body).dark-body-theme .device-session-item.active-session {
    background-color: rgba(37, 99, 235, 0.14) !important;
    border-color: rgba(96, 165, 250, 0.42) !important;
}

/* 8. User Management Table, Selected Row, Role Badges & Detail User Panel */
.user-row.active-selected {
    background-color: #EFF6FF !important;
    border-left: 3.5px solid #2563EB !important;
}

.user-row:hover:not(.active-selected),
.sla-enterprise-table thead.is-frozen-thead th {
    background-color: #F8FAFC !important;
}

:is(html, body).dark-body-theme .inc-data-table tbody tr.user-row.active-selected,
:is(html, body).dark-body-theme .user-row.active-selected,
:is(html, body).dark-body-theme .inc-data-table tbody tr.inc-row.active-selected,
:is(html, body).dark-body-theme .inc-row.active-selected {
    background-color: rgba(37, 99, 235, 0.22) !important;
    border-left: 3.5px solid #38BDF8 !important;
}

:is(html, body).dark-body-theme .user-row.active-selected td,
:is(html, body).dark-body-theme .inc-row.active-selected td,
:is(html, body).dark-body-theme .user-row:hover:not(.active-selected) td {
    background-color: transparent !important;
}

:is(html, body).dark-body-theme .user-row:hover:not(.active-selected) {
    background-color: rgba(255, 255, 255, 0.04) !important;
}

:is(html, body).dark-body-theme .inc-data-table tbody tr.trouble-row.active-selected {
    background-color: rgba(227, 6, 19, 0.15) !important;
}

/* User Management Role Badges */
:is(html, body).dark-body-theme .role-badge.role-admin,
:is(html, body).dark-body-theme .inc-data-table td span.role-badge.role-admin {
    background-color: rgba(239, 68, 68, 0.18) !important;
    border: 1px solid rgba(248, 113, 113, 0.42) !important;
    color: #FCA5A5 !important;
}

:is(html, body).dark-body-theme .role-badge.role-supervisor,
:is(html, body).dark-body-theme .inc-data-table td span.role-badge.role-supervisor {
    background-color: rgba(59, 130, 246, 0.18) !important;
    border: 1px solid rgba(96, 165, 250, 0.42) !important;
    color: #93C5FD !important;
}

:is(html, body).dark-body-theme .role-badge.role-operator,
:is(html, body).dark-body-theme .inc-data-table td span.role-badge.role-operator,
:is(html, body).dark-body-theme .inc-detail-card .user-active-chip {
    background-color: rgba(34, 197, 94, 0.18) !important;
    border: 1px solid rgba(74, 222, 128, 0.42) !important;
    color: #4ADE80 !important;
}

:is(html, body).dark-body-theme .user-detail-avatar {
    border-color: #334155 !important;
}

:is(html, body).dark-body-theme .inc-detail-card .btn-red-outline-full {
    background-color: rgba(239, 68, 68, 0.14) !important;
    border-color: rgba(248, 113, 113, 0.45) !important;
    color: #FCA5A5 !important;
}

:is(html, body).dark-body-theme .inc-detail-card .btn-red-outline-full:hover {
    background-color: rgba(239, 68, 68, 0.28) !important;
    border-color: #EF4444 !important;
    color: #FFFFFF !important;
}

/* 9. Shift Management Table Styling (TLC, Slot, Title, Posisi) */
.sh-tlc-badge {
    font-size: 10px;
    background: #EFF6FF;
    color: #2563EB;
    border: 1px solid #BFDBFE;
    padding: 1px 7px;
    border-radius: 99px;
    font-weight: 700;
    display: inline-block;
}

:is(html, body).dark-body-theme .sh-tlc-badge {
    background: rgba(37, 99, 235, 0.18) !important;
    border-color: rgba(96, 165, 250, 0.42) !important;
    color: #93C5FD !important;
}

.sh-slot-badge {
    background: #FEF3C7;
    color: #B45309;
    border: 1px solid #FDE68A;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 11px;
    display: inline-block;
}

:is(html, body).dark-body-theme .sh-slot-badge {
    background: rgba(245, 158, 11, 0.16) !important;
    border-color: rgba(251, 191, 36, 0.4) !important;
    color: #FCD34D !important;
}

.sh-rute-title {
    color: #1E40AF;
    font-size: 12px;
}

:is(html, body).dark-body-theme .sh-rute-title {
    color: #93C5FD !important;
}

.sh-posisi-text {
    color: #0F172A;
    font-size: 12px;
}

:is(html, body).dark-body-theme .sh-posisi-text {
    color: #F1F5F9 !important;
}

.sh-vendor-badge {
    font-size: 12px;
    font-weight: 800;
    color: #0284C7;
    letter-spacing: 0.3px;
}

:is(html, body).dark-body-theme .sh-vendor-badge {
    color: #38BDF8 !important;
}

/* 10. Monitoring 4 Jam Active Slot Header & Pagination Per-Page */
.active-slot-th {
    background: #EFF6FF !important;
    color: #1E40AF !important;
    font-weight: 800 !important;
}

:is(html, body).dark-body-theme .active-slot-th,
:is(html, body).dark-body-theme .monitoring-table thead th.active-slot-th {
    background: rgba(37, 99, 235, 0.25) !important;
    color: #93C5FD !important;
    border-color: rgba(96, 165, 250, 0.45) !important;
}

:is(html, body).dark-body-theme .timeline-slot-node:hover:not(.active-slot) {
    background: #1E293B !important;
    border-color: #38BDF8 !important;
}

/* 11. SLA Action Buttons & Proof Photo */
.btn-view-photo {
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    color: #2563EB;
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 10.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    transition: all 0.15s ease;
}

.btn-view-photo:hover {
    background: #DBEAFE;
    border-color: #2563EB;
    color: #1D4ED8;
}

:is(html, body).dark-body-theme .btn-view-photo {
    background: rgba(37, 99, 235, 0.18) !important;
    border-color: rgba(96, 165, 250, 0.42) !important;
    color: #93C5FD !important;
}

:is(html, body).dark-body-theme .btn-view-photo:hover {
    background: rgba(37, 99, 235, 0.32) !important;
    border-color: #38BDF8 !important;
    color: #FFFFFF !important;
}

.btn-sla-export-official {
    background: #F0FDF4;
    color: #166534;
    border-color: #BBF7D0;
}

.btn-sla-export-official:hover {
    background: #DCFCE7;
    border-color: #22C55E;
    color: #15803D;
}

:is(html, body).dark-body-theme .btn-sla-export-official {
    background: rgba(22, 163, 74, 0.18) !important;
    border-color: rgba(74, 222, 128, 0.42) !important;
    color: #4ADE80 !important;
}

:is(html, body).dark-body-theme .btn-sla-export-official:hover {
    background: rgba(22, 163, 74, 0.3) !important;
    border-color: #4ADE80 !important;
    color: #FFFFFF !important;
}

.btn-sla-info {
    background: #EFF6FF;
    border: 1px solid #93C5FD;
    color: #1D4ED8;
    font-weight: 700;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 6px;
}

:is(html, body).dark-body-theme .btn-sla-info,
:is(html, body).dark-body-theme .btn-sla-return-mon {
    background: rgba(37, 99, 235, 0.18) !important;
    border-color: rgba(96, 165, 250, 0.42) !important;
    color: #93C5FD !important;
}

.btn-sla-return-mon {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    color: #2563EB;
    border-radius: 6px;
    padding: 4px 6px;
    font-size: 12px;
}

/* Live Clock Badge */
.rep-clock-badge {
    font-size: 12.5px;
    color: #475569;
    font-weight: 600;
    background: #F1F5F9;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

:is(html, body).dark-body-theme .rep-clock-badge {
    background: #172030 !important;
    border-color: #2A3B52 !important;
    color: #E2E8F0 !important;
}

/* Auto-Fill Engine Banner */
.excel-instruction-banner {
    background: linear-gradient(135deg, #FFF5F5 0%, #EFF6FF 100%);
    border: 1.5px solid #FCA5A5;
    border-radius: 12px;
    padding: 18px 24px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: all 0.2s ease;
}

:is(html, body).dark-body-theme .excel-instruction-banner {
    background: linear-gradient(135deg, rgba(227, 6, 19, 0.12) 0%, rgba(37, 99, 235, 0.12) 100%) !important;
    border-color: rgba(239, 68, 68, 0.35) !important;
}

.excel-banner-title {
    font-size: 15px;
    font-weight: 800;
    color: #991B1B;
    margin-bottom: 4px;
}

:is(html, body).dark-body-theme .excel-banner-title {
    color: #F87171 !important;
}

.excel-banner-text {
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
    margin: 0;
}

:is(html, body).dark-body-theme .excel-banner-text {
    color: #CBD5E1 !important;
}

/* Excel Card Titles & Labels */
.excel-card-title {
    font-size: 16px;
    font-weight: 800;
    color: #0F172A;
    margin: 0;
}

:is(html, body).dark-body-theme .excel-card-title {
    color: #F8FAFC !important;
}

.excel-card-sub,
.excel-dropzone-sub {
    font-size: 12px;
    color: #64748B;
}

:is(html, body).dark-body-theme .excel-card-sub,
:is(html, body).dark-body-theme .excel-dropzone-sub {
    color: #94A3B8 !important;
}

.label-excel-format {
    font-size: 12px;
    font-weight: 700;
    color: #475569;
}

:is(html, body).dark-body-theme .label-excel-format {
    color: #CBD5E1 !important;
}

/* Template Download Buttons */
.btn-template-sla {
    padding: 6px 12px;
    font-size: 11.5px;
    font-weight: 700;
    color: #1E40AF;
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.btn-template-sla:hover {
    background: #DBEAFE;
    border-color: #3B82F6;
    color: #1D4ED8;
}

:is(html, body).dark-body-theme .btn-template-sla {
    background: rgba(37, 99, 235, 0.18) !important;
    border-color: rgba(96, 165, 250, 0.42) !important;
    color: #93C5FD !important;
}

:is(html, body).dark-body-theme .btn-template-sla:hover {
    background: rgba(37, 99, 235, 0.3) !important;
    border-color: #60A5FA !important;
    color: #FFFFFF !important;
}

.btn-template-4h {
    padding: 6px 12px;
    font-size: 11.5px;
    font-weight: 700;
    color: #166534;
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.btn-template-4h:hover {
    background: #DCFCE7;
    border-color: #22C55E;
    color: #15803D;
}

:is(html, body).dark-body-theme .btn-template-4h {
    background: rgba(22, 163, 74, 0.18) !important;
    border-color: rgba(74, 222, 128, 0.42) !important;
    color: #4ADE80 !important;
}

:is(html, body).dark-body-theme .btn-template-4h:hover {
    background: rgba(22, 163, 74, 0.3) !important;
    border-color: #4ADE80 !important;
    color: #FFFFFF !important;
}

/* Format Select Dropdown */
.select-excel-format {
    padding: 6px 10px;
    font-size: 12px;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    font-weight: 600;
    background: #FFFFFF;
    color: #0F172A;
    cursor: pointer;
}

:is(html, body).dark-body-theme .select-excel-format {
    background: #172030 !important;
    border-color: #2A3B52 !important;
    color: #F8FAFC !important;
}

/* Dropzone Inner Texts */
.excel-dropzone-title {
    font-size: 15px;
    color: #0F172A;
    display: block;
    margin-bottom: 4px;
}

:is(html, body).dark-body-theme .excel-dropzone-title {
    color: #F8FAFC !important;
}

/* File Selected Status Bar */
.upload-file-status-bar {
    margin-top: 16px;
    padding: 12px 18px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

:is(html, body).dark-body-theme .upload-file-status-bar,
:is(html, body).dark-body-theme .inc-per-page {
    background: #172030 !important;
    border-color: #2A3B52 !important;
    color: #F1F5F9 !important;
}

.upload-file-name {
    font-size: 13.5px;
    color: #0F172A;
    display: block;
}

:is(html, body).dark-body-theme .upload-file-name {
    color: #F8FAFC !important;
}

.upload-file-meta {
    font-size: 11.5px;
    color: #64748B;
}

:is(html, body).dark-body-theme .upload-file-meta {
    color: #94A3B8 !important;
}

.btn-reset-upload {
    background: none;
    border: none;
    color: #EF4444;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
}

:is(html, body).dark-body-theme .btn-reset-upload {
    color: #F87171 !important;
}

/* Preview Card Header & Labels */
.excel-preview-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #E2E8F0;
}

:is(html, body).dark-body-theme .excel-preview-table-header,
:is(html, body).dark-body-theme .perf-card-header,
:is(html, body).dark-body-theme .perf-total-item {
    border-color: #2A3B52 !important;
}

.excel-preview-sub {
    font-size: 12px;
    color: #64748B;
    margin-top: 2px;
}

:is(html, body).dark-body-theme .excel-preview-sub {
    color: #94A3B8 !important;
}

.excel-upsert-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: #334155;
    cursor: pointer;
    font-weight: 600;
}

:is(html, body).dark-body-theme .excel-upsert-label {
    color: #CBD5E1 !important;
}

/* Upload Progress Wrap */
.excel-progress-wrap {
    padding: 12px 20px;
    background: #FEF2F2;
    border-bottom: 1px solid #FECACA;
}

:is(html, body).dark-body-theme .excel-progress-wrap {
    background: #1F151B !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
}

.excel-progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 700;
    color: #991B1B;
    margin-bottom: 6px;
}

:is(html, body).dark-body-theme .excel-progress-labels {
    color: #FCA5A5 !important;
}

.excel-progress-track {
    width: 100%;
    height: 8px;
    background: #FCA5A5;
    border-radius: 4px;
    overflow: hidden;
}

:is(html, body).dark-body-theme .excel-progress-track {
    background: #3B1C22 !important;
}

/* Table Header & Cell: Jam Keberangkatan */
.th-excel-jam {
    background: #F0FDF4;
    color: #166534;
    font-weight: 800;
}

:is(html, body).dark-body-theme .th-excel-jam {
    background: rgba(22, 163, 74, 0.2) !important;
    color: #4ADE80 !important;
}

.excel-preview-cell-jam {
    background: #F0FDF4;
}

:is(html, body).dark-body-theme .excel-preview-cell-jam {
    background: rgba(22, 163, 74, 0.12) !important;
}

/* Preview Row Data Elements */
.excel-preview-num-cell {
    color: #64748B;
}

:is(html, body).dark-body-theme .excel-preview-num-cell {
    color: #94A3B8 !important;
}

.excel-preview-trip-title,
.excel-preview-plat-title,
.excel-preview-driver-title,
.perf-op-name {
    color: #0F172A;
}

:is(html, body).dark-body-theme .excel-preview-trip-title,
:is(html, body).dark-body-theme .excel-preview-plat-title,
:is(html, body).dark-body-theme .excel-preview-driver-title,
:is(html, body).dark-body-theme .perf-op-name {
    color: #F8FAFC !important;
}

/* Preview Vendor Badge */
.excel-preview-vendor-badge {
    background: #F0F9FF;
    color: #0284C7;
    border: 1px solid #BAE6FD;
    padding: 2px 7px;
    border-radius: 5px;
    font-weight: 800;
    font-size: 11px;
    display: inline-block;
}

:is(html, body).dark-body-theme .excel-preview-vendor-badge,
:is(html, body).dark-body-theme .excel-preview-phone-link {
    background: rgba(14, 165, 233, 0.18) !important;
    border-color: rgba(56, 189, 248, 0.42) !important;
    color: #38BDF8 !important;
}

/* Preview Driver Badges */
.excel-preview-phone-link {
    color: #0284C7;
    font-weight: 700;
    font-size: 11px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: #F0F9FF;
    border: 1px solid #BAE6FD;
    padding: 1px 6px;
    border-radius: 4px;
}

.excel-preview-no-phone {
    margin-top: 2px;
    color: #94A3B8;
    font-size: 10.5px;
    font-style: italic;
}

:is(html, body).dark-body-theme .excel-preview-no-phone {
    color: #64748B !important;
}

.excel-preview-driver2-text {
    margin-top: 3px;
    font-size: 10.5px;
    color: #64748B;
}

:is(html, body).dark-body-theme .excel-preview-driver2-text {
    color: #94A3B8 !important;
}

.excel-preview-cad-phone {
    color: #0284C7;
}

:is(html, body).dark-body-theme .excel-preview-cad-phone {
    color: #38BDF8 !important;
}

/* Preview Status Badge */
.excel-preview-badge-status {
    background: #ECFDF5;
    color: #059669;
    border: 1px solid #A7F3D0;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

:is(html, body).dark-body-theme .excel-preview-badge-status {
    background: rgba(16, 185, 129, 0.18) !important;
    border-color: rgba(52, 211, 153, 0.42) !important;
    color: #34D399 !important;
}

.excel-preview-badge-slot {
    background: #EFF6FF;
    color: #2563EB;
    border: 1px solid #BFDBFE;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 700;
}

:is(html, body).dark-body-theme .excel-preview-badge-slot {
    background: rgba(37, 99, 235, 0.18) !important;
    border-color: rgba(96, 165, 250, 0.42) !important;
    color: #93C5FD !important;
}

.excel-preview-badge-sheet {
    background: #F8FAFC;
    color: #475569;
    border: 1px solid #E2E8F0;
    border-radius: 4px;
    padding: 1px 5px;
    font-size: 9.5px;
    font-weight: 600;
}

:is(html, body).dark-body-theme .excel-preview-badge-sheet {
    background: #172030 !important;
    border-color: #2A3B52 !important;
    color: #CBD5E1 !important;
}

.excel-preview-sampai-val,
.preview-valid-summary {
    color: #16A34A;
    font-weight: 700;
}

:is(html, body).dark-body-theme .excel-preview-sampai-val,
:is(html, body).dark-body-theme .preview-valid-summary {
    color: #4ADE80 !important;
}

.excel-preview-more-row {
    text-align: center;
    color: #64748B;
    padding: 10px;
    font-style: italic;
    background: #F8FAFC;
}

:is(html, body).dark-body-theme .excel-preview-more-row {
    background: #111827 !important;
    color: #94A3B8 !important;
}

/* Footer Preview Bar */
.excel-preview-footer-bar {
    padding: 14px 20px;
    background: #F8FAFC;
    border-top: 1px solid #E2E8F0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #64748B;
}

:is(html, body).dark-body-theme .excel-preview-footer-bar {
    background: #111827 !important;
    border-color: #2A3B52 !important;
    color: #94A3B8 !important;
}

/* Operator Performance Cards */
.perf-card-header {
    border-bottom: 1px solid #E2E8F0;
}

.perf-info-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #F1F5F9;
}

:is(html, body).dark-body-theme .perf-info-item {
    border-color: #1E293B !important;
}

.perf-total-item {
    border-top: 2px solid #E2E8F0;
    padding-top: 14px;
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Modal Date Inputs */
.exp-modal-date-input {
    border: 1px solid #CBD5E1;
    padding: 10px 12px;
    border-radius: 6px;
    width: 100%;
    background: #FFFFFF;
    color: #0F172A;
}

:is(html, body).dark-body-theme .exp-modal-date-input {
    background: #172030 !important;
    border-color: #2A3B52 !important;
    color: #F8FAFC !important;
}

/* Live Fleet Driver Display Formatting */
.sh-driver-cell {
    display: flex;
    flex-direction: column;
    gap: 3px;
    line-height: 1.3;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.sh-driver-primary-row,
.sh-driver-d2-row {
    display: flex;
    flex-direction: column;
    gap: 1.5px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.sh-driver-d2-row {
    padding-top: 3px;
    border-top: 1px dashed rgba(148, 163, 184, 0.25);
}

:is(html, body).dark-body-theme .sh-driver-d2-row {
    border-top-color: rgba(51, 65, 85, 0.8);
}

.sh-driver-name {
    font-size: 11.5px;
    font-weight: 700;
    color: #0F172A;
    letter-spacing: 0.1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 100%;
}

:is(html, body).dark-body-theme .sh-driver-name {
    color: #F1F5F9 !important;
}

.sh-driver-phone {
    font-size: 10px;
    font-weight: 600;
    font-family: 'JetBrains Mono', 'Plus Jakarta Sans', monospace;
    letter-spacing: 0.1px;
    color: #0284C7;
    display: inline-flex;
    align-items: center;
    gap: 3.5px;
    background: #F0F9FF;
    border: 1px solid #BAE6FD;
    padding: 1.5px 6px;
    border-radius: 4px;
    width: fit-content;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-decoration: none;
    transition: all 0.15s ease;
}

.sh-driver-phone span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

:is(html, body).dark-body-theme .sh-driver-phone {
    color: #38BDF8 !important;
    background: rgba(14, 165, 233, 0.15) !important;
    border-color: rgba(56, 189, 248, 0.35) !important;
}

.sh-driver-phone:hover {
    border-color: #38BDF8;
    background: rgba(14, 165, 233, 0.28) !important;
    color: #FFFFFF !important;
}

.sh-driver-phone .phone-icon {
    font-size: 9.5px;
    line-height: 1;
    flex-shrink: 0;
}

.sh-driver-phone-cad {
    font-size: 9.5px;
    padding: 1px 5px;
    opacity: 0.95;
    color: #0284C7;
}

:is(html, body).dark-body-theme .sh-driver-phone-cad {
    color: #7DD3FC !important;
    background: rgba(56, 189, 248, 0.1) !important;
    border-color: rgba(56, 189, 248, 0.25) !important;
}

.sh-driver-cad {
    font-size: 10px;
    color: #64748B;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

:is(html, body).dark-body-theme .sh-driver-cad {
    color: #94A3B8 !important;
}

/* SLA Scrollable Wrapper */
.inc-table-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    contain: layout style;
}

/* ==========================================================================
   COLLAPSIBLE SECTION BARS ("Tutup ▲" / "Buka ... ▼")
   ========================================================================== */
.collapsible-section-wrapper {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 8px 14px;
    margin-bottom: 12px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.03);
    transition: padding 0.15s ease;
}

.collapsible-section-wrapper.is-collapsed {
    padding: 7px 14px;
}

.collapsible-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 24px;
}

.collapsible-section-title {
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.collapsible-section-body {
    margin-top: 10px;
}

.collapsible-section-wrapper.is-collapsed .collapsible-section-body,
.excel-sheet-nav-container.is-collapsed .excel-tabs-scroll-track,
.excel-sheet-nav-container.is-collapsed .excel-nav-arrow {
    display: none !important;
}

.excel-sheet-nav-container.is-collapsed {
    padding-bottom: 8px !important;
}

.excel-sheet-nav-container.is-collapsed .excel-sheet-header {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.btn-collapse-toggle {
    background: transparent;
    border: none;
    color: #64748B;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 6px;
    transition: color 0.15s ease, background 0.15s ease;
    white-space: nowrap;
    margin-left: auto;
}

.btn-collapse-toggle:hover {
    color: #0F172A;
    background: rgba(15, 23, 42, 0.05);
}

.btn-collapse-toggle .caret-icon {
    font-size: 10px;
    line-height: 1;
    opacity: 0.85;
}

/* Dark Mode Overrides for Collapsible Section Bars */
:is(html, body).dark-body-theme .collapsible-section-wrapper {
    background: #121824 !important;
    border-color: #1E2A3C !important;
}

:is(html, body).dark-body-theme .collapsible-section-title,
:is(html, body).dark-body-theme .btn-collapse-toggle {
    color: #CBD5E1 !important;
}

:is(html, body).dark-body-theme .btn-collapse-toggle:hover {
    color: #FFFFFF !important;
    background: rgba(255, 255, 255, 0.06) !important;
}

/* Shift Live Fleet Pagination in Dark Mode */
:is(html, body).dark-body-theme .inc-table-footer {
    border-top-color: #1E293B !important;
}

/* ==========================================================================
   STICKY / FREEZE TABLE HEADER & THEAD ON PAGE SCROLL
   ========================================================================== */
.inc-table-header.is-frozen-header,
.sla-card-header-bar.is-frozen-header {
    position: relative;
    z-index: 40;
    background-color: #FFFFFF;
    box-shadow: 0 -16px 0 0 #FFFFFF, 0 12px 0 0 #FFFFFF;
}

:is(html, body).dark-body-theme .inc-table-header.is-frozen-header,
:is(html, body).dark-body-theme .sla-card-header-bar.is-frozen-header {
    background-color: #121824 !important;
    box-shadow: 0 -16px 0 0 #121824, 0 12px 0 0 #121824 !important;
}

.sla-enterprise-table thead.is-frozen-thead {
    position: relative;
    z-index: 35;
    box-shadow: 0 6px 14px -4px rgba(15, 23, 42, 0.22);
}

:is(html, body).dark-body-theme .sla-enterprise-table thead.is-frozen-thead {
    box-shadow: 0 8px 18px -4px rgba(0, 0, 0, 0.65);
}

/* Ensure opaque backgrounds on all frozen thead cells so scrolled rows never bleed through */
:is(html, body).dark-body-theme .sla-enterprise-table thead.is-frozen-thead th {
    background-color: #172030 !important;
}

:is(html, body).dark-body-theme .monitoring-table thead.is-frozen-thead th.mon-sticky-col {
    background-color: #0F172A !important;
}

:is(html, body).dark-body-theme .monitoring-table thead th.active-slot-th,
:is(html, body).dark-body-theme .monitoring-table thead.is-frozen-thead th.active-slot-th {
    background-color: #1E325C !important;
    color: #93C5FD !important;
}

/* ==========================================================================
   TROUBLE & LAKA SEARCHABLE COMBOBOX (KODE TUGAS / PLAT NOMOR DROPDOWN)
   ========================================================================== */
.tr-combobox-wrap {
    position: relative;
    width: 100%;
}

.tr-combobox-count-badge {
    font-size: 11px;
    font-weight: 700;
    color: #0284C7;
    background: rgba(2, 132, 199, 0.12);
    border: 1px solid rgba(2, 132, 199, 0.28);
    padding: 2px 8px;
    border-radius: 999px;
}

:is(html, body).dark-body-theme .tr-combobox-count-badge {
    color: #38BDF8;
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.3);
}

.tr-combobox-input-box {
    display: flex;
    align-items: center;
    background: #FFFFFF;
    border: 1.5px solid #E30613;
    border-radius: 10px;
    padding: 2px 6px 2px 12px;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.tr-combobox-input-box:focus-within {
    border-color: #E30613;
    box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.18);
}

:is(html, body).dark-body-theme .tr-combobox-input-box {
    background: #0F172A;
    border-color: #E30613;
}

.tr-combobox-search-icon {
    width: 16px;
    height: 16px;
    color: #64748B;
    flex-shrink: 0;
    margin-right: 8px;
}

.tr-combobox-input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    font-size: 13px;
    font-weight: 600;
    color: #0F172A;
    padding: 8px 4px;
    width: 100%;
}

:is(html, body).dark-body-theme .tr-combobox-input {
    color: #F8FAFC;
}

.tr-combobox-input::placeholder {
    color: #94A3B8;
    font-weight: 500;
}

.tr-combobox-clear,
.tr-combobox-toggle {
    background: transparent;
    border: none;
    color: #94A3B8;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    transition: background-color 0.15s ease, color 0.15s ease;
    flex-shrink: 0;
}

.tr-combobox-clear {
    font-size: 18px;
    line-height: 1;
}

.tr-combobox-toggle svg {
    width: 16px;
    height: 16px;
}

.tr-combobox-clear:hover,
.tr-combobox-toggle:hover {
    background: rgba(148, 163, 184, 0.15);
    color: #E30613;
}

.tr-combobox-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-height: 280px;
    overflow-y: auto;
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: 10px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.25);
    z-index: 9999;
}

:is(html, body).dark-body-theme .tr-combobox-dropdown {
    background: #141C2B;
    border-color: #2A3B52;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
}

.tr-combobox-meta-bar {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 12px;
    font-size: 11px;
    color: #64748B;
    background: #F8FAFC;
    border-bottom: 1px solid #E2E8F0;
}

:is(html, body).dark-body-theme .tr-combobox-meta-bar {
    background: #0F172A;
    color: #94A3B8;
    border-bottom-color: #1E293B;
}

.tr-combobox-option {
    padding: 9px 12px;
    border-bottom: 1px solid #F1F5F9;
    cursor: pointer;
    transition: background-color 0.12s ease;
}

:is(html, body).dark-body-theme .tr-combobox-option {
    border-bottom-color: #1E293B;
}

.tr-combobox-option:hover,
.tr-combobox-option.is-highlighted {
    background: rgba(227, 6, 19, 0.08);
}

:is(html, body).dark-body-theme .tr-combobox-option:hover,
:is(html, body).dark-body-theme .tr-combobox-option.is-highlighted {
    background: rgba(227, 6, 19, 0.18);
}

.tr-opt-top {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 3px;
}

.tr-opt-kode {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12.5px;
    font-weight: 800;
    color: #E30613;
}

:is(html, body).dark-body-theme .tr-opt-kode {
    color: #F87171;
}

.tr-opt-plat {
    font-size: 12px;
    font-weight: 800;
    color: #0F172A;
    background: rgba(148, 163, 184, 0.15);
    padding: 1px 7px;
    border-radius: 5px;
}

:is(html, body).dark-body-theme .tr-opt-plat {
    color: #F8FAFC;
    background: rgba(255, 255, 255, 0.09);
}

.tr-opt-vendor {
    font-size: 11px;
    font-weight: 800;
    color: #0284C7;
}

:is(html, body).dark-body-theme .tr-opt-vendor {
    color: #38BDF8;
}

.tr-opt-status {
    margin-left: auto;
    font-size: 10px;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 4px;
}

.tr-opt-status.onroad {
    color: #F59E0B;
    background: rgba(245, 158, 11, 0.15);
}

.tr-opt-status.done {
    color: #10B981;
    background: rgba(16, 185, 129, 0.15);
}

.tr-opt-sub {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 11.5px;
    color: #64748B;
}

:is(html, body).dark-body-theme .tr-opt-sub {
    color: #94A3B8;
}

.tr-combobox-empty {
    padding: 16px 14px;
    text-align: center;
    font-size: 12px;
    color: #94A3B8;
}

/* ==========================================================================
   9-ROLE BADGE COLOR SYSTEM (LIGHT & DARK THEME)
   ========================================================================== */
.role-badge.role-developer {
    background: rgba(168, 85, 247, 0.14);
    color: #7E22CE;
    border: 1px solid rgba(168, 85, 247, 0.35);
}

.role-badge.role-owner {
    background: rgba(234, 179, 8, 0.16);
    color: #A16207;
    border: 1px solid rgba(234, 179, 8, 0.4);
}

.role-badge.role-admin {
    background: rgba(227, 6, 19, 0.12);
    color: #DC2626;
    border: 1px solid rgba(227, 6, 19, 0.3);
}

.role-badge.role-manager {
    background: rgba(37, 99, 235, 0.13);
    color: #1D4ED8;
    border: 1px solid rgba(37, 99, 235, 0.32);
}

.role-badge.role-asisten-manager {
    background: rgba(14, 165, 233, 0.13);
    color: #0369A1;
    border: 1px solid rgba(14, 165, 233, 0.32);
}

.role-badge.role-supervisor {
    background: rgba(249, 115, 22, 0.14);
    color: #C2410C;
    border: 1px solid rgba(249, 115, 22, 0.35);
}

.role-badge.role-finance {
    background: rgba(16, 185, 129, 0.14);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.role-badge.role-vendor {
    background: rgba(20, 184, 166, 0.14);
    color: #0F766E;
    border: 1px solid rgba(20, 184, 166, 0.35);
}

.role-badge.role-operator {
    background: rgba(100, 116, 139, 0.14);
    color: #334155;
    border: 1px solid rgba(100, 116, 139, 0.32);
}

:is(html, body).dark-body-theme .role-badge.role-developer {
    background: rgba(168, 85, 247, 0.2);
    color: #D8B4FE;
    border-color: rgba(168, 85, 247, 0.45);
}

:is(html, body).dark-body-theme .role-badge.role-owner {
    background: rgba(234, 179, 8, 0.2);
    color: #FDE047;
    border-color: rgba(234, 179, 8, 0.45);
}

:is(html, body).dark-body-theme .role-badge.role-admin {
    background: rgba(239, 68, 68, 0.2);
    color: #FCA5A5;
    border-color: rgba(239, 68, 68, 0.45);
}

:is(html, body).dark-body-theme .role-badge.role-manager {
    background: rgba(59, 130, 246, 0.2);
    color: #93C5FD;
    border-color: rgba(59, 130, 246, 0.45);
}

:is(html, body).dark-body-theme .role-badge.role-asisten-manager {
    background: rgba(56, 189, 248, 0.2);
    color: #7DD3FC;
    border-color: rgba(56, 189, 248, 0.45);
}

:is(html, body).dark-body-theme .role-badge.role-supervisor {
    background: rgba(249, 115, 22, 0.2);
    color: #FDBA74;
    border-color: rgba(249, 115, 22, 0.45);
}

:is(html, body).dark-body-theme .role-badge.role-finance {
    background: rgba(16, 185, 129, 0.2);
    color: #6EE7B7;
    border-color: rgba(16, 185, 129, 0.45);
}

:is(html, body).dark-body-theme .role-badge.role-vendor {
    background: rgba(20, 184, 166, 0.2);
    color: #5EEAD4;
    border-color: rgba(20, 184, 166, 0.45);
}

:is(html, body).dark-body-theme .role-badge.role-operator {
    background: rgba(148, 163, 184, 0.18);
    color: #E2E8F0;
    border-color: rgba(148, 163, 184, 0.35);
}

/* ==========================================================================
   MODERN ENTERPRISE PROFILE PAGE V2 (LIGHT & DARK THEME)
   ========================================================================== */
.profile-hero-card.v2-hero {
    border-radius: 18px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
    background: #FFFFFF;
    overflow: hidden;
    position: relative;
}

.profile-cover-bg.v2-cover {
    height: 148px;
    background: linear-gradient(125deg, #990000 0%, #E30613 48%, #1E293B 100%);
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 18px 26px;
}

.v2-cover-chips {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    z-index: 2;
}

.v2-cover-chip {
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.03em;
}

.profile-hero-main.v2-hero-main {
    padding: 0 28px 24px 28px;
    margin-top: -54px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.v2-identity-cluster {
    display: flex;
    align-items: flex-end;
    gap: 22px;
    flex: 1;
    min-width: 280px;
}

.profile-avatar-wrapper.v2-avatar-wrap {
    width: 118px;
    height: 118px;
    position: relative;
    border-radius: 50%;
    flex-shrink: 0;
}

.v2-avatar-wrap .profile-hero-img {
    width: 118px;
    height: 118px;
    border-radius: 50%;
    border: 4px solid #FFFFFF;
    box-shadow: 0 10px 25px rgba(227, 6, 19, 0.22), 0 4px 10px rgba(0, 0, 0, 0.14);
    object-fit: cover;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.v2-avatar-hover-overlay {
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.62);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    opacity: 0;
    cursor: pointer;
    transition: opacity 0.2s ease;
    text-align: center;
}

.v2-avatar-wrap:hover .v2-avatar-hover-overlay {
    opacity: 1;
}

.v2-avatar-wrap .avatar-edit-badge {
    width: 34px;
    height: 34px;
    bottom: 2px;
    right: 2px;
    background: linear-gradient(135deg, #E30613, #B91C1C);
    color: #FFFFFF;
    border: 2.5px solid #FFFFFF;
    font-size: 15px;
    z-index: 3;
    box-shadow: 0 4px 12px rgba(227, 6, 19, 0.35);
}

.v2-meta-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.v2-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 8px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    font-size: 11.5px;
    color: #475569;
    font-weight: 600;
}

.v2-meta-pill strong {
    color: #0F172A;
    font-weight: 700;
}

.v2-copy-mini-btn {
    border: none;
    background: rgba(227, 6, 19, 0.1);
    color: #E30613;
    border-radius: 5px;
    padding: 2px 6px;
    font-size: 10.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s ease;
}

.v2-copy-mini-btn:hover {
    background: #E30613;
    color: #FFFFFF;
}

.v2-hero-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-prof-action {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 15px;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #E2E8F0;
    background: #F8FAFC;
    color: #1E293B;
}

.btn-prof-action:hover {
    background: #F1F5F9;
    border-color: #CBD5E1;
    transform: translateY(-1px);
}

.btn-prof-action.primary {
    background: linear-gradient(135deg, #E30613, #C80510);
    color: #FFFFFF;
    border-color: #E30613;
    box-shadow: 0 4px 12px rgba(227, 6, 19, 0.25);
}

.btn-prof-action.primary:hover {
    background: linear-gradient(135deg, #C80510, #990000);
    box-shadow: 0 6px 16px rgba(227, 6, 19, 0.35);
}

.btn-prof-action.danger-subtle {
    color: #DC2626;
    background: #FEF2F2;
    border-color: #FECACA;
}

.btn-prof-action.danger-subtle:hover {
    background: #FEE2E2;
}

.profile-stats-row.v2-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    padding: 18px 26px 22px 26px;
    background: #F8FAFC;
    border-top: 1px solid #E2E8F0;
}

.v2-stat-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.v2-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.v2-stat-card .p-stat-ic {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    font-size: 20px;
}

.v2-rbac-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 6px;
}

.v2-rbac-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    background: #F8FAFC;
    text-decoration: none;
    color: #1E293B;
    transition: all 0.2s ease;
    min-width: 0;
}

.v2-rbac-left {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    flex: 1;
}

.v2-rbac-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.v2-rbac-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.v2-rbac-title {
    font-size: 12.5px;
    font-weight: 700;
    color: #0F172A;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.v2-rbac-sub {
    font-size: 10.5px;
    color: #64748B;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.v2-rbac-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.v2-rbac-badge.ok {
    background: #DCFCE7;
    color: #15803D;
    border: 1px solid #86EFAC;
}

.v2-rbac-badge.locked {
    background: #F1F5F9;
    color: #64748B;
    border: 1px solid #CBD5E1;
}

.v2-rbac-item.allowed:hover {
    border-color: #E30613;
    background: #FFF5F5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(227, 6, 19, 0.08);
}

.v2-rbac-item.allowed:hover .v2-rbac-icon {
    border-color: #FCA5A5;
    background: #FEF2F2;
}

.v2-rbac-item.restricted {
    opacity: 0.6;
    cursor: not-allowed;
}

.v2-pass-meter-wrap {
    margin-top: 6px;
}

.v2-pass-meter-bar {
    height: 5px;
    border-radius: 99px;
    background: #E2E8F0;
    overflow: hidden;
}

.v2-pass-meter-fill {
    height: 100%;
    width: 0%;
    transition: width 0.25s ease, background-color 0.25s ease;
}

.v2-timeline-filters {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.v2-tl-filter-btn {
    border: 1px solid #E2E8F0;
    background: #F8FAFC;
    color: #64748B;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.18s ease;
}

.v2-tl-filter-btn.active,
.v2-tl-filter-btn:hover {
    background: #E30613;
    color: #FFFFFF;
    border-color: #E30613;
}

:is(html, body).dark-body-theme .v2-rbac-icon {
    background: #0F172A;
    border-color: #233047;
}

:is(html, body).dark-body-theme .v2-rbac-title {
    color: #F8FAFC;
}

:is(html, body).dark-body-theme .v2-rbac-sub {
    color: #94A3B8;
}

:is(html, body).dark-body-theme .v2-rbac-badge.ok {
    background: rgba(22, 163, 74, 0.2);
    color: #4ADE80;
    border-color: rgba(74, 222, 128, 0.35);
}

:is(html, body).dark-body-theme .v2-rbac-badge.locked {
    background: rgba(100, 116, 139, 0.2);
    color: #94A3B8;
    border-color: rgba(148, 163, 184, 0.3);
}

:is(html, body).dark-body-theme .profile-hero-card.v2-hero {
    background: #111927;
    border-color: #1E293B;
}

:is(html, body).dark-body-theme .v2-avatar-wrap .profile-hero-img {
    border-color: #111927;
}

:is(html, body).dark-body-theme .v2-meta-pill {
    background: #1A2333;
    border-color: #2A364F;
    color: #94A3B8;
}

:is(html, body).dark-body-theme .v2-meta-pill strong {
    color: #F8FAFC;
}

:is(html, body).dark-body-theme .btn-prof-action {
    background: #1A2333;
    border-color: #2A364F;
    color: #E2E8F0;
}

:is(html, body).dark-body-theme .btn-prof-action:hover {
    background: #243046;
}

:is(html, body).dark-body-theme .btn-prof-action.danger-subtle {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.35);
    color: #FCA5A5;
}

:is(html, body).dark-body-theme .profile-stats-row.v2-stats-grid {
    background: #0D1420;
    border-top-color: #1E293B;
}

:is(html, body).dark-body-theme .v2-stat-card {
    background: #151F30;
    border-color: #233047;
}

:is(html, body).dark-body-theme .v2-rbac-item {
    background: #151F30;
    border-color: #233047;
    color: #E2E8F0;
}

:is(html, body).dark-body-theme .v2-rbac-item.allowed:hover {
    background: rgba(227, 6, 19, 0.16);
    border-color: #E30613;
}

:is(html, body).dark-body-theme .v2-tl-filter-btn {
    background: #151F30;
    border-color: #233047;
    color: #94A3B8;
}

:is(html, body).dark-body-theme .v2-tl-filter-btn.active {
    background: #E30613;
    color: #FFFFFF;
    border-color: #E30613;
}

/* ==========================================================================
   UNIFIED COMPONENT & RESPONSIVE SYSTEM (CLEAN CODE ARCHITECTURE)
   Menyatukan komponen UI yang berfungsi sama di seluruh 10 menu (Dashboard,
   Monitoring 4H, SLA Vendor, Trouble, Shift, Master Data, Report, Users,
   Settings, Profile) serta seluruh breakpoint Desktop, Tablet & Mobile.
   ========================================================================== */

/* 0. Unified Design System Typography Tokens (Skala Font Konsisten Seluruh Menu) */
:root {
    --fs-page-title: 22px;
    /* Judul Utama Halaman (.inc-main-title, .header-main-title) */
    --fs-section-title: 15px;
    /* Judul Card / Tabel (.inc-table-title, .sla-card-title) */
    --fs-kpi-number: 24px;
    /* Angka Utama KPI (.inc-kpi-number, .sla-kpi-number) */
    --fs-btn-tab: 13px;
    /* Tombol Aksi & Tab Navigasi */
    --fs-nav-sidebar: 12.5px;
    /* Menu Navigasi Sidebar (.nav-link) */
    --fs-body-table: 12.5px;
    /* Isi Tabel, Input Filter & Breadcrumb */
    --fs-table-th: 11px;
    /* Header Kolom Tabel & Label KPI Uppercase */
    --fs-badge-sub: 11px;
    /* Badge Status, Sub-label & Role */
}

/* Standarisasi Tipografi Sidebar & Profil User (Sidebar vs Topbar) */
.sidebar-nav .nav-link {
    font-size: var(--fs-nav-sidebar);
    font-weight: 600;
    line-height: 1.35;
}

.sidebar-nav .nav-icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.profile-name,
.inc-user-name {
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.25;
}

.profile-role,
.inc-user-role {
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.2;
}

/* Standarisasi Chip Tanggal & Jam Real-Time Topbar di Seluruh 10 Menu */
.inc-date-chip,
.rep-clock-badge {
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    padding: 7px 14px;
    border-radius: 10px;
    font-size: var(--fs-body-table) !important;
    font-weight: 700 !important;
    color: #334155;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    white-space: nowrap;
}

.inc-date-chip .jnt-chip-date {
    color: inherit;
    font-weight: 700;
}

.inc-date-chip .jnt-chip-clock {
    color: var(--primary-red) !important;
    font-weight: 800 !important;
    font-variant-numeric: tabular-nums;
}

/* Standarisasi Tipografi Header Halaman & Breadcrumb */
.inc-main-title,
.header-main-title {
    font-size: var(--fs-page-title) !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    letter-spacing: -0.3px !important;
    margin: 0 !important;
}

.inc-breadcrumb,
.header-subtitle {
    font-size: var(--fs-body-table) !important;
    font-weight: 500 !important;
    color: #64748B;
    line-height: 1.4 !important;
    margin-left: 0 !important;
}

/* Standarisasi Tipografi Judul Card/Tabel & Isi Tabel */
.inc-table-title,
.sla-card-title,
.st-title,
.excel-card-title,
.side-card-title,
.detail-title,
.detail-code,
.collapsible-section-title,
.modal-header h3 {
    font-size: var(--fs-section-title) !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
}

.inc-data-table,
.sla-enterprise-table,
.shift-history-table,
.audit-table {
    font-size: var(--fs-body-table);
}

.inc-data-table th,
.sla-enterprise-table th,
.shift-history-table th,
.audit-table th {
    font-size: var(--fs-table-th);
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

/* Standarisasi Tipografi KPI Cards (Label, Angka, Unit, Subtext) */
.inc-kpi-label,
.sla-kpi-title {
    font-size: var(--fs-table-th);
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.inc-kpi-number,
.sla-kpi-number {
    font-size: var(--fs-kpi-number);
    font-weight: 800;
    line-height: 1.15;
}

.inc-kpi-unit {
    font-size: 12px;
    font-weight: 600;
}

.inc-kpi-sub,
.sla-kpi-badge {
    font-size: var(--fs-badge-sub);
    font-weight: 600;
}

/* Standarisasi Tipografi Tab Navigasi (Settings, Master Data, Report, SLA, Shift) */
.settings-tab-item,
.btn-tab-report,
.sla-tab-btn {
    font-size: var(--fs-btn-tab);
    font-weight: 700;
}

/* 1. Standarisasi Tombol Aksi Utama & Sekunder di Seluruh Halaman */
.btn-inc-add,
.btn-jnt-red,
.btn-sla-primary-action,
.btn-sla-secondary-action,
.btn-inc-import,
.btn-inc-reset,
.btn-st-red,
.btn-st-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: var(--fs-btn-tab);
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    vertical-align: middle;
    box-sizing: border-box;
}

.btn-inc-add svg,
.btn-jnt-red svg,
.btn-sla-primary-action svg,
.btn-sla-secondary-action svg,
.btn-inc-import svg,
.btn-inc-reset svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    display: block;
}

/* 1.5. Interactive Photo Upload Gallery Strip & Add (+) Tile (Transparent Background) */
.photo-upload-counter-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.14);
    color: #38BDF8;
    border: 1px solid rgba(56, 189, 248, 0.35);
}

.photo-upload-counter-badge.success {
    background: rgba(22, 163, 74, 0.14);
    color: #4ADE80;
    border-color: rgba(74, 222, 128, 0.35);
}

.photo-upload-gallery-strip,
.photo-upload-gallery-strip.success-strip,
:is(html, body).dark-body-theme .photo-upload-gallery-strip,
:is(html, body).dark-body-theme .photo-upload-gallery-strip.success-strip {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 6px 0 2px 0;
    border-radius: 0;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.photo-upload-thumb-card {
    position: relative;
    width: 88px;
    height: 88px;
    border-radius: 12px;
    overflow: visible;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.photo-upload-thumb-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.35);
}

.photo-upload-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid #38BDF8;
    display: block;
}

.photo-upload-gallery-strip.success-strip .photo-upload-thumb-img {
    border-color: #22C55E;
}

.photo-upload-thumb-overlay {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.18s ease;
    pointer-events: none;
}

.photo-upload-thumb-card:hover .photo-upload-thumb-overlay {
    opacity: 1;
}

.photo-upload-zoom-hint {
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    background: rgba(15, 23, 42, 0.75);
    padding: 3px 8px;
    border-radius: 999px;
}

.photo-upload-index-tag {
    position: absolute;
    bottom: 5px;
    left: 5px;
    background: rgba(15, 23, 42, 0.82);
    color: #F8FAFC;
    font-size: 10px;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 6px;
    pointer-events: none;
    backdrop-filter: blur(4px);
}

.photo-upload-remove-btn {
    position: absolute;
    top: -7px;
    right: -7px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: #FFFFFF;
    border: 2px solid #0F172A;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(220, 38, 38, 0.45);
    transition: transform 0.15s ease, background 0.15s ease;
    z-index: 3;
}

.photo-upload-remove-btn:hover {
    transform: scale(1.12);
    background: #B91C1C;
}

.photo-upload-add-tile {
    width: 88px;
    height: 88px;
    border-radius: 12px;
    border: 2px dashed rgba(56, 189, 248, 0.5);
    background: rgba(56, 189, 248, 0.08);
    color: #38BDF8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
    padding: 6px;
}

.photo-upload-add-tile:hover {
    border-color: #38BDF8;
    background: rgba(56, 189, 248, 0.16);
    transform: translateY(-2px);
}

.photo-upload-gallery-strip.success-strip .photo-upload-add-tile {
    border-color: rgba(34, 197, 94, 0.5);
    background: rgba(34, 197, 94, 0.08);
    color: #4ADE80;
}

.photo-upload-gallery-strip.success-strip .photo-upload-add-tile:hover {
    border-color: #22C55E;
    background: rgba(34, 197, 94, 0.16);
}

.photo-upload-add-plus {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.photo-upload-gallery-strip.success-strip .photo-upload-add-plus {
    background: rgba(34, 197, 94, 0.2);
}

.photo-upload-add-tile:hover .photo-upload-add-plus {
    transform: scale(1.1);
}

.photo-upload-add-plus svg {
    width: 17px;
    height: 17px;
}

.photo-upload-add-label {
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
}

/* 2. Standarisasi Collapsible Filter Card & KPI Cards (Monitoring, SLA, Shift, Report) */
.inc-filter-card.collapsible-section-wrapper {
    background-color: #FFFFFF;
    border-radius: 12px;
    padding: 8px 14px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    margin-bottom: 12px;
}

.inc-filter-card.collapsible-section-wrapper .filter-inputs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    align-items: flex-end;
}

.inc-filter-card.collapsible-section-wrapper .filter-group label {
    font-size: 10.5px;
    font-weight: 700;
    color: #64748B;
    text-transform: uppercase;
    margin-bottom: 4px;
    display: block;
}

.inc-filter-card.collapsible-section-wrapper .filter-group input,
.inc-filter-card.collapsible-section-wrapper .filter-group select {
    font-size: 12px;
    font-weight: 600;
    padding: 7px 10px;
    border-radius: 7px;
    border: 1px solid #CBD5E1;
    width: 100%;
    box-sizing: border-box;
}

.inc-filter-card.collapsible-section-wrapper .btn-inc-reset {
    padding: 7px 14px;
    border-radius: 7px;
    font-weight: 700;
    font-size: 12px;
    border: 1px solid #CBD5E1;
    background: #F8FAFC;
    cursor: pointer;
    width: 100%;
}

#mon-section-kpi-cards {
    margin-bottom: 10px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.shift-kpi-grid-6 .inc-kpi-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    padding: 14px 16px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.shift-kpi-grid-6 .inc-kpi-icon-circle {
    width: 34px;
    height: 34px;
    border-radius: 8px;
}

.shift-kpi-grid-6 .inc-kpi-number {
    font-size: 22px;
    font-weight: 800;
}

.shift-kpi-grid-6 .inc-kpi-unit {
    font-size: 11.5px;
    color: #64748B;
}

.inc-kpi-icon-circle.teal-light {
    background-color: #CCFBF1;
    color: #0D9488;
}

/* 3. Large Desktop (≥ 1400px) & Executive 4-Grid (≤ 1440px) */
@media (min-width: 1400px) {
    .sidebar-panel {
        width: 210px;
        min-width: 210px;
    }

    .jnt-logo-text {
        font-size: 18px;
    }

    .express-tag {
        font-size: 12px;
    }

    .inc-kpi-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 1440px) {
    .exec-middle-4grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* 4. Laptop Breakpoint (≤ 1280px) */
@media (max-width: 1280px) {
    .dashboard-layout {
        overflow: visible;
    }

    .inc-kpi-grid,
    .filter-inputs-grid,
    .shift-kpi-grid-6 {
        grid-template-columns: repeat(3, 1fr);
    }

    .settings-grid-container,
    .operator-cards-grid {
        grid-template-columns: 1fr;
    }

    .inc-split-container {
        flex-direction: column;
    }

    .inc-detail-card {
        width: 100%;
        min-width: 100%;
    }
}

/* 5. Compact Laptop & Tablet Breakpoint (≤ 1200px & ≤ 1100px) */
@media (max-width: 1200px) {

    #mon-section-kpi-cards,
    .sla-kpi-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .filter-inputs-grid[style*="grid-template-columns"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .filter-inputs-grid .filter-group[style*="grid-column: span 2"] {
        grid-column: span 2 !important;
    }
}

@media (max-width: 1100px) {

    .exec-kpi-5grid,
    .exec-bottom-5grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .exec-lower-2grid {
        grid-template-columns: 1fr;
    }
}

/* 6. Tablet Landscape Breakpoint (≤ 1024px) */
@media (max-width: 1024px) {
    .sidebar-panel {
        width: 190px;
        min-width: 190px;
    }

    .sidebar-nav .nav-link {
        padding: 7px 10px;
        font-size: 11.5px;
        gap: 8px;
    }

    .sidebar-nav .nav-icon {
        width: 14px;
        height: 14px;
    }

    .jnt-logo-text {
        font-size: 17px;
    }

    .express-tag {
        font-size: 11px;
    }

    .profile-name {
        font-size: 11.5px;
    }

    .profile-role {
        font-size: 9.5px;
    }

    .inc-top-right {
        gap: 10px;
    }

    .inc-date-chip {
        display: none;
    }

    .inc-kpi-grid,
    .filter-inputs-grid,
    .profile-stats-row.v2-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-grid-2col {
        grid-template-columns: 1fr;
    }
}

/* 7. Desktop vs Mobile Drawer Toggle Boundary (≥ 993px & ≤ 992px) */
@media (min-width: 993px) {
    .sidebar-backdrop {
        display: none !important;
    }

    .sidebar-panel {
        transform: none !important;
    }
}

@media (max-width: 992px) {

    /* Document & Layout Scroll Unlock */
    html,
    body {
        height: auto !important;
        min-height: 100% !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    body.login-page {
        overflow: auto;
        height: auto;
    }

    .app-container,
    body.login-page .app-container,
    .login-section {
        height: auto !important;
        min-height: 100vh !important;
        overflow: visible !important;
    }

    .form-panel {
        max-height: none;
        overflow-y: visible;
    }

    .dashboard-layout {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        min-height: 100vh !important;
        overflow: visible !important;
    }

    .main-incoming-body {
        width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 100vh !important;
        overflow-y: visible !important;
        overflow-x: visible !important;
        padding: 12px 14px !important;
    }

    /* Sidebar Drawer Overlay */
    .sidebar-panel {
        position: fixed !important;
        top: 0;
        left: 0;
        height: 100vh !important;
        width: 260px !important;
        min-width: 260px !important;
        z-index: 999 !important;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: none;
    }

    .sidebar-panel.mobile-open {
        transform: translateX(0) !important;
        box-shadow: 8px 0 32px rgba(0, 0, 0, 0.45) !important;
    }

    .truck-image-wrapper {
        display: none;
    }

    .hamburger-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        padding: 6px;
        border-radius: 8px;
        background-color: rgba(100, 116, 139, 0.08);
        cursor: pointer;
        transition: background-color 0.15s ease;
        flex-shrink: 0;
    }

    .hamburger-btn:hover,
    .hamburger-btn:focus {
        background-color: rgba(227, 6, 19, 0.1);
        color: var(--primary-red);
    }

    .hamburger-btn svg {
        width: 20px;
        height: 20px;
    }

    /* Top Header Navigation */
    .inc-top-nav,
    .sla-header-modern {
        flex-wrap: wrap !important;
        gap: 10px !important;
        padding: 10px 12px !important;
    }

    .inc-title-group {
        flex: 1 1 auto;
        min-width: 0;
    }

    .inc-main-title,
    .header-main-title {
        font-size: 17px !important;
        line-height: 1.25 !important;
    }

    .inc-breadcrumb,
    .header-subtitle {
        font-size: 11.5px !important;
    }

    .inc-date-chip,
    .inc-user-meta {
        display: none;
    }

    .inc-top-right {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 8px !important;
    }

    .inc-action-row {
        flex-wrap: wrap;
        gap: 8px;
    }

    /* Grids & Split Containers */
    .inc-kpi-grid,
    .filter-inputs-grid,
    .shift-kpi-grid-6 {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .operator-cards-grid,
    .form-grid-2col {
        grid-template-columns: 1fr;
    }

    .inc-split-container {
        flex-direction: column;
    }

    .inc-detail-card {
        width: 100%;
        min-width: 100%;
    }

    /* Profile Layout */
    .profile-hero-main {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-top: -30px;
    }

    .profile-name-row,
    .profile-sub-meta {
        justify-content: center;
    }

    .profile-hero-actions {
        text-align: center;
    }

    .p-stat-val {
        font-size: 15px;
        font-weight: 800;
        color: #0F172A;
        display: block;
        white-space: nowrap;
    }

    .p-stat-lbl {
        font-size: 11px;
        color: #64748B;
        font-weight: 600;
        white-space: nowrap;
    }

    /* Tables & Monitoring 4H Sticky Columns Unlock */
    .inc-table-scroll,
    [class*="table-scroll"],
    [class*="table-wrapper"] {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .inc-data-table {
        min-width: 700px;
    }

    .monitoring-table th.mon-sticky-col,
    .monitoring-table td.mon-sticky-col {
        position: static !important;
        left: auto !important;
        box-shadow: none !important;
    }

    /* Card & Table Headers / Footers */
    .sla-card-header-bar,
    .inc-table-header,
    .excel-preview-table-header,
    .excel-preview-footer-bar,
    .upload-file-status-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    .sla-card-actions {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        width: 100%;
    }

    .sla-card-actions>button,
    .sla-card-actions>a {
        flex: 1 1 auto;
        justify-content: center;
    }

    .inc-table-footer {
        flex-direction: column !important;
        align-items: center !important;
        gap: 10px !important;
        text-align: center;
    }

    .inc-table-footer>div {
        margin-left: 0 !important;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Horizontal Touch Scroll Navigation Tabs */
    .settings-nav-tabs,
    .report-tab-nav {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 6px !important;
        padding-bottom: 4px;
    }

    .settings-nav-tabs::-webkit-scrollbar,
    .report-tab-nav::-webkit-scrollbar {
        display: none;
    }

    .settings-tab-item,
    .btn-tab-report {
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }
}

/* 8. Mobile Smartphone Breakpoint (≤ 768px) */
@media (max-width: 768px) {

    /* Login Page */
    .fullscreen-login-bg {
        object-position: center top;
    }

    .form-panel {
        padding: 16px;
        max-height: none;
        overflow-y: visible;
        min-height: auto;
    }

    .login-card {
        padding: 24px 20px 20px 20px;
        max-width: 100%;
        border-radius: 16px;
        margin-bottom: 16px;
    }

    .login-title {
        font-size: 24px;
    }

    .red-diagonal-accent {
        width: 280px;
        height: 280px;
    }

    /* Topbar & Body */
    .main-incoming-body {
        padding: 12px 12px !important;
    }

    .inc-main-title {
        font-size: 16px !important;
    }

    .inc-user-meta {
        display: none;
    }

    .inc-notif-bell {
        width: 34px;
        height: 34px;
    }

    .inc-avatar-img {
        width: 32px;
        height: 32px;
    }

    .topbar-user-dropdown {
        min-width: 190px;
        right: -4px;
    }

    /* Buttons & Segmented Tabs */
    .btn-jnt-red,
    .btn-inc-add,
    .btn-inc-import {
        font-size: 12px;
        padding: 7px 12px;
    }

    .sla-segmented-tabs {
        flex-direction: row !important;
        flex-wrap: wrap !important;
    }

    .sla-tab-btn {
        font-size: 12px !important;
        padding: 9px 10px !important;
        flex: 1 1 calc(50% - 4px);
        flex-direction: column;
        gap: 2px !important;
    }

    .sla-tab-btn .tab-sub {
        margin-left: 0 !important;
        font-size: 10px !important;
    }

    /* Grids & Filters */
    .inc-kpi-grid,
    .shift-kpi-grid-6,
    #mon-section-kpi-cards,
    .sla-kpi-grid,
    .profile-stats-row {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    .filter-inputs-grid,
    .filter-inputs-grid[style*="grid-template-columns"],
    .form-grid-2col,
    #mon-section-bottom-summary,
    .exec-kpi-5grid,
    .exec-bottom-5grid,
    .exec-middle-4grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .filter-inputs-grid .filter-group[style*="grid-column"],
    .filter-group[style*="grid-column: span 2"] {
        grid-column: span 1 !important;
    }

    .exec-header-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    /* Tables */
    .inc-data-table {
        min-width: 600px;
        font-size: 12px;
    }

    .inc-data-table th,
    .inc-data-table td {
        padding: 8px 10px !important;
    }

    /* Shift Control Hero & Operator Cards */
    .shift-control-hero {
        padding: 16px 14px !important;
    }

    .shift-control-hero h2#sh-active-title {
        font-size: 18px !important;
    }

    .shift-timeline-header,
    .shift-timeline-labels {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 4px !important;
    }

    .operator-card-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 14px !important;
    }

    /* Profile Page V2 Hero */
    .profile-cover-bg.v2-cover {
        height: 120px !important;
        padding: 12px 14px !important;
    }

    .profile-hero-main.v2-hero-main {
        padding: 0 16px 18px 16px !important;
        margin-top: -42px !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    .v2-identity-cluster {
        flex-direction: column !important;
        align-items: center !important;
        min-width: 0 !important;
        width: 100%;
    }

    .v2-meta-pills {
        justify-content: center !important;
    }

    .v2-hero-actions {
        width: 100%;
        justify-content: center !important;
    }

    .v2-hero-actions .btn-prof-action {
        flex: 1 1 auto;
        justify-content: center;
    }

    /* Modals & Toasts */
    .modal-overlay {
        padding: 10px !important;
        align-items: center !important;
    }

    .modal-card {
        padding: 16px !important;
        max-height: 92vh !important;
        border-radius: 14px !important;
    }

    .form-row-2,
    .st-double-row,
    .modal-card [style*="grid-template-columns: 1fr 1fr"],
    .modal-card [style*="grid-template-columns: repeat(2"] {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .modal-footer,
    .modal-footer-btns {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    .modal-footer>button,
    .modal-footer-btns>button {
        flex: 1 1 auto;
        justify-content: center;
    }

    .jnt-toast-container {
        top: 12px;
        left: 12px;
        right: 12px;
        bottom: auto;
        width: auto;
        max-width: none;
        align-items: stretch;
    }

    .jnt-toast-item {
        min-width: 0;
        max-width: none;
        font-size: 12px;
        padding: 12px 13px 14px 13px;
    }
}

/* 9. Compact Mobile Breakpoint (≤ 640px) */
@media (max-width: 640px) {
    .login-card {
        padding: 28px 18px 20px;
    }

    .login-subtitle {
        font-size: 13px;
    }

    .form-input {
        font-size: 14px;
        padding: 12px 42px;
    }

    .inc-top-right {
        gap: 6px !important;
    }

    .inc-main-title {
        font-size: 15px !important;
    }

    .inc-breadcrumb {
        display: none;
    }

    .inc-kpi-card {
        padding: 12px;
    }

    .inc-kpi-number {
        font-size: 20px;
    }

    .inc-kpi-label {
        font-size: 11px;
    }

    .inc-data-table {
        min-width: 560px;
        font-size: 11.5px;
    }

    .profile-hero-img {
        width: 80px;
        height: 80px;
    }

    .profile-full-name {
        font-size: 18px;
    }

    .profile-stats-row.v2-stats-grid,
    .v2-rbac-grid {
        grid-template-columns: 1fr !important;
    }

    .p-stat-val {
        font-size: 13px;
    }

    .inc-avatar-img {
        width: 30px;
        height: 30px;
    }
}

/* 10. Small Mobile Breakpoint (≤ 480px) */
@media (max-width: 480px) {
    .form-panel {
        padding: 20px 16px 24px;
    }

    .login-card {
        padding: 24px 16px 20px;
        border-radius: 12px;
    }

    .login-title {
        font-size: 22px;
    }

    .main-incoming-body {
        padding: 10px 10px !important;
    }

    .inc-top-right {
        gap: 4px !important;
    }

    .inc-notif-bell {
        width: 30px;
        height: 30px;
    }

    .inc-notif-bell svg {
        width: 15px;
        height: 15px;
    }

    .inc-kpi-grid,
    .shift-kpi-grid-6 {
        grid-template-columns: 1fr 1fr !important;
        gap: 6px !important;
    }

    #mon-section-kpi-cards,
    .sla-kpi-grid,
    .exec-kpi-5grid,
    .exec-bottom-5grid,
    .profile-stats-row {
        grid-template-columns: 1fr !important;
    }

    .inc-kpi-card {
        padding: 10px;
    }

    .inc-kpi-number {
        font-size: 18px;
    }

    .inc-kpi-icon-circle {
        width: 36px;
        height: 36px;
    }

    .inc-kpi-icon-circle svg {
        width: 16px;
        height: 16px;
    }

    .inc-action-row {
        width: 100%;
    }

    .inc-action-row .btn-inc-add,
    .inc-action-row .btn-inc-import {
        width: 100%;
        justify-content: center;
    }

    .sla-tab-btn {
        flex: 1 1 100% !important;
    }

    .p-stat-box {
        border-right: none;
        border-bottom: 1px solid #F1F5F9;
    }

    .profile-hero-main {
        padding: 0 14px 16px;
    }

    .jnt-toast-item {
        min-width: 260px;
        min-width: 0;
        font-size: 11.5px;
    }

    .inc-pagination {
        flex-wrap: wrap;
        gap: 4px;
        justify-content: center;
    }
}

/* 11. Minimum Mobile Breakpoint (≤ 360px) */
@media (max-width: 360px) {
    .login-title {
        font-size: 20px;
    }

    .form-input {
        font-size: 13.5px;
    }

    .btn-login {
        font-size: 14px;
        padding: 12px;
    }

    .inc-main-title {
        font-size: 14px !important;
    }

    .inc-kpi-number {
        font-size: 16px;
    }

    .main-incoming-body {
        padding: 8px !important;
    }

    .sidebar-panel {
        width: 240px !important;
        min-width: 240px !important;
    }
}

/* 12. Print Media */
@media print {

    .sidebar-panel,
    .inc-top-nav,
    .inc-action-row,
    .hamburger-btn,
    .sidebar-backdrop,
    .jnt-toast-container,
    .topbar-user-dropdown,
    .modal-overlay {
        display: none !important;
    }

    .main-incoming-body {
        padding: 0 !important;
        width: 100% !important;
    }

    .inc-table-scroll {
        overflow: visible !important;
    }

    .inc-data-table {
        min-width: unset !important;
        font-size: 11px;
    }
}

/* ==========================================================================
   ENTERPRISE TABLE COLUMN SORTING (A-Z / Z-A) — SLA VENDOR & MONITORING 4H
   ========================================================================== */
.sla-enterprise-table thead th.th-sortable {
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    transition: background-color 0.16s ease, color 0.16s ease;
}

.sla-enterprise-table thead th.th-sortable:hover {
    background-color: #EEF2F6 !important;
    color: #0F172A !important;
}

.sla-enterprise-table thead th.th-sortable.is-sorted-asc,
.sla-enterprise-table thead th.th-sortable.is-sorted-desc {
    color: #1D4ED8 !important;
    background-color: #EFF6FF !important;
}

.th-sort-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: inherit;
    gap: 5px;
    max-width: 100%;
    vertical-align: middle;
}

.th-sort-label {
    display: inline-block;
    line-height: 1.2;
}

.th-sort-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 12px;
    height: 14px;
    color: #64748B;
    transition: color 0.16s ease, opacity 0.16s ease;
}

.th-sort-svg {
    display: block;
    width: 10px;
    height: 14px;
    overflow: visible;
}

.th-sort-svg .sort-up,
.th-sort-svg .sort-down {
    fill: currentColor;
    opacity: 0.45;
    transition: opacity 0.16s ease, fill 0.16s ease;
}

.sla-enterprise-table thead th.th-sortable:hover .th-sort-svg .sort-up,
.sla-enterprise-table thead th.th-sortable:hover .th-sort-svg .sort-down {
    opacity: 0.78;
}

/* Active Ascending (A-Z): Top triangle highlighted */
.sla-enterprise-table thead th.th-sortable.is-sorted-asc .th-sort-svg .sort-up {
    fill: #2563EB;
    opacity: 1;
}

.sla-enterprise-table thead th.th-sortable.is-sorted-asc .th-sort-svg .sort-down {
    opacity: 0.22;
}

/* Active Descending (Z-A): Bottom triangle highlighted */
.sla-enterprise-table thead th.th-sortable.is-sorted-desc .th-sort-svg .sort-down {
    fill: #2563EB;
    opacity: 1;
}

.sla-enterprise-table thead th.th-sortable.is-sorted-desc .th-sort-svg .sort-up {
    opacity: 0.22;
}

/* Compact variant for Monitoring 4-Hour sticky & 42 time-slot columns */
.monitoring-table thead th.mon-sticky-col.th-sortable {
    padding-left: 8px !important;
    padding-right: 8px !important;
}

.monitoring-table thead th.mon-sticky-col.th-sortable .th-sort-wrap {
    gap: 4px;
}

.monitoring-table thead th.th-sortable-compact {
    padding-left: 5px !important;
    padding-right: 5px !important;
    min-width: 60px !important;
}

.monitoring-table thead th.th-sortable-compact .th-sort-wrap {
    gap: 3px;
}

.monitoring-table thead th.th-sortable-compact .th-sort-icon {
    width: 9px;
    height: 12px;
}

.monitoring-table thead th.th-sortable-compact .th-sort-svg {
    width: 8px;
    height: 12px;
}

/* Dark Mode support */
:is(html, body).dark-body-theme .sla-enterprise-table thead th.th-sortable:hover,
:is(html, body).dark-body-theme .sla-enterprise-table thead.is-frozen-thead th.th-sortable:hover {
    background-color: #1E293B !important;
    color: #F8FAFC !important;
}

:is(html, body).dark-body-theme .monitoring-table thead th.mon-sticky-col.th-sortable:hover,
:is(html, body).dark-body-theme .monitoring-table thead.is-frozen-thead th.mon-sticky-col.th-sortable:hover {
    background-color: #1E293B !important;
    color: #F8FAFC !important;
}

:is(html, body).dark-body-theme .sla-enterprise-table thead th.th-sortable.is-sorted-asc,
:is(html, body).dark-body-theme .sla-enterprise-table thead th.th-sortable.is-sorted-desc,
:is(html, body).dark-body-theme .sla-enterprise-table thead.is-frozen-thead th.th-sortable.is-sorted-asc,
:is(html, body).dark-body-theme .sla-enterprise-table thead.is-frozen-thead th.th-sortable.is-sorted-desc {
    background-color: #1B2A47 !important;
    color: #F8FAFC !important;
}

:is(html, body).dark-body-theme .monitoring-table thead th.mon-sticky-col.th-sortable.is-sorted-asc,
:is(html, body).dark-body-theme .monitoring-table thead th.mon-sticky-col.th-sortable.is-sorted-desc,
:is(html, body).dark-body-theme .monitoring-table thead.is-frozen-thead th.mon-sticky-col.th-sortable.is-sorted-asc,
:is(html, body).dark-body-theme .monitoring-table thead.is-frozen-thead th.mon-sticky-col.th-sortable.is-sorted-desc {
    background-color: #172540 !important;
    color: #F8FAFC !important;
}

:is(html, body).dark-body-theme .sla-enterprise-table thead th.th-sortable .th-sort-icon {
    color: #CBD5E1;
}

:is(html, body).dark-body-theme .sla-enterprise-table thead th.th-sortable .th-sort-svg .sort-up,
:is(html, body).dark-body-theme .sla-enterprise-table thead th.th-sortable .th-sort-svg .sort-down {
    opacity: 0.55;
}

:is(html, body).dark-body-theme .sla-enterprise-table thead th.th-sortable:hover .th-sort-svg .sort-up,
:is(html, body).dark-body-theme .sla-enterprise-table thead th.th-sortable:hover .th-sort-svg .sort-down {
    opacity: 0.9;
}

:is(html, body).dark-body-theme .sla-enterprise-table thead th.th-sortable.is-sorted-asc .th-sort-svg .sort-up,
:is(html, body).dark-body-theme .sla-enterprise-table thead th.th-sortable.is-sorted-desc .th-sort-svg .sort-down {
    fill: #38BDF8;
    opacity: 1;
}

:is(html, body).dark-body-theme .sla-enterprise-table thead th.th-sortable.is-sorted-asc .th-sort-svg .sort-down,
:is(html, body).dark-body-theme .sla-enterprise-table thead th.th-sortable.is-sorted-desc .th-sort-svg .sort-up {
    opacity: 0.25;
}

/* Keep active-slot-th highlight harmonious when sorted */
.monitoring-table thead th.active-slot-th.is-sorted-asc,
.monitoring-table thead th.active-slot-th.is-sorted-desc {
    background-color: #DBEAFE !important;
    color: #1E40AF !important;
}

:is(html, body).dark-body-theme .monitoring-table thead th.active-slot-th.is-sorted-asc,
:is(html, body).dark-body-theme .monitoring-table thead th.active-slot-th.is-sorted-desc {
    background-color: #1E3A6E !important;
    color: #BAE6FD !important;
}

@media print {

    .th-sort-icon,
    .bulk-action-bar,
    .th-check-col,
    .td-check-col {
        display: none !important;
    }
}

/* ==========================================================================
   ENTERPRISE TABLE BULK SELECTION (BLOK 1-BY-1 / BLOK SEMUA) & ACTION BAR
   ========================================================================== */
.th-check-col,
.td-check-col {
    width: 38px;
    min-width: 38px;
    max-width: 42px;
    text-align: center !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
    vertical-align: middle !important;
}

.bulk-row-checkbox,
.bulk-select-all-checkbox {
    width: 15px;
    height: 15px;
    accent-color: #2563EB;
    cursor: pointer;
    vertical-align: middle;
    margin: 0;
}

.sla-enterprise-table tbody tr.is-row-selected {
    background-color: rgba(37, 99, 235, 0.08) !important;
}

.sla-enterprise-table tbody tr.is-row-selected:hover {
    background-color: rgba(37, 99, 235, 0.13) !important;
}

.monitoring-table tbody tr.is-row-selected td.mon-sticky-col {
    background-color: #EFF6FF !important;
}

.monitoring-table tbody tr.is-row-selected:hover td.mon-sticky-col {
    background-color: #DBEAFE !important;
}

:is(html, body).dark-body-theme .sla-enterprise-table tbody tr.is-row-selected {
    background-color: rgba(56, 189, 248, 0.13) !important;
}

:is(html, body).dark-body-theme .sla-enterprise-table tbody tr.is-row-selected:hover {
    background-color: rgba(56, 189, 248, 0.19) !important;
}

:is(html, body).dark-body-theme .monitoring-table tbody tr.is-row-selected td.mon-sticky-col {
    background-color: #162640 !important;
}

:is(html, body).dark-body-theme .monitoring-table tbody tr.is-row-selected:hover td.mon-sticky-col {
    background-color: #1B3152 !important;
}

:is(html, body).dark-body-theme .bulk-row-checkbox,
:is(html, body).dark-body-theme .bulk-select-all-checkbox {
    accent-color: #38BDF8;
}

.bulk-action-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    margin: 0 0 12px 0;
    border-radius: 10px;
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    color: #1E3A8A;
    animation: bulkBarFadeIn 0.16s ease-out;
}

.bulk-action-bar.hidden {
    display: none !important;
}

@keyframes bulkBarFadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bulk-action-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12.5px;
    font-weight: 600;
}

.bulk-count-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #2563EB;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 700;
}

.bulk-select-all-filtered-btn {
    background: transparent;
    border: 1px dashed #2563EB;
    color: #1D4ED8;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.bulk-select-all-filtered-btn:hover {
    background: #DBEAFE;
}

.bulk-action-right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.btn-bulk-copy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 7px;
    border: 1px solid #93C5FD;
    background: #FFFFFF;
    color: #1D4ED8;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-bulk-copy:hover {
    background: #DBEAFE;
    border-color: #2563EB;
}

.btn-bulk-delete {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 7px;
    border: 1px solid #FCA5A5;
    background: #DC2626;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-bulk-delete:hover {
    background: #B91C1C;
    border-color: #991B1B;
}

.btn-bulk-delete:disabled,
.btn-bulk-copy:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-bulk-cancel {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border-radius: 7px;
    border: 1px solid #CBD5E1;
    background: #F8FAFC;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-bulk-cancel:hover {
    background: #E2E8F0;
    color: #0F172A;
}

:is(html, body).dark-body-theme .bulk-action-bar {
    background: #132238 !important;
    border-color: #1E3A5F !important;
    color: #E2E8F0 !important;
}

:is(html, body).dark-body-theme .bulk-count-pill {
    background: #0284C7 !important;
    color: #FFFFFF !important;
}

:is(html, body).dark-body-theme .bulk-select-all-filtered-btn {
    border-color: #38BDF8 !important;
    color: #7DD3FC !important;
}

:is(html, body).dark-body-theme .bulk-select-all-filtered-btn:hover {
    background: rgba(56, 189, 248, 0.15) !important;
}

:is(html, body).dark-body-theme .btn-bulk-copy {
    background: #0F172A !important;
    border-color: #38BDF8 !important;
    color: #7DD3FC !important;
}

:is(html, body).dark-body-theme .btn-bulk-copy:hover {
    background: #1E293B !important;
    color: #FFFFFF !important;
}

:is(html, body).dark-body-theme .btn-bulk-delete {
    background: #DC2626 !important;
    border-color: #F87171 !important;
    color: #FFFFFF !important;
}

:is(html, body).dark-body-theme .btn-bulk-delete:hover {
    background: #EF4444 !important;
}

:is(html, body).dark-body-theme .btn-bulk-cancel {
    background: #1E293B !important;
    border-color: #334155 !important;
    color: #CBD5E1 !important;
}

:is(html, body).dark-body-theme .btn-bulk-cancel:hover {
    background: #334155 !important;
    color: #FFFFFF !important;
}

/* ==========================================================================
   ROUTE SLA ESTIMATION & SPARE TIME SETTINGS (settings.html)
   ========================================================================== */
.route-sla-settings-card {
    width: 100%;
}

.route-sla-header {
    flex-wrap: wrap;
    gap: 12px;
}

.st-icon.orange {
    background: #FFF7ED;
    color: #EA580C;
}

.rsla-subtitle {
    display: block;
    font-size: 11.5px;
    color: #64748B;
    margin-top: 2px;
    font-weight: 500;
}

.rsla-header-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.rsla-stat-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #EFF6FF;
    color: #1D4ED8;
    border: 1px solid #BFDBFE;
    font-size: 11.5px;
    font-weight: 700;
}

.rsla-stat-pill.custom {
    background: #FEF3C7;
    color: #B45309;
    border-color: #FDE68A;
}

.rsla-stat-pill.hidden {
    display: none !important;
}

.btn-rsla-outline {
    padding: 7px 12px;
    border-radius: 8px;
    border: 1px solid #CBD5E1;
    background: #FFFFFF;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-rsla-outline:hover {
    background: #F1F5F9;
    border-color: #94A3B8;
    color: #0F172A;
}

.btn-rsla-outline.warn {
    color: #B45309;
    border-color: #FCD34D;
    background: #FFFBEB;
}

.btn-rsla-outline.warn:hover {
    background: #FEF3C7;
}

.rsla-add-panel {
    padding: 14px;
    border-radius: 10px;
    background: #F8FAFC;
    border: 1px dashed #94A3B8;
}

.rsla-add-panel.hidden {
    display: none !important;
}

.rsla-add-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.rsla-add-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 10px;
}

.rsla-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.rsla-toolbar-left,
.rsla-toolbar-right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.rsla-search-input {
    min-width: 280px;
    flex: 1;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #CBD5E1;
    font-size: 12.5px;
    background: #FFFFFF;
    color: #0F172A;
}

.rsla-select {
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #CBD5E1;
    font-size: 12.5px;
    font-weight: 600;
    background: #FFFFFF;
    color: #0F172A;
}

.rsla-bulk-label {
    font-size: 12px;
    font-weight: 700;
    color: #475569;
}

.rsla-table-wrap {
    max-height: 540px;
    overflow: auto;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
}

.rsla-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
}

.rsla-table thead th {
    position: sticky;
    top: 0;
    z-index: 5;
    background: #F8FAFC;
    color: #475569;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 10px 10px;
    border-bottom: 2px solid #E2E8F0;
    text-align: left;
    white-space: nowrap;
}

.rsla-table thead th small {
    font-weight: 600;
    font-size: 9.5px;
    color: #94A3B8;
    text-transform: none;
}

.rsla-table tbody td {
    padding: 8px 10px;
    border-bottom: 1px solid #EEF2F6;
    vertical-align: middle;
    color: #1E293B;
}

.rsla-table tbody tr:hover {
    background: #F8FAFC;
}

.rsla-table tbody tr.is-rsla-dirty {
    background: #FFFBEB !important;
}

.rsla-table tbody tr.is-rsla-custom td:first-child {
    border-left: 3px solid #2563EB;
}

.rsla-fleet-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
}

.rsla-fleet-badge.cdd {
    background: #EFF6FF;
    color: #1D4ED8;
    border: 1px solid #BFDBFE;
}

.rsla-fleet-badge.fuso {
    background: #FFF7ED;
    color: #C2410C;
    border: 1px solid #FED7AA;
}

.rsla-fleet-badge.kontainer {
    background: #F3E8FF;
    color: #7E22CE;
    border: 1px solid #DDD6FE;
}

.rsla-fleet-badge.gmax {
    background: #ECFDF5;
    color: #047857;
    border: 1px solid #A7F3D0;
}

.rsla-time-input,
.rsla-spare-input {
    width: 82px;
    padding: 5px 8px;
    border-radius: 6px;
    border: 1px solid #CBD5E1;
    background: #FFFFFF;
    color: #0F172A;
    font-size: 12.5px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    text-align: center;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.rsla-time-input:focus,
.rsla-spare-input:focus {
    outline: none;
    border-color: #2563EB;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.16);
}

.rsla-time-input.is-invalid {
    border-color: #DC2626 !important;
    background: #FEF2F2 !important;
}

.rsla-effective-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 6px;
    background: #ECFDF5;
    color: #047857;
    border: 1px solid #A7F3D0;
    font-size: 11.5px;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    white-space: nowrap;
}

.rsla-effective-pill.has-spare {
    background: #EFF6FF;
    color: #1D4ED8;
    border-color: #93C5FD;
}

.rsla-row-actions {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-rsla-row {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid #CBD5E1;
    background: #FFFFFF;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12.5px;
    transition: all 0.15s ease;
}

.btn-rsla-row.save:hover {
    background: #DBEAFE;
    border-color: #2563EB;
}

.btn-rsla-row.reset:hover {
    background: #FEF3C7;
    border-color: #D97706;
}

.rsla-footer-note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 11.5px;
    color: #64748B;
}

/* Dark Mode for Route SLA Settings */
:is(html, body).dark-body-theme .rsla-subtitle,
:is(html, body).dark-body-theme .rsla-footer-note,
:is(html, body).dark-body-theme .rsla-bulk-label {
    color: #94A3B8 !important;
}

:is(html, body).dark-body-theme .rsla-table-wrap {
    border-color: #1E293B !important;
}

:is(html, body).dark-body-theme .rsla-table thead th {
    background: #172030 !important;
    color: #94A3B8 !important;
    border-bottom-color: #1E293B !important;
}

:is(html, body).dark-body-theme .rsla-table tbody td {
    border-bottom-color: #1E293B !important;
    color: #E2E8F0 !important;
}

:is(html, body).dark-body-theme .rsla-table tbody tr:hover {
    background: rgba(30, 41, 59, 0.45) !important;
}

:is(html, body).dark-body-theme .rsla-table tbody tr.is-rsla-dirty {
    background: rgba(245, 158, 11, 0.13) !important;
}

:is(html, body).dark-body-theme .rsla-table tbody tr.is-rsla-custom td:first-child {
    border-left-color: #38BDF8 !important;
}

:is(html, body).dark-body-theme .rsla-search-input,
:is(html, body).dark-body-theme .rsla-select,
:is(html, body).dark-body-theme .rsla-time-input,
:is(html, body).dark-body-theme .rsla-spare-input {
    background: #0F172A !important;
    border-color: #334155 !important;
    color: #F8FAFC !important;
}

:is(html, body).dark-body-theme .rsla-add-panel {
    background: #131D2E !important;
    border-color: #334155 !important;
}

:is(html, body).dark-body-theme .btn-rsla-outline,
:is(html, body).dark-body-theme .btn-rsla-row {
    background: #1E293B !important;
    border-color: #334155 !important;
    color: #E2E8F0 !important;
}

:is(html, body).dark-body-theme .btn-rsla-outline:hover,
:is(html, body).dark-body-theme .btn-rsla-row:hover {
    background: #334155 !important;
    color: #FFFFFF !important;
}

:is(html, body).dark-body-theme .btn-rsla-outline.warn {
    background: rgba(245, 158, 11, 0.14) !important;
    border-color: rgba(251, 191, 36, 0.4) !important;
    color: #FCD34D !important;
}

:is(html, body).dark-body-theme .rsla-effective-pill {
    background: rgba(16, 185, 129, 0.16) !important;
    border-color: rgba(52, 211, 153, 0.4) !important;
    color: #6EE7B7 !important;
}

:is(html, body).dark-body-theme .rsla-effective-pill.has-spare {
    background: rgba(56, 189, 248, 0.16) !important;
    border-color: rgba(56, 189, 248, 0.45) !important;
    color: #7DD3FC !important;
}

:is(html, body).dark-body-theme .rsla-fleet-badge.cdd {
    background: rgba(37, 99, 235, 0.2) !important;
    border-color: rgba(96, 165, 250, 0.4) !important;
    color: #93C5FD !important;
}

:is(html, body).dark-body-theme .rsla-fleet-badge.fuso {
    background: rgba(234, 88, 12, 0.2) !important;
    border-color: rgba(251, 146, 60, 0.4) !important;
    color: #FDBA74 !important;
}

:is(html, body).dark-body-theme .rsla-fleet-badge.kontainer {
    background: rgba(126, 34, 206, 0.22) !important;
    border-color: rgba(192, 132, 252, 0.4) !important;
    color: #D8B4FE !important;
}

:is(html, body).dark-body-theme .rsla-fleet-badge.gmax {
    background: rgba(5, 150, 105, 0.2) !important;
    border-color: rgba(52, 211, 153, 0.4) !important;
    color: #6EE7B7 !important;
}


/* ==========================================================================
   GLOBAL FLOATING BACKGROUND JOB PROGRESS DOCK (CROSS-PAGE EXCEL & DELETE)
   ========================================================================== */
.jnt-bg-dock {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9998;
    width: 370px;
    max-width: calc(100vw - 24px);
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: 14px;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.22);
    overflow: hidden;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.jnt-bg-dock.hidden {
    display: none !important;
}

.jnt-bg-dock.is-minimized {
    width: auto;
    border-radius: 999px;
}

.jnt-bg-dock-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: none;
    background: #0F172A;
    color: #F8FAFC;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.jnt-bg-dock-pill:hover {
    background: #1E293B;
}

.jnt-bg-dock-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #F8FAFC;
    border-bottom: 1px solid #E2E8F0;
}

.jnt-bg-dock-heading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 800;
    color: #0F172A;
}

.jnt-bg-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2563EB;
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.65);
    animation: jntBgPulse 1.4s infinite;
}

@keyframes jntBgPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.65);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(37, 99, 235, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
}

.jnt-bg-dock-min-btn {
    border: 1px solid #CBD5E1;
    background: #FFFFFF;
    color: #475569;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    font-size: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.jnt-bg-dock-min-btn:hover {
    background: #E2E8F0;
    color: #0F172A;
}

.jnt-bg-dock-body {
    max-height: 300px;
    overflow-y: auto;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.jnt-bg-job-item {
    padding: 10px 11px;
    border-radius: 10px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
}

.jnt-bg-job-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 7px;
}

.jnt-bg-job-title {
    font-size: 12px;
    font-weight: 700;
    color: #0F172A;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jnt-bg-job-badge {
    flex-shrink: 0;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 800;
}

.jnt-bg-job-badge.is-running {
    background: #DBEAFE;
    color: #1D4ED8;
}

.jnt-bg-job-badge.is-done {
    background: #DCFCE7;
    color: #15803D;
}

.jnt-bg-job-badge.is-warn {
    background: #FEF3C7;
    color: #B45309;
}

.jnt-bg-job-badge.is-error {
    background: #FEE2E2;
    color: #B91C1C;
}

.jnt-bg-job-badge.is-cancelled {
    background: #E2E8F0;
    color: #475569;
}

.jnt-bg-progress-track {
    width: 100%;
    height: 7px;
    border-radius: 999px;
    background: #E2E8F0;
    overflow: hidden;
    margin-bottom: 7px;
}

.jnt-bg-progress-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.28s ease;
}

.jnt-bg-progress-fill.is-running {
    background: linear-gradient(90deg, #2563EB, #38BDF8, #2563EB);
    background-size: 200% 100%;
    animation: jntBgShimmer 1.6s linear infinite;
}

.jnt-bg-progress-fill.is-done {
    background: #16A34A;
}

.jnt-bg-progress-fill.is-warn {
    background: #D97706;
}

.jnt-bg-progress-fill.is-error {
    background: #DC2626;
}

.jnt-bg-progress-fill.is-cancelled {
    background: #64748B;
}

@keyframes jntBgShimmer {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

.jnt-bg-job-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.jnt-bg-job-sub {
    font-size: 11px;
    color: #475569;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jnt-bg-job-actions {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.jnt-bg-btn {
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 10.5px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
}

.jnt-bg-btn-cancel {
    background: #FEF2F2;
    border-color: #FECACA;
    color: #DC2626;
}

.jnt-bg-btn-cancel:hover {
    background: #FEE2E2;
}

.jnt-bg-btn-retry {
    background: #EFF6FF;
    border-color: #BFDBFE;
    color: #1D4ED8;
}

.jnt-bg-btn-retry:hover {
    background: #DBEAFE;
}

.jnt-bg-btn-dismiss {
    background: #FFFFFF;
    border-color: #CBD5E1;
    color: #475569;
}

.jnt-bg-btn-dismiss:hover {
    background: #E2E8F0;
    color: #0F172A;
}

:is(html, body).dark-body-theme .jnt-bg-dock {
    background: #0F172A !important;
    border-color: #334155 !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55) !important;
}

:is(html, body).dark-body-theme .jnt-bg-dock-header {
    background: #172030 !important;
    border-bottom-color: #1E293B !important;
}

:is(html, body).dark-body-theme .jnt-bg-dock-heading,
:is(html, body).dark-body-theme .jnt-bg-job-title {
    color: #F8FAFC !important;
}

:is(html, body).dark-body-theme .jnt-bg-dock-min-btn {
    background: #1E293B !important;
    border-color: #334155 !important;
    color: #CBD5E1 !important;
}

:is(html, body).dark-body-theme .jnt-bg-job-item {
    background: #131D2E !important;
    border-color: #1E293B !important;
}

:is(html, body).dark-body-theme .jnt-bg-progress-track {
    background: #1E293B !important;
}

:is(html, body).dark-body-theme .jnt-bg-job-sub {
    color: #94A3B8 !important;
}

:is(html, body).dark-body-theme .jnt-bg-btn-dismiss {
    background: #1E293B !important;
    border-color: #334155 !important;
    color: #CBD5E1 !important;
}

:is(html, body).dark-body-theme .jnt-bg-btn-cancel {
    background: rgba(220, 38, 38, 0.16) !important;
    border-color: rgba(248, 113, 113, 0.4) !important;
    color: #FCA5A5 !important;
}

:is(html, body).dark-body-theme .jnt-bg-btn-retry {
    background: rgba(56, 189, 248, 0.16) !important;
    border-color: rgba(56, 189, 248, 0.4) !important;
    color: #7DD3FC !important;
}

@media print {
    .jnt-bg-dock {
        display: none !important;
    }
}


/* ============================================================================
   RBAC ZERO-FLASH VISIBILITY RULES (Hide Restricted Menus & Features by Role)
   ============================================================================ */
.rbac-hidden {
    display: none !important;
}

/* VENDOR: Hide Shift Management, User Management, Master Data, Route SLA Settings Card, Excel Upload, SLA Edit/Delete, Monitoring Finish/Delete, Trouble Delete */
html[data-jnt-role="VENDOR"] .sidebar-nav li.nav-item:has(> a[href="shift-management.html"]),
html[data-jnt-role="VENDOR"] .sidebar-nav li.nav-item:has(> a[href="users.html"]),
html[data-jnt-role="VENDOR"] .sidebar-nav li.nav-item:has(> a[href="master.html"]),
html[data-jnt-role="VENDOR"] #card-route-sla-settings,
html[data-jnt-role="VENDOR"] .route-sla-settings-card,
html[data-jnt-role="VENDOR"] #btn-input-keberangkatan,
html[data-jnt-role="VENDOR"] #btn-update-sla-outbound,
html[data-jnt-role="VENDOR"] #btn-input-balikan,
html[data-jnt-role="VENDOR"] #btn-update-sla-return,
html[data-jnt-role="VENDOR"] #btn-bulk-del-outbound,
html[data-jnt-role="VENDOR"] #btn-bulk-del-return,
html[data-jnt-role="VENDOR"] .btn-sla-action.btn-edit,
html[data-jnt-role="VENDOR"] .btn-sla-action.btn-delete,
html[data-jnt-role="VENDOR"] #btn-bulk-del-mon,
html[data-jnt-role="VENDOR"] .btn-icon-delete-sq,
html[data-jnt-role="VENDOR"] .btn-finish-action,
html[data-jnt-role="VENDOR"] #btn-delete-incident,
html[data-jnt-role="VENDOR"] .btn-delete-trouble-row,
html[data-jnt-role="VENDOR"] #btn-open-import-tab,
html[data-jnt-role="VENDOR"] #tab-btn-upload,
html[data-jnt-role="VENDOR"] #tab-content-upload {
    display: none !important;
}

/* FINANCE (Read-Only + Export): Hide Shift Management, User Management, Master Data, Route SLA Settings Card & All Write/Edit/Delete/Upload Controls */
html[data-jnt-role="FINANCE"] .sidebar-nav li.nav-item:has(> a[href="shift-management.html"]),
html[data-jnt-role="FINANCE"] .sidebar-nav li.nav-item:has(> a[href="users.html"]),
html[data-jnt-role="FINANCE"] .sidebar-nav li.nav-item:has(> a[href="master.html"]),
html[data-jnt-role="FINANCE"] #card-route-sla-settings,
html[data-jnt-role="FINANCE"] .route-sla-settings-card,
html[data-jnt-role="FINANCE"] #btn-input-keberangkatan,
html[data-jnt-role="FINANCE"] #btn-update-sla-outbound,
html[data-jnt-role="FINANCE"] #btn-input-balikan,
html[data-jnt-role="FINANCE"] #btn-update-sla-return,
html[data-jnt-role="FINANCE"] #btn-bulk-del-outbound,
html[data-jnt-role="FINANCE"] #btn-bulk-del-return,
html[data-jnt-role="FINANCE"] .btn-sla-action.btn-edit,
html[data-jnt-role="FINANCE"] .btn-sla-action.btn-delete,
html[data-jnt-role="FINANCE"] #btn-open-checkin-modal,
html[data-jnt-role="FINANCE"] #btn-add-monitoring,
html[data-jnt-role="FINANCE"] #btn-bulk-del-mon,
html[data-jnt-role="FINANCE"] .btn-icon-delete-sq,
html[data-jnt-role="FINANCE"] .btn-finish-action,
html[data-jnt-role="FINANCE"] #btn-report-incident,
html[data-jnt-role="FINANCE"] #btn-dt-add-photo,
html[data-jnt-role="FINANCE"] #btn-open-update-status,
html[data-jnt-role="FINANCE"] #btn-close-incident,
html[data-jnt-role="FINANCE"] #btn-delete-incident,
html[data-jnt-role="FINANCE"] .btn-delete-trouble-row,
html[data-jnt-role="FINANCE"] #btn-open-import-tab,
html[data-jnt-role="FINANCE"] #tab-btn-upload,
html[data-jnt-role="FINANCE"] #tab-content-upload {
    display: none !important;
}

/* STAFF VEHICLE DISPATCH (No Users/Master/Route SLA Settings Card & No Delete on Operational Data) */
html[data-jnt-role="STAFF_VEHICLE_DISPATCH"] .sidebar-nav li.nav-item:has(> a[href="users.html"]),
html[data-jnt-role="STAFF_VEHICLE_DISPATCH"] .sidebar-nav li.nav-item:has(> a[href="master.html"]),
html[data-jnt-role="STAFF_VEHICLE_DISPATCH"] #card-route-sla-settings,
html[data-jnt-role="STAFF_VEHICLE_DISPATCH"] .route-sla-settings-card,
html[data-jnt-role="STAFF_VEHICLE_DISPATCH"] #btn-bulk-del-outbound,
html[data-jnt-role="STAFF_VEHICLE_DISPATCH"] #btn-bulk-del-return,
html[data-jnt-role="STAFF_VEHICLE_DISPATCH"] .btn-sla-action.btn-delete,
html[data-jnt-role="STAFF_VEHICLE_DISPATCH"] #btn-bulk-del-mon,
html[data-jnt-role="STAFF_VEHICLE_DISPATCH"] .btn-icon-delete-sq,
html[data-jnt-role="STAFF_VEHICLE_DISPATCH"] #btn-delete-incident,
html[data-jnt-role="STAFF_VEHICLE_DISPATCH"] .btn-delete-trouble-row {
    display: none !important;
}

/* ============================================================================
   DESKTOP COLLAPSIBLE SIDEBAR VIA HAMBURGER BUTTON
   ============================================================================ */
@media (min-width: 993px) {
    .sidebar-panel {
        transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1),
            min-width 0.25s cubic-bezier(0.4, 0, 0.2, 1),
            opacity 0.2s ease,
            border-color 0.2s ease !important;
    }

    html.sidebar-collapsed .sidebar-panel {
        width: 0 !important;
        min-width: 0 !important;
        max-width: 0 !important;
        border-right-width: 0 !important;
        overflow: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    html.sidebar-collapsed .hamburger-btn {
        background-color: rgba(227, 6, 19, 0.12);
        border-color: rgba(227, 6, 19, 0.32);
        color: var(--primary-red);
    }

    :is(html, body).dark-body-theme.sidebar-collapsed .hamburger-btn {
        background-color: rgba(227, 6, 19, 0.22);
        border-color: rgba(248, 113, 113, 0.4);
        color: #FCA5A5;
    }
}

/* ============================================================================
   SIDEBAR LOGOUT MENU ITEM (PENGGANTI TOPBAR USER DROPDOWN)
   ============================================================================ */
.sidebar-nav .nav-item-logout {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.sidebar-nav .nav-link-logout {
    width: 100%;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    color: #F87171;
}

.sidebar-nav .nav-item-logout:hover .nav-link-logout,
.sidebar-nav .nav-link-logout:hover {
    color: #FCA5A5;
    background-color: rgba(239, 68, 68, 0.14);
}

.sidebar-nav .nav-link-logout .nav-icon {
    color: currentColor;
}