/* ==========================================================================
   ASBY Sports Dashboard — Unified Stylesheet
   Exact translation of the original TSX/Tailwind design into plain CSS.
   RTL-first (Arabic), IBM Plex Sans Arabic.
   ========================================================================== */


/* --------------------------------------------------------------------------
   CSS Variables — Brand Tokens
   -------------------------------------------------------------------------- */

:root {
    --bg: #F5F5F7;
    --surface: #FFFFFF;
    --text: #1D1D1F;
    --muted: #86868B;
    --sub: #48484A;
    --border: rgba(0, 0, 0, 0.05);
    --border-gray: #E5E5EA;
    --accent: #006B3C;
    --accent-h: #004D2C;
    --accent-light: rgba(0, 107, 60, 0.10);
    --green: #006B3C;
    --green-light: rgba(0, 107, 60, 0.12);
    --red: #D71920;
    --red-light: rgba(215, 25, 32, 0.10);
    --blue: #006B3C;
    --blue-light: rgba(0, 107, 60, 0.08);
    --purple: #D71920;
    --purple-light: rgba(215, 25, 32, 0.08);
    --sidebar-w: 260px;
    --sidebar-col: 70px;
    --header-h: 52px;
    --font: "IBM Plex Sans Arabic", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}


/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    direction: rtl;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

button {
    cursor: pointer;
    font-family: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1,
h2,
h3 {
    letter-spacing: -0.02em;
    margin: 0 0 0.4rem;
    line-height: 1.2;
}

p {
    margin: 0 0 0.75rem;
}


/* --------------------------------------------------------------------------
   App Shell
   -------------------------------------------------------------------------- */

.app {
    display: flex;
    height: 100vh;
    overflow: hidden;
}


/* --------------------------------------------------------------------------
   Sidebar
   -------------------------------------------------------------------------- */

.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: var(--sidebar-w);
    z-index: 50;
    display: flex;
    flex-direction: column;
    background: rgba(251, 251, 253, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid var(--border);
    transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.sidebar.collapsed {
    width: var(--sidebar-col);
}


/* Sidebar header */

.sidebar-header {
    height: var(--header-h);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    gap: 0.5rem;
    flex-shrink: 0;
}

.sidebar-logo {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #2B8A61, #004D2C);
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 107, 60, 0.30);
}

.sidebar-brand {
    font-size: 1.05rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    transition: opacity 0.2s;
}

.sidebar.collapsed .sidebar-brand {
    opacity: 0;
    width: 0;
    pointer-events: none;
}


/* Nav */

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    border: none;
    background: none;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--sub);
    width: 100%;
    text-align: right;
    transition: background 0.12s, color 0.12s;
    white-space: nowrap;
    cursor: pointer;
}

.nav-item:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text);
}

.nav-item.active {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 107, 60, 0.25);
}

.nav-item svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--muted);
}

.nav-item:hover:not(.active) svg {
    color: var(--text);
}

.nav-item.active svg {
    color: #fff;
}

.nav-label {
    overflow: hidden;
    transition: opacity 0.2s;
}

.sidebar.collapsed .nav-label {
    opacity: 0;
    width: 0;
}


/* Sidebar footer */

.sidebar-footer {
    padding: 0.75rem;
    border-top: 1px solid var(--border);
    position: relative;
}

.sidebar-logout {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    border: none;
    background: none;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--red);
    width: 100%;
    text-align: right;
    transition: background 0.12s;
}

.sidebar-logout:hover {
    background: var(--red-light);
}

.sidebar-toggle {
    position: absolute;
    top: 50%;
    left: -12px;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: var(--surface);
    border: 1px solid var(--border-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    z-index: 60;
    cursor: pointer;
    transition: color 0.12s;
}

.sidebar-toggle:hover {
    color: var(--text);
}

.sidebar-toggle svg {
    transition: transform 0.3s;
}

.sidebar.collapsed .sidebar-toggle svg {
    transform: rotate(180deg);
}


/* --------------------------------------------------------------------------
   Main area
   -------------------------------------------------------------------------- */

.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-right: var(--sidebar-w);
    height: 100vh;
    transition: margin-right 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    overflow: hidden;
}

.main.collapsed {
    margin-right: var(--sidebar-col);
}


/* --------------------------------------------------------------------------
   Top Toolbar
   -------------------------------------------------------------------------- */

.toolbar {
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    background: rgba(245, 245, 247, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    position: relative;
    z-index: 50;
}

.toolbar-title {
    font-size: 1.0625rem;
    font-weight: 600;
}

.toolbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}


/* Search in toolbar */

.toolbar-search {
    position: relative;
    display: flex;
    align-items: center;
}

.toolbar-search svg {
    position: absolute;
    right: 0.6rem;
    color: var(--muted);
    pointer-events: none;
}

.toolbar-search input {
    width: 200px;
    height: 32px;
    padding: 0 2rem 0 0.75rem;
    background: #E5E5EA;
    border: none;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-family: var(--font);
    color: var(--text);
    outline: none;
    transition: background 0.15s, box-shadow 0.15s;
}

.toolbar-search input:focus {
    background: var(--surface);
    box-shadow: 0 0 0 2px rgba(0, 107, 60, 0.30);
}

.toolbar-icon-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    border-radius: 8px;
    color: var(--text);
    position: relative;
    transition: background 0.12s;
}

.toolbar-icon-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.notif-dot {
    position: absolute;
    top: 6px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--red);
    border-radius: 50%;
    border: 1.5px solid var(--bg);
}

.toolbar-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #d1d1d6, #c7c7cc);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sub);
}


/* --------------------------------------------------------------------------
   Page scroll area
   -------------------------------------------------------------------------- */

.page-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.page-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}


/* --------------------------------------------------------------------------
   View switching (list / add / edit)
   -------------------------------------------------------------------------- */

.view {
    display: none;
}

.view.active {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}


/* --------------------------------------------------------------------------
   Page header row
   -------------------------------------------------------------------------- */

.page-hdr {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.page-hdr h1 {
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 900;
    margin-bottom: 0.25rem;
}

.page-hdr p {
    color: var(--muted);
    font-weight: 500;
    font-size: 1rem;
    margin: 0;
}

.page-hdr-back {
    display: flex;
    align-items: center;
    gap: 1rem;
}


/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    border-radius: 12px;
    border: none;
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}

.btn:active {
    transform: scale(0.96);
}

.btn-orange {
    background: var(--accent);
    color: #fff;
    border-radius: 20px;
    padding: 1rem 2rem;
    font-size: 0.9375rem;
    font-weight: 900;
    box-shadow: 0 8px 24px rgba(0, 107, 60, 0.20);
}

.btn-orange:hover {
    background: var(--accent-h);
    transform: translateY(-2px);
}

.btn-ghost {
    background: var(--surface);
    color: var(--sub);
    border: 1px solid var(--border-gray);
}

.btn-ghost:hover {
    background: var(--bg);
}

.btn-save {
    background: var(--accent);
    color: #fff;
    border-radius: 12px;
    padding: 0.75rem 2rem;
    font-weight: 900;
    box-shadow: 0 6px 20px rgba(0, 107, 60, 0.25);
}

.btn-save:hover {
    background: var(--accent-h);
    transform: translateY(-1px);
}

.btn-cancel {
    background: none;
    border: none;
    color: var(--muted);
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
}

.btn-cancel:hover {
    background: rgba(0, 0, 0, 0.05);
}

.btn-back {
    padding: 0.75rem;
    background: var(--surface);
    border: 1px solid var(--border-gray);
    border-radius: 16px;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.12s, border-color 0.12s;
}

.btn-back:hover {
    color: var(--accent);
    border-color: rgba(0, 107, 60, 0.30);
}

.btn-dl {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border-gray);
    border-radius: 20px;
    padding: 1rem 2rem;
    font-size: 0.9375rem;
    font-weight: 900;
}

.btn-dl:hover {
    background: var(--bg);
}


/* --------------------------------------------------------------------------
   Metric / Stat cards
   -------------------------------------------------------------------------- */

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.25rem;
}

.metric-card {
    background: var(--surface);
    border-radius: 22px;
    padding: 1.25rem;
    border: 1px solid var(--border);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s;
}

.metric-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.metric-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.metric-card-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--muted);
}

.metric-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.metric-card:hover .metric-icon {
    transform: scale(1.1);
}

.icon-orange {
    background: #EAF6F0;
    color: #006B3C;
}

.icon-blue {
    background: #EAF6F0;
    color: #006B3C;
}

.icon-purple {
    background: #FFF0F0;
    color: #D71920;
}

.icon-red {
    background: #FFF0F0;
    color: #D71920;
}

.icon-green {
    background: rgba(52, 199, 89, 0.1);
    color: #006B3C;
}

.metric-value {
    font-size: 1.625rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}

.metric-trend {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
}

.trend-up {
    display: inline-flex;
    align-items: center;
    background: var(--green-light);
    color: var(--green);
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
}

