@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-dark: #0b0f19;
    --bg-darker: #060913;
    --bg-card: rgba(17, 25, 40, 0.75);
    --bg-sidebar: rgba(10, 15, 30, 0.9);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-glow: rgba(37, 99, 235, 0.25);
    
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    --color-primary: #2563eb;
    --color-primary-glow: rgba(37, 99, 235, 0.4);
    --color-secondary: #0d9488;
    --color-success: #10b981;
    --color-success-glow: rgba(16, 185, 129, 0.2);
    --color-warning: #f59e0b;
    --color-warning-glow: rgba(245, 158, 11, 0.2);
    --color-danger: #ef4444;
    --color-danger-glow: rgba(239, 68, 68, 0.2);
    --color-info: #06b6d4;
    --color-info-glow: rgba(6, 182, 212, 0.2);
    
    --font-outfit: 'Outfit', 'Inter', sans-serif;
    --font-inter: 'Inter', sans-serif;
    
    --glass-blur: blur(12px);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    width: 100%;
    min-height: 100%;
    overflow-x: clip;
}

/* Light Mode Variables Override */
body.light-mode {
    --bg-dark: #f1f5f9;
    --bg-darker: #e2e8f0;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-sidebar: rgba(248, 250, 252, 0.95);
    --border-color: rgba(15, 23, 42, 0.08);
    --border-color-glow: rgba(37, 99, 235, 0.15);
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --color-primary-glow: rgba(37, 99, 235, 0.15);
}

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

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(13, 148, 136, 0.1) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-inter);
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

body.modal-open {
    overflow: hidden;
}

/* Light Mode Background adjustments */
body.light-mode {
    background-image: 
        radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.06) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(13, 148, 136, 0.04) 0px, transparent 50%);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-outfit);
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* Login Page Layout */
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    width: 100%;
    max-width: 450px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 40px rgba(37, 99, 235, 0.1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease;
}

/* Viewport-bound modal foundation */
.app-modal {
    inset: 0 !important;
    width: 100dvw !important;
    max-width: 100dvw;
    height: 100dvh !important;
    max-height: 100dvh;
    padding: clamp(12px, 2vw, 24px) !important;
    align-items: center !important;
    overflow: hidden !important;
    overscroll-behavior: contain;
}

.app-modal-dialog {
    width: min(100%, 500px) !important;
    max-height: calc(100dvh - clamp(24px, 4vw, 48px));
    margin: 0 auto !important;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.app-modal-dialog-lg {
    width: min(100%, 800px) !important;
}

body.light-mode .login-card {
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1), 0 0 20px rgba(37, 99, 235, 0.05);
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
}

.login-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    font-family: var(--font-outfit);
    background: linear-gradient(45deg, var(--text-primary), var(--color-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-mode .login-logo {
    background: linear-gradient(45deg, #0f172a, var(--color-primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-logo i {
    margin-right: 12px;
    color: var(--color-primary);
    -webkit-text-fill-color: initial;
}

.login-title {
    font-size: 1.5rem;
    margin-bottom: 8px;
    text-align: center;
}

.login-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 25px;
}

/* App Main Layout */
.app-wrapper {
    display: flex;
    min-height: 100vh;
    min-width: 0;
    width: 100%;
}

/* Sidebar Styling */
.app-sidebar {
    width: 260px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    backdrop-filter: var(--glass-blur);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
    transition: var(--transition-normal);
}

.sidebar-brand {
    padding: 24px;
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-outfit);
    border-bottom: 1px solid var(--border-color);
}

.sidebar-brand > span,
.mobile-logo > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-brand i {
    color: var(--color-primary);
    margin-right: 10px;
    font-size: 1.8rem;
}

.brand-logo-image {
    width: 34px;
    height: 34px;
    margin-right: 10px;
    flex: 0 0 auto;
    border-radius: 8px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.08);
}

.mobile-logo .brand-logo-image {
    width: 28px;
    height: 28px;
    margin-right: 8px;
}

