:root {
    --green: #00740d;
    --yellow: #ff9000;
    --black: #0b0b0b;
    --white: #ffffff;
    --light: #f6f5f2;
}

@page {
    size: A4 landscape;
    margin: 10mm;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
    background: radial-gradient(circle at top left, rgba(255, 144, 0, 0.18) 0%, #f6f5f2 45%, rgba(0, 116, 13, 0.14) 100%);
    color: var(--black);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: linear-gradient(90deg, #ffffff 0%, rgba(0, 116, 13, 0.08) 50%, rgba(255, 144, 0, 0.12) 100%);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 10;
    gap: 20px;
}

.brand {
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 1px;
    color: var(--green);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.nav-group {
    position: relative;
}

.nav-group.is-collapsible {
    padding: 0;
}

.nav-trigger {
    border: none;
    background: rgba(255, 255, 255, 0.7);
    color: var(--black);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    padding: 10px 16px;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.nav-trigger::after {
    content: "▾";
    display: inline-block;
    margin-left: 8px;
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.nav-group.is-open .nav-trigger {
    background: var(--green);
    color: var(--white);
    box-shadow: 0 10px 18px rgba(0, 116, 13, 0.24);
}

.nav-group.is-open .nav-trigger::after {
    transform: rotate(180deg);
}

.nav-items {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.12);
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    z-index: 30;
}

.nav-group.is-open .nav-items {
    display: flex;
}

.site-nav a {
    text-decoration: none;
    color: var(--black);
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.site-nav a:hover {
    color: var(--green);
    background: rgba(0, 116, 13, 0.1);
}

.site-nav a.is-active {
    color: var(--white);
    background: var(--green);
    box-shadow: 0 10px 18px rgba(0, 116, 13, 0.24);
}

@media (max-width: 1024px) {
    .nav-items {
        position: static;
        box-shadow: none;
        padding: 8px 0 0;
        min-width: 0;
    }

    .nav-group.is-collapsible {
        width: 100%;
    }
}

.user-menu {
    position: relative;
}

.notif-menu {
    position: relative;
    margin-left: 12px;
}

.notif-button {
    border: none;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.95), rgba(0, 116, 13, 0.08));
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    color: var(--black);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08), 0 8px 18px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.notif-button:focus {
    outline: 2px solid rgba(0, 116, 13, 0.35);
    outline-offset: 2px;
}

.notif-button:hover {
    transform: translateY(-1px);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08), 0 12px 20px rgba(0, 0, 0, 0.12);
}

.notif-icon svg {
    width: 18px;
    height: 18px;
    fill: var(--green);
    display: block;
}

.notif-label {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.notif-badge {
    background: var(--yellow);
    color: var(--black);
    font-weight: 700;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 999px;
}

.notif-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
    min-width: 280px;
    max-width: 360px;
    padding: 12px;
    display: none;
    z-index: 25;
}

.notif-dropdown.is-open {
    display: block;
}

.notif-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    margin-bottom: 10px;
    gap: 10px;
}

.notif-dropdown-header a {
    font-size: 0.8rem;
    color: var(--green);
    text-decoration: none;
}

.notif-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.notif-hide {
    border: none;
    background: rgba(0, 0, 0, 0.06);
    color: var(--black);
    font-weight: 700;
    font-size: 0.75rem;
    padding: 6px 10px;
    border-radius: 999px;
    cursor: pointer;
}

.notif-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 280px;
    overflow-y: auto;
}

.notif-item {
    padding: 10px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.notif-item.is-unread {
    background: rgba(0, 116, 13, 0.12);
    border-color: rgba(0, 116, 13, 0.2);
}

.notif-message {
    font-size: 0.9rem;
    font-weight: 600;
}

.notif-meta {
    font-size: 0.75rem;
    color: rgba(11, 11, 11, 0.6);
    margin-top: 4px;
}

.notif-empty {
    padding: 12px;
    color: rgba(11, 11, 11, 0.6);
}

.notif-dropdown-footer {
    margin-top: 10px;
}

.notif-dropdown-footer .btn {
    width: 100%;
    text-align: center;
}

.user-button {
    border: none;
    background: rgba(0, 116, 13, 0.08);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    color: var(--black);
}

.user-button:focus {
    outline: 2px solid rgba(0, 116, 13, 0.35);
    outline-offset: 2px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--green);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.user-caret {
    font-size: 0.85rem;
}

.user-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
    min-width: 220px;
    padding: 10px;
    display: none;
    z-index: 20;
}

