:root {
    --ink: #171411;
    --muted: #766f67;
    --line: #e5dfd6;
    --paper: #fcfbf8;
    --soft: #f4f0ea;
    --accent: #0f766e;
    --accent-dark: #093f3b;
    --rose: #9e4058;
    --gold: #b88a3d;
    --gold-soft: #f2e5cc;
    --sidebar: #151210;
    --surface: #ffffff;
    --shadow: 0 18px 45px rgba(36, 27, 18, .08);
    --guest-width: min(80%, 1320px);
    --guest-gutter: max(10%, calc((100% - 1320px) / 2));
}

* {
    box-sizing: border-box;
}

html {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: var(--paper);
    max-width: 100%;
    overflow-x: hidden;
}

h1,
h2,
h3,
.brand {
    font-family: "Figtree", Arial, Helvetica, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.topbar {
    align-items: center;
    background: rgba(251, 252, 250, .94);
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 18px;
    justify-content: space-between;
    min-height: 72px;
    padding: 0 var(--guest-gutter);
    position: sticky;
    top: 0;
    z-index: 5;
}

.auth-layout {
    min-height: 100vh;
    overflow: hidden;
}

.auth-topbar {
    min-height: 64px;
    padding: 0 var(--guest-gutter);
}

.brand {
    color: var(--accent-dark);
    font-size: 1.35rem;
    font-weight: 800;
}

.brand-row {
    align-items: center;
    display: inline-flex;
    gap: 10px;
    min-width: 0;
}

.brand-row img,
.logo-tile img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.logo-tile {
    align-items: center;
    background: #fff;
    border: 1px solid rgba(184, 138, 61, .35);
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .16);
    color: var(--accent-dark);
    display: inline-flex;
    flex: 0 0 38px;
    font-family: "Figtree", Arial, Helvetica, sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    height: 38px;
    justify-content: center;
    overflow: hidden;
    padding: 4px;
    width: 38px;
}

.logo-tile img {
    border-radius: 5px;
}

.brand-light {
    color: #fff;
    margin-bottom: 28px;
}

.sidebar .brand-row {
    display: flex;
    font-size: 1.2rem;
    line-height: 1;
    white-space: nowrap;
}

.sidebar .brand-row > span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav {
    align-items: center;
    display: flex;
    gap: 18px;
}

.nav-button,
.button {
    background: var(--accent);
    border: 0;
    border-radius: 25px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    min-height: 36px;
    padding: 8px 20px;
}

.button:hover {
    background: var(--accent-dark);
}

.button.secondary {
    background: var(--gold-soft);
    border: 1px solid rgba(184, 138, 61, .35);
    color: #5d4318;
}

.button.secondary:hover {
    background: #ead7b6;
}

.button.ghost {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--ink);
}

.button.small {
    min-height: 30px;
    padding: 6px 16px;
}

.hero {
	align-items: center;
	background: #151210;
	background-position: center;
	background-size: cover;
	color: #fff;
	display: flex;
	justify-content: center;
	min-height: 300px;
	overflow: hidden;
	padding: 0 var(--guest-gutter);
	position: relative;
	text-align: center;
}

.hero-copy {
    max-width: 620px;
    position: relative;
    z-index: 1;
}

.hero-slider,
.hero-slide {
    inset: 0;
    position: absolute;
}

.hero-slide {
    animation: heroSlide 18s infinite;
    background-position: center;
    background-size: cover;
    opacity: 0;
}

.hero-slide-1 {
    animation-delay: 0s;
}

.hero-slide-2 {
    animation-delay: 6s;
}

.hero-slide-3 {
    animation-delay: 12s;
}

@keyframes heroSlide {
    0%,
    34% {
        opacity: 1;
    }

    42%,
    100% {
        opacity: 0;
    }
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 3.4rem);
    line-height: .95;
    margin: 0 0 18px;
}

.hero p {
    color: rgba(255, 255, 255, .88);
    font-size: 1.15rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.eyebrow {
    color: var(--gold);
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: 0;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.section {
    padding: 54px var(--guest-gutter) 72px;
}

.section-title {
    margin-bottom: 24px;
}

#promotions .section-title {
    margin-left: auto;
    margin-right: auto;
    max-width: 760px;
    text-align: center;
}

.section-title h2,
.auth-panel h1,
.panel h2 {
    margin: 0;
}

.section-title.compact {
    margin-bottom: 18px;
}

.panel-heading {
    align-items: flex-start;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 18px;
}

.panel-heading .section-title {
    margin-bottom: 0;
}

.panel-heading > .button:only-child,
.panel-heading > .panel-action-row:only-child {
    margin-left: auto;
}

.promo-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
}

.metric-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.metric-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.promo-card,
.metric,
.panel,
.auth-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 22px;
}

.promo-card {
    display: grid;
    flex: 0 1 calc((100% - 36px) / 3);
    justify-items: center;
    min-width: min(100%, 260px);
    text-align: center;
}

.promo-card h3 {
    margin: 0 0 10px;
}

.promo-card .eyebrow {
    color: #bb8f46;
}

.promo-card p {
    color: var(--muted);
    line-height: 1.55;
    margin: 0;
}

.promo-book-button {
    justify-content: center;
    margin-top: 18px;
    width: auto;
}

.contact-section {
    padding-top: 0;
}

.contact-panel {
    align-items: center;
    background: linear-gradient(180deg, #fff, var(--soft));
    border: 1px solid rgba(184, 138, 61, .24);
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr);
    margin: 0 auto;
    max-width: 1120px;
    padding: clamp(22px, 4vw, 36px);
}

.contact-panel h2,
.contact-panel p {
    margin: 0;
}

.contact-panel p:not(.eyebrow) {
    color: var(--muted);
    line-height: 1.55;
    margin-top: 8px;
}

.contact-list {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    gap: 0;
    margin: 0;
    overflow: hidden;
}

.contact-list div {
    align-items: center;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    padding: 12px 14px;
}

.contact-list div + div {
    border-top: 1px solid var(--line);
}