.login-brand-logo {
    width: 54px;
    height: 54px;
    margin-right: 12px;
    border-radius: 12px;
    object-fit: contain;
    -webkit-text-fill-color: initial;
}

.sidebar-user {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-family: var(--font-outfit);
    margin-right: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.user-info .user-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.user-info .user-role {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.sidebar-menu {
    list-style: none;
    padding: 20px 12px;
    flex-grow: 1;
    min-height: 0;
    overflow-y: auto;
}

.sidebar-menu li {
    margin-bottom: 8px;
}

.sidebar-menu-divider {
    margin: 18px 12px 8px !important;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: var(--font-outfit);
    transition: var(--transition-fast);
}

.sidebar-link i {
    margin-right: 14px;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.sidebar-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(4px);
}

body.light-mode .sidebar-link:hover {
    background: rgba(15, 23, 42, 0.04);
}

.sidebar-link.active {
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--color-primary), rgba(37, 99, 235, 0.4));
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    border-left: 3px solid #fff;
}

body.light-mode .sidebar-link.active {
    color: white;
}

.sidebar-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
}

.btn-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 10px;
    color: #fca5a5;
    text-decoration: none;
    font-family: var(--font-outfit);
    font-weight: 500;
    transition: var(--transition-fast);
}

body.light-mode .btn-logout {
    background: rgba(239, 68, 68, 0.08);
    color: #b91c1c;
}

.btn-logout:hover {
    background: var(--color-danger);
    color: white;
    box-shadow: 0 4px 15px var(--color-danger-glow);
}

.btn-logout i {
    margin-right: 8px;
}

/* Theme Switcher Toggle styling */
.theme-switch-container {
    padding: 10px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 22px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255,255,255,0.1);
    transition: .4s;
    border: 1px solid var(--border-color);
}

body.light-mode .slider {
    background-color: rgba(15,23,42,0.08);
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
}

body.light-mode .slider:before {
    background-color: var(--color-primary);
}

input:checked + .slider {
    background-color: var(--color-primary);
}

