/* ═══════════════════════════════════════════════════════════════════
   AC TechPro — Dashboard CSS v2.0
   Archivo: assets/css/dashboard.css
   ═══════════════════════════════════════════════════════════════════ */

/* ─── VARIABLES ─────────────────────────────────────────────────── */
:root {
    --ice:          #0ea5e9;
    --ice-dark:     #0369a1;
    --ice-pale:     #e0f2fe;
    --cold:         #38bdf8;
    --frost:        #f0f9ff;
    --dark:         #0c1a2e;
    --dark2:        #112240;
    --dark3:        #1e3a5f;
    --white:        #ffffff;
    --gray:         #64748b;
    --gray-light:   #f1f5f9;
    --green:        #10b981;
    --green-pale:   #d1fae5;
    --red:          #ef4444;
    --red-pale:     #fee2e2;
    --amber:        #f59e0b;
    --amber-pale:   #fef3c7;
    --border:       #e2e8f0;
    --sidebar-w:    260px;
    --topbar-h:     64px;
}

/* ─── BASE ──────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', sans-serif;
    background: #f8fafc;
    color: #1e293b;
    overflow-x: hidden;
}

/* ─── LAYOUT ────────────────────────────────────────────────────── */
.dash-layout {
    display: flex;
    min-height: 100vh;
}

.dash-main {
    margin-left: var(--sidebar-w);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-width: 0;
}

/* ─── SIDEBAR OVERLAY ───────────────────────────────────────────── */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 150;
    backdrop-filter: blur(2px);
}

.sidebar-overlay.show { display: block; }

/* ─── SIDEBAR ───────────────────────────────────────────────────── */
.sidebar {
    width: var(--sidebar-w);
    background: var(--dark);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 200;
    border-right: 1px solid rgba(14,165,233,0.12);
    overflow-y: auto;
    overflow-x: hidden;
    transition: transform 0.28s cubic-bezier(.4,0,.2,1);
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

/* Logo */
.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    text-decoration: none;
    flex-shrink: 0;
}

.sidebar-logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: var(--ice);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.sidebar-logo-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #fff;
    letter-spacing: -0.3px;
    line-height: 1.1;
}

.sidebar-logo-sub {
    font-size: 9px;
    color: var(--cold);
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Secciones nav */
.sidebar-section {
    padding: 18px 12px 6px;
    flex-shrink: 0;
}

.sidebar-section-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.22);
    padding: 0 8px;
    margin-bottom: 5px;
}

/* Nav items */
.sidebar-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    border-radius: 8px;
    color: rgba(255,255,255,0.52);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.16s ease;
    position: relative;
    white-space: nowrap;
}

.sidebar-nav a:hover {
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.9);
}

.sidebar-nav a.active {
    background: rgba(14,165,233,0.18);
    color: var(--cold);
}

.sidebar-nav a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 18px;
    background: var(--ice);
    border-radius: 0 3px 3px 0;
}

.sidebar-nav .nav-icon {
    font-size: 17px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    line-height: 1;
}

.sidebar-nav .nav-badge {
    margin-left: auto;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    line-height: 1.5;
    flex-shrink: 0;
}