.contact-list dt {
    color: var(--muted);
    font-size: .75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.contact-list dd {
    color: var(--ink);
    font-weight: 800;
    text-align: right;
}

.contact-list a {
    color: var(--accent-dark);
}

.promo-meta {
    border: 1px solid var(--line);
    border-radius: 8px;
    gap: 0;
    overflow: hidden;
    width: 100%;
}

.promo-meta div {
    align-items: center;
    background: #fff;
    justify-content: space-between;
    padding: 11px 12px;
}

.promo-meta div + div {
    border-top: 1px solid var(--line);
}

.promo-meta dt {
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.promo-meta dd {
    color: var(--ink);
    font-size: .9rem;
    text-align: right;
}

dl {
    display: grid;
    gap: 10px;
    margin: 18px 0 0;
}

dl div {
    display: flex;
    justify-content: space-between;
}

dt {
    color: var(--muted);
}

dd {
    font-weight: 700;
    margin: 0;
}

.auth-page {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, .95fr) minmax(360px, .7fr);
    height: calc(100vh - 120px);
    margin: 0 auto;
    padding: 18px 0 24px;
    width: var(--guest-width);
}

.auth-panel {
    align-self: center;
    max-width: 520px;
    padding: clamp(24px, 4vw, 42px);
    width: 100%;
}

.auth-showcase {
    align-items: end;
    background:
        linear-gradient(180deg, rgba(21, 18, 16, .18), rgba(21, 18, 16, .78)),
        var(--login-image);
    background-position: center;
    background-size: cover;
    border-radius: 8px;
    box-shadow: var(--shadow);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 0;
    overflow: hidden;
    padding: clamp(24px, 4vw, 44px);
}

.auth-showcase h1 {
    font-size: clamp(2.6rem, 7vw, 5.4rem);
    line-height: .92;
    margin: 0 0 14px;
    max-width: 680px;
}

.auth-showcase p {
    color: rgba(255, 255, 255, .84);
    line-height: 1.55;
    margin: 0;
    max-width: 560px;
}

.auth-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
}

.auth-points span {
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    color: #fff;
    font-size: .78rem;
    font-weight: 800;
    padding: 8px 11px;
}

.auth-copy {
    color: var(--muted);
    line-height: 1.55;
    margin: 10px 0 0;
}

.error-page {
    align-items: center;
    display: grid;
    min-height: calc(100vh - 136px);
    padding: 32px var(--guest-gutter);
    place-items: center;
}

.error-panel {
    background: #fff;
    border: 1px solid rgba(184, 138, 61, .28);
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 14px;
    justify-items: center;
    max-width: 560px;
    padding: clamp(28px, 5vw, 54px);
    text-align: center;
    width: min(100%, 560px);
}

.error-code {
    align-items: center;
    background: linear-gradient(180deg, rgba(184, 138, 61, .14), rgba(184, 138, 61, .06));
    border: 1px solid rgba(184, 138, 61, .34);
    border-radius: 8px;
    color: var(--accent-dark);
    display: inline-flex;
    font-family: "Figtree", Arial, Helvetica, sans-serif;
    font-size: .9rem;
    font-weight: 800;
    min-height: 38px;
    padding: 0 14px;
}

.error-panel h1,
.error-panel p {
    margin: 0;
}

.error-panel h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1;
}

.error-panel p:not(.eyebrow) {
    color: var(--muted);
    line-height: 1.6;
    max-width: 430px;
}

.booking-page {
    margin: 0 auto;
    padding: 28px 0 58px;
    width: var(--guest-width);
}

.booking-intro {
    margin: 0 auto 22px;
    max-width: 880px;
}

.booking-intro h1 {
    font-size: clamp(2.2rem, 7vw, 4.6rem);
    line-height: .98;
    margin: 0;
}

.booking-intro p {
    color: var(--muted);
    line-height: 1.6;
    max-width: 680px;
}

.booking-shell {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin: 0 auto;
    max-width: 880px;
    padding: clamp(18px, 4vw, 30px);
}

