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

:root {
    --primary: #1a3a6e;
    --primary-light: #2451a3;
    --accent: #f5a623;
    --danger: #e53e3e;
    --success: #38a169;
    --warning: #d69e2e;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --white: #ffffff;
    --sidebar-width: 216px;
    --header-height: 64.8px;
    --radius: 10.8px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow: 0 4px 14.4px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 28.8px rgba(0, 0, 0, 0.15);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
    background: var(--gray-50);
    color: var(--gray-800);
    font-size: 13.5px;
    line-height: 1.5;
}

button,
input,
select,
textarea {
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
}

/* ===== SCREENS ===== */
.screen {
    display: none;
    width: 100%;
    min-height: 100vh;
}

.screen.active {
    display: flex;
}

/* ===== LOGIN ===== */
.login-page {
    min-height: 100vh;
    display: flex;
    background: var(--gray-50);
}

#screen-login {
    background: var(--gray-50);
}

.login-left {
    width: 50%;
    min-height: 100vh;
    background:
        linear-gradient(90deg, rgba(7, 22, 47, 0.98) 0%, rgba(10, 30, 61, 0.88) 42%, rgba(13, 42, 90, 0.42) 100%),
        url('../img/hero-login.png') center / cover no-repeat,
        linear-gradient(135deg, #0a1e3d 0%, #1a3a6e 60%, #0d2a5a 100%);
    padding: 43.2px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.login-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.login-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.login-logo img {
    width: 151.2px;
    height: auto;
    display: block;
}

.login-logo-company {
    color: rgba(255, 255, 255, 0.88);
    font-size: 10.8px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.2px;
}

.login-logo-text {
    color: white;
    font-size: 25.2px;
    font-weight: 800;
    letter-spacing: -1px;
}

.login-logo-sub {
    color: rgba(255, 255, 255, 0.7);
    font-size: 9.9px;
    font-weight: 400;
}

.login-hero {
    position: relative;
    z-index: 1;
}

.login-tag {
    color: var(--accent);
    font-size: 9.9px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10.8px;
}

.login-title {
    color: white;
    font-size: 28.8px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 8px;
}

.login-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12.6px;
    margin-bottom: 36px;
}

.login-divider {
    width: 43.2px;
    height: 3px;
    background: var(--accent);
    margin-bottom: 28.8px;
    border-radius: 2px;
}

.login-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 11.7px;
    line-height: 1.7;
    margin-bottom: 36px;
}

.login-values {
    display: flex;
    flex-direction: column;
    gap: 14.4px;
}

.login-value {
    display: flex;
    align-items: flex-start;
    gap: 12.6px;
}

.login-value-icon {
    width: 37.8px;
    height: 37.8px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.login-value-icon svg {
    width: 18px;
    height: 18px;
}

.login-value-title {
    color: var(--accent);
    font-size: 11.7px;
    font-weight: 700;
    margin-bottom: 2px;
}

.login-value-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 10.8px;
}

.login-rodamas {
    display: flex;
    align-items: center;
    gap: 10.8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9px;
    padding: 12.6px 16.2px;
    position: relative;
    z-index: 1;
}

.login-rodamas-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 9.9px;
}

.login-rodamas-brand {
    color: var(--accent);
    font-size: 12.6px;
    font-weight: 800;
    letter-spacing: 1px;
}

.login-right {
    width: 50%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 43.2px;
    background: white;
}

.login-form-wrap {
    width: 100%;
    max-width: 378px;
}

.login-form-icon {
    width: 57.6px;
    height: 57.6px;
    background: var(--gray-100);
    border-radius: 14.4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25.2px;
}

.login-form-title {
    font-size: 23.4px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 6px;
}

.login-form-sub {
    color: var(--gray-500);
    font-size: 12.6px;
    margin-bottom: 32.4px;
}

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 11.7px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 10.8px 14.4px;
    border: 1.5px solid var(--gray-200);
    border-radius: 9px;
    font-size: 12.6px;
    font-family: inherit;
    color: var(--gray-800);
    background: white;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 58, 110, 0.1);
}

.input-wrap,
.form-input-wrap {
    position: relative;
}

.input-wrap .form-input {
    padding-right: 39.6px;
}

.input-icon,
.form-input-icon {
    position: absolute;
    right: 12.6px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    cursor: pointer;
}

.input-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.icon-sm {
    width: 14.4px;
    height: 14.4px;
    display: block;
    flex-shrink: 0;
}

.login-forgot {
    text-align: right;
    margin-top: -12px;
    margin-bottom: 21.6px;
}

.login-forgot a {
    color: var(--primary-light);
    font-size: 11.7px;
    font-weight: 500;
    text-decoration: none;
}

.login-button,
.btn-login {
    width: 100%;
    padding: 12.6px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 9px;
    font-size: 13.5px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s, transform 0.1s;
    margin-bottom: 25.2px;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-login:hover {
    background: var(--primary-light);
}

.btn-login:active {
    transform: scale(0.99);
}

.login-divider-line {
    display: flex;
    align-items: center;
    gap: 10.8px;
    color: var(--gray-400);
    font-size: 10.8px;
    margin-bottom: 18px;
}

.login-divider-line::before,
.login-divider-line::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

.login-secure {
    display: flex;
    align-items: center;
    gap: 10.8px;
    padding: 12.6px 14.4px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 9px;
}

.login-secure>svg {
    width: 19.8px;
    height: 19.8px;
    color: var(--primary);
    flex-shrink: 0;
}

.login-secure-text {
    font-size: 10.8px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 2px;
}

.login-secure-sub {
    font-size: 9.9px;
    color: var(--gray-400);
}

.login-footer {
    text-align: center;
    margin-top: 21.6px;
    color: var(--gray-400);
    font-size: 10.8px;
}

/* ===== MAIN APP ===== */
#screen-app {
    flex-direction: row;
    min-height: 100vh;
    min-width: 0;
    max-width: 100%;
}

/* SIDEBAR */
.sidebar {
    width: var(--sidebar-width);
    background: white;
    border-right: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 100;
}

.sidebar-logo {
    padding: 18px 18px 14.4px;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    gap: 9px;
}

.sidebar-logo-img {
    background: var(--primary);
    color: white;
    font-size: 14.4px;
    font-weight: 900;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: -1px;
}

.sidebar-logo-name {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--gray-900);
}

.sidebar-logo-sub {
    font-size: 9px;
    color: var(--gray-700);
    font-weight: 700;
    line-height: 1.35;
}

.sidebar-nav {
    flex: 1;
    padding: 10.8px 10.8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 10.8px;
    border-radius: 9px;
    color: var(--gray-600);
    font-size: 12.6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
}

.nav-item:hover {
    background: var(--gray-100);
    color: var(--gray-800);
}

.nav-item.active {
    background: var(--primary);
    color: white;
}

.nav-item svg {
    width: 16.2px;
    height: 16.2px;
    flex-shrink: 0;
}

.sidebar-bottom {
    padding: 10.8px;
    border-top: 1px solid var(--gray-100);
}

.sidebar-truck {
    overflow: hidden;
    border-radius: 9px;
    background: linear-gradient(135deg, #0a1e3d, #1a3a6e);
    margin-bottom: 8px;
    height: 90px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 0;
}

.sidebar-truck img {
    max-width: 100%;
}

/* MAIN CONTENT */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-width: 0;
    max-width: calc(100vw - var(--sidebar-width));
}

/* TOPBAR */
.topbar {
    height: var(--header-height);
    background: white;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 25.2px;
    position: sticky;
    top: 0;
    z-index: 50;
    gap: 14.4px;
}

.topbar-title-wrap {
    flex: 1;
}

.topbar-title {
    font-size: 18.9px;
    font-weight: 800;
    color: var(--gray-900);
}

.topbar-sub {
    font-size: 11.7px;
    color: var(--gray-500);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10.8px;
    margin-left: auto;
}

.topbar-search {
    width: 32.4px;
    height: 32.4px;
    border-radius: 9px;
    border: 1.5px solid var(--gray-200);
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    transition: all 0.15s;
}

.topbar-search:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.topbar-notif {
    position: relative;
    width: 32.4px;
    height: 32.4px;
    border-radius: 9px;
    border: 1.5px solid var(--gray-200);
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    transition: all 0.15s;
}

.topbar-notif:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--danger);
    color: white;
    font-size: 9px;
    font-weight: 700;
    width: 14.4px;
    height: 14.4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 10.8px 6px 6px;
    border: 1.5px solid var(--gray-200);
    border-radius: 9px;
    cursor: pointer;
    transition: all 0.15s;
}

.topbar-user:hover {
    border-color: var(--gray-300);
    background: var(--gray-50);
}

.topbar-avatar {
    width: 28.8px;
    height: 28.8px;
    border-radius: 8px;
    background: var(--gray-300);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.topbar-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.topbar-name {
    font-size: 12.6px;
    font-weight: 600;
    color: var(--gray-800);
}

.topbar-role {
    font-size: 10.8px;
    color: var(--gray-400);
}

/* PAGE CONTENT */
.page {
    display: none;
    flex: 1;
    padding: 25.2px;
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
}

.page.active {
    display: block;
}

.page-content-head {
    margin-bottom: 19.8px;
}

.page-content-title {
    font-size: 23.4px;
    line-height: 1.2;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
}

.page-content-sub {
    font-size: 12.6px;
    line-height: 1.5;
    color: var(--primary);
}

/* ===== DASHBOARD ===== */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14.4px;
    margin-bottom: 25.2px;
}

.stat-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14.4px;
    cursor: pointer;
    transition: all 0.15s;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--gray-300);
    transform: translateY(-1px);
}

.stat-card::after {
    content: '';
    position: absolute;
    right: 16.2px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-top: 2px solid var(--gray-300);
    border-right: 2px solid var(--gray-300);
    transform: translateY(-50%) rotate(45deg);
}

.stat-icon {
    width: 43.2px;
    height: 43.2px;
    border-radius: 10.8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon svg {
    width: 21.6px;
    height: 21.6px;
}

.stat-label {
    font-size: 11.7px;
    color: var(--gray-500);
    margin-bottom: 4px;
}

.stat-number {
    font-size: 25.2px;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1;
    margin-bottom: 2px;
}

.stat-sub {
    font-size: 10.8px;
    color: var(--gray-400);
}

.section-title {
    font-size: 15.3px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 14.4px;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14.4px;
    margin-bottom: 25.2px;
}

.service-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 21.6px 18px;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s;
}

.service-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--gray-300);
    transform: translateY(-2px);
}

.service-icon {
    width: 50.4px;
    height: 50.4px;
    border-radius: 12.6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10.8px;
}

.service-name {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 6px;
}

.service-desc {
    font-size: 11.7px;
    color: var(--gray-500);
    line-height: 1.5;
    margin-bottom: 12.6px;
}

.service-link {
    color: var(--primary);
    font-size: 11.7px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

/* TABLE */
.table-section {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
}

.table-header {
    padding: 14.4px 18px;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: between;
}

.table-section-title {
    padding: 14.4px 18px 0;
    font-size: 14.4px;
    font-weight: 800;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10.8px;
}

.table-title {
    font-size: 14.4px;
    font-weight: 700;
    color: var(--gray-900);
    flex: 1;
}

.table-link {
    color: var(--primary);
    font-size: 12.6px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    padding: 11.7px 18px;
    text-align: left;
    font-size: 11.7px;
    font-weight: 700;
    color: var(--gray-600);
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

td {
    padding: 13.5px 18px;
    font-size: 12.6px;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
}

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

tr:hover td {
    background: var(--gray-50);
}

.type-icon {
    width: 28.8px;
    height: 28.8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.td-type {
    display: flex;
    align-items: center;
    gap: 9px;
}

.td-type-name {
    font-size: 12.6px;
    font-weight: 600;
    color: var(--gray-800);
}

.td-date {
    font-size: 12.6px;
    color: var(--gray-700);
}

.td-sub {
    font-size: 10.8px;
    color: var(--gray-400);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 18px;
    font-size: 10.8px;
    font-weight: 700;
}

.badge-process {
    background: #fff7e6;
    color: #d69e2e;
}

.badge-process::before {
    content: '';
    width: 6px;
    height: 6px;
    flex-shrink: 0;
    border-radius: 50%;
    background: currentColor;
}

.badge-approved {
    background: #f0fff4;
    color: #38a169;
}

.badge-approved::before {
    content: '';
    width: 0;
    height: 0;
    flex-shrink: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 7px solid currentColor;
}

.badge-rejected {
    background: #fff5f5;
    color: #e53e3e;
}

.badge-rejected::before {
    content: '';
    width: 0;
    height: 0;
    flex-shrink: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 7px solid currentColor;
}

.badge-done {
    background: var(--gray-100);
    color: var(--gray-500);
}

.badge-done::before {
    content: '';
    width: 6px;
    height: 6px;
    flex-shrink: 0;
    border-radius: 50%;
    background: currentColor;
}

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

.btn-detail {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 30.6px;
    padding: 6px 10.8px;
    border-radius: 8px;
    border: 1.5px solid var(--gray-200);
    background: white;
    color: var(--gray-700);
    font-size: 11.7px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
}

.btn-detail:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-more {
    width: 25.2px;
    height: 25.2px;
    border-radius: 6px;
    border: 1.5px solid var(--gray-200);
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12.6px;
    color: var(--gray-500);
    transition: all 0.15s;
}

.btn-more:hover {
    border-color: var(--gray-400);
}

.action-btns.action-right {
    justify-content: flex-end;
}

.btn-more.btn-icon-edit,
.btn-more.btn-icon-delete {
    width: 39.6px;
    height: 39.6px;
    border-width: 2px;
    border-radius: 9px;
    background: white;
}

.btn-more.btn-icon-edit {
    border-color: #dfe7ff;
    color: #0057ff;
    box-shadow: 0 2px 8px rgba(0, 87, 255, 0.04);
}

.btn-more.btn-icon-edit:hover {
    border-color: #b8c9ff;
    background: #f8fbff;
}

.btn-more.btn-icon-delete {
    border-color: #fecaca;
    color: #ef233c;
    box-shadow: 0 2px 8px rgba(239, 35, 60, 0.04);
}

.btn-more.btn-icon-delete:hover {
    border-color: #ef233c;
    background: #fff5f5;
}

.btn-more.btn-icon-print {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #16a34a;
}

.btn-more.btn-icon-print:hover {
    border-color: #4ade80;
    background: #dcfce7;
}

.btn-more.btn-icon-back {
    border-color: var(--gray-200);
    background: var(--gray-50);
    color: var(--gray-600);
}

.btn-more.btn-icon-back:hover {
    border-color: var(--gray-400);
    background: white;
}

.table-photo {
    width: 39.6px;
    height: 39.6px;
    border-radius: 8px;
    object-fit: cover;
    border: 1.5px solid var(--gray-200);
    background: var(--gray-100);
}

.table-photo-fallback {
    width: 39.6px;
    height: 39.6px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--gray-200);
    background: var(--gray-100);
    color: var(--gray-500);
    font-size: 10.8px;
    font-weight: 800;
}

.detail-photo {
    width: 100%;
    max-width: 288px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1.5px solid var(--gray-200);
    border-radius: 8px;
    background: var(--gray-100);
}

.detail-photo-fallback {
    width: 100%;
    max-width: 288px;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px dashed var(--gray-300);
    border-radius: 8px;
    background: var(--gray-50);
    color: var(--gray-500);
    font-size: 11.7px;
    font-weight: 700;
}

/* ===== ADMIN DASHBOARD ANALYTICS ===== */
.admin-dashboard-head {
    margin-bottom: 19.8px;
}

.admin-dashboard-title {
    font-size: 21.6px;
    line-height: 1.2;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10.8px;
}

.admin-dashboard-greet {
    font-size: 11.7px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
}

.admin-dashboard-sub {
    font-size: 11.7px;
    color: var(--primary);
}

.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14.4px;
    margin-bottom: 16.2px;
}

.admin-stat-card {
    min-height: 104.4px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 16.2px;
    padding: 19.8px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.admin-stat-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.admin-stat-icon {
    width: 52.2px;
    height: 52.2px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.admin-stat-icon svg {
    width: 25.2px;
    height: 25.2px;
}

.admin-stat-label {
    font-size: 12.6px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.admin-stat-number {
    font-size: 25.2px;
    line-height: 1;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
}

.admin-stat-change {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11.7px;
    color: var(--primary);
}

.admin-stat-change.up span {
    color: #16a34a;
    font-weight: 800;
}

.admin-stat-change.down span {
    color: #ef4444;
    font-weight: 800;
}

.admin-panel-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14.4px;
}

.admin-panel-chart {
    grid-column: span 2;
}

.admin-panel-follow {
    grid-column: span 2;
}

.admin-panel-latest {
    grid-column: 1 / -1;
}

.admin-panel {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 18px 19.8px;
    box-shadow: var(--shadow-sm);
    min-width: 0;
}

.admin-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10.8px;
    margin-bottom: 16.2px;
}

.admin-panel-title {
    font-size: 14.4px;
    font-weight: 800;
    color: var(--primary);
}

.admin-mini-select {
    border: 1.5px solid var(--gray-200);
    border-radius: 8px;
    padding: 8px 10.8px;
    font-size: 11.7px;
    font-weight: 700;
    color: var(--primary);
    background: white;
}

.chart-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 19.8px;
    margin-bottom: 12.6px;
}

.chart-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11.7px;
    color: var(--primary);
}

.legend-dot {
    width: 14.4px;
    height: 8px;
    border-radius: 4px;
    display: inline-flex;
}

.bar-chart {
    height: 225px;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10.8px;
    align-items: end;
    padding: 9px 0 0;
    border-bottom: 1px solid var(--gray-200);
    position: relative;
}

.bar-chart::before {
    content: "";
    position: absolute;
    inset: 0 0 0 0;
    background: repeating-linear-gradient(to top, transparent 0, transparent 35.1px, var(--gray-100) 36px);
    pointer-events: none;
}

.bar-group {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 6px;
}

.bar {
    width: 12.6px;
    min-height: 3px;
    border-radius: 4px 4px 0 0;
    box-shadow: 0 8px 16.2px rgba(37, 99, 235, 0.16);
}

