:root {
    --ui-bg: #f4f7fb;
    --ui-bg-soft: #eef2f8;
    --ui-surface: #ffffff;
    --ui-surface-soft: #f8faff;
    --ui-sidebar: #111827;
    --ui-sidebar-soft: #182133;
    --ui-line: #e5e9f2;
    --ui-line-strong: #d8e0ec;
    --ui-text: #111827;
    --ui-heading: #0f172a;
    --ui-muted: #6b7280;
    --ui-muted-strong: #475569;
    --ui-primary: #727cf5;
    --ui-primary-soft: #eef0ff;
    --ui-primary-strong: #5865f2;
    --ui-success: #10b981;
    --ui-danger: #ef476f;
    --ui-warning: #f59e0b;
    --ui-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    --ui-radius-lg: 18px;
    --ui-radius-md: 12px;
    --ui-radius-sm: 9px;
    --ui-sidebar-width: 240px;
    --ui-sidebar-width-folded: 84px;
    --ui-navbar-height: 60px;
}

.nh-card {
    margin-top: 24px;
    padding: 24px;
    border: 1px solid var(--ui-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.alert {
    margin-bottom: 18px;
    padding: 13px 16px;
    border-radius: 14px;
    font-weight: 700;
}

.alert-success {
    border: 1px solid #bbf7d0;
    background: #ecfdf5;
    color: #166534;
}

.alert-danger {
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.alert-warning {
    border: 1px solid #fde68a;
    background: #fffbeb;
    color: #92400e;
}

.upload-hero {
    align-items: center;
}

.upload-hero h1 {
    margin-bottom: 0;
}

.upload-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    gap: 20px;
    align-items: stretch;
}

.upload-panel {
    margin-top: 24px;
}

.upload-panel h2 {
    margin: 4px 0 0;
    color: var(--ui-heading);
    font-size: 1.18rem;
    letter-spacing: -0.03em;
}

.upload-panel-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.upload-icon,
.upload-dropzone-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ui-primary-soft);
    color: var(--ui-primary);
}

.upload-icon {
    width: 46px;
    height: 46px;
}

.upload-icon svg,
.upload-dropzone-icon svg,
.upload-submit-btn svg {
    width: 18px;
    height: 18px;
}

.upload-form {
    display: grid;
    gap: 18px;
}

.upload-dropzone {
    position: relative;
    border: 1px dashed #bcc7dc;
    background:
        linear-gradient(135deg, rgba(114, 124, 245, 0.08), rgba(255, 255, 255, 0.92)),
        #fff;
}

.upload-dropzone label {
    display: grid;
    justify-items: center;
    gap: 8px;
    min-height: 178px;
    margin: 0;
    padding: 28px;
    text-align: center;
    cursor: pointer;
}

.upload-dropzone-icon {
    width: 54px;
    height: 54px;
    border: 1px solid rgba(114, 124, 245, 0.22);
}

.upload-dropzone strong {
    color: var(--ui-heading);
    font-size: 1rem;
}

.upload-dropzone small {
    max-width: 360px;
    color: var(--ui-muted);
    font-size: 0.86rem;
    line-height: 1.5;
}

.upload-dropzone em {
    margin-top: 4px;
    color: #94a3b8;
    font-size: 0.8rem;
    font-style: normal;
    font-weight: 700;
}

.upload-dropzone input[type="file"] {
    width: calc(100% - 32px);
    margin: 0 16px 16px;
    background: #fff;
}

.upload-dropzone.is-dragover {
    border-color: var(--ui-primary);
    background:
        linear-gradient(135deg, rgba(114, 124, 245, 0.16), rgba(255, 255, 255, 0.96)),
        #fff;
}

.upload-dropzone.has-file {
    border-color: rgba(16, 185, 129, 0.65);
}

.upload-dropzone.has-file .upload-dropzone-icon {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}

.upload-dropzone.has-file em {
    color: #047857;
}

.upload-dropzone.is-invalid {
    border-color: rgba(239, 71, 111, 0.7);
    background: #fff5f7;
}

.upload-dropzone.is-invalid em {
    color: #be123c;
}

.upload-submit-btn {
    min-height: 52px;
    justify-content: center;
    gap: 9px;
    border: 1px solid var(--ui-primary-strong);
    box-shadow: 0 14px 28px rgba(88, 101, 242, 0.2);
}

.upload-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(88, 101, 242, 0.28);
}

.upload-guide-panel {
    background:
        linear-gradient(180deg, rgba(238, 240, 255, 0.72), rgba(255, 255, 255, 0.95)),
        #fff;
}

.upload-guide-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.upload-guide-list div {
    padding: 14px;
    border: 1px solid var(--ui-line);
    background: rgba(255, 255, 255, 0.82);
}

.upload-guide-list strong,
.upload-guide-list span {
    display: block;
}

.upload-guide-list strong {
    color: var(--ui-heading);
    font-size: 0.88rem;
}

.upload-guide-list span {
    margin-top: 6px;
    color: var(--ui-muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

.upload-history-card {
    margin-top: 20px;
}

.upload-result-card {
    margin-top: 18px;
}

.upload-result-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.upload-result-head h2 {
    margin: 4px 0 0;
    color: var(--ui-heading);
    font-size: 1.18rem;
    letter-spacing: -0.03em;
}

.upload-result-badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 8px 12px;
    background: #ecfdf5;
    color: #047857;
    font-size: 0.78rem;
    font-weight: 900;
    white-space: nowrap;
}

.upload-result-badge.has-warning {
    background: #fffbeb;
    color: #92400e;
}

.upload-result-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.upload-result-stats div {
    padding: 14px;
    border: 1px solid var(--ui-line);
    background: var(--ui-surface-soft);
}

.upload-result-stats span,
.upload-result-stats strong {
    display: block;
}

.upload-result-stats span {
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.upload-result-stats strong {
    margin-top: 6px;
    color: var(--ui-heading);
    font-size: 1.4rem;
    line-height: 1;
}

.upload-result-list {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

.upload-result-item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--ui-line);
    background: #fff;
}

.upload-result-item.is-success {
    border-left: 4px solid var(--ui-success);
}

.upload-result-item.is-failed {
    border-left: 4px solid var(--ui-danger);
    background: #fff7f7;
}

.upload-result-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ui-primary);
}

.upload-result-item.is-success .upload-result-icon {
    color: var(--ui-success);
}

.upload-result-item.is-failed .upload-result-icon {
    color: var(--ui-danger);
}

.upload-result-icon svg {
    width: 20px;
    height: 20px;
}

.upload-result-item strong,
.upload-result-item small {
    display: block;
}

.upload-result-item strong {
    color: var(--ui-heading);
    font-size: 0.88rem;
}

.upload-result-item small {
    margin-top: 3px;
    color: var(--ui-muted);
    font-size: 0.8rem;
}

.upload-result-count {
    color: var(--ui-muted-strong);
    font-size: 0.8rem;
    font-weight: 900;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .upload-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .upload-result-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .upload-guide-panel {
        margin-top: 16px;
    }
}

@media (max-width: 640px) {
    .upload-hero {
        align-items: flex-start;
    }

    .upload-hero .nh-btn {
        width: 100%;
        justify-content: center;
    }

    .upload-panel {
        padding: 16px;
    }

    .upload-panel-head {
        align-items: flex-start;
    }

    .upload-dropzone label {
        min-height: 150px;
        padding: 22px 16px;
    }

    .upload-submit-btn {
        width: 100%;
    }

    .upload-result-head {
        display: grid;
    }

    .upload-result-badge {
        width: max-content;
    }

    .upload-result-item {
        grid-template-columns: 28px minmax(0, 1fr);
    }

    .upload-result-count {
        grid-column: 2;
    }
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4f46e5;
    font-size: 0.74rem;
    font-weight: 800;
    line-height: 1;
}

.noble-login-body {
    background: #f4f7fb;
}

.noble-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 18px;
}

.noble-login-card {
    width: min(850px, 100%);
    min-height: 472px;
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--ui-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.noble-login-visual {
    position: relative;
    min-height: 472px;
    background:
        linear-gradient(160deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.76)),
        radial-gradient(circle at 25% 20%, rgba(114, 124, 245, 0.9), transparent 24%),
        linear-gradient(145deg, #111827 0%, #1e293b 45%, #727cf5 100%);
}

.noble-login-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px 26px),
        linear-gradient(45deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 22px);
    opacity: 0.42;
}

.noble-login-visual-overlay {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    color: #fff;
}

.noble-login-chip {
    width: fit-content;
    margin-bottom: 18px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.noble-login-visual h1 {
    margin: 0;
    font-size: 1.65rem;
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.noble-login-visual p {
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
    line-height: 1.65;
}

.noble-login-form {
    padding: 48px 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nobleui-logo {
    width: fit-content;
    display: inline-flex;
    margin-bottom: 12px;
    color: #111827;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    text-decoration: none;
}

.nobleui-logo span {
    color: var(--ui-primary);
}

.nh77-login-logo {
    align-items: baseline;
    gap: 6px;
    letter-spacing: -0.04em;
}

.nh77-login-logo span {
    color: var(--ui-primary);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.noble-login-form h2 {
    margin: 0 0 8px;
    color: var(--ui-heading);
    font-size: 1.15rem;
    font-weight: 500;
}

.noble-login-subtitle {
    margin: 0 0 24px;
    color: var(--ui-muted);
    font-size: 0.92rem;
}

.noble-login-fields {
    display: grid;
    gap: 16px;
}

.noble-login-fields .form-group {
    margin-bottom: 0;
}

.noble-login-fields input[type="email"],
.noble-login-fields input[type="password"] {
    height: 44px;
    border-radius: 6px;
    background: #fff;
}

.noble-login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: var(--ui-muted);
    font-size: 0.88rem;
}

.noble-login-options a {
    color: var(--ui-primary);
    font-weight: 600;
    text-decoration: none;
}

.noble-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.noble-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--ui-primary);
}

.noble-login-submit {
    position: relative;
    width: 132px;
    min-height: 42px;
    justify-content: center;
    overflow: hidden;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, #6571ff 0%, #727cf5 52%, #8b5cf6 100%);
    box-shadow: 0 10px 22px rgba(101, 113, 255, 0.32);
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.01em;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.noble-login-submit::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.24) 42%, transparent 72%);
    transform: translateX(-120%);
    transition: transform 0.45s ease;
}

.noble-login-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(101, 113, 255, 0.42);
    filter: saturate(1.04);
}

.noble-login-submit:hover::before {
    transform: translateX(120%);
}

.noble-login-submit:active {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(101, 113, 255, 0.28);
}

.noble-login-footnote {
    margin: 2px 0 0;
    color: var(--ui-muted);
    font-size: 0.84rem;
    line-height: 1.55;
}

@media (max-width: 767px) {
    .noble-login-card {
        grid-template-columns: 1fr;
    }

    .noble-login-visual {
        min-height: 190px;
    }

    .noble-login-form {
        padding: 32px 24px;
    }

    .noble-login-options {
        align-items: flex-start;
        flex-direction: column;
    }
}

.selesai-overview {
    margin-top: 0;
    margin-bottom: 24px;
}

.selesai-top-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 14px;
}

.selesai-top-actions .nh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    min-height: 42px;
    padding: 11px 18px;
    border: 1px solid var(--ui-primary);
    background: var(--ui-primary);
    color: #fff !important;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(114, 124, 245, 0.22);
}

.selesai-top-actions .nh-btn:hover {
    background: var(--ui-primary-strong);
    border-color: var(--ui-primary-strong);
}

.selesai-hero {
    margin-bottom: 22px;
    padding: 0 0 18px;
    border-bottom: 1px solid var(--ui-line);
}

.dashboard-stat-grid.selesai-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 0;
}

.stat-card.selesai-stat-card {
    display: grid;
    gap: 10px;
    min-height: 150px;
    padding: 22px;
    border: 1px solid var(--ui-line);
    background: #fff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.stat-card.selesai-stat-card strong {
    color: var(--ui-heading);
    font-size: clamp(1.45rem, 1.7vw, 1.9rem);
    line-height: 1;
}

