/* ============================================================
   sportieCore — main.css
   ============================================================ */

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; }

body {
    font-family: 'Lato', sans-serif;
    background: #f4f6f9;
    color: #333;
    line-height: 1.6;
}

a { color: #1D7697; text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5, h6 { font-family: 'Lato', sans-serif; }
h1 { font-size: 1.75rem; font-weight: 700; }

/* ---- Navbar (tenant web — still used) ---- */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1e293b;
    color: #fff;
    padding: 0.75rem 1.5rem;
}
.navbar-brand { font-size: 1.2rem; font-weight: 700; letter-spacing: .02em; }
.navbar-brand small { font-size: .75rem; font-weight: 400; opacity: .7; margin-left: .4rem; }
.navbar-links { display: flex; gap: 1rem; align-items: center; }
.navbar-links a { color: #94a3b8; }
.navbar-links a:hover { color: #fff; text-decoration: none; }

/* ---- Container (tenant web) ---- */
.container { max-width: 1100px; margin: 2rem auto; padding: 0 1rem; }

/* ============================================================
   Admin shell — sidebar layout
   ============================================================ */
body.admin-shell {
    display: flex;
    min-height: 100vh;
    background: #f1f5f9;
}

/* Sidebar */
.admin-sidebar {
    width: 220px;
    flex-shrink: 0;
    background: #1e293b;
    color: #cbd5e1;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

/* ── Sidebar season picker ── */
.sidebar-season {
    padding: 1rem 1.25rem .75rem;
    border-bottom: 1px solid #334155;
}
.sidebar-season__label {
    display: block;
    font-size: .65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #64748b;
    margin-bottom: .35rem;
}
.sidebar-season__select {
    width: 100%;
    background: #0f172a;
    color: #f1f5f9;
    border: 1px solid #334155;
    border-radius: 6px;
    padding: .4rem .6rem;
    font-size: .8125rem;
    font-weight: 500;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .5rem center;
    padding-right: 1.75rem;
}
.sidebar-season__select:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 2px rgba(96,165,250,.25);
}
.sidebar-season__select option {
    background: #1e293b;
    color: #f1f5f9;
}

.admin-sidebar__nav {
    flex: 1;
    padding: .75rem 0;
}
.admin-sidebar__nav a {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .55rem 1.25rem;
    color: #94a3b8;
    font-size: .875rem;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: color .15s, background .15s, border-color .15s;
    text-decoration: none;
}
.admin-sidebar__nav a:hover {
    color: #f1f5f9;
    background: #334155;
    text-decoration: none;
}
.admin-sidebar__nav a.active {
    color: #f1f5f9;
    background: #1D7697;
    border-left-color: #60a5fa;
}

/* ── Sidebar nav group (collapsible Setup etc.) ── */
.nav-group {
    list-style: none;
}
.nav-group__toggle {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .55rem 1.25rem;
    color: #94a3b8;
    font-size: .875rem;
    font-weight: 500;
    border-left: 3px solid transparent;
    cursor: pointer;
    user-select: none;
    transition: color .15s, background .15s;
    list-style: none;
}
.nav-group__toggle::-webkit-details-marker { display: none; }
.nav-group__toggle::after {
    content: '›';
    margin-left: auto;
    font-size: 1rem;
    transition: transform .2s;
}
.nav-group[open] > .nav-group__toggle::after {
    transform: rotate(90deg);
}
.nav-group__toggle:hover {
    color: #f1f5f9;
    background: #334155;
}
.nav-group__items {
    overflow: hidden;
}
.nav-group__items a {
    padding-left: 2.5rem;
}

.admin-sidebar__footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid #334155;
    font-size: .8rem;
}
.sidebar-user {
    display: block;
    color: #64748b;
    margin-bottom: .5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.btn-sidebar-logout {
    background: none;
    border: 1px solid #475569;
    color: #94a3b8;
    border-radius: .375rem;
    padding: .3rem .75rem;
    font-size: .8rem;
    cursor: pointer;
    width: 100%;
    transition: background .15s, color .15s;
}
.btn-sidebar-logout:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: #fff;
}

/* Main content area */
.admin-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* Top navigation bar */
.admin-topbar {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
    flex-shrink: 0;
}
.topbar-logo {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    margin: 0 1rem;
    overflow: hidden;
}
.topbar-logo__img {
    height: 36px;
    max-height: 36px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
}
/* Club view badge in topbar */
.topbar-club-badge {
    display: inline-flex;
    align-items: center;
    padding: .2rem .55rem;
    border-radius: 9999px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    white-space: nowrap;
    background: #e2e8f0;
    color: #475569;
    margin-left: .5rem;
    flex-shrink: 0;
}
.topbar-club-badge--youth {
    background: #dbeafe;
    color: #1D7697;
}
.admin-topbar__actions {
    display: flex;
    align-items: center;
    gap: .25rem;
}
.topbar-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #475569;
    padding: .45rem;
    border-radius: .375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background .15s, color .15s;
    list-style: none;
    text-decoration: none;
}
.topbar-icon-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}
details.topbar-menu { position: relative; }
details.topbar-menu > summary { list-style: none; }
details.topbar-menu > summary::-webkit-details-marker { display: none; }
.topbar-menu__dropdown {
    position: absolute;
    top: calc(100% + .35rem);
    right: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: .5rem;
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
    min-width: 180px;
    z-index: 200;
    overflow: hidden;
}
.topbar-menu__dropdown a {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .65rem 1rem;
    color: #374151;
    text-decoration: none;
    font-size: .875rem;
    transition: background .15s;
}
.topbar-menu__dropdown a:hover { background: #f8fafc; }
.topbar-menu__divider { border: none; border-top: 1px solid #e2e8f0; margin: 0.25rem 0; }

.admin-content {
    flex: 1;
    padding: 2rem;
    max-width: 1400px;
    width: 100%;
}

/* ---- Page header ---- */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}
.page-header h2 { font-size: 1.5rem; }

/* ---- Card ---- */
.card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: .5rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 0;
}

