﻿/* ===== Parks Events Rental • LIGHT UI (StyleDash.light.css) ===== */
/* MATCHED to: Left Brand Panel + Form Steps (maroon + gold) */

/* =========================
   Keep LOGOUT button white (project-wide)
   ========================= */
.btn-logout,
.btn-logout.btn,
.btn-logout.btn-light {
    background: #ffffff !important;
    border-color: rgba(15,23,42,.14) !important;
    color: #111827 !important;
}

    .btn-logout:hover,
    .btn-logout.btn:hover,
    .btn-logout.btn-light:hover {
        background: #f8fafc !important;
        border-color: rgba(15,23,42,.18) !important;
    }

    .btn-logout:active {
        background: #f1f5f9 !important;
    }

:root {
    /* Brand palette (from your banner) */
    --brand: #6d0f1a; /* maroon */
    --brand-600: #4d0a12; /* darker maroon */
    --brand-50: rgba(109,15,26,.08);
    --gold: #d4af37;
    --gold-600: #b8891d;
    /* Surfaces */
    --bg: #e9edf0; /* app background (soft gray like the mock) */
    --surface: #ffffff; /* cards / panels */
    --surface-2: #f8fafc; /* subtle alt */
    --muted: #6b7280; /* secondary text */
    --text: #0f172a; /* primary text */
    --border: #e5e7eb; /* outlines */
    --focus: rgba(212,175,55,.65); /* gold focus ring */
    /* Status */
    --ok: #16a34a;
    --warn: #d97706;
    --err: #dc2626;
    /* Shape / shadow (match picture: rounded + soft shadow) */
    --radius: 18px; /* picture uses rounded cards */
    --radius-sm: 12px;
    --shadow: 0 14px 36px rgba(15, 23, 42, .10);
    --shadow-sm: 0 8px 18px rgba(15, 23, 42, .08);
}

/* =========================
   Base
   ========================= */
* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0; /* was 10px; that causes uneven page edges */
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Links */
a {
    color: #1d4ed8;
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

/* Focus ring (gold) */
:focus {
    outline: none;
}

:focus-visible {
    outline: 3px solid rgba(212,175,55,.65);
    outline-offset: 2px;
    border-radius: 12px;
}

/* =========================
   Header (top app bar)
   ========================= */
.header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    /* Maroon banner look */
    background: rgba(139, 0, 0, 0.70);
    border-bottom: 1px solid rgba(255,255,255,.12);
    /* subtle depth */
    box-shadow: 0 10px 26px rgba(15,23,42,.10);
    backdrop-filter: saturate(120%) blur(10px);
    color: #fff;
}

    .header .btn {
        border-radius: 12px;
    }


/* =========================
   Layout
   ========================= */
.container-fluid {
    padding-left: 0;
    padding-right: 0;
    overflow: unset;
    margin: 0;
}

.main-area {
    padding: 18px;
    min-height: calc(100vh - 56px);
    margin: 0;
}

/* =========================
   Sidebar — keep light but align accents with brand
   ========================= */
.sidebar {
    background: #ffffff !important; /* fixed typo (#ffff) */
    color: #111827;
    border-right: 1px solid #e5e7eb;
    padding: 16px 12px !important;
    box-shadow: none;
}

#sidebarWrapper {
    position: sticky;
    top: 0;
    height: 100dvh;
    overflow: auto;
}

.sidebar h5 {
    color: #111827;
    font-weight: 800;
    letter-spacing: .2px;
    margin-bottom: 12px;
}

/* Accordion */
.sidebar .accordion {
    --bs-accordion-bg: transparent;
    --bs-accordion-border-color: #e5e7eb;
}

.sidebar .accordion-item {
    background: transparent;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.sidebar .accordion-button {
    /* match brand */
    background: rgba(109,15,26,.08);
    color: #0f172a;
    box-shadow: none;
    padding: 10px 12px;
    border: none;
    font-weight: 800;
}

    .sidebar .accordion-button::after {
        filter: opacity(.6);
    }

    .sidebar .accordion-button:not(.collapsed) {
        background: rgba(109,15,26,.12);
        color: #0b2146;
    }

.sidebar .accordion-body {
    background: #fff;
    padding: 8px 8px 10px;
}

/* Sidebar links */
.nav-link, .sidebar-link {
    display: block;
    width: 100%;
    padding: 10px 12px;
    color: #1f2937 !important;
    border-radius: 12px;
    border: 1px solid transparent;
    font-weight: 700;
}

.sidebar .nav-link:hover, .sidebar .sidebar-link:hover {
    background: rgba(109,15,26,.08);
    border-color: rgba(109,15,26,.18);
    text-decoration: none;
}

.sidebar .nav-link.active, .sidebar .sidebar-link.active {
    background: rgba(109,15,26,.08);
    color: #6d0f1a !important;
    border-color: rgba(109,15,26,.22);
}

/* Mobile slide-in */
@media (max-width: 767.98px) {
    #sidebarWrapper {
        position: fixed;
        inset: 56px auto 0 0;
        width: min(86vw, 320px);
        transform: translateX(-100%);
        transition: transform .25s ease;
        z-index: 1050;
        box-shadow: var(--shadow);
        background: #fff;
    }

        #sidebarWrapper.show-sidebar {
            transform: translateX(0);
        }
}

