/* ==========================================================================
   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%);

    /* Dark Theme Colors */
    --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,
.date-chip svg,
.notif-bell svg,
.header-user-chip svg,
.btn-dark-green svg,
.btn-dark-gray svg,
.btn-jnt-red svg,
.btn-dark-outline svg,
.sla-header-actions svg,
.action-buttons-right svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

html {
    font-size: 13px;
}

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;
}

/* ==========================================================
   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;
}

body.light-body-theme {
    background-color: #F8FAFC;
    color: #1E293B;
}

.app-container {
    /* Login page: tinggi tepat sama dengan viewport — jangan pakai min-height */
    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
   ========================================================================== */

.login-section {
    display: flex;
    width: 100%;
    /* FIX SCROLLBAR GANDA: pakai height:100% bukan min-height:100vh.
       min-height membuat section bisa tumbuh dan body ikut scroll.
       height:100% membuat section tepat mengisi app-container yang sudah dikunci. */
    height: 100%;
    overflow: hidden;
    position: relative;
}

/* ── Banner Panel ───────────────────────────────────────────────────────── */
.banner-panel {
    flex: 1 1 50%;
    width: 50%;
    background-color: #0a1628;
    position: relative;
    overflow: hidden;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

/* Dark gradient overlay so brand text is always readable */
.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 22, 40, 0.25) 0%,
        rgba(10, 22, 40, 0.45) 50%,
        rgba(10, 22, 40, 0.82) 100%
    );
    z-index: 1;
}

/* Brand info block pinned to bottom of banner */
.banner-brand-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 32px;
    z-index: 2;
}

.banner-logo-mark {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 6px;
}

.banner-jnt {
    font-size: 36px;
    font-weight: 900;
    font-style: italic;
    color: #FFFFFF;
    letter-spacing: -1px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.banner-express-word {
    font-size: 20px;
    font-weight: 800;
    font-style: italic;
    color: #E30613;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.banner-tagline {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.75);
    margin-bottom: 14px;
    letter-spacing: 0.3px;
}

.banner-feature-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.banner-pill {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.88);
    font-size: 11.5px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* ── Form Panel ─────────────────────────────────────────────────────────── */
.form-panel {
    flex: 1 1 50%;
    width: 50%;
    background-color: #F4F6F9;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    z-index: 2;
    /* FIX SCROLLBAR GANDA: form-panel adalah satu-satunya scroll surface.
       overflow-y: auto → scrollbar hanya muncul jika konten lebih tinggi dari panel.
       Karena login-section dan body sudah dikunci, tidak ada scrollbar ganda. */
    overflow-y: auto;
    /* Pastikan flex child ini tidak melebihi tinggi parent */
    max-height: 100%;
}

.map-watermark {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 60%;
    pointer-events: none;
    z-index: 1;
}

.red-diagonal-accent {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 400px;
    height: 400px;
    pointer-events: none;
    z-index: 1;
}

.red-diagonal-accent svg {
    width: 100%;
    height: 100%;
}

/* ── Login Card ─────────────────────────────────────────────────────────── */
.login-card {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 460px;
    background-color: #FFFFFF;
    border-radius: 20px;
    padding: 36px 38px 28px 38px;
    box-shadow:
        0 4px 6px -1px rgba(0,0,0,0.07),
        0 20px 48px -8px rgba(0,0,0,0.12);
    border: 1px solid rgba(226,232,240,0.8);
}

/* Brand header inside card */
.login-brand-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid #F1F5F9;
}

.login-logo-badge {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #E30613 0%, #B80000 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.35);
}

.logo-jnt-text {
    font-size: 14px;
    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: 15px;
    font-weight: 800;
    color: #0F172A;
}

.login-brand-product {
    font-size: 11.5px;
    font-weight: 500;
    color: #64748B;
}

.login-header {
    margin-bottom: 20px;
}

.login-title {
    font-size: 26px;
    font-weight: 800;
    color: #1E293B;
    margin-bottom: 6px;
}

.login-subtitle {
    font-size: 13.5px;
    font-weight: 500;
    color: #64748B;
    line-height: 1.5;
    margin-bottom: 0;
}

/* ── System Status Bar ──────────────────────────────────────────────────── */
.system-status-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 18px;
    font-size: 12px;
    font-weight: 600;
    color: #64748B;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.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;
    color: #991B1B;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 18px;
    animation: alertSlideIn 0.2s cubic-bezier(0.16,1,0.3,1);
}

.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: 18px;
}

.form-label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 7px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border: 1.5px solid #E2E8F0;
    border-radius: 10px;
    background-color: #FFFFFF;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input-wrapper:focus-within {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 4px rgba(227,6,19,0.09);
}

.input-wrapper.input-error {
    border-color: #EF4444;
    box-shadow: 0 0 0 4px rgba(239,68,68,0.09);
}

.input-icon {
    position: absolute;
    left: 13px;
    color: #94A3B8;
    display: flex;
    align-items: center;
    pointer-events: none;
    transition: color 0.15s ease;
}

.input-wrapper:focus-within .input-icon {
    color: var(--primary-red);
}

.form-input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    padding: 13px 44px;
    font-family: inherit;
    font-size: 14px;
    color: #0F172A;
}

.form-input::placeholder {
    color: #CBD5E1;
    font-size: 13.5px;
}

/* Field validation hints */
.field-hint {
    display: block;
    font-size: 11.5px;
    font-weight: 500;
    color: #EF4444;
    margin-top: 5px;
    padding-left: 2px;
}

/* Password toggle */
.password-toggle-btn {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: #94A3B8;
    padding: 6px;
    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: var(--primary-red);
    background-color: rgba(227,6,19,0.08);
}

.password-toggle-btn:focus-visible {
    outline: 2px solid var(--primary-red);
    outline-offset: 2px;
}

.eye-icon {
    display: block;
    width: 18px;
    height: 18px;
}

/* ── Form Options Row (Remember Me + Forgot) ────────────────────────────── */
.form-options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    flex-wrap: wrap;
    gap: 8px;
}

