/***********************************************************************************
    Variables
***********************************************************************************/

:root
{
    --accent: rgb(37 99 235);
    --accent-glow: rgb(37 99 235 / 0.15);
    --accent-light: rgb(59 130 246);
    --bg-card: rgb(26 45 80);
    --bg-dark: rgb(15 31 61);
    --bg-deep: rgb(10 22 40);
    --bg-panel: rgb(21 35 64);
    --border: rgb(30 58 95);
    --danger: rgb(239 68 68);
    --success: rgb(16 185 129);
    --text: rgb(226 232 240);
    --text-dim: rgb(148 163 184);
    --text-muted: rgb(100 116 139);
    --warning: rgb(245 158 11);

    /* Projects-row colour code. Deliberately literal, not derived from --accent: --accent is
       redefined by each of the eight themes, and a colour code whose colours change meaning
       with the theme is not a code. These four stay put. */

    --brown: rgb(201 138 75);
    --btn-blue: rgb(96 165 250);
    --navy: rgb(30 58 138);
    --tiffany: rgb(10 186 181);

    /* Aliases for tokens that pages across this application read without defining. A var() on
       an undefined property is invalid at computed-value time: the declaration still wins the
       cascade and then computes to `unset`, so the surface paints nothing and the rule it
       overrode never applies either. Defined as aliases so they track the theme. --bg-hover is
       deliberately absent: its readers fall back to a neutral grey on the project-category
       header bands, and an --accent-glow alias would turn those blue. */

    --bg-secondary: var(--bg-panel);
    --border-light: var(--border);
    --hover: var(--accent-glow);
    --surface: var(--bg-card);
    --table-head: var(--bg-deep);
}

/***********************************************************************************
    General
***********************************************************************************/

