:root {
    color-scheme: light;
    --text: #242036;
    --muted: #686477;
    --line: #ebe8f2;
    --background: #f8f7fc;
    --purple: #6749bd;
    --purple-dark: #50339c;
    --purple-light: #eee8fd;
    --accent: #6749bd;
    --panel: #ffffff;
    --white: #fff;
    --hour: 63px;
    font-family: "DM Sans", "Noto Sans", Arial, sans-serif;
    font-size: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--text); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .date-control:focus-within { outline: 2px solid var(--purple); outline-offset: 3px; }
h1, h2, p { margin: 0; }
h1, h2 { letter-spacing: -.035em; }
h1 { font-size: clamp(28px, 3vw, 36px); line-height: 1.18; }
h2 { font-size: 19px; line-height: 1.3; }
small { font-size: 12px; }
svg { flex: none; vertical-align: middle; }
.sr-only { position: absolute; height: 1px; width: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.shell { min-height: 100vh; display: grid; grid-template-columns: 230px minmax(0, 1fr); }
.sidebar { display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; padding: 26px 16px 16px; background: var(--white); border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; width: fit-content; padding-left: 8px; font-size: 17px; letter-spacing: .085em; font-weight: 800; line-height: 1.14; }
.brand small { color: var(--muted); display: block; font-size: 10px; font-weight: 650; letter-spacing: .15em; margin-top: 5px; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; color: white; background: #7557c6; border-radius: 13px; }
.brand-mark svg { width: 26px; height: 26px; }
nav { margin-top: 42px; }
.nav-label { padding: 0 9px; margin-bottom: 10px; color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.nav-link + .nav-label { margin-top: 31px; }
.nav-link { display: flex; gap: 11px; align-items: center; min-height: 45px; padding: 0 10px; margin: 3px 0; border-radius: 9px; color: #565166; font-size: 13px; font-weight: 620; white-space: nowrap; }
.nav-link:hover { background: #f6f3fc; color: var(--purple-dark); }
.nav-link.active { color: var(--purple-dark); background: var(--purple-light); font-weight: 750; }
.profile { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 14px 4px 0; border-top: 1px solid var(--line); }
.avatar { background: #eae1fa; color: #624399; flex: none; display: grid; place-items: center; width: 35px; height: 35px; border-radius: 50%; font-size: 12px; font-weight: 750; }
.profile-text { flex: 1; min-width: 0; }
.profile-text strong { overflow-wrap: anywhere; }
.profile-text small { display: block; color: var(--muted); margin-top: 2px; }
.icon-button { display: grid; place-items: center; border: 0; background: none; color: var(--muted); border-radius: 8px; width: 34px; height: 34px; }
.icon-button:hover { background: var(--purple-light); color: var(--purple-dark); }
.topbar { min-height: 63px; background: var(--white); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 32px; color: var(--muted); font-size: 13px; }
.topbar strong { color: var(--text); font-weight: 690; }
.breadcrumb-arrow svg { width: 14px; margin: 0 6px; }
.demo-indicator { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); padding: 5px 9px; border-radius: 20px; font-size: 11px; white-space: nowrap; }
.demo-indicator i { width: 6px; height: 6px; background: #9273d4; border-radius: 100%; }
.workspace > main { max-width: 1600px; margin: 0 auto; padding: 29px 32px 32px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-heading p, .panel-head p { color: var(--muted); margin-top: 5px; }
.heading-actions, .date-toolbar, .inline-form, .journal-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.heading-actions { gap: 12px; }
.button, .square, .date-control { min-height: 39px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border-radius: 8px; border: 1px solid var(--line); background: white; color: var(--text); padding: 0 13px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.button svg, .square svg, .date-control svg, .text-link svg { width: 16px; height: 16px; }
.primary { background: var(--purple); color: white; border-color: var(--purple); }
.primary:hover { background: var(--purple-dark); border-color: var(--purple-dark); }
.quiet:hover, .square:hover, .date-control:hover { background: var(--purple-light); }
.square { width: 37px; padding: 0; color: var(--muted); }
.date-control { position: relative; overflow: hidden; }
.date-control svg { color: var(--purple); }
.date-control input { position: absolute; inset: 0; opacity: 0; min-width: 0; width: 100%; height: 100%; cursor: pointer; }
.date-control input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; cursor: pointer; }
.hero { min-height: 224px; border-radius: 15px; display: flex; align-items: center; overflow: hidden; background: #e8d3e3 url('spa-banner.webp') center 61% / cover; position: relative; isolation: isolate; }
.hero::before { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg,#ebd9ed 0%,#ebd9edeb 32%,#ebd9ed44 65%,transparent 86%); }
.hero-content { padding: 23px 29px; }
.hero-date { display: inline-flex; gap: 7px; align-items: center; background: #ffffff90; border-radius: 20px; padding: 6px 10px; color: #513a73; font-size: 11px; font-weight: 750; }
.hero-date svg { width: 14px; height: 14px; }
.hero-date::first-letter { text-transform: uppercase; }
.hero h2 { font-size: clamp(29px, 4.3vw, 43px); margin-top: 8px; color: #302044; }
.hero p { color: #4c3a5b; margin-top: 3px; }
.hero-link { margin-top: 16px; border-color: transparent; color: #543797; }
.hero-link:hover { background: #f4ebff; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin: 18px 0; }
.metric, .panel { background: white; border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 2px 4px #30234c04; }
.metric { padding: 14px 15px; min-width: 0; }
.metric-head { display: flex; align-items: center; gap: 9px; min-height: 35px; color: #555168; font-weight: 650; font-size: 12px; }
.metric-icon, .load-symbol { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; }
.metric-icon svg, .load-symbol svg { width: 18px; height: 18px; }
.purple, .tone-0 { color: #6743ae; background: #eee7fc; }
.green, .tone-1 { color: #27735a; background: #e7f5ec; }
.pink, .tone-2 { color: #a04478; background: #fae9f2; }
.sand, .tone-3 { color: #8a5b20; background: #fcf0dd; }
.metric > strong { display: block; font-size: clamp(20px, 2.8vw, 28px); font-weight: 770; letter-spacing: -.045em; margin: 7px 0 1px; overflow-wrap: anywhere; }
.metric small { color: var(--muted); display: block; font-size: 11px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(260px, 1fr); gap: 17px; align-items: start; }
.panel { min-width: 0; }
.panel-head { padding: 17px 17px 14px; display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.panel-head p { font-size: 12px; }
.text-link { color: var(--purple-dark); display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; }
.text-link:hover { text-decoration: underline; }
.panel-head .text-link { white-space: nowrap; }
.table-scroll, .schedule-scroll { overflow: auto; }
table { width: 100%; text-align: left; border-collapse: collapse; font-size: 12px; }
th { background: #f9f7fc; color: #635d72; font-weight: 680; white-space: nowrap; }
td, th { padding: 10px 13px; border-top: 1px solid var(--line); vertical-align: middle; }
tr > :first-child { padding-left: 17px; }
tr > :last-child { padding-right: 17px; }
td small { display: block; margin-top: 3px; color: var(--muted); }
.time { font-weight: 740; white-space: nowrap; }
.visit-person { display: flex; align-items: center; gap: 8px; width: fit-content; }
.visit-person .avatar { width: 32px; height: 32px; font-size: 10px; }
.visit-person small { font-size: 11px; }
.muted { color: var(--muted); }
.row-arrow { display: grid; place-items: center; color: #6d6481; min-width: 23px; min-height: 28px; }
.row-arrow svg { width: 15px; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 20px; background: #f2eefb; color: #62439e; font-weight: 690; font-size: 10px; white-space: nowrap; }
.badge::before { content: ''; width: 5px; height: 5px; background: currentColor; border-radius: 50%; }
.badge.completed, .booking-block.completed { background: #e7f6ec; color: #24754f; }
.badge.reserved, .booking-block.reserved { background: #fbf0dc; color: #875a23; }
.badge.cancelled, .booking-block.cancelled { background: #f5e7ee; color: #8e3c61; }
.load-item { padding: 12px 16px; }
.load-item:last-child { padding-bottom: 21px; }
.load-meta { display: flex; align-items: center; gap: 9px; font-size: 12px; }
.load-meta small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.load-meta b { margin-left: auto; }
.load-symbol { width: 31px; height: 31px; }
progress { appearance: none; display: block; height: 6px; width: 100%; border: 0; border-radius: 6px; overflow: hidden; margin-top: 8px; color: #8a6ad0; background: #efeaf8; }
progress::-webkit-progress-bar { background: #efeaf8; }
progress::-webkit-progress-value { background: #8a6ad0; border-radius: 6px; }
progress::-moz-progress-bar { background: #8a6ad0; border-radius: 6px; }
.empty, .filter-result { padding: 18px; color: var(--muted); }
.journal-head { padding: 15px; }
.segmented { margin-left: auto; display: flex; background: #f5f2fa; padding: 3px; border: 1px solid var(--line); border-radius: 8px; gap: 2px; }
.segmented a { padding: 7px 12px; border-radius: 6px; font-weight: 680; color: var(--muted); }
.segmented a.selected { background: white; color: var(--purple-dark); box-shadow: 0 1px 3px #24153322; }
.journal-filters { display: flex; align-items: end; gap: 8px; flex-wrap: wrap; padding: 0 15px 15px; }
.journal-filters label { flex: 1 1 125px; }
.journal-filters .text-link { min-height: 39px; }
.time-range { display: flex; align-items: end; gap: 6px; flex: 1 1 179px; }
.time-range label { min-width: 84px; }
label { display: grid; align-content: start; gap: 5px; color: #534b63; font-weight: 680; font-size: 12px; }
input, select, textarea { width: 100%; min-width: 0; min-height: 39px; padding: 7px 9px; border: 1px solid #e3deed; border-radius: 8px; color: var(--text); background: #fff; font-size: 13px; font-weight: 450; }
input::placeholder { color: #797285; }
textarea { resize: vertical; }
.schedule { min-width: calc(62px + var(--lanes) * 145px); }
.schedule-top, .schedule-body { display: flex; }
.schedule-top { background: #f8f6fc; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.axis-head, .axis { flex: 0 0 61px; }
.axis-head { padding: 10px 5px; text-align: center; color: var(--muted); font-size: 11px; align-self: center; }
.schedule-group { flex: 1; min-width: 0; text-align: center; border-left: 1px solid var(--line); }
.schedule-group strong { display: block; padding: 9px 5px; font-size: 12px; }
.schedule-group.current-day { background: var(--purple-light); color: var(--purple-dark); }
.axis span { display: block; height: var(--hour); text-align: center; border-bottom: 1px solid var(--line); color: var(--muted); padding: 5px 0; font-size: 11px; }
.lane { min-width: 0; flex: 1; height: calc(var(--hours) * var(--hour)); border-left: 1px solid var(--line); position: relative; }
.slot { display: block; height: calc(var(--hour) / 2); border-bottom: 1px dashed var(--line); }
.slot:nth-child(even) { border-bottom-style: solid; }
.slot.closed { background: #f6f4fa; }
a.slot:hover, a.slot:focus-visible { background: #eee8fd; }
a.slot:hover::after { content: '+'; display: grid; place-items: center; height: 100%; color: var(--purple-dark); }
.booking-block { position: absolute; display: block; left: calc(var(--offset) + 2px); width: calc(var(--width) - 4px); top: calc(var(--top) * var(--hour)); height: calc(var(--length) * var(--hour)); padding: 3px 5px; border-radius: 6px; background: #eee6fd; color: #583996; border-left: 3px solid currentColor; font-size: 11px; overflow: hidden; }
.booking-block:hover { filter: brightness(.96); z-index: 1; }
.booking-block strong, .booking-block small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.booking-block small { font-size: 10px; }
.schedule-week .booking-block span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.back-link { margin-bottom: 11px; }
.detail-grid, .settings-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: start; gap: 16px; }
.settings-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.detail-panel { padding: 18px; }
.detail-panel > h2 { margin-bottom: 15px; }
.form-grid { display: grid; gap: 12px; }
fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
fieldset:disabled input, fieldset:disabled select, fieldset:disabled textarea { opacity: 1; background: #f8f7fb; }
.form-pair { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.checkbox { display: flex; align-items: center; }
.checkbox input { width: 16px; min-height: 16px; accent-color: var(--purple); }
.fit { justify-self: start; }
.alert, .notice { padding: 11px 13px; border: 1px solid #f3cfdc; background: #fff0f5; color: #83294b; border-radius: 8px; margin-bottom: 13px; }
.notice { border-color: #bde7cc; background: #eaf8ee; color: #246a46; }
.totals { margin: 0 0 14px; display: grid; gap: 8px; }
.totals div, .payment-history li { display: flex; justify-content: space-between; gap: 8px; }
.totals dd { margin: 0; font-weight: 750; }
.totals div:last-child { padding-top: 8px; border-top: 1px solid var(--line); }
.payment-history { list-style: none; padding: 0; margin: 14px 0; }
.payment-history li { border-top: 1px solid var(--line); padding: 8px 0; align-items: center; }
.payment-history li small { display: block; color: var(--muted); }
.payment-total { font-size: 22px; }
.inline-form select { width: auto; }
.role-notes { color: var(--muted); font-size: 12px; padding: 0 18px 0 33px; }
.role-notes li + li { margin-top: 5px; }
.login-body { display: grid; min-height: 100dvh; place-items: center; padding: 20px; background: radial-gradient(ellipse at 72% 12%,#eaddf1 0%,transparent 55%),var(--background); }
.login-card { width: min(100%, 410px); background: white; border: 1px solid var(--line); border-radius: 16px; padding: 28px; box-shadow: 0 10px 45px #4e386619; }
.login-card .brand { padding: 0; margin-bottom: 25px; }
.login-card h1 { font-size: 29px; margin-bottom: 18px; }
.login-card form button { margin-top: 3px; }
.demo-note { margin-top: 14px; padding: 10px; border-radius: 8px; background: #f7f4fc; color: var(--muted); font-size: 12px; }
@media (max-width: 1170px) {
    .shell { grid-template-columns: 199px minmax(0,1fr); }
    .sidebar { padding-inline: 11px; }
    .topbar, .workspace > main { padding-inline: 22px; }
    .metrics { gap: 10px; }
    .dashboard-grid { gap: 12px; }
    .bookings th, .bookings td { padding-inline: 8px; }
}
@media (max-width: 990px) {
    .dashboard-grid { grid-template-columns: minmax(0,1fr); }
    .detail-grid { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 745px) {
    .shell { display: block; }
    .sidebar { position: static; height: auto; flex-direction: row; align-items: center; flex-wrap: wrap; padding: 11px 13px 5px; gap: 7px; border-right: 0; border-bottom: 1px solid var(--line); }
    .sidebar .brand { padding: 0; }
    .sidebar nav { order: 2; display: flex; gap: 5px; flex: 0 0 100%; overflow: auto; margin-top: 0; }
    .nav-label { display: none; }
    .nav-link { min-height: 36px; padding: 0 8px; gap: 6px; }
    .nav-link svg { width: 16px; height: 16px; }
    .profile { margin: 0 0 0 auto; padding: 0; border: 0; }
    .profile .avatar { display: none; }
    .topbar { min-height: 44px; }
    .topbar, .workspace > main { padding-inline: 13px; }
    .workspace > main { padding-top: 18px; }
    .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .hero-content { padding: 17px; }
    .settings-grid { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 400px) {
    .date-toolbar { gap: 3px; }
    .square { width: 30px; }
    .segmented { margin-left: 0; }
    .profile-text small { display: none; }
    .bookings table { min-width: 450px; }
}

.finance-filter { padding-top: 15px; }
.finance-filter .alert { margin: 0 15px 15px; }
.finance-section { margin-top: 16px; }
.money-in, .money-out { font-weight: 700; white-space: nowrap; }
.money-in { color: #24754f; }
.money-out { color: #8e3c61; }
@media (min-width: 746px) {
    .sidebar nav { overflow-y: auto; margin-bottom: 12px; }
}
.ledger-grid { display: grid; grid-template-columns: minmax(0, 2.5fr) minmax(255px, 1fr); gap: 16px; align-items: start; margin-top: 16px; }
[hidden] { display: none !important; }
@media (max-width: 990px) {
    .ledger-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 745px) {
    .sidebar nav .nav-link { flex: none; }
}

.sidebar-nav { min-width: 0; }
.nav-link span { white-space: nowrap; }
.clients-filter { max-width: 500px; }
.setup-checklist { margin-bottom: 16px; }
.setup-steps { margin: 0; padding-left: 1.2rem; display: grid; gap: 12px; }
.setup-steps li { display: grid; gap: 2px; }
.setup-steps li.done strong { color: var(--muted); text-decoration: line-through; }
.archive-details { margin-top: 8px; }
.archive-details summary { cursor: pointer; color: var(--muted); }
.archive-details[open] summary { margin-bottom: 10px; }
.client-picker { display: grid; gap: 8px; }
.client-picker-field { position: relative; }
.client-picker-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.client-picker-hint { margin: 0; }
.client-picker-results {
    position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20;
    max-height: 240px; overflow: auto; padding: 6px;
    border-radius: 12px; background: #fff;
    box-shadow: 0 10px 30px rgba(20, 16, 30, 0.16);
    border: 1px solid color-mix(in srgb, var(--muted) 28%, transparent);
}
.client-picker-item {
    display: block; width: 100%; text-align: left; border: 0; background: transparent;
    padding: 10px 12px; border-radius: 8px; cursor: pointer; font: inherit; color: inherit;
}
.client-picker-item:hover, .client-picker-item:focus {
    background: color-mix(in srgb, var(--accent) 12%, transparent); outline: none;
}
.client-picker-empty { padding: 10px 12px; color: var(--muted); }
.services-table tr.clickable-row { cursor: pointer; }
.services-table tr.clickable-row:hover td {
    background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.clients-panel { padding: 0; overflow: hidden; }
.clients-toolbar {
    display: grid; gap: 12px;
    padding: 16px 17px 14px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, #fcfbfe 0%, #fff 100%);
}
.clients-filter {
    max-width: none; padding: 0; align-items: end;
}
.clients-filter label { flex: 1 1 260px; }
.clients-filter .button { min-width: 7.5rem; }
.bulk-toolbar {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
    margin: 0; padding: 10px 12px; border-radius: 10px;
    background: var(--purple-light);
    border: 1px solid color-mix(in srgb, var(--purple) 14%, var(--line));
}
.bulk-select-all {
    display: inline-flex; align-items: center; gap: 8px; margin: 0;
    color: var(--text); font-size: 13px; font-weight: 650;
}
.bulk-select-all input,
.clients-table .check-col input {
    width: 16px; height: 16px; min-height: 16px; accent-color: var(--purple);
}
.clients-meta {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 8px; padding: 10px 17px; border-bottom: 1px solid var(--line);
    background: #faf8fd;
}
.clients-meta .pager-summary { margin: 0; font-size: 12px; font-weight: 620; }
.clients-table-wrap { margin: 0; }
.clients-table { font-size: 13px; }
.clients-table thead th {
    position: sticky; top: 0; z-index: 1;
    background: #f3effa; color: #5a5468; font-size: 11px;
    letter-spacing: .04em; text-transform: uppercase; font-weight: 750;
    border-top: 0; border-bottom: 1px solid var(--line);
}
.clients-table tbody tr { transition: background .12s ease; }
.clients-table tbody tr:hover td { background: #f7f4fc; }
.clients-table .check-col { width: 2.6rem; text-align: center; }
.clients-table .row-actions {
    display: flex; flex-wrap: wrap; gap: 10px; white-space: nowrap;
}
.client-cell {
    display: flex; align-items: center; gap: 10px; min-width: 0;
}
.client-cell .avatar { width: 34px; height: 34px; font-size: 11px; }
.client-cell-text { min-width: 0; display: grid; gap: 2px; }
.client-cell-text .text-link { font-size: 13px; }
.client-source {
    display: inline-flex; align-items: center; width: fit-content;
    padding: 2px 7px; border-radius: 999px; background: #efeaf8;
    color: #6a4f9d; font-size: 10px; font-weight: 700; letter-spacing: .02em;
}
.clients-table .num-col { font-variant-numeric: tabular-nums; font-weight: 650; }
.clients-table .empty-cell { color: var(--muted); }
.clients-pager { padding: 12px 17px 16px; border-top: 1px solid var(--line); }
.danger-link, button.danger-link {
    background: none; border: 0; padding: 0; color: #a33; cursor: pointer; font: inherit;
}
.danger-link:hover, button.danger-link:hover { text-decoration: underline; }
.button.danger {
    color: #8e3c61; border-color: #e7c8d6; background: #fff;
}
.button.danger:hover:not(:disabled) { background: #f9eef3; }
.button:disabled { opacity: .45; cursor: not-allowed; }
.heading-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.catalog-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }
.service-catalog, .catalog-list { display: grid; gap: 14px; margin: 12px 0 20px; }
.service-card, .catalog-item {
    padding: 12px 14px; border-radius: 12px;
    background: color-mix(in srgb, var(--panel) 92%, var(--muted));
}
.service-card header { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.service-card header small { display: block; color: var(--muted); margin-top: 2px; }
.service-variant-form, .catalog-delete { margin-top: 10px; }
.variant-edit-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.variant-edit-row {
    padding: 10px; border-radius: 10px;
    background: color-mix(in srgb, var(--panel) 96%, #000);
}
.variant-edit-form { margin: 0; }
.service-preset-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.settings-subheading { margin: 18px 0 8px; font-size: 1rem; }
@media (max-width: 745px) {
    .service-preset-grid { grid-template-columns: 1fr; }
}
.pager-summary { margin: 0 0 10px; }
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.pager-pages { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pager-pages a, .pager-pages .current, .pager-pages span {
    min-width: 2rem; height: 2rem; padding: 0 .55rem; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 8px; text-decoration: none; color: var(--text);
}
.pager-pages a { background: color-mix(in srgb, var(--panel) 88%, var(--muted)); }
.pager-pages a:hover { background: color-mix(in srgb, var(--accent) 18%, var(--panel)); }
.pager-pages .current { background: var(--accent); color: #fff; font-weight: 600; }

.receipt-qr-panel { text-align: center; }
.receipt-qr {
    display: block; margin: 8px auto 14px; width: 200px; height: 200px;
    background: #fff; border-radius: 12px; padding: 10px;
    box-sizing: content-box;
}
.receipt-qr-payload {
    word-break: break-all; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .85rem; text-align: left;
}
.heading-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.receipt-view-grid { align-items: start; }
.receipt-slip {
    max-width: 26rem;
    margin: 0 auto;
    padding: 1.4rem 1.2rem 1.6rem;
    background: linear-gradient(180deg, #fffdf8 0%, #f7f1e6 100%);
    color: #1d1a16;
    border: 1px solid color-mix(in srgb, #8a7460 28%, transparent);
    border-radius: 4px;
    box-shadow: 0 18px 40px color-mix(in srgb, #2a2118 12%, transparent);
    font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    font-size: .92rem;
    line-height: 1.35;
}
.receipt-slip-head { text-align: center; margin-bottom: 1rem; }
.receipt-brand {
    margin: 0;
    font-family: "DM Sans", "Noto Sans", Arial, sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: .12em;
}
.receipt-brand-sub { margin: .1rem 0 .8rem; letter-spacing: .18em; font-size: .72rem; opacity: .7; }
.receipt-slip-head h2 { margin: 0 0 .35rem; font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.receipt-slip-head p { margin: .15rem 0; }
.receipt-meta, .receipt-pay, .receipt-fiscal {
    display: grid; gap: .35rem; margin: 0 0 1rem;
}
.receipt-meta div, .receipt-pay div, .receipt-fiscal div,
.receipt-line-main {
    display: flex; justify-content: space-between; gap: .75rem;
}
.receipt-meta dt, .receipt-pay dt, .receipt-fiscal dt { margin: 0; opacity: .65; }
.receipt-meta dd, .receipt-pay dd, .receipt-fiscal dd { margin: 0; text-align: right; }
.receipt-lines { list-style: none; margin: 0 0 1rem; padding: 0.85rem 0; border-top: 1px dashed #b7a48d; border-bottom: 1px dashed #b7a48d; }
.receipt-lines li { margin: 0 0 .75rem; }
.receipt-lines li:last-child { margin-bottom: 0; }
.receipt-lines small { display: block; margin-top: .2rem; opacity: .65; }
.receipt-total { padding-top: .45rem; border-top: 1px solid #b7a48d; font-weight: 700; }
.receipt-slip-qr { text-align: center; margin-top: 1rem; }
.receipt-slip-qr .receipt-qr { width: 160px; height: 160px; margin-bottom: 8px; }

@media print {
    body { background: #fff !important; }
    .sidebar, .topbar, .no-print, .notice, .alert { display: none !important; }
    .shell, .workspace, main {
        display: block !important; width: auto !important; max-width: none !important;
        padding: 0 !important; margin: 0 !important; background: #fff !important;
        border: 0 !important; box-shadow: none !important; min-height: 0 !important;
    }
    .receipt-view-grid { display: block !important; }
    .receipt-slip {
        max-width: none; width: 80mm; margin: 0 auto; box-shadow: none; border: 0;
        background: #fff; border-radius: 0;
    }
}