.checkbox-container {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.custom-checkbox {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 1.5px solid #CBD5E1;
    background: #FFF;
    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: #2563EB;
    border-color: #2563EB;
}

.checkbox-container input:focus-visible ~ .custom-checkbox {
    outline: 2px solid #2563EB;
    outline-offset: 2px;
}

.custom-checkbox svg {
    color: transparent;
    transition: color 0.1s ease;
}

.checkbox-container input:checked ~ .custom-checkbox svg {
    color: #FFFFFF;
}

.checkbox-label {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.forgot-link {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-red);
    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 {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(180deg, #E50914 0%, #C8000A 100%);
    border: none;
    border-radius: 10px;
    color: #FFFFFF;
    font-size: 15.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(227,6,19,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: inherit;
    transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
    position: relative;
    overflow: hidden;
}

.btn-login:hover:not(:disabled) {
    background: linear-gradient(180deg, #C8000A 0%, #B00008 100%);
    box-shadow: 0 6px 20px rgba(227,6,19,0.4);
    transform: translateY(-1px);
}

.btn-login:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(227,6,19,0.25);
}

.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: #F1F5F9;
    display: block;
}

.footer-divider-text {
    font-size: 11px;
    font-weight: 600;
    color: #CBD5E1;
    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: #94A3B8;
}

.footer-info-item svg {
    color: #CBD5E1;
    flex-shrink: 0;
}

.footer-copyright {
    text-align: center;
    font-size: 11.5px;
    color: #CBD5E1;
    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-title {
    font-size: 15px;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 8px;
}

.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;
}



/* ==========================================================================
   DASHBOARD & SIDEBAR LAYOUT
   ========================================================================== */

html, body, .app-container {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden !important;
}

.dashboard-layout {
    display: flex;
    width: 100%;
    height: 100vh;
    overflow: hidden !important;
}

/* Sidebar Styles (STAY FIXED ON THE LEFT) */
.sidebar-panel {
    width: 195px;
    min-width: 195px;
    font-size: 12px; /* Base font size untuk semua elemen sidebar */
    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 {
    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;
}

.chevron-menu {
    width: 16px;
    height: 16px;
    margin-left: auto;
    color: var(--text-dim);
}

.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);
}

/* ==========================================================================
   MAIN DASHBOARD PAGE STYLES (PHOTO 2 REPLICATION)
   ========================================================================== */

.main-dashboard-body {
    flex: 1;
    min-width: 0;
    padding: 20px 24px;
    background-color: var(--bg-dark-main);
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
}

/* Top Navigation Header Bar */
.top-nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-dark);
}

.breadcrumb-group {
    display: flex;
    flex-direction: column;
}

.page-main-heading {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: 0.5px;
}

.breadcrumb-sub {
    font-size: 12px;
    color: var(--text-dim);
    font-weight: 500;
}

.top-nav-controls {
    display: flex;
    align-items: center;
    gap: 14px;
}

.date-chip {
    background-color: var(--bg-dark-card);
    border: 1px solid var(--border-dark);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.date-chip svg {
    width: 15px;
    height: 15px;
    color: var(--text-muted);
}

.notif-bell {
    background-color: var(--bg-dark-card);
    border: 1px solid var(--border-dark);
    width: 36px;
    height: 36px;
    border-radius: 6px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-light);
}

.notif-bell svg {
    width: 18px;
    height: 18px;
}

.bell-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: var(--primary-red);
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 10px;
}

.header-user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--bg-dark-card);
    border: 1px solid var(--border-dark);
    padding: 4px 12px;
    border-radius: 20px;
    cursor: pointer;
    position: relative;
}

.user-chip-meta {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.user-chip-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-white);
}

.user-chip-role {
    font-size: 11px;
    color: var(--text-dim);
}

.header-avatar-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #2A3B52;
}

.chevron-user {
    width: 14px;
    height: 14px;
    color: var(--text-muted);
}

.user-dropdown {
    position: absolute;
    top: 45px;
    right: 0;
    background-color: var(--bg-dark-card);
    border: 1px solid var(--border-dark);
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 100;
    min-width: 180px;
}

.dropdown-item {
    background: none;
    border: none;
    color: #EF4444;
    width: 100%;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    border-radius: 6px;
}

.dropdown-item:hover {
    background-color: rgba(239, 68, 68, 0.1);
}

/* Action Bar */
.action-top-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.action-buttons-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-dark-green {
    background-color: var(--green-dark-bg);
    color: var(--green-dark-text);
    border: 1px solid #047857;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-dark-green svg {
    width: 16px;
    height: 16px;
}

.btn-dark-green:hover {
    background-color: #065F46;
}

.btn-dark-gray {
    background-color: #1A2333;
    color: var(--text-muted);
    border: 1px solid var(--border-dark-light);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.btn-dark-gray:hover {
    background-color: #243046;
    color: var(--text-white);
}

.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 */
.sla-card-container {
    background-color: var(--bg-dark-card);
    border: 1px solid var(--border-dark);
    border-radius: 8px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sla-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sla-card-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: 0.5px;
}

.sla-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.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 {
    width: 14px;
    height: 14px;
}

/* Complex SLA Table (PHOTO 2 EXACT STYLING) */
.sla-table-scroll-wrapper {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border-dark);
    border-radius: 6px;
}

.sla-report-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
    color: var(--text-light);
    background-color: var(--bg-dark-card);
}

.sla-report-table th,
.sla-report-table td {
    padding: 8px 10px;
    border: 1px solid var(--border-dark);
    white-space: nowrap;
    text-align: left;
}

.sla-report-table th {
    background-color: #161E2E;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 10.5px;
    text-transform: uppercase;
}

.col-center {
    text-align: center !important;
}

.col-group-header {
    text-align: center !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    color: var(--text-white) !important;
}

.group-otw {
    background-color: #1A2536 !important;
}

.group-return {
    background-color: #1D2A3D !important;
}

.group-pp {
    background-color: #212F45 !important;
}

.group-driver {
    background-color: #1A2536 !important;
}

.sla-report-table tbody tr:hover {
    background-color: #1A2436;
}

.badge-on-time {
    color: #22C55E;
    font-weight: 700;
}

