/* ================================================================
   Sujiva Business Admin â€” Theme (matches sujiva.in main site)
   Primary: #007AFF  Secondary: #5856D6  Font: Apple system stack
   ================================================================ */

:root {
    --primary:        #007AFF;
    --primary-dark:   #0051D5;
    --primary-light:  rgba(0,122,255,0.08);
    --secondary:      #5856D6;
    --success:        #34C759;
    --success-light:  rgba(52,199,89,0.1);
    --warning:        #FF9500;
    --warning-light:  rgba(255,149,0,0.1);
    --danger:         #FF3B30;
    --danger-light:   rgba(255,59,48,0.1);
    --info:           #5AC8FA;
    --info-light:     rgba(90,200,250,0.1);
    --purple:         #5856D6;
    --purple-light:   rgba(88,86,214,0.1);

    --text-dark:      #1d1d1f;
    --text-mid:       #3a3a3c;
    --text-light:     #86868b;
    --text-xlight:    #aeaeb2;

    --bg:             #fbfbfd;
    --bg-card:        #ffffff;
    --border:         rgba(0,0,0,0.08);
    --border-light:   rgba(0,0,0,0.05);

    --radius-sm:      10px;
    --radius:         16px;
    --radius-lg:      22px;
    --radius-xl:      28px;

    --shadow-sm:      0 2px 12px rgba(0,0,0,0.06);
    --shadow:         0 8px 30px rgba(0,0,0,0.08);
    --shadow-lg:      0 20px 60px rgba(0,0,0,0.12);
    --shadow-primary: 0 8px 24px rgba(0,122,255,0.22);

    --transition:     200ms cubic-bezier(.4,0,.2,1);
    --font:           -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--font);
    color: var(--text-dark);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* â”€â”€ Navbar â”€â”€ */