.stat-card.selesai-stat-card p {
    margin: 0;
    color: var(--ui-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.selesai-table-wrap {
    overflow-x: auto;
}

.selesai-table th,
.selesai-table td {
    vertical-align: top;
}

.price-box {
    display: grid;
    gap: 6px;
    min-width: 230px;
}

.contact-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.contact-mini-grid > div {
    padding: 8px 10px;
    border: 1px solid var(--ui-line);
    background: #f8fafc;
}

.contact-mini-grid span {
    display: block;
    margin-bottom: 3px;
    color: #94a3b8;
    font-size: 0.64rem;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.contact-mini-grid strong {
    display: block;
    color: var(--ui-heading);
    font-size: 0.78rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.vehicle-documents-box {
    display: grid;
    gap: 8px;
    min-width: 230px;
    padding: 10px;
    border: 1px solid var(--ui-line);
    background: #f8fafc;
}

.vehicle-documents-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.vehicle-documents-head span,
.vehicle-document-upload span {
    display: block;
    color: #94a3b8;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.vehicle-documents-head strong {
    display: block;
    margin-top: 2px;
    color: var(--ui-heading);
    font-size: 0.88rem;
}

.vehicle-document-list {
    display: grid;
    gap: 6px;
}

.vehicle-document-item {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 8px;
    align-items: center;
    padding: 8px 34px 8px 10px;
    border: 1px solid #dbe4f0;
    background: #fff;
}

.vehicle-document-view {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ui-primary);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 900;
    text-align: left;
    overflow-wrap: anywhere;
}

.vehicle-document-view:hover {
    text-decoration: underline;
}

.vehicle-document-item > span {
    color: #94a3b8;
    font-size: 0.68rem;
    font-weight: 800;
    text-align: right;
}

.vehicle-document-delete {
    position: absolute;
    top: 7px;
    right: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 1px solid #fecaca;
    background: #fff1f2;
    color: #b91c1c;
    cursor: pointer;
    opacity: 0;
    transform: translateY(2px);
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.vehicle-document-delete svg {
    width: 13px;
    height: 13px;
}

.vehicle-document-item:hover .vehicle-document-delete,
.vehicle-document-delete:focus-visible {
    opacity: 1;
    transform: translateY(0);
}

.vehicle-document-upload {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: end;
}

.vehicle-document-upload label {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.vehicle-document-upload input[type="file"] {
    width: 100%;
    min-height: 36px;
    padding: 7px;
    border: 1px solid #dbe4f0;
    background: #fff;
    color: var(--ui-muted-strong);
    font-size: 0.74rem;
}

.vehicle-document-upload button {
    min-height: 36px;
    padding: 8px 12px;
    border: 1px solid var(--ui-primary);
    background: var(--ui-primary);
    color: #fff;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 900;
}

.vehicle-document-upload button:hover {
    background: var(--ui-primary-strong);
    border-color: var(--ui-primary-strong);
}

.vehicle-import-pdf-view {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 30px;
    margin-top: 8px;
    padding: 7px 10px;
    border: 1px solid #c7d2fe;
    background: #eef2ff;
    color: var(--ui-primary);
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(114, 124, 245, 0.1);
}

.vehicle-import-pdf-view:hover {
    border-color: var(--ui-primary);
    background: var(--ui-primary);
    color: #fff;
}

.selesai-cancel-form {
    margin-top: 8px;
}

.selesai-cancel-btn {
    width: fit-content;
}

.vehicle-plate-head {
    display: block;
}

.mobile-vehicle-summary {
    display: none;
}

tr[id^="vehicle-"] {
    scroll-margin-top: calc(var(--ui-navbar-height) + 16px);
}

.price-form {
    display: grid;
    gap: 8px;
    min-width: 260px;
}

.price-form input {
    width: 100%;
    min-height: 36px;
    padding: 8px 10px;
    border: 1px solid var(--ui-line);
    background: #fff;
    color: var(--ui-ink);
    font-size: 0.84rem;
}

.other-cost-editor,
.other-cost-row {
    display: grid;
    gap: 8px;
}

.other-cost-row {
    padding: 8px;
    border: 1px solid var(--ui-line);
    background: #f8fafc;
}

.other-cost-item {
    display: grid;
    gap: 2px;
    padding: 6px 8px;
    border-left: 2px solid var(--ui-primary);
    background: #f8fafc;
}

.floating-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.purchase-line {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.floating-summary > div {
    padding: 8px 10px;
    border: 1px solid var(--ui-line);
    background: #f8fafc;
}

.floating-summary span {
    display: block;
    margin-bottom: 4px;
    color: #94a3b8;
    font-size: 0.64rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.floating-summary strong {
    color: var(--ui-heading);
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: 0.86rem;
    line-height: 1.18;
}

.settlement-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin-top: 0;
    padding: 6px 10px;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.settlement-badge.settled {
    background: #ecfdf5;
    color: #166534;
}

.settlement-badge.pending {
    background: #fef2f2;
    color: #b91c1c;
}

.payment-entry-editor,
.payment-history {
    display: grid;
    gap: 8px;
    margin-top: 8px;
    padding: 10px;
    border: 1px solid var(--ui-line);
    background: #fff;
}

.payment-history-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 8px;
    border: 1px solid var(--ui-line);
    background: #f8fafc;
}

.payment-delete-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid #fecaca;
    background: #fff;
    color: #b91c1c;
    cursor: pointer;
    opacity: 0;
    transform: translateY(2px);
    transition: opacity 0.16s ease, transform 0.16s ease, background 0.16s ease;
}

.payment-delete-btn svg {
    width: 16px;
    height: 16px;
}

.payment-history-item:hover .payment-delete-btn,
.payment-delete-btn:focus-visible {
    opacity: 1;
    transform: translateY(0);
}

.payment-delete-btn:hover {
    background: #fef2f2;
}

.workflow-action-bar {
    position: sticky;
    top: calc(var(--ui-navbar-height) + 10px);
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid var(--ui-line);
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.workflow-action-bar[hidden] {
    display: none !important;
}

.workflow-action-bar .small {
    color: var(--ui-muted-strong);
}

.workflow-action-bar .small strong {
    color: var(--ui-heading);
}

.workflow-action-bar .nh-btn:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.workflow-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 18px;
    border: 1px solid var(--ui-primary);
    background: var(--ui-primary);
    color: #fff !important;
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(114, 124, 245, 0.24);
    transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.workflow-submit-btn:not(:disabled):hover {
    background: var(--ui-primary-strong);
    border-color: var(--ui-primary-strong);
    box-shadow: 0 16px 28px rgba(114, 124, 245, 0.3);
    transform: translateY(-1px);
}

.workflow-submit-btn:disabled {
    box-shadow: none;
    transform: none;
}

.workflow-action-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.workflow-action-controls select {
    width: 260px;
    min-height: 40px;
}

.workflow-row-tools {
    display: grid;
    gap: 8px;
    justify-items: start;
    min-width: 132px;
}

.owner-waris-dropdown {
    width: 180px;
}

.waris-empty-cell {
    min-width: 110px;
}

.waris-empty-cell .workflow-row-tools {
    min-height: 42px;
}

.owner-waris-add-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid transparent;
    background: transparent;
    color: #94a3b8;
    font: inherit;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
    opacity: 0;
    transform: translateY(2px);
    transition: 0.16s ease;
}

.owner-waris-add-ghost svg {
    width: 15px;
    height: 15px;
    stroke-width: 2.4;
}

.waris-empty-cell:hover .owner-waris-add-ghost,
.owner-waris-add-ghost.is-visible,
.owner-waris-add-ghost:focus-visible {
    border-color: var(--ui-line-strong);
    background: #fff;
    color: var(--ui-primary);
    opacity: 1;
    transform: translateY(0);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.owner-waris-dropdown summary {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    min-height: 36px;
    padding: 8px 10px;
    border: 1px solid var(--ui-line);
    background: #f8faff;
    color: var(--ui-muted-strong);
    cursor: pointer;
    list-style: none;
}

.owner-waris-dropdown summary::-webkit-details-marker {
    display: none;
}

.owner-waris-dropdown summary::after {
    content: "⌄";
    color: #94a3b8;
    font-size: 0.86rem;
    font-weight: 900;
    transition: transform 0.16s ease;
}

.owner-waris-dropdown[open] summary::after {
    transform: rotate(180deg);
}

.owner-waris-dropdown summary strong {
    color: var(--ui-heading);
    font-size: 1rem;
    line-height: 1;
}

.owner-waris-dropdown summary span {
    margin-right: auto;
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.owner-waris-panel {
    display: grid;
    gap: 8px;
    margin-top: 8px;
    padding: 10px;
    border: 1px solid var(--ui-line);
    background: #fff;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.owner-waris-item {
    display: grid;
    gap: 2px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eef2f7;
}

.owner-waris-item strong {
    color: var(--ui-heading);
    font-size: 0.8rem;
    line-height: 1.25;
}

.owner-waris-item span,
.owner-waris-empty,
.owner-waris-more {
    color: var(--ui-muted-strong);
    font-size: 0.74rem;
    line-height: 1.35;
}

.owner-waris-image-link,
.owner-waris-family-link,
.waris-image-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: max-content;
    margin-top: 5px;
    padding: 5px 7px;
    border: 1px solid var(--ui-line);
    background: var(--ui-primary-soft);
    color: var(--ui-primary) !important;
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
}

.owner-waris-image-link:hover,
.owner-waris-family-link:hover,
.waris-image-link:hover {
    border-color: var(--ui-primary);
    background: #eef2ff;
}

.owner-waris-family-link {
    display: grid;
    gap: 3px;
    padding: 8px 9px;
    border: 1px solid var(--ui-line);
    background: #eef6ff;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.owner-waris-family-link small {
    color: var(--ui-muted-strong);
    font-size: 0.68rem;
    font-weight: 800;
}

.owner-waris-family-link pre,
.owner-waris-phone-notes pre,
.waris-phone-notes pre {
    margin: 4px 0 0;
    white-space: pre-wrap;
    color: var(--ui-heading);
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.35;
}

.owner-waris-phone-notes,
.waris-phone-notes {
    display: grid;
    gap: 2px;
    margin-top: 7px;
    padding: 8px;
    border-left: 2px solid var(--ui-primary);
    background: #f8faff;
}

.owner-waris-phone-notes strong,
.waris-phone-notes strong {
    color: #94a3b8;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.owner-waris-reference {
    display: grid;
    gap: 8px;
    width: 160px;
}

.owner-waris-more {
    font-weight: 800;
}

.owner-waris-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 34px;
    padding: 8px 10px;
    border: 1px solid var(--ui-primary);
    background: var(--ui-primary);
    color: #fff !important;
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(114, 124, 245, 0.18);
}

.owner-waris-button:hover {
    background: var(--ui-primary-strong);
    border-color: var(--ui-primary-strong);
}

.owner-waris-detail-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 32px;
    padding: 8px 10px;
    border: 1px solid var(--ui-line-strong);
    background: #fff;
    color: var(--ui-primary);
    font-size: 0.76rem;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
}

.owner-waris-detail-link:hover {
    border-color: var(--ui-primary);
    background: var(--ui-primary-soft);
}

.table-state-under-address {
    color: var(--ui-muted-strong);
    font-weight: 700;
}

.table-state-under-address span {
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.table-state-under-address strong {
    color: var(--ui-heading);
    font-size: 0.8rem;
}

.waris-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
}

.waris-modal[hidden] {
    display: none;
}

.waris-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.56);
}

.waris-modal-panel {
    position: relative;
    width: min(720px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    margin: 32px auto;
    overflow: auto;
    border: 1px solid var(--ui-line);
    background: #fff;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
}

.waris-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 28px 18px;
    border-bottom: 1px solid var(--ui-line);
    background: linear-gradient(180deg, #fff 0%, #f8faff 100%);
}

.waris-modal-head h2 {
    margin: 4px 0 4px;
    color: var(--ui-heading);
    font-size: 1.35rem;
}

.waris-modal-head p {
    margin: 0;
    color: var(--ui-muted-strong);
    font-weight: 700;
}

.waris-modal-head button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--ui-line-strong);
    background: #fff;
    color: var(--ui-heading);
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    transition: 0.16s ease;
}

.waris-modal-head button:hover {
    border-color: var(--ui-primary);
    background: var(--ui-primary-soft);
    color: var(--ui-primary);
}

.waris-modal-form {
    padding: 20px 28px 0;
}

.waris-modal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.waris-modal-grid .form-group {
    margin: 0;
}

.waris-modal-grid label {
    display: block;
    margin-bottom: 8px;
    color: var(--ui-heading);
    font-size: 0.83rem;
    font-weight: 900;
}

.waris-modal-grid input,
.waris-modal-grid textarea {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--ui-line-strong);
    background: #fff;
    color: var(--ui-ink);
    padding: 11px 13px;
    font: inherit;
    outline: none;
    transition: 0.16s ease;
}

.waris-modal-grid input:focus,
.waris-modal-grid textarea:focus {
    border-color: var(--ui-primary);
    box-shadow: 0 0 0 3px rgba(105, 110, 244, 0.14);
}

.waris-modal-grid textarea {
    min-height: 84px;
    resize: vertical;
}

.waris-image-upload {
    display: grid;
    gap: 7px;
    padding: 12px;
    border: 1px dashed var(--ui-line-strong);
    background: #f8faff;
}

.waris-image-upload input[type="file"] {
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.waris-image-upload span {
    color: var(--ui-muted-strong);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.4;
}

.waris-reference-toggle {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--ui-line);
    background: #fff;
    cursor: pointer;
}

.waris-reference-toggle input {
    width: 16px;
    height: 16px;
    min-height: 0;
    margin-top: 2px;
}

.waris-reference-toggle span {
    display: grid;
    gap: 3px;
}