.user-menu:hover .user-dropdown,
.user-menu:focus-within .user-dropdown {
    display: block;
}

.user-dropdown-header {
    padding: 8px 10px 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    margin-bottom: 8px;
}

.user-dropdown-name {
    font-weight: 700;
}

.user-dropdown-email {
    font-size: 0.85rem;
    color: rgba(11, 11, 11, 0.65);
}

.user-dropdown-role {
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(11, 11, 11, 0.7);
    text-transform: uppercase;
    margin-top: 4px;
}

.user-dropdown a {
    display: block;
    padding: 10px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--black);
    font-weight: 600;
}

.user-dropdown a:hover {
    background: rgba(0, 116, 13, 0.08);
}

.user-name {
    font-weight: 700;
}

.site-main {
    padding: 32px 24px 80px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

body.layout-dashboard .site-main {
    display: block;
    align-items: stretch;
    justify-content: stretch;
}

.hero {
    background: linear-gradient(120deg, rgba(0, 116, 13, 0.1), rgba(255, 144, 0, 0.2));
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.hero h1 {
    font-size: 2.6rem;
    margin: 0 0 12px;
}

.hero p {
    font-size: 1.1rem;
    margin: 0 0 24px;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 700;
    border: 2px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-secondary {
    background: transparent;
    color: var(--black);
    border-color: var(--black);
}

.btn-outline-primary {
    background: transparent;
    color: var(--green);
    border-color: var(--green);
}

.btn-outline-secondary {
    background: transparent;
    color: #405166;
    border-color: #94a3b8;
}

.btn-outline-primary:hover,
.btn-outline-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.1);
}

.btn-view {
    background: linear-gradient(135deg, #0f766e, #16a34a);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 12px 22px rgba(15, 118, 110, 0.35);
}

.btn-view:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 26px rgba(15, 118, 110, 0.45);
}

.btn-edit {
    background: linear-gradient(135deg, #4338ca, #6366f1);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 12px 22px rgba(67, 56, 202, 0.35);
}

.btn-edit:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 26px rgba(67, 56, 202, 0.45);
}

.btn-reset-password {
    background: linear-gradient(135deg, #d97706, #f97316);
    color: #fff9f2;
    border-color: transparent;
    box-shadow: 0 12px 22px rgba(217, 119, 6, 0.35);
}

.btn-reset-password:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 26px rgba(217, 119, 6, 0.45);
}

.btn-toggle {
    border-color: transparent;
    box-shadow: 0 12px 20px rgba(15, 15, 15, 0.08);
}

.btn-toggle--active {
    background: #34d399;
    color: #064e3b;
}

.btn-toggle--inactive {
    background: #ef4444;
    color: #7f1d1d;
}

.btn-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(15, 15, 15, 0.15);
}

.btn-approve {
    background: #2c9f4d;
    color: var(--white);
}

.btn-reject {
    background: #f6c342;
    color: #1a1a1a;
    border-color: #b89221;
}

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

.highlights {
    margin-top: 32px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.card {
    padding: 24px;
    background: var(--white);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.auth {
    max-width: 440px;
    width: 100%;
    background: var(--white);
    padding: 36px;
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
    position: relative;
    z-index: 2;
    animation: floatIn 0.7s ease both;
    border: 1px solid rgba(0, 0, 0, 0.04);
    align-self: center;
}

.auth::before,
.auth::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    z-index: -1;
    opacity: 0.55;
}

.auth::before {
    width: 140px;
    height: 140px;
    background: rgba(0, 116, 13, 0.18);
    top: -50px;
    left: -50px;
}

.auth::after {
    width: 120px;
    height: 120px;
    background: rgba(255, 144, 0, 0.2);
    bottom: -40px;
    right: -40px;
}

.auth-wrapper {
    width: 100%;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    z-index: 2;
}

.intro-title {
    text-align: center;
}

.intro-title h1 {
    margin: 0;
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--black);
}

.auth-form {
    display: grid;
    gap: 12px;
}

.auth-form input {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #d8d8d8;
}

.password-field {
    display: flex;
    align-items: center;
    gap: 8px;
}

.password-field input {
    flex: 1;
}

.toggle-password {
    border: 1px solid rgba(0, 0, 0, 0.2);
    background: var(--white);
    padding: 9px 12px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
}

