﻿/* =====================================================================
   CSC Reservation System — StyleSheet.css
   Direction: "exam hall board" — a deep navy masthead, quiet paper-blue
   workspace, and one saffron signal colour used only for focus, the
   active nav item and the things that need attention.
   All original selectors are kept so the existing markup keeps working.
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Sans+Arabic:wght@400;600&display=swap');

:root {
    --ink:        #14254A;   /* masthead, headings */
    --ink-2:      #1F3A6E;   /* hover on navy */
    --signal:     #F2A900;   /* saffron: focus, active, attention */
    --signal-soft:#FFF4D6;
    --paper:      #EEF2F7;   /* page background */
    --surface:    #FFFFFF;
    --tint:       #F6F8FB;   /* zebra rows, inputs */
    --line:       #D5DDE8;
    --text:       #1E2A3B;
    --muted:      #5B6B82;
    --danger:     #B3261E;
    --danger-soft:#FCEBEA;
    --ok:         #1E7B4F;

    --radius-lg: 14px;
    --radius:    8px;
    --radius-sm: 6px;
    --shadow:    0 1px 2px rgba(20,37,74,.06), 0 8px 24px rgba(20,37,74,.08);
    --font: 'IBM Plex Sans', 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, Arial, sans-serif;
}

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

@keyframes fade {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Page ---------- */
body
{
    margin: 0;
    padding: 24px 0 40px;
    color: var(--text);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.55;
    background-color: var(--paper);
    background-image:
        linear-gradient(var(--ink) 0, var(--ink) 220px, transparent 220px);
    background-repeat: no-repeat;
    text-align: center;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--ink); line-height: 1.25; font-weight: 600; }
h3 { font-size: 1.1rem; margin: 28px 0 10px; }

a { color: var(--ink-2); }
a:hover { color: var(--ink); }

