/* MAG Medical Assistance Group - Sistema Clínico */
/* Palette: Navy #1B2B6B, Sky #4A90D9, Medical Red #C0392B, White #FFFFFF, Light #F0F4FA, Dark #1A1A2E */

:root {
    --navy: #1B2B6B;
    --navy-dark: #111D4A;
    --sky: #4A90D9;
    --sky-light: #7FB3E8;
    --red: #C0392B;
    --red-dark: #922B21;
    --white: #FFFFFF;
    --light: #F0F4FA;
    --light-gray: #E8EEF7;
    --gray: #8492A6;
    --dark: #1A1A2E;
    --success: #27AE60;
    --warning: #F39C12;
    --info: #2980B9;
    --sidebar-w: 260px;
}

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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--light);
    color: var(--dark);
    min-height: 100vh;
}

/* ===== SIDEBAR ===== */
.sidebar {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    width: var(--sidebar-w);
    background: linear-gradient(180deg, var(--navy-dark) 0%, var(--navy) 100%);
    overflow-y: auto;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: transform .3s ease;
}

.sidebar-brand {
    padding: 20px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,.1);
    background: rgba(0,0,0,.2);
}

.sidebar-brand img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 8px;
    background: white;
    padding: 3px;
}

.sidebar-brand-text { flex: 1; }
.sidebar-brand-text h6 {
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
    line-height: 1.3;
    text-transform: uppercase;
}
.sidebar-brand-text span {
    color: var(--sky-light);
    font-size: 10px;
    letter-spacing: 1px;
}

.sidebar-section {
    padding: 16px 0 8px;
}

.sidebar-section-label {
    padding: 0 16px 8px;
    color: rgba(255,255,255,.35);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.nav-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: rgba(255,255,255,.75);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    transition: all .2s;
    border-left: 3px solid transparent;
    position: relative;
}

.nav-item a:hover,
.nav-item a.active {
    background: rgba(74,144,217,.2);
    color: var(--white);
    border-left-color: var(--sky);
}

.nav-item a .nav-icon {
    width: 20px;
    text-align: center;
    font-size: 16px;
    opacity: .8;
}

.sidebar-footer {
    margin-top: auto;
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,.1);
}

.user-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(255,255,255,.08);
    border-radius: 10px;
    color: var(--white);
}

.user-avatar {
    width: 36px; height: 36px;
    background: var(--sky);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.user-info { flex: 1; min-width: 0; }
.user-info strong { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-info small { color: rgba(255,255,255,.5); font-size: 11px; }

/* ===== MAIN CONTENT ===== */
.main-content {
    margin-left: var(--sidebar-w);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== TOPBAR ===== */
.topbar {
    background: var(--white);
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(27,43,107,.08);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid var(--light-gray);
}

.topbar-left { display: flex; align-items: center; gap: 16px; }
.page-title { font-size: 18px; font-weight: 700; color: var(--navy); }
.page-breadcrumb { font-size: 12px; color: var(--gray); }

.topbar-right { display: flex; align-items: center; gap: 12px; }

.topbar-btn {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    background: var(--light);
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    color: var(--gray);
    cursor: pointer;
    text-decoration: none;
    font-size: 16px;
    transition: all .2s;
}
.topbar-btn:hover { background: var(--navy); color: white; border-color: var(--navy); }

/* ===== CONTENT AREA ===== */
.content-area {
    padding: 24px;
    flex: 1;
}

/* ===== PAGE HEADER ===== */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.page-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--navy);
}

/* ===== CARDS ===== */
.card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(27,43,107,.07);
    border: 1px solid var(--light-gray);
    overflow: hidden;
    margin-bottom: 20px;
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--white);
}

.card-header h5 {
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    margin: 0;
}

.card-body { padding: 20px; }

/* ===== STAT CARDS ===== */
.stat-card {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 12px rgba(27,43,107,.07);
    border: 1px solid var(--light-gray);
    transition: transform .2s, box-shadow .2s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(27,43,107,.12); }

.stat-icon {
    width: 56px; height: 56px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}
.stat-icon.blue { background: rgba(74,144,217,.15); color: var(--sky); }
.stat-icon.red { background: rgba(192,57,43,.15); color: var(--red); }
.stat-icon.green { background: rgba(39,174,96,.15); color: var(--success); }
.stat-icon.orange { background: rgba(243,156,18,.15); color: var(--warning); }
.stat-icon.navy { background: rgba(27,43,107,.15); color: var(--navy); }