.ba-nav {
    background: rgba(255,255,255,0.82);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 1030;
    padding: 0.75rem 0;
}
.ba-nav .navbar-brand {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.ba-nav .navbar-brand img { height: 26px; width: auto; }
.ba-nav .nav-link {
    color: var(--text-dark);
    font-weight: 400;
    font-size: 0.95rem;
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    transition: all var(--transition);
}
.ba-nav .nav-link:hover  { color: var(--primary); background: var(--primary-light); }
.ba-nav .nav-link.active { color: var(--primary); font-weight: 600; }
.ba-nav .btn-logout {
    background: var(--danger-light);
    color: var(--danger);
    border: none;
    border-radius: 50px;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all var(--transition);
}
.ba-nav .btn-logout:hover {
    background: var(--danger);
    color: #fff;
}

/* â”€â”€ Cards â”€â”€ */
.ba-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

/* â”€â”€ KPI Cards â”€â”€ */
.kpi-card {
    padding: 20px;
    min-height: 128px;
    position: relative;
    overflow: hidden;
    cursor: default;
}
.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.kpi-icon {
    width: 38px; height: 38px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 10px;
}
.kpi-icon--reports  { background: var(--primary-light); color: var(--primary); }
.kpi-icon--revenue  { background: var(--warning-light); color: var(--warning); }
.kpi-icon--wallet   { background: var(--success-light); color: var(--success); }
.kpi-icon--clinics  { background: var(--purple-light); color: var(--purple); }
.kpi-icon--staff    { background: rgba(90,200,250,0.12); color: #007ABA; }
.kpi-icon--orders   { background: var(--danger-light); color: var(--danger); }
.kpi-icon--sessions { background: rgba(0,199,190,0.12); color: #00C7BE; }
.kpi-icon--tail     { background: rgba(88,86,214,0.10); color: #5856D6; }

/* â”€â”€ Pareto / Right-tail panel â”€â”€ */
.tail-stat { text-align: center; }
.tail-stat-value {
    font-size: 2.4rem;
    font-weight: 700;
    color: #5856D6;
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.tail-stat-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-light);
    margin-top: 2px;
}
.tail-stat-sub {
    font-size: 0.82rem;
    color: var(--text-light);
    margin-top: 4px;
}
.tail-progress-wrap {
    height: 8px;
    background: rgba(88,86,214,0.12);
    border-radius: 99px;
    overflow: hidden;
}
.tail-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #007AFF, #5856D6);
    border-radius: 99px;
    transition: width 0.6s ease;
}
.tail-stat-small {
    font-size: 0.8rem;
    color: var(--text-light);
    text-align: center;
}

.kpi-title {
    color: var(--text-light);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.kpi-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-dark);
    margin: 3px 0 2px;
    letter-spacing: -0.02em;
}
.kpi-footnote {
    color: var(--text-light);
    font-size: 0.76rem;
}

/* â”€â”€ Tables â”€â”€ */
.ba-table {
    font-size: 0.88rem;
}
.ba-table thead th {
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.73rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
    white-space: nowrap;
}
.ba-table td { vertical-align: middle; border-color: var(--border-light); }
.ba-table tbody tr {
    transition: background var(--transition);
}
.ba-table tbody tr:hover { background-color: rgba(0,122,255,0.03); }

/* â”€â”€ Filters â”€â”€ */
.filters-wrap {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

/* â”€â”€ Period Quick Buttons â”€â”€ */
.period-btn {
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 5px 14px;
    font-size: 0.8rem;
    font-weight: 500;
    background: #fff;
    color: var(--text-light);
    cursor: pointer;
    transition: all var(--transition);
}
.period-btn:hover { background: var(--primary-light); color: var(--primary); border-color: rgba(0,122,255,0.25); }
.period-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 600; }

/* â”€â”€ Badges â”€â”€ */
.badge-status {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    border-radius: 50px;
    padding: 0.32rem 0.65rem;
}

/* Bootstrap badge color overrides to match site palette */
.text-bg-primary   { background: var(--primary) !important; }
.text-bg-success   { background: var(--success) !important; }
.text-bg-warning   { background: var(--warning) !important; color: #fff !important; }
.text-bg-danger    { background: var(--danger)  !important; }
.text-bg-secondary { background: #636366 !important; }
.text-bg-info      { background: #007ABA !important; }

/* â”€â”€ Charts â”€â”€ */
.chart-wrap {
    min-height: 300px;
    position: relative;
    border-radius: var(--radius-lg);
}

/* â”€â”€ Loading Overlay â”€â”€ */
.ba-loading-overlay {
    position: absolute; inset: 0;
    background: rgba(255,255,255,0.75);
    display: flex; align-items: center; justify-content: center;
    border-radius: inherit;
    z-index: 10;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}
.ba-loading-overlay .spinner-border {
    color: var(--primary);
    width: 1.75rem; height: 1.75rem;
}

/* â”€â”€ Toast Notification System â”€â”€ */
.ba-toast-container {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.ba-toast {
    pointer-events: all;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 290px;
    max-width: 370px;
    padding: 14px 14px 14px 18px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 8px 32px rgba(0,0,0,0.11), 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.06);
    overflow: hidden;
    animation: ba-toast-in 340ms cubic-bezier(0.34,1.56,0.64,1) both;
}
/* Coloured left accent stripe */
.ba-toast::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    border-radius: var(--radius) 0 0 var(--radius);
}
.ba-toast--success::before { background: var(--success); }
.ba-toast--error::before   { background: var(--danger); }
.ba-toast--info::before    { background: var(--primary); }
.ba-toast--warning::before { background: var(--warning); }

.ba-toast-icon {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}
.ba-toast--success .ba-toast-icon { background: var(--success-light); color: var(--success); }
.ba-toast--error   .ba-toast-icon { background: var(--danger-light);  color: var(--danger); }
.ba-toast--info    .ba-toast-icon { background: var(--primary-light); color: var(--primary); }
.ba-toast--warning .ba-toast-icon { background: var(--warning-light); color: var(--warning); }

.ba-toast-body {
    flex: 1;
    min-width: 0;
    padding-top: 4px;
}
.ba-toast-msg {
    font-size: 0.855rem;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.45;
    word-break: break-word;
}
.ba-toast-close {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border: none;
    background: transparent;
    color: var(--text-xlight);
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 0.8rem;
    transition: background 150ms, color 150ms;
    margin-top: 2px;
}
.ba-toast-close:hover {
    background: rgba(0,0,0,0.07);
    color: var(--text-dark);
}
@keyframes ba-toast-in {
    from { opacity: 0; transform: translateX(24px) scale(0.92); }
    to   { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes ba-toast-out {
    from { opacity: 1; transform: translateX(0) scale(1); }
    to   { opacity: 0; transform: translateX(20px) scale(0.94); }
}

/* â”€â”€ Status Timeline â”€â”€ */
.status-timeline { position: relative; padding-left: 24px; }
.status-timeline::before {
    content: '';
    position: absolute; left: 7px; top: 4px; bottom: 4px;
    width: 2px; background: var(--border);
}
.status-timeline-item { position: relative; padding-bottom: 16px; }
.status-timeline-item::before {
    content: '';
    position: absolute;
    left: -21px; top: 5px;
    width: 10px; height: 10px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: #fff;
}
.status-timeline-item:first-child::before { background: var(--primary); }
.status-timeline-item .tl-label { font-weight: 600; font-size: 0.84rem; }
.status-timeline-item .tl-meta  { color: var(--text-light); font-size: 0.77rem; }

/* â”€â”€ Detail Tabs â”€â”€ */
.detail-tabs .nav-link {
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--text-light);
    border: none;
    border-bottom: 2px solid transparent;
    padding: 8px 14px;
    border-radius: 0;
}
.detail-tabs .nav-link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: none;
    font-weight: 600;
}

/* â”€â”€ Empty State â”€â”€ */
.ba-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}
.ba-empty-state i { font-size: 2.2rem; margin-bottom: 10px; display: block; opacity: 0.45; }
.ba-empty-state p { font-size: 0.88rem; margin: 0; }

/* â”€â”€ Shimmer Skeleton â”€â”€ */
@keyframes baShimmer {
    0%   { background-position: -400px 0; }
    100% { background-position:  400px 0; }
}
.ba-skeleton {
    background: linear-gradient(90deg, #f0f0f5 25%, #e4e4ec 50%, #f0f0f5 75%);
    background-size: 800px 100%;
    animation: baShimmer 1.5s ease-in-out infinite;
    border-radius: 6px;
}

/* â”€â”€ Primary Buttons â”€â”€ */
.btn-primary {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    border-radius: 50px !important;
    font-weight: 600;
    transition: all var(--transition) !important;
}
.btn-primary:hover {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    box-shadow: var(--shadow-primary) !important;
    transform: translateY(-1px);
}
.btn-outline-primary {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
    border-radius: 50px !important;
    font-weight: 500;
    transition: all var(--transition) !important;
}
.btn-outline-primary:hover {
    background: var(--primary) !important;
    color: #fff !important;
}
.btn-outline-secondary {
    border-radius: 50px !important;
    font-weight: 500;
    transition: all var(--transition) !important;
}
.btn-outline-dark {
    border-radius: 50px !important;
    font-weight: 500;
}

/* â”€â”€ Form Controls â”€â”€ */
.form-control, .form-select {
    border-radius: var(--radius-sm) !important;
    border-color: var(--border) !important;
    font-size: 0.9rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(0,122,255,0.12) !important;
}

/* â”€â”€ Modal â”€â”€ */
.modal-content {
    border-radius: var(--radius-xl) !important;
    border: 1px solid var(--border) !important;
    box-shadow: var(--shadow-lg) !important;
}
.modal-header { border-bottom: 1px solid var(--border-light); }
.modal-footer { border-top:    1px solid var(--border-light); }

/* â”€â”€ Code â”€â”€ */
code {
    color: var(--primary);
    background: var(--primary-light);
    padding: 2px 6px;
    border-radius: 5px;
    font-size: 0.85em;
}

/* â”€â”€ Login Page â”€â”€ */
.login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem;
    background: linear-gradient(150deg, #f0f4ff 0%, #fbfbfd 50%, #f5f0ff 100%);
    position: relative;
    overflow: hidden;
}
/* Decorative blobs behind login card */
.login-shell::before {
    content: '';
    position: fixed;
    top: -15%; left: -10%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(0,122,255,0.09) 0%, transparent 68%);
    pointer-events: none;
}
.login-shell::after {
    content: '';
    position: fixed;
    bottom: -15%; right: -5%;
    width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(88,86,214,0.09) 0%, transparent 68%);
    pointer-events: none;
}
.login-card {
    max-width: 460px;
    width: 100%;
    padding: 2.8rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
}
.login-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 2rem;
    text-decoration: none;
}
.login-brand img { height: 30px; width: auto; }
.login-brand-name { font-weight: 700; font-size: 1.05rem; color: var(--text-dark); }
.login-title {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-dark);
}
.login-subtitle { color: var(--text-light); font-size: 0.93rem; margin-top: 0.3rem; }
.login-card .form-label { font-weight: 500; font-size: 0.88rem; color: var(--text-mid); }
.login-card .form-control {
    padding: 0.65rem 0.9rem;
    font-size: 0.95rem;
    border: 1.5px solid var(--border);
}
.login-card .form-control:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3.5px rgba(0,122,255,0.12) !important;
}
.login-submit {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    width: 100%;
    transition: all var(--transition);
}
.login-submit:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-primary);
    transform: translateY(-1px);
}
.login-submit:active { transform: scale(0.98); }
.login-hint { font-size: 0.8rem; color: var(--text-light); }
.login-hint code {
    font-size: 0.8rem;
    background: rgba(0,0,0,0.04);
    color: var(--text-mid);
}