.toggle-password:hover {
    border-color: var(--green);
    color: var(--green);
}

.field-hint {
    font-size: 0.85rem;
    color: rgba(11, 11, 11, 0.6);
}

.auth-form input:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(0, 116, 13, 0.15);
}

.alert {
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-weight: 600;
}

.alert-error {
    background: #ffe8e6;
    color: #8a1f11;
    border: 1px solid #f2b4aa;
}

.alert-success {
    background: #e6f7ec;
    color: #0f5a2d;
    border: 1px solid #b7e2c5;
}

.alert-warning {
    background: #fff6d9;
    color: #856400;
    border: 1px solid #f2e0a6;
}

.input-error {
    border-color: #c0392b;
    box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.25);
}

.quantity-warning {
    font-size: 0.8rem;
    color: #c0392b;
    margin-top: 4px;
    display: block;
}

.alert-blink {
    animation: alertBlink 1.2s linear 4;
}

@keyframes alertBlink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.25;
    }
}

.site-footer {
    padding: 18px 24px 28px;
    text-align: center;
    font-weight: 600;
    color: rgba(11, 11, 11, 0.7);
}

body.layout-auth .site-main::before,
body.layout-auth .site-main::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 28% 72% 58% 42%;
    background: rgba(255, 144, 0, 0.16);
    top: 10%;
    right: 6%;
    animation: drift 12s ease-in-out infinite;
}

body.layout-auth .site-main::after {
    width: 260px;
    height: 260px;
    background: rgba(0, 116, 13, 0.14);
    bottom: 8%;
    left: 4%;
    animation-delay: -3s;
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes drift {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-18px) rotate(4deg);
    }
}

.dashboard {
    display: grid;
    gap: 24px;
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.reports-center__header {
    background:
        linear-gradient(115deg, rgba(255, 255, 255, 0.98), rgba(237, 247, 238, 0.96)),
        var(--white);
}

.reports-center__eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--green);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.reports-center__header h1 {
    margin: 0 0 8px;
    font-size: clamp(2rem, 4vw, 3rem);
}

.reports-center__header p,
.reports-center__intro p {
    margin: 0;
    color: #526277;
}

.reports-center__panel {
    padding: 28px;
}

.reports-center__intro {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.reports-center__intro h2 {
    margin: 0 0 6px;
}

.reports-center__count {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(0, 116, 13, 0.09);
    color: var(--green);
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.report-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.report-card {
    min-height: 230px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 22px;
    border: 1px solid #dbe3ec;
    border-radius: 18px;
    background: linear-gradient(145deg, #fff, #f8fafc);
    color: var(--black);
    text-decoration: none;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.report-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 116, 13, 0.45);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.11);
}

.report-card__icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(0, 116, 13, 0.1);
    color: var(--green);
    font-size: 1.25rem;
}

.report-card__body {
    display: grid;
    gap: 9px;
}

.report-card__body strong {
    font-size: 1.08rem;
}

.report-card__body > span {
    color: #586a80;
    line-height: 1.55;
}

.report-card__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: auto;
}

.report-card__open {
    color: var(--green);
    font-size: 0.9rem;
    font-weight: 700;
}

.expense-results-header {
    margin-bottom: 18px;
}

.expense-report-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.expense-report-meta > div {
    display: grid;
    gap: 3px;
    min-width: 180px;
    padding: 10px 14px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.expense-report-meta span {
    color: #526277;
}

.expense-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.expense-summary-card {
    padding: 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(0, 116, 13, 0.1), #fff);
    border: 1px solid rgba(0, 116, 13, 0.2);
}

.expense-summary-card span {
    display: block;
    margin-bottom: 8px;
    color: #526277;
}

.expense-summary-card strong {
    font-size: 1.35rem;
}

.expense-subtotal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(260px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.expense-subtotal-card {
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    overflow: auto;
}

.expense-subtotal-card h3 {
    margin: 0 0 10px;
}

.expense-subtotal-card table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.expense-subtotal-card th,
.expense-subtotal-card td {
    padding: 7px 6px;
    border-bottom: 1px solid #edf2f7;
    text-align: left;
}

.expense-subtotal-card th:last-child,
.expense-subtotal-card td:last-child {
    text-align: right;
}

.expense-filter-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f8fafc;
}

.expense-filter-summary span {
    padding: 4px 8px;
    border-radius: 7px;
    background: #edf2f7;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .reports-center__intro {
        flex-direction: column;
    }

    .report-card-grid {
        grid-template-columns: 1fr;
    }

    .expense-summary-grid,
    .expense-subtotal-grid {
        grid-template-columns: 1fr;
    }
}

