/* ===== APPETITE FYNDR - MAIN STYLESHEET ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #1A5FA8;
    --primary-dark: #0F4080;
    --purple: #1E7BC4;
    --violet: #4A9FD4;
    --pink: #EC4899;
    --rose: #FB7185;
    --orange: #F97316;
    --amber: #FBBF24;
    --teal: #14B8A6;
    --cyan: #06B6D4;
    --emerald: #10B981;
    --blue: #3B82F6;
    
    --bg-gradient: linear-gradient(135deg, #0F2044 0%, #1A3A6B 30%, #1E5FA8 65%, #4A9FD4 100%);
    --bg-card: #FFFFFF;
    --bg-light: #F8FAFC;
    --bg-muted: #F1F5F9;
    
    --text-dark: #0F172A;
    --text-primary: #1E293B;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    
    --border: #E2E8F0;
    --border-light: #F1F5F9;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.1);
    
    --sidebar-w: 260px;
    --header-h: 70px;
    --radius: 12px;
    --radius-lg: 16px;
    
    --font: 'Inter', -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); background: linear-gradient(
        135deg,
        #eef2ff 0%,
        #dfe7ff 20%,
        #c7c7ff 45%,
        #eadcff 70%,
        #f6e7f7 100%
    ); background-attachment: fixed; min-height: 100vh; color: var(--text-primary); font-size: 14px; line-height: 1.5; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 3px; }

/* ===== SIDEBAR ===== */
.sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: var(--sidebar-w); background: var(--bg-card); display: flex; flex-direction: column; z-index: 100; box-shadow: var(--shadow-lg); }
.sidebar-header { padding: 24px 20px; border-bottom: 1px solid var(--border-light); }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon { width: 42px; height: 42px; background: linear-gradient(135deg, var(--primary), var(--purple)); border-radius: 10px; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(26,95,168,0.3); }
.logo-icon svg { width: 22px; height: 22px; }
.logo-text { font-size: 18px; font-weight: 700; color: var(--text-dark); }
.logo-text span { background: linear-gradient(135deg, var(--purple), var(--pink)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.sidebar-nav { flex: 1; padding: 16px 12px; overflow-y: auto; }
.nav-label { font-size: 10px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; padding: 16px 14px 8px; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--text-secondary); transition: all 0.2s; margin-bottom: 4px; position: relative; }
.nav-item:hover { background: var(--bg-muted); color: var(--text-dark); }
.nav-item.active { background: linear-gradient(135deg, rgba(26,95,168,0.1), rgba(26,95,168,0.1)); color: var(--primary); font-weight: 600; }
.nav-item.active::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 3px; height: 20px; background: linear-gradient(180deg, var(--primary), var(--purple)); border-radius: 0 3px 3px 0; }
.nav-item i { width: 20px; font-size: 16px; text-align: center; }
.nav-badge { margin-left: auto; background: linear-gradient(135deg, var(--primary), var(--purple)); color: white; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 10px; }
.sidebar-footer { padding: 16px; border-top: 1px solid var(--border-light); }
.user-card { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--bg-light); border-radius: 10px; }
.user-avatar { width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(135deg, var(--teal), var(--cyan)); display: flex; align-items: center; justify-content: center; color: white; font-weight: 600; font-size: 14px; }
.user-info { flex: 1; }
.user-name { font-size: 14px; font-weight: 600; color: var(--text-dark); }
.user-role { font-size: 12px; color: var(--text-muted); }

/* ===== MAIN ===== */
.main { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }
.header { position: sticky; top: 0; height: var(--header-h); background: rgba(255,255,255,0.9); backdrop-filter: blur(20px); border-bottom: 1px solid rgba(255,255,255,0.8); display: flex; align-items: center; justify-content: space-between; padding: 0 28px; z-index: 50; }
.header-left { display: flex; align-items: center; gap: 20px; }
.page-title-header { font-size: 18px; font-weight: 700; color: var(--text-dark); }
.header-search { position: relative; }
.header-search input { width: 280px; height: 42px; padding: 0 14px 0 42px; background: var(--bg-light); border: 1px solid var(--border); border-radius: 10px; font-size: 14px; font-family: var(--font); transition: all 0.2s; }
.header-search input:focus { outline: none; border-color: var(--primary); background: white; }
.header-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.header-right { display: flex; align-items: center; gap: 10px; }
.header-btn { width: 42px; height: 42px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--text-secondary); cursor: pointer; position: relative; transition: all 0.2s; }
.header-btn:hover { border-color: var(--primary); color: var(--primary); }
.header-btn .dot { position: absolute; top: 10px; right: 10px; width: 8px; height: 8px; background: var(--rose); border-radius: 50%; border: 2px solid white; }