.bar.approved {
    background: linear-gradient(180deg, #3b82f6, #2563eb);
}

.bar.waiting {
    background: linear-gradient(180deg, #fbbf24, #f59e0b);
}

.bar.rejected {
    background: linear-gradient(180deg, #fb7185, #ef4444);
}

.bar-labels {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10.8px;
    padding-top: 9px;
}

.bar-labels span {
    text-align: center;
    color: var(--primary);
    font-size: 10.8px;
}

.donut-wrap {
    display: grid;
    grid-template-columns: 207px 1fr;
    align-items: center;
    gap: 21.6px;
    min-height: 270px;
}

.donut-chart {
    width: 198px;
    height: 198px;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px var(--gray-100);
}

.donut-chart::after {
    content: "";
    position: absolute;
    inset: 56.7px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 0 1px var(--gray-100);
    pointer-events: none;
}

.donut-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    overflow: visible;
}

.donut-segment {
    cursor: pointer;
    transition: stroke-width 0.16s ease, opacity 0.16s ease;
}

.donut-segment:hover,
.donut-segment.is-active {
    stroke-width: 22;
    opacity: 0.9;
}

.donut-popup {
    position: absolute;
    left: calc(100% + 12.6px);
    top: 50%;
    z-index: 3;
    min-width: 135px;
    transform: translateY(-50%) scale(0.96);
    padding: 9px 10.8px;
    border-radius: 8px;
    background: white;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    color: var(--primary);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.14s ease, transform 0.14s ease;
    text-align: center;
}

.donut-popup.show {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.donut-popup-title {
    font-size: 11.7px;
    font-weight: 800;
    margin-bottom: 4px;
}

.donut-popup-value {
    font-size: 19.8px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 4px;
}

.donut-popup-sub {
    font-size: 10.8px;
    color: var(--gray-500);
}

.donut-legend {
    display: grid;
    gap: 12.6px;
}

.donut-item {
    display: flex;
    align-items: start;
    gap: 10.8px;
    color: var(--primary);
    font-size: 11.7px;
    cursor: pointer;
    border-radius: 8px;
    padding: 4px;
    margin: -4px;
    transition: background 0.15s ease;
}

.donut-item:hover,
.donut-item.is-active {
    background: var(--gray-50);
}

.donut-dot {
    width: 9.9px;
    height: 9.9px;
    border-radius: 4px;
    margin-top: 4px;
    flex-shrink: 0;
}

.donut-name {
    font-weight: 800;
    margin-bottom: 2px;
}

.vehicle-list {
    display: grid;
    gap: 0;
}

.vehicle-row {
    display: grid;
    grid-template-columns: 30.6px 1fr auto auto;
    align-items: center;
    gap: 10.8px;
    padding: 11.7px 0;
    border-bottom: 1px solid var(--gray-100);
    color: var(--primary);
}

.vehicle-row:last-child {
    border-bottom: none;
}

.vehicle-icon {
    width: 30.6px;
    height: 30.6px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vehicle-icon svg {
    width: 16.2px;
    height: 16.2px;
}

.vehicle-label {
    font-size: 12.6px;
    font-weight: 800;
}

.vehicle-count {
    font-size: 12.6px;
    font-weight: 800;
}

.vehicle-percent {
    font-size: 11.7px;
    font-weight: 800;
    color: #2563eb;
    min-width: 39.6px;
    text-align: right;
}

.follow-table {
    width: 100%;
    border-collapse: collapse;
}

.follow-table th,
.follow-table td {
    padding: 12.6px 4px;
    border-bottom: 1px solid var(--gray-100);
    font-size: 12.6px;
    color: var(--primary);
}

.follow-table th {
    font-size: 11.7px;
    font-weight: 800;
    color: var(--primary);
}

.follow-type {
    display: flex;
    align-items: center;
    gap: 10.8px;
    font-weight: 700;
}

.follow-icon {
    width: 16.2px;
    height: 16.2px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 9.9px;
    font-weight: 900;
    color: white;
}

.follow-icon.wait {
    background: #f59e0b;
}

.follow-icon.warning {
    background: #f59e0b;
    clip-path: polygon(50% 0, 100% 90%, 0 90%);
    border-radius: 0;
}

.follow-icon.danger {
    background: #ef4444;
}

.panel-action-link {
    margin-top: 12.6px;
    height: 34.2px;
    border: 1.5px solid var(--gray-200);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12.6px;
    color: #0057ff;
    font-size: 10.8px;
    font-weight: 800;
}

.recent-table {
    width: 100%;
    border-collapse: collapse;
}

.recent-table th,
.recent-table td {
    padding: 10.8px 4px;
    border-bottom: 1px solid var(--gray-100);
    color: var(--primary);
    font-size: 12.6px;
    text-align: left;
}

.recent-table th {
    font-size: 11.7px;
    font-weight: 800;
}

.admin-dashboard-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 6px;
    font-size: 9.9px;
    font-weight: 800;
    background: #dcfce7;
    color: #15803d;
}

@media (max-width: 1180px) {
    .admin-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .admin-panel-chart,
    .admin-panel-follow,
    .admin-panel-latest {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .admin-stat-grid {
        grid-template-columns: 1fr;
    }

    .admin-panel-grid {
        grid-template-columns: 1fr;
    }

    .admin-panel-chart,
    .admin-panel-follow,
    .admin-panel-latest {
        grid-column: auto;
    }

    .donut-wrap {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .donut-chart {
        width: 171px;
        height: 171px;
    }

    .donut-chart::after {
        inset: 48.6px;
    }

    .donut-popup {
        left: 50%;
        top: calc(100% + 9px);
        transform: translateX(-50%) scale(0.96);
    }

    .donut-popup.show {
        transform: translateX(-50%) scale(1);
    }

    .bar {
        width: 9px;
    }

    .vehicle-row {
        grid-template-columns: 30.6px 1fr auto;
    }

    .vehicle-percent {
        display: none;
    }
}

/* ===== PENGAJUAN ===== */
.page-toolbar {
    display: flex;
    align-items: center;
    gap: 10.8px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.tabs {
    display: flex;
    gap: 4px;
    background: var(--gray-100);
    border-radius: 9px;
    padding: 4px;
}

.tab {
    padding: 8px 14.4px;
    border-radius: 8px;
    font-size: 12.6px;
    font-weight: 700;
    color: var(--gray-500);
    cursor: pointer;
    transition: all 0.15s;
    border: none;
    background: transparent;
    font-family: inherit;
}

.tab.active {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.spacer {
    flex: 1;
}

.btn-primary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16.2px;
    border-radius: 9px;
    background: var(--primary);
    color: white;
    font-size: 12.6px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
}

.btn-primary:hover {
    background: var(--primary-light);
}

.btn-primary svg {
    width: 14.4px;
    height: 14.4px;
}

/* ===== FILTER BAR ===== */
.filter-bar {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 14.4px 18px;
    display: flex;
    align-items: center;
    gap: 10.8px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.filter-search {
    flex: 1;
    min-width: 198px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid var(--gray-200);
    border-radius: 8px;
    padding: 8px 10.8px;
    transition: border-color 0.2s;
}

.filter-search:focus-within {
    border-color: var(--primary);
}

.filter-search input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 12.6px;
    font-family: inherit;
    color: var(--gray-700);
    background: transparent;
}

.filter-search input::placeholder {
    color: var(--gray-400);
}

.filter-select {
    padding: 8px 28.8px 8px 10.8px;
    border: 1.5px solid var(--gray-200);
    border-radius: 8px;
    font-size: 12.6px;
    font-family: inherit;
    color: var(--gray-700);
    background: white;
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 9px center;
    transition: border-color 0.2s;
}

.filter-select:focus {
    border-color: var(--primary);
}

.btn-reset {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12.6px;
    border-radius: 8px;
    border: 1.5px solid var(--gray-200);
    background: white;
    color: var(--gray-600);
    font-size: 10.8px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
}

.btn-reset:hover {
    border-color: var(--gray-400);
}

/* ===== LACAK ===== */
.track-cards {
    display: flex;
    flex-direction: column;
    gap: 10.8px;
}

.track-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14.4px;
    transition: all 0.15s;
}

.track-card:hover {
    box-shadow: var(--shadow);
}

.track-icon {
    width: 46.8px;
    height: 46.8px;
    border-radius: 10.8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.track-info {
    flex: 1;
}

.track-type {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 2px;
}

.track-id {
    display: inline-block;
    background: var(--gray-100);
    color: var(--gray-600);
    font-size: 9.9px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 9px;
}

.track-meta {
    display: flex;
    gap: 21.6px;
}

.track-meta-item label {
    font-size: 9.9px;
    color: var(--gray-400);
    display: block;
    margin-bottom: 2px;
}

.track-meta-item span {
    font-size: 11.7px;
    color: var(--gray-700);
    font-weight: 500;
}

.track-status {
    text-align: right;
    min-width: 144px;
}

.track-status-label {
    font-size: 9.9px;
    color: var(--gray-400);
    margin-bottom: 6px;
}

.track-status-date {
    font-size: 9.9px;
    color: var(--gray-400);
    margin-top: 4px;
}

.track-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===== RIWAYAT ===== */
.riwayat-table .track-id {
    background: var(--gray-100);
}

.pagination {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-end;
    padding: 14.4px 18px;
    border-top: 1px solid var(--gray-100);
}

.page-btn {
    width: 28.8px;
    height: 28.8px;
    border-radius: 8px;
    border: 1.5px solid var(--gray-200);
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11.7px;
    font-weight: 600;
    color: var(--gray-600);
    font-family: inherit;
    transition: all 0.15s;
}

.page-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.page-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.riwayat-info {
    padding: 10.8px 18px;
    font-size: 10.8px;
    color: var(--gray-500);
}

/* ===== PROFILE ===== */
.profile-grid {
    display: grid;
    grid-template-columns: 288px 1fr;
    gap: 18px;
}

.profile-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
}

.profile-card-body {
    padding: 21.6px;
}

.profile-card-section {
    border-top: 1px solid var(--gray-100);
    padding: 18px 21.6px;
}

.profile-avatar-wrap {
    text-align: center;
    margin-bottom: 18px;
}

.profile-avatar {
    width: 79.2px;
    height: 79.2px;
    border-radius: 50%;
    background: var(--gray-300);
    margin: 0 auto 10.8px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-edit-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 25.2px;
    height: 25.2px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--gray-600);
}

.profile-name {
    font-size: 16.2px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 6px;
}

.profile-role-badge {
    display: inline-block;
    background: var(--gray-100);
    color: var(--gray-600);
    font-size: 10.8px;
    font-weight: 600;
    padding: 3px 10.8px;
    border-radius: 18px;
}

.profile-info-list {
    display: flex;
    flex-direction: column;
    gap: 12.6px;
}

.profile-info-item {
    display: flex;
    align-items: flex-start;
    gap: 10.8px;
}

.profile-info-icon {
    width: 28.8px;
    height: 28.8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
}

.profile-info-label {
    font-size: 9.9px;
    color: var(--gray-400);
    margin-bottom: 1px;
}

.profile-info-val {
    font-size: 11.7px;
    color: var(--gray-700);
    font-weight: 500;
}

.status-aktif {
    color: var(--success);
    font-weight: 700;
    background: #f0fff4;
    padding: 2px 9px;
    border-radius: 18px;
    font-size: 10.8px;
}

.btn-outline {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px;
    border-radius: 9px;
    border: 1.5px solid var(--gray-200);
    background: white;
    color: var(--gray-700);
    font-size: 11.7px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.profile-right-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
}

.profile-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 18px 21.6px 14.4px;
    border-bottom: 1px solid var(--gray-100);
}

.profile-section-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 2px;
}

.profile-section-sub {
    font-size: 10.8px;
    color: var(--gray-400);
}

.btn-edit {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12.6px;
    border-radius: 8px;
    border: 1.5px solid var(--primary);
    color: var(--primary);
    background: white;
    font-size: 10.8px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
}

.btn-edit:hover {
    background: var(--primary);
    color: white;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14.4px;
    padding: 18px 21.6px;
}

.form-field label {
    display: block;
    font-size: 10.8px;
    font-weight: 600;
    color: var(--gray-500);
    margin-bottom: 6px;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 9px 10.8px;
    border: 1.5px solid var(--gray-200);
    border-radius: 8px;
    font-size: 11.7px;
    font-family: inherit;
    color: var(--gray-700);
    background: var(--gray-50);
    outline: none;
}

.form-field textarea {
    resize: vertical;
    min-height: 57.6px;
}

.form-field-full {
    grid-column: 1 / -1;
}

.notif-pref {
    padding: 0 21.6px 18px;
    display: flex;
    flex-direction: column;
    gap: 10.8px;
}

.notif-item {
    display: flex;
    align-items: center;
    gap: 12.6px;
    padding: 12.6px 14.4px;
    border: 1px solid var(--gray-200);
    border-radius: 9px;
}

.notif-icon {
    width: 32.4px;
    height: 32.4px;
    background: var(--gray-100);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--gray-600);
}

.notif-text {
    flex: 1;
}

.notif-title {
    font-size: 11.7px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 2px;
}

.notif-sub {
    font-size: 9.9px;
    color: var(--gray-400);
}

.toggle {
    width: 39.6px;
    height: 21.6px;
    border-radius: 10.8px;
    background: var(--primary);
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
}

.toggle::after {
    content: '';
    position: absolute;
    top: 3px;
    right: 3px;
    width: 16.2px;
    height: 16.2px;
    border-radius: 50%;
    background: white;
    transition: right 0.2s;
}

.toggle.off {
    background: var(--gray-300);
}

.toggle.off::after {
    right: calc(100% - 18.9px);
}

.profile-security {
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    padding: 12.6px 21.6px;
    display: flex;
    align-items: center;
    gap: 10.8px;
    color: var(--gray-600);
    font-size: 10.8px;
}

/* ===== FORM PENGAJUAN ===== */
.form-page {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
}

.form-page-header {
    padding: 21.6px 25.2px 18px;
    border-bottom: 1px solid var(--gray-100);
}

.form-page-title {
    font-size: 16.2px;
    font-weight: 800;
    color: var(--gray-900);
}

.form-body {
    padding: 25.2px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-row {
    display: contents;
}

.form-col {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-field-styled label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 11.7px;
    font-weight: 800;
}

.form-field-styled input,
.form-field-styled select,
.form-field-styled textarea {
    width: 100%;
    min-height: 41.4px;
    padding: 0 12.6px;
    border: 1.5px solid var(--gray-200);
    border-radius: 8px;
    background: white;
    color: var(--primary);
    font-family: inherit;
    font-size: 12.6px;
    font-weight: 700;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field-styled input:focus,
.form-field-styled select:focus,
.form-field-styled textarea:focus {
    border-color: var(--primary);
}

.form-field-styled input::placeholder,
.form-field-styled textarea::placeholder {
    color: var(--primary);
    opacity: 0.62;
}

.form-field-styled input[readonly],
.form-field-styled select:disabled {
    background: var(--gray-50);
    color: var(--primary);
    opacity: 1;
}

.form-field-styled select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10.8px center;
    padding-right: 28.8px;
}

.form-field-styled textarea {
    min-height: 126px;
    padding-top: 10.8px;
    padding-bottom: 10.8px;
    line-height: 1.5;
    resize: vertical;
}

.form-hint {
    font-size: 10.8px;
    color: var(--gray-500);
    margin-top: 6px;
}

.upload-zone {
    position: relative;
    border: 1.5px dashed var(--gray-200);
    border-radius: 8px;
    padding: 28.8px 18px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--primary);
}

.upload-zone input[type="file"] {
    display: none;
}

.upload-zone:hover,
.upload-zone.is-dragover {
    border-color: var(--primary);
    background: #f3f7ff;
    box-shadow: 0 10px 24px rgba(26, 58, 110, 0.08);
}

.upload-zone svg {
    color: var(--primary);
    margin-bottom: 8px;
    opacity: 0.72;
}

.upload-zone-title {
    font-size: 11.7px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
}

.upload-zone-sub {
    font-size: 10.8px;
    color: var(--gray-500);
    margin-bottom: 8px;
    font-weight: 700;
}

.upload-zone-hint {
    font-size: 10.8px;
    color: var(--gray-500);
    font-weight: 600;
}

.upload-files-list {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.upload-file-item {
    min-width: 0;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 30px;
    align-items: center;
    gap: 10px;
    padding: 9px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(26, 58, 110, 0.05);
}

.upload-file-thumb {
    width: 54px;
    height: 54px;
    border-radius: 8px;
    overflow: hidden;
    display: grid;
    align-items: center;
    justify-content: center;
    place-items: center;
    background: #eef4ff;
    color: var(--primary);
    font-weight: 800;
    flex: 0 0 54px;
    font-size: 10px;
    text-align: center;
}

.upload-file-thumb i {
    display: block;
    font-size: 17px;
    margin-bottom: 2px;
}

.upload-file-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.upload-file-meta {
    min-width: 0;
    font-size: 10.8px;
    color: var(--primary);
}

.upload-file-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 800;
}

.upload-file-size {
    color: var(--gray-500);
    font-weight: 700;
}

.upload-file-remove {
    width: 28px;
    height: 28px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    background: #fff;
    color: var(--gray-500);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.upload-file-remove:hover {
    border-color: #fecaca;
    background: #fff5f5;
    color: var(--danger);
}

.form-footer {
    padding: 16.2px 25.2px;
    border-top: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10.8px;
}

.btn-cancel {
    min-height: 41.4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: 8px;
    border: 1.5px solid var(--gray-200);
    background: white;
    color: var(--primary);
    font-size: 12.6px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
}

.btn-cancel:hover {
    border-color: var(--primary);
    background: var(--gray-50);
}

.btn-save {
    min-height: 41.4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 21.6px;
    border-radius: 8px;
    background: var(--primary);
    color: white;
    font-size: 12.6px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
}

.btn-save:hover {
    background: var(--primary-light);
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12.6px;
    border-radius: 8px;
    border: 1.5px solid var(--gray-200);
    background: white;
    color: var(--gray-700);
    font-size: 11.7px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    margin-bottom: 18px;
    transition: all 0.15s;
}

.back-btn:hover {
    border-color: var(--gray-400);
}

/* ===== MODAL ===== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: white;
    border-radius: 14.4px;
    padding: 28.8px;
    max-width: 396px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.2s ease;
}

@keyframes modalIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-icon {
    width: 57.6px;
    height: 57.6px;
    border-radius: 50%;
    background: #fff5f5;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-title {
    font-size: 16.2px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 9px;
}

.modal-desc {
    font-size: 11.7px;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 21.6px;
}

.modal-actions {
    display: flex;
    gap: 9px;
    align-items: stretch;
}

.modal-actions>form {
    flex: 1;
    display: flex;
}

.modal-cancel {
    flex: 1;
    min-height: 41.4px;
    padding: 0 14.4px;
    border: 1.5px solid var(--gray-200);
    border-radius: 9px;
    background: white;
    color: var(--gray-700);
    font-size: 12.6px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.modal-cancel:hover {
    border-color: var(--gray-400);
}

.modal-confirm {
    flex: 1;
    min-height: 41.4px;
    padding: 0 14.4px;
    background: var(--danger);
    color: white;
    border: none;
    border-radius: 9px;
    font-size: 12.6px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.15s;
}

.modal-confirm:hover {
    background: #c53030;
}

.modal-delete-confirm .modal-actions {
    margin-top: 2px;
}

.modal-delete-confirm .modal-cancel,
.modal-delete-confirm .modal-confirm {
    width: 100%;
}

/* CREATE MODAL */
.create-modal {
    max-width: 450px;
    text-align: left;
    padding: 0;
    overflow: hidden;
}

.create-modal-header {
    padding: 18px 21.6px;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.create-modal-title {
    font-size: 15.3px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 2px;
}

.create-modal-sub {
    font-size: 10.8px;
    color: var(--gray-400);
}

.modal-close {
    width: 27px;
    height: 27px;
    border-radius: 8px;
    border: none;
    background: var(--gray-100);
    cursor: pointer;
    font-size: 14.4px;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
}

.create-modal-body {
    padding: 14.4px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.create-option {
    display: flex;
    align-items: center;
    gap: 12.6px;
    padding: 12.6px 14.4px;
    border: 1.5px solid var(--gray-200);
    border-radius: 9px;
    cursor: pointer;
    transition: all 0.15s;
}

.create-option:hover {
    border-color: var(--primary);
    background: rgba(26, 58, 110, 0.02);
}

.create-option-icon {
    width: 39.6px;
    height: 39.6px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.create-option-icon svg {
    width: 19.8px;
    height: 19.8px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.create-option-name {
    font-size: 12.6px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 2px;
}

.create-option-desc {
    font-size: 10.8px;
    color: var(--gray-500);
}

.create-option-arrow {
    margin-left: auto;
    color: var(--gray-300);
    font-size: 16.2px;
}

.create-modal-footer {
    padding: 10.8px 14.4px;
    border-top: 1px solid var(--gray-100);
}

.btn-batal-full {
    width: 100%;
    padding: 9px;
    border-radius: 9px;
    border: 1.5px solid var(--gray-200);
    background: white;
    color: var(--gray-700);
    font-size: 11.7px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
}

.btn-batal-full:hover {
    background: var(--gray-50);
}

/* TOAST */
.toast {
    position: fixed;
    bottom: 25.2px;
    right: 25.2px;
    background: var(--gray-900);
    color: white;
    padding: 10.8px 18px;
    border-radius: 9px;
    font-size: 11.7px;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    display: none;
    align-items: center;
    gap: 8px;
    animation: toastIn 0.2s ease;
}

.toast.show {
    display: flex;
}

@keyframes toastIn {
    from {
        transform: translateY(9px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.toast.success {
    background: var(--success);
}

.toast.error {
    background: var(--danger);
}

/* DETAIL MODAL */
.detail-modal {
    max-width: 468px;
    text-align: left;
    padding: 0;
    overflow: hidden;
}

.detail-modal-header {
    padding: 18px 21.6px;
    border-bottom: 1px solid var(--gray-100);
    background: var(--gray-50);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.detail-type-wrap {
    display: flex;
    align-items: center;
    gap: 10.8px;
}

.detail-modal-body {
    padding: 18px 21.6px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 9px 0;
    border-bottom: 1px solid var(--gray-100);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: 10.8px;
    color: var(--gray-500);
}

.detail-val {
    font-size: 11.7px;
    font-weight: 600;
    color: var(--gray-800);
}

/* RESPONSIVE */
@media (max-width: 1100px) {
    .stat-cards {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 900px) {
    .login-page {
        flex-direction: column;
    }

    .login-left,
    .login-right {
        width: 100%;
        min-height: auto;
    }

    .login-left {
        padding: 28.8px 21.6px;
        gap: 32.4px;
    }

    .login-right {
        padding: 32.4px 21.6px;
    }

    .login-title {
        font-size: 25.2px;
    }

    .login-desc {
        margin-bottom: 25.2px;
    }

    .login-values {
        gap: 10.8px;
    }
}

@media (max-width: 560px) {
    .login-left {
        padding: 25.2px 18px;
    }

    .login-right {
        padding: 25.2px 18px;
    }

    .login-logo img {
        width: 127.8px;
    }

    .login-title {
        font-size: 21.6px;
    }

    .login-form-title {
        font-size: 19.8px;
    }
}

/* ===== APP RESPONSIVE LAYOUT ===== */
:root {
    --sidebar-collapsed-width: 68.4px;
}

.sidebar,
.main-content {
    transition: width 0.22s ease, margin-left 0.22s ease, transform 0.22s ease;
}

.sidebar-toggle {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.sidebar-toggle:hover {
    color: var(--primary);
    background: #f3f6ff;
}

.sidebar-toggle svg,
.sidebar-toggle i {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(15, 23, 42, 0.42);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

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

body.sidebar-collapsed .main-content {
    margin-left: var(--sidebar-collapsed-width);
    max-width: calc(100vw - var(--sidebar-collapsed-width));
}

body.sidebar-collapsed .sidebar-logo {
    align-items: center;
    padding: 16.2px 9px 12.6px;
}

body.sidebar-collapsed .sidebar-logo-real {
    width: 41.4px;
}

body.sidebar-collapsed .sidebar-logo-sub {
    display: none;
}

body.sidebar-collapsed .sidebar-nav {
    padding: 10.8px 9px;
}

body.sidebar-collapsed .nav-item {
    justify-content: center;
    gap: 0;
    padding: 10.8px 9px;
    font-size: 0;
}

body.sidebar-collapsed .nav-item svg {
    width: 17.1px;
    height: 17.1px;
}

.table-section {
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--gray-300) transparent;
}

.table-section table {
    min-width: 684px;
}

.table-section::-webkit-scrollbar {
    height: 8px;
}

.table-section::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 899.1px;
}

.table-section::-webkit-scrollbar-track {
    background: transparent;
}

@media (max-width: 1280px) {

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

    .profile-grid,
    .admin-profile-grid {
        grid-template-columns: 252px 1fr;
    }
}

@media (max-width: 1024px) {
    .topbar {
        padding: 0 18px;
    }

    .page {
        padding: 19.8px;
    }

    .track-card {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .track-info {
        min-width: min(378px, 100%);
    }

    .track-status {
        min-width: 126px;
        text-align: left;
    }

    .track-actions {
        margin-left: auto;
    }
}

@media (max-width: 900px) {
    body {
        overflow-x: hidden;
    }

    body.sidebar-open {
        overflow: hidden;
    }

    .sidebar {
        width: min(82vw, 252px);
        transform: translateX(-100%);
        box-shadow: var(--shadow-lg);
    }

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

    body.sidebar-open .sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    body.sidebar-collapsed .sidebar {
        width: min(82vw, 252px);
    }

    body.sidebar-collapsed .main-content,
    .main-content {
        margin-left: 0;
        max-width: 100vw;
    }

    body.sidebar-collapsed .sidebar-logo {
        align-items: flex-start;
        padding: 18px 18px 14.4px;
    }

    body.sidebar-collapsed .sidebar-logo-real {
        width: 100.8px;
    }

    body.sidebar-collapsed .sidebar-logo-sub {
        display: block;
    }

    body.sidebar-collapsed .sidebar-nav {
        padding: 10.8px;
    }

    body.sidebar-collapsed .nav-item {
        justify-content: flex-start;
        gap: 9px;
        padding: 9px 10.8px;
        font-size: 12.6px;
    }

    .topbar {
        min-height: var(--header-height);
        height: auto;
        padding: 10.8px 14.4px;
        align-items: center;
    }

    .topbar-title {
        font-size: 16.2px;
    }

    .topbar-sub {
        display: none;
    }

    .topbar-actions {
        gap: 8px;
    }

    .topbar-user {
        padding: 5px;
    }

    .topbar-user>div:not(.topbar-avatar),
    .topbar-user>svg {
        display: none;
    }

    .page {
        padding: 16.2px 14.4px;
    }

    .stat-cards,
    .service-cards,
    .admin-grid-2,
    .profile-grid,
    .admin-profile-grid,
    .form-body {
        grid-template-columns: 1fr;
    }

    .form-body {
        display: grid;
        padding: 18px;
    }

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

    .filter-bar,
    .page-toolbar {
        align-items: stretch;
    }

    .filter-search,
    .filter-select,
    .btn-primary,
    .btn-reset,
    .tabs {
        width: 100%;
    }

    .tabs {
        overflow-x: auto;
    }

    .tab {
        flex: 1;
        white-space: nowrap;
    }

    .track-card {
        flex-direction: column;
    }

    .track-meta {
        flex-direction: column;
        gap: 8px;
    }

    .track-status,
    .track-actions {
        width: 100%;
        min-width: 0;
        margin-left: 0;
    }

    .track-actions,
    .action-btns,
    .modal-actions {
        flex-wrap: wrap;
    }
}

@media (max-width: 560px) {

    .topbar-search,
    .topbar-notif {
        width: 30.6px;
        height: 30.6px;
    }

    .sidebar-toggle {
        width: 32.4px;
        height: 32.4px;
    }

    .stat-card,
    .service-card,
    .track-card {
        padding: 14.4px;
    }

    .stat-card {
        align-items: flex-start;
    }

    .stat-icon {
        width: 37.8px;
        height: 37.8px;
    }

    .stat-number {
        font-size: 21.6px;
    }

    .table-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    th,
    td {
        padding: 10.8px 12.6px;
    }

    .modal {
        padding: 21.6px;
    }

    .modal-actions>button,
    .modal-actions>form {
        flex-basis: 100%;
    }
}

/* Brand logo override */
.sidebar-logo-real {
    width: 100.8px;
    display: block;
}

.sidebar-logo {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
}

.sidebar-logo-sub {
    padding-left: 2px;
}

.modal-overlay.active,
.modal-overlay.is-open {
    display: flex;
}

.toast.is-show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.btn-more svg {
    width: 12.6px;
    height: 12.6px;
}

.btn-more.btn-icon-edit svg,
.btn-more.btn-icon-delete svg {
    width: 18.9px;
    height: 18.9px;
    stroke-width: 2.35;
}

.table-header {
    justify-content: space-between;
}

/* ===== ADMIN TEMPLATE HELPERS ===== */
.admin-page-title {
    color: var(--gray-900);
    font-size: 23.4px;
    font-weight: 800;
    margin-bottom: 4px;
}

.admin-page-sub {
    color: var(--gray-500);
    font-size: 11.7px;
    margin-bottom: 21.6px;
}

.admin-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14.4px;
    margin-bottom: 25.2px;
}

.admin-toolbar {
    display: flex;
    align-items: center;
    gap: 10.8px;
    flex-wrap: wrap;
    margin-bottom: 14.4px;
}

.admin-search {
    min-width: 252px;
    flex: 1;
    border: 1.5px solid var(--gray-200);
    border-radius: 9px;
    padding: 9px 12.6px;
    outline: none;
    font-family: inherit;
}

.admin-select {
    border: 1.5px solid var(--gray-200);
    border-radius: 9px;
    padding: 9px 10.8px;
    background: white;
    color: var(--gray-700);
    font-family: inherit;
}

.admin-driver-cell {
    display: flex;
    align-items: center;
    gap: 9px;
}

.admin-avatar {
    width: 30.6px;
    height: 30.6px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 10.8px;
    font-weight: 800;
}

.admin-avatar-sm {
    width: 27px;
    height: 27px;
    font-size: 9.9px;
}

.admin-name {
    color: var(--gray-800);
    font-size: 11.7px;
    font-weight: 700;
}

.admin-meta {
    color: var(--gray-400);
    font-size: 9.9px;
}

.admin-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.btn-admin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 27px;
    padding: 6px 9px;
    border: 1.5px solid var(--gray-200);
    border-radius: 8px;
    background: white;
    color: var(--gray-700);
    font-family: inherit;
    font-size: 10.8px;
    font-weight: 700;
    cursor: pointer;
}

.btn-admin-primary {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.btn-admin-success {
    border-color: var(--success);
    background: var(--success);
    color: white;
}

.btn-admin-danger {
    border-color: var(--danger);
    background: var(--danger);
    color: white;
}

.admin-note {
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
    padding: 8px 10.8px;
    font-size: 10.8px;
    margin-bottom: 10.8px;
}

.admin-profile-grid {
    display: grid;
    grid-template-columns: 270px 1fr;
    gap: 18px;
}

.admin-profile-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 18px;
}

.admin-profile-avatar {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10.8px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 25.2px;
    font-weight: 800;
}

.admin-profile-name {
    text-align: center;
    color: var(--gray-900);
    font-size: 16.2px;
    font-weight: 800;
    margin-bottom: 4px;
}

.admin-contact-row {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-500);
    font-size: 10.8px;
}

.admin-contact-row:last-child {
    border-bottom: 0;
}

@media (max-width: 900px) {

    .admin-grid-2,
    .admin-profile-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== TYPOGRAPHY CLARITY OVERRIDES ===== */
body {
    color: var(--gray-900);
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.nav-item,
.topbar-sub,
.topbar-role,
.stat-label,
.stat-sub,
.service-desc,
.td-sub,
.track-id,
.track-meta-item label,
.track-status-label,
.track-status-date,
.profile-info-label,
.profile-section-sub,
.form-label,
.filter-select,
.filter-search input,
.riwayat-info,
.login-form-sub,
.login-secure-sub,
.login-footer {
    color: var(--gray-600);
    font-weight: 500;
}

td,
.td-date,
.track-meta-item span,
.profile-info-val,
.form-input {
    color: var(--gray-800);
    font-weight: 500;
}

th,
.table-link,
.btn-detail,
.btn-more,
.page-btn,
.tab,
.btn-reset {
    font-weight: 700;
}

.topbar-name,
.td-type-name,
.track-type,
.section-title,
.table-title,
.profile-section-title,
.profile-name,
.service-name {
    color: var(--gray-900);
}

.badge {
    font-weight: 700;
}

/* ===== FONT SIZE NORMALIZATION ===== */
.btn-primary,
.btn-detail,
.btn-reset,
.filter-select,
.filter-search input,
.form-input,
.form-label,
.tab,
.page-btn,
.profile-info-val,
.track-meta-item span {
    font-size: 12.6px;
}

.profile-info-label,
.track-id,
.track-meta-item label,
.track-status-label,
.track-status-date,
.login-secure-sub,
.login-footer {
    font-size: 10.8px;
}

.track-type,
.profile-section-title,
.profile-name {
    font-size: 14.4px;
}

.form-page-title,
.admin-panel-title {
    font-size: 16.2px;
}

/* ===== ICON CONSISTENCY ===== */
svg {
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon {
    display: block;
    flex-shrink: 0;
}

.nav-item .icon,
.nav-item svg {
    width: 16.2px;
    height: 16.2px;
}

.topbar-search .icon,
.topbar-notif .icon,
.topbar-search svg,
.topbar-notif svg,
.filter-search .icon,
.filter-search svg {
    width: 15.3px;
    height: 15.3px;
}

.btn-primary .icon,
.btn-primary svg,
.btn-detail .icon,
.btn-detail svg {
    width: 14.4px;
    height: 14.4px;
}

/* ===== STATIC LOGIN OVERRIDES ===== */
.login-page .login-button {
    width: 100%;
    justify-content: center;
    padding: 12.6px;
    border-radius: 9px;
    font-size: 13.5px;
    font-weight: 800;
    margin-bottom: 25.2px;
}

.login-page .login-button:hover {
    background: var(--primary-light);
}

.login-page .login-form-wrap {
    width: 100%;
    max-width: 378px;
}

.login-page .form-group {
    margin-bottom: 18px;
}

.login-page .form-label,
.login-page .form-input {
    font-size: 12.6px;
}

/* ===== LOGIN PAGE REFERENCE POLISH ===== */
body:has(.login-page) {
    overflow-x: hidden;
    background: #f7f9fd;
}

.login-page {
    position: relative;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 52.5% 47.5%;
    padding-bottom: 39.6px;
    background: #f7f9fd;
}

.login-left,
.login-right {
    width: auto;
    min-height: calc(100vh - 39.6px);
}

.login-left {
    padding: 46.8px 50.4px 27px;
    justify-content: flex-start;
    gap: 46.8px;
    background:
        linear-gradient(90deg, rgba(5, 24, 58, 0.98) 0%, rgba(6, 35, 83, 0.94) 45%, rgba(7, 41, 91, 0.72) 100%),
        url('../img/hero-login.png') center / cover no-repeat,
        linear-gradient(135deg, #061b43 0%, #0b3979 100%);
}

.login-left::before {
    opacity: 0.55;
}

.login-logo {
    gap: 8px;
}

.login-logo img {
    width: 187.2px;
    max-height: 52.2px;
    object-fit: contain;
    object-position: left center;
    filter: drop-shadow(0 4px 10.8px rgba(0, 0, 0, 0.18));
}

.login-logo-company {
    color: rgba(255, 255, 255, 0.96);
    font-size: 14.4px;
    font-weight: 600;
    letter-spacing: 0;
}

.login-hero {
    max-width: 585px;
}

.login-tag {
    color: #ffc20e;
    font-size: 16.2px;
    font-weight: 600;
    letter-spacing: 0;
    margin-bottom: 9px;
}

.login-title {
    font-size: 28.8px;
    line-height: 1.18;
    letter-spacing: 0;
    margin-bottom: 6px;
}

.login-subtitle {
    color: rgba(255, 255, 255, 0.96);
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 23.4px;
}

.login-divider {
    position: relative;
    width: 41.4px;
    height: 5px;
    margin-bottom: 28.8px;
    background: #ffc20e;
}

.login-divider::after {
    content: '';
    position: absolute;
    left: 52.2px;
    top: 2px;
    width: 97.2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.86);
    border-radius: 2px;
}

.login-desc {
    max-width: 522px;
    color: rgba(255, 255, 255, 0.94);
    font-size: 14.4px;
    line-height: 1.65;
    font-weight: 500;
    margin-bottom: 41.4px;
}

.login-values {
    max-width: 540px;
    gap: 0;
}

.login-value {
    gap: 19.8px;
    padding: 16.2px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.login-value:first-child {
    padding-top: 0;
}

.login-value:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.login-value-icon {
    width: 63px;
    height: 63px;
    border-radius: 12.6px;
    color: #fff;
    background: linear-gradient(135deg, rgba(35, 100, 197, 0.9), rgba(6, 55, 132, 0.95));
    box-shadow: 0 12.6px 25.2px rgba(0, 15, 55, 0.22);
}

.login-value-icon svg {
    width: 30.6px;
    height: 30.6px;
}

.login-value-title {
    color: #ffc20e;
    font-size: 21.6px;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 6px;
}

.login-value-desc {
    color: rgba(255, 255, 255, 0.96);
    font-size: 13.95px;
    line-height: 1.55;
    font-weight: 500;
}

.login-rodamas {
    width: 223.2px;
    margin-top: auto;
    padding: 12.6px 19.8px;
    gap: 10.8px;
    border-radius: 10.8px;
    color: #ffc20e;
    background: rgba(5, 38, 91, 0.52);
    border-color: rgba(255, 255, 255, 0.22);
}

.login-rodamas>svg {
    width: 37.8px;
    height: 37.8px;
    flex-shrink: 0;
}

.login-rodamas-text {
    color: rgba(255, 255, 255, 0.92);
    font-size: 9px;
    font-weight: 700;
}

.login-rodamas-brand {
    color: #ffc20e;
    font-size: 19.8px;
    line-height: 1;
    letter-spacing: 0;
}

.login-rodamas-small {
    display: block;
    color: #ffc20e;
    font-size: 9.9px;
    font-weight: 700;
    letter-spacing: 0;
    margin-top: 1px;
}

.login-right {
    position: relative;
    padding: 48.6px 57.6px;
    background:
        radial-gradient(circle at 45% 8%, rgba(26, 58, 110, 0.06), transparent 26%),
        repeating-linear-gradient(145deg, rgba(26, 58, 110, 0.035) 0 1px, transparent 1px 11.7px),
        #f8fafd;
}

.login-form-wrap {
    position: relative;
    z-index: 1;
    width: min(504px, 100%);
    max-width: 504px;
    padding: 37.8px 50.4px 36px;
    border-radius: 21.6px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(226, 232, 240, 0.88);
    box-shadow: 0 19.8px 63px rgba(15, 23, 42, 0.13);
    text-align: left;
}

.login-form-icon {
    width: 75.6px;
    height: 75.6px;
    margin: 0 auto 19.8px;
    border-radius: 50%;
    color: #0b61c9;
    background: #eef2f8;
}

.login-form-icon svg {
    width: 36px;
    height: 36px;
}

.login-form-title {
    color: #082967;
    font-size: 24.3px;
    line-height: 1.2;
    font-weight: 800;
    text-align: center;
    margin-bottom: 9px;
}

.login-form-sub {
    color: #6b7898;
    font-size: 14.4px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 32.4px;
}

.login-page .form-group {
    margin-bottom: 21.6px;
}

.login-page .form-label {
    color: #071f55;
    font-size: 12.6px;
    font-weight: 800;
    margin-bottom: 9.9px;
}

.login-page .form-input {
    height: 50.4px;
    padding: 0 46.8px 0 16.2px;
    border-radius: 8px;
    border: 1.5px solid #cbd5e1;
    color: #0f172a;
    font-size: 13.5px;
    font-weight: 600;
}

.login-page .form-input::placeholder {
    color: #8b96b2;
    font-weight: 500;
}

.login-page .input-icon {
    right: 16.2px;
    color: #7b88a7;
}

.login-page .input-icon .icon-sm {
    width: 19.8px;
    height: 19.8px;
}

.login-forgot {
    margin-top: -10px;
    margin-bottom: 27px;
}

.login-forgot a {
    color: #005ed9;
    font-size: 12.6px;
    font-weight: 600;
}

.login-page .login-button {
    height: 52.2px;
    padding: 0 21.6px;
    border-radius: 8px;
    background: #003b99;
    box-shadow: 0 9px 19.8px rgba(0, 59, 153, 0.18);
    font-size: 18px;
    font-weight: 800;
    gap: 30.6px;
    margin-bottom: 34.2px;
}

.login-page .login-button:hover {
    background: #0b4fb5;
}

.login-page .login-button .icon-sm {
    width: 23.4px;
    height: 23.4px;
}

.login-divider-line {
    color: #7582a0;
    font-size: 12.6px;
    font-weight: 500;
    margin-bottom: 27px;
}

.login-divider-line::before,
.login-divider-line::after {
    background: #d7deea;
}

.login-secure {
    padding: 19.8px 25.2px;
    gap: 18px;
    border: 0;
    border-radius: 12.6px;
    background: #f3f6fb;
}

.login-secure>svg {
    width: 39.6px;
    height: 39.6px;
    color: #082967;
}

.login-secure-text {
    color: #082967;
    font-size: 14.4px;
    font-weight: 800;
}

.login-secure-sub {
    color: #62708f;
    font-size: 11.7px;
    line-height: 1.45;
    font-weight: 500;
}

.login-page-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 39.6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.96);
    background: linear-gradient(90deg, #061b43, #003b86);
    font-size: 12.6px;
    font-weight: 500;
    z-index: 3;
}

@media (max-width: 1200px) {
    .login-left {
        padding: 37.8px 34.2px 25.2px;
    }

    .login-right {
        padding: 37.8px 34.2px;
    }

    .login-form-wrap {
        padding: 34.2px 37.8px;
    }

    .login-title {
        font-size: 26.1px;
    }
}

@media (max-width: 900px) {
    .login-page {
        display: flex;
        flex-direction: column;
    }

    .login-left,
    .login-right {
        width: 100%;
        min-height: auto;
    }

    .login-left {
        padding: 28.8px 21.6px;
    }

    .login-right {
        padding: 28.8px 18px 36px;
    }

    .login-form-wrap {
        width: 100%;
        padding: 30.6px 21.6px;
    }

    .login-rodamas {
        margin-top: 25.2px;
    }
}

/* ===== APP-WIDE DESIGN NORMALIZATION ===== */
#screen-app .page-content-title,
#screen-app .section-title,
#screen-app .table-section-title,
#screen-app .table-title,
#screen-app .form-page-title,
#screen-app .admin-panel-title,
#screen-app .profile-section-title,
#screen-app .service-name,
#screen-app .stat-number,
#screen-app .td-type-name,
#screen-app .track-type,
#screen-app .profile-name,
#screen-app .modal-title,
#screen-app .create-modal-title {
    color: var(--primary);
}

#screen-app .page-content-title {
    font-size: 23.4px;
    font-weight: 800;
}

#screen-app .page-content-sub {
    font-size: 12.6px;
    color: var(--primary);
}

#screen-app .admin-panel-title,
#screen-app .form-page-title {
    font-size: 16.2px;
    font-weight: 800;
}

#screen-app .section-title,
#screen-app .table-section-title,
#screen-app .table-title,
#screen-app .profile-section-title {
    font-size: 14.4px;
    font-weight: 800;
}

#screen-app td,
#screen-app .recent-table th,
#screen-app .recent-table td,
#screen-app .follow-table th,
#screen-app .follow-table td,
#screen-app .form-field-styled input,
#screen-app .form-field-styled select,
#screen-app .form-field-styled textarea,
#screen-app .filter-search input,
#screen-app .filter-select {
    font-size: 12.6px;
}

#screen-app .btn-primary,
#screen-app .btn-detail,
#screen-app .btn-cancel,
#screen-app .btn-save,
#screen-app .tab {
    font-size: 12.6px;
    font-weight: 700;
}

#screen-app th,
#screen-app .form-field-styled label,
#screen-app .admin-mini-select,
#screen-app .chart-legend-item,
#screen-app .donut-item,
#screen-app .vehicle-percent,
#screen-app .recent-table th,
#screen-app .follow-table th {
    font-size: 11.7px;
}

#screen-app .td-sub,
#screen-app .stat-sub,
#screen-app .topbar-role,
#screen-app .form-hint,
#screen-app .upload-zone-sub,
#screen-app .upload-zone-hint,
#screen-app .profile-section-sub,
#screen-app .modal-desc,
#screen-app .create-option-desc,
#screen-app .detail-label,
#screen-app .track-status-date {
    font-size: 10.8px;
    color: var(--gray-500);
}

#screen-app .stat-label,
#screen-app .service-desc,
#screen-app .profile-info-val,
#screen-app .detail-val,
#screen-app .track-meta-item span {
    font-size: 12.6px;
}

/* ===== ADMIN PENGAJUAN PAGE ===== */
.admin-pengajuan-filter {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 19.8px;
    display: grid;
    grid-template-columns: 1.25fr 0.95fr 0.9fr 1.15fr;
    gap: 21.6px;
    align-items: end;
    margin-bottom: 19.8px;
}

.admin-filter-field label {
    display: block;
    color: var(--primary);
    font-size: 11.7px;
    font-weight: 800;
    margin-bottom: 8px;
}

.admin-filter-field input,
.admin-filter-field select {
    width: 100%;
    height: 41.4px;
    border: 1.5px solid var(--gray-200);
    border-radius: 8px;
    background: white;
    color: var(--primary);
    font-family: inherit;
    font-size: 12.6px;
    font-weight: 700;
    outline: none;
    padding: 0 12.6px;
}

.admin-filter-field input:focus,
.admin-filter-field select:focus {
    border-color: var(--primary);
}

.admin-filter-search {
    position: relative;
}

.admin-filter-search input {
    padding-right: 43.2px;
}

.admin-filter-search button {
    position: absolute;
    right: 9px;
    bottom: 7px;
    width: 28.8px;
    height: 28.8px;
    border: 0;
    background: transparent;
    color: var(--primary);
    cursor: pointer;
}

.admin-filter-search svg {
    width: 19.8px;
    height: 19.8px;
}

.admin-filter-date>div {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
    align-items: center;
}

.admin-filter-date span {
    color: var(--primary);
    font-weight: 800;
}


.admin-pengajuan-table {
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--gray-300) transparent;
}

.admin-pengajuan-table table {
    min-width: 936px;
}

.admin-history-table table {
    min-width: 1062px;
}

.admin-pengajuan-table th {
    color: var(--primary);
    font-weight: 800;
    padding: 10.8px 12.6px;
}

.admin-pengajuan-table td {
    vertical-align: middle;
    padding: 11.7px 12.6px;
}

.admin-submission-type,
.admin-driver-cell,
.admin-row-actions {
    display: flex;
    align-items: center;
}

.admin-submission-type {
    gap: 10.8px;
}

.admin-submission-icon {
    width: 37.8px;
    height: 37.8px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.admin-submission-icon svg {
    width: 18.9px;
    height: 18.9px;
}

.admin-submission-title,
.admin-driver-name,
.admin-date-main {
    color: var(--primary);
    font-size: 12.6px;
    font-weight: 800;
}

.admin-submission-desc,
.admin-driver-role,
.admin-driver-vehicle,
.admin-date-sub,
.admin-detail-stack span {
    color: var(--primary);
    font-size: 11.7px;
    line-height: 1.6;
}

.admin-detail-stack {
    display: grid;
    gap: 2px;
}

.admin-detail-stack strong {
    color: var(--primary);
    font-size: 11.7px;
    font-weight: 800;
}

.admin-driver-cell {
    gap: 9px;
}

.admin-driver-photo {
    width: 37.8px;
    height: 37.8px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gray-200);
    flex-shrink: 0;
}

.admin-driver-photo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    color: var(--primary);
    font-weight: 800;
}

