/* ============================================================
   Commissioner maintenance pages — shared look & feel
   Loaded globally from _Layout.cshtml (after site.css).
   Every NflWeeks / NflMatchups / NflTeams / Pools admin page
   pulls from these classes so the section stays consistent.
   Palette matches the site: panel #181818, accent gold #F3C080.
   ============================================================ */

/* --- Unified dark panel ------------------------------------
   Replaces the bare `border border-white` boxes. Mirrors the
   site's repeated card pattern (contact-form / rules-bg /
   login-bg) but with a softer border so admin tables read
   as a panel, not a wireframe. */
.maint-panel {
    background: #181818;
    border: 1px solid #353535;
    border-radius: 12px;
    color: #fff;
    padding: 1.25rem 1.25rem 0.75rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

/* --- Page header (title block) ----------------------------- */
.maint-header {
    text-align: center;
    margin-bottom: 1.25rem;
}

/* Small grey "pill" eyebrow — reuses the week-result look */
.maint-eyebrow {
    display: inline-block;
    background: #616161;
    color: #fff;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.2rem 0.95rem;
    border-radius: 15px;
    margin-bottom: 0.65rem;
}

.maint-title {
    color: #F3C080;
    font-weight: 700;
    font-size: 1.6rem;
    margin: 0;
}

/* Gold underline accent centered under the title */
.maint-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: #F3C080;
    border-radius: 2px;
    margin: 0.5rem auto 0;
}

/* Destructive pages (Delete / Delete All) flip the accent red */
.maint-title.maint-danger {
    color: #ff6b6b;
}

.maint-title.maint-danger::after {
    background: #ff6b6b;
}

.maint-subtitle {
    color: #adb5bd;
    margin: 0.4rem 0 0;
    font-size: 0.95rem;
}

/* --- Toolbar (filters / bulk actions above a table) -------- */
.maint-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

/* keep a single control group tidy on small screens */
.maint-toolbar .maint-toolbar-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

/* --- Tables ------------------------------------------------ */
.maint-table {
    margin-bottom: 0;
}

.maint-table thead th {
    color: #F3C080;
    border-bottom: 2px solid #353535;
    text-transform: uppercase;
    font-size: 0.76rem;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.maint-table tbody td,
.maint-table tbody th {
    vertical-align: middle;
}

/* subtle gold-tinted hover so the active row is obvious */
.maint-table.table-hover tbody tr:hover > * {
    background-color: rgba(243, 192, 128, 0.08);
}

/* row action buttons sit together, right-aligned */
.maint-actions {
    white-space: nowrap;
}

.maint-actions .btn + .btn {
    margin-left: 0.2rem;
}

/* --- Empty state ------------------------------------------- */
.maint-empty {
    text-align: center;
    color: #adb5bd;
    padding: 2.25rem 1rem;
}

.maint-empty i {
    display: block;
    font-size: 1.9rem;
    color: #616161;
    margin-bottom: 0.6rem;
}

/* --- Forms (Edit pages) ------------------------------------ */
.maint-form .form-label {
    color: #adb5bd;
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
}

/* note / helper text under a form */
.maint-note {
    color: #adb5bd;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* footer action row (Cancel / Update / Delete) */
.maint-form-actions {
    text-align: center;
    margin: 1.25rem 0 0.5rem;
}
