/* EGEXO app theme A "Linen": light, calm, brand green. Loaded after style.css; colours only, no layout changes. */
:root {
    --bg-dark: #f6f4ee;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --bg-hover: #f1efe7;
    --bg-input: #ffffff;
    --border-color: #e2ded2;
    --border-light: #ece9df;

    --accent: #3f7a1f;
    --accent-light: #4c8625;
    --accent-dim: rgba(76, 134, 37, 0.10);
    --accent-glow: rgba(76, 134, 37, 0);

    --blue: #2f5f8a;
    --blue-dim: rgba(47, 95, 138, 0.10);
    --orange: #a86410;
    --orange-dim: rgba(196, 128, 32, 0.12);
    --red: #b3372f;
    --red-dim: rgba(179, 55, 47, 0.09);
    --green: #3f7a1f;
    --green-dim: rgba(76, 134, 37, 0.11);
    --purple: #6b4f8a;
    --purple-dim: rgba(107, 79, 138, 0.10);

    --text-primary: #1f1f1f;
    --text-secondary: #55524a;
    --text-muted: #625e55; /* test 2: was #8a867b (3.3-3.6:1); now 5.8-6.5:1 on cream and white */

    --gradient-accent: #2d5016;
    --gradient-warm: #a86410;
    --gradient-card: #ffffff;

    --radius: 10px;
    --radius-sm: 7px;
    --radius-xs: 5px;
    --shadow-sm: 0 1px 2px rgba(31, 31, 31, 0.06);
    --shadow-md: 0 2px 8px rgba(31, 31, 31, 0.07);
    --shadow-lg: 0 10px 30px rgba(31, 31, 31, 0.12);
    --shadow-glow: none;
}
body { font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 15px; -webkit-font-smoothing: antialiased; }
.sidebar { background: #2d5016; border-right: 0; }
.sidebar .nav-item, .sidebar .logo-sub, .sidebar .user-role, .sidebar-toggle { color: rgba(255, 255, 255, 0.72); }
.sidebar .nav-item:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.sidebar .nav-item.active { background: #f6f4ee; color: #2d5016; font-weight: 700; }
.sidebar .nav-item.active::before { display: none; }
.sidebar .nav-divider { background: rgba(255, 255, 255, 0.14); }
.sidebar .user-name { color: #fff; }
.sidebar .user-avatar { background: rgba(255, 255, 255, 0.12); color: #fff; }
.sidebar-header, .sidebar-footer { border-color: rgba(255, 255, 255, 0.12); }
.logo-icon { background: #e2d21b; color: #2d5016; }
.logo-name { background: none; -webkit-text-fill-color: #fff; color: #fff; font-family: 'Playfair Display', Georgia, serif; letter-spacing: 1px; }
.top-bar { background: rgba(246, 244, 238, 0.92); border-bottom: 1px solid var(--border-color); }
.page-title, .page-header h1, .page-header h2 { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; letter-spacing: 0; }
.btn-primary { background: #3f7a1f; color: #fff; } /* test 2: was #4c8625 (4.4:1 with white text); now 5.3:1 */
.btn-primary:hover { background: #2d5016; box-shadow: none; transform: none; }
.data-table th { background: #f8f6f0; color: var(--text-secondary); font-weight: 700; letter-spacing: .02em; }
.data-table td { border-color: var(--border-light); }
.data-table tbody tr:hover { background: #faf9f4; }
.font-mono { font-variant-numeric: tabular-nums; }
.filter-tab.active { background: #2d5016; color: #fff; }
.stat-card:hover { transform: none; }
.modal-overlay { backdrop-filter: none; background: rgba(31, 31, 31, 0.35); }

/* Phones and small tablets */
@media (max-width: 768px) {
    .top-bar { position: sticky; top: 0; z-index: 50; }
    .content-area { padding: 14px 12px 24px; }
    .page-header { flex-wrap: wrap; gap: 10px; }
    .table-toolbar { flex-direction: column; align-items: stretch; gap: 10px; }
    .filter-tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
    .filter-tab { flex: 0 0 auto; }
    .data-table { font-size: 14px; }
    .data-table th, .data-table td { white-space: nowrap; }
    .sidebar .nav-item { padding-top: 12px; padding-bottom: 12px; }
    .btn { min-height: 40px; }
    .btn-xs { min-height: 34px; min-width: 34px; }
    input, select, textarea { font-size: 16px !important; }
    .modal { width: calc(100vw - 16px) !important; max-width: calc(100vw - 16px) !important; }
}

/* EGEXO leaf mark instead of the letter E */
.logo-icon { background: #ffffff url(egexo-mark.png?v=1) center / 76% no-repeat !important; color: transparent !important; font-size: 0 !important; }