.admin-row-actions {
    justify-content: flex-end;
    gap: 8px;
    position: relative;
}

.admin-row-number {
    color: var(--primary);
    font-size: 12.6px;
    font-weight: 800;
}

.admin-action-btn {
    height: 28.8px;
    min-width: 52.2px;
    border: 0;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12.6px;
    color: white;
    font-size: 11.7px;
    font-weight: 800;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
}

.admin-action-btn.danger {
    background: #ef233c;
}

.admin-action-btn.primary {
    background: #0057ff;
}

.admin-action-btn.success {
    background: #16a34a;
}

.admin-action-btn.outline {
    min-width: 77.4px;
    border: 1.5px solid var(--gray-200);
    background: white;
    color: var(--primary);
    gap: 8px;
}

.admin-action-btn.outline:hover {
    border-color: var(--primary);
    background: var(--gray-50);
}

.admin-action-btn svg {
    width: 14.4px;
    height: 14.4px;
}

.admin-processor-cell {
    min-width: 135px;
}

.admin-processor-name {
    color: var(--primary);
    font-size: 12.6px;
    font-weight: 800;
}

.admin-processor-role,
.admin-processor-date {
    color: var(--gray-500);
    font-size: 10.8px;
    font-weight: 700;
    line-height: 1.45;
}

.admin-action-menu-wrap {
    position: relative;
}

.admin-action-dots {
    width: 28.8px;
    height: 28.8px;
    border: 0;
    background: transparent;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.admin-action-dots svg {
    width: 18px;
    height: 18px;
}

.admin-action-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 126px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    background: white;
    box-shadow: var(--shadow-md);
    padding: 6px;
    display: none;
    z-index: 25;
}

.admin-action-menu.is-open {
    display: grid;
    gap: 2px;
}

.admin-action-menu a,
.admin-action-menu button {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 9px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 11.7px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.admin-action-menu button {
    color: var(--danger);
}

.admin-action-menu .admin-menu-edit {
    color: #0057ff;
}

.admin-action-menu .admin-menu-delete {
    color: #ef233c;
}

.admin-action-menu a:hover,
.admin-action-menu button:hover {
    background: var(--gray-50);
}

.admin-action-menu svg,
.admin-action-menu i {
    width: 15.3px;
    height: 15.3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    stroke-width: 2.35;
}

.admin-table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14.4px;
    padding: 14.4px 18px;
    border-top: 1px solid var(--gray-100);
    color: var(--primary);
    font-size: 11.7px;
    font-weight: 700;
}

/* ===== ADMIN KENDARAAN PAGE ===== */
.admin-kendaraan-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 21.6px;
    margin-bottom: 19.8px;
    padding: 19.8px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    background: white;
    box-shadow: var(--shadow-sm);
}

.admin-kendaraan-search {
    width: min(100%, 387px);
    height: 41.4px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1.5px solid var(--gray-200);
    border-radius: 8px;
    background: white;
    padding: 0 9px 0 12.6px;
}

.admin-kendaraan-search:focus-within {
    border-color: var(--primary);
}

.admin-kendaraan-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--primary);
    font-family: inherit;
    font-size: 12.6px;
    font-weight: 700;
}

.admin-kendaraan-search input::placeholder {
    color: var(--primary);
    opacity: 0.72;
}

.admin-kendaraan-search button {
    width: 28.8px;
    height: 28.8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: var(--primary);
    cursor: pointer;
}

.admin-kendaraan-search svg {
    width: 19.8px;
    height: 19.8px;
}

.admin-kendaraan-add {
    height: 41.4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 19.8px;
    border-radius: 8px;
    background: var(--primary);
    color: white;
    font-size: 12.6px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 10.8px 19.8px rgba(26, 58, 110, 0.18);
    transition: background 0.15s, box-shadow 0.15s;
}

.admin-kendaraan-add:hover {
    background: var(--primary-light);
    box-shadow: 0 12.6px 21.6px rgba(26, 58, 110, 0.22);
}

.admin-kendaraan-add svg {
    width: 15.3px;
    height: 15.3px;
}

.admin-kendaraan-table {
    max-width: 100%;
    overflow-x: auto;
}

.admin-kendaraan-table table {
    min-width: 1062px;
}

.admin-kendaraan-table th {
    padding: 14.4px 12.6px;
    color: var(--primary);
    font-size: 11.7px;
    font-weight: 800;
    white-space: nowrap;
}

.admin-kendaraan-table th span {
    color: #2447b7;
    font-size: 10.8px;
    font-weight: 700;
}

.admin-kendaraan-table td {
    padding: 12.6px;
    vertical-align: middle;
}

.admin-vehicle-plate-cell {
    display: flex;
    align-items: center;
    gap: 10.8px;
    min-width: 135px;
}

.admin-vehicle-photo {
    width: 52.2px;
    height: 37.8px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--gray-200);
    background: var(--gray-100);
    flex-shrink: 0;
}

.admin-vehicle-photo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 9.9px;
    font-weight: 900;
}

.admin-vehicle-plate,
.admin-vehicle-brand,
.admin-km-main {
    color: var(--primary);
    font-size: 12.6px;
    font-weight: 800;
}

.admin-vehicle-kind {
    color: #2447b7;
    font-size: 11.7px;
    font-weight: 700;
    line-height: 1.5;
}

.admin-date-main.danger,
.admin-deadline-text.danger {
    color: #ef233c;
}

.admin-date-main.warning,
.admin-deadline-text.warning {
    color: #f97316;
}

.admin-date-main.success,
.admin-deadline-text.success {
    color: #16a34a;
}

.admin-date-main.muted,
.admin-deadline-text.muted {
    color: var(--gray-500);
}

.admin-deadline-text {
    font-size: 10.8px;
    font-weight: 800;
    line-height: 1.5;
}

.admin-vehicle-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 55.8px;
    min-height: 23.4px;
    padding: 4px 10.8px;
    border-radius: 899.1px;
    font-size: 10.8px;
    font-weight: 800;
    white-space: nowrap;
}