/* =========================
   Cards / page surfaces (match picture: rounded + soft shadow)
   ========================= */
.page-card,
.main-area > .card,
.main-area > .aspNetPanel,
.main-area > .panel,
.main-area > .table-responsive {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin: 0 0 14px;
}

/* =========================
   Buttons (Bootstrap overrides) — brand maroon + optional gold CTA
   ========================= */
.btn {
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    font-weight: 800;
    border-width: 1px;
    /* Default (for buttons that only have .btn) */
    background: rgba(109,15,26,.08); /* tinted maroon */
    border-color: rgba(109,15,26,.18);
    color: var(--brand);
}

    .btn:hover {
        background: rgba(109,15,26,.12);
        border-color: rgba(109,15,26,.26);
        color: var(--brand-600);
    }

/* PRIMARY = Maroon (your main action) */
.btn-primary {
    background: linear-gradient(180deg, var(--brand), var(--brand-600)) !important;
    border-color: rgba(0,0,0,.10) !important;
    color: #fff !important;
}

    .btn-primary:hover {
        filter: brightness(1.04);
    }

/* SECONDARY = Gold-tinted (not white) */
.btn-secondary {
    background: rgba(212,175,55,.18) !important;
    border-color: rgba(212,175,55,.35) !important;
    color: #111827 !important;
}

    .btn-secondary:hover {
        background: rgba(212,175,55,.24) !important;
    }


/* Gold CTA (for “Place Order” like the picture) */
.btn-gold {
    background: linear-gradient(180deg, var(--gold), var(--gold-600)) !important;
    border: 1px solid rgba(0,0,0,.10) !important;
    color: #111827 !important;
    font-weight: 900;
}

    .btn-gold:hover {
        filter: brightness(1.03);
        transform: translateY(-1px);
    }

/* LIGHT (Bootstrap uses white by default) -> make it tinted instead */
.btn-light {
    background: rgba(15,23,42,.06) !important; /* soft slate tint */
    border-color: rgba(15,23,42,.12) !important;
    color: #111827 !important;
}

    .btn-light:hover {
        background: rgba(15,23,42,.10) !important;
    }

/* Outline light */
.btn-outline-light {
    color: #374151;
    border-color: #d1d5db;
    background: #e2cefe;
}

    .btn-outline-light:hover {
        background: #f3f4f6;
        border-color: #cbd5e1;
    }

/* OUTLINE buttons: keep the outline idea but give them a tinted background */
.btn-outline-light,
.btn-outline-secondary,
.btn-outline-primary,
.btn-outline-dark {
    background: rgba(109,15,26,.06) !important;
    border-color: rgba(109,15,26,.22) !important;
    color: var(--brand) !important;
}

    .btn-outline-light:hover,
    .btn-outline-secondary:hover,
    .btn-outline-primary:hover,
    .btn-outline-dark:hover {
        background: rgba(109,15,26,.12) !important;
        border-color: rgba(109,15,26,.30) !important;
        color: var(--brand-600) !important;
    }

/* SUCCESS / WARNING / DANGER: keep strong colors, ensure readable text */
.btn-success {
    background: var(--ok) !important;
    border-color: var(--ok) !important;
    color: #fff !important;
}

.btn-warning {
    background: var(--warn) !important;
    border-color: var(--warn) !important;
    color: #111827 !important;
}

.btn-danger {
    background: var(--err) !important;
    border-color: var(--err) !important;
    color: #fff !important;
}

/* =========================
   Forms (match picture: pale input bg + gold focus)
   ========================= */
.form-control,
select,
textarea,
input[type="text"],
input[type="number"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="datetime-local"] {
    background: #f7f3e9;
    color: #0f172a;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 10px 12px;
}

    .form-control:focus,
    select:focus,
    textarea:focus,
    input[type="text"]:focus,
    input[type="number"]:focus,
    input[type="email"]:focus,
    input[type="tel"]:focus,
    input[type="date"]:focus,
    input[type="datetime-local"]:focus {
        border-color: rgba(212,175,55,.85);
        box-shadow: 0 0 0 4px rgba(212,175,55,.18);
        background: #fffdf6; /* soft warm focus background */
    }