.stat-info { flex: 1; }
.stat-value { font-size: 28px; font-weight: 700; color: var(--dark); line-height: 1; }
.stat-label { font-size: 13px; color: var(--gray); margin-top: 4px; }
.stat-change { font-size: 12px; margin-top: 6px; }
.stat-change.up { color: var(--success); }
.stat-change.down { color: var(--red); }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all .2s;
    white-space: nowrap;
}
.btn:focus { outline: 2px solid var(--sky); outline-offset: 2px; }

.btn-primary { background: var(--navy); color: white; }
.btn-primary:hover { background: var(--navy-dark); color: white; transform: translateY(-1px); }

.btn-sky { background: var(--sky); color: white; }
.btn-sky:hover { background: #3a7bc8; color: white; }

.btn-danger { background: var(--red); color: white; }
.btn-danger:hover { background: var(--red-dark); color: white; }

.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: #1e8449; color: white; }

.btn-outline {
    background: transparent;
    color: var(--navy);
    border: 1.5px solid var(--navy);
}
.btn-outline:hover { background: var(--navy); color: white; }

.btn-light { background: var(--light); color: var(--dark); border: 1px solid var(--light-gray); }
.btn-light:hover { background: var(--light-gray); }

.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-xs { padding: 3px 8px; font-size: 11px; }

.btn-icon {
    width: 32px; height: 32px; padding: 0;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 7px;
}

/* ===== TABLES ===== */
.table-wrap { overflow-x: auto; }

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.table th {
    padding: 10px 14px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .7px;
    text-transform: uppercase;
    color: var(--gray);
    background: var(--light);
    border-bottom: 2px solid var(--light-gray);
    white-space: nowrap;
}

.table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--light-gray);
    vertical-align: middle;
}

.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: rgba(240,244,250,.5); }

.table-actions { display: flex; gap: 6px; justify-content: flex-end; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 16px; }

.form-label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
    letter-spacing: .3px;
}

.form-control, .form-select {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid var(--light-gray);
    border-radius: 8px;
    font-size: 13.5px;
    color: var(--dark);
    background: var(--white);
    transition: border-color .2s, box-shadow .2s;
    font-family: inherit;
}

.form-control:focus, .form-select:focus {
    outline: none;
    border-color: var(--sky);
    box-shadow: 0 0 0 3px rgba(74,144,217,.15);
}

.form-control.is-invalid { border-color: var(--red); }
textarea.form-control { resize: vertical; min-height: 80px; }

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

.form-row-2 { grid-template-columns: repeat(2, 1fr); }
.form-row-3 { grid-template-columns: repeat(3, 1fr); }
.form-row-4 { grid-template-columns: repeat(4, 1fr); }

/* ===== BADGES ===== */
.badge {
    display: inline-flex; align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .4px;
}
.badge-success { background: rgba(39,174,96,.15); color: #1e8449; }
.badge-danger { background: rgba(192,57,43,.15); color: var(--red-dark); }
.badge-warning { background: rgba(243,156,18,.15); color: #d68910; }
.badge-info { background: rgba(74,144,217,.15); color: #2471a3; }
.badge-primary { background: rgba(27,43,107,.15); color: var(--navy); }
.badge-gray { background: var(--light-gray); color: var(--gray); }

/* ===== ALERTS ===== */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 13.5px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.alert-success { background: rgba(39,174,96,.1); color: #1e8449; border: 1px solid rgba(39,174,96,.2); }
.alert-danger { background: rgba(192,57,43,.1); color: var(--red-dark); border: 1px solid rgba(192,57,43,.2); }
.alert-warning { background: rgba(243,156,18,.1); color: #d68910; border: 1px solid rgba(243,156,18,.2); }
.alert-info { background: rgba(74,144,217,.1); color: #2471a3; border: 1px solid rgba(74,144,217,.2); }

/* ===== SEARCH BAR ===== */
.search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--light);
    border: 1.5px solid var(--light-gray);
    border-radius: 8px;
    padding: 6px 12px;
    transition: border-color .2s;
}
.search-bar:focus-within { border-color: var(--sky); }
.search-bar input {
    border: none; background: none; outline: none;
    font-size: 13.5px; color: var(--dark); width: 220px;
}
.search-bar .icon { color: var(--gray); }

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.5);
    display: none; align-items: center; justify-content: center;
    z-index: 2000; padding: 16px;
}
.modal-overlay.active { display: flex; }

.modal-box {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
    animation: modalIn .2s ease;
}
@keyframes modalIn { from { opacity: 0; transform: scale(.95) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }

.modal-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--light-gray);
    display: flex; align-items: center; justify-content: space-between;
}
.modal-header h5 { font-size: 17px; font-weight: 700; color: var(--navy); }
.modal-body { padding: 20px 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--light-gray); display: flex; gap: 8px; justify-content: flex-end; }

