/* css/style.css — WSM design system (FinOps BankSync style) */

/* =========================================================
   DESIGN TOKENS
   ========================================================= */
:root {
    --wsm-green:        #16a34a;
    --wsm-green-hover:  #15803d;
    --wsm-green-light:  #dcfce7;
    --wsm-navy:         #0d1b2e;
    --wsm-navy-mid:     #132340;
    --wsm-navy-light:   #1a2f52;
    --wsm-page-bg:      #f0f2f5;
    --wsm-sidebar-w:    240px;
    --wsm-topbar-h:     56px;
}

/* =========================================================
   BASE
   ========================================================= */
body {
    background: var(--wsm-page-bg);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

[data-bs-theme="dark"] body {
    background: #0a0f1a;
}

/* =========================================================
   AUTH PAGES — CENTERED CARD LAYOUT (FinOps style)
   ========================================================= */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: var(--wsm-page-bg);
}

/* The outer rounded card */
.auth-card {
    display: flex;
    width: 100%;
    max-width: 900px;
    min-height: 560px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.18);
}

/* Left dark panel */
.auth-brand {
    width: 44%;
    background: linear-gradient(160deg, var(--wsm-navy-mid) 0%, var(--wsm-navy) 100%);
    display: flex;
    flex-direction: column;
    padding: 2.25rem 2rem;
    position: relative;
    overflow: hidden;
}

/* Decorative circles */
.auth-brand::before {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    top: -80px;
    right: -80px;
}
.auth-brand::after {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    bottom: -60px;
    left: -60px;
}

.auth-brand-top {
    position: relative;
    z-index: 1;
}

/* Logo badge — square rounded, like "FO" badge */
.auth-logo-badge {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #16a34a, #0d9488);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    color: #fff;
}

.auth-brand-sub {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #4ade80;
    margin-bottom: 0.85rem;
}

.auth-brand-address {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.4;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 0.5rem 0.7rem;
    margin-bottom: 1.5rem;
}
.auth-brand-address i { color: #4ade80; margin-top: 0.15rem; flex-shrink: 0; }

.auth-brand-headline {
    font-size: 1.45rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 0.6rem;
}

.auth-brand-headline .accent {
    color: #4ade80;
}

.auth-brand-desc {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 1.75rem;
    line-height: 1.5;
}

.auth-brand-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.auth-brand-features li {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.75);
    padding: 0.3rem 0;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.auth-brand-features li i {
    color: #4ade80;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.auth-brand-footer {
    margin-top: auto;
    position: relative;
    z-index: 1;
    padding-top: 1.5rem;
}

.auth-brand-cta {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.55);
    margin-top: 1.25rem;
}
.auth-brand-cta a {
    color: #4ade80;
    font-weight: 600;
    text-decoration: none;
    margin-left: 0.3rem;
}
.auth-brand-cta a:hover { text-decoration: underline; }

.auth-brand-contact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 0.5rem 0.85rem;
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
    text-decoration: none;
    transition: background 0.15s;
}
.auth-brand-contact:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}
.auth-brand-contact i { color: #4ade80; }

.auth-brand-copyright {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.25);
    margin-top: 0.85rem;
}

.pwa-install-banner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}
[data-bs-theme="dark"] .pwa-install-banner {
    background: rgba(16,185,129,0.12);
    border-color: rgba(16,185,129,0.3);
    color: #6ee7b7;
}

/* Right white form panel */
.auth-form-panel {
    flex: 1;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.25rem 2.25rem;
}

[data-bs-theme="dark"] .auth-form-panel {
    background: #111827;
}

.auth-form-box {
    width: 100%;
    max-width: 360px;
}

.auth-form-box h4 {
    font-size: 1.45rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
    color: #111827;
}

[data-bs-theme="dark"] .auth-form-box h4 { color: #f9fafb; }

.auth-subtitle {
    font-size: 0.82rem;
    color: #6b7280;
    margin-bottom: 1.75rem;
}

/* Icon input group */
.auth-input-group {
    position: relative;
    margin-bottom: 1rem;
}

.auth-input-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.4rem;
}

[data-bs-theme="dark"] .auth-input-group label { color: #d1d5db; }

.auth-input-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 0.9rem;
    pointer-events: none;
}

.auth-input-group input {
    width: 100%;
    padding: 0.6rem 0.85rem 0.6rem 2.4rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 9px;
    font-size: 0.875rem;
    background: #f9fafb;
    color: #111827;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-input-group input:focus {
    border-color: var(--wsm-green);
    box-shadow: 0 0 0 3px rgba(22,163,74,0.12);
    background: #fff;
}