.waris-reference-toggle strong {
    color: var(--ui-heading);
    font-size: 0.82rem;
}

.waris-reference-toggle small {
    color: var(--ui-muted-strong);
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.35;
}

.waris-reference-toggle-page {
    margin-top: 10px;
}

.waris-modal-wide {
    grid-column: 1 / -1;
}

.waris-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin: 20px -28px 0;
    padding: 16px 28px;
    border-top: 1px solid var(--ui-line);
    background: #f8faff;
}

.waris-modal-cancel,
.waris-modal-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid transparent;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 900;
    cursor: pointer;
    transition: 0.16s ease;
}

.waris-modal-cancel {
    border-color: var(--ui-line-strong);
    background: #fff;
    color: var(--ui-heading);
}

.waris-modal-cancel:hover {
    border-color: #cbd5e1;
    background: #eef2f7;
}

.waris-modal-submit {
    border-color: var(--ui-primary);
    background: var(--ui-primary);
    color: #fff;
    box-shadow: 0 14px 28px rgba(105, 110, 244, 0.26);
}

.waris-modal-submit:hover {
    filter: brightness(0.96);
    transform: translateY(-1px);
}

.waris-reference-panel {
    width: min(1040px, calc(100vw - 32px));
}

.waris-reference-body {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    gap: 0;
}

.waris-reference-preview {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 14px;
    min-height: 460px;
    padding: 22px;
    border-right: 1px solid var(--ui-line);
    background:
        linear-gradient(45deg, rgba(148, 163, 184, 0.13) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(148, 163, 184, 0.13) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(148, 163, 184, 0.13) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(148, 163, 184, 0.13) 75%);
    background-position: 0 0, 0 10px, 10px -10px, -10px 0;
    background-size: 20px 20px;
}

.waris-reference-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.waris-reference-gallery-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.waris-reference-gallery-list button,
.waris-reference-zoom-controls button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border: 1px solid var(--ui-line-strong);
    background: #fff;
    color: var(--ui-heading);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 900;
    cursor: pointer;
}

.waris-reference-gallery-list button {
    padding: 0 11px;
}

.waris-reference-gallery-list button.is-active {
    border-color: var(--ui-primary);
    background: var(--ui-primary);
    color: #fff;
}

.waris-reference-zoom-controls {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px;
    border: 1px solid var(--ui-line);
    background: rgba(255, 255, 255, 0.86);
}

.waris-reference-zoom-controls button {
    min-width: 34px;
    padding: 0 9px;
}

.waris-reference-zoom-controls span {
    min-width: 44px;
    color: var(--ui-muted-strong);
    font-size: 0.74rem;
    font-weight: 900;
    text-align: center;
}

.waris-reference-image-stage {
    overflow: auto;
    min-height: 380px;
    border: 1px solid var(--ui-line);
    background: #fff;
}

.waris-reference-preview img {
    display: block;
    width: 100%;
    max-height: 72vh;
    object-fit: contain;
    background: #fff;
    transition: transform 0.16s ease;
}

.waris-reference-form {
    padding-bottom: 0;
}

.owner-mobile-detail-cell {
    display: none;
}

.workflow-mobile-badge {
    display: none;
}

.owner-meninggal-hero h1 {
    font-size: clamp(1.45rem, 1.8vw, 1.8rem);
    letter-spacing: -0.03em;
}

.nh-btn-small {
    min-height: 34px;
    padding: 8px 11px;
    font-size: 0.78rem;
}

.nh-btn-danger {
    border: 1px solid #fecaca;
    background: #fff1f2;
    color: #b91c1c !important;
    font-weight: 800;
}

.waris-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--ui-line);
}

.waris-header h1 {
    margin: 6px 0 0;
    color: var(--ui-heading);
    font-size: clamp(1.45rem, 1.8vw, 1.85rem);
    letter-spacing: -0.04em;
}

.waris-header p {
    max-width: 560px;
    margin: 8px 0 0;
    color: var(--ui-muted-strong);
    font-size: 0.92rem;
    line-height: 1.55;
}

.waris-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 16px;
    border: 1px solid var(--ui-line);
    background: #fff;
    color: var(--ui-heading) !important;
    font-size: 0.86rem;
    font-weight: 850;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.waris-back-btn:hover {
    border-color: var(--ui-primary);
    color: var(--ui-primary) !important;
}

.waris-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 18px;
}

.waris-owner-card,
.waris-form-card,
.waris-list-card {
    border: 1px solid var(--ui-line);
    background: #fff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
}

.waris-info-list {
    display: grid;
    gap: 0;
    margin: 0;
    border: 1px solid var(--ui-line);
    background: #f8fafc;
}

.waris-info-list div {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 12px;
    padding: 11px 12px;
    border-bottom: 1px solid var(--ui-line);
}

.waris-info-list div:last-child {
    border-bottom: 0;
}

.waris-info-list dt {
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.waris-info-list dd {
    margin: 0;
    color: var(--ui-muted-strong);
    font-weight: 700;
    overflow-wrap: anywhere;
}

.waris-form {
    display: grid;
    gap: 14px;
}

.waris-form .form-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.waris-form .form-group {
    min-width: 0;
}

.waris-form-card .form-group input,
.waris-form-card .form-group textarea {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--ui-line);
    background: #fbfcff;
    box-shadow: none;
}

.waris-form-card .form-group textarea {
    min-height: 110px;
    resize: vertical;
}

.waris-form-card .form-group input:focus,
.waris-form-card .form-group textarea:focus {
    border-color: var(--ui-primary);
    background: #fff;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(114, 124, 245, 0.12);
}

.waris-save-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    padding: 12px 18px;
    border: 1px solid var(--ui-primary);
    background: var(--ui-primary);
    color: #fff;
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 16px 30px rgba(114, 124, 245, 0.28);
    transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.waris-save-btn:hover {
    background: var(--ui-primary-strong);
    border-color: var(--ui-primary-strong);
    box-shadow: 0 20px 36px rgba(114, 124, 245, 0.34);
    transform: translateY(-1px);
}

.waris-cancel-edit,
.waris-edit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 12px;
    border: 1px solid #c7d2fe;
    background: #eef2ff;
    color: var(--ui-primary) !important;
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
}

.waris-cancel-edit:hover,
.waris-edit-btn:hover {
    border-color: var(--ui-primary);
    background: #e0e7ff;
}

.waris-row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.waris-list-card {
    margin-top: 18px;
}

.waris-table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.waris-table td,
.waris-table th {
    vertical-align: top;
}

.vehicle-filter-actions {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.form-grid.vehicle-filter-grid {
    grid-template-columns: minmax(210px, 1.45fr) minmax(140px, 0.9fr) minmax(122px, 0.72fr) minmax(140px, 0.9fr) minmax(112px, 0.62fr) minmax(126px, 0.78fr) minmax(110px, 0.62fr) max-content;
    align-items: end;
    gap: 10px;
}

.form-grid.vehicle-filter-grid .form-group {
    margin-bottom: 0;
}

.vehicle-filter-actions .nh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    min-height: 42px;
    padding: 11px 14px;
    border: 1px solid transparent;
    font-size: 0.86rem;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
}

.vehicle-search-btn {
    background: var(--ui-primary);
    border-color: var(--ui-primary) !important;
    color: #fff !important;
    box-shadow: 0 10px 20px rgba(114, 124, 245, 0.22);
}

.vehicle-search-btn:hover {
    background: var(--ui-primary-strong);
    border-color: var(--ui-primary-strong) !important;
}

.vehicle-reset-btn {
    background: #fff;
    border-color: var(--ui-line-strong) !important;
    color: var(--ui-muted-strong) !important;
}

.vehicle-reset-btn:hover {
    border-color: var(--ui-primary) !important;
    color: var(--ui-primary) !important;
    background: var(--ui-primary-soft);
}

.vehicle-pagination-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
    color: var(--ui-muted-strong);
    font-size: 0.92rem;
    font-weight: 800;
}

.vehicle-pagination-bar > div {
    display: flex;
    gap: 10px;
}

.vehicle-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 16px;
    border: 1px solid var(--ui-line-strong);
    background: #fff;
    color: var(--ui-primary);
    font-weight: 900;
    text-decoration: none;
}

.vehicle-page-link:not(.is-disabled):hover {
    background: var(--ui-primary);
    border-color: var(--ui-primary);
    color: #fff;
}

.vehicle-page-link.is-disabled {
    color: #a8b2c5;
    background: #f8fafc;
}

.vehicle-per-page-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    width: auto;
    flex: 0 0 auto;
}

.vehicle-per-page-control label {
    color: var(--ui-muted-strong);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.vehicle-per-page-control select {
    width: 92px;
    min-width: 92px;
    min-height: 42px;
    border: 1px solid var(--ui-line-strong);
    background: #fff;
    color: var(--ui-ink);
    padding: 8px 34px 8px 12px;
    font-weight: 800;
}

body.route-vehicles .section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.series-filter-grid {
    grid-template-columns: minmax(180px, 240px) minmax(140px, 180px) minmax(140px, 180px) max-content;
    align-items: end;
}

.series-filter-actions {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.series-submit-btn,
.series-reset-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 104px;
    min-height: 42px;
    padding: 11px 16px;
    border: 1px solid transparent;
    color: inherit;
    font-size: 0.86rem;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
}

.series-submit-btn {
    border-color: var(--ui-primary);
    background: var(--ui-primary);
    color: #fff !important;
    box-shadow: 0 10px 20px rgba(114, 124, 245, 0.24);
}

.series-submit-btn:hover {
    border-color: var(--ui-primary-strong);
    background: var(--ui-primary-strong);
}

.series-reset-btn {
    border-color: var(--ui-line-strong);
    background: #fff;
    color: var(--ui-muted-strong) !important;
}

.series-reset-btn:hover {
    border-color: var(--ui-primary);
    background: var(--ui-primary-soft);
    color: var(--ui-primary) !important;
}

.series-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 18px;
}

.series-metric-card {
    min-height: 142px;
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 22px;
    border: 1px solid var(--ui-line);
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.series-metric-card span {
    color: #94a3b8;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.series-metric-card strong {
    color: var(--ui-heading);
    font-size: 2rem;
    line-height: 1;
    letter-spacing: -0.05em;
}

.series-metric-card p {
    max-width: 260px;
    margin: 0;
    color: var(--ui-muted-strong);
    font-size: 0.9rem;
    line-height: 1.45;
}

.series-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.series-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.series-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 7px 10px;
    border: 1px solid var(--ui-line);
    background: #f8fafc;
    color: var(--ui-muted-strong);
    font-size: 0.78rem;
    font-weight: 900;
}

