:root {
    --ams-primary: #1e40af;
    --ams-primary-dark: #1e3a8a;
    --ams-primary-soft: rgba(30, 64, 175, 0.1);
    --ams-accent: #0ea5e9;
    --ams-sidebar: #0c1222;
    --ams-sidebar-elevated: #111827;
    --ams-sidebar-border: rgba(255, 255, 255, 0.06);
    --ams-sidebar-text: #94a3b8;
    --ams-sidebar-text-hover: #f1f5f9;
    --ams-bg: #eef2f7;
    --ams-surface: #ffffff;
    --ams-border: #dde4ee;
    --ams-text: #0f172a;
    --ams-text-muted: #64748b;
    --ams-card-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 6px 20px rgba(15, 23, 42, 0.05);
    --ams-radius: 14px;
    --ams-radius-sm: 10px;
    --ams-sidebar-width: 272px;
    --ams-font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    --ams-stat-blue: #1e40af;
    --ams-stat-emerald: #047857;
    --ams-stat-rose: #be123c;
    --ams-stat-slate: #475569;
}

* { box-sizing: border-box; }

body {
    font-family: var(--ams-font);
    background: var(--ams-bg);
    color: var(--ams-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Login */
.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.login-hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #38bdf8 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.login-hero::before {
    content: "";
    position: absolute;
    inset: 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.05'%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-hero-content {
    position: relative;
    max-width: 420px;
}

.login-hero h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.login-hero-super {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 45%, #334155 100%);
}

.login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: #fff;
}

.login-card {
    width: 100%;
    max-width: 420px;
}

.login-card .form-control,
.login-card .form-select {
    padding: 0.75rem 1rem;
    border-radius: var(--ams-radius-sm);
    border-color: var(--ams-border);
}

.btn-primary {
    background: var(--ams-primary);
    border-color: var(--ams-primary);
    padding: 0.75rem 1rem;
    border-radius: var(--ams-radius-sm);
    font-weight: 600;
}

.btn-primary:hover {
    background: var(--ams-primary-dark);
    border-color: var(--ams-primary-dark);
}

/* App shell */
.app-body {
    background: var(--ams-bg);
}

.app-wrapper {
    display: flex;
    min-height: 100vh;
}

.app-sidebar {
    width: var(--ams-sidebar-width);
    background: linear-gradient(180deg, var(--ams-sidebar) 0%, #0a101c 100%);
    color: var(--ams-sidebar-text);
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1040;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 1px solid var(--ams-sidebar-border);
}

.sidebar-brand {
    display: flex;
    gap: 0.875rem;
    align-items: center;
    padding: 1.35rem 1.25rem 1.15rem;
    border-bottom: 1px solid var(--ams-sidebar-border);
}

.brand-icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: linear-gradient(135deg, #1e40af 0%, #0ea5e9 100%);
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.2rem;
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.3);
    flex-shrink: 0;
}

.brand-text {
    min-width: 0;
    flex: 1;
}

.brand-title {
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    line-height: 1.25;
    max-width: 180px;
}

.brand-subtitle {
    font-size: 0.72rem;
    color: #64748b;
    margin-top: 0.15rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sidebar-context {
    padding: 0.85rem 1rem 0;
}

.sidebar-back {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.75rem;
    border-radius: var(--ams-radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--ams-sidebar-border);
    color: var(--ams-sidebar-text-hover);
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease;
}

.sidebar-back:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.sidebar-nav {
    flex: 1;
    padding: 0.75rem 0.85rem 1rem;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.sidebar-nav::-webkit-scrollbar {
    width: 5px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 99px;
}

.sidebar-section {
    padding: 1rem 0.75rem 0.35rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #475569;
}

.sidebar-section:first-child {
    padding-top: 0.35rem;
}

.sidebar-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.62rem 0.75rem;
    margin-bottom: 0.15rem;
    border-radius: var(--ams-radius-sm);
    color: var(--ams-sidebar-text);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--ams-sidebar-text-hover);
}

.sidebar-link.active {
    background: rgba(30, 64, 175, 0.18);
    color: #fff;
    font-weight: 600;
}

.sidebar-link-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.04);
    flex-shrink: 0;
    transition: background 0.15s ease;
}