.trend-dn {
    display: inline-flex;
    align-items: center;
    background: var(--red-light);
    color: var(--red);
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
}


/* Small stat box (users, categories pages) */

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
}

.stat-box {
    background: var(--surface);
    border-radius: 28px;
    padding: 1.25rem;
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: border-color 0.15s;
}

.stat-box:hover {
    border-color: rgba(0, 107, 60, 0.25);
}

.stat-box-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-box-icon.orange {
    background: #EAF6F0;
    color: var(--accent);
}

.stat-box-icon.green {
    background: rgba(52, 199, 89, 0.1);
    color: #006B3C;
}

.stat-box-icon.blue {
    background: var(--blue-light);
    color: var(--blue);
}

.stat-box-icon.purple {
    background: var(--purple-light);
    color: var(--purple);
}

.stat-box-icon.red {
    background: var(--red-light);
    color: var(--red);
}

.stat-box-meta p:first-child {
    font-size: 0.625rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 0.15rem;
}

.stat-box-meta p:last-child {
    font-size: 1.375rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--text);
    margin: 0;
}


/* --------------------------------------------------------------------------
   Charts section (CSS-only bar chart)
   -------------------------------------------------------------------------- */

.charts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 960px) {
    .charts-grid {
        grid-template-columns: 2fr 1fr;
    }
}

.chart-card {
    background: var(--surface);
    border-radius: 24px;
    padding: 1.5rem;
    border: 1px solid var(--border);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.chart-card-hdr {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.chart-card-title {
    font-size: 1.0625rem;
    font-weight: 600;
}

.chart-more {
    background: none;
    border: none;
    border-radius: 50%;
    padding: 0.375rem;
    color: var(--muted);
    transition: background 0.12s;
}

.chart-more:hover {
    background: var(--bg);
}


/* Bar chart */

.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    height: 180px;
    padding-top: 1rem;
}

.bar {
    flex: 1;
    border-radius: 6px 6px 0 0;
    background: linear-gradient(to top, var(--accent), #2B8A61);
    opacity: 0.85;
    min-height: 8px;
    transition: opacity 0.15s;
}

.bar:hover {
    opacity: 1;
}

.bar.dim {
    background: #E5E5EA;
}

.bar-labels {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.bar-label {
    flex: 1;
    text-align: center;
    font-size: 0.6875rem;
    color: var(--muted);
}


/* Donut */

.donut-wrap {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 1rem;
}

.donut-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.donut-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.donut-center-val {
    font-size: 1.75rem;
    font-weight: 700;
}

.donut-center-lbl {
    font-size: 0.6875rem;
    color: var(--muted);
    margin-top: 0.1rem;
}

.cat-legend {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.cat-legend-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8125rem;
}

.cat-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-left: 0.5rem;
}


/* --------------------------------------------------------------------------
   Table card
   -------------------------------------------------------------------------- */

.table-card {
    background: var(--surface);
    border-radius: 32px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    overflow: hidden;
}

.table-card-hdr {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--bg);
}

.table-card-title {
    font-size: 1.0625rem;
    font-weight: 600;
}

.table-card-link {
    font-size: 0.8125rem;
    color: var(--accent);
    font-weight: 700;
    border: none;
    background: none;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    transition: background 0.12s;
}

.table-card-link:hover {
    background: var(--accent-light);
}

.table-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f5f5f7;
    background: rgba(249, 250, 251, 0.5);
}

.search-wrap {
    position: relative;
    flex: 1;
    min-width: 200px;
    max-width: 380px;
}

.search-wrap svg {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
    transition: color 0.12s;
}

.search-wrap:focus-within svg {
    color: var(--accent);
}

.search-wrap input {
    width: 100%;
    padding: 0.75rem 3rem 0.75rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border-gray);
    border-radius: 16px;
    font-size: 0.875rem;
    font-family: var(--font);
    font-weight: 700;
    color: var(--text);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.search-wrap input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-light);
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border-gray);
    border-radius: 16px;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--muted);
    transition: color 0.12s, border-color 0.12s;
}

.filter-btn:hover {
    color: var(--accent);
    border-color: rgba(0, 107, 60, 0.30);
}


/* Tab pills */

.tab-pills {
    display: flex;
    align-items: center;
    padding: 0.375rem;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.tab-pill {
    padding: 0.4rem 1rem;
    border-radius: 8px;
    border: none;
    background: none;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font);
    color: var(--muted);
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.12s, color 0.12s;
}

.tab-pill:hover {
    background: rgba(255, 255, 255, 0.5);
    color: var(--text);
}

.tab-pill.active {
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}


/* Data table */

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
    font-size: 0.875rem;
}

.data-table thead tr {
    border-bottom: 1px solid #f5f5f7;
    background: rgba(249, 250, 251, 0.5);
}

.data-table th {
    padding: 1rem 1.5rem;
    font-size: 0.6875rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    white-space: nowrap;
}

.data-table th.tc {
    text-align: center;
}

.data-table th.tl {
    text-align: left;
}

.data-table tbody tr {
    border-bottom: 1px solid #f9f9f9;
    cursor: pointer;
    transition: background 0.12s;
}

.data-table tbody tr:hover {
    background: rgba(249, 115, 22, 0.04);
}

.data-table td {
    padding: 1rem 1.5rem;
    color: var(--text);
    white-space: nowrap;
}

.data-table td.tc {
    text-align: center;
}

.data-table td.tl {
    text-align: left;
}


/* Name cell */

.cell-name {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cell-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #EAF6F0;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.12s, color 0.12s;
}

.data-table tbody tr:hover .cell-icon {
    background: var(--accent);
    color: #fff;
}

.cell-name strong {
    font-weight: 900;
    transition: color 0.12s;
}

.data-table tbody tr:hover .cell-name strong {
    color: var(--accent);
}

.cell-name small {
    font-size: 0.6875rem;
    color: var(--muted);
    font-weight: 700;
    text-transform: uppercase;
    display: block;
}


/* User avatar cell */

.user-cell {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar-wrap {
    position: relative;
}

.user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--surface);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    object-fit: cover;
    background: var(--bg);
    transition: transform 0.15s;
}

.data-table tbody tr:hover .user-avatar {
    transform: scale(1.06);
}

.status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--surface);
}

.status-dot.active-dot {
    background: var(--green);
}

.status-dot.inactive-dot {
    background: #d1d5db;
}


/* Badges */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.625rem;
    font-weight: 900;
}

.badge-green {
    background: rgba(0, 107, 60, 0.12);
    color: #006B3C;
}

.badge-red {
    background: var(--red-light);
    color: #dc2626;
}

.badge-yellow {
    background: rgba(234, 179, 8, 0.12);
    color: #854d0e;
}

.badge-gray {
    background: #f3f4f6;
    color: #4b5563;
}

.badge-blue {
    background: var(--blue-light);
    color: var(--blue);
}

.badge-purple {
    background: var(--purple-light);
    color: #7e22ce;
}

.badge-orange {
    background: var(--accent-light);
    color: var(--accent-h);
}


/* Role / status badges (users page) */

.role-admin {
    background: rgba(175, 82, 222, 0.12);
    color: #7e22ce;
}

.role-store {
    background: var(--blue-light);
    color: #1d4ed8;
}

.role-rep {
    background: var(--accent-light);
    color: var(--accent-h);
}

.role-cust {
    background: #f3f4f6;
    color: #4b5563;
}


/* Region tag */

.region-tag {
    padding: 0.35rem 0.75rem;
    background: #f9fafb;
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 900;
    color: var(--sub);
}


/* Action icon buttons */

.action-btns {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

.icon-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    border-radius: 12px;
    color: var(--muted);
    transition: color 0.12s, background 0.12s;
}

.icon-btn-edit:hover {
    background: #EAF6F0;
    color: var(--accent);
}

.icon-btn-del:hover {
    background: var(--red-light);
    color: var(--red);
}

.icon-btn-blue:hover {
    background: var(--blue-light);
    color: var(--blue);
}

.icon-btn-eye:hover {
    background: var(--blue-light);
    color: var(--blue);
}

.icon-btn-print:hover {
    background: var(--blue-light);
    color: var(--blue);
}


/* Table footer / pagination */

.table-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: rgba(249, 250, 251, 0.5);
    border-top: 1px solid #f5f5f7;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--muted);
}

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

.page-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    background: var(--surface);
    border: 1px solid var(--border-gray);
    border-radius: 10px;
    font-size: 0.8125rem;
    font-weight: 900;
    color: var(--muted);
    transition: color 0.12s, border-color 0.12s;
}

.page-btn:hover {
    color: var(--accent);
    border-color: rgba(0, 107, 60, 0.30);
}

.page-num {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 900;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--muted);
    transition: background 0.12s, color 0.12s;
}

.page-num:hover {
    background: var(--bg);
}

.page-num.active {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 107, 60, 0.30);
}


/* --------------------------------------------------------------------------
   Form layout (add / edit views)
   -------------------------------------------------------------------------- */