@media print {
    body {
        display: block;
        background: #fff;
        color: #000;
        font-family: Arial, sans-serif;
        font-size: 10pt;
    }

    .site-header,
    .site-footer,
    .report-screen-only,
    .report-screen-actions {
        display: none !important;
    }

    .site-main {
        padding: 0 !important;
        display: block !important;
        overflow: visible !important;
        position: static !important;
        width: 100% !important;
    }

    .dashboard,
    .expense-history-report,
    .plot-report-dashboard,
    .plot-report-panel,
    .panel {
        display: block;
        width: 100% !important;
        max-width: none !important;
        overflow: visible !important;
        box-shadow: none !important;
        border-color: #cbd5e1 !important;
        break-inside: auto;
    }

    .dashboard {
        gap: 0 !important;
    }

    .dashboard > * {
        margin-bottom: 12px !important;
    }

    .dashboard-header {
        padding: 0 0 12px;
        box-shadow: none;
        border-radius: 0;
        border-bottom: 2px solid #00740d;
    }

    .plot-report-card {
        box-shadow: none;
        break-inside: avoid;
    }

    .table-wrap {
        overflow: visible !important;
    }

    .plot-report-table {
        font-size: 8.5pt;
    }

    .plot-report-table th,
    .plot-report-table td {
        padding: 5px 6px !important;
    }

    .plot-report-table thead {
        display: table-header-group;
    }

    .plot-report-table tr {
        break-inside: avoid;
    }

    .expense-summary-grid,
    .expense-subtotal-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .expense-report-meta,
    .expense-filter-summary {
        font-size: 8.5pt;
    }

    .expense-subtotal-card {
        break-inside: avoid;
        padding: 8px;
    }

    .expense-history-report .admin-table {
        font-size: 7.5pt;
        min-width: 0;
    }

    .expense-history-report .admin-table th,
    .expense-history-report .admin-table td {
        padding: 4px !important;
        word-break: break-word;
    }

    .expense-history-report .admin-table thead {
        display: table-header-group;
    }

    .expense-history-report .admin-table tr {
        break-inside: avoid;
    }
}

.dashboard-top {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
    gap: 20px;
    align-items: start;
}

.dashboard-header {
    background: var(--white);
    padding: 28px;
    border-radius: 20px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.dashboard-header-content {
    flex: 1 1 auto;
    min-width: 0;
}

.dashboard-header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-left: auto;
}

.dashboard-header-actions .inline-form {
    display: inline-flex;
    margin: 0;
    align-items: center;
}

.dashboard-header-actions .inline-form .btn {
    white-space: nowrap;
}

.dashboard-alert {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-radius: 16px;
    background: radial-gradient(circle at top left, rgba(255, 210, 170, 0.95), rgba(255, 255, 255, 0.92));
    border: 1px solid rgba(255, 144, 0, 0.8);
    box-shadow: 0 18px 35px rgba(255, 144, 0, 0.35);
    animation: dashboard-alert-pulse 1.1s ease-in-out infinite;
    justify-content: flex-start;
}

.dashboard-alert__icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff5e1;
    color: var(--black);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 144, 0, 0.6);
    font-size: 1.2rem;
}

.dashboard-alert__content {
    flex: 1;
    line-height: 1.4;
    max-width: 400px;
}

.dashboard-alert__content strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.dashboard-alert__link {
    color: #0b5024;
    font-weight: 600;
    text-decoration: underline;
}

@keyframes dashboard-alert-pulse {
    0% {
        transform: translateY(0);
        box-shadow: 0 18px 35px rgba(255, 144, 0, 0.25);
    }
    50% {
        transform: translateY(-2px);
        box-shadow: 0 24px 42px rgba(255, 144, 0, 0.45);
    }
    100% {
        transform: translateY(0);
        box-shadow: 0 18px 35px rgba(255, 144, 0, 0.25);
    }
}

@media (prefers-reduced-motion: reduce) {
    .dashboard-alert {
        animation: none;
    }
}

.dashboard-actions {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.stat {
    padding: 18px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.05);
}

.stat span {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--green);
}

.dashboard-panels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.dashboard-panels .panel-full {
    grid-column: 1 / -1;
}

.panel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    width: 100%;
    align-items: stretch;
}

