/* ═══════════════════════════════════════════════════════════════
   Bankers Bank Plugin — Public CSS v1.1
   All selectors prefixed with .bb-plugin-root for specificity
═══════════════════════════════════════════════════════════════ */

/* ── Design tokens ── */
.bb-plugin-root {
    --bb-navy:      #0f1f3d;
    --bb-navy-2:    #162745;
    --bb-navy-3:    #1e3358;
    --bb-gold:      #c9a227;
    --bb-gold-dark: #a8861f;
    --bb-white:     #ffffff;
    --bb-light:     #f4f6fb;
    --bb-border:    #d1d9e6;
    --bb-text:      #1e2a3a;
    --bb-muted:     #64748b;
    --bb-success:   #16a34a;
    --bb-danger:    #dc2626;
    --bb-warning:   #d97706;
    --bb-font:      -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    --bb-radius:    10px;
    --bb-radius-lg: 16px;
    --bb-shadow:    0 1px 3px rgba(0,0,0,.07), 0 4px 16px rgba(0,0,0,.07);
    --bb-shadow-lg: 0 8px 40px rgba(0,0,0,.18);
    --bb-sidebar-w: 240px;
    font-family: var(--bb-font);
    color: var(--bb-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.bb-plugin-root *,
.bb-plugin-root *::before,
.bb-plugin-root *::after {
    box-sizing: border-box;
}

.bb-plugin-root a { text-decoration: none; color: inherit; }
.bb-plugin-root img { max-width: 100%; display: block; }
.bb-plugin-root p { margin: 0; }
.bb-plugin-root ul, .bb-plugin-root ol { list-style: none; margin: 0; padding: 0; }

/* ═══════════════════════════════════════════════════════════════
   FORM FIELDS — high specificity to beat Elementor/theme resets
═══════════════════════════════════════════════════════════════ */

/* Labels */
.bb-plugin-root .bb-field { margin-bottom: 16px; }
.bb-plugin-root .bb-field > label {
    display: block !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #374151 !important;
    margin: 0 0 6px 0 !important;
    letter-spacing: .02em !important;
    font-family: var(--bb-font) !important;
    text-transform: none !important;
    line-height: 1.4 !important;
}

/* All input types, select, textarea inside .bb-field */
.bb-plugin-root .bb-field input[type="text"],
.bb-plugin-root .bb-field input[type="email"],
.bb-plugin-root .bb-field input[type="number"],
.bb-plugin-root .bb-field input[type="date"],
.bb-plugin-root .bb-field input[type="datetime-local"],
.bb-plugin-root .bb-field input[type="password"],
.bb-plugin-root .bb-field input[type="tel"],
.bb-plugin-root .bb-field select,
.bb-plugin-root .bb-field textarea {
    display: block !important;
    width: 100% !important;
    padding: 10px 13px !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    border: 1.5px solid #d1d9e6 !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-family: var(--bb-font) !important;
    color: #1e2a3a !important;
    line-height: 1.5 !important;
    outline: none !important;
    box-shadow: none !important;
    appearance: auto !important;
    -webkit-appearance: auto !important;
    transition: border-color .15s ease, box-shadow .15s ease !important;
    margin: 0 !important;
    min-height: 40px !important;
}

.bb-plugin-root .bb-field textarea {
    resize: vertical !important;
    min-height: 88px !important;
}

.bb-plugin-root .bb-field input::placeholder,
.bb-plugin-root .bb-field textarea::placeholder {
    color: #9ca3af !important;
    opacity: 1 !important;
}

.bb-plugin-root .bb-field input:focus,
.bb-plugin-root .bb-field select:focus,
.bb-plugin-root .bb-field textarea:focus {
    border-color: var(--bb-navy) !important;
    box-shadow: 0 0 0 3px rgba(15,31,61,.1) !important;
    outline: none !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
}

.bb-plugin-root .bb-field input:hover,
.bb-plugin-root .bb-field select:hover,
.bb-plugin-root .bb-field textarea:hover {
    border-color: #9ba8be !important;
}

/* Select arrow */
.bb-plugin-root .bb-field select {
    cursor: pointer !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    padding-right: 36px !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

/* Field grid layouts */
.bb-plugin-root .bb-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bb-plugin-root .bb-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.bb-plugin-root .bb-field-required { color: var(--bb-danger); margin-left: 2px; }

/* Filter bar inputs */
.bb-plugin-root .bb-filter-select,
.bb-plugin-root .bb-filter-date {
    padding: 8px 13px !important;
    border: 1.5px solid #d1d9e6 !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-family: var(--bb-font) !important;
    color: var(--bb-text) !important;
    background: var(--bb-white) !important;
    background-color: var(--bb-white) !important;
    outline: none !important;
    cursor: pointer !important;
    min-height: 36px !important;
}

/* Auth fields (dark background) */
.bb-plugin-root .bb-auth-field { margin-bottom: 18px; }
.bb-plugin-root .bb-auth-field > label {
    display: block !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    color: rgba(255,255,255,.55) !important;
    margin: 0 0 7px 0 !important;
    letter-spacing: .05em !important;
    text-transform: uppercase !important;
    font-family: var(--bb-font) !important;
}

.bb-plugin-root .bb-auth-field input {
    display: block !important;
    width: 100% !important;
    padding: 11px 14px !important;
    background: rgba(255,255,255,.08) !important;
    background-color: rgba(255,255,255,.08) !important;
    border: 1px solid rgba(255,255,255,.15) !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-family: var(--bb-font) !important;
    outline: none !important;
    box-shadow: none !important;
    min-height: 44px !important;
    transition: border-color .15s, background .15s !important;
    margin: 0 !important;
    line-height: 1.5 !important;
}

.bb-plugin-root .bb-auth-field input::placeholder { color: rgba(255,255,255,.3) !important; opacity: 1 !important; }
.bb-plugin-root .bb-auth-field input:focus {
    border-color: var(--bb-gold) !important;
    background: rgba(255,255,255,.12) !important;
    background-color: rgba(255,255,255,.12) !important;
    outline: none !important;
}

.bb-plugin-root .bb-auth-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ═══════════════════════════════════════════════════════════════
   APP LAYOUT
═══════════════════════════════════════════════════════════════ */
.bb-plugin-root .bb-app {
    display: flex;
    min-height: 100vh;
    background: var(--bb-light);
}

/* Sidebar */
.bb-plugin-root .bb-sidebar {
    width: var(--bb-sidebar-w);
    flex-shrink: 0;
    background: var(--bb-navy);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    transition: transform .25s ease;
    z-index: 50;
}

.bb-plugin-root .bb-sidebar-logo {
    padding: 20px 16px 18px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    flex-shrink: 0;
}
.bb-plugin-root .bb-sidebar-logo-inner {
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
}
.bb-plugin-root .bb-sidebar-logo-mark {
    width: 38px; height: 38px;
    background: var(--bb-gold);
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; color: #fff;
}
.bb-plugin-root .bb-sidebar-logo-mark svg { width: 21px; height: 21px; }
.bb-plugin-root .bb-sidebar-logo-text .name {
    display: block; font-size: 15px; font-weight: 700; color: #fff;
    letter-spacing: -.2px; line-height: 1.2;
}
.bb-plugin-root .bb-sidebar-logo-text .sub {
    display: block; font-size: 10px; color: rgba(255,255,255,.32);
    margin-top: 1px; letter-spacing: .04em;
}

.bb-plugin-root .bb-sidebar-nav { padding: 12px 10px; flex: 1; overflow-y: auto; }
.bb-plugin-root .bb-nav-section-label {
    display: block;
    font-size: 9.5px; text-transform: uppercase; letter-spacing: .1em;
    color: rgba(255,255,255,.28); padding: 10px 12px 4px; font-weight: 600;
}
.bb-plugin-root .bb-sidebar-nav a {
    display: flex !important; align-items: center; gap: 10px;
    padding: 9px 12px !important; border-radius: 8px;
    color: rgba(255,255,255,.54) !important; font-size: 13.5px; font-weight: 400;
    margin-bottom: 2px; transition: background .14s, color .14s;
    text-decoration: none !important; white-space: nowrap;
    background: transparent !important; border: none !important;
}
.bb-plugin-root .bb-sidebar-nav a svg { width: 16px; height: 16px; flex-shrink: 0; }
.bb-plugin-root .bb-sidebar-nav a:hover {
    background: rgba(255,255,255,.09) !important;
    color: rgba(255,255,255,.92) !important;
}
.bb-plugin-root .bb-sidebar-nav a.bb-active {
    background: rgba(201,162,39,.16) !important;
    color: var(--bb-gold) !important; font-weight: 600;
}

.bb-plugin-root .bb-sidebar-foot {
    padding: 12px 10px;
    border-top: 1px solid rgba(255,255,255,.07);
    flex-shrink: 0;
}
.bb-plugin-root .bb-sidebar-user {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px; border-radius: 8px; cursor: pointer;
}
.bb-plugin-root .bb-sidebar-user:hover { background: rgba(255,255,255,.06); }
.bb-plugin-root .bb-user-ava {
    width: 33px; height: 33px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; color: #fff;
    flex-shrink: 0; text-transform: uppercase;
}
.bb-plugin-root .bb-user-ava-name {
    display: block; color: #fff; font-size: 13px; font-weight: 500;
    line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bb-plugin-root .bb-user-ava-role {
    display: block; color: rgba(255,255,255,.35); font-size: 11px; margin-top: 1px;
}
.bb-plugin-root .bb-sidebar-logout {
    display: flex !important; align-items: center; gap: 8px;
    padding: 8px 12px !important; color: rgba(255,255,255,.38) !important;
    font-size: 12.5px; border-radius: 8px;
    transition: all .14s; text-decoration: none !important;
    background: transparent !important; border: none !important;
}
.bb-plugin-root .bb-sidebar-logout:hover {
    background: rgba(255,255,255,.06) !important;
    color: rgba(255,255,255,.65) !important;
}
.bb-plugin-root .bb-sidebar-logout svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Overlay */
.bb-plugin-root .bb-sidebar-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.5); z-index: 49;
}
.bb-plugin-root .bb-sidebar-overlay.visible { display: block; }

/* Sidebar toggle button */
.bb-plugin-root .bb-sidebar-toggle {
    display: none; background: none; border: none; cursor: pointer;
    padding: 7px; border-radius: 7px; color: var(--bb-muted);
    transition: background .14s; line-height: 0;
}
.bb-plugin-root .bb-sidebar-toggle:hover { background: var(--bb-light); }
.bb-plugin-root .bb-sidebar-toggle svg { width: 20px; height: 20px; display: block; }

/* Content area */
.bb-plugin-root .bb-content {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column;
    background: var(--bb-light);
}

/* Top bar */
.bb-plugin-root .bb-topbar {
    background: #fff;
    border-bottom: 1px solid var(--bb-border);
    padding: 0 24px; height: 58px;
    display: flex; align-items: center;
    justify-content: space-between; gap: 14px;
    position: sticky; top: 0; z-index: 20; flex-shrink: 0;
}
.bb-plugin-root .bb-topbar-left { display: flex; align-items: center; gap: 12px; }
.bb-plugin-root .bb-topbar-title {
    font-size: 17px; font-weight: 700; color: var(--bb-navy);
    margin: 0; padding: 0; white-space: nowrap; line-height: 1;
}
.bb-plugin-root .bb-topbar-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.bb-plugin-root .bb-body { padding: 24px; flex: 1; }

/* ═══════════════════════════════════════════════════════════════
   LANDING PAGE
═══════════════════════════════════════════════════════════════ */
.bb-plugin-root .bb-landing { background: var(--bb-white); }
.bb-plugin-root .bb-hero {
    background: var(--bb-navy); padding: 80px 24px 72px; text-align: center;
}
.bb-plugin-root .bb-hero-brand {
    display: flex; align-items: center; justify-content: center;
    gap: 14px; margin-bottom: 32px;
}
.bb-plugin-root .bb-hero-mark {
    width: 58px; height: 58px; background: var(--bb-gold);
    border-radius: 15px; display: flex; align-items: center; justify-content: center;
    color: #fff;
}
.bb-plugin-root .bb-hero-mark svg { width: 32px; height: 32px; }
.bb-plugin-root .bb-hero-brand-name { font-size: 24px; font-weight: 800; color: #fff; }
.bb-plugin-root .bb-hero h1 {
    font-size: clamp(1.9rem, 5vw, 3rem); font-weight: 800;
    color: #fff; line-height: 1.18; letter-spacing: -.5px;
    max-width: 640px; margin: 0 auto 18px;
}
.bb-plugin-root .bb-hero h1 em { color: var(--bb-gold); font-style: normal; }
.bb-plugin-root .bb-hero > p {
    font-size: 1.05rem; color: rgba(255,255,255,.62);
    max-width: 500px; margin: 0 auto 38px; line-height: 1.75;
}
.bb-plugin-root .bb-hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.bb-plugin-root .bb-hero-btn-gold {
    background: var(--bb-gold); color: #fff !important; font-size: 14px; font-weight: 700;
    padding: 11px 28px; border-radius: 9px;
    display: inline-flex; align-items: center; gap: 8px;
    transition: background .15s; text-decoration: none !important;
}
.bb-plugin-root .bb-hero-btn-gold:hover { background: var(--bb-gold-dark); }
.bb-plugin-root .bb-hero-btn-outline {
    color: rgba(255,255,255,.8) !important; font-size: 14px; font-weight: 600;
    padding: 11px 28px; border-radius: 9px;
    border: 1.5px solid rgba(255,255,255,.25) !important;
    display: inline-flex; align-items: center; gap: 8px;
    transition: all .15s; text-decoration: none !important;
}
.bb-plugin-root .bb-hero-btn-outline:hover { border-color: rgba(255,255,255,.5) !important; color: #fff !important; }

.bb-plugin-root .bb-features-section { padding: 68px 24px; background: var(--bb-white); }
.bb-plugin-root .bb-features-inner { max-width: 1100px; margin: 0 auto; }
.bb-plugin-root .bb-features-heading { text-align: center; font-size: 1.8rem; font-weight: 800; color: var(--bb-navy); margin-bottom: 8px; }
.bb-plugin-root .bb-features-sub { text-align: center; color: var(--bb-muted); margin-bottom: 44px; font-size: 15px; }
.bb-plugin-root .bb-features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 20px; }
.bb-plugin-root .bb-feat-card {
    padding: 26px 24px; border-radius: var(--bb-radius-lg);
    border: 1px solid #e2e8f0; background: var(--bb-white);
    transition: border-color .15s, box-shadow .15s;
}
.bb-plugin-root .bb-feat-icon {
    width: 48px; height: 48px; background: rgba(15,31,61,.07);
    border-radius: 11px; display: flex; align-items: center; justify-content: center;
    margin-bottom: 14px; color: var(--bb-navy);
}
.bb-plugin-root .bb-feat-icon svg { width: 24px; height: 24px; }
.bb-plugin-root .bb-feat-card h3 { font-size: 15px; font-weight: 700; color: var(--bb-navy); margin: 0 0 8px; }
.bb-plugin-root .bb-feat-card p  { font-size: 13.5px; color: var(--bb-muted); line-height: 1.65; margin: 0; }
.bb-plugin-root .bb-landing-footer {
    background: var(--bb-navy); padding: 22px 32px; text-align: center;
    color: rgba(255,255,255,.38); font-size: 13px;
}
.bb-plugin-root .bb-landing-footer a { color: var(--bb-gold); }

/* ═══════════════════════════════════════════════════════════════
   AUTH PAGES
═══════════════════════════════════════════════════════════════ */
.bb-plugin-root .bb-auth-page-wrap {
    min-height: 100vh; background: var(--bb-navy);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 32px 20px;
}
.bb-plugin-root .bb-auth-box {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--bb-radius-lg);
    padding: 42px 46px;
    width: 440px; max-width: 100%;
}
.bb-plugin-root .bb-auth-logo {
    display: flex; align-items: center; justify-content: center;
    gap: 12px; margin-bottom: 30px;
}
.bb-plugin-root .bb-auth-logo-mark {
    width: 44px; height: 44px; background: var(--bb-gold);
    border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff;
}
.bb-plugin-root .bb-auth-logo-mark svg { width: 24px; height: 24px; }
.bb-plugin-root .bb-auth-logo-name { font-size: 20px; font-weight: 800; color: #fff; }
.bb-plugin-root .bb-auth-box h2 {
    font-size: 22px; font-weight: 700; color: #fff;
    text-align: center; margin: 0 0 6px;
}
.bb-plugin-root .bb-auth-tagline { font-size: 13.5px; color: rgba(255,255,255,.42); text-align: center; margin: 0 0 28px; }
.bb-plugin-root .bb-auth-row-extras {
    display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px;
}
.bb-plugin-root .bb-auth-remember {
    display: flex; align-items: center; gap: 7px;
    color: rgba(255,255,255,.5); font-size: 13px; cursor: pointer;
}
.bb-plugin-root .bb-auth-remember input[type="checkbox"] { accent-color: var(--bb-gold); cursor: pointer; }
.bb-plugin-root .bb-forgot-link { font-size: 13px; color: rgba(255,255,255,.45); }
.bb-plugin-root .bb-forgot-link:hover { color: var(--bb-gold); }
.bb-plugin-root .bb-auth-submit {
    width: 100%; padding: 12px;
    background: var(--bb-gold) !important; color: #fff !important;
    font-size: 14.5px; font-weight: 700;
    border: none !important; border-radius: 9px !important; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: background .15s; font-family: var(--bb-font);
    min-height: 46px;
}
.bb-plugin-root .bb-auth-submit:hover { background: var(--bb-gold-dark) !important; }
.bb-plugin-root .bb-auth-submit:disabled { opacity: .6; cursor: not-allowed; }
.bb-plugin-root .bb-auth-alt { text-align: center; font-size: 13px; color: rgba(255,255,255,.4); margin-top: 22px; }
.bb-plugin-root .bb-auth-alt a { color: var(--bb-gold); }
.bb-plugin-root .bb-auth-notice { text-align: center; padding: 20px 0; color: rgba(255,255,255,.55); font-size: 14px; }

/* ═══════════════════════════════════════════════════════════════
   STAT CARDS
═══════════════════════════════════════════════════════════════ */
.bb-plugin-root .bb-stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 16px; margin-bottom: 22px; }
.bb-plugin-root .bb-stat-card {
    background: #fff; border-radius: var(--bb-radius); padding: 20px 22px;
    box-shadow: var(--bb-shadow); border-top: 3px solid var(--bb-navy);
    position: relative; overflow: hidden;
}
.bb-plugin-root .bb-stat-card.c-gold    { border-top-color: var(--bb-gold); }
.bb-plugin-root .bb-stat-card.c-success { border-top-color: var(--bb-success); }
.bb-plugin-root .bb-stat-card.c-danger  { border-top-color: var(--bb-danger); }
.bb-plugin-root .bb-stat-icon {
    position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; border-radius: 10px;
    background: rgba(15,31,61,.06); display: flex; align-items: center; justify-content: center;
}
.bb-plugin-root .bb-stat-card.c-gold    .bb-stat-icon { background: rgba(201,162,39,.1); }
.bb-plugin-root .bb-stat-card.c-success .bb-stat-icon { background: rgba(22,163,74,.09); }
.bb-plugin-root .bb-stat-card.c-danger  .bb-stat-icon { background: rgba(220,38,38,.08); }
.bb-plugin-root .bb-stat-icon svg { width: 22px; height: 22px; }
.bb-plugin-root .bb-stat-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--bb-muted); font-weight: 600; margin-bottom: 7px; }
.bb-plugin-root .bb-stat-value { font-size: 22px; font-weight: 800; color: var(--bb-navy); line-height: 1; letter-spacing: -.4px; }
.bb-plugin-root .bb-stat-card.c-gold    .bb-stat-value { color: var(--bb-gold-dark); }
.bb-plugin-root .bb-stat-card.c-success .bb-stat-value { color: var(--bb-success); }
.bb-plugin-root .bb-stat-card.c-danger  .bb-stat-value { color: var(--bb-danger); }
.bb-plugin-root .bb-stat-sub { font-size: 12px; color: var(--bb-muted); margin-top: 5px; }