.sidebar-link.active .sidebar-link-icon {
    background: rgba(30, 64, 175, 0.28);
    color: #93c5fd;
}

.sidebar-link-icon i {
    font-size: 1rem;
}

.sidebar-link-label {
    flex: 1;
    line-height: 1.3;
}

.sidebar-link-indicator {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 1.35rem;
    border-radius: 0 4px 4px 0;
    background: linear-gradient(180deg, #60a5fa, #22d3ee);
}

.sidebar-user {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding: 1rem 1.15rem;
    border-top: 1px solid var(--ams-sidebar-border);
    background: rgba(0, 0, 0, 0.18);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #334155, #475569);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.user-name {
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
}

.user-building {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.1rem;
    max-width: 160px;
}

.app-main {
    flex: 1;
    margin-left: var(--ams-sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-topbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--ams-border);
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.topbar-heading {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.02em;
    color: var(--ams-text);
}

.topbar-subtitle {
    margin: 0.1rem 0 0;
    font-size: 0.8125rem;
    color: var(--ams-text-muted);
}

.topbar-title { flex: 1; min-width: 0; }

.sidebar-toggle {
    color: var(--ams-text);
    text-decoration: none;
    padding: 0.35rem 0.5rem;
    border-radius: 8px;
}

.sidebar-toggle:hover {
    background: #f1f5f9;
}

.sidebar-toggle i {
    font-size: 1.35rem;
}

.topbar-user-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem 0.35rem 0.35rem;
    border: 1px solid var(--ams-border);
    border-radius: 999px;
    background: #fff;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ams-text);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

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

.topbar-user-chevron {
    font-size: 0.7rem;
    color: var(--ams-text-muted);
    margin-left: 0.15rem;
    flex-shrink: 0;
}

.topbar-user-btn:hover,
.topbar-user-btn:focus {
    background: #f8fafc;
    border-color: #dbe3ef;
    color: var(--ams-text);
}

.topbar-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e40af, #0ea5e9);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.topbar-user-name {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-menu {
    border-radius: var(--ams-radius-sm);
    padding: 0.35rem;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12) !important;
}

.dropdown-item {
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

.dropdown-header {
    padding: 0.5rem 0.75rem 0.25rem;
}

.app-content {
    flex: 1;
}

.app-footer {
    background: transparent;
    color: var(--ams-text-muted);
    border-top: none !important;
}

/* Dashboard */
.dashboard-welcome {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--ams-border);
    border-radius: var(--ams-radius);
    padding: 1.35rem 1.5rem;
    box-shadow: var(--ams-card-shadow);
}

.dashboard-welcome-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.35rem;
    color: var(--ams-text);
}

.dashboard-welcome-text {
    color: var(--ams-text-muted);
    font-size: 0.9375rem;
}

.stat-card {
    background: var(--ams-surface);
    border: 1px solid var(--ams-border);
    border-radius: var(--ams-radius);
    box-shadow: var(--ams-card-shadow);
    padding: 1.25rem 1.35rem;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    border-radius: 4px 0 0 4px;
    background: var(--stat-accent, var(--ams-primary));
}

.stat-card-blue { --stat-accent: var(--ams-stat-blue); }
.stat-card-emerald { --stat-accent: var(--ams-stat-emerald); }
.stat-card-rose { --stat-accent: var(--ams-stat-rose); }
.stat-card-slate { --stat-accent: var(--ams-stat-slate); }

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(15, 23, 42, 0.04), 0 14px 28px rgba(15, 23, 42, 0.07);
}

.stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    background: rgba(15, 23, 42, 0.04);
    color: var(--stat-accent, var(--ams-primary));
}

.stat-card-blue .stat-icon { background: rgba(30, 64, 175, 0.1); color: var(--ams-stat-blue); }
.stat-card-emerald .stat-icon { background: rgba(4, 120, 87, 0.1); color: var(--ams-stat-emerald); }
.stat-card-rose .stat-icon { background: rgba(190, 18, 60, 0.1); color: var(--ams-stat-rose); }
.stat-card-slate .stat-icon { background: rgba(71, 85, 105, 0.1); color: var(--ams-stat-slate); }

.stat-value {
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--ams-text);
}

.stat-value-sm {
    font-size: 1.35rem;
}