/* ---- Buttons ---- */
.btn {
    display: inline-block;
    padding: .45rem 1rem;
    border-radius: .375rem;
    font-size: .875rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background .15s, opacity .15s;
}
.btn-primary  { background: #1D7697; color: #fff; border-color: #1D7697; }
.btn-primary:hover { background: #165f7b; }
.btn-secondary { background: #64748b; color: #fff; border-color: #64748b; }
.btn-secondary:hover { background: #475569; }
.btn-danger   { background: #ef4444; color: #fff; border-color: #ef4444; }
.btn-danger:hover { background: #dc2626; }
.btn-sm { padding: .25rem .65rem; font-size: .8rem; }
.btn-full { width: 100%; text-align: center; }
.btn-link {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: inherit;
    padding: 0;
}
.btn-link:hover { color: #fff; }

/* ---- Alerts ---- */
.alert {
    padding: .75rem 1rem;
    border-radius: .375rem;
    margin-bottom: 1rem;
    font-size: .9rem;
}
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-info    { background: #dbeafe; color: #0e4f67; border: 1px solid #bfdbfe; }

/* ---- Table ---- */
.table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: .5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,.07);
    margin-bottom: 1.5rem;
}
.table th, .table td {
    padding: .65rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    font-size: .875rem;
}
.table th { background: #f8fafc; font-weight: 600; color: #475569; }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: #f8fafc; }
.table td:last-child { text-align: right; white-space: nowrap; }

/* ---- Forms ---- */
.form-card { background: #fff; border: 1px solid #e2e8f0; border-radius: .5rem; padding: 1.5rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: .875rem; font-weight: 500; margin-bottom: .35rem; color: #374151; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: .5rem .75rem;
    border: 1px solid #d1d5db;
    border-radius: .375rem;
    font-size: .9rem;
    color: #111;
    background: #fff;
    transition: border-color .15s;
}
.form-group input:focus { outline: none; border-color: #1D7697; box-shadow: 0 0 0 3px rgba(29,118,151,.2); }
.form-group--sm { max-width: 120px; }
.form-row { display: grid; grid-template-columns: 1fr auto; gap: 1rem; }
.form-actions { margin-top: 1.25rem; display: flex; gap: .75rem; }
.form-inline { display: flex; gap: 1rem; align-items: flex-end; flex-wrap: wrap; }
.field-error { color: #dc2626; font-size: .8rem; margin-top: .2rem; display: block; }

fieldset { border: 1px solid #e2e8f0; border-radius: .375rem; padding: 1rem; margin-bottom: 1rem; }
legend { font-weight: 600; font-size: .875rem; color: #374151; padding: 0 .5rem; }

/* ---- Definition list ---- */
.definition-list { display: grid; grid-template-columns: 160px 1fr; gap: .4rem 1rem; font-size: .9rem; }
.definition-list dt { font-weight: 600; color: #475569; }

/* ---- Login page ---- */
body.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #1e293b;
}
.login-card {
    background: #fff;
    border-radius: .75rem;
    padding: 2rem;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 10px 30px rgba(0,0,0,.3);
}
.login-card h1 { text-align: center; font-size: 1.5rem; margin-bottom: 1.5rem; color: #1e293b; }
.login-card h1 span { color: #1D7697; }

/* ---- Error page ---- */
body.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}
.error-card { text-align: center; }
.error-card h1 { font-size: 5rem; color: #1D7697; }
.error-card p  { font-size: 1.1rem; color: #475569; margin: 1rem 0 2rem; }

/* ---- Hero ---- */
.hero { text-align: center; padding: 4rem 1rem; }
.hero h1 { font-size: 2rem; color: #1e293b; }
.hero p   { color: #64748b; margin-top: .5rem; }

/* ---- Utilities ---- */
.text-center { text-align: center; }
.text-muted  { color: #94a3b8; font-size: .875rem; }

/* ---- Role badges ---- */
.role-badge {
    display: inline-block;
    padding: .15rem .6rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
    margin-right: .25rem;
    background: #e2e8f0;
    color: #475569;
}
.role-admin    { background: #fee2e2; color: #991b1b; }
.role-manager  { background: #fef3c7; color: #92400e; }
.role-coach    { background: #d1fae5; color: #065f46; }
.role-player   { background: #dbeafe; color: #0e4f67; }
.role-guardian { background: #ede9fe; color: #5b21b6; }
.role-staff    { background: #e0f2fe; color: #075985; }
.role-social   { background: #f3f4f6; color: #374151; }

/* ============================================================
   Mobile sidebar — hamburger / slide-in drawer
   ============================================================ */

/* Hamburger button — hidden on desktop */
.topbar-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: #475569;
    padding: .45rem;
    border-radius: .375rem;
    align-items: center;
    justify-content: center;
    margin-right: auto; /* push actions to the right */
    transition: background .15s, color .15s;
}
.topbar-hamburger:hover {
    background: #f1f5f9;
    color: #0f172a;
}

/* Backdrop overlay */
.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 299;
}
.sidebar-backdrop.is-visible {
    display: block;
}

@media (max-width: 767px) {
    /* Show the hamburger */
    .topbar-hamburger { display: flex; }

    /* Sidebar becomes a fixed off-canvas drawer */
    .admin-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        z-index: 300;
        transform: translateX(-100%);
        transition: transform .25s ease;
        box-shadow: 4px 0 24px rgba(0,0,0,.25);
    }
    .admin-sidebar.is-open {
        transform: translateX(0);
    }

    /* Main area fills full width on mobile */
    body.admin-shell {
        flex-direction: column;
    }
    .admin-main {
        width: 100%;
    }

    /* Tighten topbar on mobile */
    .admin-topbar {
        padding: 0 1rem;
        justify-content: flex-start;
    }
}

/* ---- Alert ---- */
.alert-success {
    background: #d1fae5;
    color: #065f46;
    padding: .75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

/* ---- Field error ---- */
.field-error { color: #dc2626; font-size: .8rem; display: block; margin-top: .2rem; }

/* ---- Btn link ---- */
.btn-link {
    background: none;
    border: none;
    color: #1D7697;
    cursor: pointer;
    text-decoration: underline;
    font-size: inherit;
    padding: 0;
}

/* ---- Table ---- */
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; padding: .6rem .75rem; border-bottom: 2px solid #e2e8f0; color: #64748b; font-weight: 600; }
.table td { padding: .6rem .75rem; border-bottom: 1px solid #f1f5f9; }
.table tr:last-child td { border-bottom: none; }

/* ---- btn sizes ---- */
.btn-sm { padding: .3rem .75rem; font-size: .8rem; }

/* ---- Badges ---- */
/* ── Checkboxes ─────────────────────────────────────────────── */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .9rem;
    color: #1e293b;
    cursor: pointer;
    user-select: none;
}
.checkbox-label input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: #165f7b;
    cursor: pointer;
    flex-shrink: 0;
}
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: .6rem 1.2rem;
    margin-top: .5rem;
}
/* Multi-select dropdown */
select.multi-select {
    width: 100%;
    min-height: 120px;
    max-height: 200px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: .25rem;
    background: #fff;
    font-size: .9rem;
    color: #1e293b;
}
select.multi-select option {
    padding: .4rem .6rem;
    border-radius: 4px;
    cursor: pointer;
}
select.multi-select option:checked {
    background: #165f7b;
    color: #fff;
}
select.multi-select:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96,165,250,.2);
}
.subs-freq-grid {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    margin-top: .5rem;
}
.subs-freq-grid .checkbox-label strong {
    color: #165f7b;
    min-width: 4rem;
    display: inline-block;
}

/* ── Contact cards (roster page) ─────────────────────────────── */
.contact-card {
    padding: .6rem 0;
    border-bottom: 1px solid #f1f5f9;
}
.contact-card:last-child { border-bottom: none; }
.contact-card a { color: #165f7b; text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }

/* ── Info icon tooltip ───────────────────────────────────────── */
.info-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: .3rem;
    color: #94a3b8;
    cursor: default;
    font-size: .85rem;
    vertical-align: middle;
}
.info-icon:hover { color: #165f7b; }
.info-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: #f1f5f9;
    font-size: .75rem;
    font-weight: 400;
    line-height: 1.4;
    padding: .4rem .65rem;
    border-radius: 6px;
    white-space: nowrap;
    max-width: 260px;
    white-space: normal;
    pointer-events: none;
    opacity: 0;
    transition: opacity .15s;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.info-icon:hover::after { opacity: 1; }

/* ── Badges ─────────────────────────────────────────────────── */
.badge { display: inline-block; padding: .2rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 600; }
.badge--success { background: #16a34a; color: #fff; }
.badge--neutral { background: #64748b; color: #fff; }
.badge--info    { background: #165f7b; color: #fff; }
.badge--warning { background: #d97706; color: #fff; }

/* Two-column form layout */
.form-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 1.5rem;
    align-items: start;
}
.form-layout__main { display: flex; flex-direction: column; gap: 0.75rem; }
.form-layout__side { display: flex; flex-direction: column; gap: 0.75rem; }
@media (max-width: 900px) {
    .form-layout { grid-template-columns: 1fr; }
}
.card__title {
    font-size: .9rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid #e5e7eb;
}
.setting-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.setting-item {
    display: flex;
    flex-direction: column;
    gap: .25rem;
}
.setting-item label.checkbox-label {
    font-weight: 500;
    font-size: .9rem;
}
.setting-item .form-hint { margin-top: 0; }

/* ---- Form Tabs ---- */
.form-tabs {
    margin-bottom: 1.5rem;
}
.form-tabs__nav {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    background: none;
    border: none;
    padding: 0;
    margin-bottom: 1rem;
}
.form-tabs__nav .nav-link {
    border-radius: 8px !important;
    font-size: .875rem !important;
    padding: .55rem 1.3rem !important;
    font-weight: 500 !important;
    color: #374151 !important;
    background: #fff !important;
    border: 1px solid #d1d5db !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04) !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    transition: background .15s, color .15s, box-shadow .15s, border-color .15s;
    white-space: nowrap;
}
.form-tabs__nav .nav-link:hover {
    background: #f8fafc !important;
    border-color: #93c5fd !important;
    color: #1d4ed8 !important;
    box-shadow: 0 2px 6px rgba(59,113,202,.15) !important;
}
.form-tabs__nav .nav-link.active {
    color: #fff !important;
    background: #3b71ca !important;
    border-color: #2d5fb5 !important;
    box-shadow: 0 3px 8px rgba(59,113,202,.35), 0 1px 3px rgba(59,113,202,.2) !important;
    font-weight: 600 !important;
}
.form-tabs__body {
    padding: 0;
    background: transparent;
    margin-bottom: 1.5rem;
}
.form-tabs__body .card {
    box-shadow: none;
    border: 1px solid #e2e8f0;
}

/* ======================================================================
   MOBILE / RESPONSIVE
   ====================================================================== */

/* ---- Public navbar hamburger ---- */
.navbar-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

@media (max-width: 767px) {
    .dashboard-grid {
        grid-template-columns: 1fr !important;
    }
    .dashboard-grid__right {
        order: -1;
    }

    .navbar {
        flex-wrap: wrap;
        gap: 0;
    }
    .navbar-toggle {
        display: block;
    }
    .navbar-links {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        width: 100%;
        padding: .5rem 0 .75rem;
        border-top: 1px solid rgba(255,255,255,.1);
        margin-top: .5rem;
    }
    .navbar-links a,
    .navbar-links span,
    .navbar-links form {
        width: 100%;
        padding: .5rem 0;
        border-bottom: 1px solid rgba(255,255,255,.07);
    }
    .navbar-links form { border-bottom: none; }
    .navbar-links.is-open {
        display: flex;
    }
}

/* ---- Responsive tables → cards on mobile ----
   Usage: add class "table-cards" to <table>
   Add data-label="Column Name" to each <td>
   ---- */
@media (max-width: 767px) {
    .table-cards thead {
        display: none;
    }
    .table-cards tbody tr {
        display: block;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 1px 4px rgba(0,0,0,.08);
        margin-bottom: 1rem;
        padding: .75rem 1rem;
        border: 1px solid #e2e8f0;
    }
    .table-cards td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: .75rem;
        padding: .35rem 0;
        border: none;
        font-size: .875rem;
    }
    .table-cards td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #64748b;
        font-size: .75rem;
        text-transform: uppercase;
        letter-spacing: .04em;
        flex-shrink: 0;
        min-width: 90px;
        padding-top: .1rem;
    }
    /* First data cell (name) — styled as card header with tinted background */
    .table-cards td:first-child {
        font-weight: 700;
        font-size: .95rem;
        color: #fff;
        background: #1D7697;
        margin: -.75rem -1rem .5rem;
        padding: .6rem 1rem;
        border-bottom: 1px solid #165f7b;
        border-radius: 8px 8px 0 0;
    }
    .table-cards td:first-child::before {
        display: none;
    }
    .table-cards td:first-child:hover {
        background: #1D7697;
        color: #fff;
    }
    /* Action cell — buttons sit below the card data */
    .table-cards td:last-child {
        justify-content: flex-end;
        padding-top: .5rem;
        margin-top: .25rem;
        border-top: 1px solid #f1f5f9;
        gap: .5rem;
        flex-wrap: wrap;
    }
    .table-cards td:last-child::before {
        display: none;
    }
    /* Empty row */
    .table-cards tr.table-empty td {
        display: block;
        text-align: center;
        box-shadow: none;
        border: none;
    }
}