input:checked + .slider:before {
    transform: translateX(22px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Main Content Area */
.app-content {
    margin-left: 260px;
    flex-grow: 1;
    min-width: 0;
    width: calc(100% - 260px);
    padding: 30px;
    transition: var(--transition-normal);
}

/* Header/Navbar */
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.content-title h2 {
    font-size: 1.8rem;
    background: linear-gradient(to right, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.content-title p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Forms styling */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: rgba(10, 15, 30, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: var(--font-inter);
    transition: var(--transition-fast);
}

body.light-mode .form-control {
    background: #ffffff;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 10px var(--color-primary-glow);
    background: rgba(10, 15, 30, 0.7);
}

body.light-mode .form-control:focus {
    background: #ffffff;
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-hint {
    display: block;
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 0.75rem;
    line-height: 1.4;
}

.form-grid {
    display: grid;
    gap: 16px;
}

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

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 40px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 10px;
    font-family: var(--font-outfit);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

body.light-mode .btn-secondary {
    background: rgba(15,23,42,0.05);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

body.light-mode .btn-secondary:hover {
    background: rgba(15,23,42,0.1);
}

.btn-success {
    background: var(--color-success);
    color: white;
    box-shadow: 0 4px 15px var(--color-success-glow);
}

.btn-success:hover {
    box-shadow: 0 6px 20px var(--color-success-glow);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

body.light-mode .btn-danger {
    background: rgba(239, 68, 68, 0.08);
    color: #b91c1c;
}

.btn-danger:hover {
    background: var(--color-danger);
    color: white;
    box-shadow: 0 4px 15px var(--color-danger-glow);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
    border-radius: 6px;
}

.btn-icon {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0 !important;
    flex: 0 0 40px;
}

/* Cards (Glassmorphism) */
.card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
    min-width: 0;
}

body.light-mode .card {
    box-shadow: 0 5px 15px rgba(15, 23, 42, 0.03);
}

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

.card-title {
    font-size: 1.25rem;
    color: var(--text-primary);
}

/* Stats Widget Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    min-width: 0;
}

.stat-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition-fast);
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-color-glow);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.1);
}

body.light-mode .stat-card:hover {
    box-shadow: 0 10px 15px rgba(99, 102, 241, 0.05);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    margin-right: 16px;
}

.stat-icon.primary { background: rgba(99, 102, 241, 0.15); color: var(--color-primary); }
.stat-icon.secondary { background: rgba(168, 85, 247, 0.15); color: var(--color-secondary); }
.stat-icon.success { background: rgba(16, 185, 129, 0.15); color: var(--color-success); }
.stat-icon.warning { background: rgba(245, 158, 11, 0.15); color: var(--color-warning); }

.stat-details h3 {
    font-size: 1.75rem;
    font-family: var(--font-outfit);
    margin-bottom: 2px;
}

.stat-details p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Dashboard Content Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
    min-width: 0;
}

.dashboard-grid > * {
    min-width: 0;
}

.chart-canvas-wrap {
    height: clamp(240px, 42dvh, 320px) !important;
    min-height: 220px;
}

@media (max-width: 992px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Tables styling */
.table-responsive {
    overflow-x: auto;
    max-width: 100%;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
}

.table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.table th {
    padding: 14px 16px;
    border-bottom: 2px solid var(--border-color);
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-primary);
}

.table tbody tr {
    transition: var(--transition-fast);
}

.table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.cell-stack {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}

.cell-inline,
.table-actions {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.table-actions {
    justify-content: flex-end;
    flex-wrap: nowrap;
}

.table-actions form {
    display: inline-flex;
    flex: 0 0 auto;
    margin: 0;
}

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

/* Settings */
.settings-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.settings-section {
    margin-bottom: 0;
}

.logo-settings-row {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 18px;
    margin-bottom: 22px;
    align-items: center;
}

.logo-preview {
    display: grid;
    width: 110px;
    height: 110px;
    place-items: center;
    overflow: hidden;
    border: 1px dashed var(--border-color);
    border-radius: 18px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--color-primary);
    font-size: 2.3rem;
}

.logo-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.setting-toggle-row {
    display: flex;
    margin-bottom: 20px;
    padding: 14px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
}

.setting-toggle-row strong,
.setting-toggle-row small {
    display: block;
}

.setting-toggle-row small {
    margin-top: 4px;
    color: var(--text-secondary);
}

.settings-save-bar {
    position: sticky;
    bottom: 14px;
    z-index: 40;
    display: flex;
    margin-top: 24px;
    padding: 14px 18px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--bg-sidebar);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
    color: var(--text-secondary);
    backdrop-filter: var(--glass-blur);
}

/* Reports */
.report-print-brand,
.report-print-footer {
    display: none;
}

.report-filter-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    gap: 14px;
    align-items: end;
}

.report-filter-grid .form-group {
    min-width: 0;
    margin: 0;
}

.report-filter-actions {
    display: flex;
    grid-column: 1 / -1;
    gap: 8px;
    justify-content: flex-end;
}

.report-filter-actions .btn {
    min-width: 110px;
}

.report-filter-card {
    overflow: hidden;
}

.report-period {
    margin: 0 0 16px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.report-kpi-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(160px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.report-kpi {
    padding: 18px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--bg-card);
}

.report-kpi span,
.report-kpi strong,
.report-kpi small {
    display: block;
}

.report-kpi span {
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.report-kpi strong {
    margin-top: 8px;
    font: 700 clamp(1.1rem, 2vw, 1.45rem) var(--font-outfit);
}

.report-kpi small {
    margin-top: 5px;
    color: var(--text-muted);
}

.report-two-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.report-section {
    min-width: 0;
}

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

.fine-breakdown span {
    display: flex;
    padding: 8px 10px;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: rgba(255,255,255,.02);
}

.fine-breakdown small {
    color: var(--text-secondary);
}

body.light-mode .table tbody tr:hover {
    background: rgba(15, 23, 42, 0.01);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

body.light-mode .badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: #065f46;
}

.badge-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

body.light-mode .badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #92400e;
}

.badge-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

body.light-mode .badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #991b1b;
}

.badge-info {
    background: rgba(6, 182, 212, 0.15);
    color: #67e8f9;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

body.light-mode .badge-info {
    background: rgba(6, 182, 212, 0.1);
    color: #155e75;
}

/* Alert Notification box */
.alert {
    padding: 14px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.alert i {
    margin-right: 12px;
    font-size: 1.1rem;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

body.light-mode .alert-danger {
    background: rgba(239, 68, 68, 0.08);
    color: #b91c1c;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #a7f3d0;
}

body.light-mode .alert-success {
    background: rgba(16, 185, 129, 0.08);
    color: #065f46;
}

/* GPS tracking custom view styling */
.gps-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
    height: calc(100dvh - 180px);
    min-height: 360px;
    max-height: 820px;
}

@media (max-width: 992px) {
    .gps-container {
        grid-template-columns: 1fr;
        height: auto;
    }
    .app-sidebar {
        transform: translateX(-100%);
    }
    .app-content {
        margin-left: 0;
    }
}

.gps-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.gps-map-wrapper {
    position: relative;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    height: 100%;
}

#map {
    height: 100%;
    width: 100%;
    background: #dbeafe;
    z-index: 10;
}

#map .leaflet-tile-pane {
    filter: none;
}

#map .leaflet-control-zoom a {
    color: #0f172a;
    background: #ffffff;
    border-color: #cbd5e1;
}

#map .leaflet-control-zoom a:hover {
    background: #f1f5f9;
}

#map .leaflet-control-attribution {
    color: #334155;
    background: rgba(255, 255, 255, 0.9);
}