.admin-vehicle-status.active {
    background: #dcfce7;
    color: #16a34a;
}

.admin-vehicle-status.warning {
    background: #fff7e6;
    color: #f97316;
}

.admin-vehicle-status.danger {
    background: #fee2e2;
    color: #ef233c;
}

.admin-vehicle-edit {
    width: 39.6px;
    height: 39.6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #dfe7ff;
    border-radius: 9px;
    background: white;
    color: #0057ff;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 87, 255, 0.04);
}

.admin-vehicle-edit:hover {
    border-color: #b8c9ff;
    background: #f8fbff;
}

.admin-vehicle-edit svg {
    width: 18.9px;
    height: 18.9px;
    stroke-width: 2.35;
}

/* ===== ADMIN DRIVER PAGE ===== */
.admin-driver-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 21.6px;
    margin-bottom: 19.8px;
    padding: 19.8px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    background: white;
    box-shadow: var(--shadow-sm);
}

.admin-driver-search {
    width: min(100%, 468px);
    height: 41.4px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1.5px solid var(--gray-200);
    border-radius: 8px;
    background: white;
    padding: 0 9px 0 12.6px;
}

.admin-driver-search:focus-within {
    border-color: var(--primary);
}

.admin-driver-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--primary);
    font-family: inherit;
    font-size: 12.6px;
    font-weight: 700;
}

.admin-driver-search input::placeholder {
    color: var(--primary);
    opacity: 0.72;
}

.admin-driver-search button {
    width: 28.8px;
    height: 28.8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: var(--primary);
    cursor: pointer;
}

.admin-driver-search svg {
    width: 19.8px;
    height: 19.8px;
}

.admin-driver-add {
    height: 41.4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 19.8px;
    border-radius: 8px;
    background: var(--primary);
    color: white;
    font-size: 12.6px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 10.8px 19.8px rgba(26, 58, 110, 0.18);
    transition: background 0.15s, box-shadow 0.15s;
}

.admin-driver-add:hover {
    background: var(--primary-light);
    box-shadow: 0 12.6px 21.6px rgba(26, 58, 110, 0.22);
}

.admin-driver-add svg {
    width: 15.3px;
    height: 15.3px;
}

.admin-driver-table {
    max-width: 100%;
    overflow-x: auto;
}

.admin-driver-table table {
    min-width: 972px;
}

.admin-driver-table th {
    padding: 14.4px 12.6px;
    color: var(--primary);
    font-size: 11.7px;
    font-weight: 800;
    white-space: nowrap;
}

.admin-driver-table td {
    padding: 13.5px 12.6px;
    vertical-align: middle;
}

.admin-driver-list-photo {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--gray-200);
    border-radius: 50%;
    background: var(--gray-100);
    color: var(--primary);
    object-fit: cover;
    font-size: 11.7px;
    font-weight: 900;
}

.admin-driver-phone {
    color: var(--primary);
    font-size: 12.6px;
    font-weight: 700;
}

.admin-driver-sim-date {
    display: inline-flex;
    align-items: center;
    gap: 16.2px;
    color: var(--primary);
    font-size: 12.6px;
    font-weight: 800;
}

.admin-driver-sim-date svg {
    width: 16.2px;
    height: 16.2px;
    color: #0057ff;
}

.admin-driver-delete {
    width: 39.6px;
    height: 39.6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fecaca;
    border-radius: 9px;
    background: white;
    color: #ef233c;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(239, 35, 60, 0.04);
}

.admin-driver-delete:hover {
    border-color: #ef233c;
    background: #fff5f5;
}

.admin-driver-delete svg {
    width: 18.9px;
    height: 18.9px;
    stroke-width: 2.35;
}

.admin-driver-table .admin-row-actions {
    gap: 16.2px;
}

@media (max-width: 1200px) {
    .admin-pengajuan-filter {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .admin-pengajuan-filter {
        grid-template-columns: 1fr;
        gap: 12.6px;
        padding: 14.4px;
    }

    .admin-kendaraan-toolbar {
        align-items: stretch;
        flex-direction: column;
        padding: 14.4px;
    }

    .admin-driver-toolbar {
        align-items: stretch;
        flex-direction: column;
        padding: 14.4px;
    }

    .admin-kendaraan-search,
    .admin-kendaraan-add,
    .admin-driver-search,
    .admin-driver-add {
        width: 100%;
    }

    .admin-table-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .login-logo img {
        width: 138.6px;
    }

    .login-logo-company,
    .login-desc,
    .login-value-desc {
        font-size: 11.7px;
    }

    .login-tag {
        font-size: 11.7px;
    }

    .login-title {
        font-size: 21.6px;
    }

    .login-subtitle {
        font-size: 13.5px;
    }

    .login-value-icon {
        width: 48.6px;
        height: 48.6px;
    }

    .login-value-title {
        font-size: 17.1px;
    }

    .login-form-title {
        font-size: 19.8px;
    }
}

/* ===== SIDEBAR FINAL POLISH ===== */
#screen-app .sidebar {
    background: white;
}

#screen-app .sidebar-logo {
    min-height: 106.2px;
    padding: 25.2px 21.6px 19.8px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    border-bottom: 0;
}

#screen-app .sidebar-logo-real {
    width: 124.2px;
    max-width: 100%;
    height: auto;
    display: block;
}

#screen-app .sidebar-logo-sub {
    max-width: 158.4px;
    padding-left: 1px;
    color: var(--primary);
    font-size: 10.8px;
    line-height: 1.35;
    font-weight: 800;
    letter-spacing: 0;
}

#screen-app .sidebar-nav {
    padding: 16.2px 12.6px;
    gap: 8px;
}

#screen-app .nav-item {
    min-height: 46.8px;
    gap: 12.6px;
    padding: 0 16.2px;
    border-radius: 9px;
    color: var(--primary);
    font-size: 12.6px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0;
}

#screen-app .nav-item:hover {
    background: #f3f6ff;
    color: var(--primary);
}

#screen-app .nav-item.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 10.8px 19.8px rgba(26, 58, 110, 0.16);
}

#screen-app .nav-item svg {
    width: 18.9px;
    height: 18.9px;
    flex: 0 0 18.9px;
    stroke-width: 2.2;
}

body.sidebar-collapsed #screen-app .sidebar-logo {
    min-height: 77.4px;
    align-items: center;
    padding: 18px 9px 12.6px;
}

body.sidebar-collapsed #screen-app .sidebar-logo-real {
    width: 43.2px;
}

body.sidebar-collapsed #screen-app .sidebar-logo-sub {
    display: none;
}

body.sidebar-collapsed #screen-app .sidebar-nav {
    padding: 12.6px 9px;
}

body.sidebar-collapsed #screen-app .nav-item {
    justify-content: center;
    min-height: 43.2px;
    gap: 0;
    padding: 0;
    font-size: 0;
}

body.sidebar-collapsed #screen-app .nav-item svg {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
}

@media (max-width: 900px) {

    #screen-app .sidebar-logo,
    body.sidebar-collapsed #screen-app .sidebar-logo {
        min-height: 106.2px;
        align-items: flex-start;
        padding: 25.2px 21.6px 19.8px;
    }

    #screen-app .sidebar-logo-real,
    body.sidebar-collapsed #screen-app .sidebar-logo-real {
        width: 124.2px;
    }

    #screen-app .sidebar-logo-sub,
    body.sidebar-collapsed #screen-app .sidebar-logo-sub {
        display: block;
    }

    #screen-app .sidebar-nav,
    body.sidebar-collapsed #screen-app .sidebar-nav {
        padding: 16.2px 12.6px;
    }

    #screen-app .nav-item,
    body.sidebar-collapsed #screen-app .nav-item {
        justify-content: flex-start;
        min-height: 46.8px;
        gap: 12.6px;
        padding: 0 16.2px;
        font-size: 12.6px;
    }
}

/* ===== TOPBAR FINAL POLISH ===== */
#screen-app .topbar {
    min-height: 64.8px;
    border-bottom: 1px solid var(--gray-200);
    background: white;
    padding: 0 28.8px;
}

#screen-app .topbar-actions {
    gap: 19.8px;
}

#screen-app .topbar-search,
#screen-app .topbar-notif {
    width: 32.4px;
    height: 32.4px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

#screen-app .topbar-search:hover,
#screen-app .topbar-notif:hover {
    background: #f3f6ff;
    color: var(--primary);
}

#screen-app .topbar-search svg,
#screen-app .topbar-notif svg {
    width: 22.5px;
    height: 22.5px;
    stroke-width: 2.1;
}

#screen-app .topbar-notif {
    position: relative;
}

#screen-app .notif-badge {
    top: 0;
    right: 1px;
    width: 15.3px;
    height: 15.3px;
    border: 2px solid white;
    background: #0057ff;
    color: white;
    font-size: 9px;
    line-height: 1;
    font-weight: 800;
}

#screen-app .topbar-user-menu {
    position: relative;
}

#screen-app .topbar-user {
    min-height: 43.2px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--primary);
    cursor: pointer;
    font-family: inherit;
}

#screen-app .topbar-user:hover {
    background: transparent;
}

#screen-app .topbar-avatar {
    width: 39.6px;
    height: 39.6px;
    border-radius: 50%;
    border: 2px solid var(--gray-200);
    background: var(--primary);
    color: white;
    overflow: hidden;
    flex-shrink: 0;
}

#screen-app .topbar-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

#screen-app .topbar-avatar span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: white;
    font-size: 11.7px;
    font-weight: 900;
}

#screen-app .topbar-user-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    min-width: 0;
    text-align: left;
    max-width: 198px;
    overflow: hidden;
}

#screen-app .topbar-name {
    display: block;
    color: var(--primary);
    font-size: 11.7px;
    line-height: 1.25;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#screen-app .topbar-role {
    display: block;
    color: var(--primary);
    font-size: 10.8px;
    line-height: 1.25;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#screen-app .topbar-caret {
    width: 14.4px;
    height: 14.4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--primary);
    transition: transform 0.15s;
    margin-left: 6px;
    flex-shrink: 0;
}

#screen-app .topbar-user-menu.is-open .topbar-caret {
    transform: rotate(180deg);
}

#screen-app .topbar-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 10.8px);
    min-width: 158.4px;
    display: none;
    gap: 2px;
    padding: 8px;
    border: 1px solid var(--gray-200);
    border-radius: 9px;
    background: white;
    box-shadow: var(--shadow-md);
    z-index: 70;
}

#screen-app .topbar-user-menu.is-open .topbar-dropdown {
    display: grid;
}

#screen-app .topbar-dropdown a,
#screen-app .topbar-dropdown button {
    width: 100%;
    min-height: 34.2px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 9px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--primary);
    font-family: inherit;
    font-size: 11.7px;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
}

#screen-app .topbar-dropdown a:hover,
#screen-app .topbar-dropdown button:hover {
    background: #f3f6ff;
}

#screen-app .topbar-dropdown form {
    margin: 0;
}

#screen-app .topbar-dropdown svg {
    width: 15.3px;
    height: 15.3px;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    #screen-app .topbar {
        padding: 10.8px 14.4px;
    }

    #screen-app .topbar-actions {
        gap: 10.8px;
    }
}

@media (max-width: 560px) {

    #screen-app .topbar-search,
    #screen-app .topbar-notif {
        width: 30.6px;
        height: 30.6px;
    }

    #screen-app .topbar-user {
        gap: 8px;
    }

    #screen-app .topbar-avatar {
        width: 34.2px;
        height: 34.2px;
    }

    #screen-app .topbar-user-text {
        display: none;
    }
}

/* ===== PROFILE PAGE FINAL LAYOUT ===== */
#screen-app .profile-layout {
    display: grid;
    grid-template-columns: 288px minmax(0, 1fr);
    gap: 19.8px;
    align-items: stretch;
}

#screen-app .profile-account-card,
#screen-app .profile-info-card,
#screen-app .profile-security-card {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    background: white;
    box-shadow: var(--shadow-sm);
}

#screen-app .profile-account-card {
    padding: 21.6px 21.6px 25.2px;
}

#screen-app .profile-card-title {
    color: var(--primary);
    font-size: 14.4px;
    font-weight: 800;
    line-height: 1.25;
}

#screen-app .profile-card-sub {
    margin-top: 4px;
    color: var(--primary);
    font-size: 10.8px;
    font-weight: 600;
}

#screen-app .profile-identity {
    padding: 23.4px 0 21.6px;
    text-align: center;
}

#screen-app .profile-avatar-large {
    position: relative;
    width: 104.4px;
    height: 104.4px;
    margin: 0 auto 14.4px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
}

#screen-app .profile-avatar-large img,
#screen-app .profile-avatar-large span {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    object-fit: cover;
    font-size: 28.8px;
    font-weight: 900;
}

#screen-app .profile-avatar-edit {
    position: absolute;
    right: -4px;
    bottom: 4px;
    width: 32.4px;
    height: 32.4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 4px solid white;
    border-radius: 50%;
    background: #eef4ff;
    color: #0057ff;
    cursor: pointer;
}

#screen-app .profile-avatar-edit svg {
    width: 13.5px;
    height: 13.5px;
    stroke-width: 2.4;
}

#screen-app .profile-photo-form {
    display: contents;
}

#screen-app .profile-inline-error,
#screen-app .profile-modal-error {
    margin-top: 10.8px;
    padding: 9px 10.8px;
    border: 1px solid #fecaca;
    border-radius: 8px;
    background: #fff5f5;
    color: #dc2626;
    font-size: 10.8px;
    font-weight: 800;
    line-height: 1.45;
}

#screen-app .profile-name-large {
    color: var(--primary);
    font-size: 19.8px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 8px;
}

#screen-app .profile-role-pill,
#screen-app .profile-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 21.6px;
    padding: 3px 10.8px;
    border-radius: 899.1px;
    background: #eef4ff;
    color: #0057ff;
    font-size: 10.8px;
    font-weight: 800;
}

#screen-app .profile-status-pill {
    width: fit-content;
    min-width: 0;
    min-height: 18px;
    padding: 2px 9px;
    background: #dcfce7;
    color: #16a34a;
    font-size: 9.9px;
    line-height: 1;
}

#screen-app .profile-contact-list {
    display: grid;
    gap: 19.8px;
    margin-top: 9px;
}

#screen-app .profile-contact-item {
    display: grid;
    grid-template-columns: 21.6px minmax(0, 1fr);
    gap: 12.6px;
    align-items: start;
    color: var(--primary);
}

#screen-app .profile-contact-item svg {
    width: 18.9px;
    height: 18.9px;
    color: var(--primary);
}

#screen-app .profile-contact-item span {
    display: block;
    margin-bottom: 3px;
    color: var(--primary);
    font-size: 10.8px;
    font-weight: 800;
}

#screen-app .profile-contact-item strong {
    display: block;
    color: #2447b7;
    font-size: 11.7px;
    font-weight: 700;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

#screen-app .profile-password-button {
    width: 100%;
    min-height: 37.8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 39.6px;
    border: 1.5px solid var(--gray-200);
    border-radius: 8px;
    background: white;
    color: #0057ff;
    font-family: inherit;
    font-size: 11.7px;
    font-weight: 800;
    cursor: pointer;
}

#screen-app .profile-password-button:hover {
    border-color: #b8c9ff;
    background: #f8fbff;
}

#screen-app .profile-password-button svg {
    width: 14.4px;
    height: 14.4px;
}

#screen-app .profile-info-card {
    padding: 23.4px 25.2px 25.2px;
}

#screen-app .profile-info-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14.4px;
    margin-bottom: 23.4px;
}

#screen-app .profile-edit-button {
    min-height: 34.2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 12.6px;
    border: 1.5px solid var(--gray-200);
    border-radius: 8px;
    background: white;
    color: #0057ff;
    font-family: inherit;
    font-size: 11.7px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

#screen-app .profile-edit-button:hover {
    border-color: #b8c9ff;
    background: #f8fbff;
}

#screen-app .profile-edit-button svg {
    width: 14.4px;
    height: 14.4px;
    stroke-width: 2.35;
}

#screen-app .profile-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 19.8px 23.4px;
}

#screen-app .profile-field {
    display: grid;
    gap: 8px;
}

#screen-app .profile-field-full {
    grid-column: 1 / -1;
}

#screen-app .profile-field span {
    color: var(--primary);
    font-size: 10.8px;
    font-weight: 800;
}

#screen-app .profile-field input,
#screen-app .profile-field textarea {
    width: 100%;
    min-height: 41.4px;
    border: 1.5px solid var(--gray-200);
    border-radius: 8px;
    background: white;
    color: var(--primary);
    font-family: inherit;
    font-size: 12.6px;
    font-weight: 700;
    outline: none;
    padding: 0 12.6px;
}

#screen-app .profile-field textarea {
    min-height: 73.8px;
    padding-top: 10.8px;
    line-height: 1.55;
    resize: vertical;
}

#screen-app .profile-field input:focus,
#screen-app .profile-field textarea:focus {
    border-color: var(--primary);
}

#screen-app .profile-field input[readonly],
#screen-app .profile-field textarea[readonly] {
    background: white;
    opacity: 1;
}

#screen-app .profile-security-card {
    display: flex;
    align-items: center;
    gap: 16.2px;
    margin-top: 19.8px;
    padding: 21.6px 25.2px;
    background: #eff6ff;
    border-color: #dbeafe;
}

#screen-app .profile-security-icon {
    width: 32.4px;
    height: 32.4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0057ff;
    flex-shrink: 0;
}

#screen-app .profile-security-icon svg {
    width: 23.4px;
    height: 23.4px;
}

#screen-app .profile-security-title {
    color: var(--primary);
    font-size: 12.6px;
    font-weight: 800;
    margin-bottom: 3px;
}

#screen-app .profile-security-sub {
    color: #2447b7;
    font-size: 10.8px;
    font-weight: 600;
}

#screen-app .profile-password-modal {
    max-width: 432px;
    text-align: left;
}

#screen-app .profile-edit-modal {
    width: min(684px, calc(100vw - 28.8px));
    max-width: 684px;
    text-align: left;
}

#screen-app .profile-modal-grid {
    margin: 19.8px 0 21.6px;
    gap: 16.2px 18px;
}

#screen-app .profile-password-fields {
    display: grid;
    gap: 14.4px;
    margin: 19.8px 0 21.6px;
}

#screen-app .profile-password-input-wrap {
    position: relative;
}

#screen-app .profile-password-input-wrap .profile-password-input {
    padding-right: 43.2px;
}

#screen-app .profile-password-toggle {
    position: absolute;
    top: 50%;
    right: 10.8px;
    width: 27px;
    height: 27px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--primary);
    cursor: pointer;
    transform: translateY(-50%);
}

#screen-app .profile-password-toggle:hover {
    background: #f3f6ff;
}

#screen-app .profile-password-toggle svg {
    width: 16.2px;
    height: 16.2px;
    stroke-width: 2.15;
}

#screen-app .profile-edit-modal .modal-confirm,
#screen-app .profile-password-modal .modal-confirm {
    background: var(--primary);
}

#screen-app .profile-edit-modal .modal-confirm:hover,
#screen-app .profile-password-modal .modal-confirm:hover {
    background: var(--primary-light);
}

@media (max-width: 1080px) {
    #screen-app .profile-layout {
        grid-template-columns: 252px minmax(0, 1fr);
    }
}

@media (max-width: 900px) {

    #screen-app .profile-layout,
    #screen-app .profile-form-grid {
        grid-template-columns: 1fr;
    }

    #screen-app .profile-info-head {
        align-items: stretch;
        flex-direction: column;
    }

    #screen-app .profile-edit-button {
        width: 100%;
    }
}

@media (max-width: 560px) {

    #screen-app .profile-account-card,
    #screen-app .profile-info-card,
    #screen-app .profile-security-card {
        padding: 16.2px;
    }

    #screen-app .profile-avatar-large {
        width: 86.4px;
        height: 86.4px;
    }

    #screen-app .profile-security-card {
        align-items: flex-start;
    }
}

/* ===== GLOBAL NOTIFICATION FINAL STYLE ===== */
#screen-app .ui-alert,
.ui-alert,
#screen-app .admin-note,
.admin-note {
    min-height: 48.6px;
    display: flex;
    align-items: center;
    gap: 10.8px;
    margin-bottom: 18px;
    padding: 11.7px 14.4px;
    border: 1.5px solid #dbeafe;
    border-left-width: 4px;
    border-radius: 8px;
    background: white;
    color: var(--primary);
    box-shadow: 0 9px 21.6px rgba(26, 58, 110, 0.06);
    font-size: 12.6px;
    font-weight: 800;
    line-height: 1.45;
}

#screen-app .ui-alert-icon,
.ui-alert-icon {
    width: 25.2px;
    height: 25.2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eef4ff;
    color: var(--primary);
    flex: 0 0 25.2px;
}

#screen-app .ui-alert-icon svg,
.ui-alert-icon svg {
    width: 14.4px;
    height: 14.4px;
}

#screen-app .ui-alert-success,
.ui-alert-success {
    border-color: #bbf7d0;
    border-left-color: #16a34a;
    color: #15803d;
}

#screen-app .ui-alert-success .ui-alert-icon,
.ui-alert-success .ui-alert-icon {
    background: #dcfce7;
    color: #16a34a;
}

#screen-app .ui-alert-danger,
.ui-alert-danger {
    border-color: #fecaca;
    border-left-color: #ef233c;
    color: #dc2626;
}

#screen-app .ui-alert-danger .ui-alert-icon,
.ui-alert-danger .ui-alert-icon {
    background: #fee2e2;
    color: #ef233c;
}

#screen-app .admin-note,
.admin-note {
    border-color: #dbeafe;
    border-left-color: #0057ff;
    background: white;
    color: var(--primary);
}

#screen-app .toast,
.toast {
    min-width: 252px;
    max-width: min(378px, calc(100vw - 28.8px));
    min-height: 46.8px;
    align-items: center;
    justify-content: flex-start;
    padding: 11.7px 14.4px;
    border: 1.5px solid #dbeafe;
    border-left: 4px solid #0057ff;
    border-radius: 8px;
    background: white;
    color: var(--primary);
    box-shadow: 0 16.2px 36px rgba(26, 58, 110, 0.16);
    font-size: 12.6px;
    font-weight: 800;
}

#screen-app .toast.success,
.toast.success {
    border-color: #bbf7d0;
    border-left-color: #16a34a;
    background: white;
    color: #15803d;
}

#screen-app .toast.error,
.toast.error {
    border-color: #fecaca;
    border-left-color: #ef233c;
    background: white;
    color: #dc2626;
}

/* ===== DETAIL PAGE FINAL CONSISTENCY ===== */
#screen-app .table-section>.table-header {
    min-height: 66.6px;
    padding: 16.2px 21.6px;
    justify-content: space-between;
    gap: 14.4px;
}

#screen-app .table-section>.table-header .table-title {
    color: var(--primary);
    font-size: 16.2px;
    line-height: 1.25;
    font-weight: 800;
}

#screen-app .table-section>.table-header .td-sub {
    color: #2447b7;
    font-size: 10.8px;
    line-height: 1.45;
    font-weight: 700;
}

#screen-app .detail-modal-body {
    display: grid;
    padding: 21.6px 25.2px;
}

#screen-app .detail-back-btn,
#screen-app .back-btn {
    min-height: 37.8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 14.4px;
    border: 1.5px solid var(--gray-200);
    border-radius: 8px;
    background: white;
    color: var(--primary);
    font-size: 11.7px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

#screen-app .detail-back-btn svg,
#screen-app .detail-back-btn i,
#screen-app .back-btn svg,
#screen-app .back-btn i {
    width: 15.3px;
    height: 15.3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 15.3px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#screen-app .detail-back-btn:hover,
#screen-app .back-btn:hover {
    border-color: #b8c9ff;
    background: #f8fbff;
    color: #0057ff;
}

#screen-app .detail-back-btn+.form-page,
#screen-app .back-btn+.form-page {
    margin-top: 16.2px;
}

/* ===== DONUT CHART FINAL POLISH ===== */
#screen-app .donut-wrap {
    grid-template-columns: 216px minmax(0, 1fr);
    gap: 23.4px;
    min-height: 270px;
}