/* ===== CONTENT ===== */
.content { flex: 1; padding: 28px; }
.page-header { margin-bottom: 28px; }
.page-title { font-size: 26px; font-weight: 800; color: var(--text-dark); margin-bottom: 6px; }
.page-subtitle { font-size: 14px; color: var(--text-muted); }

/* ===== STATS GRID ===== */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 28px; }
.stat-card { background: var(--bg-card); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; transition: all 0.3s; }
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stat-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; }
.stat-card.purple::after { background: linear-gradient(90deg, var(--purple), var(--violet)); }
.stat-card.teal::after { background: linear-gradient(90deg, var(--teal), var(--cyan)); }
.stat-card.emerald::after { background: linear-gradient(90deg, var(--emerald), var(--teal)); }
.stat-card.pink::after { background: linear-gradient(90deg, var(--pink), var(--rose)); }
.stat-card.blue::after { background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.stat-card.orange::after { background: linear-gradient(90deg, var(--orange), var(--amber)); }
.stat-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; }
.stat-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.stat-icon.purple { background: rgba(26,95,168,0.12); color: var(--purple); }
.stat-icon.teal { background: rgba(20,184,166,0.12); color: var(--teal); }
.stat-icon.emerald { background: rgba(16,185,129,0.12); color: var(--emerald); }
.stat-icon.pink { background: rgba(236,72,153,0.12); color: var(--pink); }
.stat-icon.blue { background: rgba(59,130,246,0.12); color: var(--blue); }
.stat-icon.orange { background: rgba(249,115,22,0.12); color: var(--orange); }
.stat-trend { font-size: 12px; font-weight: 600; padding: 4px 8px; border-radius: 6px; }
.stat-trend.up { background: rgba(16,185,129,0.1); color: var(--emerald); }
.stat-trend.down { background: rgba(244,63,94,0.1); color: var(--rose); }
.stat-value { font-size: 32px; font-weight: 800; color: var(--text-dark); margin-bottom: 4px; }
.stat-label { font-size: 13px; color: var(--text-muted); font-weight: 500; }

/* ===== CARDS ===== */
.card { background: var(--bg-card); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.card-header { padding: 18px 22px; border-bottom: 1px solid var(--border-light); display: flex; align-items: center; justify-content: space-between; }
.card-title { font-size: 16px; font-weight: 700; color: var(--text-dark); }
.card-body { padding: 22px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 28px; }
.grid-3 { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; margin-bottom: 28px; }
.chart-container { position: relative; height: 280px; }

/* ===== TABLE ===== */
.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 14px 18px; }
th { font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; background: var(--bg-light); border-bottom: 1px solid var(--border); }
td { font-size: 14px; color: var(--text-primary); border-bottom: 1px solid var(--border-light); }
tr:hover td { background: var(--bg-muted); }
.table-avatar { width: 38px; height: 38px; border-radius: 8px; overflow: hidden; }
.table-avatar img { width: 100%; height: 100%; object-fit: cover; }
.table-user { display: flex; align-items: center; gap: 12px; }
.table-user-name { font-weight: 600; color: var(--text-dark); }
.table-user-email { font-size: 12px; color: var(--text-muted); }

/* Status */
.status { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.status.active, .status.matched { background: rgba(16,185,129,0.1); color: var(--emerald); }
.status.pending, .status.submitted { background: rgba(251,191,36,0.15); color: var(--amber); }
.status.expired, .status.cancelled { background: rgba(244,63,94,0.1); color: var(--rose); }
.status.closed { background: rgba(59,130,246,0.1); color: var(--blue); }

/* Tags */
.tag { display: inline-flex; padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 500; }
.tag.purple { background: rgba(26,95,168,0.1); color: var(--purple); }
.tag.teal { background: rgba(20,184,166,0.1); color: var(--teal); }
.tag.blue { background: rgba(59,130,246,0.1); color: var(--blue); }
.tag.orange { background: rgba(249,115,22,0.1); color: var(--orange); }
.tag.pink { background: rgba(236,72,153,0.1); color: var(--pink); }

/* Table Controls */
.table-controls { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; border-bottom: 1px solid var(--border-light); gap: 16px; flex-wrap: wrap; }
.table-filter { display: flex; align-items: center; gap: 12px; }
.filter-select { height: 38px; padding: 0 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; font-family: var(--font); background: white; color: var(--text-secondary); }
.filter-input { width: 200px; height: 38px; padding: 0 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; font-family: var(--font); }
.filter-input:focus, .filter-select:focus { outline: none; border-color: var(--primary); }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; border-top: 1px solid var(--border-light); }
.pagination-info { font-size: 13px; color: var(--text-muted); }
.pagination-btns { display: flex; gap: 6px; }
.page-btn { min-width: 36px; height: 36px; padding: 0 12px; background: white; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; font-family: var(--font); color: var(--text-secondary); cursor: pointer; transition: all 0.2s; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: linear-gradient(135deg, var(--primary), var(--purple)); border-color: transparent; color: white; }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; border-radius: 10px; font-size: 14px; font-weight: 600; font-family: var(--font); border: none; cursor: pointer; transition: all 0.2s; text-decoration: none; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--purple)); color: white; box-shadow: 0 4px 12px rgba(26,95,168,0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(99,102,241,0.4); }
.btn-secondary { background: linear-gradient(135deg, var(--teal), var(--cyan)); color: white; }
.btn-secondary:hover { transform: translateY(-2px); }
.btn-outline { background: white; color: var(--text-secondary); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-danger { background: linear-gradient(135deg, var(--rose), var(--pink)); color: white; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 15px; }

/* ===== FORMS ===== */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group.full { grid-column: span 2; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-dark); margin-bottom: 8px; }
.form-input { width: 100%; height: 44px; padding: 0 14px; background: var(--bg-light); border: 1px solid var(--border); border-radius: 10px; font-size: 14px; font-family: var(--font); color: var(--text-primary); transition: all 0.2s; }
.form-input:focus { outline: none; border-color: var(--primary); background: white; }
textarea.form-input { height: auto; min-height: 100px; padding: 12px 14px; resize: vertical; }
select.form-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2394A3B8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; cursor: pointer; }
select.form-input[multiple] { height: auto; min-height: 120px; padding: 10px; background-image: none; }
.form-error { color: var(--rose); font-size: 12px; margin-top: 4px; }
.form-hint { color: var(--text-muted); font-size: 12px; margin-top: 4px; }