#map .leaflet-control-attribution a {
    color: #2563eb;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
    background: #111827;
    color: #f3f4f6;
}

.leaflet-popup-content {
    color: inherit;
}

body.light-mode .leaflet-popup-content-wrapper,
body.light-mode .leaflet-popup-tip {
    background: #ffffff;
    color: #0f172a;
}

body.light-mode #searchGPSUnits {
    background: #ffffff !important;
    color: var(--text-primary) !important;
}

.vehicle-list {
    list-style: none;
}

.vehicle-item {
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    margin-bottom: 10px;
    cursor: pointer;
    transition: var(--transition-fast);
}

body.light-mode .vehicle-item {
    background: rgba(15,23,42,0.02);
}

.vehicle-item:hover, .vehicle-item.active {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--border-color-glow);
}

.vehicle-item.active {
    border-color: var(--color-primary);
}

.vehicle-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.vehicle-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.vehicle-plate {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.vehicle-details-small {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
}

/* Simulation Controls Panel on Map */
.map-controls-panel {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 100;
    background: rgba(10, 15, 30, 0.85);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    padding: 16px 24px;
    border-radius: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    animation: fadeInUp 0.4s ease;
}

body.light-mode .map-controls-panel {
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 10px 20px rgba(15,23,42,0.1);
}

.control-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.control-title {
    font-family: var(--font-outfit);
    font-weight: 500;
    font-size: 0.95rem;
    color: white;
}

body.light-mode .control-title {
    color: var(--text-primary);
}

.timeline-slider-wrapper {
    flex-grow: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 250px;
}

.timeline-slider {
    flex-grow: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.15);
    outline: none;
    cursor: pointer;
}

body.light-mode .timeline-slider {
    background: rgba(15,23,42,0.15);
}

.timeline-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: 0 0 8px var(--color-primary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.timeline-slider::-webkit-slider-thumb:hover {
    background: white;
}

/* Interactive SVG Damage Marker & Inspections */
.damage-checker-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 15px 0;
}

@media (max-width: 992px) {
    .damage-checker-wrapper {
        grid-template-columns: 1fr;
    }
}