.series-chip.missing {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

.series-chip.found {
    border-color: #dbe4ff;
    background: #eef2ff;
    color: var(--ui-primary);
}

.series-empty-card h2 {
    margin: 0 0 8px;
}

.series-empty-card p {
    margin: 0;
    color: var(--ui-muted);
}

.vehicles-bulk-action-bar {
    margin-bottom: 16px;
}

.vehicles-bulk-action-bar .workflow-action-controls select {
    width: 280px;
    min-height: 42px;
    border-color: var(--ui-line-strong);
    background: #fff;
    color: var(--ui-heading);
    font-size: 0.9rem;
    font-weight: 700;
}

.vehicles-bulk-submit {
    min-width: 118px;
    min-height: 42px;
    padding: 11px 18px;
    border: 1px solid var(--ui-primary) !important;
    background: var(--ui-primary) !important;
    color: #fff !important;
    font-size: 0.86rem;
    font-weight: 900;
    box-shadow: 0 10px 20px rgba(114, 124, 245, 0.22);
}

.vehicles-bulk-submit:hover {
    background: var(--ui-primary-strong) !important;
    border-color: var(--ui-primary-strong) !important;
}

.vehicles-bulk-submit:disabled {
    box-shadow: none;
}

.phone-inline-editor {
    display: grid;
    gap: 8px;
    justify-items: start;
    min-width: 120px;
}

.phone-inline-editor input {
    width: 100%;
    min-width: 110px;
    min-height: 38px;
    padding: 7px 0;
    border-color: transparent;
    background: transparent;
    font-size: 0.82rem;
    box-shadow: none;
}

.phone-inline-editor:hover input,
.phone-inline-editor input:focus {
    padding: 7px 9px;
    border-color: var(--ui-line-strong);
    background: #fff;
}

.phone-save-btn {
    width: 30px;
    height: 30px;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--ui-line-strong) !important;
    background: #fff !important;
    color: var(--ui-muted-strong) !important;
    opacity: 0;
    transform: translateY(2px);
    transition: opacity 0.16s ease, transform 0.16s ease, color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.phone-save-btn svg {
    width: 15px;
    height: 15px;
}

td:hover .phone-save-btn,
.phone-save-btn:focus-visible {
    opacity: 1;
    transform: translateY(0);
}

.phone-save-btn:hover {
    border-color: var(--ui-primary) !important;
    color: var(--ui-primary) !important;
    background: var(--ui-primary-soft) !important;
}

.remark-inline-editor {
    position: relative;
    display: block;
    width: 260px;
    max-width: 100%;
}

.remark-cell-stack {
    display: grid;
    gap: 6px;
    width: fit-content;
    max-width: 100%;
}

.remark-updated-at {
    color: #94a3b8;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.remark-inline-editor textarea {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    max-height: 110px;
    padding: 7px 34px 7px 0;
    border-color: transparent;
    background: transparent;
    color: var(--ui-heading);
    font-size: 0.82rem;
    line-height: 1.35;
    box-shadow: none;
    resize: vertical;
}

.remark-inline-editor:hover textarea,
.remark-inline-editor textarea:focus {
    padding: 7px 34px 7px 9px;
    border-color: var(--ui-line-strong);
    background: #fff;
}

.remark-save-btn {
    position: absolute;
    top: 4px;
    right: 0;
    width: 30px;
    height: 30px;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--ui-line-strong) !important;
    background: #fff !important;
    color: var(--ui-muted-strong) !important;
    opacity: 0;
    transform: translateY(2px);
    transition: opacity 0.16s ease, transform 0.16s ease, color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.remark-save-btn svg {
    width: 15px;
    height: 15px;
}

td:hover .remark-save-btn,
.remark-inline-editor:hover .remark-save-btn,
.remark-inline-editor:focus-within .remark-save-btn,
.remark-save-btn:focus-visible {
    opacity: 1;
    transform: translateY(0);
}

.remark-save-btn:hover {
    border-color: var(--ui-primary) !important;
    color: var(--ui-primary) !important;
    background: var(--ui-primary-soft) !important;
}

.remark-readonly {
    min-width: 160px;
    max-width: 240px;
    color: var(--ui-muted);
    font-size: 0.82rem;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}

.remark-readonly.has-value {
    padding: 8px 10px;
    border: 1px solid #d7e1ec;
    background: rgba(255, 255, 255, 0.58);
    color: var(--ui-heading);
    font-weight: 600;
}

.mobile-detail-trigger,
.mobile-detail-content,
.mobile-detail-modal {
    display: none;
}

.selesai-record-row {
    scroll-margin-top: 86px;
}

body.modal-open {
    overflow: hidden;
}

.pdf-viewer-modal[hidden] {
    display: none !important;
}

.pdf-viewer-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    place-items: center;
    padding: 28px;
}

.pdf-viewer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(4px);
}

.pdf-viewer-panel {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: min(1120px, 94vw);
    height: min(820px, 88vh);
    border: 1px solid rgba(226, 232, 240, 0.85);
    background: #fff;
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.28);
}

.pdf-viewer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--ui-line);
    background: #f8fafc;
}

.pdf-viewer-head strong {
    color: var(--ui-heading);
    font-size: 0.92rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pdf-viewer-head button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--ui-line);
    background: #fff;
    color: var(--ui-heading);
    cursor: pointer;
    font-size: 1.35rem;
    line-height: 1;
}

.pdf-viewer-panel iframe {
    width: 100%;
    height: 100%;
    border: 0;
    background: #eef2f7;
}