.form-label {
    color: #111827;
    margin-bottom: 6px;
    font-weight: 800;
    font-size: 13px;
}

/* Validators */
.validation-summary-errors {
    border: 1px solid rgba(220,38,38,.25);
    background: #fff5f5;
    color: #7f1d1d;
    padding: 12px;
    border-radius: 12px;
    margin: 10px 0;
}

.field-validation-error {
    color: #b91c1c;
}

/* Alerts */
.alert {
    border-radius: 14px;
    border-color: #e5e7eb;
}

.alert-success {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

.alert-warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.alert-danger {
    background: #fef2f2;
    border-color: #fecaca;
    color: #7f1d1d;
}

.alert-info {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e3a8a;
    font-size: .9rem;
    line-height: 1.3;
}

/* =========================
   TABLES / GridView (clean, sticky header)
   ========================= */
.table {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: #0f172a;
    border-collapse: separate;
    border-spacing: 0;
}

    .table th,
    .table td {
        vertical-align: middle !important;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
        max-width: 220px;
    }

.table-responsive {
    max-height: 500px;
    overflow-y: auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #fff;
}

.table thead th {
    background-color: #f8f9fa;
    font-weight: 800;
    border-bottom: 2px solid #dee2e6;
    position: sticky;
    top: 0;
    z-index: 2;
}

.table tbody tr:nth-child(odd) {
    background-color: #fafafa;
}

.table > :not(caption) > * > * {
    border-bottom: 1px solid #e5e7eb;
    padding: 12px;
}

.table tfoot td {
    background: #f7f9fc;
    color: #0f172a;
}

.table .text-ok {
    color: #16a34a;
}

.table .text-warn {
    color: var(--warn);
}

.table .text-err {
    color: var(--err);
}

.table a.action-link {
    color: #6d0f1a;
    font-weight: 800;
}

    .table a.action-link:hover {
        text-decoration: underline;
    }

/* =========================
   Payments page: Total Collected badge (top-right beside h2)
   ========================= */
.payments-total-badge {
    display: inline-flex; /* inline, sits in the h2 flex row */
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap; /* keep it on one line */
    box-shadow: var(--shadow-sm);
}

/* Make sure the H2 doesn’t wrap weirdly on smaller widths */
@media (max-width: 700px) {
    .payments-total-badge {
        font-size: .95rem; /* slightly smaller */
        padding: 8px 12px;
    }
}

/* Badge consistency */
.badge {
    min-width: 3rem;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
}

/* Card consistency */
.card-title {
    margin-bottom: 0.5rem;
    font-weight: 700;
}

/* =========================
   Footer
   ========================= */
.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
    color: #6b7280;
}

.footer__meta {
    font-size: .9rem;
}

/* =========================
   Utilities
   ========================= */
.rounded-xl {
    border-radius: var(--radius);
}

.shadow-soft {
    box-shadow: var(--shadow-sm);
}

.text-muted {
    color: #6b7280 !important;
}

.mt-1 {
    margin-top: 6px;
}

.mt-2 {
    margin-top: 12px;
}

.mt-3 {
    margin-top: 18px;
     
}

.mb-1 {
    margin-bottom: 6px;
}

.mb-2 {
    margin-bottom: 12px;
}

.mb-3 {
    margin-bottom: 18px;
}

/* =========================
   Create Order: Left Brand Panel + Form Steps (LIKE THE PICTURE)
   Use these classes on CreateOrder page wrappers.
   ========================= */
.order-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 16px;
    align-items: start;
}

@media (max-width: 1000px) {
    .order-layout {
        grid-template-columns: 1fr;
    }
}

/* LEFT brand panel */
.brand-panel {
    position: sticky;
    top: 18px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.08);
    box-shadow: var(--shadow);
    background: #fff;
}