/* ═══════════════════════════════════════════════════════════════
   CARDS
═══════════════════════════════════════════════════════════════ */
.bb-plugin-root .bb-card {
    background: #fff; border-radius: var(--bb-radius); box-shadow: var(--bb-shadow);
    margin-bottom: 20px; overflow: hidden;
}
.bb-plugin-root .bb-card-head {
    padding: 14px 20px; border-bottom: 1px solid var(--bb-border);
    display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
}
.bb-plugin-root .bb-card-head h3 { font-size: 14px; font-weight: 700; color: var(--bb-navy); margin: 0; }
.bb-plugin-root .bb-card-body { padding: 0; }
.bb-plugin-root .bb-card-body.p { padding: 20px; }

/* ═══════════════════════════════════════════════════════════════
   TABLE
═══════════════════════════════════════════════════════════════ */
.bb-plugin-root .bb-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.bb-plugin-root .bb-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 540px; }
.bb-plugin-root .bb-table th {
    background: #f8fafc; color: var(--bb-muted);
    font-size: 10.5px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .06em; padding: 10px 16px;
    text-align: left; border-bottom: 1px solid var(--bb-border); white-space: nowrap;
}
.bb-plugin-root .bb-table td {
    padding: 11px 16px; border-bottom: 1px solid #f0f4f8; vertical-align: middle;
    color: var(--bb-text);
}
.bb-plugin-root .bb-table tr:last-child td { border-bottom: none; }
.bb-plugin-root .bb-table tr:hover td { background: #f8fafc; }
.bb-plugin-root .bb-table .no-wrap { white-space: nowrap; }

/* ═══════════════════════════════════════════════════════════════
   BADGES
═══════════════════════════════════════════════════════════════ */
.bb-plugin-root .bb-badge {
    display: inline-flex; align-items: center;
    padding: 3px 10px; border-radius: 20px;
    font-size: 11px; font-weight: 700; letter-spacing: .03em; white-space: nowrap;
}
.bb-plugin-root .bb-badge-credit  { background: #dcfce7; color: #15803d; }
.bb-plugin-root .bb-badge-debit   { background: #fee2e2; color: #b91c1c; }
.bb-plugin-root .bb-badge-neutral { background: #f1f5f9; color: #475569; }
.bb-plugin-root .bb-badge-success { background: #dcfce7; color: #15803d; }
.bb-plugin-root .bb-badge-primary { background: #dbeafe; color: #1e40af; }
.bb-plugin-root .bb-badge-warning { background: #fef9c3; color: #92400e; }
.bb-plugin-root .bb-badge-danger  { background: #fee2e2; color: #b91c1c; }
.bb-plugin-root .bb-badge-gray    { background: #f1f5f9; color: #475569; }
.bb-plugin-root .bb-badge-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; margin-right: 5px; flex-shrink: 0; }
.bb-plugin-root .bb-dot-active    { background: var(--bb-success); }
.bb-plugin-root .bb-dot-overdue   { background: var(--bb-danger); }
.bb-plugin-root .bb-dot-paused    { background: var(--bb-warning); }
.bb-plugin-root .bb-dot-completed { background: #3b82f6; }
.bb-plugin-root .bb-dot-inactive  { background: #94a3b8; }

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════════ */
.bb-plugin-root .bb-btn {
    display: inline-flex !important; align-items: center; gap: 7px;
    padding: 9px 20px !important; border-radius: 8px !important;
    font-size: 13.5px !important; font-weight: 600 !important;
    cursor: pointer; border: none !important; outline: none !important;
    text-decoration: none !important; transition: all .14s;
    line-height: 1 !important; white-space: nowrap; font-family: var(--bb-font) !important;
    box-shadow: none !important;
}
.bb-plugin-root .bb-btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.bb-plugin-root .bb-btn-primary { background: var(--bb-navy) !important; color: #fff !important; }
.bb-plugin-root .bb-btn-primary:hover { background: var(--bb-navy-3) !important; color: #fff !important; }
.bb-plugin-root .bb-btn-gold    { background: var(--bb-gold) !important; color: #fff !important; }
.bb-plugin-root .bb-btn-gold:hover { background: var(--bb-gold-dark) !important; color: #fff !important; }
.bb-plugin-root .bb-btn-outline {
    background: transparent !important; color: var(--bb-navy) !important;
    border: 1.5px solid var(--bb-border) !important;
}
.bb-plugin-root .bb-btn-outline:hover { border-color: var(--bb-navy) !important; background: var(--bb-light) !important; }
.bb-plugin-root .bb-btn-ghost {
    background: transparent !important; color: var(--bb-muted) !important;
    border: 1px solid var(--bb-border) !important;
}
.bb-plugin-root .bb-btn-ghost:hover { background: var(--bb-light) !important; color: var(--bb-text) !important; }
.bb-plugin-root .bb-btn-danger  { background: var(--bb-danger) !important; color: #fff !important; }
.bb-plugin-root .bb-btn-danger:hover { background: #b91c1c !important; }
.bb-plugin-root .bb-btn-sm  { padding: 6px 14px !important; font-size: 12.5px !important; }
.bb-plugin-root .bb-btn-xs  { padding: 4px 10px !important; font-size: 12px !important; }
.bb-plugin-root .bb-btn-icon { width: 34px !important; height: 34px !important; padding: 0 !important; justify-content: center; border-radius: 7px !important; }
.bb-plugin-root .bb-btn:disabled { opacity: .55; cursor: not-allowed; }

/* ═══════════════════════════════════════════════════════════════
   FILTER BAR
═══════════════════════════════════════════════════════════════ */
.bb-plugin-root .bb-filter-bar {
    display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
    padding: 12px 20px; border-bottom: 1px solid var(--bb-border);
    background: #fafbfd;
}
.bb-plugin-root .bb-search-wrap {
    display: flex; align-items: center; gap: 8px;
    background: #fff !important; border: 1.5px solid #d1d9e6 !important;
    border-radius: 8px; padding: 7px 13px;
    flex: 1; min-width: 160px;
}
.bb-plugin-root .bb-search-wrap svg { width: 14px; height: 14px; color: var(--bb-muted); flex-shrink: 0; }
.bb-plugin-root .bb-search-wrap input {
    border: none !important; outline: none !important;
    font-size: 13px !important; color: var(--bb-text) !important;
    width: 100% !important; background: transparent !important;
    font-family: var(--bb-font) !important; padding: 0 !important;
    box-shadow: none !important; min-height: unset !important;
}
.bb-plugin-root .bb-search-wrap input::placeholder { color: #9ca3af !important; }

/* ═══════════════════════════════════════════════════════════════
   MODAL — full override
═══════════════════════════════════════════════════════════════ */
.bb-plugin-root .bb-modal-backdrop {
    display: none;
    position: fixed; inset: 0;
    background: rgba(10,20,40,.7);
    z-index: 999999;
    align-items: flex-start; justify-content: center;
    padding: 40px 16px; overflow-y: auto;
}
.bb-plugin-root .bb-modal-backdrop.open { display: flex; }

.bb-plugin-root .bb-modal {
    background: #ffffff !important;
    border-radius: 16px !important;
    padding: 30px 32px !important;
    width: 580px; max-width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,.25) !important;
    animation: bbFadeIn .2s ease;
    margin: auto;
    position: relative;
}

@keyframes bbFadeIn { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: translateY(0); } }

.bb-plugin-root .bb-modal-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 24px; padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}
.bb-plugin-root .bb-modal-head h3 {
    font-size: 18px; font-weight: 700; color: var(--bb-navy); margin: 0;
}
.bb-plugin-root .bb-modal-close {
    width: 32px; height: 32px; border-radius: 50%;
    background: #f3f4f6 !important; border: none !important; cursor: pointer;
    font-size: 18px; display: flex; align-items: center; justify-content: center;
    color: #6b7280 !important; flex-shrink: 0; transition: all .14s;
    line-height: 1; font-weight: 400;
}
.bb-plugin-root .bb-modal-close:hover { background: var(--bb-danger) !important; color: #fff !important; }

.bb-plugin-root .bb-modal-foot {
    display: flex; justify-content: flex-end; gap: 10px;
    margin-top: 24px; padding-top: 18px;
    border-top: 1px solid #e5e7eb;
    flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════════
   ALERTS
═══════════════════════════════════════════════════════════════ */
.bb-plugin-root .bb-alert {
    padding: 12px 16px; border-radius: 8px; font-size: 13.5px;
    margin-bottom: 16px; display: flex; align-items: flex-start; gap: 8px;
}
.bb-plugin-root .bb-alert-success { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.bb-plugin-root .bb-alert-error   { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }
.bb-plugin-root .bb-alert-info    { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }

/* ═══════════════════════════════════════════════════════════════
   EMPTY + SPINNER + MISC
═══════════════════════════════════════════════════════════════ */
.bb-plugin-root .bb-empty { text-align: center; padding: 52px 20px; color: var(--bb-muted); }
.bb-plugin-root .bb-empty svg { width: 46px; height: 46px; margin: 0 auto 14px; opacity: .3; }
.bb-plugin-root .bb-empty p { font-size: 14px; line-height: 1.6; }
.bb-plugin-root .bb-empty a { color: var(--bb-navy); font-weight: 600; }

.bb-plugin-root .bb-spinner {
    display: inline-block; width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,.35); border-top-color: #fff;
    border-radius: 50%; animation: bbSpin .6s linear infinite;
}
@keyframes bbSpin { to { transform: rotate(360deg); } }

.bb-plugin-root .bb-ledger-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); gap: 12px; margin-bottom: 18px; }
.bb-plugin-root .bb-ledger-item  { background: var(--bb-light); border-radius: 8px; padding: 13px 16px; }
.bb-plugin-root .bb-ledger-item .ll { font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--bb-muted); font-weight: 600; margin-bottom: 5px; display: block; }
.bb-plugin-root .bb-ledger-item .lv { font-size: 18px; font-weight: 800; color: var(--bb-navy); }

.bb-plugin-root .bb-quick-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.bb-plugin-root .bb-client-cell { display: flex; align-items: center; gap: 10px; }
.bb-plugin-root .bb-mini-ava {
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700; color: #fff; flex-shrink: 0; text-transform: uppercase;
}
.bb-plugin-root .bb-mini-ava-name { font-weight: 600; color: var(--bb-text); font-size: 13.5px; line-height: 1.2; display: block; }
.bb-plugin-root .bb-mini-ava-sub  { font-size: 11.5px; color: var(--bb-muted); margin-top: 1px; display: block; }
.bb-plugin-root .bb-amount-credit { color: var(--bb-success); font-weight: 700; }
.bb-plugin-root .bb-amount-debit  { color: var(--bb-danger);  font-weight: 700; }
.bb-plugin-root .bb-text-muted { color: var(--bb-muted); }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .bb-plugin-root .bb-sidebar {
        position: fixed; top: 0; left: 0; height: 100vh;
        transform: translateX(-100%); z-index: 100;
    }
    .bb-plugin-root .bb-sidebar.is-open { transform: translateX(0); }
    .bb-plugin-root .bb-sidebar-overlay { display: block; opacity: 0; pointer-events: none; transition: opacity .25s; }
    .bb-plugin-root .bb-sidebar-overlay.visible { opacity: 1; pointer-events: auto; }
    .bb-plugin-root .bb-sidebar-toggle { display: flex; }
    .bb-plugin-root .bb-body { padding: 20px 18px; }
    .bb-plugin-root .bb-topbar { padding: 0 18px; }
}

@media (max-width: 768px) {
    .bb-plugin-root .bb-stats-row { grid-template-columns: 1fr 1fr; }
    .bb-plugin-root .bb-grid-2, .bb-plugin-root .bb-grid-3 { grid-template-columns: 1fr; }
    .bb-plugin-root .bb-filter-bar { padding: 10px 14px; }
    .bb-plugin-root .bb-modal { padding: 22px 20px !important; }
    .bb-plugin-root .bb-auth-box { padding: 30px 22px; }
    .bb-plugin-root .bb-auth-field-row { grid-template-columns: 1fr; }
    .bb-plugin-root .bb-hero { padding: 56px 20px 48px; }
    .bb-plugin-root .bb-topbar-title { font-size: 15px; }
    .bb-plugin-root .bb-body { padding: 16px 14px; }
    .bb-plugin-root .bb-ledger-strip { grid-template-columns: 1fr 1fr; }
    .bb-plugin-root .bb-quick-row .bb-btn { flex: 1; justify-content: center; }
}

@media (max-width: 480px) {
    .bb-plugin-root .bb-stats-row { grid-template-columns: 1fr; }
    .bb-plugin-root .bb-hero h1 { font-size: 1.65rem; }
    .bb-plugin-root .bb-hero-btns { flex-direction: column; align-items: center; }
    .bb-plugin-root .bb-hero-btn-gold,
    .bb-plugin-root .bb-hero-btn-outline { width: 100%; justify-content: center; }
    .bb-plugin-root .bb-modal-foot { flex-direction: column; }
    .bb-plugin-root .bb-modal-foot .bb-btn { width: 100% !important; justify-content: center !important; }
    .bb-plugin-root .bb-ledger-strip { grid-template-columns: 1fr; }
    .bb-plugin-root .bb-card-head { flex-direction: column; align-items: flex-start; gap: 8px; }
    .bb-plugin-root .bb-modal { padding: 20px 16px !important; }
    .bb-plugin-root .bb-auth-box { padding: 24px 18px; }
}
