/* ============================================================
   Appointment -- Service Provider Panel CSS
   IBM Plex Sans · Indigo #4f46e5 · Dark Sidebar #0f172a
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --sp-primary:       #4f46e5;
    --sp-primary-hover: #4338ca;
    --sp-primary-rgb:   79, 70, 229;
    --sp-sidebar-bg:    #0f172a;
    --sp-sidebar-text:  #94a3b8;
    --sp-sidebar-hover: rgba(255,255,255,.08);
    --sp-sidebar-w:     260px;
    --sp-topbar-h:      60px;
    --sp-body-bg:       #f1f5f9;
    --sp-card-shadow:   0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.05);
    --sp-radius:        10px;
    --sp-radius-sm:     6px;
    --sp-font:          'IBM Plex Sans', 'Inter UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; }
body {
    font-family: var(--sp-font) !important;
    font-weight: 400;
    font-size: 1rem;
    background-color: var(--sp-body-bg);
    color: #1e293b;
    min-height: 100%;
    margin: 0;
}

/* ===== SIDEBAR ===== */
.up-sidebar {
    position: fixed;
    top: 0; left: 0;
    width: var(--sp-sidebar-w);
    height: 100vh;
    background: var(--sp-sidebar-bg) !important;
    display: flex;
    flex-direction: column;
    z-index: 1040;
    overflow: hidden;
    transition: transform .25s ease;
}
/* Override reset.css "li { color: #5b6e88; }" for sidebar list items */
.up-sidebar li { color: var(--sp-sidebar-text); }
.up-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: var(--sp-topbar-h);
    border-bottom: 1px solid rgba(255,255,255,.06);
    flex-shrink: 0;
}
.up-sidebar-logo img {
    max-height: 32px;
    max-width: 140px;
    object-fit: contain;
}
.up-sidebar-toggle {
    display: none;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    line-height: 1;
    align-items: center;
    justify-content: center;
}
.up-sidebar-toggle:hover { background: var(--sp-sidebar-hover); color: #fff; }
.up-sidebar-toggle svg { width: 18px; height: 18px; }
.up-sidebar-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 0 20px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.1) transparent;
}
.up-sidebar-body::-webkit-scrollbar { width: 4px; }
.up-sidebar-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 4px; }

/* ===== SIDEBAR NAV ===== */
.up-nav { list-style: none; margin: 0; padding: 0; }
.up-nav-item { position: relative; }
.up-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 20px;
    color: var(--sp-sidebar-text) !important;
    text-decoration: none !important;
    font-size: .84rem;
    font-weight: 500;
    transition: color .15s, background .15s;
    position: relative;
}
/* Ensure span text and icons inherit nav-link color;
   override reset.css "span { color: #5b6e88 }" */
.up-nav-link span,
.up-nav-link i {
    color: inherit !important;
}
.up-nav-link i {
    font-size: 1.15rem;
    flex-shrink: 0;
    opacity: .75;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    min-width: 20px;
    line-height: 1;
    transition: opacity .15s, color .15s;
}
.up-nav-link svg {
    width: 17px; height: 17px; flex-shrink: 0; opacity: .7;
    transition: opacity .15s, color .15s;
}
/* Hover — override "a span:hover { color: #4634ff }" from reset.css */
.up-nav-link:hover,
.up-nav-link:hover span,
.up-nav-link:hover i,
.up-nav-link:hover svg {
    color: #fff !important;
    opacity: 1;
    text-decoration: none;
}
.up-nav-link:hover { background: var(--sp-sidebar-hover); }

/* Active state */
.up-nav-item.active > .up-nav-link {
    color: #fff !important;
    background: linear-gradient(90deg, rgba(79,70,229,.3) 0%, rgba(79,70,229,.06) 100%);
}
.up-nav-item.active > .up-nav-link span { color: #fff !important; }
.up-nav-item.active > .up-nav-link::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--sp-primary);
    border-radius: 0 2px 2px 0;
}
.up-nav-item.active > .up-nav-link i,
.up-nav-item.active > .up-nav-link svg {
    opacity: 1;
    color: var(--sp-primary) !important;
}