.form-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 900px) {
    .form-layout {
        grid-template-columns: 1fr 2fr;
    }
}

.form-preview {
    background: var(--surface);
    border-radius: 32px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    padding: 2rem;
    text-align: center;
}

.form-preview-icon {
    width: 72px;
    height: 72px;
    background: #EAF6F0;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin: 0 auto 1rem;
}

.form-preview h3 {
    font-size: 1.25rem;
    font-weight: 900;
    margin-bottom: 0.25rem;
}

.form-preview p {
    font-size: 0.875rem;
    color: var(--muted);
    font-weight: 700;
    font-style: italic;
}

.preview-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.preview-stat {
    padding: 0.85rem;
    background: var(--bg);
    border-radius: 16px;
}

.preview-stat.orange {
    background: #EAF6F0;
}

.preview-stat p:first-child {
    font-size: 0.625rem;
    font-weight: 900;
    color: var(--muted);
    text-transform: uppercase;
    margin-bottom: 0.2rem;
}

.preview-stat.orange p:first-child {
    color: var(--accent);
}

.preview-stat p:last-child {
    font-size: 1.125rem;
    font-weight: 900;
    margin: 0;
}

.preview-stat.orange p:last-child {
    color: var(--accent);
}

.form-section {
    background: var(--surface);
    border-radius: 32px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    padding: 2rem;
}

.form-section+.form-section {
    margin-top: 1.25rem;
}

.form-section-hdr {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #f5f5f7;
}

.form-section-hdr-icon {
    padding: 0.5rem;
    background: #EAF6F0;
    color: var(--accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-section-hdr h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 900;
}

.field-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .field-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.field-group label {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--sub);
}

.field-input {
    width: 100%;
    padding: 0.9rem 1.25rem;
    background: var(--bg);
    border: 1px solid transparent;
    border-radius: 16px;
    font-size: 0.9375rem;
    font-family: var(--font);
    font-weight: 700;
    color: var(--text);
    outline: none;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
    appearance: none;
}

.field-input:focus {
    background: var(--surface);
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-light);
}

textarea.field-input {
    resize: vertical;
    min-height: 100px;
}


/* Alert notice (users form) */

.form-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: #EAF6F0;
    border: 1px solid #fed7aa;
    border-radius: 12px;
    margin-top: 1rem;
}

.form-alert svg {
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.form-alert p:first-child {
    font-weight: 700;
    margin-bottom: 0.2rem;
    font-size: 0.875rem;
}

.form-alert p:last-child {
    font-size: 0.75rem;
    color: var(--sub);
    margin: 0;
}


/* Toggle switch */

.toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(249, 115, 22, 0.04);
    border: 1px solid #fed7aa;
    border-radius: 20px;
    gap: 1rem;
}

.toggle-row-text p:first-child {
    font-weight: 900;
    font-size: 0.875rem;
    color: #431407;
    margin-bottom: 0.2rem;
}

.toggle-row-text p:last-child {
    font-size: 0.6875rem;
    color: rgba(154, 52, 18, 0.7);
    font-weight: 700;
    margin: 0;
}

.toggle-switch {
    width: 52px;
    height: 30px;
    background: var(--accent);
    border-radius: 999px;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
}

.toggle-knob {
    position: absolute;
    right: 3px;
    top: 3px;
    width: 24px;
    height: 24px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}


/* Feature tags (subscriptions form) */

.feature-tag {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1rem;
    background: rgba(249, 115, 22, 0.04);
    border: 1px solid rgba(249, 115, 22, 0.15);
    border-radius: 16px;
}

.feature-tag span {
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--text);
}

.feature-tag button {
    background: none;
    border: none;
    color: var(--muted);
    transition: color 0.12s;
}

.feature-tag button:hover {
    color: var(--red);
}


/* --------------------------------------------------------------------------
   Receipt / Invoice detail
   -------------------------------------------------------------------------- */

.invoice-card {
    background: var(--surface);
    border-radius: 32px;
    border: 1px solid var(--border);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.04);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.invoice-top-bar {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: var(--accent);
}

.invoice-hdr {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.invoice-logo {
    width: 64px;
    height: 64px;
    background: var(--accent);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.invoice-meta {
    text-align: left;
}

.invoice-meta small {
    font-size: 0.6875rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    display: block;
}

.invoice-meta .inv-id {
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.invoice-parties {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--bg);
    border-bottom: 1px solid var(--bg);
    margin-bottom: 2rem;
}

.invoice-totals {
    display: flex;
    justify-content: flex-end;
    margin-top: 2rem;
}

.totals-box {
    width: 320px;
    padding: 1.5rem;
    background: var(--bg);
    border-radius: 24px;
}

.totals-row {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    color: var(--muted);
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.totals-final {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-gray);
    margin-top: 0.25rem;
}

.totals-final span:first-child {
    font-size: 1rem;
    font-weight: 900;
}

.totals-final span:last-child {
    font-size: 1.375rem;
    font-weight: 900;
    color: var(--accent);
}


/* --------------------------------------------------------------------------
   Login page
   -------------------------------------------------------------------------- */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    padding: 1rem;
    position: relative;
    overflow: hidden;
}

.login-blob1 {
    position: absolute;
    top: -10%;
    left: -5%;
    width: 60%;
    height: 60%;
    border-radius: 50%;
    background: rgba(0, 107, 60, 0.20);
    filter: blur(100px);
    animation: blob-pulse 4s ease-in-out infinite;
}

.login-blob2 {
    position: absolute;
    bottom: -5%;
    right: -5%;
    width: 50%;
    height: 50%;
    border-radius: 50%;
    background: rgba(0, 107, 60, 0.08);
    filter: blur(90px);
}

.login-blob3 {
    position: absolute;
    top: 20%;
    right: 10%;
    width: 30%;
    height: 40%;
    border-radius: 50%;
    background: rgba(0, 122, 255, 0.07);
    filter: blur(90px);
}

@keyframes blob-pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.login-card {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.60);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 44px;
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.06);
    padding: 2.5rem;
    overflow: hidden;
}

.login-shine {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    pointer-events: none;
}

.login-logo-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2.5rem;
}

.login-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #FF9500, #FF5E00);
    border-radius: 22px;
    box-shadow: 0 12px 24px rgba(255, 149, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.login-logo span {
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
}

.login-logo-wrap h1 {
    font-size: 1.625rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.2rem;
}

.login-logo-wrap p {
    color: var(--muted);
    font-size: 0.9375rem;
    font-weight: 500;
    margin: 0;
}

.login-fields {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.login-field {
    position: relative;
}

.login-field svg {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    transition: color 0.12s;
    pointer-events: none;
}

.login-field:focus-within svg {
    color: #FF9500;
}

.login-input {
    width: 100%;
    height: 54px;
    padding: 0 3rem 0 1rem;
    background: rgba(245, 245, 247, 0.5);
    border: 1px solid transparent;
    border-radius: 18px;
    font-size: 1rem;
    font-family: var(--font);
    font-weight: 500;
    color: var(--text);
    outline: none;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.login-input:focus {
    background: var(--surface);
    border-color: rgba(255, 149, 0, 0.5);
    box-shadow: 0 0 0 4px rgba(255, 149, 0, 0.1);
}

.login-submit {
    width: 100%;
    height: 54px;
    background: #FF9500;
    color: #fff;
    border: none;
    border-radius: 18px;
    font-size: 1.0625rem;
    font-weight: 700;
    font-family: var(--font);
    box-shadow: 0 8px 20px rgba(255, 149, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s, transform 0.12s;
}

.login-submit:hover {
    background: #FF8A00;
    box-shadow: 0 12px 28px rgba(255, 149, 0, 0.35);
}

.login-submit:active {
    transform: scale(0.98);
}

.login-extras {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.login-biometric {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #FF9500;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    background: none;
    cursor: pointer;
    transition: opacity 0.12s;
}

.login-biometric:hover {
    opacity: 0.75;
}

.login-divider {
    width: 100%;
    height: 1px;
    background: rgba(29, 29, 31, 0.06);
}

.login-help {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted);
    border: none;
    background: none;
    cursor: pointer;
    transition: color 0.12s;
}

.login-help:hover {
    color: var(--text);
}

.login-version {
    position: relative;
    z-index: 10;
    text-align: center;
    margin-top: 2.5rem;
    font-size: 0.8125rem;
    color: var(--muted);
    font-weight: 500;
}

.login-home-bar {
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 128px;
    height: 6px;
    background: rgba(29, 29, 31, 0.1);
    border-radius: 999px;
}


/* --------------------------------------------------------------------------
   Scrollbar
   -------------------------------------------------------------------------- */

::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.12);
    border-radius: 99px;
}


/* --------------------------------------------------------------------------
   Focus & reduced motion
   -------------------------------------------------------------------------- */

:focus:not(:focus-visible) {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}


/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 767px) {
    .sidebar {
        width: var(--sidebar-col);
    }
    .sidebar-brand,
    .nav-label,
    .sidebar-logout .nav-label {
        /* display: none; */
    }
    .main {
        margin-right: var(--sidebar-col);
    }
    .sidebar-toggle {
        display: none;
    }
}


/* ==========================================================================
   CRUD forms — مطابقة تقريبية لصفحات React الأصلية (إضافة / تعديل)
   ========================================================================== */

.form-shell {
    max-width: 80rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.form-top-start {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.form-back {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border-gray);
    border-radius: 1rem;
    color: var(--muted);
    flex-shrink: 0;
    transition: color 0.15s, border-color 0.15s;
}

.form-back:hover {
    color: var(--accent);
    border-color: rgba(249, 115, 22, 0.35);
}

.form-top h1 {
    font-size: clamp(1.5rem, 3vw, 1.85rem);
    font-weight: 900;
    margin: 0 0 0.25rem;
    letter-spacing: -0.02em;
}

.form-top .sub {
    margin: 0;
    font-size: 0.875rem;
    color: var(--muted);
    font-weight: 500;
}

.form-top-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.form-btn-cancel {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--muted);
    background: none;
    border: none;
    border-radius: 0.75rem;
}

.form-btn-cancel:hover {
    background: rgba(0, 0, 0, 0.05);
}

.form-btn-save {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    font-size: 0.875rem;
    font-weight: 900;
    color: #fff;
    background: #004D2C;
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 107, 60, 0.25);
    transition: transform 0.15s, background 0.15s;
}