.damage-svg-container {
    position: relative;
    border: 1px solid var(--border-color);
    background: rgba(10, 15, 30, 0.3);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    min-width: 0;
    max-width: 100%;
}

body.light-mode .damage-svg-container {
    background: rgba(255,255,255,0.5);
}

.damage-svg {
    width: 100%;
    max-width: 360px;
    max-height: min(62dvh, 620px);
    height: auto;
}

.damage-svg path, .damage-svg rect, .damage-svg circle {
    stroke: var(--text-primary);
    stroke-width: 1.2;
    fill: rgba(255,255,255,0.02);
    transition: all var(--transition-fast);
}

body.light-mode .damage-svg path, body.light-mode .damage-svg rect, body.light-mode .damage-svg circle {
    fill: rgba(15, 23, 42, 0.01);
}

.damage-svg g.car-part:hover path, .damage-svg g.car-part:hover rect, .damage-svg g.car-part:hover circle {
    stroke: var(--color-primary);
    fill: rgba(99, 102, 241, 0.15);
    cursor: pointer;
}

.damage-svg text {
    fill: var(--text-secondary);
    font-size: 10px;
    font-family: var(--font-outfit);
    font-weight: 500;
    text-anchor: middle;
    pointer-events: none;
    transition: fill var(--transition-fast);
}

.damage-svg g.car-part:hover text {
    fill: var(--color-primary);
    font-weight: 600;
}

.damage-pin {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--color-danger);
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 0 8px var(--color-danger);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 10px;
    font-family: var(--font-outfit);
    font-weight: 700;
    transform: translate(-50%, -50%);
    cursor: pointer;
    animation: pulseGlow 1.5s infinite;
}

.damage-pin.final {
    background: var(--color-warning);
    box-shadow: 0 0 8px var(--color-warning);
}

.damage-log-panel {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    background: rgba(10, 15, 30, 0.2);
    display: flex;
    flex-direction: column;
    max-height: 280px;
    overflow-y: auto;
}

body.light-mode .damage-log-panel {
    background: rgba(255, 255, 255, 0.5);
}

.damage-log-list {
    list-style: none;
}

.damage-log-item {
    display: flex;
    align-items: flex-start;
    padding: 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

body.light-mode .damage-log-item {
    background: white;
}

.damage-log-badge {
    background: var(--color-danger);
    color: white;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 9px;
    margin-right: 10px;
    flex-shrink: 0;
    margin-top: 1px;
}

.damage-log-badge.final {
    background: var(--color-warning);
    color: black;
}

.damage-log-details {
    flex-grow: 1;
}

.damage-log-part {
    font-weight: 600;
    color: white;
    margin-bottom: 2px;
}

body.light-mode .damage-log-part {
    color: var(--text-primary);
}

.damage-log-desc {
    color: var(--text-secondary);
}

.damage-log-remove {
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition-fast);
    padding-left: 10px;
}

.damage-log-remove:hover {
    color: var(--color-danger);
}

/* Keyframe Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.credit-footer {
    text-align: center;
    padding: 20px 0;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
}

/* ============================================== */
/* MOBILE RESPONSIVENESS AND OPTIMIZATIONS        */
/* ============================================== */

.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--bg-sidebar);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    z-index: 999;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.sidebar-backdrop {
    display: none;
}

.mobile-menu-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.3rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: var(--transition-fast);
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

.mobile-logo {
    display: flex;
    align-items: center;
    font-family: var(--font-outfit);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-primary);
}

.mobile-logo i {
    margin-right: 8px;
    font-size: 1.25rem;
    color: var(--color-primary);
}