.btn-close {
    background: none; border: none; font-size: 20px; cursor: pointer;
    color: var(--gray); width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 6px; transition: background .2s;
}
.btn-close:hover { background: var(--light); color: var(--dark); }

/* ===== GRID ===== */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2-1 { grid-template-columns: 2fr 1fr; }

/* ===== LOGIN PAGE ===== */
.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--sky) 100%);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.login-bg-pattern {
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

.login-card {
    background: var(--white);
    border-radius: 20px;
    padding: 48px 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 30px 80px rgba(0,0,0,.3);
    position: relative;
    z-index: 1;
}

.login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 12px;
}

.login-logo h2 {
    font-size: 17px;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: .5px;
    text-transform: uppercase;
}

.login-logo p { font-size: 12px; color: var(--gray); letter-spacing: 1.5px; text-transform: uppercase; }

.login-divider {
    display: flex; align-items: center; gap: 12px;
    margin: 24px 0;
}
.login-divider::before, .login-divider::after {
    content: ''; flex: 1;
    height: 1px; background: var(--light-gray);
}
.login-divider span { font-size: 12px; color: var(--gray); }

/* ===== HAMBURGER ===== */
.hamburger {
    display: none;
    background: none; border: none;
    font-size: 22px; cursor: pointer;
    color: var(--navy); padding: 4px;
}

/* ===== PATIENT CARD ===== */
.patient-row { display: flex; align-items: center; gap: 12px; }
.patient-avatar {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--sky), var(--navy));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 700; font-size: 13px;
    flex-shrink: 0;
}
.patient-name { font-weight: 600; font-size: 13.5px; }
.patient-info { font-size: 12px; color: var(--gray); }

/* ===== TABS ===== */
.tabs {
    display: flex; gap: 4px;
    border-bottom: 2px solid var(--light-gray);
    margin-bottom: 20px;
}
.tab-btn {
    padding: 8px 16px;
    background: none; border: none;
    font-size: 13px; font-weight: 600;
    color: var(--gray);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all .2s;
    text-decoration: none;
    display: inline-block;
}
.tab-btn.active, .tab-btn:hover { color: var(--navy); border-bottom-color: var(--navy); }

/* ===== UTILS ===== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--gray); }
.text-navy { color: var(--navy); }
.text-red { color: var(--red); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.fw-bold { font-weight: 700; }
.fw-600 { font-weight: 600; }
.fs-sm { font-size: 12px; }
.fs-xs { font-size: 11px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.w-100 { width: 100%; }
.flex-1 { flex: 1; }
.hidden { display: none; }
.no-data { text-align: center; padding: 40px; color: var(--gray); }
.no-data svg, .no-data i { font-size: 48px; margin-bottom: 12px; opacity: .3; }

/* ===== SIDEBAR OVERLAY ===== */
.sidebar-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 999;
}

/* ===== DYNAMIC ROWS ===== */
.dynamic-table { border: 1px solid var(--light-gray); border-radius: 8px; overflow: hidden; }
.dynamic-table th { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--gray); background: var(--light); padding: 8px 12px; }
.dynamic-table td { padding: 8px 12px; border-top: 1px solid var(--light-gray); }
.dynamic-table td input, .dynamic-table td select { padding: 5px 8px; border: 1px solid var(--light-gray); border-radius: 6px; font-size: 13px; width: 100%; }
.add-row-btn { display: flex; align-items: center; gap: 6px; padding: 8px 12px; color: var(--sky); font-size: 13px; font-weight: 600; cursor: pointer; background: rgba(74,144,217,.08); border: 1px dashed var(--sky); border-radius: 0 0 8px 8px; width: 100%; border-top: none; }