.form-btn-save:hover {
    background: var(--accent-h);
    transform: translateY(-1px);
}

.form-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .form-split {
        grid-template-columns: 1fr 2fr;
    }
}

.form-card {
    background: var(--surface);
    border-radius: 2rem;
    border: 1px solid var(--border-gray);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    padding: 1.75rem 1.5rem;
}

.form-card--lg {
    padding: 2rem 1.75rem;
    border-radius: 2rem;
}

@media (min-width: 1024px) {
    .form-card--lg {
        padding: 2.5rem;
        border-radius: 2.5rem;
    }
}

.form-card--center {
    text-align: center;
}

.form-avatar-wrap {
    position: relative;
    width: 8rem;
    height: 8rem;
    margin: 0 auto 1rem;
}

.form-avatar-wrap--round .form-avatar-img {
    border-radius: 50%;
}

.form-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1.5rem;
    border: 4px solid #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    background: var(--bg);
}

.form-avatar-badge {
    position: absolute;
    bottom: 0.15rem;
    left: 0.15rem;
    width: 2rem;
    height: 2rem;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.form-gradient-hdr {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 6rem;
    background: linear-gradient(to bottom, rgba(0, 107, 60, 0.08), transparent);
    pointer-events: none;
    border-radius: 2rem 2rem 0 0;
}

.form-card--hero {
    position: relative;
    overflow: hidden;
}

.form-section-hdr {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--bg);
}

.form-section-icon {
    padding: 0.5rem;
    background: #EAF6F0;
    color: var(--accent);
    border-radius: 0.5rem;
    display: flex;
}

.form-section-hdr h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 900;
}

.form-fields-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .form-fields-2 {
        grid-template-columns: 1fr 1fr;
    }
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-field label,
.form-lbl {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--muted);
}

.form-inp,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 0.875rem;
    font-weight: 700;
    font-family: inherit;
    color: var(--text);
    background: #f9fafb;
    border: 1px solid transparent;
    border-radius: 0.85rem;
    outline: none;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.form-field textarea {
    min-height: 6rem;
    resize: vertical;
}

.form-inp:focus,
.form-field select:focus,
.form-field textarea:focus {
    background: var(--surface);
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-light);
}

.form-inp--icon {
    padding-right: 2.75rem;
}

.form-inp-wrap {
    position: relative;
}

.form-inp-wrap svg {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}

.form-note {
    margin-top: 1.25rem;
    padding: 1rem;
    background: #EAF6F0;
    border: 1px solid #fed7aa;
    border-radius: 0.85rem;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.form-note p {
    margin: 0;
    font-size: 0.75rem;
    color: var(--sub);
    line-height: 1.5;
}

.form-note strong {
    display: block;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    color: var(--text);
}

.form-toggle-banner {
    padding: 1.5rem;
    background: rgba(249, 115, 22, 0.06);
    border: 1px solid #fed7aa;
    border-radius: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.form-toggle-banner p {
    margin: 0;
    font-weight: 900;
    font-size: 0.9rem;
    color: #431407;
}

.form-toggle-banner .hint {
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(154, 52, 18, 0.75);
    margin-top: 0.25rem;
}

.form-switch {
    width: 3.5rem;
    height: 2rem;
    background: var(--accent);
    border-radius: 999px;
    position: relative;
    flex-shrink: 0;
    cursor: pointer;
}

.form-switch::after {
    content: "";
    position: absolute;
    right: 0.2rem;
    top: 0.2rem;
    width: 1.6rem;
    height: 1.6rem;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

.form-mini-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 0.5rem;
}

.form-mini-stat {
    padding: 1rem;
    background: #f9fafb;
    border-radius: 1rem;
}

.form-mini-stat span {
    display: block;
    font-size: 0.625rem;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--muted);
}

.form-mini-stat strong {
    font-size: 1.125rem;
    font-weight: 900;
}

.form-icon-tile {
    width: 5rem;
    height: 5rem;
    margin: 0 auto 1.25rem;
    background: #EAF6F0;
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.form-icon-tile--blue {
    background: var(--blue-light);
    color: var(--blue);
}

.form-dashed-upload {
    width: 6rem;
    height: 6rem;
    margin: 0 auto 1rem;
    border: 2px dashed rgba(249, 115, 22, 0.35);
    border-radius: 2rem;
    background: #EAF6F0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    cursor: pointer;
}

.form-link-orange {
    background: none;
    border: none;
    color: var(--accent);
    font-weight: 900;
    font-size: 0.875rem;
    cursor: pointer;
    text-decoration: underline;
    margin-bottom: 1rem;
}

.form-row-toggles {
    border-top: 1px solid var(--bg);
    padding-top: 1rem;
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-row-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 1rem;
}

.form-row-toggle .t-title {
    font-weight: 900;
    font-size: 0.875rem;
}

.form-row-toggle .t-sub {
    font-size: 0.625rem;
    color: var(--muted);
    font-weight: 700;
}

.form-switch--sm {
    width: 3rem;
    height: 1.5rem;
    background: #d1d5db;
}

.form-switch--sm::after {
    width: 1.15rem;
    height: 1.15rem;
    top: 0.175rem;
    right: 0.175rem;
}

.form-switch--sm.on {
    background: var(--accent);
}

.form-switch--green.on {
    background: var(--green);
}

.stats-cards-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.stat-card-users {
    background: var(--surface);
    padding: 1.25rem;
    border-radius: 1.5rem;
    border: 1px solid var(--border-gray);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.stat-card-users .top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.stat-card-users .ic {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-card-users .ic.orange {
    background: #EAF6F0;
    color: var(--accent);
}

.stat-card-users .ic.blue {
    background: var(--blue-light);
    color: var(--blue);
}

.stat-card-users .ic.purple {
    background: var(--purple-light);
    color: var(--purple);
}

.stat-card-users .ic.red {
    background: var(--red-light);
    color: #dc2626;
}

.stat-card-users .badge-pill {
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 0.5rem;
    background: var(--green-light);
    color: #006B3C;
}

.stat-card-users .lbl {
    font-size: 0.875rem;
    color: var(--muted);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-card-users .val {
    font-size: 1.5rem;
    font-weight: 900;
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.35rem;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 0.75rem;
}

.filter-tabs button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    background: none;
    color: var(--muted);
    cursor: pointer;
}

.filter-tabs button.is-on {
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.table-toolbar-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-gray);
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-cell img {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.slug-input-wrap {
    position: relative;
}

.slug-input-wrap .suffix {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    font-weight: 700;
    color: #d1d5db;
    pointer-events: none;
}


/* ==========================================================================\n   ASBY Laravel integration layer — pages only, no modal/popup UI\n   Keeps the original design class system while supporting existing Blade markup.\n   ========================================================================== */

:root {
    --accent: #006B3C;
    --accent-h: #004D2C;
    --accent-light: rgba(0, 107, 60, .10);
    --green: #006B3C;
    --green-light: rgba(0, 107, 60, .12);
    --red: #D71920;
    --red-light: rgba(215, 25, 32, .10);
    --blue: #006B3C;
    --blue-light: rgba(0, 107, 60, .08);
    --purple: #D71920;
    --purple-light: rgba(215, 25, 32, .08);
    --asby-green: #006B3C;
    --asby-green-dark: #004D2C;
    --asby-red: #D71920;
}

html[dir="ltr"] body {
    direction: ltr;
}

html[dir="ltr"] .sidebar {
    right: auto;
    left: 0;
    border-left: 0;
    border-right: 1px solid var(--border);
}

html[dir="ltr"] .main {
    margin-right: 0;
    margin-left: var(--sidebar-w);
}

html[dir="ltr"] .main.collapsed {
    margin-right: 0;
    margin-left: var(--sidebar-col);
}

html[dir="ltr"] .sidebar-toggle {
    left: auto;
    right: -12px;
}

html[dir="ltr"] .sidebar.collapsed .sidebar-toggle svg {
    transform: rotate(180deg);
}

html[dir="ltr"] .toolbar-search svg {
    right: auto;
    left: .6rem;
}

html[dir="ltr"] .toolbar-search input {
    padding: 0 .75rem 0 2rem;
}

html[dir="ltr"] .nav-item,
html[dir="ltr"] .sidebar-logout {
    text-align: left;
}

.sidebar-logo {
    background: #fff;
    padding: 2px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 107, 60, .18);
}

.sidebar-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 7px;
}

.sidebar-brand small {
    display: block;
    color: var(--muted);
    font-size: .68rem;
    font-weight: 500;
    margin-top: 1px;
}

.nav-separator {
    font-size: .64rem;
    color: var(--muted);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: .9rem .75rem .3rem;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar.collapsed .nav-separator {
    opacity: 0;
    height: 8px;
    padding: 4px 0;
}

.nav-item {
    color: var(--text);
    text-decoration: none;
}

.nav-item:hover {
    text-decoration: none;
}

.sidebar-footer form {
    margin: 0;
}

.sidebar-logout {
    cursor: pointer;
}

.toolbar-brand-block {
    display: flex;
    align-items: center;
    gap: .55rem;
    min-width: 0;
}

.mobile-sidebar-btn {
    display: none;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 9px;
    background: var(--surface);
    color: var(--text);
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 5px rgba(0, 0, 0, .05);
}

.toolbar-user {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.2rem 0.35rem 0.2rem 0.55rem;
    border-radius: 10px;
    position: relative;
}

.toolbar-user-toggle {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: inherit;
}

.toolbar-user-chevron {
    font-size: 0.65rem;
    color: var(--muted);
    transition: transform 0.2s;
}

.toolbar-user.open .toolbar-user-chevron {
    transform: rotate(180deg);
}

.toolbar-user-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 200px;
    background: var(--surface);
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.10);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.5rem);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    z-index: 200;
}

.toolbar-user.open .toolbar-user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.toolbar-user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    color: var(--text);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.15s;
    width: 100%;
}