.monthly-cost-header,
.monthly-cost-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.monthly-cost-header h1 {
    margin: 8px 0 8px;
    color: var(--ui-heading);
    font-size: clamp(1.45rem, 1.8vw, 1.9rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

.monthly-cost-header p {
    margin: 0;
    color: var(--ui-muted);
}

.monthly-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 170px;
    min-height: 42px;
    padding: 11px 18px;
    border: 1px solid var(--ui-primary);
    background: var(--ui-primary);
    color: #fff !important;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(114, 124, 245, 0.22);
}

.monthly-back-btn:hover {
    background: var(--ui-primary-strong);
    border-color: var(--ui-primary-strong);
    justify-content: center;
}

.monthly-month-form,
.monthly-total-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.monthly-month-form label,
.monthly-total-box span {
    color: var(--ui-muted-strong);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.monthly-month-form select {
    min-width: 180px;
}

.monthly-total-box {
    padding: 12px 16px;
    border: 1px solid var(--ui-line);
    background: #fff;
}

.monthly-total-box strong {
    color: var(--ui-heading);
    font-size: 1.15rem;
}

.dashboard-stat-grid.monthly-cost-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 0;
}

.stat-card.monthly-cost-stat {
    display: grid;
    gap: 10px;
    padding: 20px;
    border: 1px solid var(--ui-line);
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.stat-card.monthly-cost-stat strong {
    color: var(--ui-heading);
    font-size: clamp(1.35rem, 1.5vw, 1.75rem);
}

.stat-card.monthly-cost-stat p {
    margin: 0;
    color: var(--ui-muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.monthly-cost-grid {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 18px;
    margin-top: 24px;
    align-items: start;
}

.monthly-cost-form {
    display: grid;
    gap: 14px;
}

.monthly-cost-form .nh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 11px 18px;
    border: 1px solid var(--ui-primary);
    background: var(--ui-primary);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(114, 124, 245, 0.2);
    cursor: pointer;
}

.monthly-cost-form .nh-btn:hover {
    background: var(--ui-primary-strong);
    border-color: var(--ui-primary-strong);
}

.monthly-cost-table-card {
    min-width: 0;
}

.monthly-year-chart-card {
    margin-top: 0;
    margin-bottom: 24px;
}

.monthly-year-chart-card .section-head p {
    margin: 4px 0 0;
    color: var(--ui-muted);
}

.monthly-year-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.monthly-year-form label {
    color: var(--ui-muted-strong);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.monthly-year-form select {
    min-width: 120px;
}

.monthly-bar-chart {
    display: grid;
    grid-template-columns: repeat(12, minmax(54px, 1fr));
    gap: 12px;
    min-height: 280px;
    margin-top: 22px;
    padding: 18px;
    border: 1px solid var(--ui-line);
    background:
        linear-gradient(to top, rgba(226, 232, 240, 0.9) 1px, transparent 1px) 0 0 / 100% 25%,
        #fbfdff;
}

.monthly-bar-item {
    display: grid;
    grid-template-rows: 1fr auto;
    gap: 10px;
    min-width: 0;
}

.monthly-bar-track {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 220px;
    border: 1px solid #e2e8f0;
    background: rgba(255, 255, 255, 0.72);
}

.monthly-bar-fill {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    min-height: 3px;
    background: linear-gradient(180deg, var(--ui-primary) 0%, var(--ui-primary-strong) 100%);
    color: #fff;
    transition: filter 0.18s ease, transform 0.18s ease;
}

.monthly-bar-track:hover .monthly-bar-fill {
    filter: saturate(1.12);
    transform: translateY(-2px);
}

.monthly-bar-fill span {
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    padding: 4px 7px;
    background: #111827;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    opacity: 0;
    pointer-events: none;
}

.monthly-bar-track:hover .monthly-bar-fill span {
    opacity: 1;
}

.monthly-bar-item > strong {
    color: #94a3b8;
    font-size: 0.82rem;
    text-align: center;
}

.monthly-chart-total {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px;
    color: var(--ui-muted-strong);
}

.monthly-chart-total span {
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.monthly-chart-total strong {
    color: var(--ui-heading);
    font-size: 1.05rem;
}

@media (max-width: 720px) {
    .vehicle-documents-box {
        min-width: 0;
    }

    .vehicle-document-upload,
    .vehicle-document-item {
        grid-template-columns: 1fr;
    }

    .vehicle-document-item > span {
        text-align: left;
    }

    .vehicle-document-delete {
        display: none;
    }

    .pdf-viewer-modal {
        padding: 10px;
    }

    .pdf-viewer-panel {
        width: 100%;
        height: 92vh;
    }
}

/* Global square UI preference */
.page-shell-boxed,
.card,
.nh-card,
.section-panel,
.metric-panel,
.stat-card,
.dashboard-trend-card,
.dashboard-table-card,
.dashboard-list-card,
.dashboard-highlight,
.table-wrap,
.noble-table-card,
.noble-table-responsive,
.toolbar-chip,
.chart-tabs,
.chart-tabs span,
.chart-year-filter,
.chart-year-filter select,
.tag,
.role-tag,
.status-tag,
.noble-table-count,
.user-table-avatar,
.user-chip,
.user-chip-avatar,
.price-box,
.price-form,
.other-cost-row,
.other-cost-item,
.floating-summary > div,
.purchase-line,
.settlement-badge,
.payment-entry-editor,
.payment-history,
.payment-history-item,
.payment-delete-btn,
.workflow-action-bar,
.monthly-total-box,
.monthly-cost-stat,
.monthly-cost-form-card,
.monthly-cost-table-card,
.monthly-year-chart-card,
.monthly-bar-chart,
.monthly-bar-track,
.monthly-bar-fill,
.monthly-bar-fill span,
.monthly-back-btn,
.topbar-icon,
.search-form,
.sidebar-brand-mark,
.sidebar-toggle,
.nav-link,
.sidebar-footer .nav-link,
.alert,
input,
textarea,
select,
button,
.btn,
.nh-btn {
    border-radius: 0 !important;
}

/* Keep the copyright footer at the bottom on every NH77 page with short content. */
body.noble-admin-body .main-wrapper {
    min-height: 100vh;
}

body.noble-admin-body .page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.noble-admin-body .page-content {
    flex: 1 0 auto;
}

body.noble-admin-body .app-footer {
    margin-top: auto;
}

/* Upload page button needs to stay consistent with filled primary actions. */
.upload-submit-btn,
.upload-submit-btn:visited {
    border-color: var(--ui-primary) !important;
    background: var(--ui-primary) !important;
    color: #fff !important;
}

.upload-submit-btn svg {
    color: currentColor !important;
    stroke: currentColor !important;
}

.upload-submit-btn:hover,
.upload-submit-btn:focus-visible {
    border-color: var(--ui-primary-strong) !important;
    background: var(--ui-primary-strong) !important;
    color: #fff !important;
}

@media (min-width: 1200px) {
    body.route-vehicles .page-content,
    body.route-owner-meninggal .page-content {
        padding-left: 22px;
        padding-right: 22px;
    }

    body.route-vehicles .page-shell-dashboard,
    body.route-owner-meninggal .page-shell-dashboard {
        width: min(1520px, calc(100vw - 64px));
        max-width: none !important;
    }

    .form-grid.vehicle-filter-grid {
        grid-template-columns: minmax(210px, 1.45fr) minmax(140px, 0.9fr) minmax(122px, 0.72fr) minmax(140px, 0.9fr) minmax(112px, 0.62fr) minmax(126px, 0.78fr) minmax(110px, 0.62fr) max-content !important;
        align-items: end;
    }

    .form-grid.vehicle-filter-grid .vehicle-filter-actions {
        grid-column: auto !important;
        align-self: end;
        justify-content: flex-end;
    }
}

/* Remove outer boxed shell on every page */
.page-shell-boxed {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.page-shell-dashboard {
    max-width: 1440px;
}

/* Remove outer boxed shell on every page */
.page-shell-boxed {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.page-shell-dashboard {
    max-width: 1440px;
}

.page-shell-boxed {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.page-shell-dashboard {
    max-width: 1440px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color: var(--ui-text);
    background: var(--ui-bg);
}

a {
    color: inherit;
    text-decoration: none;
}

svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 1.9;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.noble-admin-body {
    overflow-x: hidden;
    background:
        radial-gradient(circle at top right, rgba(114, 124, 245, 0.1), transparent 18%),
        linear-gradient(180deg, #f6f8fc 0%, #f1f4f9 100%);
}

.noble-auth-body {
    background:
        radial-gradient(circle at top left, rgba(114, 124, 245, 0.12), transparent 24%),
        linear-gradient(180deg, #f7f9fc 0%, #eef3f8 100%);
}

.main-wrapper {
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--ui-sidebar-width);
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #101827 0%, #111d2f 100%);
    color: #c6d0e2;
    z-index: 1040;
    transition: width 0.22s ease, transform 0.22s ease;
    overflow-x: hidden;
}

.sidebar-header,
.sidebar-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 18px 16px;
    flex-shrink: 0;
}

.sidebar-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.sidebar-brand-mark {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: linear-gradient(135deg, rgba(114, 124, 245, 0.95), rgba(88, 101, 242, 0.95));
    color: #fff;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    box-shadow: 0 12px 24px rgba(88, 101, 242, 0.26);
}

.sidebar-brand-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sidebar-brand-copy strong {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
}

.sidebar-brand-copy span {
    margin-top: 2px;
    color: #96a3bc;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    color: #c6d0e2;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.16);
    color: #fff;
}

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

.sidebar-body {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 0 18px;
}

.sidebar-nav {
    display: grid;
    gap: 18px;
}

.nav-section {
    display: grid;
    gap: 4px;
}

.nav-section-title {
    padding: 0 24px 6px;
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 24px;
    border-left: 3px solid transparent;
    color: #9aa6bf;
    font-size: 0.96rem;
    font-weight: 500;
    transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.nav-link:hover {
    color: #eef2ff;
    background: rgba(255, 255, 255, 0.03);
}

.nav-link.active {
    color: #95a0ff;
    background: rgba(114, 124, 245, 0.1);
    border-left-color: var(--ui-primary);
}

.nav-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.sidebar-footer .nav-link {
    margin: 0 16px;
    padding: 11px 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
}

.page-wrapper {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin-left: var(--ui-sidebar-width);
    transition: margin-left 0.22s ease;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    height: var(--ui-navbar-height);
    padding: 0 12px 0 24px;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(216, 224, 236, 0.9);
    backdrop-filter: blur(10px);
}

.navbar-content {
    width: 100%;
    flex: 1 1 auto;
    height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
}

.navbar-left,
.navbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-left {
    flex: 1 1 auto;
    min-width: 0;
}

.navbar-right {
    flex: 0 0 auto;
    justify-self: end;
    margin-left: 0;
}

.user-dropdown {
    margin-left: 0;
    margin-right: 0;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    width: min(560px, 46vw);
    min-width: 260px;
    height: 42px;
    padding: 0 14px;
    border: 1px solid var(--ui-line);
    border-radius: 12px;
    background: #f7f9fc;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.search-form-icon {
    display: inline-flex;
    color: #94a3b8;
}

.search-form input {
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ui-heading);
    font-size: 0.94rem;
}

.search-form input::placeholder {
    color: #9aa5b7;
}

.search-form input:focus {
    outline: none;
}

.search-form-shortcut {
    flex-shrink: 0;
    color: #94a3b8;
    font-size: 0.74rem;
    font-weight: 700;
}

.topbar-language {
    color: var(--ui-muted-strong);
    font-size: 0.92rem;
    font-weight: 600;
}

.topbar-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: #1f2937;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.topbar-icon:hover {
    background: #f5f7fb;
    border-color: var(--ui-line);
    color: var(--ui-primary);
}

.user-dropdown .dropdown-toggle::after {
    display: none;
}

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 4px 10px 4px 4px;
    border: 1px solid var(--ui-line);
    border-radius: 999px;
    background: #fff;
    color: var(--ui-heading);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.user-chip-avatar,
.user-menu-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    font-weight: 800;
    background: linear-gradient(135deg, rgba(114, 124, 245, 0.96), rgba(88, 101, 242, 0.96));
}

.user-chip-avatar {
    width: 34px;
    height: 34px;
    font-size: 0.8rem;
}

.user-chip-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.05;
}

.user-chip-role {
    color: #94a3b8;
    font-size: 0.7rem;
    font-weight: 700;
}

.user-chip-body strong {
    font-size: 0.88rem;
}

.user-chip-arrow {
    display: inline-flex;
    color: #94a3b8;
}

.user-menu {
    width: 280px;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--ui-line);
    border-radius: 16px;
    background: #fff;
    color: var(--ui-text);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.14);
}

.user-menu-head {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(180deg, #f7f9fc 0%, #eef3f8 100%);
}

.user-menu-avatar {
    width: 42px;
    height: 42px;
    font-size: 0.82rem;
}

.user-menu-head strong {
    display: block;
    margin-bottom: 4px;
    color: var(--ui-heading);
}

.user-menu-head div:last-child div {
    color: var(--ui-muted);
    font-size: 0.82rem;
}

.user-menu-links {
    padding: 10px;
}

.user-menu .dropdown-item {
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--ui-muted-strong);
    font-weight: 600;
}

.user-menu .dropdown-item:hover {
    background: var(--ui-primary-soft);
    color: var(--ui-primary);
}

.page-content {
    flex: 1 0 auto;
    padding: 26px 24px 32px;
}

.page-shell {
    max-width: 1500px;
    margin: 0 auto;
}

.page-shell-boxed {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.page-shell-dashboard {
    max-width: 1360px;
}

.page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.page-head > div:first-child {
    flex: 1 1 auto;
    min-width: 0;
}

.page-head-kicker,
.auth-kicker,
.auth-panel-kicker,
.dashboard-card-kicker,
.stat-label {
    color: #94a3b8;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.page-head-title {
    margin: 6px 0 8px;
    color: var(--ui-heading);
    font-size: clamp(1.75rem, 2.4vw, 2.15rem);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.page-head-subtitle {
    margin: 0;
    max-width: 660px;
    color: var(--ui-muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

.page-actions,
.actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 12px;
    flex-shrink: 0;
}

.flash {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid transparent;
    font-weight: 600;
}

.flash.success {
    color: #047857;
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.16);
}

.flash.error {
    color: #be123c;
    background: rgba(239, 71, 111, 0.09);
    border-color: rgba(239, 71, 111, 0.16);
}

.btn,
.toolbar-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 9px 14px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover,
.toolbar-chip:hover {
    transform: translateY(-1px);
}

.btn.primary,
.toolbar-chip.primary {
    background: linear-gradient(135deg, rgba(114, 124, 245, 1), rgba(88, 101, 242, 1));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 16px 28px rgba(88, 101, 242, 0.2);
}

.btn.secondary,
.btn.ghost,
.toolbar-chip {
    background: #fff;
    border-color: var(--ui-line-strong);
    color: var(--ui-muted-strong);
}

.toolbar-chip {
    cursor: pointer;
}

.toolbar-chip svg {
    width: 16px;
    height: 16px;
}

.toolbar-chip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: currentColor;
}

.card,
.section-panel,
.metric-panel {
    background: var(--ui-surface);
    border: 1px solid rgba(229, 233, 242, 0.9);
    border-radius: var(--ui-radius-lg);
    box-shadow: var(--ui-shadow);
}

.card,
.section-panel {
    padding: 20px;
    margin-bottom: 18px;
}

.metric-panel {
    padding: 18px;
}

.card-title,
.section-title {
    margin: 0 0 8px;
    color: var(--ui-heading);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.card-subtitle,
.section-subtitle,
.small,
.muted {
    color: var(--ui-muted);
}

.card-subtitle,
.section-subtitle {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.6;
}

.small {
    font-size: 0.82rem;
}

.text-danger-strong {
    color: #b91c1c !important;
    font-weight: 800 !important;
}

.grid {
    display: grid;
    gap: 20px;
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.table-wrap {
    width: 100%;
    overflow: auto;
    border: 1px solid var(--ui-line);
    border-radius: 16px;
    background: #fbfcfe;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

th,
td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--ui-line);
    text-align: left;
    vertical-align: top;
    font-size: 0.86rem;
    color: var(--ui-muted-strong);
}

th {
    color: #94a3b8;
    background: #f8faff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr:hover td {
    background: rgba(114, 124, 245, 0.04);
}

tbody tr.vehicle-row-remark td {
    background: #eef3f8;
    border-color: #d7e1ec;
}

tbody tr.vehicle-row-remark td:first-child {
    box-shadow: inset 4px 0 0 #64748b;
}

tbody tr.vehicle-row-remark:hover td {
    background: #e6edf5;
}

.noble-table-card {
    margin-top: 24px;
    padding: 24px;
    border-radius: 0;
}

.noble-table-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.noble-table-head .card-title {
    margin: 0 0 6px;
}

.noble-table-count {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 7px 11px;
    border-radius: 0;
    background: var(--ui-primary-soft);
    color: var(--ui-primary);
    font-size: 0.78rem;
    font-weight: 900;
}

.noble-table-responsive {
    border-radius: 0;
    background: #fff;
}

.noble-table-card .table-wrap {
    border-radius: 0;
}

.noble-basic-table {
    border-collapse: collapse;
}

.noble-basic-table th,
.noble-basic-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #edf1f7;
    vertical-align: middle;
}

.noble-basic-table th {
    background: #fff;
    color: #64748b;
    font-size: 0.76rem;
    letter-spacing: 0.04em;
}

.noble-basic-table.table-striped tbody tr:nth-of-type(odd) td {
    background: #f8fafc;
}

.noble-basic-table tbody tr:hover td {
    background: #eef2ff;
}

.user-table-avatar {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    background: linear-gradient(135deg, #6571ff, #8b5cf6);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.status-tag.active {
    background: #ecfdf5;
    color: #166534;
}

.status-tag.inactive {
    background: #fef2f2;
    color: #b91c1c;
}

.role-tag {
    background: #eef2ff;
    color: #4f46e5;
}

.table-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.table-actions form {
    margin: 0;
}

.table-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 7px 12px;
    border: 1px solid #dbe3ef;
    background: #fff;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

.table-action-btn.edit {
    border-color: #c7d2fe;
    background: #eef2ff;
    color: #4f46e5;
}

.table-action-btn.delete {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

.user-edit-form {
    display: grid;
    gap: 18px;
}

.user-active-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
}

.user-active-check input {
    width: 16px;
    height: 16px;
}

.form-error {
    margin-top: 6px;
    color: #b91c1c;
    font-size: 0.78rem;
    font-weight: 800;
}

.users-square-page .card,
.users-square-page .stat-card,
.users-square-page .table-wrap,
.users-square-page .tag {
    border-radius: 0;
}

body.route-users .page-shell-boxed {
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}

body.route-users .page-shell-dashboard {
    max-width: 1440px;
}

body.route-dashboard .page-shell-boxed {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}

body.route-dashboard .page-shell-dashboard {
    max-width: 1440px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--ui-heading);
    font-size: 0.83rem;
    font-weight: 700;
}

input,
textarea,
select {
    width: 100%;
    min-height: 46px;
    padding: 11px 14px;
    border: 1px solid var(--ui-line-strong);
    border-radius: 12px;
    background: #fff;
    color: var(--ui-heading);
    font: inherit;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-height: 0;
    padding: 0;
    border-radius: 0;
    accent-color: var(--ui-primary);
    box-shadow: none;
}

textarea {
    min-height: 124px;
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: #9aa5b7;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: rgba(114, 124, 245, 0.5);
    box-shadow: 0 0 0 4px rgba(114, 124, 245, 0.12);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.status-pill,
.workflow-summary-chip,
.vehicles-mini-chip,
.employee-side-chip,
.employee-section-badge,
.user-overview-pill,
.toggle-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--ui-primary-soft);
    color: var(--ui-primary);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
}

.status-pill.active {
    background: rgba(16, 185, 129, 0.11);
    color: #047857;
}

.status-pill.inactive {
    background: rgba(239, 71, 111, 0.11);
    color: #be123c;
}

.toggle-pill {
    border: 1px solid var(--ui-line);
    background: #fff;
    color: var(--ui-heading);
}

.toggle-pill input {
    width: auto;
    min-height: auto;
    padding: 0;
    margin: 0;
}

.app-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding: 0 24px 20px;
    color: #94a3b8;
    font-size: 0.84rem;
}

.dashboard-toolbar {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 8px;
}

.dashboard-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.stat-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.stat-card-copy {
    max-width: 220px;
}

.stat-value {
    margin-top: 12px;
    color: var(--ui-heading);
    font-size: clamp(1.6rem, 2.1vw, 2.1rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.05em;
}

.stat-note {
    margin-top: 10px;
    color: var(--ui-muted);
    font-size: 0.88rem;
    line-height: 1.55;
}

.stat-sparkline {
    width: 112px;
    min-width: 112px;
    height: 46px;
    margin-top: 8px;
    color: var(--ui-primary);
}

.stat-sparkline svg {
    width: 100%;
    height: 100%;
}

.sparkline-fill {
    fill: rgba(114, 124, 245, 0.12);
    stroke: none;
}

.sparkline-line {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
}

.dashboard-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.95fr);
    gap: 16px;
    align-items: start;
    margin-bottom: 16px;
}

.dashboard-side-stack {
    display: grid;
    gap: 16px;
}

.dashboard-bottom-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
    gap: 16px;
    align-items: start;
}

.dashboard-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 14px;
}

.dashboard-card-head.compact {
    margin-bottom: 12px;
}

.dashboard-filter-group {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--ui-line-strong);
    border-radius: 12px;
    overflow: hidden;
}

.filter-chip {
    padding: 9px 11px;
    color: var(--ui-primary);
    background: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    border-right: 1px solid var(--ui-line-strong);
    white-space: nowrap;
}

.filter-chip:last-child {
    border-right: 0;
}

.filter-chip.active {
    background: var(--ui-primary);
    color: #fff;
}

.dashboard-trend-card {
    margin-top: 24px;
    padding: 24px;
}

.chart-tabs {
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--ui-line-strong);
    border-radius: 12px;
    background: #fff;
}

.chart-tabs span {
    padding: 10px 14px;
    color: var(--ui-primary);
    border-right: 1px solid var(--ui-line-strong);
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1;
}

.chart-tabs span:last-child {
    border-right: 0;
}

.chart-tabs .active {
    background: var(--ui-primary);
    color: #fff;
}

.chart-year-filter {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px 8px 14px;
    border: 1px solid var(--ui-line-strong);
    border-radius: 12px;
    background: #fff;
}

.chart-year-filter label {
    margin: 0;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 800;
}