/* ===== PRINT ===== */
@media print {
    .sidebar, .topbar, .page-header .btn, .table-actions, .btn { display: none !important; }
    .main-content { margin-left: 0 !important; }
    body { background: white; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .form-row-4 { grid-template-columns: repeat(2, 1fr); }
    .form-row-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-2-1 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    :root { --sidebar-w: 260px; }
    
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .sidebar-overlay.active { display: block; }
    
    .main-content { margin-left: 0; }
    .hamburger { display: block; }
    
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .form-row-2, .form-row-3, .form-row-4 { grid-template-columns: 1fr; }
    
    .content-area { padding: 16px; }
    .login-card { padding: 32px 24px; }
    .page-header { flex-direction: column; align-items: flex-start; }
    
    .topbar { padding: 0 16px; }
    .page-title { font-size: 15px; }
    
    .table th, .table td { padding: 8px 10px; font-size: 12.5px; }
    .stat-value { font-size: 22px; }
}

@media (max-width: 480px) {
    .search-bar input { width: 140px; }
    .btn { padding: 7px 14px; font-size: 13px; }
    .stat-card { flex-direction: column; text-align: center; gap: 10px; }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--light-gray); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray); }

.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.2); }

/* ===== CALENDAR / AGENDA ===== */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
.cal-day {
    aspect-ratio: 1;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; cursor: pointer;
    transition: background .2s;
    position: relative;
}
.cal-day:hover { background: var(--light); }
.cal-day.today { background: var(--navy); color: white; font-weight: 700; }
.cal-day.has-event::after {
    content: '';
    position: absolute;
    bottom: 4px; left: 50%;
    transform: translateX(-50%);
    width: 4px; height: 4px;
    background: var(--sky);
    border-radius: 50%;
}

/* ===== VITALS ===== */
.vital-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px,1fr)); gap: 12px; }
.vital-box {
    background: var(--light);
    border-radius: 10px;
    padding: 14px;
    text-align: center;
    border: 1px solid var(--light-gray);
}
.vital-value { font-size: 22px; font-weight: 700; color: var(--navy); }
.vital-unit { font-size: 11px; color: var(--gray); }
.vital-label { font-size: 12px; color: var(--gray); margin-top: 4px; }

/* ===== PRESCRIPTION PRINT ===== */
.rx-header { border-bottom: 3px solid var(--navy); padding-bottom: 16px; margin-bottom: 20px; }
.rx-logo { display: flex; align-items: center; gap: 16px; }
.rx-symbol { font-size: 48px; color: var(--navy); font-weight: 700; opacity: .15; }
.rx-items { list-style: none; }
.rx-item { padding: 12px 0; border-bottom: 1px dashed var(--light-gray); }
.rx-med { font-weight: 700; font-size: 15px; }
.rx-dose { color: var(--gray); font-size: 13px; margin-top: 4px; }

/* ===== ADDITIONAL UTILITIES ===== */
.stats-row { display: grid; gap: 16px; }
.stat-card { background: #fff; border-radius: 10px; padding: 16px; border-left: 4px solid var(--sky); box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.stat-card .stat-value { font-size: 20px; font-weight: 700; color: var(--navy); }
.stat-card .stat-label { font-size: 12px; color: var(--gray); margin-top: 4px; }
.form-hint { display: block; font-size: 11px; color: var(--gray); margin-top: 4px; }
.section-subtitle { font-size: 15px; font-weight: 700; color: var(--navy); margin: 20px 0 10px; display: flex; align-items: center; gap: 6px; }
.table-borderless td, .table-borderless th { border: none !important; }
.item-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--light-gray); }
.item-row:last-child { border-bottom: none; }
.filters-bar { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.table-responsive { overflow-x: auto; }
.action-buttons { display: flex; gap: 6px; }
.required::after { content: " *"; color: var(--red); }
.text-success { color: #27ae60; }
.text-danger { color: var(--red); }
.text-warning { color: #e67e22; }
.text-muted { color: var(--gray); }
.text-center { text-align: center; }
.badge-secondary { background: #e9ecef; color: #495057; }
.badge-primary { background: rgba(74,144,217,.15); color: var(--sky); }