/* â”€â”€ Page Header â”€â”€ */
.page-title {
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-dark);
    margin: 0;
}
.page-subtitle {
    font-size: 0.92rem;
    color: var(--text-light);
    margin: 0;
}
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.last-updated {
    font-size: 0.78rem;
    color: var(--text-xlight);
}

/* â”€â”€ Filter Bar â”€â”€ */
.filter-bar {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    padding: 0.9rem 1.25rem;
    margin-bottom: 1.5rem;
}
.period-pill-group {
    background: rgba(0,0,0,0.04);
    border-radius: 50px;
    padding: 3px;
    display: flex;
    gap: 2px;
}
.period-pill-group .period-btn {
    border: none;
    background: transparent;
    color: var(--text-mid);
    border-radius: 50px;
    padding: 5px 14px;
    font-size: 0.82rem;
    font-weight: 500;
    transition: all var(--transition);
}
.period-pill-group .period-btn:hover { background: rgba(0,0,0,0.06); color: var(--text-dark); }
.period-pill-group .period-btn.active { background: #fff; color: var(--primary); font-weight: 600; box-shadow: 0 1px 6px rgba(0,0,0,0.12); }

/* â”€â”€ Chart Card Header â”€â”€ */
.chart-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}
.chart-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.chart-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
}
.chart-subtitle {
    font-size: 0.76rem;
    color: var(--text-light);
    margin-top: 1px;
}