#screen-app .donut-chart {
    width: 198px;
    height: 198px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    position: relative;
}

#screen-app .donut-chart::after {
    content: none;
}

#screen-app .donut-svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
    transform: rotate(-90deg);
    filter: drop-shadow(0 9px 18px rgba(26, 58, 110, 0.08));
}

#screen-app .donut-track {
    stroke: var(--gray-100);
    stroke-width: 22;
}

#screen-app .donut-segment {
    stroke-linecap: butt;
    cursor: pointer;
    transition: stroke-width 0.16s ease, opacity 0.16s ease, filter 0.16s ease;
}

#screen-app .donut-segment:hover,
#screen-app .donut-segment.is-active {
    stroke-width: 24;
    opacity: 0.96;
    filter: brightness(1.03);
}

#screen-app .donut-hole {
    fill: white;
    filter: drop-shadow(0 2px 8px rgba(26, 58, 110, 0.06));
}

@media (max-width: 900px) {
    #screen-app .donut-wrap {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    #screen-app .donut-chart {
        width: 180px;
        height: 180px;
    }
}

/* ===== DRIVER DASHBOARD FINAL LAYOUT ===== */
#screen-app .page-content-head {
    padding-bottom: 18px;
    border-bottom: 1px solid var(--gray-200);
}

#screen-app .page-content-title span {
    color: #0057ff;
}

#screen-app .driver-dashboard {
    display: grid;
    gap: 18px;
}

#screen-app .driver-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16.2px;
}

#screen-app .driver-stat-card {
    min-height: 118.8px;
    display: grid;
    grid-template-columns: 57.6px minmax(0, 1fr) 21.6px;
    align-items: center;
    gap: 16.2px;
    padding: 19.8px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    background: white;
    box-shadow: 0 9px 21.6px rgba(26, 58, 110, 0.05);
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

#screen-app .driver-stat-card:hover {
    border-color: #c7d2fe;
    box-shadow: 0 14.4px 27px rgba(26, 58, 110, 0.09);
    transform: translateY(-1px);
}

#screen-app .driver-stat-icon {
    width: 52.2px;
    height: 52.2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12.6px;
}

#screen-app .driver-stat-icon svg {
    width: 28.8px;
    height: 28.8px;
}

#screen-app .driver-stat-icon.primary {
    background: #e8f0fe;
    color: #0057ff;
}

#screen-app .driver-stat-icon.warning {
    background: #fff4df;
    color: #f5a623;
}

#screen-app .driver-stat-icon.success {
    background: #e7f6ec;
    color: #16a34a;
}

#screen-app .driver-stat-icon.danger {
    background: #fee8e8;
    color: #ef4444;
}

#screen-app .driver-stat-label {
    color: var(--primary);
    font-size: 12.6px;
    line-height: 1.35;
    font-weight: 800;
    margin-bottom: 6px;
}

#screen-app .driver-stat-number {
    color: var(--primary);
    font-size: 27.9px;
    line-height: 1;
    font-weight: 900;
    margin-bottom: 8px;
}

#screen-app .driver-stat-sub {
    color: #5c6f9f;
    font-size: 10.8px;
    line-height: 1.35;
    font-weight: 700;
}

#screen-app .driver-stat-arrow {
    width: 19.8px;
    height: 19.8px;
    color: var(--primary);
    opacity: 0.78;
}

#screen-app .driver-panel {
    padding: 21.6px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    background: white;
    box-shadow: 0 9px 21.6px rgba(26, 58, 110, 0.05);
}

#screen-app .driver-panel-title,
#screen-app .driver-table-head {
    color: var(--primary);
    font-size: 16.2px;
    line-height: 1.3;
    font-weight: 900;
}

#screen-app .driver-panel-title {
    margin-bottom: 19.8px;
}

#screen-app .driver-service-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

#screen-app .driver-service-card {
    min-height: 198px;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    padding: 21.6px 19.8px;
    border: 1.5px solid var(--gray-200);
    border-radius: 8px;
    background: white;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

#screen-app .driver-service-card:hover {
    border-color: #c7d2fe;
    box-shadow: 0 12.6px 23.4px rgba(26, 58, 110, 0.08);
    transform: translateY(-1px);
}

#screen-app .driver-service-icon {
    width: 48.6px;
    height: 48.6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10.8px;
    margin-bottom: 16.2px;
}

#screen-app .driver-service-icon svg {
    width: 25.2px;
    height: 25.2px;
}

#screen-app .driver-service-icon.service {
    background: #e8f0fe;
    color: #0057ff;
}

#screen-app .driver-service-icon.stnk {
    background: #e8f8f0;
    color: #16a34a;
}

#screen-app .driver-service-icon.kir {
    background: #fff4df;
    color: #f5a623;
}

#screen-app .driver-service-icon.sim {
    background: #efe8ff;
    color: #8b5cf6;
}

#screen-app .driver-service-name {
    color: var(--primary);
    font-size: 14.4px;
    line-height: 1.25;
    font-weight: 900;
    margin-bottom: 9px;
}

#screen-app .driver-service-desc {
    max-width: 198px;
    min-height: 37.8px;
    color: #5c6f9f;
    font-size: 11.7px;
    line-height: 1.55;
    font-weight: 700;
    margin-bottom: 16.2px;
}

#screen-app .driver-service-link {
    min-width: 135px;
    min-height: 32.4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 12.6px;
    border: 1.5px solid var(--gray-200);
    border-radius: 8px;
    color: #0057ff;
    background: white;
    font-size: 10.8px;
    font-weight: 900;
}

#screen-app .driver-service-link svg {
    width: 13.5px;
    height: 13.5px;
}

#screen-app .driver-table-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14.4px;
    margin-bottom: 16.2px;
}

#screen-app .driver-see-all {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 16.2px;
    border: 1.5px solid var(--gray-200);
    border-radius: 8px;
    color: #0057ff;
    background: white;
    font-size: 11.7px;
    font-weight: 900;
    text-decoration: none;
}

#screen-app .driver-see-all:hover,
#screen-app .driver-service-link:hover {
    border-color: #b8c9ff;
    background: #f8fbff;
}

#screen-app .driver-see-all svg {
    width: 14.4px;
    height: 14.4px;
}

#screen-app .driver-table-wrap {
    max-width: 100%;
    overflow-x: auto;
}

#screen-app .driver-latest-table {
    min-width: 882px;
}

#screen-app .driver-latest-table th {
    padding: 13.5px 19.8px;
    color: var(--primary);
    font-size: 11.7px;
    font-weight: 800;
    background: white;
    border-bottom: 1px solid var(--gray-200);
}

#screen-app .driver-latest-table td {
    padding: 13.5px 19.8px;
    color: var(--primary);
    font-size: 12.6px;
    font-weight: 700;
    vertical-align: middle;
}

#screen-app .driver-row-actions {
    justify-content: flex-end;
}

#screen-app .driver-latest-table .admin-action-btn.outline {
    min-width: 100.8px;
    height: 36px;
    padding: 0 14.4px;
}

@media (max-width: 1200px) {

    #screen-app .driver-stat-grid,
    #screen-app .driver-service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {

    #screen-app .driver-stat-grid,
    #screen-app .driver-service-grid {
        grid-template-columns: 1fr;
    }

    #screen-app .driver-stat-card {
        grid-template-columns: 52.2px minmax(0, 1fr) 18px;
        padding: 16.2px;
    }

    #screen-app .driver-panel {
        padding: 16.2px;
    }

    #screen-app .driver-table-head {
        align-items: stretch;
        flex-direction: column;
    }

    #screen-app .driver-see-all {
        width: 100%;
    }
}

/* ===== DRIVER PENGAJUAN FINAL UI ===== */
#screen-app .driver-pengajuan-toolbar {
    display: flex;
    align-items: center;
    gap: 14.4px;
    margin-bottom: 18px;
    padding: 16.2px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    background: white;
    box-shadow: 0 9px 21.6px rgba(26, 58, 110, 0.05);
}

#screen-app .driver-status-tabs {
    min-height: 41.4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    background: var(--gray-50);
}

#screen-app .driver-status-tabs .tab {
    min-height: 32.4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14.4px;
    border-radius: 7px;
    color: var(--primary);
    font-size: 11.7px;
    font-weight: 800;
}

#screen-app .driver-status-tabs .tab.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 9px 16.2px rgba(26, 58, 110, 0.14);
}

#screen-app .driver-pengajuan-toolbar .btn-primary {
    min-height: 41.4px;
    border-radius: 8px;
    background: var(--primary);
    font-size: 12.6px;
    font-weight: 900;
    box-shadow: 0 10.8px 19.8px rgba(26, 58, 110, 0.16);
}

#screen-app .driver-pengajuan-table {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 9px 21.6px rgba(26, 58, 110, 0.05);
    padding-top: 21.6px;
}

#screen-app .driver-pengajuan-table table {
    min-width: 954px;
    border-collapse: separate;
    border-spacing: 0 14.4px;
    padding: 0 16.2px 18px;
}

#screen-app .driver-pengajuan-table .driver-table-head {
    margin: 0 21.6px 16.2px;
}

#screen-app .driver-pengajuan-table th {
    padding: 0 19.8px 2px;
    color: var(--primary);
    font-size: 11.7px;
    font-weight: 800;
    white-space: nowrap;
    background: transparent;
    border-bottom: 0;
}

#screen-app .driver-pengajuan-table td {
    padding: 19.8px 19.8px;
    color: var(--primary);
    font-size: 12.6px;
    font-weight: 700;
    vertical-align: middle;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
    background: white;
}

#screen-app .driver-pengajuan-table tbody tr td:first-child {
    border-left: 1px solid var(--gray-200);
    border-radius: 8px 0 0 8px;
}

#screen-app .driver-pengajuan-table tbody tr td:last-child {
    border-right: 1px solid var(--gray-200);
    border-radius: 0 8px 8px 0;
}

#screen-app .driver-pengajuan-table tbody tr:hover td {
    background: #fbfdff;
}

#screen-app .driver-pengajuan-table .admin-action-btn.outline {
    height: 36px;
    min-width: 100.8px;
    padding: 0 14.4px;
}

#screen-app .driver-pengajuan-table .btn-more,
#screen-app .driver-row-actions .btn-more {
    flex-shrink: 0;
}

#screen-app .driver-vehicle-cell strong {
    display: block;
    color: var(--primary);
    font-size: 12.6px;
    font-weight: 900;
    margin-bottom: 4px;
}

#screen-app .driver-vehicle-cell span {
    display: block;
    color: #5c6f9f;
    font-size: 10.8px;
    font-weight: 700;
}

#screen-app .driver-pagination {
    margin-top: 14.4px;
}

#screen-app .driver-create-modal {
    width: min(432px, calc(100vw - 28.8px));
    max-width: 432px;
    padding: 25.2px;
    text-align: left;
}

#screen-app .driver-create-modal .modal-title,
#screen-app .driver-create-modal .modal-desc {
    text-align: center;
}

#screen-app .driver-create-modal .modal-desc {
    margin-bottom: 18px;
}

#screen-app .driver-create-options {
    display: grid;
    gap: 10.8px;
    margin-bottom: 19.8px;
}

#screen-app .driver-create-modal .create-option {
    min-height: 68.4px;
    padding: 12.6px;
    border: 1.5px solid var(--gray-200);
    border-radius: 8px;
}

#screen-app .driver-create-modal .create-option:hover {
    border-color: #b8c9ff;
    background: #f8fbff;
}

#screen-app .driver-create-modal .create-option-name {
    color: var(--primary);
    font-size: 12.6px;
    font-weight: 900;
}

#screen-app .driver-create-modal .create-option-desc {
    color: #5c6f9f;
    font-size: 10.8px;
    font-weight: 700;
}

#screen-app .driver-create-modal .create-option-arrow {
    color: var(--primary);
    font-size: 19.8px;
    font-weight: 700;
}

#screen-app .driver-create-modal .btn-batal-full {
    width: 100%;
    min-height: 39.6px;
    margin-top: 0;
    border-radius: 8px;
    color: var(--primary);
    font-size: 12.6px;
    font-weight: 900;
}

#screen-app .driver-pengajuan-form {
    border-radius: 8px;
    box-shadow: 0 9px 21.6px rgba(26, 58, 110, 0.05);
}

#screen-app .driver-pengajuan-form .form-page-header {
    padding: 21.6px 25.2px;
    border-bottom: 1px solid var(--gray-200);
    background: white;
}

#screen-app .driver-pengajuan-form .form-page-title {
    color: var(--primary);
    font-size: 16.2px;
    line-height: 1.25;
    font-weight: 900;
}

#screen-app .driver-form-subtitle {
    margin-top: 4px;
    color: #5c6f9f;
    font-size: 10.8px;
    font-weight: 700;
}

#screen-app .driver-pengajuan-form .form-body {
    padding: 23.4px 25.2px;
    gap: 25.2px;
}

#screen-app .driver-pengajuan-form .form-field-styled label {
    color: var(--primary);
    font-size: 11.7px;
    font-weight: 900;
}

#screen-app .driver-pengajuan-form .form-field-styled input,
#screen-app .driver-pengajuan-form .form-field-styled select,
#screen-app .driver-pengajuan-form .form-field-styled textarea {
    min-height: 41.4px;
    border-radius: 8px;
    color: var(--primary);
    font-weight: 700;
}

#screen-app .driver-pengajuan-form .form-field-styled textarea {
    min-height: 135px;
}

#screen-app .driver-pengajuan-form .upload-zone {
    min-height: 162px;
    border-radius: 8px;
    border-color: var(--gray-200);
    background: var(--gray-50);
    color: var(--primary);
}

#screen-app .driver-pengajuan-form .upload-zone:hover {
    border-color: #b8c9ff;
    background: #f8fbff;
}

#screen-app .driver-pengajuan-form .form-footer {
    padding: 18px 25.2px;
    border-top: 1px solid var(--gray-200);
}

@media (max-width: 900px) {
    #screen-app .driver-pengajuan-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    #screen-app .driver-status-tabs {
        width: 100%;
        overflow-x: auto;
    }

    #screen-app .driver-pengajuan-toolbar .btn-primary {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 760px) {

    #screen-app .driver-pengajuan-form .form-body,
    #screen-app .driver-pengajuan-form .form-footer,
    #screen-app .driver-pengajuan-form .form-page-header {
        padding-left: 16.2px;
        padding-right: 16.2px;
    }
}

/* ===== DRIVER TRACK PAGE FINAL UI ===== */
#screen-app .driver-track-filter {
    display: grid;
    grid-template-columns: minmax(234px, 1.8fr) minmax(162px, 0.8fr) minmax(135px, 0.6fr) minmax(135px, 0.6fr) auto;
    gap: 16.2px;
    align-items: end;
    margin-bottom: 18px;
    padding: 21.6px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    background: white;
    box-shadow: 0 9px 21.6px rgba(26, 58, 110, 0.05);
}

#screen-app .driver-track-field {
    display: grid;
    gap: 9px;
}

#screen-app .driver-track-field>span {
    color: var(--primary);
    font-size: 11.7px;
    font-weight: 900;
}

#screen-app .driver-track-field input,
#screen-app .driver-track-field select {
    width: 100%;
    height: 41.4px;
    border: 1.5px solid var(--gray-200);
    border-radius: 8px;
    background: white;
    color: var(--primary);
    font-family: inherit;
    font-size: 12.6px;
    font-weight: 800;
    outline: none;
    padding: 0 12.6px;
}

#screen-app .driver-track-field input:focus,
#screen-app .driver-track-field select:focus {
    border-color: var(--primary);
}

#screen-app .driver-track-search>div {
    position: relative;
}

#screen-app .driver-track-search input {
    padding-right: 43.2px;
}

#screen-app .driver-track-search button {
    position: absolute;
    right: 8px;
    top: 50%;
    width: 30.6px;
    height: 30.6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--primary);
    cursor: pointer;
    transform: translateY(-50%);
}

#screen-app .driver-track-search button:hover {
    background: #f3f6ff;
}

#screen-app .driver-track-search svg,
#screen-app .driver-track-reset svg {
    width: 18px;
    height: 18px;
}

#screen-app .driver-track-reset {
    height: 41.4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 14.4px;
    border: 1.5px solid var(--gray-200);
    border-radius: 8px;
    background: white;
    color: var(--primary);
    font-size: 11.7px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

#screen-app .driver-track-reset:hover {
    border-color: #b8c9ff;
    background: #f8fbff;
}

#screen-app .driver-track-list {
    display: grid;
    gap: 0;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    background: white;
    box-shadow: 0 9px 21.6px rgba(26, 58, 110, 0.05);
    overflow: hidden;
}

#screen-app .driver-track-card {
    display: grid;
    grid-template-columns: 63px minmax(324px, 1fr) minmax(171px, 0.42fr) minmax(171px, auto);
    gap: 18px;
    align-items: center;
    padding: 23.4px 25.2px;
    border-bottom: 1px solid var(--gray-200);
    background: white;
}

#screen-app .driver-track-card:last-child {
    border-bottom: 0;
}

#screen-app .driver-track-card>.type-icon {
    width: 52.2px;
    height: 52.2px;
    border-radius: 9px;
}

#screen-app .driver-track-card>.type-icon svg {
    width: 27.9px;
    height: 27.9px;
}

#screen-app .driver-track-main {
    min-width: 0;
}

#screen-app .driver-track-title-row {
    display: flex;
    align-items: center;
    gap: 12.6px;
    margin-bottom: 14.4px;
}

#screen-app .driver-track-title-row h3 {
    color: var(--primary);
    font-size: 16.2px;
    line-height: 1.25;
    font-weight: 900;
    margin: 0;
}

#screen-app .driver-track-number {
    display: inline-flex;
    align-items: center;
    min-height: 21.6px;
    padding: 0 9px;
    border-radius: 899.1px;
    background: #eef4ff;
    color: #0057ff;
    font-size: 10.8px;
    font-weight: 900;
}

#screen-app .driver-track-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 21.6px;
}

#screen-app .driver-track-meta span,
#screen-app .driver-track-status>span:first-child {
    display: block;
    margin-bottom: 6px;
    color: #5c6f9f;
    font-size: 10.8px;
    font-weight: 800;
}

#screen-app .driver-track-meta strong {
    display: block;
    color: var(--primary);
    font-size: 12.6px;
    font-weight: 800;
}

#screen-app .driver-track-status {
    min-height: 66.6px;
    padding-left: 25.2px;
    border-left: 1px solid var(--gray-200);
}

#screen-app .driver-track-status small {
    display: block;
    margin-top: 8px;
    color: #5c6f9f;
    font-size: 10.8px;
    font-weight: 700;
}

#screen-app .driver-track-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16.2px;
}

#screen-app .driver-track-actions .admin-action-btn.outline {
    min-width: 113.4px;
    height: 36px;
}

#screen-app .driver-track-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14.4px;
    padding: 14.4px 25.2px;
    border: 1px solid var(--gray-200);
    border-top: 0;
    border-radius: 0 0 8px 8px;
    background: white;
    color: var(--primary);
    font-size: 11.7px;
    font-weight: 800;
}

@media (max-width: 1280px) {
    #screen-app .driver-track-filter {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #screen-app .driver-track-search {
        grid-column: 1 / -1;
    }

    #screen-app .driver-track-card {
        grid-template-columns: 57.6px minmax(0, 1fr);
    }

    #screen-app .driver-track-status {
        grid-column: 2;
        padding-left: 0;
        border-left: 0;
    }

    #screen-app .driver-track-actions {
        grid-column: 2;
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {
    #screen-app .driver-track-filter {
        grid-template-columns: 1fr;
        padding: 16.2px;
    }

    #screen-app .driver-track-card {
        grid-template-columns: 1fr;
        gap: 12.6px;
        padding: 18px;
    }

    #screen-app .driver-track-status,
    #screen-app .driver-track-actions {
        grid-column: auto;
    }

    #screen-app .driver-track-meta {
        grid-template-columns: 1fr;
        gap: 10.8px;
    }

    #screen-app .driver-track-actions {
        align-items: stretch;
        flex-direction: column;
    }

    #screen-app .driver-track-actions .admin-action-btn.outline {
        width: 100%;
    }

    #screen-app .driver-track-footer {
        align-items: stretch;
        flex-direction: column;
        padding: 14.4px 18px;
    }
}

/* ===== DRIVER HISTORY PAGE FINAL UI ===== */
#screen-app .driver-history-filter {
    display: grid;
    grid-template-columns: minmax(234px, 1.5fr) minmax(153px, 0.72fr) minmax(153px, 0.72fr) minmax(130.5px, 0.55fr) minmax(130.5px, 0.55fr) auto;
    gap: 16.2px;
    align-items: end;
    margin-bottom: 18px;
    padding: 21.6px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    background: white;
    box-shadow: 0 9px 21.6px rgba(26, 58, 110, 0.05);
}

#screen-app .driver-history-table {
    border-radius: 8px;
    box-shadow: 0 9px 21.6px rgba(26, 58, 110, 0.05);
}

#screen-app .driver-history-table table {
    min-width: 1008px;
}

#screen-app .driver-history-table th {
    padding: 16.2px 19.8px;
    color: var(--primary);
    font-size: 11.7px;
    font-weight: 900;
    white-space: nowrap;
    background: white;
}

#screen-app .driver-history-table td {
    padding: 16.2px 19.8px;
    color: var(--primary);
    font-size: 12.6px;
    font-weight: 700;
    vertical-align: middle;
}

#screen-app .driver-history-number {
    display: flex;
    align-items: center;
    gap: 12.6px;
}

#screen-app .driver-history-number .type-icon {
    width: 39.6px;
    height: 39.6px;
    border-radius: 8px;
}

#screen-app .driver-history-number .type-icon svg {
    width: 20.7px;
    height: 20.7px;
}

#screen-app .driver-history-number strong {
    display: block;
    color: var(--primary);
    font-size: 12.6px;
    font-weight: 900;
    margin-bottom: 4px;
}

#screen-app .driver-history-number span,
#screen-app .driver-history-complete span {
    color: #5c6f9f;
    font-size: 11.7px;
    font-weight: 700;
}

#screen-app .driver-history-complete {
    color: var(--primary);
    font-size: 12.6px;
    line-height: 1.55;
    font-weight: 800;
}

#screen-app .driver-history-table .admin-action-btn.outline {
    min-width: 113.4px;
    height: 36px;
}

/* ===== HRD DASHBOARD ===== */
#screen-app .hrd-dashboard {
    color: var(--primary);
}

#screen-app .hrd-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 21.6px;
}

#screen-app .hrd-stat-card {
    min-height: 115.2px;
    display: grid;
    grid-template-columns: 57.6px minmax(0, 1fr) 27px;
    align-items: center;
    gap: 16.2px;
    padding: 21.6px 19.8px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    background: white;
    box-shadow: 0 9px 21.6px rgba(26, 58, 110, 0.05);
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

#screen-app .hrd-stat-card:hover {
    transform: translateY(-1px);
    border-color: var(--gray-300);
    box-shadow: 0 12.6px 27px rgba(26, 58, 110, 0.08);
}

#screen-app .hrd-stat-icon {
    width: 52.2px;
    height: 52.2px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16.2px;
}

#screen-app .hrd-stat-icon svg {
    width: 27px;
    height: 27px;
}

#screen-app .hrd-stat-label {
    color: var(--primary);
    font-size: 12.6px;
    line-height: 1.35;
    font-weight: 800;
    margin-bottom: 9px;
}

#screen-app .hrd-stat-number {
    color: var(--primary);
    font-size: 27px;
    line-height: 1;
    font-weight: 900;
    margin-bottom: 8px;
}

#screen-app .hrd-stat-sub {
    color: var(--primary);
    font-size: 11.7px;
    font-weight: 700;
}

#screen-app .hrd-stat-arrow {
    width: 25.2px;
    height: 25.2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: end;
    border-radius: 7px;
    background: var(--gray-100);
    color: var(--primary);
}

#screen-app .hrd-stat-arrow svg {
    width: 13.5px;
    height: 13.5px;
}

#screen-app .hrd-latest-card {
    border-radius: 8px;
    box-shadow: 0 9px 21.6px rgba(26, 58, 110, 0.05);
}