.booking-form {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.booking-form .wide,
.booking-form button {
    grid-column: 1 / -1;
}

.selected-promo {
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-bottom: 18px;
    padding: 14px;
}

.selected-promo span {
    color: var(--gold);
    display: block;
    font-size: .78rem;
    font-weight: 800;
}

.selected-promo strong {
    display: block;
    font-family: "Figtree", Arial, Helvetica, sans-serif;
    font-size: 1.2rem;
    margin-top: 4px;
}

.selected-promo p {
    color: var(--muted);
    margin: 5px 0 0;
}

.auth-form-brand {
    align-items: center;
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.auth-form-brand strong,
.auth-form-brand div > span {
    display: block;
}

.auth-form-brand strong {
    font-family: "Figtree", Arial, Helvetica, sans-serif;
    font-size: 1.05rem;
}

.auth-form-brand div > span {
    color: var(--muted);
    font-size: .82rem;
    font-weight: 700;
}

.form {
    display: grid;
    gap: 14px;
    margin-top: 22px;
}

.filter-bar,
.compact-form {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.filter-bar {
    align-items: end;
    border-bottom: 1px solid var(--line);
    margin-bottom: 18px;
    padding-bottom: 18px;
}

.supplier-filter {
    grid-template-columns: minmax(180px, 1fr) minmax(130px, .55fr) max-content max-content max-content;
}

.customer-filter {
    grid-template-columns: minmax(160px, 1fr) max-content max-content max-content;
}

.action-filter {
    grid-template-columns: minmax(180px, 1fr) minmax(130px, .55fr) max-content max-content max-content;
}

.filter-bar.customer-filter .wide {
    grid-column: auto;
}

.filter-bar.supplier-filter .wide {
    grid-column: auto;
}

.filter-bar.action-filter .wide {
    grid-column: auto;
}

.filter-bar.customer-filter .button,
.filter-bar.supplier-filter .button,
.filter-bar.action-filter .button {
    height: 36px;
    justify-self: start;
    white-space: nowrap;
}

.compact-form {
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-bottom: 18px;
    padding: 16px;
}

.compact-form > .button {
    align-self: end;
    height: 36px;
    justify-self: start;
    max-height: 36px;
}

.compact-form > .button.small {
    height: 30px;
    max-height: 30px;
}

.compact-form .wide,
.filter-bar .wide {
    grid-column: span 2;
}

.multi-select-field select[multiple] {
    min-height: 118px;
}

.compact-form .full {
    grid-column: 1 / -1;
}

.form-panel {
    border-bottom: 1px solid var(--line);
    margin-bottom: 18px;
    padding-bottom: 18px;
}

.form-panel h3 {
    font-size: 1rem;
    margin: 0 0 12px;
}

.table-actions {
    align-items: center;
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    min-width: 130px;
}

.table-actions form {
    margin: 0;
}

.table-actions .button {
    white-space: nowrap;
}

.panel-action-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

details.inline-edit summary {
    color: var(--accent-dark);
    cursor: pointer;
    font-weight: 800;
}

details.inline-edit form {
    margin-top: 12px;
}

.permissions-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.checkbox-row {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 7px;
    display: flex;
    gap: 8px;
    padding: 9px 10px;
}

.checkbox-row input {
    min-height: 0;
    width: auto;
}

.modal-backdrop {
    align-items: center;
    background: rgba(18, 15, 12, .48);
    display: none;
    inset: 0;
    justify-content: center;
    padding: 18px;
    position: fixed;
    z-index: 30;
}

.modal-backdrop.is-open {
    display: flex;
}

.modal-panel {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 8px;
    box-shadow: 0 28px 80px rgba(18, 15, 12, .28);
    max-height: min(760px, calc(100vh - 36px));
    max-width: 980px;
    overflow: auto;
    padding: 22px;
    width: min(980px, 100%);
}

.modal-panel.narrow {
    max-width: 720px;
}

.modal-panel.has-floating-dropdown,
.modal-panel:has(.customer-search-box.is-open),
.modal-panel:has(.product-combobox.is-open),
.modal-panel:has(.product-combobox-results.is-open) {
    overflow: visible;
}

.modal-header {
    align-items: flex-start;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 14px;
}

.modal-header h3 {
    font-family: "Figtree", Arial, Helvetica, sans-serif;
    font-size: 1.2rem;
    margin: 0;
}

.confirm-modal {
    align-items: center;
    background: rgba(18, 15, 12, .48);
    display: none;
    inset: 0;
    justify-content: center;
    padding: 18px;
    position: fixed;
    z-index: 60;
}

.confirm-modal.is-open {
    display: flex;
}

.confirm-panel {
    background: var(--surface);
    border: 1px solid rgba(184, 138, 61, .24);
    border-radius: 8px;
    box-shadow: 0 28px 80px rgba(18, 15, 12, .28);
    display: grid;
    gap: 10px;
    max-width: 420px;
    padding: 22px;
    width: min(420px, 100%);
}

.confirm-panel h2,
.confirm-panel p {
    margin: 0;
}

.confirm-panel h2 {
    font-family: "Figtree", Arial, Helvetica, sans-serif;
    font-size: 1.35rem;
}

.confirm-panel p:not(.eyebrow) {
    color: var(--muted);
    line-height: 1.5;
}

.confirm-reason {
    display: grid;
    gap: 7px;
    margin-top: 4px;
}

.confirm-reason textarea {
    min-height: 88px;
    resize: vertical;
}

.confirm-reason small {
    color: #8a2438;
    font-size: .78rem;
    font-weight: 700;
}

.confirm-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 6px;
}

.modal-close {
    align-items: center;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--ink);
    cursor: pointer;
    display: inline-flex;
    font-size: 1.15rem;
    font-weight: 800;
    height: 36px;
    justify-content: center;
    min-height: 0;
    padding: 0;
    width: 36px;
}

label {
    color: var(--muted);
    display: grid;
    font-weight: 700;
    gap: 7px;
}

input,
select,
textarea {
    border: 1px solid var(--line);
    border-radius: 7px;
    font: inherit;
    min-height: 42px;
    padding: 10px 12px;
    width: 100%;
}

.searchable-select {
    display: grid;
    gap: 6px;
}

.searchable-select input[type="search"] {
    background:
        linear-gradient(180deg, rgba(184, 138, 61, .08), rgba(255, 255, 255, 0)),
        #fff;
    border-color: rgba(184, 138, 61, .28);
    min-height: 34px;
    padding: 7px 10px;
}

.searchable-select select {
    min-height: 38px;
}

.product-combobox {
    display: block;
    position: relative;
}

.product-combobox-results {
    background: #fff;
    border: 1px solid rgba(184, 138, 61, .26);
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(18, 15, 12, .16);
    display: none;
    left: 0;
    margin-top: 0;
    max-height: 260px;
    overflow-y: auto;
    padding: 6px;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    width: 100%;
    z-index: 2600;
}

.product-combobox.is-open .product-combobox-results,
.product-combobox-results.is-open {
    display: grid;
    gap: 4px;
}

.product-combobox-results.is-empty::before {
    color: var(--muted);
    content: "No matching product";
    display: block;
    font-size: .9rem;
    font-weight: 700;
    padding: 10px;
}

.product-combobox-results button {
    background: transparent;
    border: 0;
    border-radius: 7px;
    color: var(--text);
    cursor: pointer;
    display: grid;
    font-size: .92rem;
    gap: 2px;
    justify-items: start;
    min-height: 0;
    padding: 9px 10px;
    text-align: left;
    width: 100%;
}

.product-combobox-results button:hover,
.product-combobox-results button:focus {
    background: rgba(184, 138, 61, .12);
    outline: none;
}

.product-combobox-results small {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 700;
}

input[readonly] {
    background: #f7f4ef;
    color: var(--muted);
    cursor: default;
}

select,
option,
button,
textarea {
    font-family: "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
}

.alert {
    background: rgba(255, 241, 243, .98);
    border: 1px solid #f1c5cd;
    border-left: 4px solid #b6465f;
    border-radius: 10px;
    box-shadow: 0 18px 42px rgba(20, 18, 14, .18);
    color: #8a2438;
    font-size: .88rem;
    font-weight: 700;
    line-height: 1.35;
    max-width: min(420px, calc(100vw - 32px));
    padding: 13px 16px;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: opacity .28s ease, transform .28s ease, visibility .28s ease;
    width: max-content;
    z-index: 2200;
}

.alert.success {
    background: rgba(236, 248, 243, .98);
    border-color: #bfe6d7;
    border-left-color: #7aaf34;
    color: var(--accent-dark);
}

.alert.is-hiding {
    opacity: 0;
    transform: translate(-50%, calc(-50% - 8px));
    visibility: hidden;
}

@media (max-width: 640px) {
    .alert {
        left: 14px;
        max-width: none;
        right: 14px;
        top: 50%;
        transform: translateY(-50%);
        width: auto;
    }

    .alert.is-hiding {
        transform: translateY(calc(-50% - 8px));
    }
}

.admin-shell {
    background:
        linear-gradient(180deg, rgba(244, 240, 234, .75), rgba(252, 251, 248, 1) 42%),
        var(--paper);
    display: grid;
    grid-template-columns: 268px 1fr;
    max-width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
}

.mobile-menu-toggle,
.mobile-menu-close {
    display: none;
}

.sidebar {
    background:
        linear-gradient(180deg, rgba(184, 138, 61, .08), transparent 28%),
        var(--sidebar);
    color: rgba(255, 255, 255, .78);
    display: grid;
    align-content: start;
    gap: 5px;
    min-width: 0;
    overflow-y: auto;
    padding: 22px;
    position: sticky;
    top: 0;
    /* height: 100vh; */
}

.nav-divider,
.nav-section {
    background: rgba(255, 255, 255, .09);
    height: 1px;
    margin: 8px 2px;
}

.nav-section {
    align-items: center;
    background: transparent;
    color: rgba(255, 255, 255, .42);
    display: flex;
    font-size: .68rem;
    font-weight: 800;
    height: auto;
    margin: 10px 2px 3px;
    text-transform: uppercase;
}

.nav-section::after {
    background: rgba(255, 255, 255, .09);
    content: "";
    flex: 1;
    height: 1px;
    margin-left: 10px;
}

.sidebar .nav-item {
    align-items: center;
    border-radius: 7px;
    display: flex;
    gap: 11px;
    padding: 8px 10px;
}

.sidebar .nav-item:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.nav-icon {
    align-items: center;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 7px;
    color: var(--gold-soft);
    display: inline-flex;
    flex: 0 0 26px;
    font-size: .72rem;
    font-weight: 800;
    height: 26px;
    justify-content: center;
    width: 26px;
}

.nav-item:hover .nav-icon {
    background: rgba(184, 138, 61, .18);
    border-color: rgba(184, 138, 61, .42);
    color: #fff;
}

.admin-main {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    min-height: 100vh;
    min-width: 0;
    overflow-x: hidden;
    padding: 22px;
}

.admin-header {
    align-items: center;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(244, 240, 234, .9)),
        var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    margin-bottom: 22px;
    max-width: 100%;
    min-width: 0;
    padding: 18px 20px;
}