.stat-label {
    color: var(--ams-text-muted);
    font-size: 0.8125rem;
    font-weight: 600;
    margin-top: 0.15rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.chart-card-body {
    padding: 0 !important;
}

.chart-container {
    position: relative;
    height: 300px;
    padding: 0.5rem 1.25rem 1.25rem;
}

.dashboard-chart-card .card-header {
    padding-bottom: 0.75rem;
}

.complaint-list {
    display: flex;
    flex-direction: column;
}

.complaint-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--ams-border);
}

.complaint-item:last-child {
    border-bottom: none;
}

.complaint-title {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--ams-text);
    line-height: 1.35;
}

.complaint-meta {
    font-size: 0.8125rem;
    color: var(--ams-text-muted);
    margin-top: 0.2rem;
}

.complaint-status .badge {
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.35em 0.65em;
    white-space: nowrap;
}

/* Content cards */
.content-card {
    background: var(--ams-surface);
    border: 1px solid var(--ams-border);
    border-radius: var(--ams-radius);
    box-shadow: var(--ams-card-shadow);
    overflow: hidden;
}

.content-card .card-header {
    background: transparent;
    border-bottom: 1px solid var(--ams-border);
    padding: 1rem 1.35rem;
    font-weight: 600;
    font-size: 0.9375rem;
}

.content-card .card-body {
    padding: 0;
}

.content-card .card-body > .table-responsive,
.content-card .card-body > .empty-state,
.content-card .card-body > form,
.content-card .card-body > .p-4 {
    padding: 1.25rem;
}

.content-card .card-body > .table-responsive {
    padding-top: 0.5rem;
}

.page-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.25rem;
    margin-bottom: 1.25rem !important;
}

.page-actions .text-muted {
    font-size: 0.9375rem;
}

/* Tables */
.table {
    margin-bottom: 0;
    font-size: 0.875rem;
}

.table > :not(caption) > * > * {
    padding: 0.9rem 1.1rem;
    vertical-align: middle;
    border-color: var(--ams-border);
}

.table thead th {
    background: #f8fafc;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom-width: 1px;
    white-space: nowrap;
}

.table-hover > tbody > tr:hover > * {
    background: #f8fbff;
}

.table .btn-sm {
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
}

/* DataTables overrides */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    padding: 0 1.1rem;
    margin-bottom: 0.75rem;
}

.dataTables_wrapper .dataTables_filter input {
    border: 1px solid var(--ams-border);
    border-radius: var(--ams-radius-sm);
    padding: 0.45rem 0.85rem;
    margin-left: 0.5rem;
    font-size: 0.875rem;
}

.dataTables_wrapper .dataTables_length select {
    border: 1px solid var(--ams-border);
    border-radius: 8px;
    padding: 0.4rem 2.25rem 0.4rem 0.75rem;
    margin: 0 0.35rem;
    min-width: 4.75rem;
    appearance: none;
    -webkit-appearance: none;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.65rem center;
    background-size: 11px;
    font-size: 0.875rem;
    line-height: 1.4;
    cursor: pointer;
}

.dataTables_wrapper .dataTables_length label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.875rem;
    color: var(--ams-text-muted);
    margin-bottom: 0;
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    padding: 0.85rem 1.1rem 1.1rem;
    font-size: 0.8125rem;
    color: var(--ams-text-muted);
}

.dataTables_wrapper .page-link {
    border-radius: 8px !important;
    margin: 0 2px;
    border-color: var(--ams-border);
    font-size: 0.8125rem;
}

.dataTables_wrapper .page-item.active .page-link {
    background: var(--ams-primary);
    border-color: var(--ams-primary);
}

/* Forms & buttons */
.form-label {
    font-weight: 600;
    font-size: 0.8125rem;
    color: #334155;
    margin-bottom: 0.4rem;
}

.form-control,
.form-select {
    border-color: var(--ams-border);
    border-radius: var(--ams-radius-sm);
    font-size: 0.9375rem;
    padding: 0.625rem 0.875rem;
}

.form-control:focus,
.form-select:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.12);
}

.btn {
    border-radius: var(--ams-radius-sm);
    font-weight: 600;
    font-size: 0.875rem;
}

.btn-primary {
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2);
}