#screen-app .hrd-latest-head {
    min-height: 64.8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14.4px;
    padding: 0 23.4px;
    border-bottom: 1px solid var(--gray-200);
}

#screen-app .hrd-latest-title {
    color: var(--primary);
    font-size: 14.4px;
    font-weight: 900;
}

#screen-app .hrd-latest-head a {
    color: #0057ff;
    font-size: 11.7px;
    font-weight: 900;
}

#screen-app .hrd-latest-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--gray-300) transparent;
}

#screen-app .hrd-latest-table {
    min-width: 1062px;
    border-collapse: collapse;
}

#screen-app .hrd-latest-table th {
    padding: 12.6px 23.4px;
    color: var(--primary);
    background: white;
    border-bottom: 1px solid var(--gray-200);
    font-size: 11.7px;
    font-weight: 900;
}

#screen-app .hrd-latest-table td {
    padding: 16.2px 23.4px;
    vertical-align: middle;
    color: var(--primary);
    border-bottom: 1px solid var(--gray-200);
}

#screen-app .hrd-latest-table tbody tr:hover td {
    background: #fbfdff;
}

#screen-app .hrd-latest-table .admin-submission-icon,
#screen-app .hrd-latest-table .pengajuan-type-icon,
#screen-app .hrd-latest-table .type-icon {
    width: 37.8px;
    height: 37.8px;
    border-radius: 8px;
}

#screen-app .hrd-latest-table .type-icon svg {
    width: 18.9px;
    height: 18.9px;
}

#screen-app .hrd-driver-stack {
    display: grid;
    gap: 3px;
    color: var(--primary);
}

#screen-app .hrd-driver-stack strong {
    font-size: 12.6px;
    line-height: 1.35;
    font-weight: 900;
}

#screen-app .hrd-driver-stack span {
    font-size: 11.7px;
    line-height: 1.45;
    font-weight: 700;
}

#screen-app .hrd-row-actions {
    justify-content: flex-end;
    gap: 12.6px;
}

#screen-app .hrd-row-actions .admin-action-btn.outline {
    min-width: 95.4px;
    height: 36px;
    border-radius: 7px;
}

#screen-app .hrd-latest-bottom {
    min-height: 55.8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #0057ff;
    font-size: 12.6px;
    font-weight: 900;
}

#screen-app .hrd-latest-bottom svg {
    width: 15.3px;
    height: 15.3px;
}

/* ===== HRD APPROVAL PAGE ===== */
#screen-app .hrd-approval-filter {
    display: grid;
    grid-template-columns: repeat(2, minmax(198px, 252px));
    align-items: end;
    gap: 16.2px;
    width: fit-content;
    max-width: 100%;
    padding: 14.4px;
    margin-bottom: 23.4px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    background: white;
    box-shadow: 0 9px 21.6px rgba(26, 58, 110, 0.05);
}

#screen-app .hrd-filter-group {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    min-width: 0;
}

#screen-app .hrd-filter-group label {
    color: var(--primary);
    font-size: 10.8px;
    line-height: 1.3;
    font-weight: 900;
    white-space: nowrap;
}

#screen-app .hrd-filter-spacer {
    display: none;
}

#screen-app .hrd-filter-select-wrap {
    position: relative;
    height: 41.4px;
    display: flex;
    align-items: center;
    padding: 0;
    border: 1.5px solid var(--gray-200);
    border-radius: 8px;
    background: white;
    color: var(--primary);
    transition: border-color 0.2s, box-shadow 0.2s;
}

#screen-app .hrd-filter-select-wrap:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 58, 110, 0.08);
}

#screen-app .hrd-filter-select-wrap svg {
    position: absolute;
    left: 12.6px;
    top: 50%;
    transform: translateY(-50%);
    width: 16.2px;
    height: 16.2px;
    flex-shrink: 0;
    pointer-events: none;
    z-index: 1;
}

#screen-app .hrd-filter-select {
    width: 100%;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--primary);
    font-family: inherit;
    font-size: 12.6px;
    font-weight: 800;
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231a3a6e' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12.6px center;
    padding: 0 37.8px 0 39.6px;
}

#screen-app .hrd-approval-list {
    display: grid;
    gap: 8px;
}

#screen-app .hrd-approval-card {
    overflow: hidden;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    background: white;
    box-shadow: 0 9px 21.6px rgba(26, 58, 110, 0.05);
}

#screen-app .hrd-approval-summary {
    width: 100%;
    min-height: 93.6px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 324px 28.8px;
    align-items: center;
    gap: 19.8px;
    padding: 19.8px 21.6px;
    border: 0;
    background: white;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}

#screen-app .hrd-approval-type {
    display: flex;
    align-items: center;
    gap: 16.2px;
    min-width: 0;
}

#screen-app .hrd-approval-type .type-icon {
    width: 48.6px;
    height: 48.6px;
    border-radius: 9px;
}

#screen-app .hrd-approval-type .type-icon svg {
    width: 23.4px;
    height: 23.4px;
}

#screen-app .hrd-approval-title {
    color: var(--primary);
    font-size: 18px;
    line-height: 1.25;
    font-weight: 900;
    margin-bottom: 9px;
}

#screen-app .hrd-approval-desc {
    color: var(--primary);
    font-size: 11.7px;
    line-height: 1.45;
    font-weight: 700;
}

#screen-app .hrd-confirm-badge {
    margin-left: 16.2px;
    white-space: nowrap;
}

#screen-app .hrd-confirm-badge::before {
    width: 6px;
    height: 6px;
    border: 0;
    border-radius: 50%;
    background: currentColor;
}

#screen-app .hrd-approval-admin-label {
    color: var(--primary);
    font-size: 11.7px;
    line-height: 1.35;
    font-weight: 700;
    margin-bottom: 9px;
}

#screen-app .hrd-approval-chevron {
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

#screen-app .hrd-approval-chevron svg {
    width: 19.8px;
    height: 19.8px;
    transition: transform 0.18s ease;
}

#screen-app .hrd-approval-card:not(.is-open) .hrd-approval-chevron svg {
    transform: rotate(180deg);
}

#screen-app .hrd-approval-drawer {
    display: none;
    border-top: 1px solid var(--gray-200);
}

#screen-app .hrd-approval-card.is-open .hrd-approval-drawer {
    display: block;
}

#screen-app .hrd-approval-detail {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
    gap: 25.2px;
    padding: 25.2px 23.4px;
}

#screen-app .hrd-approval-info {
    display: grid;
    gap: 14.4px;
    padding-right: 25.2px;
    border-right: 1.5px solid var(--gray-200);
}

#screen-app .hrd-approval-info div {
    display: grid;
    grid-template-columns: 162px 1fr;
    gap: 10.8px;
    color: var(--primary);
}

#screen-app .hrd-approval-info span {
    font-size: 11.7px;
    font-weight: 700;
}

#screen-app .hrd-approval-info span::after {
    content: ':';
    float: right;
}

#screen-app .hrd-approval-info strong {
    font-size: 11.7px;
    line-height: 1.5;
    font-weight: 800;
}

#screen-app .hrd-approval-review {
    color: var(--primary);
}

#screen-app .hrd-review-title {
    font-size: 12.6px;
    font-weight: 900;
    margin-bottom: 9px;
}

#screen-app .hrd-approval-review p {
    max-width: 558px;
    margin: 0 0 18px;
    color: var(--primary);
    font-size: 11.7px;
    line-height: 1.7;
    font-weight: 700;
}

#screen-app .hrd-approval-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10.8px;
    margin-bottom: 21.6px;
}

#screen-app .hrd-approval-gallery figure {
    overflow: hidden;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    background: var(--gray-50);
}

#screen-app .hrd-approval-gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: block;
    object-fit: cover;
}

#screen-app .hrd-approval-gallery figcaption,
#screen-app .hrd-gallery-empty {
    padding: 8px 9px;
    color: var(--primary);
    font-size: 10.8px;
    font-weight: 800;
}

#screen-app .hrd-gallery-empty {
    grid-column: 1 / -1;
    border: 1.5px dashed var(--gray-200);
    border-radius: 8px;
    background: var(--gray-50);
    text-align: center;
}

#screen-app .hrd-approval-actions {
    display: flex;
    justify-content: flex-end;
    gap: 16.2px;
}

#screen-app .hrd-approval-actions form {
    display: flex;
}

#screen-app .hrd-btn-reject,
#screen-app .hrd-btn-confirm {
    min-width: 126px;
    height: 41.4px;
    border-radius: 7px;
    font-family: inherit;
    font-size: 12.6px;
    font-weight: 900;
    cursor: pointer;
}

#screen-app .hrd-btn-reject {
    border: 1.5px solid var(--gray-200);
    background: white;
    color: #ef233c;
}

#screen-app .hrd-btn-confirm {
    border: 1.5px solid #0057ff;
    background: #0057ff;
    color: white;
}

#screen-app .hrd-approval-empty {
    padding: 25.2px;
    color: var(--primary);
    font-size: 12.6px;
    font-weight: 800;
    text-align: center;
}

#screen-app .hrd-approval-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16.2px;
    margin-top: 19.8px;
    color: var(--primary);
    font-size: 11.7px;
    font-weight: 700;
}

#screen-app .hrd-history-table table {
    min-width: 1116px;
}

#screen-app .hrd-history-actions {
    justify-content: flex-end;
    gap: 9px;
    flex-wrap: nowrap;
}

#screen-app .admin-action-btn.print {
    min-width: 82.8px;
    height: 28.8px;
    border: 1.5px solid #bbf7d0;
    border-radius: 4px;
    background: #f0fdf4;
    color: #16a34a;
    gap: 8px;
}

#screen-app .admin-action-btn.print:hover {
    border-color: #4ade80;
    background: #dcfce7;
}

/* ===== HRD REKAP ===== */
#screen-app .hrd-rekap-filter {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 19.8px;
    display: grid;
    grid-template-columns: 1.25fr 0.95fr 0.9fr 1.15fr;
    gap: 21.6px;
    align-items: end;
    margin-bottom: 19.8px;
}

#screen-app .hrd-rekap-date-download-group {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10.8px;
    align-items: end;
}

#screen-app .hrd-rekap-date-download-group .admin-filter-date {
    margin: 0;
}

/* Use shared .admin-filter-search styles (position relative, absolute button) */
#screen-app .hrd-rekap-filter .admin-filter-search {
    position: relative;
}

#screen-app .hrd-rekap-filter .admin-filter-search input {
    padding-right: 43.2px;
    border: 1.5px solid var(--gray-200);
    border-radius: 8px;
    height: 41.4px;
    padding: 0 10.8px;
    background: white;
    color: var(--primary);
    font-family: inherit;
    font-size: 12.6px;
    font-weight: 700;
    width: 100%;
}

#screen-app .hrd-rekap-note {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--primary);
    font-size: 11.7px;
    font-weight: 800;
}

/* wrapper for download button placed outside the filter */
.hrd-rekap-download-wrapper {
    display: flex;
    justify-content: flex-end;
    margin: 9px 0 16.2px 0;
}

.hrd-rekap-download-wrapper .hrd-rekap-download {
    margin-right: 4px;
}

@media (max-width: 520px) {
    .hrd-rekap-download-wrapper {
        justify-content: stretch;
    }

    .hrd-rekap-download-wrapper .hrd-rekap-download {
        width: 100%;
    }
}

#screen-app .hrd-rekap-note svg {
    width: 16.2px;
    height: 16.2px;
    color: #0057ff;
}

#screen-app .hrd-rekap-table {
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--gray-300) transparent;
    border-radius: 8px;
    box-shadow: 0 9px 21.6px rgba(26, 58, 110, 0.05);
}

#screen-app .hrd-rekap-table table {
    min-width: 1062px;
}

#screen-app .hrd-rekap-table th,
#screen-app .hrd-rekap-table td {
    color: var(--primary);
    padding: 14.4px 18px;
    vertical-align: middle;
}

#screen-app .hrd-rekap-table th {
    background: white;
    font-size: 11.7px;
    font-weight: 900;
}

#screen-app .hrd-rekap-check {
    width: 16.2px;
    height: 16.2px;
    accent-color: #0057ff;
    cursor: pointer;
}

#screen-app .hrd-rekap-type,
#screen-app .hrd-rekap-approved {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52.2px;
    min-height: 21.6px;
    padding: 0 9px;
    border-radius: 5px;
    font-size: 10.8px;
    font-weight: 800;
}

#screen-app .hrd-rekap-type.service {
    background: #e8f0fe;
    color: #0057ff;
}

#screen-app .hrd-rekap-type.stnk {
    background: #fff4e5;
    color: #f97316;
}

#screen-app .hrd-rekap-type.kir {
    background: #f3e8ff;
    color: #8b5cf6;
}

#screen-app .hrd-rekap-type.sim {
    background: #e8f8f0;
    color: #059669;
}

#screen-app .hrd-rekap-approved {
    background: #dcfce7;
    color: #15803d;
}

#screen-app .hrd-rekap-footer {
    min-width: 1062px;
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    align-items: center;
    gap: 19.8px;
    padding: 16.2px 18px;
    border-top: 1px solid var(--gray-100);
    color: var(--primary);
    font-size: 11.7px;
    font-weight: 800;
}

#screen-app .hrd-rekap-select-all {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
}

#screen-app .hrd-rekap-download {
    height: 37.8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 14.4px;
    border: 0;
    border-radius: 8px;
    background: #0057ff;
    color: white;
    font-family: inherit;
    font-size: 11.7px;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
}

#screen-app .hrd-rekap-date-download-group .hrd-rekap-download {
    height: 41.4px;
    padding: 0 18px;
}

#screen-app .hrd-rekap-download:disabled {
    background: var(--gray-100);
    color: var(--gray-400);
    cursor: not-allowed;
}

#screen-app .hrd-rekap-download svg {
    width: 16.2px;
    height: 16.2px;
}

#screen-app .hrd-rekap-download-badge {
    font-size: 10.8px;
    font-weight: 800;
    opacity: 0.9;
}

#screen-app .hrd-rekap-pagination-info {
    justify-self: end;
}

@media (max-width: 1180px) {
    #screen-app .hrd-rekap-filter {
        grid-template-columns: 1fr;
    }

    #screen-app .hrd-rekap-date-download-group {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    #screen-app .hrd-rekap-filter {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1180px) {
    #screen-app .hrd-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #screen-app .hrd-approval-summary {
        grid-template-columns: minmax(0, 1fr) 270px 28.8px;
    }

    #screen-app .hrd-approval-detail {
        grid-template-columns: 1fr;
    }

    #screen-app .hrd-approval-info {
        padding-right: 0;
        border-right: 0;
    }
}

@media (max-width: 760px) {
    #screen-app .hrd-stat-grid {
        grid-template-columns: 1fr;
    }

    #screen-app .hrd-stat-card {
        min-height: 100.8px;
        padding: 18px;
    }

    #screen-app .hrd-latest-head {
        align-items: flex-start;
        flex-direction: column;
        padding: 16.2px 18px;
    }

    #screen-app .hrd-filter-group,
    #screen-app .hrd-approval-actions,
    #screen-app .hrd-approval-footer {
        align-items: stretch;
        flex-direction: column;
    }

    #screen-app .hrd-approval-filter {
        width: 100%;
        grid-template-columns: 1fr;
    }

    #screen-app .hrd-filter-select-wrap,
    #screen-app .hrd-btn-reject,
    #screen-app .hrd-btn-confirm {
        width: 100%;
    }

    #screen-app .hrd-approval-summary {
        grid-template-columns: 1fr 25.2px;
        gap: 14.4px;
    }

    #screen-app .hrd-approval-type {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    #screen-app .hrd-approval-admin {
        grid-column: 1 / -1;
    }

    #screen-app .hrd-approval-chevron {
        grid-column: 2;
        grid-row: 1;
    }

    #screen-app .hrd-approval-info div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    #screen-app .hrd-approval-info span::after {
        content: '';
        float: none;
    }

    #screen-app .hrd-approval-gallery {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1280px) {
    #screen-app .driver-history-filter {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #screen-app .driver-history-filter .driver-track-search {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    #screen-app .driver-history-filter {
        grid-template-columns: 1fr;
        padding: 16.2px;
    }
}

#screen-app .detail-row {
    display: grid;
    grid-template-columns: minmax(135px, 198px) minmax(0, 1fr);
    gap: 21.6px;
    align-items: center;
    min-height: 48.6px;
    padding: 12.6px 0;
    border-bottom: 1px solid var(--gray-100);
}

#screen-app .detail-row:first-child {
    align-items: flex-start;
    padding-top: 0;
}

#screen-app .detail-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

#screen-app .detail-label {
    color: var(--primary);
    font-size: 10.8px;
    line-height: 1.45;
    font-weight: 800;
}

#screen-app .detail-val {
    min-width: 0;
    color: #2447b7;
    font-size: 12.6px;
    line-height: 1.55;
    font-weight: 700;
    text-align: left;
    overflow-wrap: anywhere;
}

#screen-app .detail-val .badge {
    vertical-align: middle;
}

#screen-app .detail-photo,
#screen-app .detail-photo-fallback {
    width: min(100%, 324px);
    max-width: 324px;
    border-radius: 8px;
}

#screen-app .detail-photo {
    display: block;
    aspect-ratio: 4 / 3;
    border: 1.5px solid var(--gray-200);
    object-fit: cover;
}

#screen-app .detail-photo-fallback {
    min-height: 162px;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px dashed var(--gray-300);
    background: var(--gray-50);
    color: var(--primary);
    font-size: 11.7px;
    font-weight: 800;
}

@media (max-width: 760px) {
    #screen-app .table-section>.table-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 14.4px;
    }

    #screen-app .detail-modal-body {
        padding: 16.2px;
    }

    #screen-app .detail-row {
        grid-template-columns: 1fr;
        gap: 6px;
        align-items: start;
        padding: 10.8px 0;
    }

    #screen-app .detail-val {
        font-size: 11.7px;
    }
}

#screen-app .filter-reset-btn,
#screen-app .driver-track-reset {
    min-height: 39.6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16.2px;
    border: 1.5px solid var(--gray-200);
    border-radius: 8px;
    color: var(--primary);
    background: #fff;
    font-size: 11.7px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.16s ease, background 0.16s ease;
}

#screen-app .filter-reset-btn svg,
#screen-app .filter-reset-btn i,
#screen-app .driver-track-reset svg,
#screen-app .driver-track-reset i {
    width: 14.4px;
    height: 14.4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

#screen-app .filter-reset-btn:hover,
#screen-app .driver-track-reset:hover {
    border-color: var(--primary);
    background: rgba(0, 85, 255, 0.06);
}

#screen-app .spk-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin: 0;
}

#screen-app .spk-page-numbers {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

#screen-app .spk-page-link {
    min-width: 30.6px;
    height: 30.6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10.8px;
    border: 1.5px solid var(--gray-200);
    border-radius: 8px;
    background: #fff;
    color: var(--primary);
    font-size: 10.8px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
}

#screen-app .spk-page-link.active {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
    box-shadow: 0 8px 16.2px rgba(0, 85, 255, 0.18);
}

#screen-app .spk-page-link.disabled {
    border-color: transparent;
    background: var(--gray-100);
    color: var(--gray-400);
    cursor: not-allowed;
}

#screen-app .topbar-notif-menu {
    position: relative;
}

#screen-app .notification-dropdown {
    position: absolute;
    top: calc(100% + 10.8px);
    right: 0;
    z-index: 40;
    width: min(306px, calc(100vw - 25.2px));
    padding: 9px;
    border: 1px solid var(--gray-200);
    border-radius: 10.8px;
    background: #fff;
    box-shadow: 0 16.2px 36px rgba(15, 23, 42, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

#screen-app .topbar-notif-menu.is-open .notification-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#screen-app .notification-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10.8px;
    padding: 8px 8px 9px;
    color: var(--primary-dark);
    font-size: 11.7px;
}

#screen-app .notification-head span {
    color: var(--gray-500);
    font-size: 9.9px;
    font-weight: 700;
}

#screen-app .notification-item {
    display: grid;
    grid-template-columns: 8px 1fr;
    gap: 9px;
    align-items: flex-start;
    padding: 9px;
    border-radius: 8px;
    color: var(--primary-dark);
    text-decoration: none;
}

#screen-app .notification-item>div {
    min-width: 0;
}

#screen-app .notification-item:hover {
    background: rgba(0, 85, 255, 0.06);
}

#screen-app .notification-dot {
    width: 8px;
    height: 8px;
    margin-top: 5px;
    border-radius: 899.1px;
    background: var(--primary);
}

#screen-app .notification-item.warning .notification-dot {
    background: var(--warning);
}

#screen-app .notification-item strong {
    display: block;
    font-size: 11.25px;
    font-weight: 800;
}

#screen-app .notification-item p {
    margin: 3px 0 0;
    color: var(--gray-500);
    font-size: 10.35px;
    line-height: 1.45;
}

#screen-app .notification-empty {
    padding: 16.2px 9px;
    color: var(--gray-500);
    font-size: 10.8px;
    text-align: center;
}

#screen-app .detail-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

#screen-app .detail-attachments a {
    display: inline-flex;
    align-items: center;
    min-height: 30.6px;
    padding: 0 10.8px;
    border: 1.5px solid var(--gray-200);
    border-radius: 8px;
    color: var(--primary);
    background: #fff;
    font-size: 10.8px;
    font-weight: 800;
    text-decoration: none;
}

@media (max-width: 760px) {
    #screen-app .spk-pagination {
        justify-content: flex-start;
    }

    #screen-app .spk-page-link {
        height: 28.8px;
        min-width: 28.8px;
        padding: 0 9px;
        font-size: 10.35px;
    }

    #screen-app .filter-reset-btn,
    #screen-app .driver-track-reset {
        width: 100%;
    }
}

#screen-app .hrd-rekap-filter.admin-pengajuan-filter {
    display: grid;
    grid-template-columns: minmax(225px, 1.35fr) minmax(171px, 1fr) minmax(171px, 1fr) minmax(279px, 1.55fr) auto;
    align-items: end;
    gap: 16.2px 19.8px;
}

#screen-app .hrd-rekap-filter .admin-filter-field,
#screen-app .hrd-rekap-date-download-group {
    min-width: 0;
}

#screen-app .hrd-rekap-filter .admin-filter-search>div {
    position: relative;
}

#screen-app .hrd-rekap-filter .admin-filter-search input {
    width: 100%;
    padding-right: 41.4px;
}

#screen-app .hrd-rekap-filter .admin-filter-search button {
    position: absolute;
    top: 50%;
    right: 9px;
    width: 25.2px;
    height: 25.2px;
    transform: translateY(-50%);
}

#screen-app .hrd-rekap-filter .admin-filter-date>div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 9px;
}

#screen-app .hrd-rekap-filter .admin-filter-date input {
    min-width: 0;
    width: 100%;
}

#screen-app .hrd-rekap-filter .filter-reset-btn {
    width: 108px;
    height: 39.6px;
    align-self: end;
}

#screen-app .hrd-rekap-filter .hrd-rekap-note {
    grid-column: 1 / -1;
    margin-top: 0;
}

@media (max-width: 1320px) {
    #screen-app .hrd-rekap-filter.admin-pengajuan-filter {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #screen-app .hrd-rekap-filter .filter-reset-btn {
        width: 100%;
    }
}

@media (max-width: 760px) {
    #screen-app .hrd-rekap-filter.admin-pengajuan-filter {
        grid-template-columns: 1fr;
        gap: 12.6px;
    }

    #screen-app .hrd-rekap-filter .admin-filter-date>div {
        grid-template-columns: 1fr;
    }

    #screen-app .hrd-rekap-filter .admin-filter-date span {
        display: none;
    }
}

#screen-app .admin-pengajuan-filter:not(.hrd-rekap-filter):not(.hrd-approval-filter) {
    display: grid;
    grid-template-columns: minmax(234px, 1.3fr) minmax(171px, 1fr) minmax(171px, 1fr) minmax(279px, 1.45fr) auto;
    align-items: end;
    gap: 16.2px 19.8px;
}

#screen-app .admin-pengajuan-filter:not(.hrd-rekap-filter):not(.hrd-approval-filter) .admin-filter-field {
    min-width: 0;
}