.toolbar-user-dropdown-item i {
    width: 1.1rem;
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
}

.toolbar-user-dropdown-item:hover {
    background: var(--bg);
}

.toolbar-user-dropdown-item--logout {
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}

.toolbar-user-dropdown-divider {
    height: 1px;
    background: var(--border-gray);
    margin: 0.4rem 0.75rem;
}

.toolbar-user-meta {
    line-height: 1.2;
    white-space: nowrap;
}

.toolbar-user-meta strong {
    font-size: .78rem;
    display: block;
}

.toolbar-user-meta small {
    font-size: .65rem;
    color: var(--muted);
}

.lang-switch {
    display: flex;
    background: #E9E9EC;
    border-radius: 8px;
    padding: 2px;
}

.lang-switch a {
    padding: .25rem .48rem;
    border-radius: 6px;
    color: var(--muted);
    font-size: .7rem;
    font-weight: 800;
    text-decoration: none;
}

.lang-switch a.active {
    background: #fff;
    color: var(--accent);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
}

.logout-icon {
    color: var(--red);
}

.toolbar-alerts {
    position: relative;
}

.toolbar-alerts-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: inherit;
    width: auto;
    height: auto;
}

.toolbar-alerts-icon-wrap {
    position: relative;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toolbar-alerts-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

.toolbar-alerts-chevron {
    font-size: 0.55rem;
    color: var(--muted);
    transition: transform 0.2s;
}

.toolbar-alerts.open .toolbar-alerts-chevron {
    transform: rotate(180deg);
}

.toolbar-alerts-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    width: 320px;
    max-width: calc(100vw - 2rem);
    background: var(--surface);
    border: 1px solid var(--border-gray);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.10);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.5rem);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    z-index: 200;
    overflow: hidden;
}

.toolbar-alerts.open .toolbar-alerts-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.toolbar-alerts-dropdown-header {
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--sub);
    border-bottom: 1px solid var(--border-gray);
}

.toolbar-alerts-dropdown-list {
    max-height: 320px;
    overflow-y: auto;
}

.toolbar-alerts-dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text);
    text-decoration: none;
    transition: background 0.15s;
    border-bottom: 1px solid var(--border);
}

.toolbar-alerts-dropdown-item:last-child {
    border-bottom: none;
}

.toolbar-alerts-dropdown-item:hover {
    background: var(--bg);
}

.toolbar-alerts-dropdown-item-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.toolbar-alerts-dropdown-item-title strong {
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.toolbar-alerts-dropdown-item-title span {
    font-size: 0.75rem;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.toolbar-alerts-dropdown-item-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.toolbar-alerts-dropdown-item-meta small {
    font-size: 0.7rem;
    color: var(--muted);
    white-space: nowrap;
}

.toolbar-alerts-dropdown-footer {
    display: block;
    padding: 0.65rem 1rem;
    text-align: center;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    border-top: 1px solid var(--border-gray);
    transition: background 0.15s;
}

.toolbar-alerts-dropdown-footer:hover {
    background: var(--bg);
}

.toolbar-alerts-dropdown-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.25rem 1rem;
    color: var(--muted);
    font-size: 0.85rem;
}

.toolbar-alerts-dropdown-empty i {
    font-size: 1rem;
    color: var(--green);
}

.page-inner {
    max-width: 1380px;
}

.page-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.page-head h1 {
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 900;
    margin: 0 0 .25rem;
}

.page-head p {
    color: var(--muted);
    font-weight: 500;
    font-size: .96rem;
    margin: 0;
}

.page-actions {
    display: flex;
    align-items: center;
    gap: .55rem;
    flex-wrap: wrap;
}


/* Old Blade components mapped to the supplied design language */

.card,
.filter-card,
.invoice-sheet,
.profile-hero {
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: 0 2px 12px rgba(0, 0, 0, .04);
    border-radius: 22px;
    overflow: hidden;
}

.card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-gray);
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.card-body {
    padding: 1.25rem;
}

.card-title {
    font-size: .94rem;
    font-weight: 900;
    margin: 0;
}

.card-subtitle {
    color: var(--muted);
    font-size: .76rem;
    margin-top: .2rem;
}

.filter-card {
    padding: 1rem 1.15rem;
    margin: 0;
}

.form-control,
.custom-select,
.form-inp,
input.form-control,
textarea.form-control,
select.form-control {
    width: 100%;
    padding: .8rem 1rem;
    background: #F9F9FA;
    border: 1px solid var(--border-gray);
    border-radius: 13px;
    font-family: var(--font);
    font-size: .875rem;
    color: var(--text);
    outline: none;
    transition: border-color .15s, box-shadow .15s, background .15s;
    min-height: 45px;
}

textarea.form-control {
    min-height: 92px;
    resize: vertical;
}

.form-control:focus,
.custom-select:focus,
.form-inp:focus {
    background: #fff;
    border-color: rgba(0, 107, 60, .45);
    box-shadow: 0 0 0 3px rgba(0, 107, 60, .09);
}