.nav-badge       { background: var(--ice);   color: var(--dark); }
.nav-badge.red   { background: var(--red);   color: #fff; }
.nav-badge.green { background: var(--green); color: #fff; }
.nav-badge.amber { background: var(--amber); color: #fff; }

/* Footer usuario */
.sidebar-footer {
    margin-top: auto;
    padding: 12px;
    border-top: 1px solid rgba(255,255,255,0.07);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    border-radius: 9px;
    background: rgba(255,255,255,0.05);
    cursor: pointer;
    transition: background 0.16s;
    text-decoration: none;
}

.sidebar-user:hover { background: rgba(255,255,255,0.09); }

.sidebar-user-settings {
    margin-left: auto;
    text-decoration: none;
    flex-shrink: 0;
    line-height: 1;
}

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ice) 0%, var(--ice-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.user-info { flex: 1; min-width: 0; }

.user-name {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.user-role {
    font-size: 10px;
    color: rgba(255,255,255,0.38);
    line-height: 1.2;
}

.sidebar-logout {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    color: rgba(255,255,255,0.35);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.16s;
}

.sidebar-logout:hover {
    background: rgba(239,68,68,0.12);
    color: #fca5a5;
}

.sidebar-logout .ti { font-size: 15px; }

/* ─── TOPBAR ────────────────────────────────────────────────────── */
.topbar {
    background: #fff;
    height: var(--topbar-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    flex-shrink: 0;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.topbar-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -0.2px;
    line-height: 1.2;
}

.topbar-breadcrumb {
    font-size: 11px;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 4px;
    line-height: 1;
}

.topbar-breadcrumb span { color: var(--ice-dark); font-weight: 500; }

.topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--gray);
    transition: all 0.16s;
    position: relative;
    text-decoration: none;
}

.topbar-btn:hover { border-color: var(--ice); color: var(--ice); }

.notif-dot {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--red);
    border: 1.5px solid #fff;
}

.topbar-divider { width: 1px; height: 22px; background: var(--border); margin: 0 2px; }

.topbar-date {
    font-size: 11px;
    color: var(--gray);
    font-weight: 500;
    white-space: nowrap;
}

.topbar-user-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    padding: 3px 10px 3px 3px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: #fff;
    transition: all 0.16s;
}

.topbar-user-chip:hover { border-color: var(--ice); background: var(--frost); }

.topbar-username {
    font-size: 12px;
    font-weight: 600;
    color: var(--dark);
}

/* ─── SIDEBAR TOGGLE (MOBILE) ───────────────────────────────────── */
.sidebar-toggle {
    display: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #fff;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--dark);
    font-size: 18px;
    flex-shrink: 0;
}

/* ─── CONTENIDO PRINCIPAL ───────────────────────────────────────── */
.dash-content {
    padding: 26px 28px;
    flex: 1;
}

/* ─── STAT CARDS ────────────────────────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.stat-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    border-color: var(--ice);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14,165,233,0.08);
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px;
    height: 100%;
    border-radius: 14px 0 0 14px;
}

.stat-card.blue::after  { background: var(--ice); }
.stat-card.green::after { background: var(--green); }
.stat-card.amber::after { background: var(--amber); }
.stat-card.red::after   { background: var(--red); }

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.stat-card.blue  .stat-icon { background: var(--ice-pale);  }
.stat-card.green .stat-icon { background: var(--green-pale); }
.stat-card.amber .stat-icon { background: var(--amber-pale); }
.stat-card.red   .stat-icon { background: var(--red-pale);   }

.stat-body { flex: 1; min-width: 0; }

.stat-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 3px;
}

.stat-value {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.stat-delta {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    font-weight: 600;
    margin-top: 4px;
    padding: 2px 7px;
    border-radius: 20px;
}

.stat-delta.up   { background: var(--green-pale); color: #065f46; }
.stat-delta.down { background: var(--red-pale);   color: #991b1b; }
.stat-delta.same { background: var(--gray-light);  color: var(--gray); }

/* ─── GRID ROWS ─────────────────────────────────────────────────── */
.dash-row {
    display: grid;
    gap: 18px;
    margin-bottom: 24px;
    grid-template-columns: 1fr 1fr;
}

.dash-row.col-3-1  { grid-template-columns: 3fr 1fr; }
.dash-row.col-1-3  { grid-template-columns: 1fr 3fr; }
.dash-row.col-1    { grid-template-columns: 1fr; }
.dash-row.col-3    { grid-template-columns: 1fr 1fr 1fr; }

/* ─── CARD ──────────────────────────────────────────────────────── */
.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 12px;
    border-bottom: 1px solid var(--border);
    gap: 10px;
}

.card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-title .ct-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: var(--ice-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    color: var(--ice-dark);
}

.card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.card-action-btn {
    padding: 5px 12px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: transparent;
    font-size: 11px;
    font-weight: 600;
    color: var(--gray);
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: all 0.16s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.card-action-btn:hover { border-color: var(--ice); color: var(--ice-dark); }
.card-action-btn.primary { background: var(--ice); color: var(--dark); border-color: var(--ice); font-weight: 600; }
.card-action-btn.primary:hover { background: var(--cold); border-color: var(--cold); color: var(--dark); }
.card-action-btn.danger { background: var(--red); color: #fff; border-color: var(--red); }

.card-body { padding: 18px 20px; }
.card-body.p-0 { padding: 0; }

/* ─── TABLA ─────────────────────────────────────────────────────── */
.dash-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.dash-table th {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gray);
    padding: 10px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
    background: #fafafa;
}

.dash-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-light);
    color: #334155;
    vertical-align: middle;
}