.panel-grid--with-table {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.panel-grid--with-table .panel {
    min-height: 460px;
}

.panel-table {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.table-wrap--scrollable {
    max-height: 520px;
    overflow-y: auto;
}

.panel {
    padding: 22px;
    background: var(--white);
    border-radius: 18px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.06);
}

.today-sales-panel .panel-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.today-sales-header h2 {
    margin-bottom: 4px;
}

.today-sales-controls input {
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid #d8d8d8;
    min-width: 220px;
    font-size: 0.95rem;
}

.today-sales-controls input:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(0, 116, 13, 0.12);
}

.today-sales-actions {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.panel-highlight-border {
    border: 1mm solid var(--green);
    box-shadow: none;
    padding: 22px;
    position: relative;
}

.activity-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    display: grid;
    gap: 12px;
}

.activity-item {
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--light);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.activity-title {
    font-weight: 700;
    margin-bottom: 4px;
}

.activity-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: rgba(11, 11, 11, 0.6);
}

.chart-placeholder {
    margin-top: 14px;
    height: 160px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 116, 13, 0.15), rgba(255, 144, 0, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #4a4a4a;
}

.profile-card p {
    margin: 10px 0 0;
}

.form-card {
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
}

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

.form-grid--filters {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    align-items: flex-start;
}

.form-grid--filters .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-grid--filters .filters-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
    gap: 8px;
}

.expense-payment-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.9rem;
    align-items: center;
}

.expense-payment-form select {
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid #d0d0d0;
    background: var(--white);
}

.expense-payment-form .form-group-inline {
    flex: 1;
    min-width: 120px;
}

