/* ==========================================================
   Vic Sales Engine - app.css
   Premium SaaS Dashboard - Dark Green Glassmorphism Theme
   ========================================================== */

:root {
    --primary:       #1a7a4a;
    --primary-dark:  #145f39;
    --primary-light: #22a862;
    --primary-glow:  rgba(26,122,74,.18);
    --accent:        #00e58a;
    --bg:            #0d1a14;
    --bg-2:          #111e18;
    --bg-3:          #162a20;
    --surface:       rgba(255,255,255,.045);
    --surface-hover: rgba(255,255,255,.075);
    --border:        rgba(255,255,255,.08);
    --border-focus:  rgba(0,229,138,.5);
    --text:          #e8f0ec;
    --text-muted:    #7a9a88;
    --text-dim:      #4a6a58;
    --danger:        #e55;
    --danger-dark:   #c33;
    --whatsapp:      #25d366;
    --whatsapp-dark: #128c7e;
    --success:       #22c55e;
    --warning:       #f59e0b;
    --radius:        16px;
    --radius-sm:     10px;
    --sidebar-w:     240px;
    --shadow:        0 4px 24px rgba(0,0,0,.4);
    --shadow-card:   0 2px 12px rgba(0,0,0,.3);
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

/* ============================
   TYPOGRAPHY
   ============================ */
h1,h2,h3 { font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
p  { color: var(--text-muted); }
a  { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
small { font-size: .8rem; color: var(--text-muted); }

/* ============================
   LAYOUT
   ============================ */
.app-wrapper { display: flex; min-height: 100vh; position: relative; }

.main-content {
    flex: 1;
    padding: 32px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}
.main-content.with-sidebar { margin-left: var(--sidebar-w); max-width: calc(1200px + var(--sidebar-w)); }

/* ============================
   SIDEBAR
   ============================ */
.sidebar {
    width: var(--sidebar-w);
    background: var(--bg-2);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 100;
    overflow-y: auto;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 24px 20px;
    color: var(--accent);
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
}

.nav-list { list-style: none; padding: 12px 0; flex: 1; }
.nav-list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 20px;
    color: var(--text-muted);
    font-size: .9rem;
    font-weight: 500;
    transition: all .2s;
    border-left: 3px solid transparent;
}
.nav-list li a:hover { color: var(--text); background: var(--surface-hover); text-decoration: none; }
.nav-list li a.active { color: var(--accent); border-left-color: var(--accent); background: var(--primary-glow); }

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}
.user-info { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.user-avatar {
    width: 34px; height: 34px;
    background: var(--primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .85rem; font-weight: 700;
    color: #fff; flex-shrink: 0;
}
.user-name { font-size: .85rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-role { font-size: .72rem; color: var(--text-muted); }
.logout-btn { color: var(--text-dim); transition: color .2s; padding: 6px; }
.logout-btn:hover { color: var(--danger); text-decoration: none; }

.sidebar-toggle {
    display: none;
    position: fixed;
    top: 16px; left: 16px;
    z-index: 200;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px;
    cursor: pointer;
    color: var(--text);
}

/* ============================
   IMPERSONATION BANNER
   ============================ */
.impersonation-banner {
    background: linear-gradient(135deg, #7b3f00, #a35200);
    color: #fff;
    text-align: center;
    padding: 10px 16px;
    font-size: .85rem;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    position: sticky; top: 0; z-index: 500;
}
.impersonation-banner a { color: #ffe08a; text-decoration: underline; }

/* ============================
   PAGE HEADER
   ============================ */
.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.page-title { color: var(--text); margin-bottom: 4px; }
.page-subtitle { font-size: .9rem; color: var(--text-muted); }
.back-link { font-size: .85rem; color: var(--text-muted); display: inline-block; margin-bottom: 6px; }
.back-link:hover { color: var(--accent); }

/* ============================
   CARDS
   ============================ */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(8px);
    margin-bottom: 20px;
}
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}
.card-title { color: var(--text); font-size: 1rem; font-weight: 600; }

/* ============================
   METRICS GRID
   ============================ */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.metric-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}
.metric-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.metric-card--accent { border-color: rgba(0,229,138,.2); }
.metric-card--green { border-color: rgba(26,122,74,.4); background: linear-gradient(135deg, var(--surface), rgba(26,122,74,.12)); }
.metric-icon { margin-bottom: 12px; color: var(--primary-light); }
.metric-icon.metric-green { color: var(--accent); }
.metric-value { font-size: 1.8rem; font-weight: 800; color: var(--text); line-height: 1.1; margin-bottom: 4px; }
.metric-label { font-size: .8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }

/* ============================
   BUTTONS
   ============================ */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-size: .88rem; font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all .18s;
    text-decoration: none !important;
    white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary-dark); }
.btn-primary:hover { background: var(--primary-light); }
.btn-secondary { background: var(--surface-hover); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.15); }
.btn-danger { background: rgba(229,85,85,.15); color: #ff8888; border-color: rgba(229,85,85,.3); }
.btn-danger:hover { background: rgba(229,85,85,.3); }
.btn-success { background: rgba(34,197,94,.15); color: #4ade80; border-color: rgba(34,197,94,.3); }
.btn-success:hover { background: rgba(34,197,94,.3); }
.btn-whatsapp { background: rgba(37,211,102,.15); color: var(--whatsapp); border-color: rgba(37,211,102,.3); }
.btn-whatsapp:hover { background: rgba(37,211,102,.3); }
.btn-ghost { background: transparent; color: var(--text-muted); border-color: transparent; }
.btn-ghost:hover { background: var(--surface-hover); }
.btn-sm { padding: 6px 12px; font-size: .8rem; }
.btn-full { width: 100%; justify-content: center; margin-bottom: 8px; }
.btn-group { display: flex; gap: 8px; flex-wrap: wrap; }

/* ============================
   FORMS
   ============================ */
.form-card { max-width: 760px; }
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group--full { grid-column: 1 / -1; }
label { font-size: .85rem; font-weight: 600; color: var(--text-muted); }
.checkbox-label { flex-direction: row; align-items: center; cursor: pointer; font-size: .9rem; color: var(--text); }
input, select, textarea {
    background: rgba(255,255,255,.06);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    padding: 10px 14px;
    font-size: .9rem;
    font-family: inherit;
    transition: border-color .18s, box-shadow .18s;
    width: 100%;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(0,229,138,.12);
}
input::placeholder, textarea::placeholder { color: var(--text-dim); }
select option { background: var(--bg-2); color: var(--text); }
textarea { resize: vertical; }
.input-icon { position: relative; }
.input-icon svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-dim); pointer-events: none; }
.input-icon input { padding-left: 40px; }
.form-actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
.info-box {
    background: rgba(0,229,138,.08);
    border: 1px solid rgba(0,229,138,.2);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: .85rem;
    margin-bottom: 20px;
    color: var(--text-muted);
}