.dash-table tr:last-child td { border-bottom: none; }
.dash-table tr:hover td { background: #f8fafc; }

.td-bold { font-weight: 600; color: var(--dark); }
.td-mono { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 13px; color: var(--dark); }
.td-muted { font-size: 11px; color: var(--gray); }

/* ─── BADGES ────────────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}

.badge::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

.badge.red    { background: var(--red-pale);   color: #991b1b; }
.badge.amber  { background: var(--amber-pale);  color: #92400e; }
.badge.green  { background: var(--green-pale);  color: #065f46; }
.badge.blue   { background: var(--ice-pale);    color: var(--ice-dark); }
.badge.gray   { background: var(--gray-light);  color: var(--gray); }

/* ─── ACCIONES RÁPIDAS ──────────────────────────────────────────── */
.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.qa-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 14px;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    background: #fff;
    cursor: pointer;
    transition: all 0.16s;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
}

.qa-btn:hover {
    border-color: var(--ice);
    background: var(--frost);
    transform: translateY(-1px);
}

.qa-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    color: var(--ice-dark);
}

.qa-btn.blue  .qa-icon { background: var(--ice-pale);   }
.qa-btn.green .qa-icon { background: var(--green-pale); color: #065f46; }
.qa-btn.amber .qa-icon { background: var(--amber-pale); color: #92400e; }
.qa-btn.red   .qa-icon { background: var(--red-pale);   color: #991b1b; }

.qa-label { font-size: 12px; font-weight: 600; color: var(--dark); line-height: 1.3; }
.qa-sub   { font-size: 10px; color: var(--gray); margin-top: 1px; }

/* ─── PROGRESS BARS ─────────────────────────────────────────────── */
.progress-wrap { margin-bottom: 12px; }
.progress-wrap:last-child { margin-bottom: 0; }

.progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 5px;
}

.progress-label { color: #475569; font-weight: 500; }
.progress-val   { color: var(--dark); font-weight: 600; }

.progress-bar-bg {
    height: 6px;
    background: var(--gray-light);
    border-radius: 20px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 20px;
    background: var(--ice);
    transition: width 0.7s ease;
}

/* ─── ACTIVIDAD ─────────────────────────────────────────────────── */
.activity-list { display: flex; flex-direction: column; }

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid var(--gray-light);
}

.activity-item:last-child { border-bottom: none; }

.activity-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 5px;
    flex-shrink: 0;
}

.activity-dot.blue  { background: var(--ice); }
.activity-dot.green { background: var(--green); }
.activity-dot.amber { background: var(--amber); }
.activity-dot.red   { background: var(--red); }

.activity-text { font-size: 13px; color: #334155; line-height: 1.5; }
.activity-text strong { color: var(--dark); font-weight: 600; }
.activity-time { font-size: 11px; color: var(--gray); margin-top: 2px; }

/* ─── CHART BARS ────────────────────────────────────────────────── */
.chart-area {
    height: 200px;
    display: flex;
    align-items: flex-end;
    gap: 6px;
    padding-bottom: 2px;
}

.chart-bar-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    height: 100%;
    justify-content: flex-end;
}

.chart-bar {
    width: 100%;
    border-radius: 5px 5px 0 0;
    background: var(--ice-pale);
    cursor: pointer;
    position: relative;
    min-height: 4px;
    transition: background 0.18s;
}

.chart-bar:hover { background: rgba(14,165,233,0.4); }
.chart-bar.primary { background: var(--ice); }
.chart-bar.primary:hover { background: var(--ice-dark); }

.chart-bar .bar-tip {
    display: none;
    position: absolute;
    bottom: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 5px;
    white-space: nowrap;
    z-index: 10;
    pointer-events: none;
}

.chart-bar:hover .bar-tip { display: block; }
.chart-label { font-size: 10px; color: var(--gray); text-align: center; }

/* ─── FORMULARIOS ───────────────────────────────────────────────── */
.form-section { margin-bottom: 28px; }

.form-section-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--ice-dark);
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--ice-pale);
}

.form-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 5px;
    display: block;
}

.form-control, .form-select {
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
    color: #334155;
    background: #fff;
    width: 100%;
    transition: border-color 0.16s;
    outline: none;
}