.expense-payment-form .bank-account-group {
    display: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.cash-summary {
    display: flex;
    gap: 24px;
}

.cash-summary-grid,
.cash-grid,
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.cash-grid div,
.metrics-grid div {
    background: var(--light);
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.cash-grid span,
.metrics-grid span {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(11, 11, 11, 0.6);
    margin-bottom: 6px;
}

.cash-grid strong,
.metrics-grid strong {
    font-size: 1.4rem;
}

.cash-warning {
    color: #c0392b;
    font-size: 0.75rem;
}

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

.form-grid-wide {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.form-grid-2 .form-actions {
    grid-column: 1 / -1;
}

.section-title {
    font-weight: 700;
    margin: 12px 0 8px;
    color: rgba(11, 11, 11, 0.75);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 4px;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #d8d8d8;
}

.searchable-select {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.searchable-select input[type="search"] {
    font-size: 0.95rem;
}

.searchable-select-results {
    display: none;
    flex-direction: column;
    border: 1px solid #d8d8d8;
    border-radius: 10px;
    background: var(--white);
    max-height: 220px;
    overflow-y: auto;
    margin-top: 4px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    z-index: 4;
    gap: 0;
    padding: 4px 0;
}

.searchable-select-results.is-visible {
    display: flex;
}

.searchable-select-option {
    border: none;
    background: none;
    text-align: left;
    padding: 10px 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--black);
    cursor: pointer;
    width: 100%;
}

.searchable-select-option:hover,
.searchable-select-option:focus {
    outline: none;
    background: rgba(0, 116, 13, 0.08);
}

.searchable-select-empty {
    padding: 10px 12px;
    color: rgba(11, 11, 11, 0.6);
    font-weight: 600;
    font-size: 0.9rem;
}

.cash-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.cash-summary-grid > div {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(0, 116, 13, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.cash-summary-grid strong {
    font-size: 0.95rem;
    display: block;
    margin-bottom: 6px;
    color: rgba(0, 0, 0, 0.8);
}

.deposit-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.deposit-metrics-grid > div {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 144, 0, 0.08);
    border: 1px solid rgba(255, 144, 0, 0.3);
}

.deposit-metrics-grid strong {
    font-size: 0.95rem;
    display: block;
    margin-bottom: 6px;
    color: rgba(0, 0, 0, 0.8);
}

.cash-summary-grid small {
    color: rgba(11, 11, 11, 0.6);
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(0, 116, 13, 0.12);
}

.form-note {
    font-size: 0.85rem;
    color: rgba(11, 11, 11, 0.65);
    margin: 0;
}
.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

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

.section-card {
    grid-column: 1 / -1;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 18px;
    background: rgba(0, 116, 13, 0.04);
    display: grid;
    gap: 12px;
}

.section-card__header h3 {
    margin: 0;
    font-size: 1.05rem;
    color: var(--green);
}

.section-card__header p {
    margin: 0;
    color: rgba(11, 11, 11, 0.65);
}

.transformation-summary {
    grid-column: 1 / -1;
    border: 1px dashed rgba(0, 116, 13, 0.6);
    border-radius: 16px;
    padding: 16px 18px;
    background: rgba(0, 116, 13, 0.05);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.transformation-summary__stat {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    font-weight: 700;
}

.transformation-summary__stat strong {
    font-size: 1.5rem;
    color: var(--green);
}

.transformation-summary__stat strong.is-negative {
    color: #a01212;
}

.panel-header__tag {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(0, 116, 13, 0.5);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--green);
    font-weight: 600;
}
.timestamp-note {
    font-size: 1.05rem;
    color: var(--green);
    font-weight: 700;
    margin: 8px 0 16px;
}
.sale-total-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--green);
    border-radius: 12px;
    padding: 10px 18px;
    gap: 12px;
    margin-top: 8px;
    background: rgba(0, 116, 13, 0.05);
}

.sale-total-label,
.sale-total-amount {
    font-size: 1.15rem;
    color: var(--green);
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
}

.stock-overview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.stock-overview-meta {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.stock-overview-meta > div {
    display: flex;
    flex-direction: column;
}

.stock-overview-meta span {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(11, 11, 11, 0.55);
    font-weight: 700;
}

.stock-overview-meta strong {
    font-size: 1.4rem;
    color: var(--green);
}

.stock-overview-table th,
.stock-overview-table td {
    padding: 12px 10px;
}

.unit-label {
    font-size: 0.78rem;
    color: rgba(11, 11, 11, 0.55);
    display: block;
}

.btn-remove {
    border-color: rgba(220, 38, 38, 0.5);
    color: #7f1d1d;
    background: rgba(220, 38, 38, 0.12);
    box-shadow: none;
    padding: 6px 14px;
}

.btn-remove:hover:not(:disabled) {
    background: rgba(220, 38, 38, 0.2);
}
.table-card {
    background: var(--white);
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.05);
    margin: 0;
}

.table-card-header,
.table-card-footer {
    border-radius: 18px 18px 0 0;
}

.table-card-header {
    background: rgba(0, 116, 13, 0.02);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.table-card-header strong {
    color: var(--green);
}

.table-card-footer {
    background: rgba(0, 0, 0, 0.02);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.table-card .table {
    margin: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    width: 100%;
}

.table-card .table-responsive {
    border-radius: 18px;
    width: 100%;
    overflow-x: auto;
}

.table-card .table th,
.table-card .table td {
    vertical-align: middle;
    border-top: none;
    min-width: 0;
}

.table-card .table td select {
    width: 100%;
    min-width: 0;
}

.today-sales-metrics {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px 0;
    gap: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    margin-bottom: 18px;
}

.today-sales-metrics span {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(11, 11, 11, 0.6);
    font-weight: 700;
}

.today-sales-metrics strong {
    font-size: 1.5rem;
    color: var(--green);
}

.table-card .table thead th {
    font-weight: 700;
    color: rgba(11, 11, 11, 0.6);
}

.btn-add-row {
    background: var(--green);
    color: #fff;
    border: 1px solid rgba(0, 116, 13, 0.5);
    box-shadow: 0 6px 12px rgba(0, 116, 13, 0.12);
}

.table-card .btn-sm {
    border-radius: 10px;
}

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

.is-hidden {
    display: none;
}

.table-wrap.table-scroll {
    max-height: 420px;
    overflow-y: auto;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    background: var(--white);
}

.table-toolbar {
    display: flex;
    justify-content: flex-end;
    margin: 10px 0 14px;
    gap: 12px;
    flex-wrap: wrap;
}

.table-search {
    width: 280px;
    max-width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #d8d8d8;
}

.table-filter {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #d8d8d8;
    background: var(--white);
}

.table-search:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(0, 116, 13, 0.12);
}

.table-filter:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(0, 116, 13, 0.12);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.admin-table th,
.admin-table td {
    text-align: left;
    padding: 12px 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.admin-table tbody tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.03);
}

.admin-table tbody tr.row-inactive {
    background: rgba(220, 38, 38, 0.12);
    color: #7f1d1d;
}

.admin-table tbody tr.row-inactive td {
    border-bottom-color: rgba(220, 38, 38, 0.2);
}

.action-stack form {
    margin: 0;
}

.admin-table th {
    font-weight: 700;
    color: rgba(11, 11, 11, 0.7);
}

.inline-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.action-stack {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.detail-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    margin-bottom: 18px;
}

.detail-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(11, 11, 11, 0.6);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.detail-value {
    font-size: 1rem;
    font-weight: 600;
}

.panel-wide {
    width: 100%;
}

.dashboard-panels .panel-wide {
    grid-column: 1 / -1;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.panel-header .action-stack {
    flex-wrap: nowrap;
}

.panel-header.panel-header--actions {
    justify-content: space-between;
    align-items: flex-start;
}

.panel-header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.panel-subtitle {
    margin: 6px 0 0;
    color: rgba(11, 11, 11, 0.65);
}

.table-actions {
    display: flex;
    gap: 8px;
}

.detail-grid {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
}

.detail-label {
    margin: 0;
    color: rgba(11, 11, 11, 0.6);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
}

.detail-value {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 6px 0 0;
    color: rgba(11, 11, 11, 0.85);
}

.detail-notes {
    margin-top: 26px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.detail-notes .detail-value {
    font-weight: 500;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 50;
}

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

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

.modal-card {
    background: var(--white);
    border-radius: 18px;
    padding: 20px;
    min-width: 280px;
    max-width: 520px;
    width: 100%;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.2);
}

@media print {
    body:has(.modal-overlay:target) > *:not(.modal-overlay:target) {
        display: none !important;
    }

    body:has(.modal-overlay:target) > .modal-overlay:not(:target) {
        display: none !important;
    }

    .modal-overlay:target {
        position: static;
        inset: auto;
        background: transparent;
        align-items: stretch;
    }

    .modal-card {
        box-shadow: none;
        border-radius: 0;
    }
}

.modal-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.modal-logo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(0, 116, 13, 0.12);
    color: var(--green);
    font-weight: 700;
    letter-spacing: 0.08em;
}

.modal-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.modal-logo-text strong {
    font-size: 1.05rem;
}

.modal-logo-tagline {
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.6);
}

.modal-title {
    margin: 0;
    font-size: 1.3rem;
}

.modal-receipt-meta {
    margin: 4px 0 0;
    color: rgba(0, 0, 0, 0.65);
    font-size: 0.95rem;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.modal-close {
    border: none;
    background: transparent;
    font-size: 1.6rem;
    cursor: pointer;
}

.table-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0 12px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .site-header {
        flex-direction: column;
        gap: 12px;
    }

    .user-menu {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .user-button {
        width: 100%;
        justify-content: center;
    }

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

    .hero {
        padding: 32px 24px;
    }

    .site-main {
        padding: 24px 16px 60px;
    }

    .auth {
        padding: 28px;
    }
    .form-grid-2 {
        grid-template-columns: 1fr;
    }
    .panel-header .action-stack {
        flex-wrap: wrap;
        width: 100%;
        justify-content: flex-start;
    }
    .table-wrap,
    .history-table-wrap {
        border-radius: 14px;
    }
    .transfer-grid,
    .transfer-driver-grid {
        grid-template-columns: 1fr;
    }
    .transfer-card .form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .history-actions {
        gap: 12px;
    }
}

@media (max-width: 1200px) {
    .dashboard-panels,
    .panel-grid,
    .panel-grid--with-table {
        gap: 16px;
    }
    .panel {
        padding: 18px;
    }
    .panel-header,
    .history-actions,
    .history-full-header,
    .dashboard-header-actions {
        flex-wrap: wrap;
        gap: 10px;
    }
    .history-actions select,
    .history-actions input,
    .history-actions button,
    .dashboard-header-actions a,
    .dashboard-header-actions button {
        flex: 1 1 220px;
        min-width: 180px;
    }
    .table-wrap,
    .history-table-wrap,
    .transfer-table,
    .table-wrap--scrollable {
        overflow-x: auto;
    }
    .admin-table {
        min-width: 640px;
    }
}

@media (max-width: 1024px) {
    .dashboard-panels {
        grid-template-columns: 1fr;
    }
    .form-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
    .history-actions,
    .history-full-header,
    .dashboard-header-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .history-actions select,
    .history-actions input,
    .history-actions button {
        width: 100%;
    }
    .panel-grid--with-table .panel,
    .panel-grid .panel {
        min-height: auto;
    }
}