.brand-panel__top {
    padding: 16px;
    color: #fff;
    background: linear-gradient(90deg, #6d0f1a, #4d0a12);
    border-bottom: 1px solid rgba(255,255,255,.12);
}

.brand-panel__logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .brand-panel__logo img {
        width: 44px;
        height: 44px;
        border-radius: 999px;
        border: 2px solid rgba(212,175,55,.95);
        background: #fff;
    }

.brand-panel__top .brand-title {
    margin: 0;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: .4px;
    text-transform: uppercase;
}

.brand-panel__top .brand-subtitle {
    margin: 6px 0 0;
    font-size: 12px;
    font-weight: 800;
    color: rgba(255,255,255,.85);
    text-transform: uppercase;
}

.brand-panel__body {
    padding: 14px 16px;
    background: #fff;
}

.rule-box {
    border: 1px dashed rgba(212,175,55,.85);
    background: rgba(212,175,55,.08);
    border-radius: 14px;
    padding: 12px;
    margin-top: 10px;
}

    .rule-box h4 {
        margin: 0 0 8px;
        font-size: 13px;
        font-weight: 900;
        color: #6d0f1a;
    }

    .rule-box ul {
        margin: 0;
        padding-left: 18px;
        color: #0f172a;
        font-size: 13px;
    }

.contact-box {
    margin-top: 12px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(109,15,26,.10), rgba(109,15,26,.02));
    border: 1px solid rgba(109,15,26,.18);
    padding: 12px;
    font-size: 13px;
    color: #0f172a;
}

/* RIGHT form card */
.order-form-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;
}

.order-form-title {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 900;
    color: #6d0f1a;
}

/* Step chips */
.stepper {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 10px 0 14px;
}

.step {
    border: 1px solid #e5e7eb;
    background: #fff;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 12px;
    color: #6b7280;
    user-select: none;
}

    .step.is-active {
        border-color: rgba(212,175,55,.9);
        box-shadow: 0 0 0 4px rgba(212,175,55,.16);
        color: #6d0f1a;
    }

/* Form section titles/divider */
.form-section-title {
    margin: 14px 0 10px;
    font-size: 16px;
    font-weight: 900;
    color: #0f172a;
}

.section-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 14px 0;
}

/* Field grid like the picture (2 columns -> 1 column on small screens) */
.field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 14px;
}

@media (max-width: 900px) {
    .field-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   Print
   ========================= */
@media print {
    .sidebar, .header, .footer {
        display: none !important;
    }

    .main-area {
        padding: 0 !important;
        background: #fff;
        color: #000;
    }
}
/* =========================
   AUTH PAGE MODE (Login/Register) — MERGED (ONE SOURCE OF TRUTH)
   Requires: <body class="auth-page"> on Login/Register
   ========================= */

/* 1) Master layout override: hide chrome and let content go fullscreen */
.auth-page #sidebarWrapper,
.auth-page .header {
    display: none !important;
}

.auth-page .container-fluid,
.auth-page .row {
    height: 100vh;
}

.auth-page .col-md-9.col-lg-10 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
}

.auth-page .main-area {
    height: 100vh;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent;
}

/* 2) Fullscreen auth background (keeps your glow idea, matches maroon/gold theme) */
.auth-page .login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column; /* logo on top, card below */
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 24px 14px;
    position: relative;
    overflow: hidden;
    background: radial-gradient(1000px 520px at 18% 10%, rgba(109,15,26,.22), transparent 60%), radial-gradient(900px 520px at 82% 90%, rgba(212,175,55,.20), transparent 55%), linear-gradient(135deg, #f3f4f6, #e9edf0);
}

    /* Optional soft orbs (your original glow, but scoped + consistent) */
    .auth-page .login-page::before,
    .auth-page .login-page::after {
        content: "";
        position: absolute;
        width: 520px;
        height: 520px;
        border-radius: 50%;
        filter: blur(60px);
        opacity: 0.30;
        z-index: 0;
        pointer-events: none;
    }

    .auth-page .login-page::before {
        top: -180px;
        left: -200px;
        background: rgba(109, 15, 26, 0.35); /* maroon glow */
    }

    .auth-page .login-page::after {
        bottom: -200px;
        right: -180px;
        background: rgba(212, 175, 55, 0.28); /* gold glow */
    }

/* 3) Logo on auth (scoped so sidebar logo isn't affected) */
.auth-page .brand_logo {
    z-index: 1;
    border-radius: 14px;
    padding: 0.4rem;
    background: rgba(255, 255, 255, 0.70);
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: var(--shadow-sm);
}

/* 4) Login card (uses global tokens for continuity) */
.auth-page .login-card {
    width: 100%;
    max-width: 420px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px 28px 24px;
    position: relative;
    z-index: 1;
}

/* 5) Title + subtitle (brand aligned) */
.auth-page .login-title {
    text-align: center;
    font-size: 1.85rem;
    font-weight: 900;
    margin-bottom: 0.35rem;
    color: var(--brand);
    letter-spacing: 0.2px;
}

.auth-page .login-subtitle {
    text-align: center;
    color: var(--muted);
    margin-bottom: 2rem;
}