/* ===== PROFILE ===== */
.profile-grid { display: grid; grid-template-columns: 280px 1fr; gap: 24px; }
.profile-card { background: var(--bg-card); border-radius: var(--radius); padding: 28px; text-align: center; box-shadow: var(--shadow-sm); }
.profile-avatar { width: 110px; height: 110px; margin: 0 auto 20px; border-radius: 20px; background: linear-gradient(135deg, var(--purple), var(--pink)); display: flex; align-items: center; justify-content: center; position: relative; box-shadow: 0 8px 20px rgba(139,92,246,0.3); }
.profile-avatar i { font-size: 44px; color: white; }
.profile-avatar img { width: 100%; height: 100%; border-radius: 20px; object-fit: cover; }
.profile-avatar-edit { position: absolute; bottom: -6px; right: -6px; width: 34px; height: 34px; background: white; border-radius: 8px; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md); color: var(--primary); cursor: pointer; }
.profile-name { font-size: 20px; font-weight: 700; color: var(--text-dark); margin-bottom: 4px; }
.profile-role { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.profile-badge { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; background: rgba(16,185,129,0.1); color: var(--emerald); border-radius: 20px; font-size: 12px; font-weight: 600; }
.company-card { background: var(--bg-card); border-radius: var(--radius); padding: 20px; text-align: center; margin-top: 16px; box-shadow: var(--shadow-sm); }
.company-logo { width: 100px; height: 50px; margin: 0 auto 10px; display: flex; align-items: center; justify-content: center; }
.company-logo img { max-width: 100%; max-height: 100%; }
.company-label { font-size: 12px; color: var(--text-muted); }
.profile-form { background: var(--bg-card); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.profile-form-header { margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border-light); }
.profile-form-header h2 { font-size: 18px; font-weight: 700; color: var(--text-dark); margin-bottom: 4px; }
.profile-form-header p { font-size: 13px; color: var(--text-muted); }

/* ===== RFA SUMMARY ===== */
.rfa-card { background: var(--bg-card); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.rfa-header { background: linear-gradient(135deg, var(--primary), var(--purple), var(--pink)); padding: 28px; position: relative; }
.rfa-header h2 { font-size: 22px; font-weight: 700; color: white; }
.rfa-content { padding: 28px; }
.rfa-profile { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--border-light); }
.rfa-avatar { width: 110px; height: 110px; border-radius: 16px; overflow: hidden; background: linear-gradient(135deg, var(--teal), var(--cyan)); box-shadow: 0 8px 24px rgba(20,184,166,0.25); flex-shrink: 0; }
.rfa-avatar img { width: 100%; height: 100%; object-fit: cover; }
.rfa-info h3 { font-size: 20px; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.rfa-agency { display: inline-flex; padding: 6px 12px; background: var(--bg-muted); border-radius: 6px; }
.rfa-agency img { height: 16px; }
.rfa-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 28px; }
.rfa-field { padding: 16px; background: var(--bg-light); border-radius: 10px; border-left: 3px solid; }
.rfa-field:nth-child(1) { border-color: var(--purple); }
.rfa-field:nth-child(2) { border-color: var(--teal); }
.rfa-field:nth-child(3) { border-color: var(--pink); }
.rfa-field:nth-child(4) { border-color: var(--orange); }
.rfa-field:nth-child(5) { border-color: var(--blue); }
.rfa-field:nth-child(6) { border-color: var(--emerald); }
.rfa-field:nth-child(7) { border-color: var(--rose); }
.rfa-field:nth-child(8) { border-color: var(--cyan); }
.rfa-field label { display: block; font-size: 10px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.rfa-field .value { font-size: 14px; font-weight: 600; color: var(--text-dark); }
.rfa-attachment { margin-bottom: 24px; }
.rfa-attachment > label { display: block; font-size: 13px; font-weight: 600; color: var(--text-dark); margin-bottom: 10px; }
.rfa-attachment-preview { background: var(--bg-light); border-radius: 10px; padding: 14px; }
.rfa-attachment-preview img { width: 100%; border-radius: 8px; }
.rfa-actions { display: flex; gap: 14px; }
.rfa-actions .btn { flex: 1; }

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 50px; }
.empty-state i { font-size: 48px; color: var(--text-light); margin-bottom: 16px; }
.empty-state h3 { font-size: 16px; font-weight: 600; color: var(--text-dark); margin-bottom: 6px; }
.empty-state p { font-size: 13px; color: var(--text-muted); }

/* ===== ALERTS ===== */
.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; display: flex; align-items: center; gap: 12px; }
.alert i { font-size: 18px; }
.alert-success { background: rgba(16,185,129,0.1); color: var(--emerald); border: 1px solid rgba(16,185,129,0.2); }
.alert-error { background: rgba(244,63,94,0.1); color: var(--rose); border: 1px solid rgba(244,63,94,0.2); }
.alert-warning { background: rgba(251,191,36,0.1); color: var(--amber); border: 1px solid rgba(251,191,36,0.2); }
.alert-info { background: rgba(59,130,246,0.1); color: var(--blue); border: 1px solid rgba(59,130,246,0.2); }