.badge {
    font-weight: 600;
    font-size: 0.72rem;
    padding: 0.4em 0.65em;
    border-radius: 999px;
}

.alert {
    border: none;
    border-radius: var(--ams-radius-sm);
    font-size: 0.875rem;
}

.empty-state {
    text-align: center;
    padding: 3.5rem 1rem;
    color: var(--ams-text-muted);
}

.empty-state i {
    font-size: 2.75rem;
    opacity: 0.25;
    margin-bottom: 1rem;
}

.empty-state p {
    margin: 0;
    font-size: 0.9375rem;
}

/* Monthly Account Sheet */
.account-sheet-page {
    max-width: 1280px;
}

.account-sheet-toolbar .form-control {
    min-width: 160px;
}

.account-sheet-toolbar-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.25rem;
}

.account-sheet-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    flex: 1 1 auto;
    min-width: 0;
}

.account-sheet-filter-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ams-text-muted);
    margin: 0;
    white-space: nowrap;
}

.account-sheet-date-group {
    width: auto;
    min-width: 0;
    max-width: 100%;
    flex: 0 1 280px;
}

.account-sheet-date-group .form-control {
    min-width: 0;
}

.account-sheet-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.account-sheet-date-group .btn,
.account-sheet-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    .account-sheet-toolbar-row {
        flex-direction: column;
        align-items: stretch;
    }

    .account-sheet-filter {
        flex-direction: column;
        align-items: stretch;
    }

    .account-sheet-date-group {
        width: 100%;
        flex: 1 1 100%;
    }

    .account-sheet-actions {
        width: 100%;
    }

    .account-sheet-actions .btn {
        flex: 1 1 0;
    }
}

.account-sheet-alert {
    border-radius: var(--ams-radius-sm);
    border: none;
    font-size: 0.875rem;
}

.account-sheet-hero {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 55%, #eff6ff 100%);
    border: 1px solid var(--ams-border);
    overflow: hidden;
}

.account-sheet-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ams-primary);
    background: rgba(30, 64, 175, 0.08);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
}

.account-sheet-hero-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ams-text);
}

.account-sheet-hero-sub {
    color: var(--ams-text-muted);
    font-size: 0.9375rem;
}

.account-sheet-hero-total-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ams-text-muted);
    margin-bottom: 0.25rem;
}

.account-sheet-hero-total-value {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ams-primary-dark);
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.account-panel .card-header {
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 1rem 1.25rem;
}

.account-line-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.account-line-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid var(--ams-border);
}

.account-line-list li:last-child {
    border-bottom: none;
}

.account-line-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--ams-text-muted);
    font-weight: 500;
}

.account-line-label i {
    color: var(--ams-primary);
    font-size: 1rem;
    width: 1.25rem;
}

.account-line-value {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--ams-text);
    white-space: nowrap;
}

.account-line-meta {
    justify-content: flex-start !important;
    padding-top: 0 !important;
    margin-top: -0.35rem;
    border-bottom: none !important;
}

.account-line-subtotal {
    background: #f8fafc;
}

.account-line-total {
    background: linear-gradient(90deg, rgba(30, 64, 175, 0.06), rgba(14, 165, 233, 0.04));
}

.account-line-total .account-line-label {
    color: var(--ams-text);
    font-weight: 700;
}

.account-line-total .account-line-value {
    font-size: 1.05rem;
    color: var(--ams-primary-dark);
}

.ledger-mini-card {
    background: #f8fafc;
    border: 1px solid var(--ams-border);
    border-radius: var(--ams-radius-sm);
    padding: 1rem 1.15rem;
    height: 100%;
}

.ledger-mini-card-accent {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.06), rgba(14, 165, 233, 0.05));
    border-color: rgba(30, 64, 175, 0.15);
}

.ledger-mini-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ams-text-muted);
    margin-bottom: 0.35rem;
}

.ledger-mini-value {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ams-text);
}

@media (max-width: 991.98px) {
    .login-page { grid-template-columns: 1fr; }
    .login-hero { display: none; }

    .app-sidebar {
        transform: translateX(-100%);
        box-shadow: 8px 0 32px rgba(0, 0, 0, 0.25);
    }

    .app-sidebar.show {
        transform: translateX(0);
    }

    .app-main {
        margin-left: 0;
    }
}