/* 6) Form groups */
.auth-page .form-group {
    margin-bottom: 1.2rem;
}

    .auth-page .form-group label {
        display: block;
        font-size: 0.9rem;
        font-weight: 800;
        margin-bottom: 0.45rem;
        color: var(--text);
    }

/* 7) Inputs (match global form look) */
.auth-page .form-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 0.98rem;
    background: #f7f3e9;
    color: var(--text);
    border: 1px solid var(--border);
    transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

    .auth-page .form-input:focus {
        outline: none;
        border-color: rgba(212,175,55,.85);
        box-shadow: 0 0 0 4px rgba(212,175,55,.18);
        background: #fffdf6;
    }

/* 8) Error message */
.auth-page .error-message {
    display: block;
    margin: 0.6rem 0 1rem;
    font-size: 0.9rem;
    color: #b91c1c; /* consistent with your app errors */
}

/* 9) Remember me */
.auth-page .form-options {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0.25rem 0 1.5rem;
    font-size: 0.92rem;
    color: var(--text);
}

    .auth-page .form-options label {
        margin: 0;
        cursor: pointer;
    }

    /* Make checkbox visible */
    .auth-page .form-options input[type="checkbox"] {
        width: 18px;
        height: 18px;
        accent-color: var(--brand);
        cursor: pointer;
    }

/* 10) Login button (primary brand) */
.auth-page .login-button {
    width: 100%;
    padding: 0.85rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(180deg, var(--brand), var(--brand-600));
    color: #fff;
    font-size: 1rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: filter 120ms ease, transform 120ms ease, box-shadow 120ms ease;
}

    .auth-page .login-button:hover {
        filter: brightness(1.04);
        transform: translateY(-1px);
    }

    .auth-page .login-button:active {
        transform: translateY(0);
    }

/* =========================
   AUTH: Register page alignment (keeps your markup)
   ========================= */

/* Center the entire MainContent block on auth pages */
.auth-page .main-area {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 14px !important;
}

    /* The ContentPlaceHolder renders inside main-area; normalize width */
    .auth-page .main-area > * {
        width: 100%;
    }

    /* Make the heading behave like it belongs to the card */
    .auth-page .main-area > h2 {
        width: min(720px, 100%);
        margin: 0 auto 14px auto !important;
        text-align: center;
        font-weight: 900;
        color: var(--brand);
    }

    /* Your card: override Bootstrap grid column behavior that causes offset */
    .auth-page .main-area .card {
        width: min(720px, 100%);
        margin: 0 auto !important; /* centers the card */
        border-radius: var(--radius);
        border: 1px solid var(--border);
        box-shadow: var(--shadow);
    }

        /* Make col-md-6 not fight centering (Bootstrap sets flex-basis/max-width) */
        .auth-page .main-area .card.col-md-6 {
            flex: 0 0 auto !important;
            max-width: none !important;
        }

    /* Inputs: keep your global style consistent even when using Bootstrap classes */
    .auth-page .main-area .form-control,
    .auth-page .main-area .form-select {
        border-radius: 12px;
    }

    /* Optional: brand the Register button only on auth pages */
    .auth-page .main-area .btn.btn-primary {
        background: linear-gradient(180deg, var(--brand), var(--brand-600));
        border-color: rgba(0,0,0,.10);
        color: #fff;
        font-weight: 900;
    }

        .auth-page .main-area .btn.btn-primary:hover {
            filter: brightness(1.04);
        }

/* =========================
   Payments page: Title bar + Total Collected badge (top-right)
   ========================= */
h2.payments-titlebar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px;
    flex-wrap: nowrap; /* keep badge on same row */
}

    /* Force badge to stay as an inline pill (override any old sidebar badge rules) */
   h2.payments-titlebar .payments-total-badge {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: auto !important; /* prevents full width */
        max-width: 100%;
        margin-left: auto !important; /* pushes it to the right */
        padding: 10px 14px !important;
        border-radius: 999px !important;
        white-space: nowrap !important;
        box-shadow: var(--shadow-sm);
        font-weight: 900;
        line-height: 1;
    }

/* Responsive: if screen is narrow, let it wrap nicely */
@media (max-width: 640px) {
    .payments-titlebar {
        flex-wrap: wrap;
        align-items: flex-start;
    }

        .payments-titlebar .payments-total-badge {
            margin-left: 0 !important;
        }
}

h2.payments-titlebar > span:first-child {
    flex: 1 1 auto;
    min-width: 0;
}

h2.payments-titlebar .payments-total-badge {
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
}