.form-control:focus, .form-select:focus {
    border-color: var(--ice);
    box-shadow: 0 0 0 3px rgba(14,165,233,0.1);
}

/* ─── BOTONES ───────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.16s;
    border: 1.5px solid transparent;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.4;
}

.btn-primary  { background: var(--ice);   color: var(--dark); border-color: var(--ice); }
.btn-primary:hover  { background: var(--cold); border-color: var(--cold); color: var(--dark); }
.btn-success  { background: var(--green); color: #fff; border-color: var(--green); }
.btn-success:hover  { background: #0d9f6e; }
.btn-danger   { background: var(--red);   color: #fff; border-color: var(--red); }
.btn-danger:hover   { background: #dc2626; }
.btn-warning  { background: var(--amber); color: #fff; border-color: var(--amber); }
.btn-secondary { background: #fff; color: var(--gray); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--ice); color: var(--ice-dark); }

.btn-sm { padding: 5px 12px; font-size: 12px; border-radius: 6px; }
.btn-lg { padding: 12px 26px; font-size: 15px; }

/* ─── FOOTER ────────────────────────────────────────────────────── */
.dash-footer {
    padding: 14px 28px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: var(--gray);
    background: #fff;
    flex-shrink: 0;
    gap: 10px;
    flex-wrap: wrap;
}

.dash-footer span { color: var(--ice-dark); font-weight: 500; }

/* ─── ALERTAS ───────────────────────────────────────────────────── */
.alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
    border: 1px solid transparent;
}

.alert-success { background: var(--green-pale); color: #065f46; border-color: rgba(16,185,129,0.3); }
.alert-danger  { background: var(--red-pale);   color: #991b1b; border-color: rgba(239,68,68,0.3); }
.alert-warning { background: var(--amber-pale);  color: #92400e; border-color: rgba(245,158,11,0.3); }
.alert-info    { background: var(--ice-pale);    color: var(--ice-dark); border-color: rgba(14,165,233,0.3); }

/* ─── MINI VISITAS ──────────────────────────────────────────────── */
.visit-mini-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}

.visit-mini-card {
    background: var(--frost);
    border: 1px solid rgba(14,165,233,0.15);
    border-radius: 10px;
    padding: 11px 14px;
}

.vmc-label { font-size: 10px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: var(--ice-dark); margin-bottom: 3px; }
.vmc-val   { font-family: 'Montserrat', sans-serif; font-size: 20px; font-weight: 700; color: var(--dark); }

.online-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #065f46;
    font-weight: 600;
    padding: 5px 10px;
    background: var(--green-pale);
    border-radius: 20px;
}

.online-chip .pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    animation: pulse-g 2s infinite;
    flex-shrink: 0;
}

@keyframes pulse-g {
    0%,100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.4); }
    70%      { box-shadow: 0 0 0 5px rgba(16,185,129,0); }
}

.mini-bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 44px;
    margin-top: 12px;
}

.mb {
    flex: 1;
    border-radius: 3px 3px 0 0;
    background: rgba(14,165,233,0.2);
    min-height: 3px;
    cursor: default;
    position: relative;
    transition: background 0.15s;
}

.mb.today { background: var(--ice); }
.mb:hover { background: var(--cold); }
.mb:hover .mb-tip { display: block; }

.mb-tip {
    display: none;
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark);
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 10;
}

.mini-days {
    display: flex;
    gap: 4px;
    margin-top: 4px;
}

.mini-day { flex: 1; font-size: 9px; color: var(--gray); text-align: center; }

/* ─── RESPONSIVE ────────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .dash-row.col-3-1, .dash-row.col-1-3 { grid-template-columns: 1fr; }
    .dash-row.col-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .sidebar-overlay.show { display: block; }
    .dash-main { margin-left: 0; }
    .sidebar-toggle { display: flex; }
    .dash-content { padding: 18px 14px; }
    .topbar { padding: 0 14px; }
    .topbar-date { display: none; }
    .topbar-divider { display: none; }
    .topbar-username { display: none; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .dash-row, .dash-row.col-3-1, .dash-row.col-1-3, .dash-row.col-3 { grid-template-columns: 1fr; }
    .quick-actions { grid-template-columns: 1fr; }
    .visit-mini-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .visit-mini-grid { grid-template-columns: 1fr; }
}