#screen-app .admin-pengajuan-filter:not(.hrd-rekap-filter):not(.hrd-approval-filter) .admin-filter-search {
    position: relative;
}

#screen-app .admin-pengajuan-filter:not(.hrd-rekap-filter):not(.hrd-approval-filter) .admin-filter-search input {
    width: 100%;
    padding-right: 41.4px;
}

#screen-app .admin-pengajuan-filter:not(.hrd-rekap-filter):not(.hrd-approval-filter) .admin-filter-search button {
    position: absolute;
    top: 50%;
    right: 9px;
    width: 25.2px;
    height: 25.2px;
    transform: translateY(-50%);
}

#screen-app .admin-pengajuan-filter:not(.hrd-rekap-filter):not(.hrd-approval-filter) .admin-filter-date>div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 9px;
}

#screen-app .admin-pengajuan-filter:not(.hrd-rekap-filter):not(.hrd-approval-filter) .admin-filter-date input {
    min-width: 0;
    width: 100%;
}

#screen-app .admin-pengajuan-filter:not(.hrd-rekap-filter):not(.hrd-approval-filter) .filter-reset-btn {
    width: 108px;
    height: 39.6px;
}

#screen-app .driver-track-filter,
#screen-app .driver-history-filter {
    display: grid;
    grid-template-columns: minmax(252px, 1.35fr) minmax(153px, 0.85fr) minmax(135px, 0.75fr) minmax(135px, 0.75fr) auto;
    align-items: end;
    gap: 16.2px 19.8px;
}

#screen-app .driver-history-filter {
    grid-template-columns: minmax(252px, 1.3fr) minmax(153px, 0.85fr) minmax(153px, 0.85fr) minmax(130.5px, 0.72fr) minmax(130.5px, 0.72fr) auto;
}

#screen-app .driver-track-field {
    min-width: 0;
}

#screen-app .driver-track-search>div {
    position: relative;
}

#screen-app .driver-track-search input {
    width: 100%;
    padding-right: 41.4px;
}

#screen-app .driver-track-search button {
    position: absolute;
    top: 50%;
    right: 9px;
    width: 25.2px;
    height: 25.2px;
    transform: translateY(-50%);
}

#screen-app .driver-track-filter .driver-track-reset,
#screen-app .driver-history-filter .driver-track-reset {
    width: 108px;
    height: 39.6px;
    align-self: end;
}

#screen-app .hrd-approval-filter.admin-pengajuan-filter {
    display: grid;
    grid-template-columns: minmax(198px, 234px) minmax(198px, 234px) auto;
    align-items: end;
    gap: 16.2px 19.8px;
}

#screen-app .hrd-approval-filter .filter-reset-btn {
    width: 108px;
    height: 39.6px;
}

@media (max-width: 1320px) {
    #screen-app .admin-pengajuan-filter:not(.hrd-rekap-filter):not(.hrd-approval-filter),
    #screen-app .driver-track-filter,
    #screen-app .driver-history-filter {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #screen-app .admin-pengajuan-filter:not(.hrd-rekap-filter):not(.hrd-approval-filter) .filter-reset-btn,
    #screen-app .driver-track-filter .driver-track-reset,
    #screen-app .driver-history-filter .driver-track-reset {
        width: 100%;
    }
}

@media (max-width: 760px) {
    #screen-app .admin-pengajuan-filter:not(.hrd-rekap-filter):not(.hrd-approval-filter),
    #screen-app .driver-track-filter,
    #screen-app .driver-history-filter,
    #screen-app .hrd-approval-filter.admin-pengajuan-filter {
        grid-template-columns: 1fr;
        gap: 12.6px;
    }

    #screen-app .admin-pengajuan-filter:not(.hrd-rekap-filter):not(.hrd-approval-filter) .admin-filter-date>div {
        grid-template-columns: 1fr;
    }

    #screen-app .admin-pengajuan-filter:not(.hrd-rekap-filter):not(.hrd-approval-filter) .admin-filter-date span {
        display: none;
    }

    #screen-app .hrd-approval-filter .filter-reset-btn {
        width: 100%;
    }
}

#screen-app .action-note-modal {
    max-width: 504px;
}

#screen-app .action-note-modal .action-note-grid {
    margin-top: 16.2px;
}

#screen-app .action-note-modal .profile-field textarea {
    min-height: 118.8px;
    resize: vertical;
}

#screen-app .action-note-modal .modal-confirm {
    min-width: 106.2px;
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

#screen-app .action-note-modal .modal-confirm:hover {
    border-color: var(--primary-light);
    background: var(--primary-light);
}

.modal.action-note-modal {
    width: min(684px, calc(100vw - 28.8px));
    max-width: 684px;
    text-align: left;
    padding: 25.2px;
}

.action-note-modal .modal-title {
    color: var(--primary);
    font-size: 16.2px;
    font-weight: 800;
    margin-bottom: 6px;
}

.action-note-modal .modal-desc {
    max-width: 504px;
    margin-bottom: 0;
    color: var(--gray-500);
    font-size: 11.7px;
    font-weight: 600;
    line-height: 1.55;
}

.action-note-modal .profile-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16.2px 18px;
}

.action-note-modal .profile-modal-grid {
    margin: 19.8px 0 21.6px;
}

.action-note-modal .profile-field {
    display: grid;
    gap: 8px;
}

.action-note-modal .profile-field-full {
    grid-column: 1 / -1;
}

.action-note-modal .profile-field span {
    color: var(--primary);
    font-size: 10.8px;
    font-weight: 800;
}

.action-note-modal .profile-field textarea {
    width: 100%;
    min-height: 118.8px;
    border: 1.5px solid var(--gray-200);
    border-radius: 8px;
    background: white;
    color: var(--primary);
    font-family: inherit;
    font-size: 12.6px;
    font-weight: 700;
    line-height: 1.55;
    outline: none;
    padding: 10.8px 12.6px;
    resize: vertical;
}

.action-note-modal .profile-field textarea:focus {
    border-color: var(--primary);
}

.action-note-modal .modal-actions {
    justify-content: flex-end;
    gap: 10.8px;
}

.action-note-modal .modal-cancel,
.action-note-modal .modal-confirm {
    flex: 0 0 auto;
    min-width: 106.2px;
    border-radius: 8px;
}

.action-note-modal .modal-confirm {
    border: 1.5px solid var(--primary);
    background: var(--primary);
    color: #fff;
}

.action-note-modal .modal-confirm:hover {
    border-color: var(--primary-light);
    background: var(--primary-light);
}

@media (max-width: 560px) {
    .modal.action-note-modal {
        padding: 21.6px;
    }

    .action-note-modal .profile-form-grid {
        grid-template-columns: 1fr;
    }

    .action-note-modal .modal-actions {
        flex-direction: column;
    }

    .action-note-modal .modal-cancel,
    .action-note-modal .modal-confirm {
        width: 100%;
    }
}

/* ===== INLINE FORM VALIDATION ===== */
#screen-app .form-field-styled.has-error input,
#screen-app .form-field-styled.has-error select,
#screen-app .form-field-styled.has-error textarea,
#screen-app .profile-field.has-error input,
#screen-app .profile-field.has-error select,
#screen-app .profile-field.has-error textarea,
.login-form-wrap .form-group.has-error .form-input {
    border-color: var(--danger, #ef4444);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
}

#screen-app .form-field-styled.has-error .upload-zone {
    border-color: var(--danger, #ef4444);
    background: #fff7f7;
}

#screen-app .field-error,
.login-form-wrap .field-error {
    display: flex;
    align-items: flex-start;
    gap: 5.4px;
    margin-top: 6.3px;
    color: var(--danger, #ef4444);
    font-size: 10.8px;
    font-weight: 700;
    line-height: 1.45;
}

#screen-app .field-error::before,
.login-form-wrap .field-error::before {
    content: "!";
    width: 14.4px;
    height: 14.4px;
    margin-top: 0.9px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger, #ef4444);
    font-size: 9px;
    font-weight: 900;
}

/* ===== DASHBOARD RESPONSIVE POLISH ===== */
#screen-app .admin-stat-grid,
#screen-app .driver-stat-grid,
#screen-app .hrd-stat-grid {
    grid-template-columns: repeat(auto-fit, minmax(198px, 1fr));
}

#screen-app .admin-stat-card,
#screen-app .driver-stat-card,
#screen-app .hrd-stat-card,
#screen-app .driver-service-card {
    min-width: 0;
}

#screen-app .admin-stat-card > div:last-child,
#screen-app .driver-stat-copy,
#screen-app .hrd-stat-body {
    min-width: 0;
}

#screen-app .admin-stat-label,
#screen-app .driver-stat-label,
#screen-app .hrd-stat-label,
#screen-app .admin-stat-change,
#screen-app .driver-stat-sub,
#screen-app .hrd-stat-sub {
    overflow-wrap: anywhere;
}

#screen-app .admin-panel-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

#screen-app .admin-panel-chart,
#screen-app .admin-panel-follow {
    grid-column: span 2;
}

#screen-app .admin-panel-jenis,
#screen-app .admin-panel-status {
    grid-column: span 1;
}

#screen-app .admin-panel-latest {
    grid-column: 1 / -1;
}

#screen-app .admin-panel,
#screen-app .driver-panel,
#screen-app .hrd-latest-card {
    overflow: hidden;
}

#screen-app .admin-panel-latest {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

#screen-app .recent-table,
#screen-app .driver-latest-table,
#screen-app .hrd-latest-table {
    min-width: 810px;
}

#screen-app .admin-panel-latest,
#screen-app .driver-latest-panel,
#screen-app .hrd-latest-card {
    width: 100%;
    min-width: 0;
}

#screen-app .admin-panel-latest .recent-table,
#screen-app .driver-table-wrap,
#screen-app .hrd-latest-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

#screen-app .admin-panel-latest .recent-table::-webkit-scrollbar,
#screen-app .admin-panel-latest::-webkit-scrollbar,
#screen-app .driver-table-wrap::-webkit-scrollbar,
#screen-app .hrd-latest-table-wrap::-webkit-scrollbar {
    height: 7.2px;
}

#screen-app .admin-panel-latest .recent-table::-webkit-scrollbar-thumb,
#screen-app .admin-panel-latest::-webkit-scrollbar-thumb,
#screen-app .driver-table-wrap::-webkit-scrollbar-thumb,
#screen-app .hrd-latest-table-wrap::-webkit-scrollbar-thumb {
    background: var(--gray-200);
    border-radius: 999px;
}

#screen-app .donut-wrap {
    grid-template-columns: minmax(162px, 198px) minmax(0, 1fr);
}

#screen-app .donut-chart {
    width: min(198px, 100%);
    height: auto;
    aspect-ratio: 1 / 1;
}

#screen-app .bar-chart {
    min-height: 180px;
}

@media (max-width: 1280px) {
    #screen-app .admin-panel-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #screen-app .admin-panel-chart,
    #screen-app .admin-panel-follow,
    #screen-app .admin-panel-latest {
        grid-column: 1 / -1;
    }

    #screen-app .driver-service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1040px) {
    #screen-app .admin-stat-grid,
    #screen-app .driver-stat-grid,
    #screen-app .hrd-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #screen-app .admin-panel-head,
    #screen-app .hrd-latest-head,
    #screen-app .driver-table-head {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    #screen-app .admin-mini-select {
        width: 100%;
        max-width: 252px;
    }

    #screen-app .donut-wrap {
        grid-template-columns: minmax(153px, 180px) minmax(0, 1fr);
        gap: 16.2px;
        min-height: 0;
    }
}

@media (max-width: 760px) {
    #screen-app .admin-stat-grid,
    #screen-app .driver-stat-grid,
    #screen-app .hrd-stat-grid,
    #screen-app .admin-panel-grid,
    #screen-app .driver-service-grid {
        grid-template-columns: 1fr;
    }

    #screen-app .admin-panel-chart,
    #screen-app .admin-panel-follow,
    #screen-app .admin-panel-jenis,
    #screen-app .admin-panel-status,
    #screen-app .admin-panel-latest {
        grid-column: auto;
    }

    #screen-app .admin-stat-card,
    #screen-app .driver-stat-card,
    #screen-app .hrd-stat-card {
        padding: 16.2px;
        gap: 12.6px;
        min-height: 90px;
    }

    #screen-app .admin-stat-icon,
    #screen-app .driver-stat-icon,
    #screen-app .hrd-stat-icon {
        width: 46.8px;
        height: 46.8px;
        border-radius: 14.4px;
    }

    #screen-app .admin-stat-number,
    #screen-app .driver-stat-number,
    #screen-app .hrd-stat-number {
        font-size: 22.5px;
    }

    #screen-app .admin-panel,
    #screen-app .driver-panel,
    #screen-app .hrd-latest-card {
        padding: 15.3px;
    }

    #screen-app .chart-legend {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 9px 14.4px;
    }

    #screen-app .bar-chart {
        height: 180px;
        gap: 7.2px;
    }

    #screen-app .bar {
        width: 9.9px;
    }

    #screen-app .donut-wrap {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: left;
    }

    #screen-app .donut-chart {
        width: 171px;
    }

    #screen-app .donut-legend {
        width: 100%;
    }

    #screen-app .donut-popup {
        left: 50%;
        top: calc(100% + 9px);
        transform: translateX(-50%) scale(0.96);
    }

    #screen-app .donut-popup.show {
        transform: translateX(-50%) scale(1);
    }

    #screen-app .recent-table,
    #screen-app .driver-latest-table,
    #screen-app .hrd-latest-table {
        min-width: 720px;
    }

    #screen-app .hrd-latest-bottom {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    #screen-app .admin-stat-card,
    #screen-app .driver-stat-card,
    #screen-app .hrd-stat-card {
        grid-template-columns: 43.2px minmax(0, 1fr) 18px;
    }

    #screen-app .admin-stat-card {
        display: grid;
    }

    #screen-app .admin-stat-icon,
    #screen-app .driver-stat-icon,
    #screen-app .hrd-stat-icon {
        width: 43.2px;
        height: 43.2px;
        border-radius: 12.6px;
    }

    #screen-app .admin-panel-title,
    #screen-app .driver-panel-title,
    #screen-app .hrd-latest-title {
        font-size: 13.5px;
    }

    #screen-app .admin-mini-select {
        max-width: none;
    }

    #screen-app .driver-service-card {
        min-height: auto;
    }
}

/* Pelita minimal additions */
#screen-app .sidebar-logo-real {
    object-fit: contain;
}

#screen-app .badge-info {
    background: #e8f0fe;
    color: #2563eb;
}

#screen-app .pelita-thumb {
    width: 54px;
    height: 42px;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

#screen-app .pelita-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

#screen-app .pelita-gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

#screen-app .pelita-form {
    margin-top: 16px;
}

#screen-app .dashboard-map-card {
    min-height: 408px;
}

#screen-app .dashboard-map {
    min-height: 244px;
    margin: 14px 14px 0;
    overflow: hidden;
    border: 1px solid #dbe4ef;
    border-radius: 8px;
    background: #eef5ff;
}

#screen-app .dashboard-map-list {
    padding: 12px 14px 14px;
    display: grid;
    gap: 8px;
}

#screen-app .dashboard-map-list button {
    min-height: 48px;
    padding: 9px 11px;
    border: 1px solid #dbe4ef;
    border-radius: 8px;
    background: #fff;
    color: #1a3a6e;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

#screen-app .dashboard-map-list button:hover,
#screen-app .dashboard-map-list button:focus-visible {
    border-color: #9bb5dc;
    background: #f8fbff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
    outline: none;
}

#screen-app .dashboard-map-list span {
    min-width: 0;
    display: grid;
    gap: 2px;
}

#screen-app .dashboard-map-list strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#screen-app .dashboard-map-list small {
    overflow: hidden;
    color: #64748b;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#screen-app .dashboard-map-list b,
#screen-app .pelita-map-total {
    min-width: 34px;
    min-height: 28px;
    padding: 0 8px;
    border-radius: 8px;
    background: #eaf1ff;
    color: #1a3a6e;
    display: inline-grid;
    place-items: center;
    font-size: 11px;
    font-weight: 900;
}

#screen-app .leaflet-container {
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
}

#screen-app .leaflet-popup-content {
    color: #1a3a6e;
    font-size: 12px;
    line-height: 1.5;
}

#screen-app .leaflet-popup-content strong {
    display: block;
    margin-bottom: 3px;
    font-weight: 900;
}

#screen-app .leaflet-popup-content b {
    display: inline-block;
    margin-top: 5px;
    color: #0f8b8d;
}

@media (max-width: 900px) {
    #screen-app .dashboard-map-card {
        min-height: 0;
    }

    #screen-app .dashboard-map {
        min-height: 340px;
    }
}

#screen-app .sidebar-nav {
    padding: 10px 10px 8px;
    gap: 4px;
    flex: 0 0 auto;
    overflow: visible;
}

#screen-app .sidebar {
    overflow-y: auto;
}

#screen-app .sidebar-logo {
    padding: 16px 18px 12px;
    flex-shrink: 0;
}

#screen-app .sidebar-logo-real {
    max-height: 52px;
}

#screen-app .sidebar-logo-sub {
    font-size: 10px;
}

#screen-app .sidebar-nav .nav-item {
    gap: 8px;
    padding: 8px 11px;
    font-size: 12.4px;
    line-height: 1.35;
    white-space: nowrap;
    min-height: 38px;
}

#screen-app .sidebar-nav .nav-item svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

#screen-app .help-card {
    margin: auto 12px 16px;
    padding: 14px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
    flex-shrink: 0;
}

#screen-app .help-icon {
    width: 38px;
    height: 38px;
    margin-bottom: 10px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eaf1ff;
    color: var(--primary);
    font-size: 18px;
}

#screen-app .help-icon i {
    line-height: 1;
}

#screen-app .help-card strong {
    display: block;
    color: var(--gray-900);
    font-size: 12px;
    font-weight: 800;
}

#screen-app .help-card p {
    margin: 3px 0 10px;
    color: var(--gray-500);
    font-size: 10.5px;
    font-weight: 600;
}

#screen-app .help-card button,
#screen-app .help-card a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    height: 30px;
    border: 0;
    border-radius: 6px;
    background: var(--primary);
    color: #fff;
    font-size: 10.5px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

#screen-app .help-card a.is-disabled {
    cursor: not-allowed;
    opacity: 0.55;
    pointer-events: none;
}

body.sidebar-collapsed #screen-app .help-card {
    display: none;
}

#screen-app .admin-filter-field input:focus,
#screen-app .admin-filter-field select:focus,
#screen-app .form-field-styled input:focus,
#screen-app .form-field-styled select:focus,
#screen-app .form-field-styled textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

#screen-app .admin-filter-search>div {
    position: relative;
}

#screen-app .admin-filter-search input {
    padding-right: 46px;
}

#screen-app .admin-filter-search button {
    position: absolute;
    top: 50%;
    right: 12px;
    bottom: auto;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#screen-app .admin-filter-search button svg,
#screen-app .admin-filter-search button i {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

#screen-app .admin-pengajuan-filter:not(.hrd-rekap-filter):not(.hrd-approval-filter) .admin-filter-search input {
    padding-right: 46px;
}

#screen-app .admin-pengajuan-filter:not(.hrd-rekap-filter):not(.hrd-approval-filter) .admin-filter-search button {
    right: 12px;
    width: 24px;
    height: 24px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#screen-app .admin-table-card.table-section {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--gray-300) transparent;
}

#screen-app .admin-table-card table {
    min-width: 860px;
}

#screen-app .admin-table-card.table-section::-webkit-scrollbar {
    height: 8px;
}

#screen-app .admin-table-card.table-section::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 999px;
}

#screen-app .admin-table-card.table-section::-webkit-scrollbar-track {
    background: transparent;
}

#screen-app .template-row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 72px;
}

#screen-app .action-icon-btn {
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--gray-200);
    border-radius: 8px;
    background: #fff;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

#screen-app .action-icon-btn svg,
#screen-app .action-icon-btn i {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

#screen-app .action-icon-btn:hover {
    border-color: #c9d8f7;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

#screen-app .admin-action-menu {
    text-align: left;
}

#screen-app .admin-action-menu button {
    font-family: inherit;
}

#screen-app .spk-pagination {
    padding: 14px 16px 16px;
    border-top: 1px solid var(--gray-100);
}

#screen-app .modal-confirm.danger {
    border-color: var(--danger);
    background: var(--danger);
}

#screen-app .sidebar-logo {
    min-height: 0;
    padding: 14px 18px 12px;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
}

#screen-app .sidebar-logo-real {
    width: 38px;
    height: 38px;
    max-width: 38px;
    max-height: 38px;
    object-fit: contain;
    flex: 0 0 38px;
}

body.sidebar-collapsed #screen-app .sidebar-logo {
    align-items: center;
    justify-content: flex-start;
    padding: 14px 18px 12px;
}

body.sidebar-collapsed #screen-app .sidebar-logo-real {
    width: 38px;
    height: 38px;
    max-width: 38px;
    max-height: 38px;
    flex-basis: 38px;
}

#screen-app .sidebar-logo {
    min-height: 112px;
    padding: 14px 18px 12px;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
}

#screen-app .sidebar-logo-real {
    width: 86px;
    height: 86px;
    max-width: 86px;
    max-height: 86px;
    object-fit: contain;
    display: block;
    flex: 0 0 auto;
}

#screen-app .sidebar-logo-sub {
    display: none;
}

body.sidebar-collapsed #screen-app .sidebar-logo {
    min-height: 72px;
    padding: 14px 10px;
    justify-content: center;
}

body.sidebar-collapsed #screen-app .sidebar-logo-real {
    width: 42px;
    height: 42px;
    max-width: 42px;
    max-height: 42px;
}

#screen-app .dashboard-filterbar {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) minmax(220px, 1.2fr) auto;
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
}

#screen-app .dashboard-filter-control {
    min-height: 44px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 0 14px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

#screen-app .dashboard-filter-control span {
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
}

#screen-app .dashboard-filter-control select {
    min-width: 0;
    height: 34px;
    border: 0;
    background: transparent;
    color: var(--primary);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    outline: none;
}

#screen-app .dashboard-reset-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 18px;
    border: 0;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

#screen-app .dashboard-reset-btn svg {
    width: 16px;
    height: 16px;
}

#screen-app .dashboard-metric-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

#screen-app .dashboard-metric-card {
    min-width: 0;
    min-height: 104px;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    background: #fff;
    color: var(--primary);
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

#screen-app .metric-icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
}

#screen-app .metric-icon svg,
#screen-app .metric-icon i {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
}

#screen-app .metric-icon.teal { background: #dff7f5; color: #078b8f; }
#screen-app .metric-icon.amber { background: #fff1cf; color: #f59e0b; }
#screen-app .metric-icon.blue { background: #dcecff; color: #2563eb; }
#screen-app .metric-icon.green { background: #dcf8ee; color: #059669; }
#screen-app .metric-icon.purple { background: #eadcff; color: #7c3aed; }

#screen-app .dashboard-metric-card small,
#screen-app .dashboard-metric-card em {
    display: block;
}

#screen-app .dashboard-metric-card small {
    color: #51617a;
    font-size: 11px;
    font-weight: 800;
}

#screen-app .dashboard-metric-card strong {
    display: block;
    margin: 4px 0;
    color: var(--primary);
    font-size: 30px;
    line-height: 1;
    font-weight: 900;
}

#screen-app .dashboard-metric-card em {
    color: #64748b;
    font-size: 10.5px;
    font-style: normal;
    font-weight: 700;
}

#screen-app .dashboard-metric-card em.up { color: #059669; }
#screen-app .dashboard-metric-card em.down { color: #0f8b8d; }

#screen-app .dashboard-grid {
    display: grid;
    grid-template-columns: minmax(360px, 1.15fr) minmax(320px, 0.9fr) minmax(280px, 0.8fr);
    gap: 14px;
}

#screen-app .dashboard-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

#screen-app .dashboard-card-head {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--gray-100);
}

#screen-app .dashboard-card-head h2 {
    margin: 0;
    color: var(--primary);
    font-size: 14px;
    line-height: 1.25;
    font-weight: 900;
}