.header-title {
    flex: 1 1 260px;
    min-width: 0;
}

.header-title h1 {
    font-size: clamp(1.55rem, 3vw, 2.3rem);
    line-height: 1.05;
    margin: 0;
}

.header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-left: auto;
    min-width: 0;
}

.header-account {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
    min-width: 0;
}

.metric strong {
    display: block;
    font-size: 1.8rem;
    margin-top: 12px;
}

.metric span {
    color: var(--muted);
    font-weight: 700;
}

.panel {
    max-width: 100%;
    margin-top: 0;
    min-width: 0;
}

.metric {
    position: relative;
}

.metric::before {
    background: linear-gradient(90deg, var(--gold), transparent);
    border-radius: 999px;
    content: "";
    height: 3px;
    left: 22px;
    position: absolute;
    right: 22px;
    top: 0;
}

.metric-priority {
    background: linear-gradient(135deg, #fff, #f7efe0);
    border-color: rgba(184, 138, 61, .35);
}

.metric-priority strong {
    color: #7a561f;
}

.metric-alert {
    background: linear-gradient(135deg, #fff, #fff1f3);
    border-color: #efc7cf;
}

.metric-alert::before {
    background: linear-gradient(90deg, var(--rose), transparent);
}

.metric-alert strong {
    color: var(--rose);
}

.metric-stock {
    background: linear-gradient(135deg, #fff, #edf8f5);
    border-color: rgba(15, 118, 110, .28);
}

.metric-stock::before {
    background: linear-gradient(90deg, var(--accent), transparent);
}

.metric-stock strong {
    color: var(--accent-dark);
}

.dashboard-grid,
.split-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-grid {
    align-items: stretch;
    margin-top: 20px;
}

.inventory-movement-grid {
    margin-top: 20px;
}

.inventory-audit-panel {
    margin-top: 24px;
}

.reports-grid {
    align-items: stretch;
    margin-top: 20px;
}

.report-metrics {
    margin-top: 18px;
}

.bar-chart {
    align-items: end;
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 5px;
    grid-template-columns: repeat(auto-fit, minmax(10px, 1fr));
    height: 220px;
    padding-top: 12px;
}

.bar-column {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 7px;
    height: 100%;
    justify-content: end;
    min-width: 0;
}

.bar-column span {
    background: linear-gradient(180deg, var(--gold), var(--accent));
    border-radius: 7px 7px 0 0;
    display: block;
    min-height: 4px;
    width: 100%;
}

.bar-column small {
    color: var(--muted);
    font-size: .68rem;
}

.rank-list {
    display: grid;
    gap: 13px;
}

.rank-item {
    display: grid;
    gap: 8px;
}

.rank-item div {
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.rank-item span {
    color: var(--muted);
    font-size: .85rem;
}

.rank-item i {
    background: linear-gradient(90deg, var(--accent), var(--gold));
    border-radius: 999px;
    display: block;
    height: 8px;
}

.dashboard-panel {
    display: flex;
    flex-direction: column;
    min-height: 360px;
}

.stack-list {
    display: grid;
    gap: 12px;
}

.dashboard-panel .stack-list {
    flex: 1;
    align-content: start;
}

.stack-item {
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 5px;
    padding: 12px;
}

.stack-item span,
.stack-item em,
.service-card p,
.person-card p {
    color: var(--muted);
}

.muted-text {
    color: var(--muted);
    font-size: .86rem;
}

.muted-line {
    color: var(--muted);
    display: block;
    font-size: .82rem;
    line-height: 1.35;
}

.stack-item em {
    font-style: normal;
}

.status-pill,
.user-chip {
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--accent-dark);
    display: inline-flex;
    font-size: .78rem;
    font-weight: 800;
    line-height: 1;
    padding: 7px 10px;
    text-transform: capitalize;
    width: fit-content;
}

.user-chip {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 7px;
    display: inline-flex;
    gap: 6px;
    color: var(--ink);
    padding: 8px 11px;
    text-transform: none;
    white-space: nowrap;
}

.user-chip small {
    color: var(--muted);
    font-size: inherit;
    font-weight: 700;
    text-transform: none;
}

.staff-grid,
.service-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.person-card,
.service-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    gap: 16px;
    padding: 20px;
}

.service-card {
    display: grid;
}

.service-card h3,
.person-card h2,
.timeline-item h3 {
    margin: 0;
}

.service-card strong {
    color: var(--accent-dark);
    font-size: 1.35rem;
}

.avatar {
    align-items: center;
    background: var(--accent);
    border-radius: 8px;
    color: #fff !important;
    display: flex;
    flex: 0 0 48px;
    font-size: 1.4rem;
    font-weight: 800;
    height: 48px;
    justify-content: center;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .18);
}

.avatar img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.small-avatar {
    flex-basis: 38px;
    font-size: 1rem;
    height: 38px;
    width: 38px;
}

.entity-cell {
    align-items: center;
    display: flex;
    gap: 10px;
    min-width: 0;
}

.entity-cell > div {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.entity-cell strong,
.entity-cell span {
    min-width: 0;
}

.entity-link {
    color: var(--ink);
    font-family: "Figtree", Arial, Helvetica, sans-serif;
    font-weight: 800;
    text-decoration: none;
}

.entity-link:hover {
    color: var(--accent-dark);
}

.profile-panel {
    display: grid;
    gap: 18px;
}

.activity-panel {
    margin-top: 18px;
}

.profile-heading {
    align-items: center;
    display: flex;
    gap: 18px;
    justify-content: space-between;
}

.profile-heading h2 {
    line-height: 1.05;
    margin: 0;
}

.profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.profile-heading .entity-cell {
    align-items: center;
    flex-direction: row;
    gap: 14px;
}

.profile-heading .entity-cell > div {
    align-content: center;
    display: grid;
    gap: 3px;
}

.profile-heading .eyebrow {
    color: var(--accent-dark);
    font-size: .68rem;
    line-height: 1;
    margin: 0;
    opacity: .82;
}

.profile-heading .avatar {
    flex-basis: 58px;
    font-size: 1.55rem;
    height: 58px;
    width: 58px;
}

.profile-meta-grid {
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;
}

.profile-meta-grid div {
    background: #fff;
    border-bottom: 1px solid var(--line);
    border-right: 1px solid var(--line);
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 13px 14px;
}

.profile-meta-grid .wide {
    grid-column: span 2;
}

.profile-meta-grid span {
    color: var(--muted);
    font-size: .74rem;
    font-weight: 800;
    text-transform: uppercase;
}

.profile-meta-grid strong {
    color: var(--ink);
    font-size: .95rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.profile-meta-grid a {
    color: var(--accent-dark);
}

.inline-status-line {
    align-items: center;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
}

.inline-status-line .status-pill {
    font-size: .68rem;
    padding: 5px 8px;
}

.stack-item .dash-person-name {
    color: #7aaf34;
}

.timeline {
    display: grid;
    gap: 12px;
}

.timeline-item {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 14px;
    grid-template-columns: 150px 1fr auto;
    padding: 14px;
}

.timeline-item time {
    color: var(--accent-dark);
    font-weight: 800;
}

.timeline-item p {
    color: var(--muted);
    margin: 6px 0 0;
}

.inline-form {
    grid-template-columns: 160px 120px 1fr auto;
}

.table-wrap {
    max-width: 100%;
    margin-top: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.appointments-table table {
    min-width: 760px;
}

.appointments-table th,
.appointments-table td {
    vertical-align: middle;
}

.sales-panel {
    padding: 0;
    overflow: hidden;
    width: 100%;
}

.sales-tabs,
.tab-panels,
.tab-panel {
    min-width: 0;
    max-width: 100%;
}

.sales-panel .table-wrap {
    max-width: 100%;
    overflow-x: auto;
}

.sales-panel .tab-panels {
    padding: 14px;
}

.sales-panel table {
    min-width: 760px;
    table-layout: fixed;
    width: 100%;
}

.sales-panel th,
.sales-panel td {
    font-size: .8rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
    padding: 10px 7px;
    white-space: normal;
    word-break: break-word;
}

.sales-entry-modal {
    max-width: min(96vw, 980px);
}

.sales-entry-form {
    display: grid;
    gap: 12px;
}

.sale-entry-section {
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 10px;
    padding: 12px;
}

.sale-entry-section > .eyebrow {
    margin: 0;
}

.line-items-heading {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    min-height: 34px;
}

.line-items-heading strong {
    color: var(--ink);
    font-family: var(--font-heading);
    font-size: .95rem;
    line-height: 1.1;
}

.sale-line {
    align-items: end;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(180px, 1.2fr) minmax(150px, .9fr) minmax(120px, .7fr) auto;
}

.product-sale-line {
    grid-template-columns: minmax(190px, 1.2fr) minmax(145px, .8fr) minmax(80px, .45fr) minmax(110px, .6fr) auto;
}

.service-visit-line {
    grid-template-columns: minmax(220px, 1fr) auto;
}

.stock-out-line {
    grid-template-columns: minmax(180px, 1fr) minmax(100px, .45fr) auto;
}

.service-visit-section {
    grid-column: 1 / -1;
}

.stock-out-items {
    grid-column: 1 / -1;
    grid-row: auto;
}

.compact-form > .stock-out-items {
    grid-column: 1 / -1;
}

.service-visit-line + .service-visit-line label,
.stock-out-line + .stock-out-line label,
.product-sale-line + .product-sale-line label {
    font-size: 0;
    gap: 0;
}

.service-visit-line + .service-visit-line select,
.stock-out-line + .stock-out-line input,
.stock-out-line + .stock-out-line select,
.product-sale-line + .product-sale-line input,
.product-sale-line + .product-sale-line .searchable-select input,
.stock-out-line + .stock-out-line .searchable-select input,
.product-sale-line + .product-sale-line select {
    font-size: .9rem;
}

.checkout-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.checkout-grid .wide {
    grid-column: 1 / -1;
}

.sale-summary {
    background: linear-gradient(135deg, #fff, var(--soft));
    border: 1px solid rgba(184, 138, 61, .28);
    border-radius: 8px;
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    padding: 14px;
}

.sale-summary div {
    border-right: 1px solid var(--line);
    display: grid;
    gap: 5px;
    min-width: 0;
    padding-right: 12px;
}

.sale-summary div:last-child {
    border-right: 0;
    padding-right: 0;
}

.sale-summary span {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.sale-summary strong {
    color: var(--ink);
    font-family: "Figtree", Arial, Helvetica, sans-serif;
    font-size: 1.05rem;
}

.sale-summary .total strong {
    color: var(--accent-dark);
    font-size: 1.35rem;
}

.reception-panel {
    margin-bottom: 18px;
}

.reception-metrics {
    margin-bottom: 18px;
}

.reception-row-form {
    align-items: center;
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(130px, 1fr) minmax(120px, .8fr) auto;
    min-width: 360px;
}

.reception-row-form select {
    min-height: 38px;
}

.sales-tabs > input,
.transaction-kind-tabs > input {
    clip: rect(0 0 0 0);
    height: 1px;
    margin: 0;
    min-height: 1px;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    position: absolute;
    width: 1px;
}

.transaction-tabs {
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.transaction-tabs > input {
    clip: rect(0 0 0 0);
    height: 1px;
    margin: 0;
    min-height: 1px;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    position: absolute;
    width: 1px;
}

.tab-list {
    background: var(--soft);
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 8px;
    max-width: 100%;
    overflow-x: auto;
    padding: 12px;
}

.tab-list label {
    align-items: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 7px;
    color: var(--muted);
    cursor: pointer;
    display: inline-flex;
    font-weight: 800;
    min-height: 38px;
    padding: 9px 14px;
}

.tab-panels {
    padding: 22px;
}

.transaction-kind-tabs {
    margin-top: 0;
}

.transaction-kind-tabs > .tab-list {
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-bottom: 10px;
}

.transaction-kind-tabs > .transaction-kind-panels {
    padding: 0;
}

.transaction-kind-tabs .transaction-form {
    margin-bottom: 0;
}

#transaction-modal .modal-header {
    border-bottom: 0;
    margin-bottom: 6px;
    padding-bottom: 6px;
}

.tab-panel {
    display: none;
}

#service-sales-tab:checked ~ .tab-list label[for="service-sales-tab"],
#product-sales-tab:checked ~ .tab-list label[for="product-sales-tab"],
#transaction-kind-service:checked ~ .tab-list label[for="transaction-kind-service"],
#transaction-kind-product:checked ~ .tab-list label[for="transaction-kind-product"],
#source-walk-in:checked ~ .tab-list label[for="source-walk-in"],
#source-phone:checked ~ .tab-list label[for="source-phone"],
#source-whatsapp:checked ~ .tab-list label[for="source-whatsapp"] {
    background: #fff;
    border-color: var(--line);
    color: var(--ink);
    box-shadow: 0 8px 20px rgba(36, 27, 18, .06);
}

#service-sales-tab:checked ~ .tab-panels .service-sales-panel,
#product-sales-tab:checked ~ .tab-panels .product-sales-panel,
#transaction-kind-service:checked ~ .tab-panels .service-transaction-panel,
#transaction-kind-product:checked ~ .tab-panels .product-transaction-panel {
    display: block;
}

#transaction-kind-service:checked ~ .tab-panels .service-transaction-panel,
#transaction-kind-product:checked ~ .tab-panels .product-transaction-panel {
    display: grid;
}

#source-walk-in:checked ~ .tab-panels .walk-in-panel,
#source-phone:checked ~ .tab-panels .phone-panel,
#source-whatsapp:checked ~ .tab-panels .whatsapp-panel {
    display: block;
}

.transaction-tab-panels {
    padding: 16px;
}

.transaction-channel-note {
    background: #fff;
    color: var(--muted);
    font-size: .86rem;
    font-weight: 700;
    padding: 0 16px 14px;
}

.transaction-channel-note span {
    display: none;
}

#source-walk-in:checked ~ .transaction-channel-note [data-source-note="walk_in"],
#source-phone:checked ~ .transaction-channel-note [data-source-note="phone_booking"],
#source-whatsapp:checked ~ .transaction-channel-note [data-source-note="whatsapp_booking"] {
    display: inline;
}

.customer-capture {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 12px;
    padding: 16px;
}

.customer-search-field {
    display: grid;
    gap: 8px;
}

.customer-search-box {
    display: block;
    position: relative;
}

.customer-search-results {
    background: #fff;
    border: 1px solid rgba(184, 138, 61, .26);
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(18, 15, 12, .16);
    display: none;
    gap: 4px;
    left: 0;
    margin-top: 0;
    max-height: 220px;
    overflow-y: auto;
    padding: 6px;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    width: 100%;
    z-index: 2600;
}

.customer-search-results.is-open {
    display: grid;
}

.customer-result-button {
    background: transparent;
    border: 0;
    border-radius: 7px;
    color: var(--text);
    cursor: pointer;
    display: grid;
    font-size: .92rem;
    gap: 3px;
    min-height: 0;
    padding: 9px 10px;
    text-align: left;
    width: 100%;
}

.customer-result-button:hover,
.customer-result-button:focus {
    background: rgba(184, 138, 61, .12);
    outline: none;
}

.transaction-form .customer-capture {
    gap: 8px;
    padding: 10px;
}

.transaction-form .customer-search-field {
    gap: 5px;
}

.transaction-form .customer-search-field .muted-line {
    font-size: .74rem;
    line-height: 1.25;
}

.transaction-form .customer-capture .form-grid {
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.transaction-form .customer-capture label {
    gap: 4px;
}

.transaction-form .customer-capture input,
.transaction-form .customer-capture select {
    min-height: 36px;
    padding: 7px 10px;
}

.transaction-form .customer-capture .wide {
    grid-column: auto;
}

.transaction-form .customer-search-results {
    gap: 6px;
    margin-top: 0;
    max-height: 210px;
}

.transaction-form .customer-result-button {
    padding: 7px 10px;
}

.pagination-strip {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 16px;
}

.receipt-shell {
    display: grid;
    gap: 18px;
    justify-items: center;
}

.receipt-actions {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    max-width: 760px;
    width: 100%;
}

.receipt-paper {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 20px;
    max-width: 760px;
    padding: 28px;
    width: 100%;
}

.receipt-header,
.receipt-parties,
.receipt-totals div {
    align-items: start;
    display: flex;
    gap: 18px;
    justify-content: space-between;
}

.receipt-brand {
    align-items: center;
    display: flex;
    gap: 12px;
}

.receipt-brand h2,
.receipt-brand p,
.receipt-footer p {
    margin: 0;
}

.receipt-brand p,
.receipt-parties span,
.receipt-parties small,
.receipt-footer {
    color: var(--muted);
}

.receipt-meta {
    display: grid;
    gap: 5px;
    justify-items: end;
    text-align: right;
}

.receipt-parties {
    border-bottom: 1px solid var(--line);
    border-top: 1px solid var(--line);
    padding: 16px 0;
}

.receipt-parties div,
.receipt-totals {
    display: grid;
    gap: 5px;
}

.receipt-table table {
    min-width: 620px;
}

.receipt-totals {
    justify-self: end;
    min-width: min(100%, 320px);
}

.receipt-totals div {
    border-bottom: 1px solid var(--line);
    padding: 8px 0;
}

.receipt-grand-total strong {
    color: var(--accent-dark);
    font-family: "Figtree", Arial, Helvetica, sans-serif;
    font-size: 1.35rem;
}

.receipt-footer {
    border-top: 1px solid var(--line);
    padding-top: 14px;
    text-align: center;
}

table {
    border-collapse: separate;
    border-spacing: 0;
    min-width: 820px;
    width: 100%;
}

thead {
    position: relative;
}

thead::after {
    background: linear-gradient(90deg, rgba(184, 138, 61, .12), rgba(184, 138, 61, .42), rgba(184, 138, 61, .12));
    bottom: 0;
    content: "";
    height: 2px;
    left: 0;
    position: absolute;
    right: 0;
}

tbody tr:hover {
    background: #fbf7ef;
}

th,
td {
    border-bottom: 1px solid var(--line);
    padding: 13px 12px;
    text-align: left;
}

th {
    background: linear-gradient(180deg, #211a14 0%, #15110e 100%);
    border-bottom: 2px solid rgba(184, 138, 61, .72);
    border-top: 1px solid rgba(255, 255, 255, .08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 8px 18px rgba(18, 14, 10, .08);
    color: #f7e8c7;
    font-family: "Figtree", Arial, Helvetica, sans-serif;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .04em;
    padding-bottom: 14px;
    padding-top: 14px;
    position: relative;
    text-transform: uppercase;
    white-space: nowrap;
}

th + th {
    border-left: 1px solid rgba(255, 255, 255, .08);
}

thead th:first-child {
    border-left: 1px solid rgba(184, 138, 61, .42);
    border-radius: 8px 0 0 0;
}

thead th:last-child {
    border-radius: 0 8px 0 0;
    border-right: 1px solid rgba(184, 138, 61, .42);
}

.staff-history-panel {
    grid-column: 1 / -1;
}

.staff-history-table table {
    min-width: 720px;
}

.admin-footer-strip {
    align-items: center;
    border-top: 1px solid var(--line);
    color: var(--muted);
    display: flex;
    font-size: .85rem;
    justify-content: space-between;
    margin-top: auto;
    padding: 18px 0 4px;
}

.password-change-modal {
    align-items: center;
    background: rgba(18, 14, 10, .62);
    backdrop-filter: blur(8px);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 18px;
    position: fixed;
    z-index: 80;
}

.password-change-panel {
    background: #fff;
    border: 1px solid rgba(184, 138, 61, .32);
    border-radius: 8px;
    box-shadow: 0 28px 80px rgba(18, 14, 10, .28);
    display: grid;
    gap: 14px;
    max-width: 440px;
    padding: 24px;
    position: relative;
    width: min(100%, 440px);
}

.password-dismiss-form {
    position: absolute;
    right: 12px;
    top: 12px;
}

.password-change-panel h2,
.password-change-panel p {
    margin: 0;
}

.password-change-panel p:not(.eyebrow) {
    color: var(--muted);
    line-height: 1.5;
}

.password-secondary-actions {
    display: flex;
    gap: 10px;
}

.password-secondary-actions form {
    flex: 1;
}

.password-secondary-actions .button {
    justify-content: center;
    width: 100%;
}

.guest-footer-strip {
    align-items: center;
    background: #151210;
    color: rgba(255, 255, 255, .76);
    display: flex;
    font-size: .9rem;
    justify-content: space-between;
    min-height: 56px;
    padding: 14px var(--guest-gutter);
}

.guest-footer-strip span:first-child {
    color: #fff;
    font-family: "Figtree", Arial, Helvetica, sans-serif;
    font-weight: 800;
}

.settings-form {
    display: grid;
    gap: 22px;
}

.settings-panel-form {
    display: grid;
    gap: 18px;
}

.settings-accordion {
    align-items: start;
}

.settings-columns {
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
}

.settings-column {
    display: grid;
    gap: 0;
}

.settings-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.settings-panel summary {
    align-items: center;
    background: linear-gradient(180deg, #fff, var(--soft));
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    list-style: none;
    min-height: 64px;
    padding: 16px 18px;
}

.settings-panel summary::-webkit-details-marker {
    display: none;
}

.settings-panel summary::after {
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--muted);
    content: "+";
    display: inline-flex;
    flex: 0 0 30px;
    font-family: "Figtree", Arial, Helvetica, sans-serif;
    font-weight: 800;
    height: 30px;
    justify-content: center;
    margin-left: 16px;
    width: 30px;
}

.settings-panel[open] summary::after {
    content: "-";
}

.settings-panel summary strong {
    color: var(--ink);
    display: block;
    font-family: "Figtree", Arial, Helvetica, sans-serif;
    font-size: 1.05rem;
    line-height: 1.1;
    margin-top: 4px;
}

.settings-panel-body {
    display: grid;
    gap: 18px;
    padding: 18px;
}

.settings-subpanel {
    display: grid;
    gap: 0;
}

.form-stack {
    display: grid;
    gap: 14px;
}

.settings-preview {
    align-items: center;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    gap: 16px;
    padding: 18px;
}

.settings-preview h3,
.settings-preview p {
    margin: 0;
}

.settings-preview p:last-child {
    color: var(--muted);
    margin-top: 6px;
}

.settings-category-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-category-grid section {
    min-width: 0;
}

.inline-category-form {
    align-items: end;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) minmax(120px, .35fr) auto;
    margin: 12px 0 14px;
}

.settings-table-wrap input,
.settings-table-wrap select {
    min-height: 38px;
}

.settings-table-wrap table {
    min-width: 540px;
}

.logo-preview {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    flex: 0 0 72px;
    height: 72px;
    justify-content: center;
    overflow: hidden;
    width: 72px;
}

.logo-preview img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.logo-preview span {
    color: var(--accent-dark);
    font-family: "Figtree", Arial, Helvetica, sans-serif;
    font-size: 2rem;
    font-weight: 800;
}

.form-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid label:last-child {
    grid-column: auto;
}

.image-setting-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.image-setting-grid.single {
    grid-template-columns: 1fr;
}

.image-setting-grid article {
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.image-setting-grid span {
    color: var(--muted);
    display: block;
    font-size: .82rem;
    font-weight: 800;
    padding: 11px 12px;
}

.image-setting-grid div {
    background-position: center;
    background-size: cover;
    min-height: 150px;
}

.form-actions {
    display: flex;
    justify-content: flex-start;
}

@media (max-width: 1100px) {
    .metric-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .promo-card {
        flex-basis: calc((100% - 18px) / 2);
    }
}

@media (max-width: 800px) {
    body.admin-shell::before {
        background: rgba(18, 15, 12, .48);
        content: "";
        inset: 0;
        opacity: 0;
        pointer-events: none;
        position: fixed;
        transition: opacity .18s ease;
        z-index: 35;
    }

    body.admin-shell.admin-nav-open {
        overflow: hidden;
    }

    body.admin-shell.admin-nav-open::before {
        opacity: 1;
        pointer-events: auto;
    }

    .auth-layout {
        overflow: auto;
    }

    .hero-actions {
        align-items: center;
        flex-direction: column;
    }

    .hero {
        min-height: 260px;
        padding: 28px 18px;
    }

    .hero h1 {
        font-size: clamp(2.2rem, 13vw, 3rem);
        line-height: .98;
        margin-bottom: 12px;
    }

    .hero p {
        font-size: .98rem;
        line-height: 1.45;
        margin: 0 0 14px;
    }

    .booking-page {
        padding: 20px 14px 42px;
        width: 100%;
    }

    .booking-form {
        grid-template-columns: 1fr;
    }

    .auth-page {
        display: flex;
        flex-direction: column;
        height: auto;
        min-height: calc(100vh - 64px);
        padding: 14px;
        width: 100%;
    }

    .auth-panel {
        order: 1;
        max-width: none;
        padding: 22px;
    }

    .auth-showcase {
        min-height: 260px;
        order: 2;
        padding: 22px;
    }

    .auth-showcase h1 {
        font-size: 2.35rem;
    }

    .admin-shell {
        grid-template-columns: 1fr;
        max-width: 100vw;
    }

    .mobile-menu-toggle {
        align-items: center;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 8px;
        box-shadow: 0 12px 30px rgba(18, 15, 12, .14);
        cursor: pointer;
        display: inline-flex;
        flex-direction: column;
        gap: 4px;
        height: 42px;
        justify-content: center;
        left: 14px;
        padding: 0;
        position: fixed;
        top: 14px;
        width: 42px;
        z-index: 34;
    }

    .mobile-menu-toggle span {
        background: var(--accent-dark);
        border-radius: 999px;
        display: block;
        height: 2px;
        width: 18px;
    }

    .mobile-menu-close {
        align-items: center;
        background: rgba(255, 255, 255, .1);
        border: 1px solid rgba(255, 255, 255, .16);
        border-radius: 7px;
        color: #fff;
        cursor: pointer;
        display: inline-flex;
        font-size: 1.1rem;
        font-weight: 800;
        height: 34px;
        justify-content: center;
        justify-self: end;
        margin-bottom: 4px;
        padding: 0;
        width: 34px;
    }

    .sidebar {
        align-content: start;
        grid-template-columns: 1fr;
        height: 100dvh;
        left: 0;
        max-width: min(84vw, 320px);
        padding: 18px;
        position: fixed;
        top: 0;
        transform: translateX(-105%);
        transition: transform .2s ease;
        width: min(84vw, 320px);
        z-index: 40;
    }

    body.admin-shell.admin-nav-open .sidebar {
        transform: translateX(0) !important;
    }

    .admin-main {
        max-width: 100vw;
        padding: 70px 12px 14px;
    }

    .nav-divider {
        grid-column: 1 / -1;
    }

    .nav-section {
        grid-column: 1 / -1;
    }

    .brand-light {
        grid-column: auto;
    }

    .inline-form {
        grid-template-columns: 1fr;
    }

    .profile-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-meta-grid {
        grid-template-columns: 1fr;
    }

    .profile-meta-grid .wide {
        grid-column: auto;
    }

    .dashboard-grid,
    .split-grid,
    .promo-grid,
    .settings-columns,
    .settings-category-grid,
    .metric-grid,
    .image-setting-grid,
    .form-grid,
    .compact-form,
    .filter-bar,
    .action-filter,
    .customer-filter,
    .supplier-filter,
    .timeline-item {
        grid-template-columns: 1fr;
    }

    .compact-form .wide,
    .filter-bar .wide,
    .action-filter .wide,
    .customer-filter .wide,
    .supplier-filter .wide {
        grid-column: auto;
    }

    .sale-line,
    .product-sale-line,
    .transaction-form .customer-capture .form-grid,
    .checkout-grid,
    .reception-row-form {
        grid-template-columns: 1fr;
    }

    .reception-row-form {
        min-width: 0;
    }

    .admin-header,
    .admin-footer-strip,
    .guest-footer-strip,
    .topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        padding: 14px;
    }

    .admin-header {
        margin-bottom: 14px;
    }

    .header-title {
        flex-basis: auto;
        width: 100%;
    }

    .header-title h1 {
        font-size: 1.6rem;
        line-height: 1;
    }

    .header-actions {
        justify-content: flex-start;
        margin-left: 0;
    }

    .header-account {
        justify-content: flex-start;
        width: 100%;
    }

    .user-chip {
        flex: 1;
    }

    .tab-panels {
        padding: 14px;
    }

    .panel-heading {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .panel,
    .auth-panel,
    .promo-card,
    .metric {
        padding: 16px;
    }

    .promo-card {
        flex-basis: 100%;
    }

    .contact-panel {
        grid-template-columns: 1fr;
    }

    .contact-list div {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .contact-list dd {
        text-align: left;
    }

    .dashboard-panel {
        min-height: auto;
    }

    .table-wrap {
        margin-left: -2px;
        margin-right: -2px;
        padding-bottom: 6px;
    }

    table {
        min-width: 680px;
    }

    .sales-panel table {
        min-width: 680px;
    }

    th,
    td {
        padding: 10px 8px;
    }

    .timeline-item {
        align-items: start;
        gap: 10px;
    }

    .tab-list {
        padding: 10px;
    }

    .tab-list label {
        flex: 1 0 auto;
        justify-content: center;
        min-width: 138px;
    }

    .inline-category-form {
        grid-template-columns: 1fr;
    }

    .receipt-paper {
        padding: 18px;
    }

    .receipt-header,
    .receipt-parties {
        display: grid;
    }

    .receipt-meta {
        justify-items: start;
        text-align: left;
    }

    .modal-backdrop {
        align-items: stretch;
        padding: 10px;
    }

    .modal-panel,
    .modal-panel.narrow {
        max-height: calc(100dvh - 20px);
        max-width: none;
        padding: 16px;
        width: 100%;
    }

    .modal-header {
        margin-bottom: 14px;
    }

    .compact-form {
        padding: 12px;
    }

    .admin-footer-strip {
        font-size: .78rem;
        padding: 14px 0 2px;
    }
}

@media (max-width: 420px) {
    .password-secondary-actions {
        flex-direction: column;
    }
}

@media print {
    body {
        background: #fff;
    }

    .no-print,
    .sidebar,
    .admin-header,
    .admin-footer-strip,
    .mobile-menu-toggle,
    .password-change-modal {
        display: none !important;
    }

    .admin-shell {
        display: block;
    }

    .admin-main {
        display: block;
        padding: 0;
    }

    .receipt-shell {
        display: block;
    }

    .receipt-paper {
        border: 0;
        box-shadow: none;
        max-width: none;
        padding: 0;
    }

    .receipt-table {
        overflow: visible;
    }

    .receipt-table table {
        min-width: 0;
    }
}