/* ===== FOOTER ===== */
.footer { padding: 20px 28px; text-align: center; font-size: 13px; color: var(--text-muted); background: rgba(255,255,255,0.7); backdrop-filter: blur(10px); margin-top: auto; }
.footer a { background: linear-gradient(135deg, var(--primary), var(--purple)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-weight: 600; }

/* ===== AUTH PAGES ===== */
.auth-container { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-card { background: var(--bg-card); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; max-width: 440px; padding: 40px; }
.auth-header { text-align: center; margin-bottom: 32px; }
.auth-header .logo { justify-content: center; margin-bottom: 24px; }
.auth-header h1 { font-size: 24px; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.auth-header p { font-size: 14px; color: var(--text-muted); }
.auth-footer { text-align: center; margin-top: 24px; font-size: 14px; color: var(--text-muted); }
.auth-footer a { color: var(--primary); font-weight: 600; }
.auth-divider { display: flex; align-items: center; gap: 16px; margin: 24px 0; color: var(--text-muted); font-size: 13px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ===== TOGGLE SWITCH ===== */
.toggle { position: relative; width: 50px; height: 28px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background: var(--border); border-radius: 28px; transition: 0.3s; }
.toggle-slider::before { position: absolute; content: ''; height: 22px; width: 22px; left: 3px; bottom: 3px; background: white; border-radius: 50%; transition: 0.3s; }
.toggle input:checked + .toggle-slider { background: var(--emerald); }
.toggle input:checked + .toggle-slider::before { transform: translateX(22px); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1400px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 1200px) { .profile-grid { grid-template-columns: 1fr; } .rfa-grid { grid-template-columns: 1fr; } .form-row { grid-template-columns: 1fr; } .form-group.full { grid-column: span 1; } .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 768px) { .sidebar { transform: translateX(-100%); } .sidebar.open { transform: translateX(0); } .main { margin-left: 0; } .content { padding: 20px; } .stats-grid { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

/* ===== APP LAYOUT WRAPPER ===== */
.alert { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: 10px; font-size: 14px; font-weight: 500; }
.alert i { font-size: 16px; }

.content { overflow-x: hidden; }
.grid-2 { min-width: 0; }
.grid-2 > * { min-width: 0; overflow: hidden; }
.card { min-width: 0; }

/* ===== ADMIN PANEL LAYOUT (app-layout uses flex, not fixed sidebar offset) ===== */
/* Agency/carrier: sidebar is position:fixed → .main needs margin-left (default above) */
/* Admin: sidebar must be sticky in flex flow so content sits beside it, not under it */
.app-layout {
    display: flex;
    min-height: 100vh;
}
.app-layout .sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    flex-shrink: 0;
    overflow-y: auto;
}
.app-layout .main {
    flex: 1;
    margin-left: 0;
    min-width: 0;
    overflow-x: hidden;
}
/* ===== GENERAL OVERFLOW FIXES ===== */
.card { min-width: 0; }
.grid-2 > * { min-width: 0; }
