/* ==========================================================================
   Staff / admin dashboard shell.
   Same palette as the public site (site.css). Everything is prefixed .adm- so the package's own pages,
   rendered inside {% block body %} with their Bootstrap-based styles, are left alone.
   ========================================================================== */

:root {
    --ink: #0d1b2a;
    --ink-2: #2b3d51;
    --muted: #5b6b7c;
    --line: #e2e8ef;
    --line-strong: #cfd8e3;
    --bg: #f6f8fb;
    --surface: #ffffff;
    --surface-2: #f0f4f8;
    --teal: #17799c;
    --teal-600: #125f7b;
    --teal-50: #e7f3f8;
    --orange: #e8552b;
    --orange-50: #fdefe9;

    --sidebar-w: 256px;
    --topbar-h: 64px;
    --radius-sm: 8px;
    --radius: 12px;
    --shadow: 0 1px 2px rgba(13, 27, 42, .05), 0 8px 24px -8px rgba(13, 27, 42, .12);
    --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.adm-body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

.adm-skip {
    position: absolute; left: 12px; top: -60px; z-index: 3000;
    padding: 8px 14px; border-radius: var(--radius-sm); background: var(--ink); color: #fff;
}
.adm-skip:focus { top: 12px; color: #fff; }

.adm-shell :focus-visible { outline: 3px solid color-mix(in srgb, var(--teal) 45%, transparent); outline-offset: 2px; }

/* ---------- Sidebar ---------- */
.adm-sidebar {
    position: fixed; inset: 0 auto 0 0; z-index: 1040;
    width: var(--sidebar-w);
    display: flex; flex-direction: column;
    background: var(--ink);
    color: #c9d4df;
    font-family: var(--font);
}

.adm-sidebar__head {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    height: var(--topbar-h); padding: 0 16px 0 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.adm-brand {
    display: flex; align-items: center; gap: 10px; min-width: 0;
    color: #fff; font-weight: 800; font-size: 15px; letter-spacing: -.01em; text-decoration: none;
}
.adm-brand:hover { color: #fff; }
.adm-brand img { flex: none; }
.adm-brand__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.adm-brand__text small { color: #8ea3b8; font-size: 11.5px; font-weight: 600; letter-spacing: 0; }

.adm-nav { flex: 1; overflow-y: auto; padding: 12px 12px 20px; }
.adm-nav ul { list-style: none; margin: 0; padding: 0; }
.adm-nav__label {
    margin: 18px 10px 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: #6f849a;
}
.adm-nav a {
    display: flex; align-items: center; gap: 12px;
    padding: 9px 12px; margin: 2px 0; border-radius: var(--radius-sm);
    color: #c9d4df; font-size: 14.5px; font-weight: 600; text-decoration: none;
    transition: background-color .15s, color .15s;
}
.adm-nav a > i:first-child { width: 18px; text-align: center; color: #7f96ad; transition: color .15s; }
.adm-nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.adm-nav a:hover > i:first-child { color: #fff; }
.adm-nav a[aria-current="page"] { background: var(--teal); color: #fff; }
.adm-nav a[aria-current="page"] > i:first-child { color: #fff; }
.adm-nav .adm-ext { margin-left: auto; font-size: 10px; opacity: .6; }

.adm-user {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 16px; border-top: 1px solid rgba(255, 255, 255, .08);
}
.adm-avatar {
    flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
    background: var(--orange); color: #fff; font-size: 13px; font-weight: 800; text-transform: uppercase;
}
.adm-user__text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.adm-user__text strong { color: #fff; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-user__text small { color: #8ea3b8; font-size: 12px; }
.adm-user .adm-icon-btn { color: #c9d4df; border-color: rgba(255, 255, 255, .14); background: transparent; }
.adm-user .adm-icon-btn:hover { color: #fff; background: rgba(255, 255, 255, .08); }

/* ---------- Main column ---------- */
.adm-main-col {
    margin-left: var(--sidebar-w);
    min-height: 100vh;
    display: flex; flex-direction: column;
}

.adm-topbar {
    position: sticky; top: 0; z-index: 1020;
    display: flex; align-items: center; gap: 12px;
    height: var(--topbar-h); padding: 0 28px;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
    font-family: var(--font);
}
.adm-crumbs {
    flex: 1; min-width: 0; margin: 0; display: flex; align-items: center; gap: 8px;
    font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap;
}
.adm-crumbs i { font-size: 10px; opacity: .6; }
.adm-crumbs strong { color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.adm-topbar__actions { display: flex; align-items: center; gap: 10px; }

.adm-demo-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 11px; border-radius: 999px;
    background: var(--orange-50); color: #a8391a; font-size: 12.5px; font-weight: 600; white-space: nowrap;
}

.adm-demo-pill time { font-weight: 800; font-variant-numeric: tabular-nums; }

.adm-lang {
    display: flex; align-items: center; gap: 6px; margin: 0;
    padding: 0 10px; height: 36px; border: 1px solid var(--line-strong); border-radius: 999px;
    background: var(--surface); color: var(--muted); font-size: 13px;
}
.adm-lang select {
    border: 0; background: transparent; font: inherit; font-weight: 600; color: var(--ink-2); cursor: pointer;
    padding: 0; outline-offset: 4px;
}

.adm-btn {
    display: inline-flex; align-items: center; gap: 8px;
    height: 36px; padding: 0 14px; border-radius: 999px;
    background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.adm-btn:hover { background: var(--ink-2); color: #fff; }

.adm-icon-btn {
    flex: none; display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0;
    border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
    background: var(--surface); color: var(--ink-2); cursor: pointer; text-decoration: none;
}
.adm-icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.adm-menu-btn { display: none; }

.adm-main { flex: 1; padding: 20px 24px; min-width: 0; }

/* The package wraps every page in AdminLTE's .content-wrapper; neutralise it so the content flows in our layout. */
.adm-main .content-wrapper { margin: 0 !important; padding: 0; min-height: 0; background: transparent; }

/* ---------- FullCalendar (calendar page) in the dashboard palette ---------- */
.adm-main .fc { --fc-border-color: var(--line); --fc-today-bg-color: var(--teal-50);
    --fc-button-bg-color: var(--surface); --fc-button-border-color: var(--line-strong); --fc-button-text-color: var(--ink-2);
    --fc-button-hover-bg-color: var(--surface-2); --fc-button-hover-border-color: var(--line-strong);
    --fc-button-active-bg-color: var(--teal); --fc-button-active-border-color: var(--teal);
    font-family: var(--font); }
.adm-main .fc a { text-decoration: none; color: inherit; }
.adm-main .fc .fc-button.fc-button-primary {
    background: var(--surface); border-color: var(--line-strong); color: var(--ink-2);
    font-weight: 600; font-size: 14px; box-shadow: none;
}
.adm-main .fc .fc-button.fc-button-primary:hover { background: var(--surface-2); color: var(--ink); }
.adm-main .fc .fc-button.fc-button-primary.fc-button-active,
.adm-main .fc .fc-button.fc-button-primary:not(:disabled):active {
    background: var(--teal); border-color: var(--teal); color: #fff;
}
.adm-main .fc .fc-button.fc-button-primary:disabled { background: var(--surface-2); color: var(--muted); opacity: 1; }
.adm-main .fc .fc-toolbar-title { font-weight: 800; letter-spacing: -.02em; }
.adm-main .fc .fc-col-header-cell-cushion { padding: 8px 4px; font-size: 12px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .06em; color: var(--muted); }
.adm-main .fc .fc-daygrid-day-number { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.adm-main .fc .fc-scrollgrid { border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.adm-main .calendar-wrapper { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 12px; box-shadow: var(--shadow); }

.adm-footer {
    padding: 12px 24px; border-top: 1px solid var(--line);
    color: var(--muted); font-size: 13px; font-family: var(--font);
}
.adm-footer a { color: var(--muted); }
.adm-footer a:hover { color: var(--teal); }

.adm-scrim { position: fixed; inset: 0; z-index: 1035; background: rgba(13, 27, 42, .45); }
.adm-scrim[hidden] { display: none; }

/* ==========================================================================
   Page components, used by the overridden package pages in templates/custom/.
   ========================================================================== */
:root {
    --red: #c93a3a;
    --red-50: #fdeeee;
    --green: #1d8055;
    --green-50: #e7f5ee;
    --amber: #a15c07;
    --amber-50: #fdf3e3;
}

.adm-main { font-family: var(--font); font-size: 14.5px; }
.adm-main a { color: var(--teal); }
.adm-page { max-width: 1600px; }

/* Page header: title, one-line description, actions */
.adm-page-head {
    display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px;
    margin-bottom: 16px;
}
.adm-page-head h1 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.025em; color: var(--ink); }
.adm-page-head p { margin: 2px 0 0; max-width: 62ch; color: var(--muted); }
.adm-page-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.adm-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px; font-size: 13px; font-weight: 600;
    color: var(--muted) !important; text-decoration: none; }
.adm-back:hover { color: var(--teal) !important; }

/* Buttons (the topbar's dark pill is .adm-btn; these are the in-page variants) */
.adm-btn { border: 1px solid transparent; cursor: pointer; font-family: var(--font); }
.adm-btn--primary { background: var(--teal); color: #fff !important; }
.adm-btn--primary:hover { background: var(--teal-600); }
.adm-btn--ghost { background: var(--surface); border-color: var(--line-strong); color: var(--ink-2) !important; }
.adm-btn--ghost:hover { background: var(--surface-2); color: var(--ink) !important; }
.adm-btn--danger { background: var(--red); color: #fff !important; }
.adm-btn--danger:hover { background: #a92f2f; }
.adm-btn--sm { height: 32px; padding: 0 12px; font-size: 13px; }
/* A form around a single POST button, laid out as if the button were there alone. */
.adm-inline-form { display: contents; }
.adm-icon-btn--danger:hover { background: var(--red-50); border-color: #f1c4c4; color: var(--red); }
.adm-main a.adm-icon-btn { color: var(--ink-2); }
.adm-main a.adm-icon-btn:hover { color: var(--ink); }
.adm-main a.adm-icon-btn--danger:hover { color: var(--red); }
.adm-table .adm-icon-btn, .adm-card__head .adm-icon-btn { width: 30px; height: 30px; font-size: 13px; }
.adm-icon-row { display: flex; gap: 6px; justify-content: flex-end; }

/* Cards */
.adm-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: 0 1px 2px rgba(13, 27, 42, .04);
}
.adm-card + .adm-card { margin-top: 16px; }
.adm-card__head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 16px; border-bottom: 1px solid var(--line);
}
.adm-card__head h2 { margin: 0; font-size: 16px; font-weight: 800; letter-spacing: -.01em; color: var(--ink);
    display: flex; align-items: center; gap: 10px; }
.adm-card__head h2 i { color: var(--teal); font-size: 15px; }
.adm-card__head p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.adm-card__body { padding: 16px; }
.adm-card__foot { padding: 10px 16px; border-top: 1px solid var(--line); background: #fbfcfd;
    border-radius: 0 0 var(--radius) var(--radius); font-size: 13px; color: var(--muted); }
.adm-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px;
    background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 700; }

.adm-cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.adm-cols .adm-card + .adm-card, .adm-stack > .adm-card + .adm-card, .adm-grid > .adm-card + .adm-card { margin-top: 0; }
.adm-stack { display: grid; gap: 16px; }
.adm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }

/* Tables: a real table on wide screens, stacked rows (with data-label) on phones */
.adm-table { width: 100%; border-collapse: collapse; }
.adm-table th {
    padding: 8px 16px; text-align: left; white-space: nowrap;
    font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
    background: #fbfcfd; border-bottom: 1px solid var(--line);
}
.adm-table td { padding: 9px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--ink-2); }
.adm-table tr:last-child td { border-bottom: 0; }
.adm-table tbody tr:hover { background: #fafcfd; }
.adm-table .adm-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.adm-table th:last-child, .adm-table td:last-child { text-align: right; }
.adm-cell-title { font-weight: 700; color: var(--ink); }
.adm-main a.adm-cell-title { color: var(--ink); text-decoration: none; }
.adm-main a.adm-cell-title:hover { color: var(--teal); text-decoration: underline; }
.adm-cell-sub { display: block; margin-top: 2px; font-size: 13px; color: var(--muted);
    overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.adm-name { display: flex; align-items: center; gap: 12px; min-width: 0; }

/* Empty states */
.adm-empty { padding: 20px 16px; text-align: center; color: var(--muted); }
.adm-empty i { display: block; margin-bottom: 10px; font-size: 22px; color: var(--line-strong); }
.adm-empty p { margin: 0 0 14px; }
.adm-empty p:last-child { margin: 0; }

/* Definition lists */
.adm-dl { margin: 0; display: grid; }
.adm-dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.adm-dl > div:first-child { padding-top: 0; }
.adm-dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.adm-dl dt { font-weight: 500; color: var(--muted); }
.adm-dl dd { margin: 0; text-align: right; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.adm-dl dd a { font-weight: 600; }
.adm-help { margin-left: 4px; color: var(--line-strong); cursor: help; }
.adm-help:hover { color: var(--muted); }

/* Badges, chips, swatches, avatars */
.adm-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
    font-size: 12px; font-weight: 700; white-space: nowrap; background: var(--surface-2); color: var(--ink-2); }
.adm-badge--success { background: var(--green-50); color: var(--green); }
.adm-badge--warn { background: var(--amber-50); color: var(--amber); }
.adm-badge--teal { background: var(--teal-50); color: var(--teal-600); }
.adm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.adm-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--line);
    border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink-2); background: var(--surface); }
.adm-swatch { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--sw, var(--teal));
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.adm-swatch--lg { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-size: 15px; }
.adm-avatar--lg { width: 56px; height: 56px; font-size: 20px; border-radius: 16px; }
.adm-avatar--md { width: 40px; height: 40px; font-size: 15px; border-radius: 12px; }

/* Profile header */
.adm-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 14px 16px; }
.adm-hero__text { flex: 1; min-width: 200px; }
.adm-hero__text h2 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.adm-hero__text p { margin: 4px 0 0; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 16px; }
.adm-hero__text p span { display: inline-flex; align-items: center; gap: 6px; }

/* Team cards */
.adm-member { display: flex; flex-direction: column; gap: 12px; padding: 14px; }
.adm-member__top { display: flex; align-items: center; gap: 14px; min-width: 0; }
.adm-member__top div { min-width: 0; }
.adm-member__top strong { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 15px; }
.adm-member__top > div > span { display: block; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-member__actions { display: flex; gap: 8px; margin-top: auto; }
.adm-member__actions .adm-btn:first-child { flex: 1; justify-content: center; }
.adm-member--add { align-items: center; justify-content: center; text-align: center; border-style: dashed; box-shadow: none;
    color: var(--muted) !important; text-decoration: none; min-height: 150px; background: transparent; }
.adm-member--add:hover { border-color: var(--teal); color: var(--teal) !important; background: var(--teal-50); }
.adm-member--add i { font-size: 20px; }

/* Forms */
.adm-form { display: grid; gap: 14px; }
/* Fields sit side by side as long as each gets ~220px, then wrap: works from phones to wide screens. */
.adm-form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 14px; }
.adm-form-row--3 { grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); }
.adm-field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.adm-field > label, .adm-legend { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.adm-field .adm-optional { font-weight: 500; color: var(--muted); }
.adm-field small, .adm-field .helptext { font-size: 12.5px; color: var(--muted); }
.adm-form input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=color]):not([type=file]),
.adm-form select, .adm-form textarea, .adm-input {
    width: 100%; min-height: 42px; padding: 9px 12px;
    border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface);
    font: inherit; font-size: 14.5px; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.adm-form textarea { min-height: 96px; resize: vertical; }
.adm-form select[multiple] { min-height: 120px; }
.adm-form input:focus, .adm-form select:focus, .adm-form textarea:focus, .adm-input:focus {
    outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 18%, transparent);
}
.adm-form :disabled { background: var(--surface-2) !important; color: var(--ink-2) !important; cursor: default; }
.adm-form input[type=color] { width: 64px; height: 42px; padding: 3px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); }
.adm-form input[type=file] { font-size: 13.5px; }
.adm-form .errorlist { margin: 0; padding: 0; list-style: none; color: var(--red); font-size: 13px; font-weight: 600; }
.adm-field--invalid input, .adm-field--invalid select { border-color: var(--red) !important; }
.adm-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 4px; }
.adm-form-actions .adm-btn { height: 42px; padding: 0 20px; font-size: 14px; }

.adm-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.adm-check {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin: 0;
    border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface);
    font-weight: 600; color: var(--ink-2); cursor: pointer; transition: border-color .15s, background .15s;
}
.adm-check:hover { border-color: var(--teal); }
.adm-check:has(input:checked) { border-color: var(--teal); background: var(--teal-50); color: var(--teal-600); }
.adm-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--teal); flex: none; }

.adm-code-input { max-width: 320px; text-align: center; font-size: 24px !important; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; }

/* Service page: form on the left, live preview on the right (preview below the form on smaller screens) */
.adm-svc { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.adm-form select:not([multiple]) { appearance: none; padding-right: 34px; cursor: pointer;
    background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%235b6b7c' stroke-width='2' d='m4 6 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 12px center; }

.adm-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.adm-presets button, .adm-inline-check { font: inherit; }
.adm-presets button {
    height: 34px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px;
    background: var(--surface); color: var(--ink-2); font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.adm-presets button:hover { border-color: var(--teal); color: var(--teal); }
.adm-presets button[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: #fff; }
.adm-duration { display: flex; flex-wrap: wrap; gap: 10px; }
.adm-affix { position: relative; display: block; width: 140px; margin: 0; }
.adm-affix input { padding-right: 44px !important; }
.adm-affix span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; font-size: 13px; pointer-events: none; }

.adm-palette { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.adm-palette button, .adm-palette__custom {
    position: relative; width: 32px; height: 32px; margin: 0; padding: 0; border: 0; border-radius: 50%;
    background: var(--sw); cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1);
}
.adm-palette button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--sw); }
.adm-palette button[aria-pressed="true"]::after { content: "\f00c"; font: 900 12px "Font Awesome 6 Free"; color: #fff;
    position: absolute; inset: 0; display: grid; place-items: center; }
.adm-palette__custom { display: grid; place-items: center; background: conic-gradient(#e8552b, #d97706, #0e9f6e, #17799c, #2563eb, #6d28d9, #db2777, #e8552b);
    color: #fff; font-size: 12px; overflow: hidden; }
.adm-palette__custom.is-active { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--sw, var(--teal)); }
.adm-palette__custom input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.adm-palette__custom i { text-shadow: 0 1px 2px rgba(0, 0, 0, .4); pointer-events: none; }

.adm-drop {
    position: relative; display: flex; align-items: center; gap: 14px; min-height: 92px; margin: 0; padding: 12px 14px;
    border: 1.5px dashed var(--line-strong); border-radius: var(--radius); background: #fbfcfd; cursor: pointer;
    transition: border-color .15s, background .15s;
}
.adm-drop:hover, .adm-drop.is-over { border-color: var(--teal); background: var(--teal-50); }
.adm-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.adm-drop img { display: none; width: 88px; height: 66px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.adm-drop[data-has-image] img { display: block; }
.adm-drop__text { display: grid; gap: 2px; color: var(--muted); font-size: 13px; }
.adm-drop__text i { font-size: 18px; color: var(--teal); }
.adm-drop__text strong { color: var(--ink); font-size: 14px; }
.adm-inline-check { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.adm-inline-check input { accent-color: var(--red); }

.adm-savebar {
    position: sticky; bottom: 12px; z-index: 5; display: flex; justify-content: flex-end; gap: 8px;
    padding: 10px 12px; background: rgba(255, 255, 255, .92); border: 1px solid var(--line); border-radius: var(--radius);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: var(--shadow);
}
.adm-savebar .adm-btn { height: 40px; padding: 0 20px; }

.adm-preview { position: sticky; top: calc(var(--topbar-h) + 16px); }
.adm-preview__label { margin: 0 0 8px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.adm-preview__card { overflow: hidden; }
.adm-preview__media { display: grid; place-items: center; aspect-ratio: 16 / 9; background: var(--sw); color: #fff; font-size: 40px; font-weight: 800; }
.adm-preview__media { position: relative; }
.adm-preview__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.adm-preview__media [hidden] { display: none; }
.adm-preview__body { padding: 14px 16px 16px; border-top: 4px solid var(--sw); }
.adm-preview__body strong { display: block; font-size: 16px; color: var(--ink); overflow-wrap: anywhere; }
.adm-preview__body > p { margin: 4px 0 12px; color: var(--muted); font-size: 13.5px; overflow-wrap: anywhere;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.adm-preview__meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.adm-preview__price { font-weight: 800; color: var(--ink); }
.adm-preview__down { margin: 6px 0 0 !important; font-size: 12.5px !important; }


/* Service page, read-only */
.adm-svc-hero { display: grid; grid-template-columns: 300px minmax(0, 1fr); overflow: hidden; }
.adm-svc-hero__media { display: grid; place-items: center; min-height: 220px; background: var(--sw); color: #fff; font-size: 64px; font-weight: 800; }
.adm-svc-hero__media { position: relative; }
.adm-svc-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.adm-svc-hero__body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; border-left: 4px solid var(--sw); min-width: 0; }
.adm-svc-hero__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; }
.adm-svc-hero h1 { margin: 6px 0 0; font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.adm-svc-hero__desc { margin: 0; max-width: 70ch; color: var(--muted); }
.adm-chip--sm { padding: 3px 10px; font-size: 12px; }
.adm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: auto 0 0; }
.adm-stats > div { padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); }
.adm-stats dt { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.adm-stats dd { margin: 2px 0 0; font-size: 18px; font-weight: 800; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-stats dd small { font-size: 12px; font-weight: 600; color: var(--muted); }

.adm-people { margin: 0; padding: 6px; list-style: none; }
.adm-people a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm);
    color: var(--ink-2) !important; font-weight: 600; text-decoration: none; }
.adm-people a:hover { background: var(--surface-2); color: var(--ink) !important; }
.adm-people a i { margin-left: auto; font-size: 11px; color: var(--line-strong); }
.adm-avatar--sm { width: 30px; height: 30px; font-size: 12px; border-radius: 9px; }

.adm-copy { display: flex; gap: 6px; }
.adm-copy .adm-input { min-height: 36px; padding: 6px 10px; font-size: 13px; color: var(--ink-2); background: var(--surface-2); }
.adm-icon-btn.is-done { background: var(--green-50); border-color: #bfe5d0; color: var(--green) !important; }


/* Services list */
.adm-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.adm-search { position: relative; flex: 0 1 360px; margin: 0; }
.adm-search i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 13px; }
.adm-search input { width: 100%; height: 38px; padding: 0 12px 0 34px; border: 1px solid var(--line-strong); border-radius: 999px;
    background: var(--surface); font: inherit; font-size: 14px; color: var(--ink); }
.adm-search input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 18%, transparent); }
.adm-toolbar__count { font-size: 13px; font-weight: 600; color: var(--muted); }

.adm-svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.adm-svc-grid > .adm-card + .adm-card { margin-top: 0; }
.adm-svc-card { position: relative; display: flex; flex-direction: column; overflow: hidden; transition: box-shadow .15s, transform .15s; }
.adm-svc-card[hidden] { display: none; }
.adm-svc-card:hover { box-shadow: var(--shadow); }
.adm-svc-card__media { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 7; background: var(--sw);
    color: #fff; font-size: 34px; font-weight: 800; border-bottom: 3px solid var(--sw); }
.adm-svc-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.adm-svc-card__price { position: absolute; right: 10px; bottom: 10px; padding: 3px 10px; border-radius: 999px;
    background: rgba(255, 255, 255, .95); color: var(--ink); font-size: 13px; font-weight: 800; box-shadow: 0 2px 8px rgba(13, 27, 42, .15); }
.adm-svc-card__body { flex: 1; padding: 12px 14px 10px; }
.adm-svc-card__body h2 { margin: 0; font-size: 15.5px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
.adm-main .adm-svc-card__link { color: var(--ink); text-decoration: none; }
.adm-svc-card__link::after { content: ""; position: absolute; inset: 0; }   /* whole card is clickable */
.adm-svc-card:hover .adm-svc-card__link { color: var(--teal); }
.adm-svc-card__body p { margin: 4px 0 10px; font-size: 13px; color: var(--muted);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.adm-svc-card__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; list-style: none; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.adm-svc-card__meta i { color: var(--muted); margin-right: 3px; }
.adm-svc-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px;
    padding: 8px 10px 8px 14px; border-top: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--muted); }
.adm-svc-card__foot .adm-icon-row { position: relative; z-index: 1; }   /* above the card-wide link */
.adm-svc-card__foot .adm-icon-btn { width: 30px; height: 30px; font-size: 13px; }
.adm-svc-card__warn { color: var(--amber); }
.adm-svc-card__mine { color: var(--green); }
.adm-svc-card--add { border-style: dashed; box-shadow: none; background: transparent; }
.adm-svc-card--add a { flex: 1; display: grid; place-content: center; justify-items: center; gap: 8px; min-height: 220px;
    color: var(--muted) !important; text-decoration: none; }
.adm-svc-card--add:hover { border-color: var(--teal); background: var(--teal-50); }
.adm-svc-card--add:hover a { color: var(--teal) !important; }
.adm-svc-card--add i { font-size: 20px; }

/* Alerts and toasts */
.adm-alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 500; background: var(--teal-50); color: var(--teal-600); }
.adm-alert i { margin-top: 3px; }
.adm-alert--error { background: var(--red-50); color: var(--red); }
.adm-alert--success { background: var(--green-50); color: var(--green); }
.adm-alert--warning { background: var(--amber-50); color: var(--amber); }
.adm-alert[hidden] { display: none; }

.adm-toasts { position: fixed; right: 20px; bottom: 20px; z-index: 1090; display: grid; gap: 10px; width: min(380px, calc(100vw - 32px)); }
.adm-toast { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: var(--radius);
    background: var(--ink); color: #fff; box-shadow: 0 12px 32px -8px rgba(13, 27, 42, .45); font-family: var(--font);
    font-size: 14px; font-weight: 500; animation: adm-toast-in .25s ease both; }
.adm-toast > i { margin-top: 3px; }
.adm-toast--success > i { color: #6ee7b7; }
.adm-toast--error > i { color: #fca5a5; }
.adm-toast--warning > i { color: #fcd34d; }
.adm-toast span { flex: 1; }
.adm-toast button { border: 0; background: none; color: #9fb0c1; padding: 0; line-height: 1; cursor: pointer; }
.adm-toast button:hover { color: #fff; }
@keyframes adm-toast-in { from { opacity: 0; transform: translateY(8px); } }

/* Confirmation dialog (native <dialog>) */
.adm-dialog { width: min(420px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: var(--radius);
    box-shadow: 0 24px 64px -12px rgba(13, 27, 42, .45); font-family: var(--font); color: var(--ink); }
.adm-dialog::backdrop { background: rgba(13, 27, 42, .4); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.adm-dialog__body { display: flex; gap: 14px; padding: 22px 22px 18px; }
.adm-dialog__icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
    background: var(--red-50); color: var(--red); }
.adm-dialog h2 { margin: 0 0 4px; font-size: 17px; font-weight: 800; }
.adm-dialog p { margin: 0; color: var(--muted); }
.adm-dialog__foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px; background: #fbfcfd;
    border-top: 1px solid var(--line); }

/* Bootstrap modals used by the calendar */
.adm-body .modal-content { border: 0; border-radius: var(--radius); box-shadow: 0 24px 64px -12px rgba(13, 27, 42, .45);
    font-family: var(--font); }
.adm-body .modal-header { padding: 18px 22px; border-bottom: 1px solid var(--line); }
.adm-body .modal-title { font-size: 17px; font-weight: 800; color: var(--ink); }
.adm-body .modal-body { padding: 20px 22px; }
.adm-body .modal-footer { padding: 14px 22px; gap: 8px; border-top: 1px solid var(--line); background: #fbfcfd;
    border-radius: 0 0 var(--radius) var(--radius); }
.adm-body .modal-footer > * { margin: 0; }
.adm-body .modal-backdrop.show { opacity: .45; background: var(--ink); }
.adm-body .modal-footer .adm-btn { height: 38px; }
.adm-modal-spacer { flex: 1; }

/* Calendar page */
.adm-cal-hints { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.adm-cal-hints li { display: inline-flex; align-items: center; gap: 7px; }
.adm-cal-hints kbd { padding: 1px 6px; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 5px;
    background: var(--surface); color: var(--ink-2); font: 600 11.5px var(--font); }
.adm-main .fc .fc-toolbar.fc-header-toolbar { margin-bottom: 10px; gap: 8px; flex-wrap: wrap; }
.adm-main .fc .fc-toolbar-title { font-size: 20px; }
.adm-main .fc .fc-button { padding: 6px 12px; border-radius: var(--radius-sm); text-transform: capitalize; }
.adm-main .fc .fc-button-group > .fc-button:not(:first-child) { margin-left: -1px; }
.adm-main .fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-number {
    display: inline-grid; place-items: center; min-width: 26px; height: 26px; margin: 4px; padding: 0 6px;
    border-radius: 999px; background: var(--teal); color: #fff;
}
.adm-main .fc .fc-daygrid-event { border-radius: 6px; padding: 1px 4px; font-size: 12.5px; }
.adm-main .fc .fc-event { cursor: pointer; }
.adm-main .fc .highlight-weekend { background: #fafbfc; }
.adm-main .fc .fc-list-event:hover td { background: var(--teal-50); }

#event-list-container:empty { display: none; }
#event-list-container { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
#event-list-container h4 { font-size: 15px !important; font-weight: 800 !important; }
#event-list-container hr { margin: 10px 0; border-color: var(--line); opacity: 1; }
#event-list-container .event-list-item-appt { font-weight: 700; color: var(--teal); cursor: pointer; }
#event-list-container .djangoAppt_btn-new-event { margin-top: 6px; border: 0; border-radius: 999px; background: var(--teal); font-weight: 700; }

#customContextMenu { min-width: 190px; padding: 6px !important; border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: var(--surface); box-shadow: var(--shadow); font-family: var(--font); }
#customContextMenu ul { margin: 0; padding: 0; list-style: none; }
#customContextMenu a { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 6px;
    color: var(--ink-2); font-weight: 600; font-size: 14px; text-decoration: none; }
#customContextMenu a:hover { background: var(--teal-50); color: var(--teal-600); }

/* Appointment form inside the calendar modal */
#eventModalBody { display: grid; gap: 14px; }
#eventModalBody .adm-field > label { font-size: 13px; }
#eventModalBody input:not([type=checkbox]), #eventModalBody select {
    width: 100%; min-height: 40px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
    background: var(--surface); font: inherit; font-size: 14.5px; color: var(--ink);
}
#eventModalBody input:focus, #eventModalBody select:focus { outline: none; border-color: var(--teal);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 18%, transparent); }
#eventModalBody input:disabled, #eventModalBody select:disabled { background: var(--surface-2); color: var(--ink-2); opacity: 1; }
#eventModalBody .adm-check { padding: 8px 12px; }
#eventModalBody #emailError { color: var(--red); font-size: 13px; font-weight: 600; }
/* The package script hides the end-time label and input separately; hide their wrapper too. */
#eventModalBody .adm-field:has(> input[style*="display: none"]) { display: none; }

@media (max-width: 1024px) {
    .adm-cols, .adm-svc { grid-template-columns: minmax(0, 1fr); }
    .adm-svc-hero { grid-template-columns: minmax(0, 1fr); }
    .adm-svc-hero__media { min-height: 0; aspect-ratio: 16 / 7; }
    .adm-svc-hero__body { border-left: 0; border-top: 4px solid var(--sw); }
    .adm-preview { position: static; max-width: 420px; }
}

@media (max-width: 720px) {
    .adm-card__head { padding: 10px 12px; }
    .adm-card__body { padding: 12px; }
    .adm-table thead { display: none; }
    .adm-table, .adm-table tbody, .adm-table tr, .adm-table td { display: block; width: 100%; }
    .adm-table tr { padding: 10px 12px; border-bottom: 1px solid var(--line); }
    .adm-table tr:last-child { border-bottom: 0; }
    .adm-table td { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border: 0; text-align: right; }
    .adm-table td[data-label]::before { content: attr(data-label); font-weight: 600; color: var(--muted); text-align: left; }
    .adm-table td.adm-td-main { display: block; text-align: left; padding-bottom: 6px; }
    .adm-table td:last-child { justify-content: flex-end; padding-top: 8px; }
    .adm-table tbody tr:hover { background: none; }
    .adm-hero { padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .adm-toast { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .adm-demo-pill span { display: none; }
}

@media (max-width: 960px) {
    .adm-sidebar { transform: translateX(-100%); visibility: hidden; transition: transform .2s ease, visibility .2s; }
    .adm-nav-open .adm-sidebar { transform: none; visibility: visible; box-shadow: 0 0 40px rgba(0, 0, 0, .3); }
    .adm-main-col { margin-left: 0; }
    .adm-menu-btn { display: inline-grid; }
    .adm-topbar { padding: 0 16px; }
    .adm-main { padding: 14px 12px; }
    .adm-savebar .adm-btn { flex: 1; justify-content: center; }
    .adm-main .calendar-wrapper { padding: 8px; }
    .adm-footer { padding: 16px; }
}

@media (max-width: 560px) {
    .adm-demo-pill, .adm-topbar .adm-btn span { display: none; }
    .adm-topbar .adm-btn { width: 36px; padding: 0; justify-content: center; }
    .adm-page-head h1 { font-size: 20px; }
    .adm-page-actions { width: 100%; }
    .adm-page-actions > * { flex: 1; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    .adm-sidebar, .adm-nav a { transition: none; }
}

/* Footer note: the dashboard is the package's pages, restyled by the demo's templates. */
.adm-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.adm-footer__note { margin-left: auto; }
.adm-footer__note i { color: var(--teal); margin-right: 2px; }
@media (max-width: 767px) { .adm-footer__note { margin-left: 0; flex-basis: 100%; } }