@media (max-width: 992px) {
    .mobile-header {
        display: flex;
    }
    
    .app-sidebar {
        transform: translateX(-100%);
        top: 60px;
        height: calc(100dvh - 60px);
        width: min(82vw, 280px);
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
    }
    
    .app-sidebar.show {
        transform: translateX(0);
    }
    
    .app-content {
        margin-left: 0 !important;
        min-width: 0;
        width: 100%;
        max-width: 100vw;
        padding: 80px 15px 25px 15px !important;
    }

    body.sidebar-open {
        overflow: hidden;
    }

    .sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 60px 0 0;
        z-index: 90;
        border: 0;
        background: rgba(2, 6, 23, 0.62);
        opacity: 0;
        visibility: hidden;
        transition: opacity var(--transition-fast), visibility var(--transition-fast);
    }

    .sidebar-backdrop.show {
        opacity: 1;
        visibility: visible;
    }
    
    .content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .content-actions {
        width: 100%;
    }
    
    .content-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .card {
        padding: 16px;
        max-width: 100%;
    }

    .table:not(.responsive-stack-table):not(.report-equipment-table) {
        min-width: 680px;
    }

    .table-responsive {
        padding-bottom: 8px;
    }
    
    /* Optimize stats cards grid */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Forms grid optimization */
    .form-group {
        margin-bottom: 15px;
    }
    
    /* Modals follow the visual viewport, including short mobile browsers */
    .app-modal {
        padding: 0 !important;
        align-items: stretch !important;
    }

    .app-modal > .app-modal-dialog {
        width: 100% !important;
        max-width: none !important;
        height: 100dvh;
        max-height: 100dvh;
        margin: 0 !important;
        padding: max(18px, env(safe-area-inset-top)) max(15px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(15px, env(safe-area-inset-left)) !important;
        border: 0;
        border-radius: 0;
        overflow-y: auto;
        box-shadow: none !important;
    }

    #carModal, #custModal {
        padding: 0 !important;
        align-items: stretch !important;
        overflow: hidden !important;
    }
    
    #rentModal h3, #returnModal h3, #reportModal h3 {
        font-size: 1.15rem !important;
    }
    
    /* SVG Blueprint auto scale on mobile */
    .damage-svg-container {
        padding: 8px !important;
        width: 100%;
    }
    
    .damage-svg {
        width: 100%;
        max-width: min(100%, 340px) !important;
        max-height: min(58dvh, 520px);
        height: auto;
    }
    
    /* Damage log panel scroll constraint */
    .damage-log-panel {
        max-height: 180px;
    }
    
    /* Layout columns stack */
    #rentModal form div[style*="grid-template-columns"], 
    #returnModal form div[style*="grid-template-columns"],
    #reportModal div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    #returnModal div[style*="border-right"] {
        border-right: none !important;
        border-bottom: 1px solid var(--border-color);
        padding-right: 0 !important;
        padding-bottom: 20px;
    }
    
    /* Grid checklist options */
    #rentModal form div[style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)) !important;
    }

    #rentModal div[style*="justify-content: space-between"],
    #returnModal div[style*="justify-content: space-between"],
    #reportModal div[style*="justify-content: space-between"] {
        flex-wrap: wrap;
    }

    #rentModal #tabBtn1,
    #rentModal #tabBtn2 {
        flex: 1 1 140px;
        white-space: normal;
    }

    .gps-map-wrapper {
        height: clamp(360px, 65dvh, 680px);
        min-height: 0;
    }

    .map-controls-panel {
        left: 10px;
        right: 10px;
        bottom: 10px;
        padding: 12px;
        max-height: calc(100% - 20px);
        overflow-y: auto;
    }

    .map-controls-panel .control-group {
        width: 100%;
        flex-wrap: wrap;
    }

    .timeline-slider-wrapper {
        min-width: 0;
        width: 100%;
        flex-basis: 100%;
    }

    .settings-layout,
    .report-two-column {
        grid-template-columns: 1fr;
    }

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

    .report-filter-actions {
        grid-column: 1 / -1;
    }

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