.chart-year-filter select {
    min-width: 94px;
    height: 34px;
    padding: 0 28px 0 12px;
    border: 1px solid var(--ui-primary);
    border-radius: 8px;
    background-color: var(--ui-primary);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 900;
    outline: none;
}

.trend-chart {
    width: 100%;
    height: 270px;
    border: 1px solid var(--ui-line);
    border-radius: 16px;
    background: linear-gradient(180deg, #fbfcfe 0%, #f7f9fd 100%);
    overflow: hidden;
}

.trend-chart svg {
    width: 100%;
    height: 100%;
}

.trend-grid-line {
    stroke: rgba(148, 163, 184, 0.25);
    stroke-width: 1;
}

.trend-grid-line.vertical {
    stroke: rgba(148, 163, 184, 0.16);
}

.trend-area-fill {
    fill: rgba(114, 124, 245, 0.09);
    stroke: none;
}

.trend-line {
    fill: none;
    stroke: #727cf5;
    stroke-width: 3;
}

.trend-point {
    fill: #fff;
    stroke: #727cf5;
    stroke-width: 2;
}

.trend-point-group {
    cursor: default;
}

.trend-value-label {
    fill: #111827;
    font-size: 14px;
    font-weight: 800;
    text-anchor: middle;
    paint-order: stroke;
    stroke: rgba(255, 255, 255, 0.88);
    stroke-width: 4px;
    stroke-linejoin: round;
}

.trend-chart-footer {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
    color: #94a3b8;
    font-size: 0.76rem;
    font-weight: 700;
    text-align: center;
}

.dashboard-list {
    display: grid;
    gap: 8px;
}

.dashboard-list-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid var(--ui-line);
}

.dashboard-list-item:first-child {
    padding-top: 0;
}

.dashboard-list-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.dashboard-list-main {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.dashboard-list-main strong {
    color: var(--ui-heading);
    font-size: 0.9rem;
    font-weight: 800;
}

.dashboard-list-main span {
    color: var(--ui-muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

.dashboard-list-side {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 90px;
    color: var(--ui-muted-strong);
    font-size: 0.78rem;
    font-weight: 700;
    text-align: right;
}

.dashboard-list-side small {
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 700;
}

.dashboard-table-card .table-wrap {
    margin-top: 12px;
}

.area-breakdown {
    display: grid;
    gap: 12px;
}

.area-breakdown-item {
    display: grid;
    gap: 8px;
}

.area-breakdown-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--ui-heading);
}

.area-breakdown-top strong {
    font-size: 0.88rem;
    font-weight: 800;
}

.area-breakdown-top span {
    color: var(--ui-muted);
    font-size: 0.76rem;
    font-weight: 700;
}

.area-breakdown-bar {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: #edf1f7;
    overflow: hidden;
}

.area-breakdown-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(114, 124, 245, 0.92), rgba(88, 101, 242, 0.92));
}

.dashboard-highlight {
    margin-top: 16px;
    padding: 14px;
    border-radius: 16px;
    background: linear-gradient(180deg, #f8faff 0%, #f0f4fb 100%);
    border: 1px solid var(--ui-line);
}

.dashboard-highlight strong {
    display: block;
    margin-top: 6px;
    color: var(--ui-heading);
    font-size: 0.92rem;
}

.dashboard-highlight p {
    margin: 8px 0 0;
    color: var(--ui-muted);
    font-size: 0.84rem;
    line-height: 1.55;
}

.empty-state {
    margin: 0;
    color: var(--ui-muted);
    font-size: 0.88rem;
    line-height: 1.6;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(320px, 0.98fr) minmax(420px, 0.92fr);
}

.auth-shell-side {
    position: relative;
    overflow: hidden;
    padding: 54px;
    background:
        radial-gradient(circle at top left, rgba(114, 124, 245, 0.35), transparent 24%),
        linear-gradient(160deg, #101827 0%, #162338 48%, #5b64f0 100%);
    color: #fff;
}

.auth-shell-side::before,
.auth-shell-side::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.auth-shell-side::before {
    width: 220px;
    height: 220px;
    top: -54px;
    right: -48px;
}

.auth-shell-side::after {
    width: 300px;
    height: 300px;
    bottom: -110px;
    left: -120px;
}

.auth-brand img {
    max-width: 170px;
    max-height: 60px;
    object-fit: contain;
}

.auth-copy {
    position: relative;
    z-index: 1;
    max-width: 470px;
    margin-top: 100px;
}

.auth-copy h1 {
    margin: 12px 0 14px;
    font-size: clamp(2rem, 4vw, 3.15rem);
    line-height: 1.04;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.auth-copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.8;
}

.auth-feature-list {
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 14px;
}

.auth-feature-list li {
    position: relative;
    padding-left: 24px;
    color: rgba(255, 255, 255, 0.92);
}

.auth-feature-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
}

.auth-shell-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 46px 28px;
}

.auth-panel {
    width: min(520px, 100%);
    padding: 34px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(229, 233, 242, 0.9);
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.12);
    color: var(--ui-text);
}

.auth-panel-top {
    margin-bottom: 24px;
}

.auth-panel-top h1 {
    margin: 8px 0;
    color: var(--ui-heading);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.auth-panel-top p {
    margin: 0;
    color: var(--ui-muted);
    line-height: 1.7;
}

.auth-content .card {
    margin-bottom: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.auth-content .card-title {
    color: var(--ui-heading);
}

.auth-content .card-subtitle {
    color: var(--ui-muted);
}

.auth-content .btn.primary {
    width: 100%;
}

body.sidebar-folded .sidebar {
    width: var(--ui-sidebar-width-folded);
}

body.sidebar-folded .page-wrapper {
    margin-left: var(--ui-sidebar-width-folded);
}

body.sidebar-folded .sidebar-brand-copy,
body.sidebar-folded .nav-section-title,
body.sidebar-folded .nav-link-text,
body.sidebar-folded .sidebar-footer .nav-link-text {
    opacity: 0;
    pointer-events: none;
}

body.sidebar-folded .sidebar-brand-copy {
    display: none;
}

body.sidebar-folded .sidebar-brand {
    justify-content: center;
    width: 100%;
    gap: 0;
    display: flex;
}

body.sidebar-folded .sidebar-brand-mark {
    width: 42px;
    min-width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 0.82rem;
    letter-spacing: 0;
    margin: 0 auto;
}

body.sidebar-folded .sidebar-toggle-desktop {
    display: none;
}

body.sidebar-folded .sidebar-header {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    min-height: 84px;
    padding: 20px 0;
    width: 100%;
}

body.sidebar-folded .nav-link {
    width: 100%;
    height: 48px;
    display: grid;
    place-items: center;
    justify-content: initial;
    padding-left: 0;
    padding-right: 0;
    border-left: 0;
    margin-left: 0;
    margin-right: 0;
    gap: 0;
}

body.sidebar-folded .nav-link-icon {
    width: 48px;
    height: 48px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    grid-area: 1 / 1;
}

body.sidebar-folded .nav-link-icon svg {
    display: block;
    margin: 0 auto;
}

body.sidebar-folded .nav-link.active {
    box-shadow: none;
}

body.sidebar-folded .nav-link.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 3px;
    border-radius: 0 999px 999px 0;
    background: var(--ui-primary);
}

body.sidebar-folded .sidebar-footer {
    justify-content: center;
    padding-left: 12px;
    padding-right: 12px;
}

body.sidebar-folded .sidebar-footer .nav-link {
    width: 100%;
    height: 48px;
    margin: 0;
    padding: 0;
    border-radius: 0;
    border-color: transparent;
    background: transparent;
}

body.sidebar-folded .sidebar-footer .nav-link-icon {
    width: 48px;
    height: 48px;
}

body.sidebar-folded .nav-section {
    padding-left: 0;
    padding-right: 0;
    gap: 0;
}

body.sidebar-folded .nav-section-title {
    display: none;
}

body.sidebar-folded .sidebar-nav {
    gap: 0;
}

body.sidebar-folded .sidebar-toggle-mobile {
    display: inline-flex;
}

body.sidebar-open {
    overflow: hidden;
}

body.sidebar-open .page-wrapper::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.32);
    z-index: 1020;
}

@media print {
    .sidebar,
    .navbar,
    .page-actions,
    .app-footer {
        display: none !important;
    }

    .page-wrapper {
        margin-left: 0 !important;
    }

    .page-content {
        padding: 0 !important;
    }

    .card,
    .section-panel {
        box-shadow: none !important;
    }
}

@media (max-width: 1199px) {
    .form-grid.vehicle-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .series-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .series-filter-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }

    .vehicle-filter-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }

    .dashboard-stat-grid,
    .dashboard-bottom-grid,
    .grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-main-grid {
        grid-template-columns: 1fr;
    }

    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-shell-side {
        min-height: 320px;
    }

    .auth-copy {
        margin-top: 44px;
    }
}