*,
*::before,
*::after
{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html,
body
{
    background: var(--bg-deep);
    color: var(--text);
    font-family: sans-serif;
    font-size: 12px;
    height: 100%;
}

/***********************************************************************************
    Layout
***********************************************************************************/

/* height:100vh alone leaves a (1-zoom)*100vh gap under this app's zoom widget (theme.js) once
   zoom < 100% - the --fmc-zoom-inv compensation it sets is required here, not optional, since
   .app-layout is the shell every SiteAdmin/SysAdmin/SiteUser page is built on. */
.app-layout
{
    display: flex;
    height: calc(100vh * var(--fmc-zoom-inv, 1));
    overflow: hidden;
}

/***********************************************************************************
    Sidebar
***********************************************************************************/

.sidebar
{
    background: var(--bg-dark);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    min-width: 240px;
    padding: 0;
    transition: transform 0.25s ease;
    width: 240px;
}
.sidebar-brand
{
    align-items: center;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 12px;
    padding: 20px 16px;
}
.sidebar-close
{
    background: none;
    border: none;
    border-radius: 6px;
    color: var(--text-dim);
    cursor: pointer;
    display: none;
    font-size: 20px;
    line-height: 1;
    margin-left: auto;
    padding: 4px 8px;
}
.sidebar-close:hover
{
    background: var(--accent-glow);
    color: rgb(255 255 255);
}
/* Hamburger toggle — hidden on desktop, shown at/below tablet breakpoint */
.sidebar-toggle
{
    background: none;
    border: none;
    border-radius: 8px;
    color: var(--text);
    cursor: pointer;
    display: none;
    flex-shrink: 0;
    font-size: 20px;
    line-height: 1;
    margin-right: 8px;
    padding: 6px 10px;
}
.sidebar-toggle:hover
{
    background: var(--accent-glow);
}
/* Backdrop shown behind an open off-canvas sidebar on tablet/phone */
.sidebar-backdrop
{
    background: rgb(0 0 0 / 0.5);
    display: none;
    inset: 0;
    position: fixed;
    z-index: 1000;
}
.sidebar-backdrop.show
{
    display: block;
}
.logo-sm
{
    font-size: 28px;
    line-height: 1;
}
.brand-name
{
    color: var(--accent-light);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.brand-sub
{
    color: var(--text-muted);
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.sidebar-nav
{
    flex: 1;
    overflow-y: auto;
    padding: 16px 8px;
}
.nav-section
{
    margin-bottom: 24px;
}
.nav-section-title
{
    color: var(--text-muted);
    font-size: 10px;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
    padding: 0 8px;
    text-transform: uppercase;
}
.nav-item
{
    align-items: center;
    border-radius: 8px;
    color: var(--text-dim);
    cursor: pointer;
    display: flex;
    gap: 10px;
    margin-bottom: 2px;
    padding: 9px 12px;
    transition: all 0.15s;
}
.nav-item:hover
{
    background: var(--accent-glow);
    color: var(--text);
}
.nav-item.active
{
    background: var(--accent);
    color: rgb(255 255 255);
}
.nav-item .icon
{
    font-size: 16px;
    text-align: center;
    width: 20px;
}
.sidebar-footer
{
    border-top: 1px solid var(--border);
    padding: 12px 8px;
}
.user-info
{
    align-items: center;
    display: flex;
    gap: 10px;
    margin-bottom: 4px;
    padding: 8px 12px;
}
.user-avatar
{
    align-items: center;
    background: var(--accent);
    border-radius: 50%;
    color: rgb(255 255 255);
    display: flex;
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 700;
    height: 32px;
    justify-content: center;
    width: 32px;
}
.user-name
{
    font-size: 13px;
    font-weight: 600;
}
.user-role
{
    color: var(--text-muted);
    font-size: 11px;
}

/***********************************************************************************
    Main Content
***********************************************************************************/

.main-content
{
    display: flex;
    flex: 1;
    flex-direction: column;
    overflow: hidden;
}
.topbar
{
    align-items: center;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-shrink: 0;
    height: 56px;
    justify-content: space-between;
    padding: 0 24px;
}
.topbar-title
{
    font-size: 18px;
    font-weight: 600;
}
.topbar-actions
{
    display: flex;
    gap: 8px;
}
.page-body
{
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

/***********************************************************************************
    Cards
***********************************************************************************/

.card
{
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
}
.card-header
{
    align-items: center;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    padding: 16px 20px;
}
.card-title
{
    font-size: 15px;
    font-weight: 600;
}
.card-body
{
    padding: 20px;
}

/***********************************************************************************
    Stats
***********************************************************************************/

.stats-grid
{
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    margin-bottom: 20px;
}
.stat-card
{
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
}
.stat-label
{
    color: var(--text-muted);
    font-size: 12px;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    text-transform: uppercase;
}
.stat-value
{
    color: var(--accent-light);
    font-size: 32px;
    font-weight: 700;
}

/***********************************************************************************
    Tables
***********************************************************************************/

.table-wrap
{
    overflow-x: auto;
}
table
{
    border-collapse: collapse;
    width: 100%;
}
th
{
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 11px;
    letter-spacing: 0.5px;
    padding: 10px 12px;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}
td
{
    border-bottom: 1px solid rgb(30 58 95 / 0.5);
    padding: 12px 12px;
    vertical-align: middle;
}
tr:last-child td
{
    border-bottom: none;
}
tr:hover td
{
    background: rgb(37 99 235 / 0.05);
}

/***********************************************************************************
    Buttons
***********************************************************************************/

.btn
{
    align-items: center;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    font-size: 13px;
    font-weight: 500;
    gap: 6px;
    padding: 9px 16px;
    text-decoration: none;
    transition: all 0.15s;
}
.btn:disabled
{
    cursor: not-allowed;
    opacity: 0.5;
}
.btn-primary
{
    background: var(--accent);
    color: rgb(255 255 255);
}
.btn-primary:hover
{
    background: var(--accent-light);
}
.btn-secondary
{
    background: var(--bg-panel);
    border: 1px solid var(--border);
    color: var(--text);
}
.btn-secondary:hover
{
    background: var(--border);
}
.btn-danger
{
    background: rgb(239 68 68 / 0.15);
    border: 1px solid rgb(239 68 68 / 0.3);
    color: var(--danger);
}
.btn-danger:hover
{
    background: rgb(239 68 68 / 0.25);
}
/* The Projects row colour code (see :root). The three action variants copy .btn-danger’s
   shape - tinted ground, coloured ink, matching border - so the red Delete button reads as
   one of the four rather than the odd one out, and so the colour lands on the label and icon.
   .btn-navy is a solid fill instead, because the module buttons are the row’s primary action
   and should carry the most weight. */
.btn-navy
{
    background: var(--navy);
    border: 1px solid var(--navy);
    color: rgb(255 255 255);
}
.btn-navy:hover
{
    background: rgb(43 79 176);
    border-color: rgb(43 79 176);
}
/* A <select> that reads as a single icon BUTTON, not a dropdown. The Projects row menu has to
   stay a native <select> - .table-wrap is overflow-x:auto, which forces the other axis to auto
   too, so a custom popup panel would be CLIPPED for the lower rows of a long table - but it
   must read as a button. appearance:none drops the native arrow so only the icon shows; the
   browser still draws the popup itself, unclipped. text-align-last is what actually centres the
   closed-state label of a select; plain text-align does not.
   Selector is .btn.sel-btn, not .sel-btn: .btn-sm is declared BELOW this rule at the same
   specificity, so a bare .sel-btn would lose its padding back to .btn-sm and the icon would
   not fit the 34px width. */
.btn.sel-btn
{
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    display: inline-block;
    font-family: inherit;
    line-height: 1.35;
    padding: 5px 0;
    text-align: center;
    text-align-last: center;
    width: 34px;
}
.btn.sel-btn::-ms-expand
{
    display: none;
}
.btn-tiffany
{
    background: rgb(10 186 181 / 0.15);
    border: 1px solid rgb(10 186 181 / 0.35);
    color: var(--tiffany);
}
.btn-tiffany:hover
{
    background: rgb(10 186 181 / 0.25);
}
.btn-brown
{
    background: rgb(201 138 75 / 0.15);
    border: 1px solid rgb(201 138 75 / 0.35);
    color: var(--brown);
}
.btn-brown:hover
{
    background: rgb(201 138 75 / 0.25);
}
.btn-blue
{
    background: rgb(96 165 250 / 0.15);
    border: 1px solid rgb(96 165 250 / 0.35);
    color: var(--btn-blue);
}
.btn-blue:hover
{
    background: rgb(96 165 250 / 0.25);
}
.btn-sm
{
    border-radius: 6px;
    font-size: 12px;
    padding: 5px 10px;
}
.btn-block
{
    justify-content: center;
    width: 100%;
}

/***********************************************************************************
    Forms
***********************************************************************************/

.form-group
{
    margin-bottom: 16px;
}
.form-group label
{
    color: var(--text-muted);
    display: block;
    font-size: 11px;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    text-transform: uppercase;
}
.form-group input,
.form-group select,
.form-group textarea
{
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 12px;
    outline: none;
    padding: 10px 14px;
    transition: border-color 0.15s;
    width: 100%;
}
.form-group input:focus,
.form-group select:focus
{
    border-color: var(--accent);
}
/* A checkbox is not a text field. The rule above is `width: 100%`, which stretches a checkbox or
   a radio across the whole field; whether that LOOKS broken then depends on its label. A
   `display:flex` label forgives it (the box shrinks beside its text, merely wider than it should
   be) and a `display:block` one does not - the box takes a line of its own and the label's text
   wraps underneath it.

   Scoped to the two containers that cause it rather than written as a bare
   `input[type="checkbox"]`, so it cannot reach checkboxes elsewhere in this tree.

   The specificity is load-bearing, not incidental: this is 0-2-1 against the 0-1-1 of the rules
   it corrects. That matters because `project-access.html` and `visiting-groups.html` each
   redeclare `.form-group input { width: 100% }` in their OWN inline <style>, which loads after
   every stylesheet - source order would lose there, and specificity does not. It also has to
   live in THIS file rather than tzuchi-module.css, because sysadmin/dashboard.html loads only this
   one, and being 0-2-1 means it still beats tzuchi-module.css’s own `.form-row input` despite
   loading first.

   `width` only, deliberately. The padding and margin from those rules are harmless on a checkbox,
   and resetting them would shift controls that look fine today - a wider change than the
   defect. */
.form-group input[type="checkbox"],
.form-group input[type="radio"],
.form-row input[type="checkbox"],
.form-row input[type="radio"]
{
    width: auto;
}
.form-group input::placeholder
{
    color: var(--text-muted);
}
/* Global .inp / .sel — toolbar inputs & selects used across all admin pages */
.inp,
.sel
{
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    cursor: pointer;
    outline: none;
}
.inp:focus,
.sel:focus
{
    border-color: var(--accent);
}
/* Force dropdown options to follow the active colour scheme */
.sel option,
.form-group select option,
select option
{
    background: var(--bg-dark);
    color: var(--text);
}

/***********************************************************************************
    Search
***********************************************************************************/

.search-bar
{
    margin-bottom: 16px;
}
.search-bar input
{
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 12px;
    max-width: 360px;
    outline: none;
    padding: 9px 14px;
    width: 100%;
}
.search-bar input:focus
{
    border-color: var(--accent);
}

/***********************************************************************************
    Badges
***********************************************************************************/

.badge
{
    border-radius: 4px;
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 3px 8px;
}
.badge-green
{
    background: rgb(16 185 129 / 0.15);
    border: 1px solid rgb(16 185 129 / 0.3);
    color: rgb(16 185 129);
}
.badge-red
{
    background: rgb(239 68 68 / 0.15);
    border: 1px solid rgb(239 68 68 / 0.3);
    color: rgb(239 68 68);
}
.badge-blue
{
    background: rgb(59 130 246 / 0.15);
    border: 1px solid rgb(59 130 246 / 0.3);
    color: rgb(59 130 246);
}
.badge-yellow
{
    background: rgb(245 158 11 / 0.15);
    border: 1px solid rgb(245 158 11 / 0.3);
    color: rgb(245 158 11);
}
/* Distinct from badge-blue (used for volunteerType=COLLECTOR etc.) - a genuinely dark navy
   blue for colour-coding gender (male dark blue, female badge-red) without visually colliding
   with other blue badges on the same row. */
.badge-navy
{
    background: rgb(30 58 138 / 0.15);
    border: 1px solid rgb(30 58 138 / 0.35);
    color: rgb(59 91 219);
}

/***********************************************************************************
    Alerts
***********************************************************************************/

.alert
{
    border-radius: 8px;
    display: none;
    font-size: 13px;
    margin-bottom: 12px;
    padding: 10px 14px;
}
.alert.show
{
    display: block;
}
.alert-error
{
    background: rgb(239 68 68 / 0.1);
    border: 1px solid rgb(239 68 68 / 0.3);
    color: rgb(239 68 68);
}
.alert-success
{
    background: rgb(16 185 129 / 0.1);
    border: 1px solid rgb(16 185 129 / 0.3);
    color: rgb(16 185 129);
}

/***********************************************************************************
    Modal
***********************************************************************************/

.modal-overlay
{
    align-items: center;
    background: rgb(0 0 0 / 0.7);
    display: none;
    inset: 0;
    justify-content: center;
    position: fixed;
    z-index: 1000;
}
.modal-overlay.open
{
    display: flex;
}
.modal-overlay.active
{
    display: flex;
}
.modal
{
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    max-height: calc(90vh * var(--fmc-zoom-inv, 1));
    max-width: 480px;
    overflow-y: auto;
    padding: 28px;
    width: 100%;
}
.modal-title
{
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

/***********************************************************************************
    Login Page
***********************************************************************************/

.login-page
{
    align-items: center;
    background: var(--bg-deep);
    display: flex;
    justify-content: center;
    min-height: calc(100vh * var(--fmc-zoom-inv, 1));
    padding: 20px;
}
.login-card
{
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    max-width: 400px;
    padding: 40px;
    width: 100%;
}
.login-logo
{
    font-size: 48px;
    margin-bottom: 12px;
    text-align: center;
}
.login-title
{
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
    text-align: center;
}
.login-sub
{
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 28px;
    text-align: center;
}

/***********************************************************************************
    Language Switcher
***********************************************************************************/

.lang-switcher
{
    display: flex;
    gap: 4px;
    padding: 4px 0;
}
.lang-btn
{
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
}
.lang-btn.active,
.lang-btn:hover
{
    background: var(--accent);
    border-color: var(--accent);
    color: rgb(255 255 255);
}

/***********************************************************************************
    Miscellaneous
***********************************************************************************/

code
{
    background: rgb(37 99 235 / 0.1);
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
    padding: 2px 6px;
}
a
{
    color: var(--accent-light);
    text-decoration: none;
}
a:hover
{
    text-decoration: underline;
}

/***********************************************************************************
    Light Theme Overrides (applied when .theme-light is on <html>)
***********************************************************************************/

.theme-light body
{
    background: var(--bg-deep);
    color: var(--text);
}
.theme-light .sidebar
{
    background: var(--bg-sidebar);
    color: rgb(226 232 240);
}
.theme-light .sidebar .nav-item
{
    color: rgb(203 213 225);
}
.theme-light .sidebar .nav-item:hover,
.theme-light .sidebar .nav-item.active
{
    background: rgb(255 255 255 / 0.12);
    color: rgb(255 255 255);
}
.theme-light .sidebar .brand-name,
.theme-light .sidebar .user-name
{
    color: rgb(241 245 249);
}
.theme-light .sidebar .brand-sub,
.theme-light .sidebar .user-role,
.theme-light .sidebar .nav-section-title
{
    color: rgb(148 163 184);
}
.theme-light .topbar
{
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border);
}
.theme-light .card
{
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: 0 1px 4px rgb(0 0 0 / 0.08);
}
.theme-light .card-header
{
    border-bottom: 1px solid var(--border);
}
.theme-light .inp,
.theme-light .sel
{
    background: var(--bg-deep);
    border-color: var(--border);
    color: var(--text);
}
.theme-light .inp:focus,
.theme-light .sel:focus
{
    border-color: var(--accent);
}
.theme-light table thead th
{
    background: var(--bg-deep);
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
}
.theme-light table tbody tr:hover
{
    background: rgb(0 0 0 / 0.03);
}
.theme-light .modal
{
    background: var(--bg-card);
    border-color: var(--border);
    box-shadow: 0 8px 32px rgb(0 0 0 / 0.12);
}
.theme-light .modal-overlay
{
    background: rgb(0 0 0 / 0.4);
}
.theme-light .stat-card
{
    background: var(--bg-deep);
    border: 1px solid var(--border);
}
.theme-light .stat-card .stat-value
{
    color: var(--accent);
}
.theme-light .btn-secondary
{
    background: var(--bg-deep);
    border: 1px solid var(--border);
    color: var(--text);
}
.theme-light .btn-secondary:hover
{
    background: var(--border);
}
.theme-light .btn-tiffany
{
    background: rgb(13 148 136 / 0.12);
    border-color: rgb(13 148 136 / 0.30);
    color: rgb(15 118 110);
}
.theme-light .btn-tiffany:hover
{
    background: rgb(13 148 136 / 0.20);
}
.theme-light .btn-brown
{
    background: rgb(146 64 14 / 0.12);
    border-color: rgb(146 64 14 / 0.30);
    color: rgb(146 64 14);
}
.theme-light .btn-brown:hover
{
    background: rgb(146 64 14 / 0.20);
}
.theme-light .btn-blue
{
    background: rgb(37 99 235 / 0.12);
    border-color: rgb(37 99 235 / 0.30);
    color: rgb(30 64 175);
}
.theme-light .btn-blue:hover
{
    background: rgb(37 99 235 / 0.20);
}
.theme-light code
{
    background: var(--bg-deep);
    color: var(--accent);
}
.theme-light .badge-green
{
    background: rgb(5 150 105 / 0.12);
    color: rgb(6 95 70);
}
.theme-light .badge-red
{
    background: rgb(220 38 38 / 0.12);
    color: rgb(153 27 27);
}
.theme-light .badge-blue
{
    background: rgb(37 99 235 / 0.12);
    color: rgb(30 64 175);
}
.theme-light .badge-navy
{
    background: rgb(30 58 138 / 0.12);
    color: rgb(30 58 138);
}

/***********************************************************************************
    Responsive: Tablet and Phone
***********************************************************************************/

/* Sidebar becomes an off-canvas drawer below 900px (tablet portrait / phone).
   It slides in over the content instead of squeezing it. */
@media (max-width: 900px)
{
    .sidebar-toggle
    {
        align-items: center;
        display: inline-flex;
        justify-content: center;
    }
    .sidebar-close
    {
        display: inline-block;
    }
    .sidebar
    {
        bottom: 0;
        box-shadow: 4px 0 24px rgb(0 0 0 / 0.35);
        left: 0;
        min-width: 260px;
        position: fixed;
        top: 0;
        transform: translateX(-100%);
        width: 260px;
        z-index: 1001;
    }
    .sidebar.open
    {
        transform: translateX(0);
    }
    .app-layout
    {
        position: relative;
    }
    .main-content
    {
        min-width: 0;
        width: 100%;
    }
    .topbar
    {
        padding: 0 12px;
    }
    .topbar-title
    {
        font-size: 16px;
    }
    .page-body
    {
        padding: 16px;
    }
    .stats-grid
    {
        gap: 12px;
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    .modal
    {
        max-width: calc(100vw - 32px);
        padding: 20px;
    }
}

/***********************************************************************************
    Responsive: Phone
***********************************************************************************/

@media (max-width: 480px)
{
    .topbar
    {
        flex-wrap: wrap;
        gap: 8px;
        height: auto;
        min-height: 56px;
        padding: 8px 12px;
    }
    .topbar-actions,
    .topbar-right
    {
        flex-wrap: wrap;
        width: 100%;
    }
    .page-body
    {
        padding: 12px;
    }
    .card-body
    {
        padding: 14px;
    }
    .stats-grid
    {
        gap: 10px;
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
    .stat-value
    {
        font-size: 24px;
    }
    .modal
    {
        border-radius: 12px;
        padding: 16px;
    }
    .search-bar input
    {
        max-width: 100%;
    }
    table
    {
        font-size: 12px;
    }
    th,
    td
    {
        padding: 8px 8px;
    }
}

/***********************************************************************************
    Defaults Shared with the Public and SiteUser Pages
***********************************************************************************/

/* Declared here so that those pages and the SiteAdmin surface pick up the same value.
   
   Deliberately NOT included: .table-wrap { border-radius:10px; border:1px solid var(--border) },
   which the report pages declare. admin-dashboard.html uses .table-wrap INSIDE cards, so a
   border there would be a second border around the same table. That one is a shared name for
   two different things and needs a variant class, not a system default. */
.modal
{
    box-shadow: 0 20px 60px rgb(0 0 0 / 0.5);
}
.stat-label
{
    font-weight: 500;
}
.topbar
{
    gap: 12px;
}

/***********************************************************************************
    Shared Pager
***********************************************************************************/

/* Shared pager (public/js/pager.js#mountPager). mountPager is used on pages that have no pager
   rules of their own, so the control it renders brings its own styling instead of depending on
   where it is mounted. */
.fmc-pager
{
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    font-size: 12px;
    gap: 6px;
    margin: 8px 0;
}
.fmc-pager .pg-info
{
    color: var(--text-muted);
}
.fmc-pager button.pg-num
{
    background: var(--card-bg, rgb(255 255 255));
    border: 1px solid var(--border);
    border-radius: 4px;
    color: inherit;
    cursor: pointer;
    font-size: 12px;
    min-width: 30px;
    padding: 4px 8px;
    text-align: center;
}
.fmc-pager button.pg-num.active
{
    background: var(--accent);
    border-color: var(--accent);
    color: rgb(255 255 255);
    font-weight: 600;
}
.fmc-pager .pg-gap
{
    color: var(--text-muted);
    padding: 0 2px;
}
.fmc-pager .pg-size
{
    color: var(--text-muted);
    margin-left: auto;
}
.fmc-pager .pg-size select
{
    font-size: 12px;
    padding: 2px 4px;
    width: 72px;
}