@media (max-width: 768px) {
    .content-title h2 {
        font-size: clamp(1.45rem, 7vw, 1.8rem);
    }

    .chart-canvas-wrap {
        height: clamp(230px, 48dvh, 320px) !important;
    }

    .chart-canvas-wrap-status {
        height: clamp(280px, 55dvh, 360px) !important;
    }

    .responsive-stack-table {
        min-width: 0 !important;
        border-collapse: separate;
        border-spacing: 0;
    }

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

    .responsive-stack-table tbody,
    .responsive-stack-table tr,
    .responsive-stack-table td {
        display: block;
        width: 100% !important;
        max-width: none !important;
    }

    .responsive-stack-table tbody {
        display: grid;
        gap: 14px;
    }

    .responsive-stack-table tbody tr {
        padding: 8px 12px;
        border: 1px solid var(--border-color);
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.018);
    }

    body.light-mode .responsive-stack-table tbody tr {
        background: rgba(15, 23, 42, 0.02);
    }

    .responsive-stack-table td {
        display: grid;
        grid-template-columns: minmax(96px, 38%) minmax(0, 1fr);
        gap: 12px;
        align-items: center;
        padding: 10px 0;
        border-bottom: 1px dashed var(--border-color);
        text-align: left !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        overflow-wrap: anywhere;
    }

    .responsive-stack-table td:last-child {
        border-bottom: 0;
    }

    .responsive-stack-table td::before {
        content: attr(data-label);
        color: var(--text-secondary);
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .responsive-stack-table td[colspan] {
        display: block;
        padding: 20px 0 !important;
    }

    .responsive-stack-table td[colspan]::before {
        content: none;
    }

    .responsive-stack-table td[data-label="Aksi"] {
        align-items: start;
    }

    .responsive-stack-table td > .badge {
        width: max-content;
        max-width: 100%;
        justify-self: start;
    }

    .responsive-stack-table .table-actions {
        display: flex !important;
        align-items: center;
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 6px;
        width: 100%;
    }

    .responsive-stack-table .table-actions > .btn,
    .responsive-stack-table .table-actions > form {
        flex: 0 0 auto;
        width: auto !important;
    }

    .responsive-stack-table .table-actions .btn-icon {
        width: 40px !important;
        min-width: 40px;
        height: 40px;
    }

    .report-equipment-table {
        min-width: 0 !important;
    }

    .report-equipment-table thead {
        display: none;
    }

    .report-equipment-table tr {
        display: block;
        padding: 10px;
        border-bottom: 1px solid var(--border-color);
    }

    .report-equipment-table td {
        display: grid;
        grid-template-columns: minmax(100px, 42%) minmax(0, 1fr);
        gap: 10px;
        width: 100% !important;
        padding: 7px 0 !important;
        text-align: left !important;
        border: 0;
    }

    .report-equipment-table td::before {
        content: attr(data-label);
        color: var(--text-secondary);
        font-size: 0.72rem;
        font-weight: 700;
    }
}

@media (max-width: 480px) {
    .app-content {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .card {
        padding: 14px;
        border-radius: 14px;
    }

    .filter-bar {
        grid-template-columns: 1fr !important;
    }

    .filter-bar .btn {
        width: 100%;
    }

    .login-card {
        padding: 24px 18px;
    }

    .app-modal > .app-modal-dialog {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .app-modal-dialog h3 {
        line-height: 1.25;
    }

    #rentModal #tabBtn1,
    #rentModal #tabBtn2 {
        flex-basis: 100%;
        min-height: 44px;
    }

    #rentModal div[style*="justify-content: flex-end"],
    #returnModal div[style*="justify-content: flex-end"],
    #reportModal div[style*="justify-content: flex-end"] {
        width: 100%;
    }

    #rentModal div[style*="justify-content: flex-end"] > .btn,
    #returnModal div[style*="justify-content: flex-end"] > .btn,
    #reportModal div[style*="justify-content: flex-end"] > .btn {
        flex: 1 1 100%;
        width: 100%;
    }

    .responsive-stack-table td {
        grid-template-columns: minmax(88px, 36%) minmax(0, 1fr);
        gap: 10px;
    }

    .map-controls-panel .btn {
        flex: 1 1 auto;
    }

    .form-grid.two-columns,
    .report-filter-grid,
    .report-kpi-grid {
        grid-template-columns: 1fr;
    }

    .logo-settings-row {
        grid-template-columns: 1fr;
    }

    .settings-save-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .settings-save-bar .btn,
    .report-filter-actions,
    .report-filter-actions .btn {
        width: 100%;
    }

    .fine-breakdown {
        grid-template-columns: 1fr;
    }

    .modal-actions {
        flex-direction: column-reverse;
    }

    .modal-actions .btn {
        width: 100%;
    }
}