.badge-late {
    color: #EF4444;
    font-weight: 700;
    background-color: rgba(239, 68, 68, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
}

.text-red {
    color: #EF4444;
    font-weight: 700;
}

.text-green {
    color: #22C55E;
    font-weight: 700;
}

.driver-info-box {
    display: flex;
    flex-direction: column;
}

.driver-name {
    font-weight: 700;
    color: var(--text-white);
}

.driver-phone {
    font-size: 10px;
    color: var(--text-dim);
}

.action-btns-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-icon-action {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 13px;
}

/* SLA Pagination Footer */
.sla-pagination-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 8px;
    font-size: 12px;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 12px;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.rows-per-page-select select {
    background-color: #172030;
    color: var(--text-light);
    border: 1px solid var(--border-dark);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    outline: none;
}

.page-numbers-group {
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-page-num,
.btn-page-arrow {
    background-color: #172030;
    color: var(--text-muted);
    border: 1px solid var(--border-dark);
    width: 28px;
    height: 28px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-page-num.active {
    background-color: var(--primary-red);
    color: #FFFFFF;
    border-color: var(--primary-red);
    font-weight: 800;
}

.page-dots {
    padding: 0 4px;
    color: var(--text-dim);
}

/* Modal Form Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.modal-overlay::-webkit-scrollbar,
.modal-card::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.modal-card {
    background-color: var(--bg-dark-card);
    border: 1px solid var(--border-dark);
    border-radius: 12px;
    width: 100%;
    max-width: 580px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    max-height: 92vh;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-dark);
}

.modal-header h3 {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-white);
}

.btn-close-x {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
}

.modal-body-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row-2 {
    display: flex;
    gap: 16px;
}

.form-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-muted);
}

.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;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 12px;
}

/* ==========================================================================
   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;
}

/* Table Container & Internal Horizontal Scroll */
.inc-table-card {
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.inc-table-scroll,
.table-responsive-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.inc-data-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    font-size: 13px;
}

/* 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: none;
    border: none;
    cursor: pointer;
    color: #64748B;
    display: flex;
    align-items: center;
}

.hamburger-btn svg {
    width: 22px;
    height: 22px;
}

.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: 8px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #334155;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.inc-notif-bell svg {
    width: 18px;
    height: 18px;
}

.inc-bell-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: var(--primary-red);
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 10px;
}

.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 {
    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: 8px 20px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(227, 6, 19, 0.3);
}

/* 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;
}

.btn-inc-filter {
    background-color: #FFFFFF;
    border: 1.5px solid var(--primary-red);
    color: var(--primary-red);
    padding: 6px 18px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
}

/* Incoming Split Layout (Table + Detail Panel) */
.inc-split-container {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.inc-table-card {
    flex: 1;
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.inc-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.inc-table-title {
    font-size: 15px;
    font-weight: 800;
    color: #0F172A;
}

.inc-table-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12.5px;
    color: #64748B;
}

.inc-per-page {
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
    color: #334155;
    outline: none;
}

.inc-table-scroll {
    overflow-x: auto;
}

.inc-data-table {
    width: 100%;
    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-title {
    font-size: 15px;
    font-weight: 800;
    color: #0F172A;
}

.detail-hero-box {
    background-color: #FEF2F2;
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.detail-hero-icon {
    width: 44px;
    height: 44px;
    background-color: #FEE2E2;
    color: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.detail-hero-icon svg {
    width: 22px;
    height: 22px;
}

.detail-hero-meta {
    display: flex;
    flex-direction: column;
}

.detail-code {
    font-size: 15px;
    font-weight: 800;
    color: #0F172A;
}

.detail-route {
    font-size: 12px;
    font-weight: 700;
    color: #475569;
}

.detail-tlc {
    font-size: 11px;
    color: #64748B;
}

.detail-info-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;
}

.item-ic {
    width: 14px;
    height: 14px;
    color: #94A3B8;
}

.info-value {
    color: #0F172A;
    font-weight: 600;
}

.font-bold {
    font-weight: 800 !important;
}

/* Timeline Perjalanan */
.timeline-container {
    background-color: #F8FAFC;
    border-radius: 10px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.timeline-heading {
    font-size: 13px;
    font-weight: 700;
    color: #0F172A;
}

.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11.5px;
}

.timeline-check {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #22C55E;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.timeline-name {
    font-weight: 700;
    color: #1E293B;
    flex: 1;
}

.timeline-time {
    color: #64748B;
    font-size: 11px;
}

.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-white-outline svg {
    width: 14px;
    height: 14px;
}

.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;
}

.info-icon-circle {
    width: 22px;
    height: 22px;
    background-color: #3B82F6;
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
    flex-shrink: 0;
}

.info-banner-text {
    font-size: 12px;
    color: #1E3A8A;
    line-height: 1.5;
}

/* 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);
}

.add-photo-box {
    width: 100%;
    height: 54px;
    border: 1.5px dashed #CBD5E1;
    border-radius: 6px;
    background-color: #F8FAFC;
    color: #64748B;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.add-photo-box:hover {
    background-color: #F1F5F9;
    color: #0F172A;
}

.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-dot.blue-dot {
    background-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 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;
}

.history-items-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.login-history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11.5px;
}

.history-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.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 */
.sidebar-help-box {
    margin: 16px 14px 10px 14px;
    background-color: #172030;
    border: 1px solid var(--border-dark);
    border-radius: 10px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.help-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.headset-icon {
    width: 22px;
    height: 22px;
    color: var(--primary-red);
    flex-shrink: 0;
}

.help-text-group {
    display: flex;
    flex-direction: column;
}

.help-title {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-white);
}

.help-sub {
    font-size: 11px;
    color: var(--text-dim);
}

.btn-help-contact {
    background-color: var(--bg-dark-sidebar);
    border: 1px solid var(--border-dark-light);
    color: var(--text-light);
    padding: 6px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
}

.btn-help-contact:hover {
    background-color: #1F2C40;
    color: var(--text-white);
}

/* 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 td {
    font-size: 11.5px;
}

.chip-pos {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    color: #1E293B;
    background-color: #F1F5F9;
}

.chip-pos.green {
    background-color: #DCFCE7;
    color: #16A34A;
}

.chip-pos.active-slot {
    background-color: #FEF3C7;
    color: #D97706;
    border: 1px solid #FCD34D;
}

.time-sub {
    font-size: 10px;
    color: #64748B;
    font-weight: 500;
}

.side-card-title {
    font-size: 13px;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 10px;
}

.monitoring-summary-box,
.monitoring-legend-box,
.monitoring-timeline-box {
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 14px;
    display: flex;
    flex-direction: column;
}

.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;
}

.summary-label-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-sq {
    font-size: 12px;
}

.legend-items-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.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;
}

.slot-timeline-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.slot-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #475569;
    padding: 6px 10px;
    border-radius: 6px;
    background-color: #F8FAFC;
}

.slot-item.active-slot-red {
    background-color: #FEF2F2;
    color: #DC2626;
    font-weight: 800;
    border: 1px solid #FCA5A5;
}

.slot-clock.red {
    color: #DC2626;
}

/* ==========================================================================
   NEW DASHBOARD OVERHAUL STYLES (MATCHING USER SCREENSHOT)
   ========================================================================== */

.dash-controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.dash-controls-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-dash-chip {
    background-color: #FFFFFF;
    border: 1px solid #CBD5E1;
    color: #334155;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
}

.btn-dash-chip.active {
    background-color: #FFFFFF;
    border-color: #94A3B8;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.dash-select {
    background-color: #FFFFFF;
    border: 1px solid #CBD5E1;
    color: #334155;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    outline: none;
}

.dash-kpi-grid-6 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.dash-middle-grid {
    display: flex;
    gap: 14px;
}

.dash-card-box {
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dash-card-box.flex-2 {
    flex: 2;
    min-width: 0;
}

.dash-card-box.flex-3 {
    flex: 3;
    min-width: 0;
}

.dash-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dash-card-title {
    font-size: 14px;
    font-weight: 800;
    color: #0F172A;
}

.dash-select-sm {
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 11.5px;
    color: #475569;
}

/* Donut Chart Component */
.donut-chart-container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.donut-ring-graphic {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: conic-gradient(#16A34A 0% 85.7%,
            #F59E0B 85.7% 89.8%,
            #EF4444 89.8% 99.6%,
            #94A3B8 99.6% 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.donut-ring-graphic::before {
    content: '';
    position: absolute;
    width: 74px;
    height: 74px;
    background-color: #FFFFFF;
    border-radius: 50%;
}

.donut-center-text {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.pct-big {
    font-size: 17px;
    font-weight: 800;
    color: #0F172A;
}

.pct-sub {
    font-size: 10px;
    color: #64748B;
    font-weight: 600;
    margin-top: 2px;
}

.donut-legend-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 11px;
}

.leg-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.leg-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.green-dot {
    background-color: #16A34A;
}

.yellow-dot {
    background-color: #F59E0B;
}

.red-dot {
    background-color: #EF4444;
}

.gray-dot {
    background-color: #94A3B8;
}

.purple-dot {
    background-color: #9333EA;
}

.leg-val {
    margin-left: auto;
    font-size: 11px;
    color: #334155;
}

.dash-card-bottom-banner {
    background-color: #ECFDF5;
    border: 1px solid #A7F3D0;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 11px;
    color: #065F46;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.arrow-right {
    margin-left: auto;
    font-weight: 800;
}

/* Line Chart Wrapper */
.line-chart-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
}

/* Right Stack (Alert Penting & Cuaca) */
.dash-right-stack {
    width: 310px;
    min-width: 310px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.alert-important-card {
    background-color: #FFFFFF;
    border: 1px solid #FCA5A5;
    border-radius: 12px;
    overflow: hidden;
}

.alert-card-header {
    background-color: #E30613;
    color: #FFFFFF;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 700;
}

.alert-see-all {
    color: #FFFFFF;
    font-size: 11px;
    text-decoration: underline;
}

.alert-items-list {
    display: flex;
    flex-direction: column;
    padding: 10px 14px;
    gap: 8px;
}

.alert-item-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11.5px;
    border-bottom: 1px dashed #F1F5F9;
    padding-bottom: 6px;
}

.alert-ic-wrap {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.red-ic {
    background-color: #FEF2F2;
    color: #DC2626;
}

.orange-ic {
    background-color: #FFFBEB;
    color: #D97706;
}

.alert-text-meta {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.alert-t-title {
    font-size: 12px;
    color: #0F172A;
}

.alert-t-sub {
    font-size: 10.5px;
    color: #64748B;
}

.alert-time {
    font-size: 10px;
    color: #EF4444;
    font-weight: 600;
}

/* Weather Card */
.weather-card {
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.weather-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.weather-city {
    font-size: 13px;
    font-weight: 800;
    color: #0F172A;
    display: block;
}

.weather-cond {
    font-size: 11px;
    color: #64748B;
}

.weather-temp-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.weather-temp {
    font-size: 26px;
    font-weight: 800;
    color: #0F172A;
}

.weather-sun-icon {
    font-size: 24px;
}

.weather-meta-row {
    display: flex;
    justify-content: space-between;
    background-color: #F8FAFC;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 11px;
}

.w-meta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.w-meta-item span {
    color: #64748B;
    font-size: 10px;
}

.w-meta-item strong {
    color: #0F172A;
}

/* Bottom Grid */
.dash-bottom-grid {
    display: flex;
    gap: 14px;
}

.badge-count-red {
    background-color: #EF4444;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 800;
    padding: 1px 7px;
    border-radius: 10px;
}

/* Indonesia Map Container */
.indonesia-map-container {
    position: relative;
    width: 100%;
    height: 220px;
    background-color: #F8FAFC;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.indonesia-svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.region-badge-overlay {
    position: absolute;
    background-color: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    padding: 4px 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
    z-index: 10;
}

.reg-name {
    font-size: 9.5px;
    font-weight: 800;
    color: #475569;
    letter-spacing: 0.3px;
}

.reg-count {
    font-size: 12px;
    font-weight: 800;
}

.reg-count.blue {
    color: #2563EB;
}

.reg-count.orange {
    color: #D97706;
}

.reg-count.green {
    color: #16A34A;
}

.reg-count.red {
    color: #DC2626;
}

.reg-count.purple {
    color: #9333EA;
}

.sumatera-badge {
    top: 30%;
    left: 18%;
}

.kalimantan-badge {
    top: 22%;
    left: 45%;
}

.sulawesi-badge {
    top: 28%;
    left: 68%;
}

.jawa-badge {
    bottom: 18%;
    left: 42%;
}

.bali-badge {
    bottom: 12%;
    right: 18%;
}

/* ==========================================================================
   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(3, 1fr);
    gap: 14px;
    margin-top: 14px;
}

.settings-card {
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.settings-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px dashed #F1F5F9;
}

.st-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.st-icon {
    font-size: 14px;
}

.st-title {
    font-size: 13.5px;
    font-weight: 800;
    color: #0F172A;
}

.sys-monitor-ic {
    width: 28px;
    height: 28px;
}

.st-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group-st {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-group-st label {
    font-size: 11.5px;
    font-weight: 700;
    color: #334155;
}

.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;
}

.btn-st-red {
    background-color: #E30613;
    color: #FFFFFF;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.btn-st-red:hover {
    background-color: #CC0000;
}

.btn-st-outline {
    background-color: #FFFFFF;
    color: #E30613;
    border: 1px solid #FCA5A5;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.btn-st-outline:hover {
    background-color: #FEF2F2;
}

/* Switch Toggle Styling */
.toggle-setting-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11.5px;
    padding-bottom: 6px;
    border-bottom: 1px dashed #F8FAFC;
}

.toggle-setting-row.no-ic {
    padding-left: 0;
}

.toggle-icon-wrap {
    font-size: 13px;
    flex-shrink: 0;
}

.toggle-text-meta {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.toggle-text-meta strong {
    font-size: 11.5px;
    color: #0F172A;
}

.toggle-text-meta span {
    font-size: 10px;
    color: #64748B;
}

.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 {
    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.red {
    background-color: #E30613;
}

.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 */
.mode-select-btns {
    display: flex;
    align-items: center;
    gap: 8px;
}

.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;
}

/* Data Management Items */
.data-mgmt-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11.5px;
    padding-bottom: 6px;
    border-bottom: 1px dashed #F1F5F9;
}

.data-mgmt-ic {
    font-size: 13px;
}

.data-mgmt-meta {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.data-mgmt-meta strong {
    font-size: 11.5px;
    color: #0F172A;
}

.data-mgmt-meta span {
    font-size: 10px;
    color: #64748B;
}

.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 */
.danger-reset-box {
    background-color: #FEF2F2;
    border: 1px solid #FCA5A5;
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    margin-top: 4px;
}

@media (max-width: 1280px) {
    .settings-grid-container {
        grid-template-columns: 1fr;
    }

    .inc-kpi-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .filter-inputs-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .inc-split-container {
        flex-direction: column;
    }

    .inc-detail-card {
        width: 100%;
        min-width: 100%;
    }
}

/* ==========================================================================
   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;
}

@media (max-width: 992px) {
    .profile-hero-main {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .profile-name-row {
        justify-content: 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;
    }

    .form-grid-2col {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   SETTINGS & FORM STYLES
   ========================================================================== */

.settings-card {
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.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;
    border: 1.5px solid #CBD5E1;
    color: #334155;
    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;
    justify-content: space-between;
    gap: 10px;
}

.toggle-text-meta {
    display: flex;
    flex-direction: column;
}

.toggle-text-meta strong {
    font-size: 12px;
    color: #0F172A;
}

.toggle-text-meta span {
    font-size: 10.5px;
    color: #64748B;
}

/* ==========================================================================
   BULK ACTION FLOATING BAR STYLES
   ========================================================================== */

.bulk-action-bar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #0F172A;
    color: #FFFFFF;
    padding: 10px 22px;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 9999;
    border: 1px solid #334155;
    animation: slideUpFloat 0.25s ease;
}

@keyframes slideUpFloat {
    from { transform: translate(-50%, 20px); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}

.bulk-count-badge {
    background-color: var(--primary-red);
    color: #FFFFFF;
    font-weight: 800;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 12px;
}

.btn-bulk-delete {
    background-color: #DC2626;
    color: #FFFFFF;
    border: none;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-bulk-delete:hover {
    background-color: #B91C1C;
}

.btn-bulk-export {
    background-color: #2563EB;
    color: #FFFFFF;
    border: none;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-bulk-export:hover {
    background-color: #1D4ED8;
}

/* ==========================================================================
   UNIVERSAL MODAL OVERLAY & POPUP STYLES
   ========================================================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(11, 15, 23, 0.8);
    backdrop-filter: blur(6px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.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;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    color: #FFFFFF;
    animation: modalPopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPopIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(12px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    padding: 18px 24px;
    border-bottom: 1px solid #1E2A3C;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.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;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-field {
    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,
.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 #172030 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;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    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;
}

.jnt-toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.jnt-toast-item {
    pointer-events: auto;
    min-width: 320px;
    max-width: 420px;
    background: #121824;
    border: 1px solid #10B981;
    border-left: 5px solid #10B981;
    border-radius: 10px;
    padding: 14px 18px;
    color: #FFFFFF;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transition: all 0.3s ease;
}

.jnt-toast-item.toast-error {
    border-color: #EF4444;
    border-left-color: #EF4444;
}

.jnt-toast-item.toast-info {
    border-color: #3B82F6;
    border-left-color: #3B82F6;
}

@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;
}

/* ==========================================================================
   REDESIGN TOTAL SLA VENDOR ENTERPRISE LOGISTICS DASHBOARD
   ========================================================================== */

/* Light Theme Body Polish */
body.light-body-theme {
    background-color: #F8FAFC !important;
    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;
    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 {
    /* Tidak pakai transition — menyebabkan flicker saat row di-reorder */
    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 {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    white-space: nowrap;
}

.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.yellow {
    background: #FEF3C7;
    color: #B45309;
    border: 1px solid #FCD34D;
}

.sla-status-pill.orange {
    background: #FFEDD5;
    color: #C2410C;
    border: 1px solid #FDBA74;
}

.sla-status-pill.late,
.sla-status-pill.red {
    background: #FEE2E2;
    color: #B91C1C;
    border: 1px solid #FCA5A5;
}

.sla-status-pill.transit,
.sla-status-pill.blue {
    background: #DBEAFE;
    color: #1D4ED8;
    border: 1px solid #93C5FD;
}

.sla-status-pill.gray {
    background: #F1F5F9;
    color: #64748B;
    border: 1px solid #E2E8F0;
}

.sla-live-countdown {
    font-family: 'JetBrains Mono', 'Plus Jakarta Sans', monospace;
    font-size: 12.5px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-block;
    white-space: nowrap;
    text-align: center;
    /* Anti-flicker: isolasi repaint di layer sendiri */
    will-change: contents;
    contain: content;
    min-width: 82px;
}

.sla-live-status {
    /* Anti-flicker: isolasi repaint status pill */
    contain: content;
    display: inline-block;
}

.sla-live-countdown.sla-rem-green {
    background: #DCFCE7;
    color: #15803D;
    border: 1px solid #86EFAC;
}

.sla-live-countdown.sla-rem-yellow {
    background: #FEF3C7;
    color: #B45309;
    border: 1px solid #FCD34D;
}

.sla-live-countdown.sla-rem-orange {
    background: #FFEDD5;
    color: #C2410C;
    border: 1px solid #FDBA74;
}

.sla-live-countdown.sla-rem-red {
    background: #FEE2E2;
    color: #B91C1C;
    border: 1px solid #FCA5A5;
}

.sla-live-countdown.sla-rem-gray {
    background: #F1F5F9;
    color: #64748B;
    border: 1px solid #CBD5E1;
}

/* Thin Scrollbar for Table */
.inc-table-scroll::-webkit-scrollbar {
    height: 6px;
    width: 6px;
}

.inc-table-scroll::-webkit-scrollbar-track {
    background: #F1F5F9;
    border-radius: 4px;
}

.inc-table-scroll::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 4px;
}

.inc-table-scroll::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}

/* ==========================================================================
   MONITORING 4 JAM CONTROL TOWER - ENTERPRISE REDESIGN
   ========================================================================== */

.monitoring-control-tower {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.slot-time-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.slot-badge-pill {
    background: #DBEAFE;
    color: #1E40AF;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid #BFDBFE;
}

.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-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);
}

/* 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: 24px;
    color: #FFFFFF;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 6px solid #E30613;
    position: relative;
    overflow: hidden;
}

.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(6, 1fr);
    gap: 14px;
    margin-top: 20px;
}

@media (max-width: 1280px) {
    .shift-kpi-grid-6 {
        grid-template-columns: repeat(3, 1fr);
    }
    .operator-cards-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .shift-kpi-grid-6 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.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; }

.action-badge-tag {
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    font-family: monospace;
}

.action-badge-tag.create { background: #10B981; color: #FFF; }
.action-badge-tag.update { background: #3B82F6; color: #FFF; }
.action-badge-tag.checkin { background: #F59E0B; color: #FFF; }
.action-badge-tag.incident { background: #EF4444; color: #FFF; }
.action-badge-tag.shift_start { background: #8B5CF6; color: #FFF; }
.action-badge-tag.shift_switch { background: #EC4899; color: #FFF; }
.action-badge-tag.shift_end { background: #64748B; color: #FFF; }

/* ==========================================================================
   LIVE SLA COUNTDOWN ENGINE STYLES
   ========================================================================== */
.sla-live-countdown {
    font-family: 'Courier New', Courier, monospace, var(--font-family);
    font-weight: 700;
    font-size: 13.5px;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-block;
    transition: color 0.3s ease, background 0.3s ease;
}

.sla-live-countdown.sla-rem-green {
    color: #10B981;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.sla-live-countdown.sla-rem-yellow {
    color: #F59E0B;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.sla-live-countdown.sla-rem-orange {
    color: #F97316;
    background: rgba(249, 115, 22, 0.12);
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.sla-live-countdown.sla-rem-red {
    color: #EF4444;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    font-weight: 800;
}

.sla-live-countdown.sla-rem-gray {
    color: #94A3B8;
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.sla-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    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
   ========================================================================== */

body.dark-body-theme {
    background-color: #0B0F17 !important;
    color: #E2E8F0 !important;
}

body.dark-body-theme .main-incoming-body,
body.dark-body-theme .app-container {
    background-color: #0B0F17 !important;
}

body.dark-body-theme .inc-table-card,
body.dark-body-theme .inc-detail-card,
body.dark-body-theme .inc-filter-card,
body.dark-body-theme .inc-kpi-card,
body.dark-body-theme .settings-card,
body.dark-body-theme .profile-hero-card,
body.dark-body-theme .modal-card {
    background-color: #121824 !important;
    border-color: #1E2A3C !important;
    color: #E2E8F0 !important;
}

body.dark-body-theme .inc-data-table thead th {
    background-color: #172030 !important;
    color: #94A3B8 !important;
    border-color: #1E2A3C !important;
}

body.dark-body-theme .inc-data-table tbody td {
    border-color: #1E2A3C !important;
    color: #E2E8F0 !important;
}

body.dark-body-theme .inc-data-table tbody tr:hover {
    background-color: rgba(30, 42, 60, 0.4) !important;
}

body.dark-body-theme input,
body.dark-body-theme select,
body.dark-body-theme textarea {
    background-color: #172030 !important;
    color: #FFFFFF !important;
    border-color: #2A3B52 !important;
}

body.dark-body-theme .inc-main-title,
body.dark-body-theme .inc-table-title,
body.dark-body-theme .detail-title,
body.dark-body-theme .st-title,
body.dark-body-theme .inc-kpi-number {
    color: #FFFFFF !important;
}

/* Toast Notifications Container */
.jnt-toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.jnt-toast-item {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 320px;
    max-width: 420px;
    background: #121824;
    border: 1px solid #1E2A3C;
    border-radius: 10px;
    padding: 14px 18px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.jnt-toast-item.toast-success {
    border-left: 4px solid #10B981;
}

.jnt-toast-item.toast-info {
    border-left: 4px solid #3B82F6;
}

.jnt-toast-item.toast-error {
    border-left: 4px solid #EF4444;
}

/* ==========================================================================
   PHASE 1: GLOBAL UI INTERACTIVITY REMEDIATION (Mobile Sidebar & User Dropdown)
   ========================================================================== */

/* 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;
}

@media (max-width: 992px) {
    .sidebar-panel {
        position: fixed !important;
        top: 0;
        left: 0;
        height: 100vh !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: 10px 0 30px rgba(0, 0, 0, 0.5) !important;
    }

    .hamburger-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        padding: 6px;
        border-radius: 6px;
        transition: background-color 0.15s ease;
    }

    .hamburger-btn:hover {
        background-color: rgba(100, 116, 139, 0.12);
    }
}

@media (min-width: 993px) {
    .sidebar-backdrop {
        display: none !important;
    }
    
    .sidebar-panel {
        transform: none !important;
    }
}

/* 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;
}

/* ==========================================================================
   RESPONSIVE SYSTEM — FULL DEVICE FLEXIBILITY
   Breakpoints: 1400 | 1280 | 1024 | 768 | 640 | 480 | 360
   Covers: Login · Sidebar · Topbar · Grids · Tables · Modals · Forms
   ========================================================================== */

/* ── LARGE DESKTOP (1400px+): give sidebar & topbar more breathing room ── */
@media (min-width: 1400px) {
    .sidebar-panel {
        width: 210px;
        min-width: 210px;
    }
    .jnt-logo-text {
        font-size: 18px;
    }
    .express-tag {
        font-size: 12px;
    }
    .dash-kpi-grid-6 {
        grid-template-columns: repeat(6, 1fr);
    }
    .inc-kpi-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* ── LAPTOP (≤1280px): collapse 6-col grids to 3 ── */
@media (max-width: 1280px) {
    .dashboard-layout {
        overflow: visible;
    }
    .dash-kpi-grid-6 {
        grid-template-columns: repeat(3, 1fr);
    }
    .dash-middle-grid {
        flex-direction: column;
    }
    .inc-kpi-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .filter-inputs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .shift-kpi-grid-6 {
        grid-template-columns: repeat(3, 1fr);
    }
    .settings-grid-container {
        grid-template-columns: 1fr;
    }
    .inc-split-container {
        flex-direction: column;
    }
    .inc-detail-card {
        width: 100%;
        min-width: 100%;
    }
    .operator-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* ── TABLET LANDSCAPE (≤1024px): sidebar still visible but narrower ── */
@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;
    }
    .dash-kpi-grid-6 {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    .inc-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .filter-inputs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .form-grid-2col {
        grid-template-columns: 1fr;
    }
    .main-dashboard-body {
        padding: 16px 18px;
    }
}

/* ── TABLET PORTRAIT (≤992px): sidebar becomes mobile overlay ── */
@media (max-width: 992px) {
    /* Sidebar: hidden drawer */
    .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;
    }

    /* Hamburger: always visible */
    .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);
        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;
    }

    /* Main content: full width */
    .main-incoming-body,
    .main-dashboard-body {
        width: 100% !important;
        min-width: 0 !important;
        padding: 14px 16px;
    }

    /* Topbar adjustments */
    .inc-top-nav {
        padding-bottom: 10px;
    }
    .inc-main-title {
        font-size: 17px !important;
    }
    .inc-breadcrumb {
        font-size: 11.5px;
    }
    .inc-date-chip {
        display: none;
    }
    .inc-user-meta {
        display: none; /* hide name/role text — show only avatar on tablet */
    }
    .inc-top-right {
        gap: 8px;
    }

    /* Grids */
    .dash-kpi-grid-6 {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .inc-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .filter-inputs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .shift-kpi-grid-6 {
        grid-template-columns: repeat(2, 1fr);
    }
    .operator-cards-grid {
        grid-template-columns: 1fr;
    }
    .form-grid-2col {
        grid-template-columns: 1fr;
    }
    .dash-middle-grid {
        flex-direction: column;
    }
    .inc-split-container {
        flex-direction: column;
    }
    .inc-detail-card {
        width: 100%;
        min-width: 100%;
    }

    /* Profile */
    .profile-hero-main {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-top: -30px;
    }
    .profile-name-row {
        justify-content: center;
    }
    .profile-hero-actions {
        text-align: center;
    }
    .profile-sub-meta {
        justify-content: center;
    }

    /* Dash controls */
    .dash-controls-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .dash-controls-left {
        flex-wrap: wrap;
        width: 100%;
    }

    /* Modals */
    .modal-box,
    .form-modal-card {
        width: 96% !important;
        max-width: 96% !important;
        margin: 16px auto !important;
        border-radius: 14px !important;
    }
    .modal-body {
        max-height: 65vh;
        overflow-y: auto;
    }

    /* Tables */
    .inc-table-scroll,
    .table-responsive-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .inc-data-table {
        min-width: 700px;
    }
}

/* ── MOBILE (≤768px): full one-column layout ── */
@media (max-width: 768px) {
    /* Login page: stack vertically */
    .login-section {
        flex-direction: column;
    }
    .banner-panel {
        flex: 0 0 180px;
        width: 100%;
        min-height: 180px;
    }
    .banner-image {
        object-position: center 30%;
    }
    .form-panel {
        flex: 1;
        width: 100%;
        padding: 28px 20px 32px;
    }
    .login-card {
        padding: 32px 24px 24px;
        border-radius: 16px;
        max-width: 100%;
    }
    .login-title {
        font-size: 26px;
    }
    .red-diagonal-accent {
        width: 280px;
        height: 280px;
    }

    /* Topbar: collapse more */
    .inc-user-meta {
        display: none;
    }
    .inc-notif-bell {
        width: 34px;
        height: 34px;
    }
    .inc-avatar-img {
        width: 32px;
        height: 32px;
    }

    /* Grids: single column */
    .dash-kpi-grid-6 {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .inc-kpi-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .filter-inputs-grid {
        grid-template-columns: 1fr;
    }
    .shift-kpi-grid-6 {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .form-grid-2col {
        grid-template-columns: 1fr;
    }

    /* Action rows: stack */
    .inc-action-row,
    .action-buttons-right {
        flex-wrap: wrap;
        gap: 8px;
    }
    .btn-dark-green,
    .btn-dark-gray,
    .btn-jnt-red,
    .btn-inc-add,
    .btn-inc-import {
        font-size: 12px;
        padding: 7px 12px;
    }

    /* Page heading */
    .inc-main-title {
        font-size: 16px !important;
    }

    /* Main body padding */
    .main-incoming-body,
    .main-dashboard-body {
        padding: 12px 12px;
    }

    /* Tables scroll */
    .inc-data-table {
        min-width: 600px;
        font-size: 12px;
    }
    .inc-data-table th,
    .inc-data-table td {
        padding: 8px 10px !important;
    }

    /* Dashboard stats row */
    .dash-stat-row {
        flex-direction: column;
        gap: 10px;
    }

    /* Profile stats: 2 columns */
    .profile-stats-row {
        grid-template-columns: 1fr 1fr;
    }

    /* Topbar dropdown */
    .topbar-user-dropdown {
        min-width: 190px;
        right: -4px;
    }

    /* Toast notifications */
    .jnt-toast-container {
        right: 12px;
        bottom: 16px;
    }
    .jnt-toast-item {
        min-width: 280px;
        max-width: calc(100vw - 24px);
        font-size: 12px;
        padding: 12px 14px;
    }
}

/* ── SMALL MOBILE (≤640px): fine-tune compact layout ── */
@media (max-width: 640px) {
    /* Login */
    .login-card {
        padding: 28px 18px 20px;
    }
    .login-title {
        font-size: 24px;
    }
    .login-subtitle {
        font-size: 13px;
    }
    .form-input {
        font-size: 14px;
        padding: 12px 42px;
    }
    .banner-panel {
        flex: 0 0 140px;
        min-height: 140px;
    }

    /* Topbar: minimal */
    .inc-top-right {
        gap: 6px;
    }
    .inc-date-chip {
        display: none;
    }
    .inc-main-title {
        font-size: 15px !important;
    }
    .inc-breadcrumb {
        font-size: 11px;
        display: none; /* hide breadcrumb on very small screens */
    }

    /* KPI grids */
    .dash-kpi-grid-6 {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .inc-kpi-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .inc-kpi-number {
        font-size: 20px;
    }
    .inc-kpi-label {
        font-size: 11px;
    }
    .inc-kpi-card {
        padding: 12px;
    }

    /* Action rows */
    .dash-controls-row {
        gap: 8px;
    }
    .dash-controls-left {
        gap: 6px;
    }
    .btn-dash-chip,
    .dash-select {
        font-size: 12px;
        padding: 6px 10px;
    }

    /* Modals */
    .modal-box,
    .form-modal-card {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 16px 16px 0 0 !important;
        margin-bottom: 0 !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
    }
    .modal-overlay,
    .form-modal-overlay {
        align-items: flex-end !important;
    }
    .modal-body {
        max-height: 60vh;
    }

    /* Tables */
    .inc-data-table {
        min-width: 560px;
        font-size: 11.5px;
    }

    /* Profile */
    .profile-hero-img {
        width: 80px;
        height: 80px;
    }
    .profile-full-name {
        font-size: 18px;
    }
    .profile-stats-row {
        grid-template-columns: 1fr 1fr;
    }
    .p-stat-val {
        font-size: 13px;
    }

    /* User chip in topbar — show only avatar */
    .inc-user-meta {
        display: none;
    }
    .inc-avatar-img {
        width: 30px;
        height: 30px;
    }
}

/* ── VERY SMALL MOBILE (≤480px) ── */
@media (max-width: 480px) {
    /* Login: single column, no banner */
    .banner-panel {
        display: none; /* hide banner on very small phones */
    }
    .form-panel {
        padding: 20px 16px 24px;
    }
    .login-card {
        padding: 24px 16px 20px;
        border-radius: 12px;
    }
    .login-title {
        font-size: 22px;
    }

    /* Topbar hamburger + title only */
    .inc-top-right {
        gap: 4px;
    }
    .inc-notif-bell {
        width: 30px;
        height: 30px;
    }
    .inc-notif-bell svg {
        width: 15px;
        height: 15px;
    }

    /* Grids: single column */
    .dash-kpi-grid-6 {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    .inc-kpi-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    .shift-kpi-grid-6 {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    .filter-inputs-grid {
        grid-template-columns: 1fr;
    }

    /* KPI cards: compact */
    .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;
    }

    /* Main padding */
    .main-incoming-body,
    .main-dashboard-body {
        padding: 10px 10px;
    }

    /* Profile */
    .profile-stats-row {
        grid-template-columns: 1fr;
    }
    .p-stat-box {
        border-right: none;
        border-bottom: 1px solid #F1F5F9;
    }
    .profile-hero-main {
        padding: 0 14px 16px;
    }

    /* Toast */
    .jnt-toast-item {
        min-width: 260px;
        font-size: 11.5px;
    }

    /* Pagination */
    .inc-pagination {
        flex-wrap: wrap;
        gap: 4px;
        justify-content: center;
    }
}

/* ── MINIMUM (≤360px): absolute minimum usable layout ── */
@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;
    }
    .dash-kpi-grid-6,
    .inc-kpi-grid,
    .shift-kpi-grid-6 {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    .main-incoming-body,
    .main-dashboard-body {
        padding: 8px;
    }
    .sidebar-panel {
        width: 240px !important;
        min-width: 240px !important;
    }
}

/* ── UTILITY: Force tables to scroll on all mobile ── */
@media (max-width: 992px) {
    /* All table wrappers get horizontal scroll */
    .inc-table-scroll,
    .table-responsive-wrapper,
    [class*="table-scroll"],
    [class*="table-wrapper"] {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    /* Action row wrapping */
    .sla-header-actions,
    .action-buttons-right,
    .inc-action-row {
        flex-wrap: wrap;
        gap: 8px;
    }

    /* Fix overflow on page body */
    .dashboard-layout {
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }
    .main-incoming-body,
    .main-dashboard-body {
        height: auto;
        overflow-y: visible;
    }

    /* Sidebar footer: hide truck image on mobile to save space */
    .truck-image-wrapper {
        display: none;
    }
}

/* ── LOGIN SCROLL LOCK OVERRIDE — Tablet & Mobile ──────────────────────────
   Di desktop, login page mengunci body supaya hanya form-panel yang scroll.
   Di tablet/HP (≤992px), lepas kunci agar semua konten tetap bisa dijangkau.
   ─────────────────────────────────────────────────────────────────────────── */
@media (max-width: 992px) {
    body.login-page {
        overflow: auto;
        height: auto;
    }
    body.login-page .app-container {
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }
    .login-section {
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }
    .form-panel {
        max-height: none;
        overflow-y: visible;
    }
}

@media (max-width: 768px) {
    .form-panel {
        max-height: none;
        overflow-y: visible;
        min-height: auto;
    }
    .login-card {
        margin-bottom: 16px;
    }
}

/* ── PRINT MEDIA: hide UI chrome, show content ── */
@media print {
    .sidebar-panel,
    .inc-top-nav,
    .inc-action-row,
    .hamburger-btn,
    .sidebar-backdrop,
    .jnt-toast-container,
    .topbar-user-dropdown,
    .modal-overlay,
    .form-modal-overlay {
        display: none !important;
    }
    .main-incoming-body,
    .main-dashboard-body {
        padding: 0;
        width: 100%;
    }
    .inc-table-scroll,
    .table-responsive-wrapper {
        overflow: visible;
    }
    .inc-data-table {
        min-width: unset;
        font-size: 11px;
    }
}

/* ==========================================================================
   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; /* Critical for grid children to prevent overflow */
    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;
}

@media (max-width: 1440px) {
    .exec-middle-4grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 1100px) {
    .exec-kpi-5grid, .exec-bottom-5grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .exec-lower-2grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .exec-kpi-5grid, .exec-bottom-5grid, .exec-middle-4grid {
        grid-template-columns: 1fr;
    }
    .exec-header-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}