@media (max-width: 991px) {
    .sidebar {
        transform: translateX(-100%);
        width: min(86vw, 320px);
        box-shadow: 18px 0 38px rgba(15, 23, 42, 0.22);
    }

    body.sidebar-open .sidebar {
        transform: translateX(0);
    }

    .page-wrapper {
        margin-left: 0;
    }

    .sidebar-toggle-mobile {
        display: inline-flex;
    }

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

    .navbar {
        padding: 0 16px;
    }

    .navbar-content {
        display: flex;
        gap: 10px;
    }

    .topbar-language,
    .topbar-icon:nth-of-type(1),
    .topbar-icon:nth-of-type(2) {
        display: none;
    }

    .search-form {
        width: min(100%, 460px);
        min-width: 0;
    }

    .page-content,
    .app-footer {
        padding-left: 18px;
        padding-right: 18px;
    }

    .page-shell-boxed {
        padding: 0;
        border-radius: 0;
    }

    .page-head {
        flex-direction: column;
    }

    .page-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .form-grid,
    .grid-2,
    .dashboard-stat-grid,
    .dashboard-bottom-grid,
    .monthly-cost-grid {
        grid-template-columns: 1fr;
    }

    .monthly-cost-header,
    .monthly-cost-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .monthly-bar-chart {
        grid-template-columns: repeat(12, 68px);
        overflow-x: auto;
    }

    .monthly-year-chart-card .section-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 767px) {
    .waris-modal-panel {
        width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
        margin: 10px auto;
    }

    .waris-modal-head {
        padding-left: 16px;
        padding-right: 16px;
    }

    .waris-modal-form {
        padding-left: 16px;
        padding-right: 16px;
    }

    .waris-modal-grid {
        grid-template-columns: 1fr;
    }

    .waris-reference-body {
        grid-template-columns: 1fr;
    }

    .waris-reference-preview {
        min-height: 240px;
        padding: 14px;
        border-right: 0;
        border-bottom: 1px solid var(--ui-line);
    }

    .waris-reference-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .waris-reference-image-stage {
        min-height: 220px;
    }

    .waris-reference-preview img {
        max-height: 46vh;
    }

    .waris-modal-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        margin-left: -16px;
        margin-right: -16px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .vehicle-per-page-control {
        width: auto;
        justify-content: flex-end;
        margin-left: 0;
    }

    .vehicle-per-page-control select {
        width: 92px;
        min-width: 92px;
    }

    .vehicle-pagination-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .vehicle-pagination-bar > div {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .monthly-cost-header {
        align-items: center;
        flex-direction: row;
        justify-content: space-between;
        gap: 12px;
    }

    .monthly-cost-header h1 {
        margin: 0;
        font-size: 1.35rem;
        white-space: nowrap;
    }

    .monthly-back-btn {
        min-width: 0;
        min-height: 38px;
        padding: 9px 12px;
        font-size: 0.82rem;
        white-space: nowrap;
    }

    .dashboard-stat-grid.monthly-cost-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .selesai-top-actions {
        justify-content: flex-end;
        margin-bottom: 12px;
    }

    .selesai-top-actions .nh-btn {
        min-height: 38px;
        padding: 9px 12px;
        font-size: 0.82rem;
    }

    .dashboard-stat-grid.selesai-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .stat-card.selesai-stat-card {
        min-height: 132px;
        padding: 16px;
    }

    .stat-card.selesai-stat-card strong {
        font-size: 1.45rem;
        line-height: 1.08;
        word-break: break-word;
    }

    .stat-card.selesai-stat-card p {
        font-size: 0.82rem;
        line-height: 1.45;
    }

    .selesai-table-wrap {
        border: 0;
        background: transparent;
    }

    .selesai-table tbody {
        display: grid;
        gap: 12px;
    }

    .selesai-table .selesai-record-row {
        display: grid;
        gap: 10px;
        padding: 14px;
        border: 1px solid var(--ui-line);
        background: #fff;
    }

    .selesai-table .selesai-record-row td {
        display: block;
        width: auto;
        padding: 0;
        border: 0;
        background: transparent !important;
    }

    .selesai-table .selesai-record-row td::before {
        display: block;
        margin-bottom: 5px;
        color: #94a3b8;
        font-size: 0.68rem;
        font-weight: 900;
        letter-spacing: 0.06em;
    }

    .selesai-table .selesai-record-row td[data-label="No Plat"] {
        display: block;
        padding-bottom: 10px;
        border-bottom: 1px solid var(--ui-line);
    }

    .selesai-plate-line {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .selesai-table .selesai-record-row td[data-label="No Plat"]::before {
        display: none;
    }

    .selesai-plate-line strong {
        color: var(--ui-heading);
        font-size: 1.15rem;
    }

    .selesai-plate-line .tag {
        margin: 0 !important;
    }

    .selesai-table .selesai-record-row td[data-label="Detail Kenderaan"],
    .selesai-table .selesai-record-row td[data-label="Kemaskini"],
    .selesai-table .selesai-record-row td[data-label="Nama / Alamat"],
    .selesai-table .selesai-record-row td[data-label="Negeri"],
    .selesai-table .selesai-record-row td[data-label="No Tel"] {
        display: none !important;
    }

    .selesai-table .selesai-record-row td[data-label="Dokumen"],
    .selesai-table .selesai-record-row td[data-label="Kewangan"] {
        padding: 10px;
        border: 1px solid var(--ui-line);
        background: #f8fafc !important;
    }

    .selesai-table .selesai-record-row td[data-label="Dokumen"] {
        margin-bottom: 10px;
    }

    .selesai-table .selesai-record-row strong {
        color: var(--ui-heading);
    }

    .selesai-table .selesai-record-row .small {
        color: var(--ui-muted-strong);
        font-size: 0.82rem;
        line-height: 1.4;
    }

    .payment-delete-btn {
        display: none;
    }

    .workflow-action-bar {
        position: static;
        align-items: stretch;
        flex-direction: column;
    }

    .workflow-action-controls {
        width: 100%;
        margin-left: 0;
        display: grid;
        grid-template-columns: 1fr;
    }

    .workflow-action-controls select {
        width: 100%;
    }

    .vehicles-bulk-action-bar .workflow-action-controls select,
    .vehicles-bulk-submit {
        width: 100%;
    }

    .workflow-action-bar .nh-btn {
        width: 100%;
    }

    .workflow-row-tools {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        min-width: 0;
        justify-items: stretch;
    }

    .waris-empty-cell .workflow-row-tools {
        min-height: 0;
    }

    .owner-waris-add-ghost {
        width: 100%;
        min-height: 34px;
        border-color: var(--ui-line-strong);
        background: #fff;
        color: var(--ui-primary);
        opacity: 1;
        transform: none;
        box-shadow: none;
    }

    .owner-waris-dropdown {
        width: 100%;
    }

    .owner-waris-dropdown summary {
        min-height: 38px;
        padding: 8px;
    }

    table.workflow-mobile-table td[data-label="Waris"] {
        padding: 10px;
        border: 1px solid var(--ui-line);
        background: #fbfcff !important;
    }

    .waris-header {
        align-items: stretch;
        flex-direction: column;
    }

    .waris-back-btn {
        min-height: 38px;
        padding: 9px 12px;
        font-size: 0.82rem;
        white-space: nowrap;
        width: fit-content;
    }

    .waris-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .waris-owner-card,
    .waris-form-card,
    .waris-list-card {
        padding: 14px;
    }

    .waris-info-list div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .mobile-detail-trigger {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
        margin-top: 12px;
        padding: 10px;
        border: 1px solid rgba(226, 232, 240, 0.88);
        background: rgba(248, 250, 252, 0.72);
        color: var(--ui-muted-strong);
        text-align: left;
        backdrop-filter: blur(8px);
        cursor: pointer;
    }

    .mobile-detail-trigger span:first-child {
        display: grid;
        gap: 3px;
        min-width: 0;
    }

    .mobile-detail-trigger strong {
        overflow: hidden;
        color: var(--ui-heading);
        font-size: 0.86rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-detail-trigger small {
        overflow: hidden;
        color: #94a3b8;
        font-size: 0.74rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-detail-trigger span:last-child {
        flex: 0 0 auto;
        color: var(--ui-primary);
        font-size: 0.76rem;
        font-weight: 900;
    }

    .mobile-detail-modal:not([hidden]) {
        position: fixed;
        inset: 0;
        z-index: 1200;
        display: block;
    }

    .mobile-detail-backdrop {
        position: absolute;
        inset: 0;
        background: rgba(15, 23, 42, 0.42);
        backdrop-filter: blur(5px);
    }

    .mobile-detail-panel {
        position: absolute;
        left: 14px;
        right: 14px;
        bottom: 14px;
        max-height: min(74vh, 680px);
        overflow: hidden;
        border: 1px solid var(--ui-line);
        background: #fff;
        box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
    }

    .mobile-detail-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 14px;
        border-bottom: 1px solid var(--ui-line);
    }

    .mobile-detail-head strong {
        color: var(--ui-heading);
        font-size: 1rem;
    }

    .mobile-detail-head button {
        width: 34px;
        height: 34px;
        border: 1px solid var(--ui-line);
        background: #f8fafc;
        color: var(--ui-heading);
        font-size: 1.3rem;
        line-height: 1;
    }

    .mobile-detail-body {
        display: grid;
        gap: 10px;
        max-height: calc(min(74vh, 680px) - 64px);
        overflow-y: auto;
        padding: 14px;
    }

    .mobile-detail-section,
    .mobile-detail-grid > div {
        padding: 10px;
        border: 1px solid var(--ui-line);
        background: #f8fafc;
    }

    .mobile-detail-section span,
    .mobile-detail-grid span {
        display: block;
        margin-bottom: 5px;
        color: #94a3b8;
        font-size: 0.68rem;
        font-weight: 900;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .mobile-detail-section strong,
    .mobile-detail-grid strong {
        color: var(--ui-heading);
    }

    .mobile-detail-section p {
        margin: 4px 0 0;
        color: var(--ui-muted-strong);
        font-size: 0.84rem;
        line-height: 1.4;
    }

    .mobile-detail-section .danger-text {
        color: #b91c1c;
        font-weight: 900;
    }

    .mobile-detail-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .stat-card.monthly-cost-stat {
        min-height: 128px;
        padding: 16px;
    }

    .stat-card.monthly-cost-stat strong {
        font-size: 1.45rem;
        line-height: 1.1;
    }

    .navbar-right .user-chip-body,
    .search-form-shortcut {
        display: none;
    }

    .card,
    .section-panel,
    .metric-panel,
    .auth-panel {
        padding: 18px;
    }

    .page-head-title {
        font-size: 1.8rem;
    }

    .dashboard-card-head,
    .stat-card {
        flex-direction: column;
    }

    .dashboard-filter-group,
    .dashboard-toolbar {
        width: 100%;
        flex-wrap: wrap;
    }

    .dashboard-toolbar > * {
        flex: 1 1 auto;
    }

    .form-grid.vehicle-filter-grid {
        grid-template-columns: 1fr;
    }

    .series-filter-grid,
    .series-metrics,
    .series-grid {
        grid-template-columns: 1fr;
    }

    .series-filter-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .series-submit-btn,
    .series-reset-btn {
        width: 100%;
    }

    .vehicle-filter-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .vehicle-filter-actions .nh-btn {
        width: 100%;
    }

    .phone-inline-editor {
        min-width: 0;
        width: 100%;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 34px;
        align-items: center;
        gap: 8px;
    }

    .phone-save-btn {
        opacity: 1;
        transform: none;
        justify-self: end;
    }

    .remark-inline-editor {
        min-width: 0;
        max-width: none;
    }

    .remark-readonly {
        min-width: 0;
        max-width: none;
    }

    .remark-save-btn {
        opacity: 1;
        transform: none;
    }

    .trend-chart {
        height: 220px;
    }

    .auth-shell-main {
        padding: 20px 14px;
    }

    .auth-shell-side {
        padding: 24px 18px 36px;
    }

    .auth-copy h1 {
        font-size: 1.82rem;
    }

    table.mobile-stack thead {
        display: none;
    }

    table.mobile-stack,
    table.mobile-stack tbody,
    table.mobile-stack tr,
    table.mobile-stack td {
        display: block;
        width: 100%;
    }

    table.mobile-stack tr {
        border-bottom: 1px solid var(--ui-line);
    }

    table.mobile-stack tr.vehicle-row-remark {
        border-color: #d7e1ec;
        background: #eef3f8;
        box-shadow: inset 4px 0 0 #64748b;
    }

    table.mobile-stack td {
        border-bottom: 0;
        padding: 10px 14px;
    }

    table.mobile-stack td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 4px;
        color: #94a3b8;
        font-size: 0.72rem;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    table.mobile-stack td[data-label="No Plat"] .vehicle-plate-head {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 10px;
        width: 100%;
    }

    table.mobile-stack td[data-label="No Plat"] .workflow-plate-line {
        flex: 1 1 auto;
        min-width: 0;
    }

    table.mobile-stack td[data-label="No Plat"] .vehicle-import-pdf-view {
        flex: 0 0 auto;
        margin-top: 0;
        margin-left: auto;
        padding: 7px 9px;
        white-space: nowrap;
    }

    body.route-vehicles table.mobile-stack:not(.workflow-mobile-table) tbody {
        display: grid;
        gap: 12px;
    }

    body.route-vehicles table.mobile-stack:not(.workflow-mobile-table) tr {
        display: grid;
        gap: 10px;
        padding: 14px;
        border: 1px solid var(--ui-line);
        background: #fff;
    }

    body.route-vehicles table.mobile-stack:not(.workflow-mobile-table) tr.vehicle-row-remark {
        background: #eef3f8;
        box-shadow: inset 4px 0 0 #64748b;
    }

    body.route-vehicles table.mobile-stack:not(.workflow-mobile-table) td {
        padding: 0;
        border: 0;
        background: transparent !important;
    }

    body.route-vehicles table.mobile-stack:not(.workflow-mobile-table) td[data-label="Detail Kenderaan"],
    body.route-vehicles table.mobile-stack:not(.workflow-mobile-table) td[data-label="Kemaskini"],
    body.route-vehicles table.mobile-stack:not(.workflow-mobile-table) td[data-label="IC"],
    body.route-vehicles table.mobile-stack:not(.workflow-mobile-table) td[data-label="Nama / Alamat"],
    body.route-vehicles table.mobile-stack:not(.workflow-mobile-table) td[data-label="Negeri"] {
        display: none;
    }

    body.route-vehicles table.mobile-stack:not(.workflow-mobile-table) td[data-label="No Plat"] {
        padding-bottom: 10px;
        border-bottom: 1px solid var(--ui-line);
    }

    body.route-vehicles table.mobile-stack:not(.workflow-mobile-table) td[data-label="No Plat"]::before {
        margin-bottom: 6px;
    }

    body.route-vehicles .mobile-vehicle-summary {
        display: grid;
        gap: 9px;
        margin-top: 10px;
    }

    body.route-vehicles .mobile-vehicle-line {
        display: grid;
        gap: 3px;
    }

    body.route-vehicles .mobile-vehicle-line span,
    body.route-vehicles .mobile-vehicle-mini-grid span,
    body.route-vehicles .mobile-vehicle-more span {
        color: #94a3b8;
        font-size: 0.66rem;
        font-weight: 900;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    body.route-vehicles .mobile-vehicle-line strong,
    body.route-vehicles .mobile-vehicle-mini-grid strong,
    body.route-vehicles .mobile-vehicle-more strong {
        color: var(--ui-heading);
        font-size: 0.88rem;
        line-height: 1.3;
    }

    body.route-vehicles .mobile-vehicle-mini-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    body.route-vehicles .mobile-vehicle-mini-grid > div {
        display: grid;
        gap: 4px;
        padding: 9px;
        border: 1px solid var(--ui-line);
        background: #f8fafc;
    }

    body.route-vehicles .mobile-vehicle-alerts {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    body.route-vehicles .mobile-vehicle-alerts:empty {
        display: none;
    }

    body.route-vehicles .mobile-vehicle-alerts span {
        display: inline-flex;
        align-items: center;
        padding: 6px 8px;
        background: #fff1f2;
        color: #b91c1c;
        font-size: 0.72rem;
        font-weight: 900;
    }

    body.route-vehicles .mobile-vehicle-more {
        border: 1px solid var(--ui-line);
        background: #fbfcff;
    }

    body.route-vehicles .mobile-vehicle-more summary {
        padding: 9px;
        color: var(--ui-primary);
        cursor: pointer;
        font-size: 0.78rem;
        font-weight: 900;
    }

    body.route-vehicles .mobile-vehicle-more > div {
        padding: 9px;
        border-top: 1px solid var(--ui-line);
    }

    body.route-vehicles .mobile-vehicle-more p {
        margin: 4px 0 0;
        color: var(--ui-muted-strong);
        font-size: 0.8rem;
        line-height: 1.35;
    }

    body.route-vehicles .danger-text {
        color: #b91c1c !important;
        font-weight: 900;
    }

    .workflow-table-wrap {
        overflow: visible;
        border: 0;
        background: transparent;
    }

    table.workflow-mobile-table tbody {
        display: grid;
        gap: 12px;
    }

    table.workflow-mobile-table tr {
        position: relative;
        display: grid;
        gap: 10px;
        padding: 14px;
        border: 1px solid var(--ui-line);
        background: #fff;
    }

    table.workflow-mobile-table tr:hover td {
        background: transparent;
    }

    table.workflow-mobile-table td {
        width: auto;
        padding: 0;
        border: 0;
        background: transparent !important;
        color: var(--ui-muted-strong);
        font-size: 0.82rem;
        line-height: 1.42;
    }

    table.workflow-mobile-table td::before {
        margin-bottom: 4px;
        font-size: 0.66rem;
        letter-spacing: 0.06em;
    }

    table.workflow-mobile-table td[data-label=""] {
        position: absolute;
        top: 14px;
        right: 14px;
        z-index: 1;
        width: auto;
        padding: 0;
    }

    table.workflow-mobile-table td[data-label=""]::before {
        display: none;
    }

    table.workflow-mobile-table .vehicle-select {
        width: 20px;
        height: 20px;
        display: block;
        cursor: pointer;
    }

    table.workflow-mobile-table td[data-label="No Plat"] {
        padding-right: 42px;
        padding-bottom: 10px;
        border-bottom: 1px solid var(--ui-line);
    }

    table.workflow-mobile-table td[data-label="No Plat"]::before {
        display: none;
    }

    table.workflow-mobile-table td[data-label="No Plat"] > strong {
        display: block;
        color: var(--ui-heading);
        font-size: 1.08rem;
        line-height: 1.15;
    }

    .workflow-plate-line {
        display: flex;
        align-items: center;
        gap: 8px;
        min-width: 0;
    }

    .workflow-plate-line > strong {
        color: var(--ui-heading);
        font-size: 1.08rem;
        line-height: 1.15;
    }

    .workflow-mobile-badge {
        display: inline-flex;
        flex: 0 0 auto;
        margin: 0;
    }

    .workflow-desktop-badge {
        display: none;
    }

    table.workflow-mobile-table td[data-label="No Plat"] .small {
        margin-top: 3px;
        color: var(--ui-muted);
        font-size: 0.78rem;
    }

    table.workflow-mobile-table .tag {
        padding: 5px 8px;
        font-size: 0.68rem;
    }

    table.workflow-mobile-table td[data-label="Detail Kenderaan"],
    table.workflow-mobile-table td[data-label="Kemaskini"],
    table.workflow-mobile-table td[data-label="Nama / Alamat"] {
        padding: 10px;
        border: 1px solid var(--ui-line);
        background: #f8fafc !important;
    }

    table.workflow-mobile-table td[data-label="IC"],
    table.workflow-mobile-table td[data-label="Negeri"],
    table.workflow-mobile-table td[data-label="No Tel"] {
        display: grid;
        grid-template-columns: 92px minmax(0, 1fr);
        align-items: start;
        gap: 8px;
        padding: 8px 10px;
        border: 1px solid var(--ui-line);
        background: #fbfcff !important;
    }

    table.workflow-mobile-table td[data-label="IC"]::before,
    table.workflow-mobile-table td[data-label="Negeri"]::before,
    table.workflow-mobile-table td[data-label="No Tel"]::before {
        margin: 0;
    }

    body.route-owner-meninggal table.workflow-mobile-table td[data-label="Detail Kenderaan"],
    body.route-owner-meninggal table.workflow-mobile-table td[data-label="Kemaskini"],
    body.route-owner-meninggal table.workflow-mobile-table td[data-label="IC"],
    body.route-owner-meninggal table.workflow-mobile-table td[data-label="Nama / Alamat"],
    body.route-owner-meninggal table.workflow-mobile-table td[data-label="Negeri"],
    body.route-owner-meninggal table.workflow-mobile-table td[data-label="No Tel"] {
        display: none;
    }

    body.route-owner-meninggal table.workflow-mobile-table .owner-mobile-detail-cell {
        display: block;
        padding: 0;
        border: 0;
        background: transparent !important;
    }

    body.route-owner-meninggal table.workflow-mobile-table .owner-mobile-detail-cell::before {
        display: none;
    }

    body.route-owner-meninggal .page-content {
        overflow-x: hidden;
        padding-left: 12px;
        padding-right: 12px;
    }

    body.route-owner-meninggal .nh-card {
        width: 100%;
        max-width: 100%;
        padding: 14px;
        overflow: hidden;
    }

    body.route-owner-meninggal .workflow-table-wrap,
    body.route-owner-meninggal table.workflow-mobile-table,
    body.route-owner-meninggal table.workflow-mobile-table tbody,
    body.route-owner-meninggal table.workflow-mobile-table tr,
    body.route-owner-meninggal table.workflow-mobile-table td {
        max-width: 100%;
    }

    body.route-owner-meninggal table.workflow-mobile-table tr {
        overflow: hidden;
        padding: 12px;
    }

    body.route-owner-meninggal table.workflow-mobile-table td[data-label=""] {
        top: 16px;
        right: 12px;
        width: 22px;
    }

    body.route-owner-meninggal table.workflow-mobile-table .vehicle-select {
        width: 18px;
        height: 18px;
    }

    body.route-owner-meninggal table.workflow-mobile-table td[data-label="No Plat"] {
        padding-right: 30px;
    }

    body.route-owner-meninggal table.workflow-mobile-table td[data-label="No Plat"] .vehicle-plate-head {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px;
        width: calc(100% - 28px);
    }

    body.route-owner-meninggal table.workflow-mobile-table td[data-label="No Plat"] .workflow-plate-line {
        min-width: 0;
        flex-wrap: wrap;
    }

    body.route-owner-meninggal table.workflow-mobile-table td[data-label="No Plat"] .vehicle-import-pdf-view {
        min-height: 28px;
        margin: 0;
        padding: 7px 8px;
        font-size: 0.68rem;
        white-space: nowrap;
    }

    body.route-owner-meninggal .owner-mobile-detail summary strong {
        min-width: 0;
    }

    body.route-owner-meninggal table.workflow-mobile-table td[data-label="Waris"],
    body.route-owner-meninggal table.workflow-mobile-table td[data-label="Remark"] {
        min-width: 0;
    }

    body.route-owner-meninggal .owner-waris-dropdown,
    body.route-owner-meninggal .owner-waris-dropdown summary,
    body.route-owner-meninggal .owner-waris-add-ghost,
    body.route-owner-meninggal .remark-cell-stack,
    body.route-owner-meninggal .remark-inline-editor,
    body.route-owner-meninggal .remark-inline-editor textarea {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .owner-mobile-detail {
        border: 1px solid var(--ui-line);
        background: #f8fafc;
    }

    .owner-mobile-detail summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 10px;
        color: var(--ui-muted-strong);
        cursor: pointer;
        list-style: none;
    }

    .owner-mobile-detail summary::-webkit-details-marker {
        display: none;
    }

    .owner-mobile-detail summary span {
        color: var(--ui-primary);
        font-size: 0.78rem;
        font-weight: 900;
    }

    .owner-mobile-detail summary strong {
        overflow: hidden;
        color: var(--ui-heading);
        font-size: 0.82rem;
        text-align: right;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .owner-mobile-detail[open] summary {
        border-bottom: 1px solid var(--ui-line);
        background: #fff;
    }

    .owner-mobile-detail-body {
        display: grid;
        gap: 8px;
        padding: 10px;
    }

    .owner-mobile-detail-body > div,
    .owner-mobile-detail-grid > div {
        padding: 9px;
        border: 1px solid var(--ui-line);
        background: #fff;
    }

    .owner-mobile-detail-body span,
    .owner-mobile-detail-grid span {
        display: block;
        margin-bottom: 5px;
        color: #94a3b8;
        font-size: 0.66rem;
        font-weight: 900;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .owner-mobile-detail-body strong,
    .owner-mobile-detail-grid strong {
        color: var(--ui-heading);
    }

    .owner-mobile-detail-body p {
        margin: 4px 0 0;
        color: var(--ui-muted-strong);
        font-size: 0.8rem;
        line-height: 1.35;
    }

    .owner-mobile-detail-body .danger-text {
        color: #b91c1c;
        font-weight: 900;
    }

    .owner-mobile-detail-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
    }

    .users-square-page .noble-table-card {
        margin-top: 0;
        padding: 14px;
    }

    .users-square-page .noble-table-head {
        align-items: center;
        gap: 10px;
        margin-bottom: 14px;
    }

    .users-square-page .noble-table-head .card-title {
        font-size: 1.2rem;
    }

    .users-square-page .card-subtitle {
        font-size: 0.9rem;
        line-height: 1.45;
    }

    .users-square-page .noble-table-count {
        flex: 0 0 auto;
        min-height: 30px;
        padding: 6px 9px;
        font-size: 0.74rem;
    }

    .users-square-page .noble-table-responsive {
        border: 0;
        background: transparent;
    }

    .users-square-page .noble-basic-table tbody {
        display: grid;
        gap: 12px;
    }

    .users-square-page .noble-basic-table tr {
        display: grid;
        grid-template-columns: 46px minmax(0, 1fr);
        grid-template-areas:
            "avatar name"
            "avatar email"
            "meta meta"
            "actions actions"
            "login login"
            "created created";
        gap: 6px 12px;
        padding: 14px;
        border: 1px solid var(--ui-line);
        background: #fff;
    }

    .users-square-page .noble-basic-table td {
        display: block;
        width: auto;
        padding: 0;
        border: 0;
        background: transparent !important;
    }

    .users-square-page .noble-basic-table td::before {
        display: none;
    }

    .users-square-page .user-cell-avatar {
        grid-area: avatar;
    }

    .users-square-page .user-table-avatar {
        width: 44px;
        height: 44px;
    }

    .users-square-page .user-cell-name {
        grid-area: name;
        min-width: 0;
    }

    .users-square-page .user-cell-name strong {
        display: block;
        overflow: hidden;
        color: var(--ui-heading);
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .users-square-page .user-cell-email {
        grid-area: email;
        overflow-wrap: anywhere;
        color: var(--ui-muted-strong);
        font-size: 0.88rem;
    }

    .users-square-page .user-cell-role,
    .users-square-page .user-cell-status,
    .users-square-page .user-cell-login,
    .users-square-page .user-cell-created {
        display: inline-flex;
        align-items: center;
        margin-top: 4px;
        color: var(--ui-muted);
        font-size: 0.78rem;
    }

    .users-square-page .user-cell-role {
        grid-area: meta;
        justify-self: start;
    }

    .users-square-page .user-cell-status {
        grid-area: meta;
        justify-self: end;
    }

    .users-square-page .user-cell-login {
        grid-area: login;
        margin-top: 6px;
    }

    .users-square-page .user-cell-created {
        grid-area: created;
        margin-top: 0;
    }

    .users-square-page .user-cell-login,
    .users-square-page .user-cell-created {
        display: grid;
        grid-template-columns: 108px minmax(0, 1fr);
        align-items: center;
        gap: 8px;
        padding: 7px 9px;
        border: 1px solid var(--ui-line);
        background: #f8fafc !important;
        color: var(--ui-muted-strong);
        font-size: 0.78rem;
    }

    .users-square-page .noble-basic-table .user-cell-login::before,
    .users-square-page .noble-basic-table .user-cell-created::before {
        content: attr(data-label);
        display: inline-block;
        margin: 0;
        color: #94a3b8;
        font-size: 0.7rem;
        font-weight: 900;
        letter-spacing: 0.06em;
        white-space: nowrap;
    }

    .users-square-page .user-cell-actions {
        grid-area: actions;
        margin-top: 8px;
        padding-top: 10px;
        border-top: 1px solid var(--ui-line);
    }

    .users-square-page .table-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .users-square-page .table-actions form {
        display: block;
    }

    .users-square-page .table-action-btn {
        width: 100%;
        min-height: 36px;
        justify-content: center;
    }
}

/* Global square UI preference */
.page-shell-boxed,
.card,
.nh-card,
.section-panel,
.metric-panel,
.stat-card,
.dashboard-trend-card,
.dashboard-table-card,
.dashboard-list-card,
.dashboard-highlight,
.table-wrap,
.noble-table-card,
.noble-table-responsive,
.toolbar-chip,
.chart-tabs,
.chart-tabs span,
.chart-year-filter,
.chart-year-filter select,
.tag,
.role-tag,
.status-tag,
.noble-table-count,
.user-table-avatar,
.user-chip,
.user-chip-avatar,
.topbar-icon,
.search-form,
.sidebar-brand-mark,
.sidebar-toggle,
.nav-link,
.sidebar-footer .nav-link,
.alert,
input,
textarea,
select,
button,
.btn,
.nh-btn {
    border-radius: 0 !important;
}