/* ============================
   TABLES
   ============================ */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.table th {
    text-align: left; padding: 10px 14px;
    font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
    color: var(--text-muted); border-bottom: 1px solid var(--border);
}
.table td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: var(--surface-hover); }
.actions-cell { white-space: nowrap; }

/* ============================
   BADGES
   ============================ */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: .75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .04em;
}
.badge-new       { background: rgba(100,160,255,.15); color: #82b4ff; border: 1px solid rgba(100,160,255,.3); }
.badge-contacted { background: rgba(255,200,80,.1);  color: #ffd060; border: 1px solid rgba(255,200,80,.3); }
.badge-hot       { background: rgba(255,100,80,.12); color: #ff9080; border: 1px solid rgba(255,100,80,.3); }
.badge-followup  { background: rgba(180,80,255,.1);  color: #c080ff; border: 1px solid rgba(180,80,255,.3); }
.badge-paid      { background: rgba(34,197,94,.12);  color: #4ade80; border: 1px solid rgba(34,197,94,.3); }
.badge-lost      { background: rgba(150,150,150,.1); color: #888;    border: 1px solid rgba(150,150,150,.2); }

/* ============================
   ALERTS
   ============================ */
.alert {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: .9rem;
}
.alert-error   { background: rgba(229,85,85,.12); border: 1px solid rgba(229,85,85,.3); color: #ff9999; }
.alert-success { background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.3); color: #86efac; }

/* ============================
   LEAD LIST (Dashboard)
   ============================ */
.lead-list { display: flex; flex-direction: column; }
.lead-item {
    display: flex; align-items: center; gap: 12px;
    padding: 14px;
    border-bottom: 1px solid var(--border);
    position: relative;
    transition: background .15s;
}
.lead-item:last-child { border-bottom: none; }
.lead-item:hover { background: var(--surface-hover); }
.lead-link-overlay { position: absolute; inset: 0; }
.lead-avatar {
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--primary-glow); border: 1px solid rgba(0,229,138,.2);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: .85rem; color: var(--accent); flex-shrink: 0;
}
.lead-info { flex: 1; min-width: 0; }
.lead-name { font-weight: 600; font-size: .9rem; }
.lead-meta { font-size: .78rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lead-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.lead-time { font-size: .72rem; color: var(--text-dim); }

/* ============================
   FOLLOW-UP LIST
   ============================ */
.followup-list { display: flex; flex-direction: column; gap: 12px; }
.followup-card {
    display: flex; align-items: center; gap: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    flex-wrap: wrap;
}
.followup-avatar {
    width: 42px; height: 42px; border-radius: 50%;
    background: var(--primary-glow); border: 1px solid rgba(0,229,138,.2);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: var(--accent); flex-shrink: 0;
}
.followup-info { flex: 1; min-width: 180px; }
.followup-name { font-weight: 600; }
.followup-meta { font-size: .82rem; color: var(--text-muted); }
.followup-time { font-size: .78rem; color: var(--primary-light); margin: 2px 0 6px; display: flex; align-items: center; gap: 4px; }
.followup-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ============================
   TABS
   ============================ */
.tab-bar { display: flex; gap: 4px; margin-bottom: 20px; border-bottom: 1px solid var(--border); padding-bottom: 4px; }
.tab {
    padding: 8px 18px;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    font-size: .88rem; font-weight: 600; color: var(--text-muted);
    transition: all .18s; text-decoration: none !important;
    border: 1px solid transparent;
}
.tab:hover { color: var(--text); background: var(--surface-hover); }
.tab.active { color: var(--accent); border-color: var(--border); border-bottom-color: var(--bg); background: var(--surface); }
.tab-count {
    display: inline-block; background: var(--primary-glow);
    color: var(--accent); border-radius: 100px;
    padding: 1px 7px; font-size: .72rem; margin-left: 4px;
}

/* ============================
   FILTER BAR
   ============================ */
.filter-bar { padding: 16px; }
.filter-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filter-form select { width: auto; min-width: 140px; }

/* ============================
   DETAIL LAYOUT
   ============================ */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
    align-items: start;
}
.detail-main { display: flex; flex-direction: column; gap: 0; }
.detail-sidebar { display: flex; flex-direction: column; gap: 0; }
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}
.info-item { display: flex; flex-direction: column; gap: 2px; }
.info-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim); }
.info-notes { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.info-notes p { margin-top: 6px; }

/* ============================
   STAGE FORM
   ============================ */
.stage-form { }
.stage-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.stage-btn {
    padding: 8px 16px;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    cursor: pointer;
    font-size: .85rem; font-weight: 600;
    transition: all .18s;
}
.stage-btn:hover { border-color: var(--primary-light); color: var(--primary-light); }
.stage-btn.active { background: var(--primary-glow); border-color: var(--accent); color: var(--accent); }

/* ============================
   NOTES TIMELINE
   ============================ */
.note-form { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.notes-timeline { display: flex; flex-direction: column; gap: 12px; }
.note-item { padding: 12px; background: var(--bg-3); border-radius: var(--radius-sm); }
.note-header { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; font-size: .8rem; }
.note-header strong { color: var(--accent); }
.note-header span { color: var(--text-dim); }
.note-item p { color: var(--text); font-size: .88rem; }

/* ============================
   PAYMENT INSTRUCTION CARD
   ============================ */
.payment-info-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px; margin-bottom: 20px;
}
.payment-info-item { display: flex; flex-direction: column; gap: 4px; }
.payment-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--text-dim); }
.payment-value { font-size: .95rem; font-weight: 600; color: var(--text); }
.payment-amount { font-size: 1.3rem; font-weight: 800; color: var(--accent); }
.payment-number { font-size: 1.1rem; font-weight: 700; color: var(--primary-light); }
.payment-txid { font-family: monospace; color: var(--success); }
.quick-actions { display: flex; flex-direction: column; gap: 4px; }

/* ============================
   TEMPLATE GRID
   ============================ */
.template-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.template-card { margin-bottom: 0; }
.template-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.template-body {
    background: var(--bg-3); border-radius: var(--radius-sm);
    padding: 12px; font-size: .85rem; color: var(--text-muted);
    white-space: pre-wrap; margin-bottom: 10px;
}
.template-placeholders { font-size: .75rem; color: var(--text-dim); }

/* ============================
   ANALYTICS
   ============================ */
.analytics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.bar-chart { display: flex; flex-direction: column; gap: 12px; }
.bar-row { display: flex; align-items: center; gap: 12px; }
.bar-label { font-size: .82rem; width: 90px; text-align: right; color: var(--text-muted); flex-shrink: 0; }
.bar-track { flex: 1; height: 10px; background: var(--bg-3); border-radius: 100px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-light)); border-radius: 100px; transition: width .4s ease; min-width: 4px; }
.bar-value { font-size: .82rem; font-weight: 700; color: var(--text); width: 30px; }
.revenue-list { display: flex; flex-direction: column; gap: 10px; }
.revenue-row { display: flex; justify-content: space-between; font-size: .9rem; padding: 8px 0; border-bottom: 1px solid var(--border); }
.revenue-row:last-child { border-bottom: none; }
.revenue-row strong { color: var(--accent); }