@media (max-height: 650px) {
    .app-sidebar {
        overflow-y: auto;
    }

    .sidebar-brand,
    .sidebar-user {
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .sidebar-menu {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .sidebar-link {
        padding-top: 9px;
        padding-bottom: 9px;
    }

    .gps-container {
        min-height: 320px;
    }

    .gps-map-wrapper {
        min-height: 320px;
    }
}

body.light-mode td[style*="color: white"],
body.light-mode h3[style*="color: white"],
body.light-mode h4[style*="color: white"],
body.light-mode h5[style*="color: white"],
body.light-mode label[style*="color: white"],
body.light-mode div[style*="color: white"],
body.light-mode span[style*="color: white"] {
    color: var(--text-primary) !important;
}

@media print {
    body:has(.report-section) {
        background: #fff !important;
        color: #111827 !important;
        font-family: Arial, sans-serif;
    }

    body:has(.report-section) .mobile-header,
    body:has(.report-section) .app-sidebar,
    body:has(.report-section) .sidebar-backdrop,
    body:has(.report-section) .no-report-print,
    body:has(.report-section) script {
        display: none !important;
    }

    body:has(.report-section) .app-wrapper {
        display: block;
    }

    body:has(.report-section) .app-content {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .report-print-brand,
    .report-print-footer {
        display: block;
        color: #111827;
    }

    body.report-print-partial .report-kpi-grid {
        display: none !important;
    }

    body[data-print-section="transactions"] .report-section:not([data-report-section="transactions"]),
    body[data-print-section="fleet"] .report-section:not([data-report-section="fleet"]),
    body[data-print-section="customers"] .report-section:not([data-report-section="customers"]),
    body[data-print-section="monthly"] .report-section:not([data-report-section="monthly"]) {
        display: none !important;
    }

    body.report-print-partial .report-two-column {
        display: block;
    }

    .report-print-brand {
        margin-bottom: 14px;
        padding-bottom: 10px;
        border-bottom: 2px solid #111827;
    }

    .report-print-brand h1,
    .report-print-brand h2,
    .report-print-brand p {
        margin: 0;
    }

    .report-print-brand h2 {
        margin-top: 10px;
        font-size: 16px;
    }

    .report-print-brand p,
    .report-print-footer {
        margin-top: 4px;
        color: #475569;
        font-size: 10px;
    }

    .report-period {
        color: #334155 !important;
    }

    .report-kpi-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
        margin-bottom: 12px;
    }

    .report-kpi,
    .report-section {
        border: 1px solid #cbd5e1 !important;
        background: #fff !important;
        color: #111827 !important;
        box-shadow: none !important;
    }

    .report-kpi {
        padding: 8px;
    }

    .report-kpi span,
    .report-kpi small {
        color: #475569 !important;
    }

    .report-two-column {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .report-section {
        margin-bottom: 10px;
        padding: 10px;
        break-inside: avoid;
    }

    .report-section .card-header {
        margin-bottom: 6px;
        padding-bottom: 6px;
    }

    .report-section .card-title,
    .report-section .table th,
    .report-section .table td {
        color: #111827 !important;
    }

    .report-section .table {
        min-width: 0 !important;
        font-size: 8px;
    }

    .report-section .table th,
    .report-section .table td {
        padding: 5px;
        border-color: #cbd5e1 !important;
    }

    .report-print-footer {
        padding-top: 8px;
        border-top: 1px solid #cbd5e1;
        text-align: center;
    }
}