#wrapper /* Page shell */
{
    width: calc(100% - 32px);
    max-width: 1100px;
    margin: auto;
    padding-bottom: 24px;
    background-color: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

#banner
{
    background: var(--ink);
    color: #fff;
}
#banner img { display: block; max-width: 100%; height: auto; }

/* ---------- Navigation (the one bold element) ---------- */
#navigation
{
    display: flow-root;           /* contains the floated items */
    min-height: 52px;
    background: var(--ink);
    border-bottom: 3px solid var(--signal);
    padding: 0 16px;
}

#nav
{
    display: block;
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
}

ul#nav, ul.sub1
{
    list-style: none;
    font-size: 14px;
}

ul#nav li
{
    position: relative;
    float: left;
    width: auto;
    margin: 0;
    text-align: center;
}

#nav li /* top-level item */
{
    display: block;
    margin-top: 0;
    padding: 0;
    border-left: 0;
    text-transform: none;
    font-family: var(--font);
    font-weight: 500;
}

ul#nav a /* top-level link */
{
    display: block;
    width: auto;
    min-width: 128px;
    height: 52px;
    line-height: 52px;
    margin: 0;
    padding: 0 30px 0 18px;
    text-decoration: none;
    background-color: transparent;
    border: 0;
    border-radius: 0;
    position: relative;
    transition: background-color .2s ease, color .2s ease;
}

#nav a:link, #nav a:visited, #nav a:active
{
    display: block;
    color: #DCE4F2;
    text-decoration: none;
}

/* saffron underline that rises on hover / keyboard focus */
ul#nav > li > a::after
{
    content: "";
    position: absolute;
    left: 14px; right: 14px; bottom: 0;
    height: 3px;
    background: var(--signal);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}

ul#nav li:hover > a,
ul#nav li:focus-within > a,
#nav a:hover
{
    background-color: var(--ink-2);
    color: #fff;
}
ul#nav > li:hover > a::after,
ul#nav > li:focus-within > a::after { transform: scaleX(1); }

ul#nav li:hover a:hover { background-color: var(--ink-2); }

/* dropdown arrow */
.darrow
{
    position: absolute;
    top: 50%;
    right: 12px;
    font-size: 10px;
    line-height: 1;
    color: var(--signal);
    pointer-events: none;
    transform: translateY(-50%) rotate(180deg);
    transition: transform .25s ease;
}
ul#nav .darrow { transform: translateY(-50%) rotate(180deg); }
ul#nav li:hover .darrow,
ul#nav li:focus-within .darrow,
.darrow:hover { transform: translateY(-50%) rotate(0deg); }

/* submenu */
#nav ul
{
    display: none;
    list-style: none;
}

ul#nav ul.sub1
{
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 50;
    min-width: 220px;
    margin: 3px 0 0;
    padding: 6px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 3px solid var(--signal);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    text-align: left;
}

ul#nav li:hover .sub1,
ul#nav li:focus-within .sub1
{
    display: block;
    animation: fade .18s ease-out forwards;
}

ul#nav ul.sub1 li { float: none; width: auto; }

ul#nav .sub1 a,
ul#nav .sub1 a:link,
ul#nav .sub1 a:visited
{
    height: auto;
    min-width: 0;
    line-height: 1.4;
    padding: 9px 12px;
    margin: 0;
    color: var(--text);
    border-radius: var(--radius-sm);
}
ul#nav .sub1 a::after { display: none; }

/* Submenu hover — selectors are deliberately more specific than the
   top-level "li:hover a:hover" rules so the navy hover never leaks in here. */
ul#nav ul.sub1 li > a
{
    border-left: 3px solid transparent;
    transition: background-color .15s ease, border-color .15s ease, padding-left .15s ease;
}
ul#nav ul.sub1 li:hover > a,
ul#nav ul.sub1 li > a:hover,
ul#nav ul.sub1 li > a:focus-visible
{
    background-color: var(--signal-soft);
    color: var(--ink);
    font-weight: 600;
    border-left-color: var(--signal);
    padding-left: 16px;
}

/* ---------- Content ---------- */
#content /* Content of the page */
{
    padding: 28px 36px;
    min-height: 400px;
    margin-left: 0;
    text-align: left;
}

#content p { margin: 0 0 12px; }

#rightSideBar
{
    float: right;
    margin-top: 70px;
}

.roundedbox
{
    float: left;
    margin-top: 8px;
    padding: 14px 16px 20px;
    background-color: var(--tint);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    text-align: left;
}

/* ---------- Form controls (asp:TextBox / DropDownList / Button) ---------- */
#content input[type="text"],
#content input[type="password"],
#content input[type="date"],
#content input[type="email"],
#content input[type="number"],
#content select,
#content textarea,
.inputs
{
    font: inherit;
    color: var(--text);
    min-height: 36px;
    padding: 6px 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    transition: border-color .15s ease, box-shadow .15s ease;
    vertical-align: middle;
}

.inputs { width: 260px; margin: 0 0 25px; background: var(--tint); }

#content input:hover, #content select:hover { border-color: #AEBBCF; }

#content input[type="submit"],
#content input[type="button"],
#content button,
.button
{
    font: inherit;
    font-weight: 600 !important;      /* beats inline style="font-weight:700" sizing noise */
    font-size: 14px !important;
    min-height: 38px;
    padding: 8px 18px;
    margin: 4px 6px 4px 0;
    color: #fff;
    background: var(--ink);
    border: 1px solid var(--ink);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background-color .15s ease, transform .05s ease;
}
#content input[type="submit"]:hover,
#content input[type="button"]:hover,
#content button:hover,
.button:hover { background: var(--ink-2); }
#content input[type="submit"]:active,
.button:active { transform: translateY(1px); }

/* Secondary and destructive buttons (set CssClass on the asp:Button) */
#content input.btn-secondary,
#content .btn-secondary
{
    color: var(--ink);
    background: var(--surface);
    border-color: var(--line);
}
#content input.btn-secondary:hover,
#content .btn-secondary:hover { background: var(--tint); }

#content input.btn-danger,
#content .btn-danger
{
    color: var(--danger);
    background: var(--surface);
    border-color: var(--danger);
}
#content input.btn-danger:hover,
#content .btn-danger:hover { color: #fff; background: var(--danger); }

#content input[type="checkbox"]
{
    width: 16px; height: 16px;
    accent-color: var(--ink);
    vertical-align: -3px;
    margin-right: 6px;
}

/* Visible keyboard focus everywhere */
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible
{
    outline: 3px solid var(--signal);
    outline-offset: 2px;
    border-color: var(--ink);
}

/* ---------- Messages ---------- */
.Important
{
    display: inline-block;
    font-size: 15px;
    font-weight: 600;
    color: var(--danger);
}
.Important:not(:empty)
{
    padding: 8px 14px;
    background: var(--danger-soft);
    border-left: 3px solid var(--danger);
    border-radius: var(--radius-sm);
}

/* ---------- Grids (add CssClass="grid" to an asp:GridView) ----------
   !important is used on purpose: GridView writes inline colours that
   are still needed for the Excel export, so the screen view overrides them. */
.grid
{
    width: 100%;
    margin: 10px 0 16px;
    border-collapse: separate !important;
    border-spacing: 0;
    border: 1px solid var(--line) !important;
    border-radius: var(--radius);
    overflow: hidden;
    font-size: 14px;
    color: var(--text) !important;
    font-variant-numeric: tabular-nums;
}
.grid th
{
    padding: 10px 12px !important;
    text-align: left;
    font-weight: 600;
    color: #fff !important;
    background: var(--ink) !important;
    white-space: nowrap;
}
.grid th a { color: #fff !important; text-decoration: none; }
.grid td
{
    padding: 9px 12px !important;
    background: var(--surface) !important;
    border-top: 1px solid var(--line);
}
.grid tr:nth-child(even) td { background: var(--tint) !important; }
.grid tr:hover td { background: var(--signal-soft) !important; }
.grid td a { font-weight: 600; }

/* ---------- Panels (used on the Users & Roles page) ---------- */
.panel
{
    margin: 0 0 22px;
    padding: 18px 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.panel h3 { margin-top: 0; }
.panel .hint { color: var(--muted); font-size: 13px; margin-top: 6px; }

.panel-danger { border-left: 3px solid var(--signal); background: #FFFCF3; }

/* ---------- Legacy buttons ---------- */
.btnn
{
    display: inline-flex;
    align-self: center;
    margin: 20px;
    padding: .7em 2em;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    color: var(--ink);
    text-decoration: none;
    text-align: center;
    background-color: transparent;
    border: 2px solid var(--ink);
    border-radius: var(--radius-sm);
    cursor: pointer;
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
}
.btnn:hover, .btnn:focus { color: #fff; outline: 0; }

.first { transition: box-shadow 300ms ease-in-out, color 300ms ease-in-out; }
.first:hover { box-shadow: 0 0 0 40px var(--ink) inset; }


/* ---------- Page layout blocks (ManageReservations and similar pages) ---------- */
.page-head
{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    margin: 0 0 6px;
}
.page-title
{
    font-size: 1.6rem !important;
    font-weight: 700;
    font-style: normal !important;
    color: var(--ink);
    letter-spacing: -.01em;
}
.branch-pick { display: flex; align-items: center; gap: 10px; }
.branch-pick label { font-weight: 600; color: var(--muted); }

.page-links
{
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
    margin: 0 0 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}
.page-links a { font-size: 14px; font-weight: 500; }

.all-sessions { margin: 0 0 16px; }

.filter-card
{
    margin: 0 0 24px;
    padding: 18px 22px 20px;
    background: var(--tint);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.filter-card h3 { margin: 0 0 14px; }

.filter-row
{
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 16px 28px;
    margin-bottom: 14px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-size: 13px; font-weight: 600; color: var(--muted); }
.field.options { gap: 8px; padding-bottom: 4px; }
.field.options label { font-size: 14px; font-weight: 500; color: var(--text); white-space: nowrap; }

.filter-card .Important:not(:empty) { display: block; margin: 0 0 12px; }

.actions
{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}
.actions input { margin: 0 !important; }
#content .actions .push-right { margin-left: auto !important; }

.section-label
{
    display: block;
    margin: 8px 0 4px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink);
}
.total { font-weight: 600; color: var(--muted); }
.total-num
{
    display: inline-block;
    min-width: 2.2em;
    padding: 2px 10px;
    font-weight: 700;
    color: var(--ink);
    background: var(--signal-soft);
    border-radius: 999px;
    text-align: center;
}

/* ---------- Small screens ---------- */
@media (max-width: 760px)
{
    body { padding-top: 0; }
    #wrapper { width: 100%; border-radius: 0; }
    #content { padding: 20px 16px; }
    ul#nav li { float: none; }
    ul#nav a { text-align: left; }
    ul#nav ul.sub1 { position: static; box-shadow: none; margin: 0 0 6px 14px; }
    .grid { display: block; overflow-x: auto; }
}

/* ---------- Respect reduced motion ---------- */
@media (prefers-reduced-motion: reduce)
{
    *, *::before, *::after
    {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}

.total-num:empty { display: none; }

/* =====================================================================
   Batch 2 — shared page pieces (master user bar, home, login, forms)
   ===================================================================== */

/* ---------- Master: brand header (replaces the banner photo) ---------- */
#banner.brand-bar
{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    padding: 26px 36px 22px;
    background:
        repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 40px),
        repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 40px),
        var(--ink);
    text-align: left;
}
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.brand-logo
{
    width: 56px; height: 56px;
    padding: 4px;
    object-fit: contain;
    background: #fff;
    border-radius: 50%;
}
.brand-text { display: flex; flex-direction: column; gap: 2px; }
.brand-ar
{
    font-family: 'IBM Plex Sans Arabic', var(--font);
    font-size: 1.85rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--signal);
    text-align: left;
}
.brand-en { font-size: 1.05rem; font-weight: 500; color: #fff; letter-spacing: .01em; }
.brand-system
{
    padding: 5px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #C9D4E8;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 999px;
}
#navigation { border-top: 1px solid rgba(255,255,255,.08); }

@media (max-width: 760px)
{
    #banner.brand-bar { padding: 18px 16px 14px; }
    .brand-ar { font-size: 1.5rem; }
    .brand-system { display: none; }
}

/* ---------- Master: account bar under the menu ---------- */
.userbar
{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 24px;
    padding: 12px 36px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    text-align: left;
}
.ub-user { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ub-avatar
{
    flex: none;
    display: grid;
    place-items: center;
    width: 38px; height: 38px;
    font-weight: 700;
    font-size: 16px;
    color: var(--ink);
    background: var(--signal);
    border-radius: 50%;
}
.ub-id { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ub-name { font-weight: 600; color: var(--ink); line-height: 1.2; }
.ub-roles { display: flex; flex-wrap: wrap; gap: 4px; }
.ub-chip
{
    padding: 1px 8px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.6;
    color: var(--ink-2);
    background: #E8EEF8;
    border-radius: 999px;
    white-space: nowrap;
}
.ub-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: 14px; }
.ub-time { color: var(--muted); font-variant-numeric: tabular-nums; }
a.ub-link { color: var(--ink-2); font-weight: 500; text-decoration: none; }
a.ub-link:hover { text-decoration: underline; }
a.ub-signout
{
    padding: 5px 14px;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    transition: background-color .15s ease, border-color .15s ease;
}
a.ub-signout:hover { background: var(--tint); border-color: #AEBBCF; }

@media (max-width: 760px)
{
    .userbar { padding: 10px 16px; }
    .ub-time { display: none; }
}

/* ---------- Home ---------- */
.lang-switch { text-align: right; font-size: 14px; margin-bottom: 4px; }
.hero
{
    margin: 0 0 22px;
    padding: 22px 26px;
    color: #fff;
    background: var(--ink);
    border-left: 6px solid var(--signal);
    border-radius: var(--radius);
}
.hero h1 { margin: 0 0 4px; color: #fff; font-size: 1.9rem; letter-spacing: -.01em; }
.hero-sub { margin: 0; color: #C9D4E8; }

.quick-actions
{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin: 0 0 28px;
}
.quick-actions .qa
{
    display: block;
    padding: 14px 16px;
    text-decoration: none;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: 3px solid var(--ink);
    border-radius: var(--radius-sm);
    transition: border-color .15s ease, background-color .15s ease;
}
.quick-actions .qa strong { display: block; color: var(--ink); margin-bottom: 2px; }
.quick-actions .qa span { font-size: 13px; color: var(--muted); }
.quick-actions .qa:hover { border-top-color: var(--signal); background: var(--signal-soft); }

.services
{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px 28px;
    margin-bottom: 10px;
}
.service h4 { margin: 0 0 4px; color: var(--ink); font-size: 1rem; }
.service p { margin: 0; color: var(--muted); font-size: 14px; }
.footnote { margin-top: 28px; font-size: 12px; color: var(--muted); }

/* ---------- Sign-in page (MasterPage2, body.auth) ---------- */
body.auth
{
    padding: 0;
    background: var(--paper);
    background-image: none;
    text-align: left;
}
.auth-shell
{
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    min-height: 100vh;
}

/* brand side: the one bold moment */
.auth-brand
{
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 56px 8vw 56px 7vw;
    color: #fff;
    background:
        repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 44px),
        repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 44px),
        var(--ink);
    overflow: hidden;
}
.auth-brand::after                 /* saffron rule along the inner edge */
{
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 6px;
    background: var(--signal);
}
.auth-ar
{
    margin: 0 0 10px;
    font-family: 'IBM Plex Sans Arabic', var(--font);
    font-size: clamp(2rem, 3.6vw, 3.2rem);
    white-space: nowrap;
    font-weight: 600;
    line-height: 1.2;
    color: var(--signal);
    text-align: left;
}
.auth-brand h1
{
    margin: 0 0 6px;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 600;
    color: #fff;
    letter-spacing: -.01em;
}
.auth-system { margin: 0 0 28px; font-size: 1.05rem; color: #C9D4E8; }
.auth-org
{
    margin: 0;
    max-width: 34ch;
    padding-top: 18px;
    font-size: 14px;
    color: #9FB0CC;
    border-top: 1px solid rgba(255,255,255,.15);
}

/* form side */
.auth-panel
{
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}
.auth-card { width: 100%; max-width: 360px; }
.auth-card h2 { margin: 0 0 4px; font-size: 1.6rem; color: var(--ink); }
.auth-lead { margin: 0 0 24px; color: var(--muted); }

.auth-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.auth-field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.auth-field input
{
    width: 100%;
    min-height: 44px;
    padding: 8px 12px;
    font: inherit;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.auth-field input:hover { border-color: #AEBBCF; }
.auth-field input:focus
{
    outline: none;
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(242,169,0,.45);
}
.auth-field-error { font-size: 13px; font-weight: 600; color: var(--danger); }

.auth-remember { margin: 2px 0 18px; font-size: 14px; }
.auth-remember input { width: 16px; height: 16px; accent-color: var(--ink); vertical-align: -3px; margin-right: 6px; }

.auth-error:empty { display: none; }
.auth-error
{
    margin: 0 0 16px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--danger);
    background: var(--danger-soft);
    border-left: 3px solid var(--danger);
    border-radius: var(--radius-sm);
}

.auth-btn
{
    width: 100%;
    min-height: 46px;
    font: inherit;
    font-weight: 600;
    font-size: 15px;
    color: #fff;
    background: var(--ink);
    border: 0;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background-color .15s ease;
}
.auth-btn:hover { background: var(--ink-2); }
.auth-btn:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }

.auth-help { margin: 22px 0 0; font-size: 13px; color: var(--muted); line-height: 1.5; }

@media (max-width: 820px)
{
    .auth-shell { grid-template-columns: 1fr; min-height: 0; }
    .auth-brand { padding: 36px 24px 32px; }
    .auth-brand::after { top: auto; left: 0; width: auto; height: 5px; }
    .auth-system { margin-bottom: 16px; }
    .auth-panel { padding: 32px 20px 48px; }
}

/* ---------- Form helpers ---------- */
.hint { color: var(--muted); font-size: 13px; margin: -6px 0 14px; }
.req { color: var(--danger); font-weight: 700; }
.field > span:first-child { font-size: 13px; font-weight: 600; color: var(--muted); }
.field-link { justify-content: flex-end; padding-bottom: 8px; }
.inline-pair { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.inline-pair label { font-size: 14px; font-weight: 500; color: var(--text); }
.rtl { direction: rtl; text-align: right; }

.card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.card-head h3 { margin-bottom: 14px; }
.card-stat { font-size: 14px; font-weight: 600; color: var(--muted); }

.segmented
{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 18px;
    margin-bottom: 14px;
}
.seg-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.segmented label { font-weight: 500; }

.check-group { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 4px 0 12px; }
.check-group label { font-size: 14px; font-weight: 500; }
.check-group:empty { display: none; }

.radio-list { display: block; line-height: 2; }
.radio-list input[type="radio"] { accent-color: var(--ink); margin-right: 6px; }
.radio-list label { font-size: 14px; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 24px; }
.grid-compact { width: auto; min-width: 60%; }
.table-scroll { overflow-x: auto; }
.edit-row { margin-top: 6px; }

#content input.btn-sm,
#content .btn-sm
{
    min-height: 30px;
    padding: 4px 12px;
    margin: 0;
    font-size: 13px !important;
}

/* status / info lines */
.note:not(:empty),
.status-ok:not(:empty),
.result-count:not(:empty),
.upload-status:not(:empty)
{
    display: block;
    margin: 0 0 12px;
    padding: 8px 14px;
    font-weight: 600;
    background: #EEF3FB;
    border-left: 3px solid var(--ink-2);
    border-radius: var(--radius-sm);
}
.filter-card .Important:not(:empty) { margin: 0 0 10px; }
.actions.plain { border-top: 0; padding-top: 0; margin-bottom: 16px; }

/* narrow single-column forms (change password etc.) */
.form-narrow { max-width: 460px; }
.form-stack { display: flex; flex-direction: column; gap: 16px; margin-bottom: 16px; }
.form-stack .field input,
.form-stack .field select { width: 100%; }
.field-hint { font-size: 13px; color: var(--muted); }

/* grid helpers */
.grid td.cell-wide { min-width: 220px; }
.grid td a { white-space: nowrap; }
.grid input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--ok); cursor: pointer; }

/* upload page */
.steps { margin: 0; padding-left: 22px; line-height: 1.9; }
.admin-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }

/* report viewer */
.report-frame { overflow-x: auto; margin-top: 8px; }
