:root {
    --brand: #0f766e;
    --ink: #17212b;
    --muted: #6b7280;
    --paper: #f6f8fb;
}

body {
    background: var(--paper);
    color: var(--ink);
    padding-bottom: 88px;
}

.guest-body {
    min-height: 100vh;
    background: linear-gradient(160deg, #e6fffb 0%, #f7fafc 48%, #fff 100%);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    color: var(--ink);
    font-weight: 700;
}

.brand-mark {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 8px;
    background: var(--brand);
    color: #fff;
    font-weight: 800;
}

.main-shell {
    padding-top: 1rem;
    padding-bottom: 1.5rem;
}

.login-panel {
    max-width: 420px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
}

.page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}

.metric-card,
.operation-item,
.form-card,
.chart-panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
}

.metric-card span {
    display: block;
    color: var(--muted);
    font-size: .82rem;
}

.metric-card strong {
    display: block;
    font-size: 1.1rem;
    margin-top: .25rem;
}

.filter-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
    margin-bottom: 1rem;
}

.operation-list,
.chart-stack {
    display: grid;
    gap: .75rem;
}

.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .75rem;
}

.inline-form {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    align-items: center;
}

.inline-form .form-control {
    min-width: 150px;
    flex: 1 1 160px;
}

.compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
}

.compare-grid > div {
    background: #f8fafc;
    border-radius: 8px;
    padding: .75rem;
}

.mobile-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    z-index: 10;
}

.mobile-nav a {
    min-height: 64px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: .1rem;
    color: #334155;
    text-decoration: none;
    font-size: .72rem;
}

.mobile-nav i {
    font-size: 1.2rem;
}

.mobile-nav .nav-primary i {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    transform: translateY(-8px);
}

.status-pending,
.status-pending_approval,
.status-modification_pending {
    background: #fff3cd;
    color: #8a5b00;
}

.status-confirmed,
.status-received,
.status-approved {
    background: #d1e7dd;
    color: #0f5132;
}

.status-disbursed {
    background: #cff4fc;
    color: #055160;
}

.status-rejected,
.status-cancelled {
    background: #f8d7da;
    color: #842029;
}

.status-corrected {
    background: #e2e3e5;
    color: #41464b;
}

.notification-unread {
    border-left: 4px solid var(--brand);
}

.color-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin-right: .5rem;
}

@media (min-width: 768px) {
    body {
        padding-bottom: 0;
    }
    .main-shell {
        max-width: 980px;
    }
    .metric-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .filter-bar {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
    .mobile-nav {
        max-width: 980px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 8px 8px 0 0;
    }
}