.form-control-file {
    font-family: var(--font);
    font-size: .82rem;
    color: var(--muted);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label,
label {
    display: block;
    font-size: .75rem;
    font-weight: 800;
    color: var(--sub);
    margin-bottom: .45rem;
}

.form-hint {
    font-size: .7rem;
    color: var(--muted);
    margin-top: .35rem;
}

.form-section-title {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .95rem;
    font-weight: 900;
    color: var(--text);
    padding-bottom: .8rem;
    margin: .2rem 0 1rem;
    border-bottom: 1px solid var(--border-gray);
}

.form-section-title i {
    color: var(--accent);
}

.btn-asby,
.btn-orange,
.btn-save {
    background: var(--accent)!important;
    color: #fff!important;
    border-color: var(--accent)!important;
    box-shadow: 0 6px 18px rgba(0, 107, 60, .18);
}

.btn-asby:hover,
.btn-orange:hover,
.btn-save:hover {
    background: var(--accent-h)!important;
    color: #fff!important;
    text-decoration: none;
}

.btn-outline-asby {
    background: #fff;
    color: var(--accent);
    border: 1px solid rgba(0, 107, 60, .35);
}

.btn-outline-asby:hover {
    background: var(--accent-light);
    color: var(--accent-h);
    text-decoration: none;
}

.btn-light,
.btn-ghost {
    background: #fff;
    color: var(--sub);
    border: 1px solid var(--border-gray);
}

.btn-light:hover,
.btn-ghost:hover {
    background: var(--bg);
    text-decoration: none;
}

.btn-danger-soft {
    background: var(--red-light);
    color: var(--red);
    border: 1px solid rgba(215, 25, 32, .12);
}

.btn-danger-soft:hover {
    background: rgba(215, 25, 32, .16);
    color: #a11218;
    text-decoration: none;
}

.btn-warning {
    background: #fff5df;
    color: #8c6500;
    border: 1px solid #f3dfb3;
}

.btn-sm {
    padding: .46rem .72rem;
    border-radius: 9px;
    font-size: .75rem;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.table,
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.table thead tr,
.data-table thead tr {
    background: #F8F8FA;
}

.table th,
.data-table th {
    padding: .72rem 1rem;
    border-bottom: 1px solid var(--border-gray);
    font-size: .68rem;
    font-weight: 800;
    color: var(--muted);
    text-align: start;
    white-space: nowrap;
}

.table td,
.data-table td {
    padding: .82rem 1rem;
    border-bottom: 1px solid var(--border);
    font-size: .78rem;
    vertical-align: middle;
    color: var(--sub);
}

.table tbody tr:last-child td,
.data-table tbody tr:last-child td {
    border-bottom: 0;
}

.table tbody tr:hover,
.data-table tbody tr:hover {
    background: #FBFBFC;
}

.table a {
    font-weight: 700;
    color: var(--text);
}

.table code,
code {
    background: var(--accent-light);
    color: var(--accent);
    padding: .24rem .45rem;
    border-radius: 6px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .72rem;
}

.name-cell strong {
    display: block;
    color: var(--text);
    font-weight: 800;
}

.name-cell small {
    display: block;
    color: var(--muted);
    margin-top: .12rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .32rem .56rem;
    border-radius: 999px;
    font-size: .66rem;
    font-weight: 800;
    border: 0;
    line-height: 1.2;
}

.badge-active,
.badge-green,
.badge-paid {
    background: var(--green-light);
    color: var(--green);
}

.badge-expiring,
.badge-yellow,
.badge-partial {
    background: #FFF5DF;
    color: #946A00;
}

.badge-expired,
.badge-red,
.badge-unpaid {
    background: var(--red-light);
    color: var(--red);
}

.badge-suspended,
.badge-purple {
    background: rgba(215, 25, 32, .08);
    color: #A11218;
}

.badge-cancelled,
.badge-none,
.badge-gray,
.badge-light {
    background: #F0F0F2;
    color: #66666B;
}

.badge-blue,
.badge-orange {
    background: var(--accent-light);
    color: var(--accent);
}

.alert,
.form-alert {
    border-radius: 14px;
    border: 1px solid transparent;
    padding: .85rem 1rem;
    font-size: .8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.alert-success {
    background: var(--green-light);
    color: var(--green);
    border-color: rgba(0, 107, 60, .10);
}

.alert-danger {
    background: var(--red-light);
    color: var(--red);
    border-color: rgba(215, 25, 32, .10);
}

.alert-warning {
    background: #FFF6E3;
    color: #8A6500;
    border-color: #F2E1BA;
}

.alert ul {
    margin: .5rem 0 0;
    padding-inline-start: 1.2rem;
}

.member-avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    object-fit: cover;
    background: #EEF2F0;
    border: 1px solid var(--border-gray);
}

.member-avatar-lg {
    width: 92px;
    height: 92px;
    border-radius: 24px;
    object-fit: cover;
    background: #EEF2F0;
    border: 1px solid var(--border-gray);
}

.member-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: var(--accent);
    background: var(--accent-light);
}

.profile-hero {
    padding: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    overflow: visible;
}

.profile-main {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.profile-main h2 {
    font-size: 1.35rem;
    font-weight: 900;
    margin: 0;
}

.profile-main .meta {
    color: var(--muted);
    font-size: .77rem;
    margin-top: .2rem;
}

.profile-kpis {
    display: flex;
    gap: 1.3rem;
    flex-wrap: wrap;
}

.profile-kpi span {
    display: block;
    color: var(--muted);
    font-size: .65rem;
    font-weight: 700;
}

.profile-kpi strong {
    font-size: .95rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .7rem;
}

.info-item {
    background: #F8F8FA;
    border: 1px solid var(--border);
    border-radius: 13px;
    padding: .75rem .85rem;
}

.info-item span {
    display: block;
    color: var(--muted);
    font-size: .63rem;
    font-weight: 700;
    margin-bottom: .15rem;
}

.info-item strong {
    font-size: .78rem;
    color: var(--text);
}

.info-item.full {
    grid-column: 1/-1;
}

.access-banner {
    padding: .9rem 1rem;
    border-radius: 14px;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: .55rem;
    font-size: .82rem;
}

.access-allowed {
    background: var(--green-light);
    color: var(--green);
}

.access-denied {
    background: var(--red-light);
    color: var(--red);
}

.empty-state {
    text-align: center;
    padding: 2.8rem 1rem;
    color: var(--muted);
}

.empty-state i {
    display: block;
    font-size: 1.8rem;
    margin-bottom: .65rem;
    color: #B6B6BB;
}

.empty-state strong {
    display: block;
    color: var(--sub);
}

.json-box {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .7rem;
    background: #F8F8FA;
    border: 1px solid var(--border-gray);
    border-radius: 10px;
    padding: .8rem;
    max-height: 260px;
    overflow: auto;
    white-space: pre-wrap;
    direction: ltr;
    text-align: left;
}


/* Bootstrap grid utilities retained for existing Blade partials */

.row {
    display: flex;
    flex-wrap: wrap;
    margin: -.5rem;
}

.row>[class*="col-"] {
    padding: .5rem;
    min-width: 0;
}

.col-12 {
    width: 100%;
}

.col-lg-5,
.col-md-5 {
    width: 41.6667%;
}

.col-lg-7 {
    width: 58.3333%;
}

.col-md-6 {
    width: 50%;
}

.col-md-4 {
    width: 33.3333%;
}

.col-md-3 {
    width: 25%;
}

.col-md-2 {
    width: 16.6667%;
}

.col-md-1 {
    width: 8.3333%;
}

.col-lg-4 {
    width: 33.3333%;
}

.col-lg-6 {
    width: 50%;
}

.col-lg-8 {
    width: 66.6667%;
}

.d-flex {
    display: flex!important
}

.d-inline {
    display: inline!important
}

.align-items-center {
    align-items: center!important
}

.align-items-start {
    align-items: flex-start!important
}

.justify-content-between {
    justify-content: space-between!important
}

.justify-content-center {
    justify-content: center!important
}

.flex-wrap {
    flex-wrap: wrap!important
}

.flex-fill {
    flex: 1 1 auto!important
}

.text-center {
    text-align: center!important
}

.text-right {
    text-align: end!important
}

.text-muted {
    color: var(--muted)!important
}

.font-weight-bold {
    font-weight: 800!important
}

.small {
    font-size: .75rem!important
}

.h6 {
    font-size: .95rem!important
}

.m-0 {
    margin: 0!important
}

.mb-0 {
    margin-bottom: 0!important
}

.mb-1 {
    margin-bottom: .25rem!important
}

.mb-2 {
    margin-bottom: .5rem!important
}

.mb-3 {
    margin-bottom: 1rem!important
}

.mb-4 {
    margin-bottom: 1.5rem!important
}

.mt-2 {
    margin-top: .5rem!important
}

.mt-3 {
    margin-top: 1rem!important
}

.mr-1 {
    margin-inline-end: .25rem!important
}

.ml-1 {
    margin-inline-start: .25rem!important
}

.px-4 {
    padding-inline: 1.5rem!important
}

.py-4 {
    padding-block: 1.5rem!important
}

.border-top {
    border-top: 1px solid var(--border-gray)!important
}

.h-100 {
    height: 100%!important
}

.custom-control {
    display: flex;
    align-items: center;
    gap: .55rem;
    min-height: 32px;
}

.custom-control-input {
    width: 42px;
    height: 24px;
    accent-color: var(--accent);
}

.custom-control-label {
    margin: 0!important;
}

.pagination {
    display: flex;
    align-items: center;
    gap: .35rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination .page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 .5rem;
    border: 1px solid var(--border-gray);
    background: #fff;
    color: var(--sub);
    border-radius: 9px;
    font-size: .75rem;
    text-decoration: none;
}

.pagination .page-item.active .page-link {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.pagination .page-item.disabled .page-link {
    opacity: .45;
}


/* Form pages use the supplied design class vocabulary */

.form-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 1.25rem;
    align-items: start;
}

.form-page-grid.one {
    grid-template-columns: 1fr;
}

.form-summary-card {
    position: sticky;
    top: 1rem;
}

.section-title-row {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin-bottom: 1rem;
}

.section-title-row .form-section-icon {
    background: var(--accent-light);
    color: var(--accent);
}

.section-title-row h3 {
    font-size: .95rem;
    font-weight: 900;
    margin: 0;
}

.form-actions-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .6rem;
    padding-top: .4rem;
}

.danger-page {
    max-width: 760px;
    margin: 0 auto;
}

.danger-card {
    border-color: rgba(215, 25, 32, .16);
}

.danger-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: var(--red-light);
    color: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.danger-card h2 {
    font-size: 1.25rem;
    font-weight: 900;
}

.danger-card p {
    color: var(--muted);
}


/* Invoice presentation */

.invoice-sheet {
    max-width: 900px;
    margin: auto;
    padding: 2rem;
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    gap: 1.3rem;
    border-bottom: 3px solid var(--accent);
    padding-bottom: 1.2rem;
    margin-bottom: 1.3rem;
}

.invoice-brand {
    display: flex;
    align-items: center;
    gap: .8rem;
}

.invoice-brand img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.invoice-brand h2 {
    font-size: 1rem;
    font-weight: 900;
    margin: 0;
}

.invoice-number {
    text-align: end;
}

.invoice-number h1 {
    font-size: 1.35rem;
    color: var(--accent);
    font-weight: 900;
    margin: 0;
}

.invoice-total-box {
    background: var(--accent-light);
    border-radius: 14px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.invoice-total-box strong {
    font-size: 1.25rem;
    color: var(--accent);
}


/* Login — same design, ASBY identity */

.login-page {
    background: radial-gradient(circle at 15% 15%, rgba(0, 107, 60, .16), transparent 28%), radial-gradient(circle at 85% 82%, rgba(215, 25, 32, .12), transparent 28%), #F5F5F7;
}

.login-logo {
    background: #fff!important;
    padding: 4px;
    overflow: hidden;
    border: 1px solid rgba(0, 107, 60, .12);
    box-shadow: 0 10px 30px rgba(0, 107, 60, .16);
}

.login-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 18px;
}

.login-submit {
    background: var(--accent);
    box-shadow: 0 10px 24px rgba(0, 107, 60, .20);
}

.login-submit:hover {
    background: var(--accent-h);
}

.login-field:focus-within {
    border-color: rgba(0, 107, 60, .40);
    box-shadow: 0 0 0 3px rgba(0, 107, 60, .08);
}

.login-lang {
    display: flex;
    justify-content: center;
    gap: .3rem;
    margin-top: 1rem;
}

.login-lang a {
    padding: .35rem .65rem;
    background: #F0F0F2;
    border-radius: 8px;
    color: var(--muted);
    font-size: .72rem;
    font-weight: 800;
    text-decoration: none;
}

.login-lang a.active {
    background: var(--accent-light);
    color: var(--accent);
}


/* Never render Bootstrap modal/popover styling in this build */

.modal,
.popover,
.toast {
    display: none!important;
}

@media (max-width:900px) {
    .form-page-grid {
        grid-template-columns: 1fr
    }
    .form-summary-card {
        position: static
    }
    .toolbar-user-meta {
        display: none
    }
    .toolbar-search {
        display: none
    }
    .profile-hero {
        flex-direction: column;
        align-items: flex-start
    }
    .profile-kpis {
        width: 100%
    }
    .info-grid {
        grid-template-columns: 1fr
    }
    .col-lg-5,
    .col-lg-7,
    .col-lg-4,
    .col-lg-6,
    .col-lg-8,
    .col-md-6,
    .col-md-5,
    .col-md-4,
    .col-md-3,
    .col-md-2,
    .col-md-1 {
        width: 100%;
    }
}

@media (max-width:720px) {
    .sidebar {
        transform: translateX(105%);
        transition: transform .25s ease;
        width: var(--sidebar-w)
    }
    html[dir="ltr"] .sidebar {
        transform: translateX(-105%)
    }
    .sidebar.mobile-open {
        transform: translateX(0)
    }
    .main,
    .main.collapsed,
    html[dir="ltr"] .main,
    html[dir="ltr"] .main.collapsed {
        margin: 0
    }
    .mobile-sidebar-btn {
        display: flex
    }
    .sidebar-toggle {
        display: none
    }
    .page-scroll {
        padding: 1rem
    }
    .toolbar {
        padding: 0 .85rem
    }
    .toolbar-title {
        font-size: .9rem
    }
    .toolbar-user {
        padding: 0
    }
    .page-hdr,
    .page-head {
        flex-direction: column
    }
    .page-actions {
        width: 100%
    }
    .page-actions .btn {
        flex: 1
    }
    .login-card {
        border-radius: 28px
    }
    .login-page {
        padding: 1rem
    }
}

@media print {
    .sidebar,
    .toolbar,
    .page-actions,
    .form-actions-bar,
    .no-print {
        display: none!important
    }
    .main,
    .main.collapsed {
        margin: 0!important;
        height: auto;
        overflow: visible
    }
    .page-scroll {
        overflow: visible;
        padding: 0
    }
    .page-inner {
        max-width: none
    }
    .card,
    .invoice-sheet {
        box-shadow: none
    }
    .invoice-sheet {
        border: 0;
    }
}

@media (max-width:980px) {
    .charts-grid[style],
    .page-inner>div[style*="grid-template-columns:minmax(0,1.45fr)"] {
        grid-template-columns: 1fr!important
    }
}

.login-field>i {
    position: absolute;
    inset-inline-start: 1rem;
    color: var(--muted);
    font-size: .95rem;
    z-index: 2
}

.login-field {
    position: relative
}

.login-field .login-input {
    padding-inline-start: 2.7rem
}

.metric-label {
    font-size: .75rem;
    font-weight: 700;
    color: var(--muted)
}

.metric-note {
    font-size: .68rem;
    color: var(--muted);
    margin-top: .2rem
}

.form-inp-wrap>i {
    position: absolute;
    inset-inline-start: .9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: .8rem;
    z-index: 2
}

.form-inp-wrap {
    position: relative
}

.form-inp-wrap .form-inp--icon {
    padding-inline-start: 2.5rem
}

.user-cell {
    display: flex;
    align-items: center;
    gap: .7rem
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-light);
    color: var(--accent);
    font-weight: 900;
    object-fit: cover;
    flex: none
}

