/* Nexgen Meet application styles. Hand-written, no build step. Mobile first. */
:root {
    --navy: #1a1a2e;
    --navy-soft: #2a2a44;
    --gold: #c9a227;
    --gold-dark: #a8861c;
    --bg: #f5f5f7;
    --card: #ffffff;
    --text: #23232f;
    --muted: #5c5c6b;
    --line: #e2e2e8;
    --alert-bg: #fdf0ef;
    --alert-text: #8a1f17;
    --notice-bg: #fbf6e6;
    --radius: 10px;
    --gutter: 16px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a { color: var(--navy); text-decoration-color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold-dark); }

h1, h2, h3 { color: var(--navy); line-height: 1.25; margin: 0 0 12px; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.2rem; margin-top: 28px; }
h3 { font-size: 1rem; }
p { margin: 0 0 12px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 8px; background: var(--card); padding: 8px 12px; z-index: 10; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 var(--gutter); }

.site-header { background: var(--navy); color: #fff; border-bottom: 3px solid var(--gold); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { color: #fff; text-decoration: none; display: flex; flex-direction: column; }
.brand:hover { color: #fff; }
.brand-name { font-weight: 700; font-size: 1.05rem; letter-spacing: 0.01em; }
.brand-tag { font-size: 0.8rem; color: var(--gold); }
.header-action { margin: 0; }
.site-header .btn-link { color: #fff; }

.main { flex: 1; padding-top: 24px; padding-bottom: 40px; }

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px var(--gutter);
    box-shadow: 0 1px 2px rgba(26, 26, 46, 0.05);
    margin-bottom: var(--gutter);
}
.card-narrow { max-width: 460px; margin-left: auto; margin-right: auto; }

.grid { display: grid; grid-template-columns: 1fr; gap: var(--gutter); }
.grid .card { margin-bottom: 0; }

.page-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }

.muted { color: var(--muted); }
.small { font-size: 0.875rem; }

.form { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.form label { font-weight: 600; font-size: 0.9rem; margin-top: 8px; }
.form input, .form select, .form textarea {
    font: inherit;
    padding: 10px 12px;
    border: 1px solid #c9c9d3;
    border-radius: 8px;
    background: #fff;
    width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.form .btn { margin-top: 16px; }

.btn {
    display: inline-block;
    font: inherit;
    font-weight: 600;
    padding: 11px 18px;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}
.btn-primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-primary:hover { background: var(--navy-soft); color: #fff; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-dark); color: #fff; }
.btn-link { background: none; border: none; padding: 6px 0; text-decoration: underline; text-decoration-color: var(--gold); }

.notice { background: var(--notice-bg); border-left: 4px solid var(--gold); padding: 12px var(--gutter); border-radius: 6px; margin-bottom: var(--gutter); }
.alert { background: var(--alert-bg); color: var(--alert-text); border-left: 4px solid var(--alert-text); padding: 12px var(--gutter); border-radius: 6px; margin: 12px 0; }
.alert p { margin: 0; }

.stat-count { font-size: 2rem; font-weight: 700; color: var(--navy); margin: 0 0 4px; }
.stat-alert { border-left: 4px solid var(--gold); }

.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }

.error-page { text-align: center; }
.error-code { font-size: 3rem; font-weight: 700; color: var(--gold); margin: 0; }

.site-footer { background: var(--navy); color: #d8d8e2; font-size: 0.875rem; }
.footer-row { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-top: 18px; padding-bottom: 18px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--gold); }
.powered { margin-left: 0; }

@media (min-width: 640px) {
    h1 { font-size: 1.9rem; }
    .card { padding: 24px; }
    .grid { grid-template-columns: repeat(2, 1fr); }
    .powered { margin-left: auto; }
}

@media (min-width: 960px) {
    .grid { grid-template-columns: repeat(4, 1fr); }
}

/* Signed-in navigation (partials/nav, map in App\Support\AdminNavigation). */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.site-nav { background: var(--navy-soft); }
.site-nav-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding-top: 6px; padding-bottom: 6px; font-size: 0.95rem; }
.site-nav-list, .site-subnav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; min-width: 0; }
.site-nav-list { gap: 2px 18px; }
.site-nav a { display: inline-block; color: #fff; font-weight: 600; text-decoration: none; padding: 4px 0 3px; border-bottom: 3px solid transparent; }
.site-nav a:hover { color: var(--gold); }
.site-nav a[aria-current] { border-bottom-color: var(--gold); }
.site-nav a:focus-visible, .site-subnav a:focus-visible, .site-nav-search input:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.site-nav-search { margin: 0 0 0 auto; }
.site-nav-search input { width: 17em; max-width: 100%; padding: 5px 10px; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: 0.9rem; }
/* The sub-bar is always present for admins and keeps one height for every section, so pages never shift. */
.site-subnav { background: var(--card); border-bottom: 1px solid var(--line); }
.site-subnav-row { display: flex; align-items: center; min-height: 2.75rem; padding-top: 4px; padding-bottom: 4px; font-size: 0.92rem; }
.site-subnav-list { gap: 2px 20px; }
.site-subnav a { color: var(--navy); text-decoration: none; padding: 3px 0; }
.site-subnav a:hover { color: var(--gold-dark); text-decoration: underline; }
.site-subnav a[aria-current="page"] { font-weight: 700; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; }
.page-formerly { margin: -8px 0 16px; color: var(--muted); font-size: 0.9rem; }
/* Internal navigation never prints (invoices and statements are printed for customers). */
@media print { .site-nav, .site-subnav, .site-nav-search { display: none !important; } }
@media (max-width: 959px) { .site-subnav-row { min-height: 4.4rem; } }
@media (max-width: 639px) {
    .site-nav-search { flex: 1 1 100%; margin-left: 0; }
    .site-nav-search input { width: 100%; }
    .site-subnav-row { min-height: 6.2rem; }
}

/* Admin dashboard: today's list. */
.dash-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.dash-table th, .dash-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.dash-table th { color: var(--muted); font-weight: 600; font-size: 0.85rem; }
@media (max-width: 640px) { .dash-table thead { display: none; } .dash-table td { display: block; border: 0; padding: 2px 0; } .dash-table tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; } }