[data-bs-theme="dark"] .auth-input-group input {
    background: #1f2937;
    border-color: #374151;
    color: #f9fafb;
}

[data-bs-theme="dark"] .auth-input-group input:focus {
    background: #111827;
    border-color: var(--wsm-green);
}

/* Admin / Staff tab switcher on login page */
.auth-tab-row {
    display: flex;
    gap: 0;
    background: #f3f4f6;
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 1.5rem;
}
.auth-tab {
    flex: 1;
    border: none;
    background: transparent;
    border-radius: 7px;
    padding: 0.45rem 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.auth-tab.active {
    background: #fff;
    color: #111827;
    box-shadow: 0 1px 4px rgba(0,0,0,0.10);
}
[data-bs-theme="dark"] .auth-tab-row { background: #1f2937; }
[data-bs-theme="dark"] .auth-tab.active { background: #374151; color: #f9fafb; }

/* Captcha row: dark badge + input side by side */
.auth-captcha-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.auth-captcha-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--wsm-navy);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: 9px;
    padding: 0.6rem 1rem;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 90px;
    letter-spacing: 0.03em;
}

.auth-captcha-input {
    flex: 1;
    padding: 0.6rem 0.85rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 9px;
    font-size: 0.875rem;
    background: #f9fafb;
    color: #111827;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-captcha-input:focus {
    border-color: var(--wsm-green);
    box-shadow: 0 0 0 3px rgba(22,163,74,0.12);
    background: #fff;
}

[data-bs-theme="dark"] .auth-captcha-input {
    background: #1f2937;
    border-color: #374151;
    color: #f9fafb;
}

/* Sign in button */
.auth-btn-primary {
    width: 100%;
    padding: 0.7rem 1rem;
    background: var(--wsm-green);
    color: #fff;
    border: none;
    border-radius: 9px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.auth-btn-primary:hover { background: var(--wsm-green-hover); }
.auth-btn-primary:active { transform: scale(0.99); }
.auth-btn-primary:disabled { opacity: 0.65; cursor: not-allowed; }

.auth-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.8rem;
}

.auth-links a {
    color: var(--wsm-green);
    text-decoration: none;
    font-weight: 500;
}
.auth-links a:hover { text-decoration: underline; }
.auth-links .sep { color: #d1d5db; }

/* Mobile: stack panels */
.auth-logo-mobile {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, #16a34a, #0d9488);
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 1rem;
}

@media (max-width: 767px) {
    .auth-page { padding: 1rem; }
    .auth-card { flex-direction: column; border-radius: 14px; max-width: 420px; min-height: auto; }
    /* Swap visual stacking order on mobile: form panel first (top), brand/marketing
       panel second (bottom) — so the actual sign-in form is reachable without
       scrolling past the branding. DOM order is untouched, only the display order. */
    .auth-form-panel { order: -1; padding: 1.5rem; }
    .auth-brand { order: 1; width: 100%; padding: 1.5rem 1.5rem 1.25rem; }
    .auth-brand-headline { font-size: 1.15rem; }
    .auth-brand-footer { display: none; }
    .auth-logo-mobile { display: flex; }
}

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

.sidebar {
    width: var(--wsm-sidebar-w);
    min-width: var(--wsm-sidebar-w);
    background: var(--wsm-navy);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1030;
    transition: transform 0.25s ease;
    overflow-y: auto;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 1.1rem 1.25rem;
    color: #fff;
    font-weight: 700;
    font-size: 0.975rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    text-decoration: none;
    flex-shrink: 0;
}

.sidebar-brand-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #16a34a, #0d9488);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #fff;
    flex-shrink: 0;
}

.sidebar-section-label {
    padding: 1rem 1.25rem 0.3rem;
    font-size: 0.67rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
}

.sidebar-nav {
    flex: 1;
    padding: 0.5rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0.75rem;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 0.875rem;
    border-radius: 7px;
    transition: background 0.15s, color 0.15s;
}

.sidebar-nav a i {
    font-size: 1rem;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-nav a:hover {
    background: rgba(255,255,255,0.07);
    color: #fff;
}

.sidebar-nav a.active {
    background: rgba(22,163,74,0.18);
    color: #4ade80;
    font-weight: 600;
}

.sidebar-nav a.active i { color: #4ade80; }

.sidebar-footer {
    padding: 0.85rem 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}

.sidebar-user-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-role {
    font-size: 0.67rem;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.btn-sidebar-logout {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0;
    color: rgba(255,255,255,0.45);
    font-size: 0.8rem;
    background: none;
    border: none;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: color 0.15s;
}

.btn-sidebar-logout:hover { color: #fff; }

/* Main content */
.main-content {
    margin-left: var(--wsm-sidebar-w);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--wsm-page-bg);
}

[data-bs-theme="dark"] .main-content { background: #0a0f1a; }

.topbar {
    height: var(--wsm-topbar-h);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    border-bottom: 1px solid var(--bs-border-color);
    gap: 0.75rem;
    flex-shrink: 0;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
}

[data-bs-theme="dark"] .topbar { background: #111827; }

.topbar-hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--bs-body-color);
    padding: 0;
    cursor: pointer;
    line-height: 1;
}

.topbar-title {
    font-weight: 700;
    font-size: 0.9rem;
    flex: 1;
    color: var(--wsm-navy);
}

[data-bs-theme="dark"] .topbar-title { color: #f9fafb; }

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-body {
    padding: 1.5rem;
    flex: 1;
}

/* Sidebar overlay (mobile) */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1025;
}

@media (max-width: 991px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .sidebar-overlay.open { display: block; }
    .main-content { margin-left: 0; }
    .topbar-hamburger { display: block; }
}

/* =========================================================
   STATUS CARDS
   ========================================================= */
.status-filter-card {
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    border-radius: 10px !important;
}

[data-bs-theme="dark"] .status-filter-card {
    background: #1f2937;
    border-color: #374151;
}

.status-filter-card:hover {
    border-color: var(--wsm-green) !important;
}

.status-filter-card.active-filter {
    border-color: var(--wsm-green) !important;
    background: var(--wsm-green-light) !important;
}

[data-bs-theme="dark"] .status-filter-card.active-filter {
    background: rgba(22,163,74,0.15) !important;
}

.status-filter-card .count-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--wsm-navy);
}

[data-bs-theme="dark"] .status-filter-card .count-value { color: #f9fafb; }

/* =========================================================
   MISC
   ========================================================= */
.clickable-row { cursor: pointer; }

/* Green accent for action buttons throughout the app */
.btn-wsm {
    background: var(--wsm-green);
    color: #fff;
    border: none;
    font-weight: 600;
}
.btn-wsm:hover {
    background: var(--wsm-green-hover);
    color: #fff;
}

/* =========================================================
   CUSTOMER PORTAL
   ========================================================= */
.portal-topbar {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}
[data-bs-theme="dark"] .portal-topbar {
    background: #111827;
    border-color: #1f2937;
}
.portal-topbar-brand { font-weight: 800; color: var(--wsm-navy); }
[data-bs-theme="dark"] .portal-topbar-brand { color: #f9fafb; }

.portal-body { padding: 1.25rem; max-width: 960px; margin: 0 auto; }

.portal-service-card {
    cursor: pointer;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px !important;
    transition: border-color 0.15s ease, transform 0.1s ease;
    background: #fff;
    height: 100%;
}
[data-bs-theme="dark"] .portal-service-card {
    background: #1f2937;
    border-color: #374151;
}
.portal-service-card:hover {
    border-color: var(--wsm-green) !important;
    transform: translateY(-1px);
}
.portal-service-card .card-body { padding: 1rem; }

.portal-offer-badge {
    position: absolute;
    top: -8px;
    right: 10px;
    font-size: 0.65rem;
    padding: 0.3rem 0.5rem;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

/* Category filter pills — service catalog (index.php branded page + portal.php) */
.catalog-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.catalog-pill-row:empty { display: none; }
.catalog-pill {
    flex: 0 0 auto;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    color: #374151;
    border-radius: 999px;
    padding: 0.3rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}
.catalog-pill:hover { border-color: var(--wsm-green); }
.catalog-pill.active {
    background: var(--wsm-green);
    border-color: var(--wsm-green);
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    box-shadow: 0 2px 6px rgba(22,163,74,0.35);
    transform: translateY(-1px);
}
[data-bs-theme="dark"] .catalog-pill { background: #1f2937; border-color: #374151; color: #e5e7eb; }
[data-bs-theme="dark"] .catalog-pill.active { background: var(--wsm-green); border-color: var(--wsm-green); color: #fff; }

/* Per-category accent colors (cycled by index, "All" always stays brand green above) */
.catalog-pill-c0 { background: #e0f2fe; border-color: #bae6fd; color: #075985; }
.catalog-pill-c1 { background: #ede9fe; border-color: #ddd6fe; color: #5b21b6; }
.catalog-pill-c2 { background: #ffedd5; border-color: #fed7aa; color: #9a3412; }
.catalog-pill-c3 { background: #fce7f3; border-color: #fbcfe8; color: #9d174d; }
.catalog-pill-c4 { background: #ccfbf1; border-color: #99f6e4; color: #115e59; }
.catalog-pill-c5 { background: #fef9c3; border-color: #fef08a; color: #854d0e; }
.catalog-pill-c6 { background: #e0e7ff; border-color: #c7d2fe; color: #3730a3; }
.catalog-pill-c7 { background: #fee2e2; border-color: #fecaca; color: #991b1b; }

.catalog-pill-c0.active { background: #0ea5e9; border-color: #0ea5e9; color: #fff; box-shadow: 0 2px 6px rgba(14,165,233,0.35); }
.catalog-pill-c1.active { background: #8b5cf6; border-color: #8b5cf6; color: #fff; box-shadow: 0 2px 6px rgba(139,92,246,0.35); }
.catalog-pill-c2.active { background: #f97316; border-color: #f97316; color: #fff; box-shadow: 0 2px 6px rgba(249,115,22,0.35); }
.catalog-pill-c3.active { background: #ec4899; border-color: #ec4899; color: #fff; box-shadow: 0 2px 6px rgba(236,72,153,0.35); }
.catalog-pill-c4.active { background: #14b8a6; border-color: #14b8a6; color: #fff; box-shadow: 0 2px 6px rgba(20,184,166,0.35); }
.catalog-pill-c5.active { background: #eab308; border-color: #eab308; color: #1f2937; box-shadow: 0 2px 6px rgba(234,179,8,0.35); }
.catalog-pill-c6.active { background: #6366f1; border-color: #6366f1; color: #fff; box-shadow: 0 2px 6px rgba(99,102,241,0.35); }
.catalog-pill-c7.active { background: #ef4444; border-color: #ef4444; color: #fff; box-shadow: 0 2px 6px rgba(239,68,68,0.35); }

[data-bs-theme="dark"] .catalog-pill-c0 { background: rgba(14,165,233,0.18); border-color: rgba(14,165,233,0.4); color: #7dd3fc; }
[data-bs-theme="dark"] .catalog-pill-c1 { background: rgba(139,92,246,0.18); border-color: rgba(139,92,246,0.4); color: #c4b5fd; }
[data-bs-theme="dark"] .catalog-pill-c2 { background: rgba(249,115,22,0.18); border-color: rgba(249,115,22,0.4); color: #fdba74; }
[data-bs-theme="dark"] .catalog-pill-c3 { background: rgba(236,72,153,0.18); border-color: rgba(236,72,153,0.4); color: #f9a8d4; }
[data-bs-theme="dark"] .catalog-pill-c4 { background: rgba(20,184,166,0.18); border-color: rgba(20,184,166,0.4); color: #5eead4; }
[data-bs-theme="dark"] .catalog-pill-c5 { background: rgba(234,179,8,0.18); border-color: rgba(234,179,8,0.4); color: #fde047; }
[data-bs-theme="dark"] .catalog-pill-c6 { background: rgba(99,102,241,0.18); border-color: rgba(99,102,241,0.4); color: #a5b4fc; }
[data-bs-theme="dark"] .catalog-pill-c7 { background: rgba(239,68,68,0.18); border-color: rgba(239,68,68,0.4); color: #fca5a5; }

.catalog-pagination:empty { display: none; }

.portal-ticket-card {
    border: 1.5px solid #e5e7eb;
    border-radius: 10px !important;
    cursor: pointer;
    background: #fff;
}
[data-bs-theme="dark"] .portal-ticket-card {
    background: #1f2937;
    border-color: #374151;
}
.portal-ticket-card:hover { border-color: var(--wsm-green) !important; }

.portal-tab-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}
[data-bs-theme="dark"] .portal-tab-row { border-color: #374151; }
.portal-tab {
    border: none;
    background: none;
    padding: 0.6rem 0.25rem;
    font-weight: 600;
    color: #6b7280;
    border-bottom: 2.5px solid transparent;
}
.portal-tab.active { color: var(--wsm-green); border-color: var(--wsm-green); }