.cell-name a {
    color: var(--text);
    font-weight: 800
}

.btn-block {
    width: 100%
}

.input-group {
    display: flex;
    width: 100%;
    align-items: stretch
}

.input-group .form-control {
    border-start-end-radius: 0;
    border-end-end-radius: 0
}

.input-group-append {
    display: flex
}

.input-group-text {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 .7rem;
    background: var(--accent-light);
    color: var(--accent);
    border: 1px solid var(--border-gray);
    border-inline-start: 0;
    border-start-end-radius: 13px;
    border-end-end-radius: 13px;
    font-size: .7rem;
    font-weight: 900;
    min-width: 52px
}


/* ========================================================================== */


/* V3 — Arabic alignment, responsive data tables, reports and club login      */


/* ========================================================================== */

html[dir="rtl"] body,
html[dir="rtl"] .page-inner,
html[dir="rtl"] .page-hdr,
html[dir="rtl"] .card,
html[dir="rtl"] .table-card,
html[dir="rtl"] .form-group,
html[dir="rtl"] .info-item,
html[dir="rtl"] .metric-card,
html[dir="rtl"] .member-form-section {
    text-align: right
}

html[dir="rtl"] label,
html[dir="rtl"] .form-inp,
html[dir="rtl"] .form-control,
html[dir="rtl"] textarea,
html[dir="rtl"] select,
html[dir="rtl"] .data-table th,
html[dir="rtl"] .data-table td {
    text-align: right;
    direction: rtl
}

html[dir="ltr"] body,
html[dir="ltr"] .page-inner,
html[dir="ltr"] .page-hdr,
html[dir="ltr"] .card,
html[dir="ltr"] .table-card,
html[dir="ltr"] .form-group,
html[dir="ltr"] .info-item,
html[dir="ltr"] .metric-card,
html[dir="ltr"] .member-form-section,
html[dir="ltr"] label,
html[dir="ltr"] .form-inp,
html[dir="ltr"] .form-control,
html[dir="ltr"] textarea,
html[dir="ltr"] select,
html[dir="ltr"] .data-table th,
html[dir="ltr"] .data-table td {
    text-align: left;
    direction: ltr
}

html[dir="rtl"] input[type="email"],
html[dir="rtl"] input[type="tel"],
html[dir="rtl"] input[type="number"] {
    text-align: right
}

html[dir="rtl"] input[type="date"],
html[dir="rtl"] input[type="datetime-local"] {
    direction: rtl;
    text-align: right
}

html[dir="rtl"] .text-right {
    text-align: right!important
}

html[dir="ltr"] .text-right {
    text-align: left!important
}

.page-inner {
    max-width: 1540px
}

.data-table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin
}

.data-table-wide {
    min-width: 1180px;
    margin-bottom: 0
}

.data-table-wide th {
    position: sticky;
    top: 0;
    z-index: 3;
    background: #f8faf9;
    white-space: nowrap
}

.data-table-wide th,
.data-table-wide td {
    padding: .85rem .9rem;
    vertical-align: middle
}

.data-table-wide td {
    min-width: 115px
}

.data-table-wide .name-cell {
    min-width: 210px
}

.table-actions-nowrap {
    white-space: nowrap;
    min-width: 110px!important
}