/* ============================
   PIPELINE STAGES
   ============================ */
.stage-list { display: flex; flex-direction: column; gap: 8px; }
.stage-row {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: grab;
}
.stage-row:active { cursor: grabbing; }
.drag-handle { font-size: 1.1rem; color: var(--text-dim); }
.stage-name { flex: 1; font-weight: 500; }

/* ============================
   AUTH
   ============================ */
.auth-container {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
    background: radial-gradient(ellipse at 50% 0%, rgba(26,122,74,.2) 0%, transparent 70%), var(--bg);
}
.auth-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    max-width: 420px; width: 100%;
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
}
.auth-logo { color: var(--accent); text-align: center; margin-bottom: 16px; }
.auth-title { font-size: 1.5rem; text-align: center; margin-bottom: 4px; }
.auth-brand { color: var(--text-muted); text-align: center; margin-bottom: 28px; font-size: .85rem; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-footer { text-align: center; margin-top: 24px; font-size: .75rem; color: var(--text-dim); }

/* ============================
   WHATSAPP LINK
   ============================ */
.whatsapp-link { display: inline-flex; align-items: center; gap: 5px; color: var(--whatsapp); font-size: .85rem; }
.whatsapp-link:hover { text-decoration: underline; }

/* ============================
   MOBILE BOTTOM BAR
   ============================ */
.mobile-bottom-bar {
    display: none;
    position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    padding: 8px 0;
    z-index: 300;
}
.mobile-action {
    display: flex; flex-direction: column; align-items: center;
    gap: 3px; flex: 1;
    color: var(--text-muted);
    font-size: .7rem; font-weight: 600;
    text-decoration: none !important;
    padding: 4px 8px;
}
.mobile-action:hover { color: var(--accent); }

/* ============================
   MISC
   ============================ */
.empty-state { text-align: center; padding: 40px 16px; color: var(--text-muted); }
.empty-state svg { margin: 0 auto 12px; display: block; color: var(--text-dim); }
.page-center { text-align: center; padding: 80px 16px; }
.hero-number { font-size: 5rem; font-weight: 900; color: var(--primary); }
.payment-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .85rem; }
.payment-item:last-child { border-bottom: none; }

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 900px) {
    .detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    :root { --sidebar-w: 0px; }
    .sidebar { transform: translateX(-100%); transition: transform .3s; width: 240px; }
    .sidebar.open { transform: translateX(0); }
    .sidebar-toggle { display: flex; }
    .main-content.with-sidebar { margin-left: 0; padding: 80px 16px 90px; }
    .mobile-bottom-bar { display: flex; }
    .metrics-grid { grid-template-columns: repeat(2, 1fr); }
    h1 { font-size: 1.4rem; }
    .btn { padding: 8px 14px; }
    .page-header { gap: 10px; }
    .auth-card { padding: 28px 20px; }
    .card { padding: 16px; }
    .followup-card { flex-wrap: wrap; }
}

@media (max-width: 480px) {
    .metrics-grid { grid-template-columns: 1fr 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .filter-form { flex-direction: column; }
    .filter-form select, .filter-form input { width: 100%; }
    .table-wrap { font-size: .8rem; }
    .btn-group { flex-direction: column; }
}