/* â”€â”€ Rank Badge â”€â”€ */
.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px; height: 22px;
    border-radius: 50%;
    font-size: 0.72rem;
    font-weight: 700;
    flex-shrink: 0;
}
.rank-badge--1 { background: rgba(255,149,0,0.15); color: #CC7A00; }
.rank-badge--2 { background: rgba(99,99,102,0.12); color: #3a3a3c; }
.rank-badge--3 { background: rgba(255,59,48,0.11); color: var(--danger); }
.rank-badge--other { background: rgba(0,0,0,0.05); color: var(--text-light); }

/* â”€â”€ Refresh Button â”€â”€ */
.btn-refresh {
    background: rgba(0,0,0,0.04);
    border: none;
    border-radius: 50px;
    padding: 0.4rem 0.9rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-mid);
    transition: all var(--transition);
    display: inline-flex; align-items: center; gap: 5px;
}
.btn-refresh:hover { background: var(--primary-light); color: var(--primary); }
.btn-refresh.spinning i { animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* â”€â”€ Clinic Search Combobox â”€â”€ */
.clinic-search-wrap { position: relative; }
.clinic-tags-box {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 4px;
    min-height: 34px;
    max-height: 80px;
    overflow-y: auto;
    padding: 4px 8px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: text;
}
.clinic-tags-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,122,255,0.1);
}
.clinic-tags-inner { display: flex; flex-wrap: wrap; gap: 4px; }
.clinic-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 20px;
    white-space: nowrap;
}
.clinic-tag-remove {
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
    color: var(--primary);
    cursor: pointer;
    opacity: 0.7;
    font-size: 0.8rem;
}
.clinic-tag-remove:hover { opacity: 1; }
.clinic-tags-box input {
    border: none;
    outline: none;
    font-size: 0.875rem;
    min-width: 120px;
    flex: 1;
    background: transparent;
    padding: 2px 0;
    color: var(--text-dark);
}
.clinic-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0; right: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    z-index: 1080;
    max-height: 240px;
    overflow-y: auto;
    display: none;
}
.clinic-opt {
    padding: 9px 14px;
    cursor: pointer;
    transition: background var(--transition);
    border-bottom: 1px solid var(--border-light);
}
.clinic-opt:last-child { border-bottom: none; }
.clinic-opt:hover { background: var(--primary-light); }
.clinic-opt-name { font-size: 0.88rem; font-weight: 500; color: var(--text-dark); display: block; }
.clinic-opt-email { font-size: 0.75rem; color: var(--text-light); display: block; }
.clinic-opt--empty { color: var(--text-light); font-size: 0.85rem; text-align: center; padding: 14px; }

/* â”€â”€ Utility â”€â”€ */
.cursor-pointer { cursor: pointer; }
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
h6.section-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* â”€â”€ Responsive â”€â”€ */
@media (max-width: 991px) {
    .kpi-value { font-size: 1.4rem; }
    .chart-wrap { min-height: 250px; }
}
@media (max-width: 575px) {
    main.container-fluid { padding-left: 12px !important; padding-right: 12px !important; }
    .kpi-card { min-height: 105px; padding: 14px; }
    .kpi-value { font-size: 1.25rem; }
    .login-card { padding: 1.8rem; }
    .ba-toast { min-width: auto; max-width: calc(100vw - 56px); }
    .ba-toast-container { bottom: 16px; right: 16px; }
    .period-btn { font-size: 0.76rem; padding: 4px 10px; }
}

/* â”€â”€ Top Clinics Table: Rich Clinic Cell â”€â”€ */
.tc-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 6px 0;
}
.tc-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
}
.tc-meta {
    font-size: 0.75rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 2px;
}
.tc-meta .bi {
    font-size: 0.7rem;
    opacity: 0.7;
    flex-shrink: 0;
}