.icon-btn-renew {
    color: var(--accent)!important;
    background: var(--accent-light)!important
}

.badge-inactive {
    background: #f1f1f3;
    color: var(--sub)
}

.form-card--xl {
    width: 100%
}

.member-form-card .form-field.full-grid {
    grid-column: 1/-1;
    display: flex
}

.member-form-grid {
    align-items: start
}

.member-form-section {
    border: 1px solid var(--border-gray);
    border-radius: 18px;
    padding: 1.1rem;
    background: #fff;
    margin-bottom: 1rem
}

.member-form-section .form-section-hdr {
    margin-bottom: 1rem
}

.member-form-section .form-section-hdr p {
    margin: .18rem 0 0;
    color: var(--muted);
    font-size: .76rem
}

.member-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    justify-content: flex-start
}

.report-page-head {
    align-items: center
}

.report-metrics-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: .85rem
}

.report-tabs {
    display: flex;
    gap: .5rem;
    overflow-x: auto;
    padding: .15rem 0 .35rem
}

.report-tab {
    flex: 0 0 auto;
    padding: .72rem 1rem;
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    background: #fff;
    color: var(--sub);
    font-size: .82rem;
    font-weight: 800;
    text-decoration: none!important
}

.report-tab:hover {
    border-color: rgba(0, 107, 60, .28);
    color: var(--accent)
}

.report-tab.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 7px 20px rgba(0, 107, 60, .16)
}

.report-filter-card {
    padding: 1rem
}

.report-filter-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: .85rem;
    align-items: end
}

.report-search-field {
    grid-column: span 2
}

.report-filter-card .form-group {
    margin: 0
}

.report-filter-actions {
    display: flex;
    gap: .65rem;
    flex-wrap: wrap;
    margin-top: 1rem
}

.report-summary-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .9rem 1rem;
    background: var(--accent-light);
    border: 1px solid rgba(0, 107, 60, .12);
    border-radius: 14px
}

.report-summary-strip span {
    color: var(--sub);
    font-size: .78rem
}

.report-table-card {
    overflow: hidden
}

.renew-search-card {
    border: 1px solid rgba(0, 107, 60, .13);
    box-shadow: 0 12px 34px rgba(24, 58, 42, .07);
    background: #fff;
    border-radius: 18px;
    padding: 1rem
}

.renew-search-main {
    display: flex;
    gap: .65rem;
    align-items: center
}

.renew-search-input {
    flex: 1
}

.renew-search-note {
    margin-top: .7rem;
    color: var(--muted);
    font-size: .76rem;
    display: flex;
    gap: .4rem;
    align-items: center
}

.auth-body {
    margin: 0;
    min-height: 100vh;
    background: #f3f5f4;
    overflow-x: hidden
}

.club-login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(430px, 44%) minmax(0, 56%);
    direction: ltr;
    background: #fff
}

.club-login-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1.3rem, 4vw, 4.5rem);
    background: linear-gradient(180deg, #fff 0%, #f7faf8 100%);
    position: relative;
    z-index: 2
}

.club-login-form-wrap {
    width: min(100%, 520px);
    direction: rtl;
    text-align: right
}

html[dir="ltr"] .club-login-form-wrap {
    direction: ltr;
    text-align: left
}

.club-login-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: clamp(2rem, 5vh, 4.5rem)
}

.club-login-mini-brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-width: 0
}

.club-login-mini-brand img {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--border-gray);
    padding: 3px
}

.club-login-mini-brand strong,
.club-login-mini-brand span {
    display: block
}

.club-login-mini-brand strong {
    font-size: .94rem
}

.club-login-mini-brand span {
    color: var(--muted);
    font-size: .72rem
}

.login-lang--top {
    margin: 0;
    flex: none
}

.club-login-copy {
    margin-bottom: 1.6rem
}

.club-login-kicker {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .35rem .65rem;
    border-radius: 999px;
    background: var(--accent-light);
    color: var(--accent);
    font-weight: 900;
    font-size: .72rem;
    margin-bottom: .9rem
}

.club-login-copy h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900
}

.club-login-copy p {
    color: var(--muted);
    max-width: 430px;
    font-size: 1rem
}

.club-login-form .form-field {
    margin-bottom: 1rem
}

.club-login-form .form-field label {
    display: block;
    font-size: .8rem;
    font-weight: 800;
    margin-bottom: .4rem
}

.club-login-form .login-field {
    border: 1px solid var(--border-gray);
    border-radius: 14px;
    background: #fff;
    transition: .2s
}

.club-login-form .login-input {
    width: 100%;
    height: 54px;
    border: 0;
    outline: 0;
    background: transparent;
    border-radius: 14px;
    font-family: var(--font);
    color: var(--text);
    font-size: .94rem
}

.club-login-form .login-field:focus-within {
    border-color: rgba(0, 107, 60, .45);
    box-shadow: 0 0 0 4px rgba(0, 107, 60, .08)
}

.club-login-form .login-remember {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: var(--sub);
    font-size: .82rem;
    margin: .85rem 0 1.2rem
}

.club-login-submit {
    width: 100%;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .7rem;
    border: 0;
    border-radius: 14px;
    color: #fff;
    font-weight: 900
}

.club-login-footer {
    margin-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: .7rem
}

.club-login-visual {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: #003d25
}

.club-login-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.015)
}

.club-login-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 34, 20, .12), rgba(0, 34, 20, .82))
}

.club-login-visual-content {
    position: absolute;
    inset: auto clamp(1.5rem, 5vw, 5rem) clamp(2rem, 7vh, 5rem);
    color: #fff;
    max-width: 650px
}

.club-login-hero-logo {
    width: 96px;
    height: 96px;
    object-fit: contain;
    border-radius: 24px;
    background: rgba(255, 255, 255, .96);
    padding: 5px;
    margin-bottom: 1.1rem;
    box-shadow: 0 14px 35px rgba(0, 0, 0, .24)
}

.club-login-visual-copy h2 {
    font-size: clamp(1.7rem, 3.5vw, 3.4rem);
    font-weight: 900;
    text-shadow: 0 3px 14px rgba(0, 0, 0, .3);
    margin-bottom: .65rem
}

.club-login-visual-copy p {
    font-size: 1rem;
    opacity: .9
}

.club-login-year {
    display: inline-block;
    font-size: .74rem;
    font-weight: 900;
    letter-spacing: .12em;
    padding: .3rem .6rem;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 999px;
    margin-bottom: .7rem
}

.club-login-sports {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 1.1rem
}

.club-login-sports span {
    padding: .38rem .65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .13);
    border: 1px solid rgba(255, 255, 255, .2);
    backdrop-filter: blur(8px);
    font-size: .72rem;
    font-weight: 800
}

@media(max-width:1180px) {
    .report-metrics-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr))
    }
    .report-filter-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr))
    }
    .report-search-field {
        grid-column: span 2
    }
}

@media(max-width:900px) {
    .club-login-shell {
        grid-template-columns: 1fr
    }
    .club-login-form-panel {
        min-height: 100vh;
        padding: 1.4rem
    }
    .club-login-visual {
        display: none
    }
    .club-login-topline {
        margin-bottom: 2.4rem
    }
    .report-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
    .report-search-field {
        grid-column: 1/-1
    }
    .report-summary-strip {
        align-items: flex-start;
        flex-direction: column
    }
}

@media(max-width:620px) {
    .report-metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
    .report-filter-grid {
        grid-template-columns: 1fr
    }
    .report-search-field {
        grid-column: auto
    }
    .report-filter-actions .btn {
        flex: 1
    }
    .club-login-topline {
        align-items: flex-start;
        flex-direction: column
    }
    .login-lang--top {
        align-self: stretch;
        justify-content: flex-start
    }
    .club-login-footer {
        flex-direction: column;
        gap: .25rem
    }
    .data-table-wide {
        min-width: 1080px
    }
    .renew-search-main {
        align-items: stretch;
        flex-direction: column
    }
}


/* Keep the club visual visible on tablets/phones as a compact responsive hero. */

@media(max-width:900px) {
    .club-login-shell {
        grid-template-columns: 1fr;
        min-height: 100vh
    }
    .club-login-visual {
        display: block;
        order: -1;
        min-height: clamp(220px, 34vh, 330px)
    }
    .club-login-cover {
        object-position: center 38%
    }
    .club-login-visual-content {
        inset: auto 1.25rem 1.25rem;
        max-width: none
    }
    .club-login-hero-logo {
        width: 68px;
        height: 68px;
        border-radius: 18px;
        margin-bottom: .65rem
    }
    .club-login-visual-copy h2 {
        font-size: clamp(1.35rem, 6vw, 2rem);
        margin-bottom: .35rem
    }
    .club-login-visual-copy p {
        margin-bottom: .45rem
    }
    .club-login-sports {
        margin-top: .55rem
    }
    .club-login-form-panel {
        min-height: auto;
        padding: 1.5rem 1.1rem 2rem
    }
    .club-login-topline {
        margin-bottom: 2rem
    }
}