/* Submenu */
.up-nav-sub {
    list-style: none; margin: 0; padding: 4px 0;
    background: rgba(0,0,0,.12);
    overflow: hidden; max-height: 0;
    transition: max-height .3s ease;
    position: relative;
}
/* Vertical tree connecting line — aligned to center of parent icon */
.up-nav-sub::before {
    content: ''; pointer-events: none;
    position: absolute; left: 30px; top: 0; bottom: 0;
    width: 1px; background: rgba(255,255,255,.07);
}
.up-nav-sub.open { max-height: 600px; }
.up-nav-sub .up-nav-link {
    padding: 7px 20px 7px 50px;
    font-size: .81rem;
    color: rgba(148,163,184,.8) !important;
    position: relative;
    border-radius: 0;
}
/* Hide the la-dot-circle font icon — replaced by CSS dot below */
.up-nav-sub .up-nav-link i { display: none !important; }
/* CSS circle dot sitting on the tree line */
.up-nav-sub .up-nav-link::before {
    content: '';
    position: absolute;
    left: 26px; top: 50%;
    transform: translateY(-50%);
    width: 8px; height: 8px; border-radius: 50%;
    border: 1.5px solid rgba(148,163,184,.35);
    background: transparent;
    z-index: 1;
    transition: border-color .15s, background .15s;
}
.up-nav-sub .up-nav-link:hover { background: rgba(255,255,255,.05); }
.up-nav-sub .up-nav-link:hover::before {
    border-color: var(--sp-primary);
    background: rgba(79,70,229,.2);
}
/* Active submenu item — override parent's gradient background */
.up-nav-sub .up-nav-item.active > .up-nav-link {
    color: #c7d2fe !important;
    background: rgba(79,70,229,.08);
}
.up-nav-sub .up-nav-item.active > .up-nav-link span { color: #c7d2fe !important; }
/* Active dot — override parent active left-bar ::before rule (higher specificity) */
.up-nav-sub .up-nav-item.active > .up-nav-link::before {
    left: 26px; top: 50%; bottom: auto;
    width: 8px; height: 8px; border-radius: 50%;
    transform: translateY(-50%);
    border-color: var(--sp-primary);
    background: var(--sp-primary);
    box-shadow: 0 0 6px rgba(79,70,229,.5);
}
.up-nav-item.has-sub > .up-nav-link .up-arrow {
    margin-left: auto;
    transition: transform .2s;
    width: 14px; height: 14px; opacity: .5;
    flex-shrink: 0;
    color: inherit !important;
}
.up-nav-item.has-sub.open > .up-nav-link .up-arrow { transform: rotate(180deg); }

/* Nav section headers */
.up-nav-header { list-style: none; pointer-events: none; }
/* Override reset.css "p { color: #5b6e88 }" — must be visible on dark sidebar */
.up-nav-label {
    font-size: .65rem; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase;
    color: #64748b !important; padding: 18px 20px 5px; margin: 0;
}

/* Logout / danger nav link */
.up-nav-link--danger,
.up-nav-link--danger span,
.up-nav-link--danger i { color: #f87171 !important; }
.up-nav-link--danger:hover { background: rgba(239,68,68,.12) !important; }
.up-nav-link--danger:hover,
.up-nav-link--danger:hover span,
.up-nav-link--danger:hover i { color: #fca5a5 !important; }

/* Menu badges */
.menu-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 18px; height: 18px; border-radius: 999px;
    font-size: .7rem; font-weight: 600; padding: 0 5px;
}
.menu-badge.bg--info    { background: #0ea5e9; color: #fff; }
.menu-badge.bg--warning { background: #f59e0b; color: #fff; }

/* Sidebar footer — pinned at the bottom, never scrolls away */
.up-sidebar-footer {
    flex-shrink: 0;
    border-top: 1px solid rgba(255,255,255,.06);
    padding: 0;
}

/* Version info */
.sp-version {
    padding: 12px 20px;
    display: flex; align-items: center; justify-content: space-between; gap: 6px;
    font-size: .68rem; letter-spacing: .06em; text-transform: uppercase;
    line-height: 1;
}
/* Override reset.css "span { color: #5b6e88 }" — must be visible on dark sidebar */
.sp-version-name {
    font-weight: 600;
    color: #a5b4fc !important;
}
.sp-version-tag {
    color: #34d399 !important;
    font-weight: 600;
    background: rgba(52,211,153,.1);
    padding: 2px 7px; border-radius: 999px;
    border: 1px solid rgba(52,211,153,.2);
}

/* ===== MAIN WRAPPER ===== */
.up-main {
    margin-left: var(--sp-sidebar-w);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left .25s ease;
}

/* ===== TOPBAR ===== */
.up-topbar {
    position: sticky; top: 0;
    height: var(--sp-topbar-h);
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 24px; z-index: 1030;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.up-topbar-left { display: flex; align-items: center; gap: 10px; }
.up-topbar-right { display: flex; align-items: center; gap: 4px; }
.up-menu-btn {
    display: none;
    background: none; border: none; color: #64748b; cursor: pointer;
    padding: 6px; border-radius: 6px; line-height: 1;
    align-items: center; justify-content: center;
}
.up-menu-btn:hover { background: #f1f5f9; }
.up-menu-btn svg { width: 20px; height: 20px; }
.up-topbar-page-title { font-size: 1rem; font-weight: 600; color: #1e293b; margin: 0; }

/* Topbar search */
.up-topbar-search { position: relative; }
.up-topbar-search .navbar-search-field {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    height: 36px;
    padding: 0 32px 0 12px;
    font-size: .84rem;
    color: #1e293b;
    background: #f8fafc;
    min-width: 220px;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    font-family: var(--sp-font);
}
.up-topbar-search .navbar-search-field:focus {
    border-color: var(--sp-primary);
    box-shadow: 0 0 0 3px rgba(79,70,229,.1);
    background: #fff;
}
.up-topbar-search i {
    position: absolute; right: 10px; top: 50%;
    transform: translateY(-50%); color: #94a3b8; font-size: .92rem;
}
.up-topbar-search .search-list {
    position: absolute; top: calc(100% + 4px); left: 0; right: 0;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    z-index: 1100; list-style: none; margin: 0; padding: 4px 0;
    display: none;
    max-height: 300px; overflow-y: auto;
}
.up-topbar-search .search-list.show { display: block; }

/* ===== USER MENU ===== */
.up-user-menu { position: relative; }
.up-user-trigger {
    display: flex; align-items: center; gap: 9px;
    background: transparent; border: none; cursor: pointer;
    padding: 5px 8px; border-radius: 10px;
    transition: background .15s;
}
.up-user-trigger:hover { background: #f1f5f9; }
.up-user-avatar {
    width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
    overflow: hidden; background: var(--sp-primary);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: .98rem;
    border: 2px solid #e2e8f0;
}
.up-user-avatar--lg { width: 40px; height: 40px; }
.up-user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.up-user-info { display: flex; flex-direction: column; text-align: left; line-height: 1.25; }
.up-user-name   { font-size: .84rem; font-weight: 700; color: #1e293b; white-space: nowrap; }
.up-user-handle { font-size: .76rem; color: #94a3b8; white-space: nowrap; }
.up-user-caret  { width: 14px; height: 14px; color: #94a3b8; flex-shrink: 0; transition: transform .2s; }
.up-user-trigger[aria-expanded=true] .up-user-caret { transform: rotate(180deg); }

.up-user-dropdown {
    display: none;
    position: absolute; top: calc(100% + 8px); right: 0;
    min-width: 220px;
    background: #fff; border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(15,23,42,.12);
    z-index: 1100;
    overflow: hidden;
}
.up-user-dropdown.show { display: block; animation: spDropIn .15s ease; }
@keyframes spDropIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.up-user-dropdown-header {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 16px 12px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-bottom: 1px solid #e2e8f0;
}
.up-user-dropdown-name  { font-size: .84rem; font-weight: 700; color: #0f172a; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
.up-user-dropdown-email { font-size: .75rem; color: #94a3b8; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
.up-user-dropdown-body  { padding: 6px 0; }
.up-user-dropdown-footer { padding: 6px 0 0; border-top: 1px solid #f1f5f9; }
.up-user-dropdown-item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 16px; font-size: .82rem; font-weight: 500;
    color: #374151; text-decoration: none;
    transition: background .12s, color .12s;
}
.up-user-dropdown-item svg { width: 16px; height: 16px; flex-shrink: 0; color: #94a3b8; transition: color .12s; }
.up-user-dropdown-item i  { font-size: .95rem; color: #94a3b8; transition: color .12s; }
.up-user-dropdown-item:hover { background: #f8fafc; color: var(--sp-primary); text-decoration: none; }
.up-user-dropdown-item:hover svg, .up-user-dropdown-item:hover i { color: var(--sp-primary); }
.up-user-dropdown-item--danger { color: #ef4444; margin-bottom: 6px; }
.up-user-dropdown-item--danger svg, .up-user-dropdown-item--danger i { color: #fca5a5; }
.up-user-dropdown-item--danger:hover { background: #fff5f5; color: #dc2626; text-decoration: none; }
.up-user-dropdown-item--danger:hover svg, .up-user-dropdown-item--danger:hover i { color: #dc2626; }

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

/* ===== PAGE HEADER ===== */
.up-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}
.up-page-header h4 { font-size: 1.32rem; font-weight: 700; color: #0f172a; margin: 0 0 4px; }
.up-breadcrumb {
    display: flex; align-items: center; flex-wrap: wrap;
    gap: 6px; font-size: .92rem; color: #64748b;
    margin: 0; padding: 0; list-style: none;
}
.up-breadcrumb li + li::before { content: '/'; margin-right: 6px; }
.up-breadcrumb a { color: var(--sp-primary); text-decoration: none; }
.up-breadcrumb a:hover { text-decoration: underline; }
.up-breadcrumb-plugins { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

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

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .up-sidebar { transform: translateX(calc(-1 * var(--sp-sidebar-w))); }
    .up-sidebar.open { transform: translateX(0); box-shadow: 4px 0 24px rgba(0,0,0,.2); }
    .up-sidebar-overlay.show { display: block; }
    .up-main { margin-left: 0 !important; }
    .up-menu-btn { display: inline-flex !important; }
    .up-sidebar-toggle { display: inline-flex !important; }
}
@media (max-width: 575px) {
    .up-content { padding: 14px; }
    .up-topbar  { padding: 0 14px; }
}

/* ===== CARDS ===== */
.card {
    border: 0; border-radius: var(--sp-radius);
    box-shadow: var(--sp-card-shadow);
    background: #fff; margin-bottom: 20px;
}
.card-header {
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
    border-radius: var(--sp-radius) var(--sp-radius) 0 0 !important;
    padding: 14px 20px; font-weight: 600;
    font-size: 1rem; color: #0f172a;
    display: flex; align-items: center; gap: 8px;
}
.card-body   { padding: 20px; }
.card-footer { background: #fff; border-top: 1px solid #f1f5f9; padding: 14px 20px; }

/* ===== DASHBOARD HERO ===== */
.dash-hero {
    background: linear-gradient(135deg, var(--sp-primary) 0%, #1e40af 100%);
    border-radius: var(--sp-radius);
    padding: 26px 30px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}
.dash-hero::before {
    content: '';
    position: absolute; width: 300px; height: 300px; border-radius: 50%;
    background: rgba(255,255,255,.05); top: -80px; right: -60px;
}
.dash-hero::after {
    content: '';
    position: absolute; width: 180px; height: 180px; border-radius: 50%;
    background: rgba(255,255,255,.04); bottom: -40px; left: 40px;
}
.dash-hero-inner {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 16px; position: relative; z-index: 1;
}
.dash-hero-title { font-size: 1.25rem; font-weight: 700; color: #fff; margin: 0 0 4px; }
.dash-hero-sub   { font-size: .88rem; color: rgba(255,255,255,.8); margin: 0; }
.dash-hero-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,.15); color: #fff;
    padding: 8px 18px; border-radius: 8px; font-size: .84rem; font-weight: 600;
    text-decoration: none; border: 1px solid rgba(255,255,255,.2);
    white-space: nowrap; transition: background .2s;
}
.dash-hero-btn:hover { background: rgba(255,255,255,.25); color: #fff; text-decoration: none; }

/* ===== STAT CARDS ===== */
.dash-stat {
    display: flex; align-items: center; gap: 16px;
    background: #fff; border-radius: var(--sp-radius);
    padding: 18px 20px; text-decoration: none;
    box-shadow: var(--sp-card-shadow);
    margin-bottom: 16px; transition: transform .2s, box-shadow .2s;
}
.dash-stat:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.1); text-decoration: none; }
.dash-stat-icon {
    width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.35rem;
}
.dash-stat--indigo  .dash-stat-icon { background: rgba(79,70,229,.1);  color: var(--sp-primary); }
.dash-stat--emerald .dash-stat-icon { background: rgba(16,185,129,.1); color: #059669; }
.dash-stat--amber   .dash-stat-icon { background: rgba(245,158,11,.1); color: #d97706; }
.dash-stat--cyan    .dash-stat-icon { background: rgba(6,182,212,.1);  color: #0891b2; }
.dash-stat--rose    .dash-stat-icon { background: rgba(239,68,68,.1);  color: #dc2626; }
.dash-stat--slate   .dash-stat-icon { background: rgba(15,23,42,.08); color: #334155; }
.dash-stat--violet  .dash-stat-icon { background: rgba(139,92,246,.1); color: #7c3aed; }
.dash-stat--teal    .dash-stat-icon { background: rgba(20,184,166,.1); color: #0d9488; }
.dash-stat--info    .dash-stat-icon { background: rgba(99,102,241,.1); color: #4f46e5; }
.dash-stat-info    { min-width: 0; }
.dash-stat-value   { font-size: 1.3rem; font-weight: 700; color: #0f172a; margin: 0 0 2px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-stat-label   { font-size: .78rem; color: #64748b; margin: 0; }

/* ===== TABLES ===== */
.table th, .table td,
.table thead th, .table tbody td {
    font-size: .84rem;
    font-family: var(--sp-font);
    font-weight: 400;
    vertical-align: middle;
}
.table thead th { font-weight: 600; color: #374151; }
.table tbody td { color: #374151; }

/* ===== FORMS ===== */
.form-label { font-size: .84rem; font-weight: 600; color: #374151; margin-bottom: 5px; }
.form-control, .form--control {
    border: 1px solid #d1d5db; border-radius: var(--sp-radius-sm);
    height: 44px; font-size: .84rem; font-weight: 400; color: #1e293b;
    transition: border-color .15s, box-shadow .15s;
    font-family: var(--sp-font);
}
textarea.form-control, textarea.form--control { height: auto; }
.form-control:focus, .form--control:focus {
    border-color: var(--sp-primary);
    box-shadow: 0 0 0 3px rgba(79,70,229,.12); outline: none;
}
.form-group { margin-bottom: 16px; }

/* ===== BUTTONS ===== */
.btn { font-family: var(--sp-font); }
.btn--primary, .btn-primary,
.btn--base {
    background: var(--sp-primary) !important;
    border-color: var(--sp-primary) !important;
    color: #fff !important;
}
.btn--primary:hover, .btn-primary:hover,
.btn--base:hover {
    background: var(--sp-primary-hover) !important;
    border-color: var(--sp-primary-hover) !important;
}
.btn-outline--primary {
    color: var(--sp-primary) !important;
    border-color: var(--sp-primary) !important;
    background: transparent !important;
}
.btn-outline--primary:hover {
    background: var(--sp-primary) !important;
    color: #fff !important;
}

/* ===== ALERTS ===== */
.alert { border-radius: var(--sp-radius-sm); }

/* ===== PAGINATION ===== */
.pagination { margin-bottom: 0; }

/* ===== MISC ===== */
.bg--base { background: var(--sp-primary) !important; }
.text--primary { color: var(--sp-primary) !important; }
.responsive-filter-card { display: none; }

/* ===== PRIMARY COLOR OVERRIDES ===== */
/* Override orange bg--primary from app.css */
.bg--primary,
.card-header.bg--primary { background-color: var(--sp-primary) !important; }
.card-header.bg--primary,
.card-header.bg--primary h5,
.card-header.bg--primary h5.text-white { color: #fff !important; border-radius: var(--sp-radius) var(--sp-radius) 0 0; }

/* ===== BADGES ===== */
.badge--success, .badge--warning, .badge--danger,
.badge--primary, .badge--dark, .badge--pending {
    display: inline-flex; align-items: center;
    padding: 2px 9px; border-radius: 999px;
    font-size: .72rem; font-weight: 400; letter-spacing: .03em;
    line-height: 1.6; text-transform: capitalize;
}
.badge--success  { background: rgba(16,185,129,.1);  color: #059669; border: 1px solid #059669; }
.badge--warning,
.badge--pending  { background: rgba(245,158,11,.1);  color: #d97706; border: 1px solid #d97706; }
.badge--danger   { background: rgba(239,68,68,.1);   color: #dc2626; border: 1px solid #dc2626; }
.badge--primary  { background: rgba(79,70,229,.1);   color: var(--sp-primary); border: 1px solid var(--sp-primary); }
.badge--dark     { background: #1e293b;              color: #f1f5f9; border: 1px solid #1e293b; }

/* ===== TABLES ===== */
/* Fix app.css overriding fw-bold inside tables */
.table td > .fw-bold { font-weight: 600 !important; }
/* Fix app.css centering table content — use left align like website builder */
.table th, .table td,
.table thead th, .table tbody td {
    text-align: left !important;
}
table th:last-child, table td:last-child { text-align: right !important; }
table th:first-child, table td:first-child { text-align: left !important; }
/* table--light: give thead the primary color to match website builder style */
table.table--light thead tr th,
table.table--light.style--two thead tr th {
    background-color: var(--sp-primary) !important;
    color: #fff !important;
    border: none !important;
    font-size: .84rem;
    font-weight: 600;
    letter-spacing: .02em;
    padding: 12px 20px;
    white-space: nowrap;
}
table.table--light.style--two tbody td { padding: 10px 20px; }

/* ===== CUSTOM TABLE ===== */
.custom--table {
    width: 100%; border-collapse: separate; border-spacing: 0;
    background: #fff; border-radius: var(--sp-radius); overflow: hidden;
}
.custom--table thead th {
    background: var(--sp-primary); color: #fff;
    font-size: .96rem; font-weight: 600; letter-spacing: .03em;
    padding: 12px 16px; border: none; white-space: nowrap;
}
.custom--table thead th:last-child { text-align: right !important; }
.custom--table tbody td {
    padding: 12px 16px; font-size: 1rem;
    vertical-align: middle; border-bottom: 1px solid #f1f5f9; color: #374151;
}
.custom--table tbody td:last-child { text-align: right !important; }
.custom--table tbody tr:last-child td { border-bottom: none; }
.custom--table tbody tr:hover { background: #fafbff; }

/* ===== BUTTON GROUP ===== */
.button--group { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; justify-content: flex-end; }

/* ===== HEADER TITLE ===== */
.header-title { font-size: 1rem; font-weight: 600; color: #0f172a; margin: 0; }

/* ===== LINKS ===== */
a { color: var(--sp-primary); }
a:hover { color: var(--sp-primary-hover); }