#screen-app .dashboard-card-head a,
#screen-app .dashboard-card-head button,
#screen-app .dashboard-card-head select {
    border: 0;
    background: transparent;
    color: var(--primary);
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
}

#screen-app .dashboard-line-chart {
    width: 100%;
    height: 280px;
    display: block;
    padding: 10px 12px 14px;
}

#screen-app .chart-grid-lines path {
    stroke: #e8edf4;
    stroke-width: 1;
}

#screen-app .line-fill {
    fill: rgba(7, 139, 143, 0.14);
}

#screen-app .line-main {
    fill: none;
    stroke: #078b8f;
    stroke-width: 5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#screen-app .line-points circle {
    fill: #078b8f;
    stroke: #fff;
    stroke-width: 3;
}

#screen-app .line-values text,
#screen-app .line-labels text {
    fill: #486178;
    font-size: 14px;
    font-weight: 800;
    text-anchor: middle;
}

#screen-app .line-labels text {
    fill: #64748b;
    font-size: 12px;
}

#screen-app .dashboard-status-layout {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 18px 16px 8px;
}

#screen-app .status-donut {
    position: relative;
    width: 150px;
    height: 150px;
    display: grid;
    place-items: center;
}

#screen-app .status-donut svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

#screen-app .status-donut .track,
#screen-app .status-donut .seg {
    fill: none;
    stroke-width: 20;
}

#screen-app .status-donut .track { stroke: #edf2f7; }
#screen-app .status-donut .seg.done { stroke: #059669; }
#screen-app .status-donut .seg.process { stroke: #2563eb; }
#screen-app .status-donut .seg.waiting { stroke: #f59e0b; }
#screen-app .status-donut .hole { fill: #fff; }

#screen-app .status-donut strong,
#screen-app .status-donut span {
    position: relative;
    z-index: 1;
}

#screen-app .status-donut strong {
    margin-top: 8px;
    color: var(--primary);
    font-size: 20px;
    font-weight: 900;
}

#screen-app .status-donut span {
    margin-top: 30px;
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
}

#screen-app .status-list p {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) auto auto;
    gap: 9px;
    align-items: center;
    margin: 0 0 12px;
    color: #51617a;
    font-size: 11px;
    font-weight: 800;
}

#screen-app .status-list i {
    width: 9px;
    height: 9px;
    border-radius: 99px;
}

#screen-app .status-list b,
#screen-app .status-list span {
    color: var(--primary);
}

#screen-app .status-list i.done { background: #059669; }
#screen-app .status-list i.process { background: #2563eb; }
#screen-app .status-list i.waiting { background: #f59e0b; }
#screen-app .status-list i.reject { background: #ef4444; }

#screen-app .dashboard-card-note {
    display: block;
    padding: 0 16px 15px;
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
    text-align: right;
}

#screen-app .dashboard-table-card table {
    width: 100%;
    border-collapse: collapse;
}

#screen-app .dashboard-table-card th,
#screen-app .dashboard-table-card td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--gray-100);
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    text-align: left;
    white-space: nowrap;
}

#screen-app .dashboard-table-card td {
    color: #1f2f46;
    font-weight: 700;
}

#screen-app .village-bars {
    height: 280px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    align-items: end;
    padding: 24px 22px 18px;
}

#screen-app .village-bars div {
    min-width: 0;
    height: 100%;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 8px;
    justify-items: center;
    align-items: end;
}

#screen-app .village-bars b {
    color: var(--primary);
    font-size: 13px;
    font-weight: 900;
}

#screen-app .village-bars span {
    width: 44px;
    height: var(--h);
    min-height: 46px;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(180deg, #0f9ea5, #02777d);
}

#screen-app .village-bars em {
    color: #51617a;
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
    text-align: center;
}

#screen-app .activity-list {
    padding: 14px;
}

#screen-app .activity-list div {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
    padding: 0 0 15px;
}

#screen-app .activity-list i {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
}

#screen-app .activity-list i.done { background: #22c55e; }
#screen-app .activity-list i.process { background: #2563eb; }
#screen-app .activity-list i.waiting { background: #f59e0b; }
#screen-app .activity-list i.report { background: #7c3aed; }

#screen-app .activity-list p {
    margin: 0;
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.35;
}

#screen-app .activity-list p span,
#screen-app .activity-list small {
    display: block;
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
}

#screen-app .dashboard-action-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

#screen-app .dashboard-action-card {
    min-height: 72px;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px 18px;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

#screen-app .dashboard-action-card.teal { background: #078b8f; }
#screen-app .dashboard-action-card.navy { background: var(--primary); }

#screen-app .dashboard-action-card svg,
#screen-app .dashboard-action-card .action-card-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

#screen-app .dashboard-action-card b,
#screen-app .dashboard-action-card small {
    display: block;
}

#screen-app .dashboard-action-card b {
    font-size: 14px;
    font-weight: 900;
}

#screen-app .dashboard-action-card small {
    color: rgba(255, 255, 255, 0.82);
    font-size: 11px;
    font-weight: 700;
}

#screen-app .dashboard-action-card .action-card-arrow {
    font-size: 28px;
    font-style: normal;
    line-height: 1;
}

@media (max-width: 1280px) {
    #screen-app .dashboard-metric-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    #screen-app .dashboard-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    #screen-app .dashboard-status-card,
    #screen-app .dashboard-activity-card {
        grid-column: span 1;
    }

    #screen-app .dashboard-action-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    #screen-app .dashboard-filterbar,
    #screen-app .dashboard-metric-grid,
    #screen-app .dashboard-grid,
    #screen-app .dashboard-action-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    #screen-app .dashboard-status-layout {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    #screen-app .village-bars {
        gap: 10px;
        padding-inline: 14px;
    }

    #screen-app .village-bars span {
        width: 34px;
    }
}

#screen-app .admin-pengajuan-filter.dashboard-filterbar,
#screen-app .admin-pengajuan-filter.dashboard-filterbar:not(.hrd-rekap-filter):not(.hrd-approval-filter) {
    grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) minmax(220px, 1.2fr) auto;
    align-items: end;
    gap: 16px 20px;
    margin-bottom: 16px;
}

#screen-app .admin-pengajuan-filter.dashboard-filterbar .filter-reset-btn,
#screen-app .admin-pengajuan-filter.dashboard-filterbar:not(.hrd-rekap-filter):not(.hrd-approval-filter) .filter-reset-btn {
    width: 108px;
    height: 40px;
}

@media (max-width: 900px) {
    #screen-app .admin-pengajuan-filter.dashboard-filterbar,
    #screen-app .admin-pengajuan-filter.dashboard-filterbar:not(.hrd-rekap-filter):not(.hrd-approval-filter) {
        grid-template-columns: 1fr;
    }

    #screen-app .admin-pengajuan-filter.dashboard-filterbar .filter-reset-btn,
    #screen-app .admin-pengajuan-filter.dashboard-filterbar:not(.hrd-rekap-filter):not(.hrd-approval-filter) .filter-reset-btn {
        width: 100%;
    }
}

#screen-app .dashboard-metric-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

#screen-app .dashboard-metric-card:hover,
#screen-app .dashboard-metric-card:focus-visible {
    border-color: #d5e1f5;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.11);
    transform: translateY(-3px);
    outline: none;
}

#screen-app .dashboard-metric-card:hover .metric-icon,
#screen-app .dashboard-metric-card:focus-visible .metric-icon {
    transform: scale(1.06);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.75), 0 10px 18px rgba(15, 23, 42, 0.10);
}

#screen-app .metric-icon {
    flex: 0 0 52px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

#screen-app .metric-icon svg,
#screen-app .dashboard-action-card svg {
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

#screen-app .metric-icon svg,
#screen-app .metric-icon i {
    width: 25px;
    height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

#screen-app .dashboard-trend-card {
    position: relative;
    overflow: visible;
}

#screen-app .dashboard-line-chart {
    overflow: visible;
}

#screen-app .line-main,
#screen-app .line-fill,
#screen-app .line-points circle,
#screen-app .village-bars span,
#screen-app .status-list p {
    transition: 0.18s ease;
}

#screen-app .line-point {
    cursor: pointer;
    outline: none;
}

#screen-app .line-point:hover,
#screen-app .line-point:focus,
#screen-app .line-point.is-active {
    r: 9px;
    filter: drop-shadow(0 5px 8px rgba(7, 139, 143, 0.32));
}

#screen-app .dashboard-chart-tooltip {
    position: absolute;
    z-index: 20;
    min-width: 92px;
    padding: 8px 10px;
    border: 1px solid #cce1e2;
    border-radius: 8px;
    background: #fff;
    color: var(--primary);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.16);
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -100%) translateY(-8px);
    transition: opacity 0.14s ease, transform 0.14s ease;
}

#screen-app .dashboard-chart-tooltip.is-visible {
    opacity: 1;
    transform: translate(-50%, -100%) translateY(-14px);
}

#screen-app .dashboard-chart-tooltip strong,
#screen-app .dashboard-chart-tooltip span {
    display: block;
    text-align: center;
}

#screen-app .dashboard-chart-tooltip strong {
    font-size: 16px;
    font-weight: 900;
}

#screen-app .dashboard-chart-tooltip span {
    margin-top: 2px;
    color: #64748b;
    font-size: 10.5px;
    font-weight: 800;
}

#screen-app .village-bars div:hover span {
    background: linear-gradient(180deg, #10b7bd, #056d73);
    box-shadow: 0 12px 18px rgba(7, 139, 143, 0.20);
    transform: translateY(-3px);
}

#screen-app .village-bars div:hover b,
#screen-app .village-bars div:hover em {
    color: #078b8f;
}

#screen-app .status-list p:hover {
    padding-left: 8px;
    color: var(--primary);
}

#screen-app .dashboard-card-head button:hover,
#screen-app .dashboard-card-head a:hover {
    color: #078b8f;
}

#screen-app .dashboard-status-layout {
    grid-template-columns: 158px minmax(0, 1fr);
    gap: 20px;
    padding: 18px 18px 12px;
}

#screen-app .status-donut {
    width: 148px;
    height: 148px;
    justify-self: center;
}

#screen-app .status-donut .track,
#screen-app .status-donut .seg {
    stroke-width: 18;
    stroke-linecap: butt;
}

#screen-app .status-donut .track {
    stroke: #eef3f7;
}

#screen-app .status-donut .seg {
    cursor: pointer;
    transition: stroke-width 0.18s ease, opacity 0.18s ease, filter 0.18s ease;
    outline: none;
}

#screen-app .status-donut .seg.done { stroke: #059669; }
#screen-app .status-donut .seg.process { stroke: #2563eb; }
#screen-app .status-donut .seg.waiting { stroke: #f59e0b; }
#screen-app .status-donut .seg.reject { stroke: #ef4444; }

#screen-app .status-donut .seg:hover,
#screen-app .status-donut .seg:focus,
#screen-app .status-donut .seg.is-active {
    stroke-width: 21;
    filter: drop-shadow(0 5px 8px rgba(15, 23, 42, 0.22));
}

#screen-app .status-donut.has-active .seg:not(.is-active) {
    opacity: 0.38;
}

#screen-app .status-donut strong {
    display: none;
}

#screen-app .status-donut span {
    display: none;
}

#screen-app .status-list p {
    min-height: 32px;
    padding: 6px 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.16s ease, transform 0.16s ease, color 0.16s ease;
}

#screen-app .status-list p:hover,
#screen-app .status-list p.is-active {
    background: #f7fbff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
    transform: none;
}

#screen-app .status-list p.is-active {
    background: #f2f7ff;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

#screen-app .status-tooltip {
    position: absolute;
    z-index: 25;
    min-width: 118px;
    padding: 9px 10px;
    border: 1px solid #d7e5f2;
    border-radius: 8px;
    background: #fff;
    color: var(--primary);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.16);
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -100%) translateY(-10px);
    transition: opacity 0.14s ease, transform 0.14s ease;
}

#screen-app .status-tooltip.is-visible {
    opacity: 1;
    transform: translate(-50%, -100%) translateY(-16px);
}

#screen-app .status-tooltip strong,
#screen-app .status-tooltip span {
    display: block;
    text-align: center;
}

#screen-app .status-tooltip strong {
    font-size: 16px;
    font-weight: 900;
}

#screen-app .status-tooltip span {
    margin-top: 2px;
    color: #64748b;
    font-size: 10.5px;
    font-weight: 800;
}

#screen-app .dashboard-card-head {
    padding: 13px 16px;
}

#screen-app .dashboard-card-head:has(h2:only-child) {
    justify-content: flex-start;
}

#screen-app .dashboard-chart-body {
    padding: 12px 16px 16px;
}

#screen-app .dashboard-line-chart {
    height: 248px;
    padding: 0;
    border-radius: 8px;
    background: linear-gradient(180deg, #fbfdff 0%, #ffffff 100%);
}

#screen-app .chart-grid-lines path {
    stroke: #edf2f7;
    stroke-dasharray: 4 5;
}

#screen-app .line-main {
    stroke-width: 4;
}

#screen-app .line-fill {
    fill: rgba(7, 139, 143, 0.10);
}

#screen-app .line-values text {
    font-size: 12px;
}

#screen-app .line-labels text {
    font-size: 11px;
}

#screen-app .dashboard-status-card {
    overflow: visible;
}

#screen-app .dashboard-status-layout {
    min-height: 220px;
    grid-template-columns: 146px minmax(0, 1fr);
    align-items: center;
    padding: 20px 18px 14px;
}

#screen-app .status-donut {
    width: 132px;
    height: 132px;
}

#screen-app .status-donut svg {
    overflow: visible;
}

#screen-app .status-donut .track,
#screen-app .status-donut .seg {
    stroke-width: 16;
}

#screen-app .status-donut .seg:hover,
#screen-app .status-donut .seg:focus,
#screen-app .status-donut .seg.is-active {
    stroke-width: 19;
}

#screen-app .status-donut .hole {
    fill: #fff;
    stroke: #f1f5f9;
    stroke-width: 1;
}

#screen-app .status-list {
    display: grid;
    gap: 6px;
}

#screen-app .status-list p {
    margin: 0;
    grid-template-columns: 10px minmax(72px, 1fr) minmax(36px, auto) minmax(40px, auto);
    column-gap: 10px;
}

#screen-app .dashboard-card-note {
    padding: 0 18px 16px;
}

#screen-app .dashboard-village-card {
    overflow: visible;
}

#screen-app .village-bars {
    height: 252px;
    padding: 24px 18px 16px;
}

#screen-app .village-bars span {
    width: min(46px, 70%);
}

#screen-app .dashboard-card-head button {
    display: none;
}

#screen-app .dashboard-status-card {
    display: flex;
    flex-direction: column;
}

#screen-app .dashboard-status-card .dashboard-card-head {
    flex: 0 0 auto;
}

#screen-app .dashboard-status-card .dashboard-status-layout {
    flex: 1 1 auto;
    min-height: 260px;
    grid-template-columns: 196px minmax(0, 1fr);
    align-items: center;
    padding: 18px 28px 10px;
}

#screen-app .dashboard-status-card .status-donut {
    width: 176px;
    height: 176px;
    justify-self: start;
    align-self: center;
}

#screen-app .dashboard-status-card .status-donut .track,
#screen-app .dashboard-status-card .status-donut .seg {
    stroke-width: 18;
}

#screen-app .dashboard-status-card .status-donut .seg:hover,
#screen-app .dashboard-status-card .status-donut .seg:focus,
#screen-app .dashboard-status-card .status-donut .seg.is-active {
    stroke-width: 21;
}

#screen-app .dashboard-status-card .status-list {
    align-self: center;
    width: min(100%, 210px);
    min-width: 0;
    gap: 10px;
}

#screen-app .dashboard-status-card .status-list p {
    grid-template-columns: 10px minmax(74px, 1fr) minmax(34px, auto) minmax(42px, auto);
    min-height: 34px;
    max-width: 100%;
    box-sizing: border-box;
}

#screen-app .dashboard-status-card .status-list p:hover,
#screen-app .dashboard-status-card .status-list p.is-active {
    transform: none;
}

#screen-app .dashboard-status-card .dashboard-card-note {
    flex: 0 0 auto;
    padding: 0 28px 18px;
}

#screen-app .dashboard-status-card .dashboard-status-layout {
    grid-template-columns: 1fr;
    justify-items: center;
    align-content: start;
    min-height: auto;
    gap: 16px;
    padding: 22px 22px 10px;
}

#screen-app .dashboard-status-card .status-donut {
    width: min(176px, 72%);
    height: auto;
    aspect-ratio: 1 / 1;
    justify-self: center;
}

#screen-app .dashboard-status-card .status-list {
    width: 100%;
    max-width: 260px;
    align-self: stretch;
    justify-self: center;
    gap: 8px;
}

#screen-app .dashboard-status-card .status-list p {
    width: 100%;
    grid-template-columns: 10px minmax(0, 1fr) minmax(34px, auto) minmax(44px, auto);
    column-gap: 9px;
    padding: 7px 8px;
}

#screen-app .dashboard-status-card .dashboard-card-note {
    padding: 2px 22px 18px;
    text-align: center;
}

#screen-app .template-page-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    flex-wrap: wrap;
    margin: 18px 0 26px;
}

#screen-app .admin-pengajuan-filter+.template-page-actions {
    margin-top: 24px;
    margin-bottom: 28px;
}

#screen-app .template-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 18px;
    align-items: start;
}

#screen-app .template-detail-card {
    min-width: 0;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

#screen-app .template-detail-card .admin-panel-head {
    min-height: 34px;
    margin-bottom: 10px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--gray-100);
}

#screen-app .template-detail-card .detail-modal-body {
    padding: 0;
}

#screen-app .template-detail-card .detail-section-title {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    margin: 18px 0 4px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f8fafc;
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
}

#screen-app .template-detail-card .detail-section-title:first-child {
    margin-top: 0;
}

#screen-app .template-detail-card .detail-section-title i {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--success);
}

#screen-app .template-detail-card .detail-row {
    grid-template-columns: minmax(120px, 170px) minmax(0, 1fr);
    gap: 18px;
    min-height: 44px;
    padding: 12px 0;
}

#screen-app .template-detail-card .detail-row:first-child {
    padding-top: 2px;
}

#screen-app .template-detail-card .detail-row-block {
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: start;
}

#screen-app .template-detail-card .detail-label {
    color: var(--gray-500);
}

#screen-app .template-detail-card .detail-val {
    color: var(--gray-900);
    font-weight: 700;
}

#screen-app .template-detail-card .pelita-gallery {
    max-width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

#screen-app .template-detail-card .pelita-gallery img {
    border: 1px solid var(--gray-200);
}

#screen-app .pelita-history-panel {
    margin-top: 18px;
}

#screen-app .pelita-history-panel .recent-table {
    margin-top: 2px;
}

#screen-app .pelita-form {
    margin-top: 18px;
}

#screen-app .pelita-form .form-body {
    gap: 18px;
}

#screen-app .pelita-verification-form {
    margin-top: 0;
    margin-bottom: 18px;
    overflow: hidden;
}

#screen-app .pelita-verification-form .form-page-header {
    min-height: 52px;
    padding: 16px 20px;
}

#screen-app .pelita-verification-form .form-body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding: 20px;
}

#screen-app .pelita-verification-form .form-col {
    gap: 15px;
}

#screen-app .pelita-verification-form .form-field-styled label {
    margin-bottom: 7px;
}

#screen-app .pelita-verification-form .form-field-styled input,
#screen-app .pelita-verification-form .form-field-styled select,
#screen-app .pelita-verification-form .form-field-styled textarea {
    min-height: 44px;
}

#screen-app .pelita-verification-form .form-field-styled textarea {
    min-height: 104px;
}

#screen-app .pelita-form-inline {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

#screen-app .pelita-upload-zone {
    min-height: 138px;
    display: grid;
    place-items: center;
    align-content: center;
    border-radius: 8px;
    background: #f8fbff;
    padding: 24px 18px;
}

#screen-app .pelita-upload-zone i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-bottom: 10px;
    border-radius: 10px;
    background: #eaf1ff;
    color: var(--primary);
    font-size: 20px;
}

#screen-app .pelita-verification-form .form-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--gray-100);
}

#screen-app .pelita-verification-form .upload-files-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 980px) {
    #screen-app .template-detail-grid,
    #screen-app .pelita-verification-form .form-body {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    #screen-app .template-page-actions,
    #screen-app .admin-pengajuan-filter+.template-page-actions {
        justify-content: stretch;
        margin: 16px 0 22px;
    }

    #screen-app .template-page-actions>* {
        flex: 1 1 auto;
    }

    #screen-app .template-detail-card {
        padding: 16px;
    }

    #screen-app .pelita-verification-form .form-body,
    #screen-app .pelita-verification-form .form-page-header,
    #screen-app .pelita-verification-form .form-footer {
        padding-inline: 16px;
    }

    #screen-app .pelita-form-inline {
        grid-template-columns: 1fr;
    }

    #screen-app .pelita-verification-form .upload-files-list {
        grid-template-columns: 1fr;
    }

    #screen-app .template-detail-card .detail-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }
}

/* Readability tuning */
#screen-app .sidebar-nav .nav-item {
    font-size: 13.2px;
}

#screen-app .sidebar-nav .nav-item svg {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

#screen-app .sidebar-nav .nav-icon {
    width: 18px;
    min-width: 18px;
    height: 18px;
    flex: 0 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    text-align: center;
}

body.sidebar-collapsed #screen-app .sidebar-nav .nav-icon {
    width: 18px;
    min-width: 18px;
    height: 18px;
    flex-basis: 18px;
    font-size: 17px;
}

#screen-app .page-content-title {
    font-size: 24px;
    line-height: 1.2;
}

#screen-app .admin-filter-field label,
#screen-app .dashboard-filterbar .admin-filter-field label {
    font-size: 12.5px;
}

#screen-app .admin-filter-field input,
#screen-app .admin-filter-field select,
#screen-app .dashboard-filterbar .admin-filter-field select {
    font-size: 13.5px;
}

#screen-app .filter-reset-btn {
    font-size: 12.6px;
}

#screen-app .dashboard-metric-card small {
    font-size: 12.4px;
}

#screen-app .dashboard-metric-card strong {
    font-size: 31px;
}

#screen-app .dashboard-metric-card em {
    font-size: 11.8px;
    line-height: 1.35;
}

#screen-app .dashboard-card-head h2 {
    font-size: 15px;
}

#screen-app .dashboard-card-head a,
#screen-app .dashboard-card-head select {
    font-size: 12px;
}

#screen-app .dashboard-table-card th,
#screen-app .dashboard-table-card td {
    font-size: 12px;
}

#screen-app .status-list p,
#screen-app .dashboard-status-card .status-list p {
    font-size: 12px;
}

#screen-app .dashboard-card-note,
#screen-app .dashboard-map-legend,
#screen-app .activity-list p span,
#screen-app .activity-list small {
    font-size: 11px;
}

#screen-app .activity-list p {
    font-size: 12px;
}

#screen-app .village-bars em {
    font-size: 11px;
}

#screen-app .dashboard-action-card b {
    font-size: 14.5px;
}

#screen-app .dashboard-action-card small {
    font-size: 12px;
}

@media (max-width: 900px) {
    #screen-app .sidebar-nav .nav-item {
        font-size: 13.5px;
    }

    #screen-app .page-content-title {
        font-size: 22px;
    }

    #screen-app .dashboard-metric-card strong {
        font-size: 29px;
    }
}

@media (max-width: 560px) {
    #screen-app .page-content-title {
        font-size: 20px;
    }

    #screen-app .dashboard-card-head h2 {
        font-size: 14px;
    }

    #screen-app .dashboard-table-card th,
    #screen-app .dashboard-table-card td {
        font-size: 11.5px;
    }
}

#screen-app .topbar-notif {
    width: 38px;
    height: 38px;
    overflow: visible;
}

#screen-app .topbar-notif svg,
#screen-app .topbar-notif i {
    width: 19px;
    height: 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}

#screen-app .notif-badge {
    top: -7px;
    right: -7px;
    min-width: 20px;
    width: auto;
    height: 20px;
    padding: 0 5px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #ef233c;
    color: #fff;
    box-shadow: 0 6px 12px rgba(239, 35, 60, 0.28);
    font-size: 11px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0;
}
