:root {
    --bg: #f4f6f2;
    --surface: #ffffff;
    --surface-soft: #f8faf7;
    --ink: #16221e;
    --muted: #68746f;
    --line: #dfe5e1;
    --line-strong: #cbd5cf;
    --primary: #205a49;
    --primary-deep: #143d33;
    --primary-soft: #e7f3ed;
    --accent: #dfff72;
    --accent-soft: #f3ffd1;
    --success: #16845b;
    --success-soft: #e7f7ef;
    --warning: #a6640b;
    --warning-soft: #fff3d9;
    --danger: #c34545;
    --danger-soft: #ffeded;
    --info: #276caa;
    --info-soft: #eaf4ff;
    --violet: #7552a6;
    --violet-soft: #f3edfb;
    --shadow-sm: 0 1px 2px rgba(17, 37, 29, .05), 0 6px 18px rgba(17, 37, 29, .035);
    --shadow-md: 0 16px 40px rgba(17, 37, 29, .11);
    --radius-sm: 9px;
    --radius: 14px;
    --radius-lg: 20px;
    --sidebar: 248px;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100%; color: var(--ink); background: var(--bg); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.icon { display: inline-block; flex: 0 0 auto; vertical-align: -3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }
.positive-text { color: var(--success); }
.success-text { color: var(--success) !important; }
.danger-text { color: var(--danger) !important; }

.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 40; width: var(--sidebar); display: flex; flex-direction: column; color: #dbe7e1; background: #102a23; border-right: 1px solid rgba(255, 255, 255, .05); }
.brand { height: 80px; display: flex; align-items: center; gap: 11px; padding: 0 25px; }
.brand-mark { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; color: #173a30; background: var(--accent); border-radius: 12px; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .1); }
.brand-copy { display: flex; flex-direction: column; line-height: 1.25; }
.brand-copy strong { color: #fff; font-size: 16px; letter-spacing: -.2px; }
.brand-copy small { color: #8ba69b; font-size: 11px; letter-spacing: .5px; text-transform: uppercase; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 11px 14px 20px; }
.nav-label { display: block; margin: 22px 12px 8px; color: #6d8c80; font-size: 10px; font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase; }
.nav-label:first-child { margin-top: 4px; }
.nav-link { position: relative; display: flex; align-items: center; gap: 12px; min-height: 43px; margin: 3px 0; padding: 0 12px; color: #a9beb6; border-radius: 10px; font-size: 13px; font-weight: 600; transition: .18s ease; }
.nav-link:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.nav-link.active { color: #fff; background: rgba(223, 255, 114, .105); }
.nav-link.active::before { content: ""; position: absolute; left: -14px; width: 3px; height: 23px; background: var(--accent); border-radius: 0 3px 3px 0; }
.nav-link.active .icon { color: var(--accent); }
.sidebar-footer { display: flex; align-items: center; gap: 8px; padding: 15px 14px 18px; border-top: 1px solid rgba(255, 255, 255, .08); }
.admin-card { min-width: 0; flex: 1; display: flex; align-items: center; gap: 10px; }
.admin-card > span:last-child { min-width: 0; display: flex; flex-direction: column; }
.admin-card strong { color: #f7fbf9; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.admin-card small { color: #79968b; font-size: 10px; }
.icon-button { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; color: #91aaa0; background: transparent; border: 0; border-radius: 9px; cursor: pointer; }
.icon-button:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.avatar { width: 39px; height: 39px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; color: #225747; background: #def1e7; border: 1px solid #c8e2d6; border-radius: 50%; font-size: 12px; font-weight: 800; letter-spacing: .25px; }
.avatar-sm { width: 32px; height: 32px; color: #173c32; background: var(--accent); border: 0; font-size: 10px; }
.avatar-xs { width: 31px; height: 31px; font-size: 9px; }
.avatar-lg { width: 59px; height: 59px; font-size: 17px; }
.avatar-vendor { color: #66508d; background: var(--violet-soft); border-color: #ded0ef; }

.main-shell { min-height: 100vh; margin-left: var(--sidebar); }
.topbar { height: 80px; display: flex; align-items: center; justify-content: space-between; padding: 0 32px; background: rgba(244, 246, 242, .9); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 20; }
.topbar-heading { display: flex; align-items: center; gap: 12px; }
.topbar h1 { margin: 0; font-size: 21px; line-height: 1.2; letter-spacing: -.45px; }
.eyebrow { margin: 0 0 3px; color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: 1.1px; text-transform: uppercase; }
.eyebrow-accent { color: #c5ef5e; }
.mobile-menu { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; padding: 0; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.content { width: 100%; max-width: 1600px; margin: 0 auto; padding: 27px 32px 42px; }

.button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 15px; border: 1px solid transparent; border-radius: 9px; font-size: 12px; font-weight: 700; line-height: 1; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; white-space: nowrap; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible { outline: 3px solid rgba(39, 108, 170, .2); outline-offset: 1px; }
.button:disabled { opacity: .5; cursor: not-allowed; }
.button-primary { color: #fff; background: var(--primary); border-color: var(--primary); box-shadow: 0 5px 13px rgba(32, 90, 73, .16); }
.button-primary:hover:not(:disabled) { background: var(--primary-deep); }
.button-secondary { color: var(--ink); background: #fff; border-color: var(--line-strong); }
.button-secondary:hover:not(:disabled) { border-color: #9fada6; box-shadow: var(--shadow-sm); }
.button-ghost { color: var(--muted); background: transparent; }
.button-ghost:hover:not(:disabled) { color: var(--ink); background: rgba(22, 34, 30, .05); }
.button-light { color: #19392f; background: #fff; border-color: rgba(255, 255, 255, .5); box-shadow: 0 7px 20px rgba(0, 0, 0, .12); }
.button-success { color: #fff; background: var(--success); }
.button-danger { color: #fff; background: var(--danger); }
.button-block { width: 100%; min-height: 47px; }
.text-link { display: inline-flex; align-items: center; gap: 5px; color: var(--primary); font-size: 11px; font-weight: 750; white-space: nowrap; }
.text-link:hover { color: var(--primary-deep); }
.plain-link:hover { color: var(--primary); text-decoration: underline; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 650; }
.back-link:hover { color: var(--primary); }
.text-button { padding: 3px; background: none; border: 0; font-size: 12px; font-weight: 700; cursor: pointer; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-header { min-height: 71px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 20px; border-bottom: 1px solid var(--line); }
.card-header h3 { margin: 0 0 2px; font-size: 14px; letter-spacing: -.15px; }
.card-header p { margin: 0; color: var(--muted); font-size: 11px; }
.alert { position: relative; display: flex; align-items: flex-start; gap: 9px; max-width: 860px; margin: 0 0 18px; padding: 12px 38px 12px 13px; border: 1px solid; border-radius: 10px; font-size: 12px; box-shadow: var(--shadow-sm); }
.alert-success { color: #176345; background: var(--success-soft); border-color: #bce5d1; }
.alert-danger { color: #973838; background: var(--danger-soft); border-color: #f2c6c6; }
.alert-warning { color: #8e5b12; background: var(--warning-soft); border-color: #ecd7a5; }
.alert-close { position: absolute; top: 5px; right: 8px; padding: 2px 5px; color: inherit; background: transparent; border: 0; font-size: 19px; cursor: pointer; }

.welcome-panel { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-bottom: 18px; padding: 23px 26px; color: #fff; background: linear-gradient(112deg, #153c32, #235e4d 70%, #33705e); border-radius: var(--radius-lg); box-shadow: 0 14px 30px rgba(20, 61, 51, .16); overflow: hidden; position: relative; }
.welcome-panel::after { content: ""; position: absolute; width: 230px; height: 230px; right: 11%; top: -150px; border: 42px solid rgba(223, 255, 114, .09); border-radius: 50%; }
.welcome-panel > * { position: relative; z-index: 1; }
.welcome-panel h2 { margin: 0; font-size: 24px; letter-spacing: -.6px; }
.welcome-panel p:last-child { margin: 5px 0 0; color: #a9c7bb; font-size: 12px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 14px; }
.metric-card { min-width: 0; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px; padding: 17px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: .18s ease; }
.metric-card:hover { transform: translateY(-2px); border-color: #c6d2cc; box-shadow: 0 9px 24px rgba(17, 37, 29, .075); }
.metric-icon, .section-icon, .choice-icon, .report-icon { display: inline-flex; align-items: center; justify-content: center; border-radius: 11px; }
.metric-icon { width: 42px; height: 42px; }
.metric-warning { color: var(--warning); background: var(--warning-soft); }
.metric-info { color: var(--info); background: var(--info-soft); }
.metric-success { color: var(--success); background: var(--success-soft); }
.metric-violet { color: var(--violet); background: var(--violet-soft); }
.metric-danger { color: var(--danger); background: var(--danger-soft); }
.metric-neutral { color: var(--muted); background: #eef1ef; }
.metric-copy { min-width: 0; display: flex; flex-direction: column; }
.metric-copy small { color: var(--muted); font-size: 10px; font-weight: 650; }
.metric-copy strong { margin: 1px 0 -1px; overflow: hidden; font-size: 23px; line-height: 1.2; letter-spacing: -.6px; text-overflow: ellipsis; }
.metric-copy em { color: #89938f; font-size: 9px; font-style: normal; }
.metric-link { color: #a6b2ac; }
.metric-dark { color: #fff; background: #1c3e35; border-color: #1c3e35; }
.metric-dark:hover { border-color: #315b4e; }
.metric-dark .metric-copy small, .metric-dark .metric-copy em { color: #a9c1b8; }
.metric-dark .metric-link { color: var(--accent); }
.metric-dark-icon { color: #163b30; background: var(--accent); }
.finance-strip { display: grid; grid-template-columns: minmax(230px, 1.5fr) minmax(120px, .7fr) 1px minmax(120px, .7fr) 1px minmax(120px, .7fr) 1px minmax(125px, .75fr); align-items: center; gap: 14px; margin-bottom: 14px; padding: 14px 18px; }
.finance-intro { display: flex; align-items: center; gap: 11px; }
.section-icon { width: 38px; height: 38px; color: var(--primary); background: var(--primary-soft); }
.finance-intro div { display: flex; flex-direction: column; }
.finance-intro strong { font-size: 12px; }
.finance-intro small, .finance-metric small { color: var(--muted); font-size: 9px; }
.finance-metric { display: flex; flex-direction: column; }
.finance-metric strong { margin-top: 1px; font-size: 15px; }
.finance-divider { width: 1px; height: 32px; background: var(--line); }
.finance-highlight strong { color: var(--success); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(270px, .8fr); gap: 14px; }
.table-card { min-width: 0; overflow: hidden; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 10px 15px; color: #78847e; background: #f8faf8; border-bottom: 1px solid var(--line); font-size: 9px; font-weight: 750; letter-spacing: .45px; text-align: left; text-transform: uppercase; white-space: nowrap; }
td { padding: 12px 15px; border-bottom: 1px solid #edf0ee; color: #43504a; font-size: 11px; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfcfb; }
tfoot td { color: var(--ink); background: #f8faf8; border-top: 1px solid var(--line-strong); border-bottom: 0; font-weight: 750; }
.record-link, .date-cell { display: flex; flex-direction: column; min-width: 95px; }
.record-link strong { color: var(--ink); font-size: 11px; }
.record-link:hover strong { color: var(--primary); }
.record-link small, .date-cell small, .table-subtext { display: block; margin-top: 1px; color: var(--muted); font-size: 9px; }
.date-cell strong { color: #35413c; font-size: 10px; }
.person-cell { display: inline-flex; align-items: center; gap: 8px; min-width: 120px; }
.person-cell > span:last-child { display: flex; flex-direction: column; }
.person-cell strong { color: var(--ink); font-size: 10px; }
.person-cell small { color: var(--muted); font-size: 9px; }
.row-action { width: 29px; height: 29px; display: inline-flex; align-items: center; justify-content: center; color: #8d9893; border: 1px solid var(--line); border-radius: 8px; }
.row-action:hover { color: var(--primary); border-color: #abc1b8; background: var(--primary-soft); }
.badge { width: fit-content; display: inline-flex; align-items: center; gap: 4px; padding: 4px 7px; border: 1px solid transparent; border-radius: 99px; font-size: 9px; font-weight: 750; line-height: 1; white-space: nowrap; }
.badge-warning { color: var(--warning); background: var(--warning-soft); border-color: #edd9a8; }
.badge-info { color: var(--info); background: var(--info-soft); border-color: #c8dff5; }
.badge-violet { color: var(--violet); background: var(--violet-soft); border-color: #ddcfee; }
.badge-danger { color: var(--danger); background: var(--danger-soft); border-color: #f2cccc; }
.badge-success { color: var(--success); background: var(--success-soft); border-color: #c2e7d5; }
.badge-neutral { color: #64706b; background: #f0f2f1; border-color: #dfe4e1; }
.schedule-card { display: flex; flex-direction: column; overflow: hidden; }
.header-count { min-width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; color: var(--primary); background: var(--primary-soft); border-radius: 8px; font-size: 10px; font-weight: 800; }
.schedule-list { flex: 1; padding: 5px 14px; }
.schedule-item { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 10px; padding: 10px 2px; border-bottom: 1px solid #edf0ee; }
.schedule-item:last-child { border-bottom: 0; }
.schedule-date { width: 38px; height: 42px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--primary); background: var(--primary-soft); border-radius: 9px; line-height: 1; }
.schedule-date strong { font-size: 15px; }
.schedule-date small { margin-top: 3px; font-size: 7px; font-weight: 800; letter-spacing: .5px; }
.schedule-info { min-width: 0; display: flex; flex-direction: column; }
.schedule-info strong { overflow: hidden; color: var(--ink); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.schedule-info small { overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.status-dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; }
.dot-warning { background: #d8952b; }.dot-info { background: #4a90ce; }.dot-violet { background: #8b69b9; }.dot-danger { background: #d65c5c; }.dot-success { background: #3aa879; }.dot-neutral { background: #a7b0ac; }
.schedule-footer { display: flex; align-items: center; justify-content: center; gap: 5px; padding: 12px; color: var(--primary); background: #fbfcfb; border-top: 1px solid var(--line); font-size: 10px; font-weight: 750; }
.directory-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.directory-strip > a { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 11px; padding: 13px 15px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.directory-strip > a:hover { border-color: #b9c8c1; box-shadow: var(--shadow-sm); }
.directory-strip a > span:nth-child(2) { display: flex; flex-direction: column; }
.directory-strip small { color: var(--muted); font-size: 9px; }
.directory-strip strong { font-size: 11px; }
.directory-strip > a > .icon { color: #a2ada8; }
.vendor-tone { color: var(--violet) !important; background: var(--violet-soft) !important; }
.report-tone, .status-tone { color: var(--info) !important; background: var(--info-soft) !important; }
.customer-tone { color: var(--primary) !important; background: var(--primary-soft) !important; }
.commission-tone { color: #253d19 !important; background: var(--accent) !important; }

.page-actions { min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.page-actions p { margin: 0; color: var(--muted); font-size: 11px; }
.page-actions-back { min-height: 24px; }
.filter-bar { display: flex; align-items: center; gap: 8px; min-height: 61px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.search-field { min-width: 230px; max-width: 440px; flex: 1; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 11px; color: #83908a; background: #f8faf8; border: 1px solid var(--line); border-radius: 9px; }
.search-field:focus-within { border-color: #8bb1a2; box-shadow: 0 0 0 3px rgba(32, 90, 73, .08); }
.search-field input { min-width: 0; flex: 1; padding: 0; background: transparent; border: 0; outline: 0; font-size: 11px; }
.select-compact select, .date-compact input { height: 38px; padding: 0 29px 0 10px; color: #45524c; background-color: #fff; border: 1px solid var(--line); border-radius: 9px; font-size: 10px; }
.date-compact { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 9px; }
.date-compact input { width: 121px; padding-right: 5px; }
.result-count { padding: 10px 15px 0; color: var(--muted); font-size: 9px; }
.truncate-cell { display: block; max-width: 270px; }
.pagination { min-height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 10px 15px; color: var(--muted); background: #fbfcfb; border-top: 1px solid var(--line); font-size: 9px; }
.pagination div { display: flex; align-items: center; gap: 10px; }
.pagination a { padding: 5px 8px; color: var(--primary); background: #fff; border: 1px solid var(--line); border-radius: 7px; font-weight: 700; }
.empty-state { min-height: 330px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 20px; text-align: center; }
.empty-state.embedded { min-height: 300px; border: 0; border-radius: 0; box-shadow: none; }
.empty-state h2 { margin: 13px 0 4px; font-size: 17px; }
.empty-state p { max-width: 430px; margin: 0 0 18px; color: var(--muted); font-size: 11px; }
.empty-icon { width: 52px; height: 52px; display: inline-flex; align-items: center; justify-content: center; color: var(--primary); background: var(--primary-soft); border-radius: 15px; font-size: 24px; font-weight: 800; }
.empty-inline { min-height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); font-size: 11px; text-align: center; }
.empty-inline > span { width: 43px; height: 43px; display: inline-flex; align-items: center; justify-content: center; color: var(--primary); background: var(--primary-soft); border-radius: 13px; }
.empty-inline p { margin: 10px 0 3px; }
.empty-inline a { color: var(--primary); font-weight: 700; }
.empty-inline.compact { min-height: 120px; }

.form-page-grid, .booking-create-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, .65fr); gap: 16px; align-items: start; }
.form-card { overflow: hidden; }
.stacked-form { display: flex; flex-direction: column; gap: 17px; padding: 21px; }
.field { display: flex; flex-direction: column; gap: 6px; color: #43504a; font-size: 10px; font-weight: 700; }
.field span { display: flex; align-items: center; gap: 3px; }
.field span em { color: var(--danger); font-style: normal; }
.field span small { color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; padding: 10px 11px; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: 9px; outline: none; font-size: 12px; font-weight: 450; transition: .15s ease; }
.field input, .field select { min-height: 41px; }
.field textarea { resize: vertical; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #6b9b89; box-shadow: 0 0 0 3px rgba(32, 90, 73, .08); }
.field small { color: var(--muted); font-size: 9px; font-weight: 450; }
.field small a { color: var(--primary); font-weight: 700; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; padding-top: 5px; border-top: 1px solid #edf0ee; }
.guidance-card { padding: 22px; background: #173d33; color: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.guidance-icon { width: 43px; height: 43px; display: inline-flex; align-items: center; justify-content: center; color: #214d3f; background: var(--accent); border-radius: 13px; }
.guidance-card h3 { margin: 16px 0 6px; font-size: 15px; }
.guidance-card > p { margin: 0 0 20px; color: #afc7bd; font-size: 11px; }
.guidance-rule { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.guidance-rule > span { min-width: 31px; height: 31px; display: inline-flex; align-items: center; justify-content: center; color: var(--accent); background: rgba(223, 255, 114, .09); border-radius: 8px; font-size: 13px; font-weight: 800; }
.guidance-rule p { margin: 0; color: #d6e3de; font-size: 10px; }

.profile-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 14px; padding: 20px 22px; }
.profile-main { min-width: 0; display: flex; align-items: center; gap: 14px; }
.profile-title { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.profile-title h2, .report-subject h2 { margin: 0; font-size: 20px; letter-spacing: -.35px; }
.profile-main p { display: flex; align-items: center; gap: 5px; margin: 2px 0; color: var(--muted); font-size: 10px; }
.profile-actions { display: flex; align-items: center; gap: 7px; }
.availability { display: inline-flex; align-items: center; gap: 5px; width: fit-content; padding: 4px 7px; border-radius: 99px; font-size: 8px; font-weight: 800; }
.availability i { width: 6px; height: 6px; border-radius: 50%; }
.availability.available { color: var(--success); background: var(--success-soft); }
.availability.available i { background: var(--success); }
.availability.unavailable { color: var(--muted); background: #eff1f0; }
.availability.unavailable i { background: #9da7a2; }
.summary-grid { display: grid; gap: 12px; margin-bottom: 14px; }
.summary-grid-3 { grid-template-columns: repeat(3, 1fr); }
.summary-grid-4 { grid-template-columns: repeat(4, 1fr); }
.summary-card { display: flex; flex-direction: column; padding: 16px 17px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.summary-card small { color: var(--muted); font-size: 9px; font-weight: 650; }
.summary-card strong { margin: 2px 0 1px; font-size: 18px; letter-spacing: -.35px; }
.summary-card span { color: #8d9792; font-size: 8px; }
.summary-card.highlight { color: #fff; background: #1b4438; border-color: #1b4438; }
.summary-card.highlight small, .summary-card.highlight span { color: #b5ccc3; }
.summary-card.highlight strong { color: var(--accent); }
.report-section { margin-top: 14px; }
.report-card-header { border-bottom: 0; }
.compact-filter { min-height: 54px; padding-top: 6px; border-top: 1px solid var(--line); }
.inline-field { flex-direction: row; align-items: center; }
.inline-field input { min-height: 35px; width: 133px; padding: 6px 8px; font-size: 10px; }
.vendor-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 15px; }
.vendor-card { position: relative; display: flex; flex-direction: column; padding: 17px; background: #fff; border: 1px solid var(--line); border-radius: 12px; transition: .18s ease; }
.vendor-card:hover { transform: translateY(-2px); border-color: #c8b9db; box-shadow: 0 10px 25px rgba(50, 33, 69, .07); }
.vendor-card-top { display: flex; align-items: flex-start; justify-content: space-between; }
.vendor-card h3 { margin: 12px 0 0; font-size: 14px; }
.vendor-specialty { margin: 1px 0 12px; color: var(--violet); font-size: 9px; font-weight: 700; }
.vendor-meta { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 9px; }
.vendor-meta span { display: flex; align-items: center; gap: 5px; }
.vendor-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 15px; padding: 11px 0; border-top: 1px solid #edf0ee; border-bottom: 1px solid #edf0ee; }
.vendor-stats span { display: flex; flex-direction: column; border-right: 1px solid #edf0ee; }
.vendor-stats span:not(:first-child) { padding-left: 8px; }
.vendor-stats span:last-child { border-right: 0; }
.vendor-stats small { color: var(--muted); font-size: 7px; }
.vendor-stats strong { margin-top: 1px; font-size: 10px; }
.vendor-open { display: flex; align-items: center; gap: 5px; margin-top: 11px; color: var(--primary); font-size: 9px; font-weight: 750; }

.step-kicker { display: block; margin-bottom: 3px; color: var(--primary); font-size: 8px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.booking-form-card .card-header { min-height: 94px; }
.workflow-card { position: sticky; top: 96px; padding: 22px; color: #fff; background: #173d33; border-color: #173d33; }
.workflow-card h3 { margin: 2px 0 18px; font-size: 16px; }
.journey-list { margin: 0; padding: 0; list-style: none; }
.journey-list li { position: relative; display: flex; align-items: center; gap: 11px; min-height: 57px; color: #a9c0b7; }
.journey-list li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 42px; bottom: -1px; width: 1px; background: rgba(255, 255, 255, .16); }
.journey-list li > span { width: 31px; height: 31px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; color: #a9c0b7; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); border-radius: 50%; font-size: 10px; font-weight: 800; }
.journey-list li.current > span { color: #173d33; background: var(--accent); border-color: var(--accent); }
.journey-list li div { display: flex; flex-direction: column; }
.journey-list strong { color: #e7f0ec; font-size: 10px; }
.journey-list small { font-size: 8px; }
.formula-card { margin-top: 19px; padding: 15px; color: #1e4237; background: var(--accent); border-radius: 12px; }
.formula-card small { display: block; font-size: 8px; font-weight: 750; text-transform: uppercase; }
.formula-card strong { display: block; margin: 1px 0; font-size: 27px; line-height: 1.1; }
.formula-card p { margin: 0; font-size: 9px; }

.booking-hero { display: flex; align-items: stretch; justify-content: space-between; gap: 20px; margin-bottom: 12px; overflow: hidden; }
.booking-identity { flex: 1; padding: 21px 23px; }
.booking-code-line { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 9px; }
.booking-identity h2 { margin: 8px 0 4px; font-size: 24px; letter-spacing: -.6px; }
.booking-identity > p { max-width: 800px; margin: 0; color: #56615c; font-size: 11px; }
.booking-schedule { min-width: 225px; display: flex; align-items: center; gap: 11px; padding: 20px 23px; color: #fff; background: #1b4438; }
.booking-schedule > span { width: 41px; height: 41px; display: inline-flex; align-items: center; justify-content: center; color: var(--accent); background: rgba(223, 255, 114, .1); border-radius: 11px; }
.booking-schedule div { display: flex; flex-direction: column; }
.booking-schedule small { color: #a8c1b7; font-size: 8px; }
.booking-schedule strong { font-size: 12px; }
.booking-schedule em { color: var(--accent); font-size: 9px; font-style: normal; font-weight: 700; }
.status-journey { min-height: 74px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; padding: 12px 25px; }
.journey-node { display: flex; align-items: center; gap: 7px; color: #9aa49f; }
.journey-node > span { width: 29px; height: 29px; display: inline-flex; align-items: center; justify-content: center; background: #f0f2f1; border-radius: 50%; }
.journey-node small { font-size: 9px; font-weight: 700; white-space: nowrap; }
.journey-node.done { color: var(--success); }
.journey-node.done > span { background: var(--success-soft); }
.journey-node.current { color: var(--info); }
.journey-node.current > span { background: var(--info-soft); box-shadow: 0 0 0 4px rgba(39, 108, 170, .07); }
.journey-connector { width: min(9vw, 130px); height: 1px; margin: 0 12px; background: #dfe4e1; }
.journey-connector.done { background: #77c3a3; }
.booking-detail-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(260px, .65fr); gap: 12px; align-items: start; }
.booking-main-column, .booking-side-column { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.action-card { overflow: hidden; border-top: 3px solid var(--primary); }
.action-card-success { border-top-color: var(--success); }
.action-number { color: #e7ece9; font-size: 36px; font-weight: 850; line-height: 1; }
.assignment-form { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(180px, .8fr) auto; align-items: end; gap: 10px; padding: 18px 20px; }
.secondary-action { display: flex; align-items: center; justify-content: flex-end; gap: 7px; padding: 10px 20px; color: var(--muted); background: #fbfcfb; border-top: 1px solid var(--line); font-size: 9px; }
.action-choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 18px 20px; }
.action-choice { display: grid; grid-template-columns: 39px 1fr auto; align-items: center; gap: 9px; min-height: 74px; padding: 10px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 11px; text-align: left; cursor: pointer; }
.action-choice:hover { border-color: #b8c6bf; box-shadow: var(--shadow-sm); }
.action-choice > span:nth-child(2) { display: flex; flex-direction: column; }
.action-choice strong { font-size: 10px; }
.action-choice small { color: var(--muted); font-size: 8px; }
.action-choice > .icon { color: #9ba6a1; }
.choice-icon { width: 39px; height: 39px; }
.violet-tone { color: var(--violet) !important; background: var(--violet-soft) !important; }
.danger-tone { color: var(--danger) !important; background: var(--danger-soft) !important; }
.success-tone { color: var(--success) !important; background: var(--success-soft) !important; }
.choice-complete { border-color: #badfce; background: #fbfffd; }
.completion-card { overflow: hidden; border-top: 3px solid var(--success); }
.completion-check { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; color: var(--success); background: var(--success-soft); border-radius: 50%; }
.financial-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.financial-grid > div { display: flex; flex-direction: column; padding: 17px 18px; border-right: 1px solid var(--line); }
.financial-grid > div:last-child { border-right: 0; }
.financial-grid small { color: var(--muted); font-size: 8px; }
.financial-grid strong { margin: 2px 0; font-size: 16px; }
.financial-grid span { color: #909a95; font-size: 8px; }
.financial-grid .commission-result { color: #183e33; background: var(--accent-soft); }
.financial-grid .commission-result strong { color: var(--success); }
.completion-note { padding: 13px 18px; background: #fbfcfb; border-top: 1px solid var(--line); }
.completion-note strong { font-size: 9px; }
.completion-note p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.closed-card { display: flex; align-items: center; gap: 14px; padding: 20px; border-left: 3px solid var(--danger); }
.closed-icon { width: 52px; height: 52px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.closed-card h3 { margin: 2px 0; font-size: 15px; }.closed-card p { margin: 0; color: var(--muted); font-size: 10px; }
.detail-card, .history-card { overflow: hidden; }
.detail-list { margin: 0; }
.detail-list > div { display: grid; grid-template-columns: 125px 1fr; padding: 14px 20px; border-bottom: 1px solid #edf0ee; }
.detail-list > div:last-child { border-bottom: 0; }
.detail-list dt { color: var(--muted); font-size: 9px; font-weight: 700; }
.detail-list dd { margin: 0; color: #3f4d47; font-size: 10px; }
.timeline { padding: 5px 20px 14px; }
.timeline-entry { position: relative; display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 12px 0; }
.timeline-entry:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 40px; bottom: -4px; width: 1px; background: var(--line); }
.timeline-marker { width: 29px; height: 29px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; z-index: 1; }
.marker-warning { color: var(--warning); background: var(--warning-soft); }.marker-info { color: var(--info); background: var(--info-soft); }.marker-violet { color: var(--violet); background: var(--violet-soft); }.marker-danger { color: var(--danger); background: var(--danger-soft); }.marker-success { color: var(--success); background: var(--success-soft); }
.timeline-copy > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.timeline-copy strong { font-size: 10px; }.timeline-copy time { color: var(--muted); font-size: 8px; }.timeline-copy p { margin: 3px 0; color: #59655f; font-size: 10px; }.timeline-copy small { color: #929c97; font-size: 8px; }
.contact-card, .assignment-history { padding: 17px; }
.card-mini-label { display: block; margin-bottom: 13px; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; }
.contact-person { display: flex; align-items: center; gap: 10px; margin-bottom: 11px; }
.contact-person > div { min-width: 0; display: flex; flex-direction: column; }
.contact-person strong { font-size: 11px; }
.contact-person a { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 9px; }
.contact-card > p { display: flex; gap: 5px; margin: 0 0 13px; padding: 9px; color: var(--muted); background: var(--surface-soft); border-radius: 8px; font-size: 9px; }
.vendor-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: -1px 0 13px; }.vendor-tags span { padding: 4px 6px; color: var(--violet); background: var(--violet-soft); border-radius: 6px; font-size: 8px; font-weight: 650; }
.unassigned-state { min-height: 75px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #9ba6a1; background: var(--surface-soft); border: 1px dashed var(--line-strong); border-radius: 10px; }.unassigned-state p { margin: 5px 0 0; font-size: 9px; }
.assignment-entry { display: grid; grid-template-columns: 8px 1fr; gap: 9px; padding: 9px 0; border-bottom: 1px solid #edf0ee; }.assignment-entry:last-child { border-bottom: 0; }.assignment-entry .status-dot { margin-top: 5px; }.assignment-entry div { display: flex; flex-direction: column; }.assignment-entry strong { font-size: 10px; }.assignment-entry small, .assignment-entry em { color: var(--muted); font-size: 8px; font-style: normal; }

.modal { width: min(590px, calc(100vw - 28px)); max-height: calc(100vh - 40px); padding: 0; color: var(--ink); background: transparent; border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.modal::backdrop { background: rgba(10, 27, 22, .62); backdrop-filter: blur(3px); }
.modal-card { overflow: hidden; background: #fff; border-radius: var(--radius-lg); }
.modal-header { display: grid; grid-template-columns: 41px 1fr auto; align-items: center; gap: 11px; padding: 17px 19px; border-bottom: 1px solid var(--line); }
.modal-header h3 { margin: 0; font-size: 14px; }.modal-header p { margin: 1px 0 0; color: var(--muted); font-size: 9px; }.modal-header > button { width: 32px; height: 32px; color: var(--muted); background: #f3f5f4; border: 0; border-radius: 8px; font-size: 20px; cursor: pointer; }
.modal-body { display: flex; flex-direction: column; gap: 15px; max-height: calc(100vh - 190px); overflow-y: auto; padding: 19px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 7px; padding: 13px 19px; background: #f9faf9; border-top: 1px solid var(--line); }
.warning-box { display: flex; align-items: flex-start; gap: 8px; padding: 11px; color: #8c3e3e; background: var(--danger-soft); border: 1px solid #f2cdcd; border-radius: 9px; }.warning-box p { margin: 0; font-size: 9px; }
.money-input { display: flex; align-items: center; height: 43px; border: 1px solid var(--line-strong); border-radius: 9px; overflow: hidden; }.money-input:focus-within { border-color: #6b9b89; box-shadow: 0 0 0 3px rgba(32, 90, 73, .08); }.money-input b { height: 100%; display: inline-flex; align-items: center; padding: 0 11px; color: var(--primary); background: var(--primary-soft); border-right: 1px solid var(--line); }.money-input input { min-height: 0; height: 100%; border: 0; border-radius: 0; box-shadow: none !important; }
.live-calculation { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 13px; background: #f8faf8; border: 1px solid var(--line); border-radius: 11px; }.live-calculation > div { display: flex; flex-direction: column; }.live-calculation small { color: var(--muted); font-size: 8px; }.live-calculation strong { font-size: 16px; }.live-calculation span { color: #8c9691; font-size: 8px; }.calculation-arrow { color: var(--primary) !important; font-size: 11px !important; font-weight: 800; }.live-commission { padding: 9px 11px; background: var(--accent-soft); border-radius: 9px; }.live-commission strong { color: var(--success); }.calculation-error { margin: -7px 0 0; color: var(--danger); font-size: 9px; }

.report-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 14px; padding: 23px 25px; color: #fff; background: #173d33; border-color: #173d33; }.report-hero h2 { margin: 2px 0 3px; font-size: 22px; }.report-hero p { margin: 0; color: #acc4ba; font-size: 10px; }.report-hero .step-kicker { color: var(--accent); }.report-formula { display: flex; align-items: center; gap: 11px; padding: 12px 15px; color: #21483c; background: var(--accent); border-radius: 12px; }.report-formula > span { width: 35px; height: 35px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.45); border-radius: 9px; }.report-formula div { display: flex; flex-direction: column; }.report-formula small { font-size: 8px; font-weight: 700; }.report-formula strong { font-size: 11px; }
.report-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.report-card { position: relative; min-height: 225px; display: flex; flex-direction: column; align-items: flex-start; padding: 23px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; transition: .18s ease; }.report-card:hover { transform: translateY(-2px); border-color: #b9c8c1; box-shadow: 0 12px 30px rgba(17,37,29,.08); }.report-number { position: absolute; right: 18px; top: 10px; color: #edf0ee; font-size: 48px; font-weight: 900; line-height: 1; }.report-icon { width: 48px; height: 48px; position: relative; }.report-card h3 { margin: 16px 0 5px; font-size: 15px; }.report-card p { max-width: 490px; margin: 0; color: var(--muted); font-size: 10px; }.report-open { display: flex; align-items: center; gap: 5px; margin-top: auto; padding-top: 16px; color: var(--primary); font-size: 9px; font-weight: 750; }.report-card-dark { color: #fff; background: #1b4438; border-color: #1b4438; }.report-card-dark .report-number { color: rgba(255,255,255,.06); }.report-card-dark p { color: #afc6bd; }.report-card-dark .report-open { color: var(--accent); }
.report-notes { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 14px; padding: 15px 19px; }.report-notes > div { display: flex; align-items: flex-start; gap: 9px; padding: 2px 15px; border-right: 1px solid var(--line); }.report-notes > div:first-child { padding-left: 0; }.report-notes > div:last-child { padding-right: 0; border: 0; }.report-notes span { color: var(--success); }.report-notes p { margin: 0; color: var(--muted); font-size: 9px; }.report-notes strong { color: var(--ink); }
.report-page-heading { display: flex; align-items: center; justify-content: space-between; min-height: 40px; margin-bottom: 14px; }
.report-filter-card { margin-bottom: 14px; }.report-filter-form { display: flex; align-items: flex-end; gap: 10px; padding: 15px; }.report-entity-select { min-width: 260px; flex: 1; }.report-filter-form > .field:not(.report-entity-select) { width: 145px; }
.print-report-header { display: none; }
.report-subject { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 13px; padding: 18px 21px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }.report-subject p { margin: 2px 0 0; color: var(--muted); font-size: 10px; }.report-period { display: flex; flex-direction: column; align-items: flex-end; }.report-period small { color: var(--muted); font-size: 8px; }.report-period strong { font-size: 11px; }.report-summary { margin-bottom: 0; }
.status-summary-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 14px; }.status-summary-card { display: flex; align-items: center; gap: 10px; padding: 13px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); }.status-summary-card:hover, .status-summary-card.selected { border-color: #95b4a7; box-shadow: 0 0 0 2px rgba(32,90,73,.06); }.status-summary-card > span:last-child { display: flex; flex-direction: column; }.status-summary-card small { color: var(--muted); font-size: 8px; }.status-summary-card strong { font-size: 17px; }
.commission-filter .filter-description { min-width: 230px; flex: 1; display: flex; align-items: center; gap: 9px; }.filter-description .report-icon { width: 40px; height: 40px; }.filter-description > div { display: flex; flex-direction: column; }.filter-description strong { font-size: 10px; }.filter-description small { color: var(--muted); font-size: 8px; }
.commission-hero { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-bottom: 13px; padding: 23px 25px; color: #fff; background: linear-gradient(110deg, #173d33, #245b4c); border-radius: var(--radius-lg); box-shadow: 0 12px 28px rgba(23,61,51,.14); }.commission-hero .step-kicker { color: var(--accent); }.commission-hero h2 { margin: 1px 0; color: var(--accent); font-size: 31px; letter-spacing: -.8px; }.commission-hero p { margin: 0; color: #afc6bd; font-size: 10px; }.commission-formula-large { display: flex; align-items: center; gap: 8px; padding: 10px 13px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); border-radius: 11px; font-size: 9px; }.commission-formula-large b { color: var(--accent); }.commission-formula-large strong { padding: 4px 7px; color: #193d33; background: var(--accent); border-radius: 6px; }
.vendor-commission-section { margin-top: 14px; overflow: hidden; }.vendor-commission-list { padding: 3px 18px 10px; }.vendor-commission-row { display: grid; grid-template-columns: 31px minmax(120px, .7fr) minmax(130px, 1fr) minmax(100px, .45fr); align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #edf0ee; }.vendor-commission-row:last-child { border-bottom: 0; }.vendor-commission-name, .vendor-commission-value { display: flex; flex-direction: column; }.vendor-commission-name strong, .vendor-commission-value strong { font-size: 10px; }.vendor-commission-name small, .vendor-commission-value small { color: var(--muted); font-size: 8px; }.vendor-commission-value { align-items: flex-end; }.commission-bar { height: 7px; background: #edf1ee; border-radius: 99px; overflow: hidden; }.commission-bar i { display: block; height: 100%; background: linear-gradient(90deg, #4f937a, var(--accent)); border-radius: inherit; }

.guest-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(380px, 1.05fr) minmax(420px, .95fr); background: #fff; }
.guest-brand-panel { min-height: 100vh; padding: 36px; color: #fff; background: linear-gradient(140deg, #0e2a22 0%, #17483a 62%, #235e4c 100%); overflow: hidden; position: relative; }.guest-brand-panel::before, .guest-brand-panel::after { content: ""; position: absolute; border: 1px solid rgba(223,255,114,.1); border-radius: 50%; }.guest-brand-panel::before { width: 520px; height: 520px; right: -260px; top: -180px; box-shadow: 0 0 0 75px rgba(223,255,114,.025), 0 0 0 150px rgba(223,255,114,.018); }.guest-brand-panel::after { width: 300px; height: 300px; left: -180px; bottom: -160px; }.guest-brand-inner { position: relative; z-index: 1; height: calc(100vh - 72px); display: flex; flex-direction: column; max-width: 650px; margin: 0 auto; }.brand-light { height: auto; padding: 0; }.guest-message { margin: auto 0; }.guest-kicker { display: block; margin-bottom: 11px; color: var(--accent); font-size: 9px; font-weight: 800; letter-spacing: 1.3px; text-transform: uppercase; }.guest-message h1 { margin: 0; font-size: clamp(39px, 5vw, 64px); line-height: 1.03; letter-spacing: -2.5px; }.guest-message p { max-width: 460px; margin: 19px 0 0; color: #acc6bb; font-size: 13px; line-height: 1.7; }.workflow-preview { display: flex; align-items: center; padding: 16px 18px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.09); border-radius: 13px; backdrop-filter: blur(8px); }.workflow-step { display: flex; align-items: center; gap: 6px; color: #829f94; font-size: 9px; font-weight: 700; white-space: nowrap; }.workflow-step.done { color: #cfe0da; }.workflow-step.active { color: var(--accent); }.workflow-line { flex: 1; height: 1px; margin: 0 13px; background: rgba(255,255,255,.16); }
.guest-form-panel { display: flex; align-items: center; justify-content: center; padding: 35px; }.guest-form-wrap { width: 100%; max-width: 390px; }.auth-heading { margin-bottom: 25px; }.auth-icon { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; color: var(--primary); background: var(--primary-soft); border-radius: 14px; }.auth-heading h2 { margin: 15px 0 4px; font-size: 25px; letter-spacing: -.7px; }.auth-heading p { margin: 0; color: var(--muted); font-size: 11px; }.auth-form { display: flex; flex-direction: column; gap: 15px; }.auth-note { margin: 20px 0 0; padding-top: 17px; color: #929d98; border-top: 1px solid var(--line); font-size: 9px; text-align: center; }
.error-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 25px; background: var(--bg); }.error-card { max-width: 520px; padding: 38px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); text-align: center; }.error-card h1 { margin: 15px 0 5px; font-size: 20px; }.error-card p { margin: 0 0 14px; color: var(--muted); }.error-card small { color: #9aa39f; }
.sidebar-overlay { display: none; }

@media (max-width: 1240px) {
    .metric-grid { grid-template-columns: repeat(2, 1fr); }
    .finance-strip { grid-template-columns: minmax(210px, 1.4fr) repeat(4, minmax(90px, .6fr)); }.finance-divider { display: none; }
    .dashboard-grid { grid-template-columns: 1fr; }.schedule-card { min-height: 250px; }.schedule-list { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 14px; }
    .vendor-grid { grid-template-columns: repeat(2, 1fr); }
    .booking-filters { flex-wrap: wrap; }.booking-filters .search-field { max-width: none; }
    .status-summary-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 960px) {
    :root { --sidebar: 235px; }
    .sidebar { transform: translateX(-100%); transition: transform .22s ease; box-shadow: 20px 0 50px rgba(6,22,16,.2); }.sidebar.open { transform: translateX(0); }.sidebar-overlay { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(10,27,22,.5); opacity: 0; visibility: hidden; transition: .22s; }.sidebar.open + .sidebar-overlay { opacity: 1; visibility: visible; }
    .main-shell { margin-left: 0; }.mobile-menu { display: inline-flex; }
    .content { padding: 22px; }.topbar { padding: 0 22px; }
    .finance-strip { grid-template-columns: repeat(4, 1fr); }.finance-intro { grid-column: 1 / -1; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
    .form-page-grid, .booking-create-grid, .booking-detail-grid { grid-template-columns: 1fr; }.workflow-card { position: static; }
    .summary-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .assignment-form { grid-template-columns: 1fr 1fr; }.assignment-form .button { grid-column: 1 / -1; }
    .action-choice-grid { grid-template-columns: 1fr; }
    .report-notes { grid-template-columns: 1fr; }.report-notes > div, .report-notes > div:first-child, .report-notes > div:last-child { padding: 10px 0; border-right: 0; border-bottom: 1px solid var(--line); }.report-notes > div:last-child { border-bottom: 0; }
    .guest-shell { grid-template-columns: minmax(330px, .8fr) minmax(390px, 1.2fr); }.guest-brand-panel { padding: 28px; }.guest-message h1 { font-size: 43px; }
}

@media (max-width: 720px) {
    .content { padding: 17px 14px 30px; }.topbar { height: 68px; padding: 0 14px; }.topbar h1 { font-size: 18px; }.topbar-action span { display: none; }.topbar-action { width: 40px; padding: 0; }
    .welcome-panel { align-items: flex-start; padding: 20px; }.welcome-panel h2 { font-size: 20px; }.welcome-panel .button { display: none; }
    .metric-grid { grid-template-columns: 1fr 1fr; gap: 9px; }.metric-card { grid-template-columns: 36px 1fr; padding: 13px; gap: 9px; }.metric-icon { width: 36px; height: 36px; }.metric-link { display: none; }.metric-copy strong { font-size: 18px; }.metric-copy em { display: none; }
    .finance-strip { grid-template-columns: repeat(2, 1fr); }.finance-metric { padding: 6px; }
    .directory-strip { grid-template-columns: 1fr; }
    .schedule-list { grid-template-columns: 1fr; }
    .page-actions { align-items: flex-start; }.page-actions > div p { max-width: 260px; }.page-actions .button { min-width: 40px; }
    .filter-bar { align-items: stretch; flex-wrap: wrap; }.search-field { min-width: 100%; max-width: none; }.booking-filters > label:not(.search-field) { flex: 1; }.booking-filters select { width: 100%; }.date-compact { min-width: 140px; }.date-compact input { width: 100%; }
    .form-row { grid-template-columns: 1fr; }.form-actions { flex-direction: column-reverse; }.form-actions .button { width: 100%; }
    .vendor-grid { grid-template-columns: 1fr; padding: 11px; }
    .profile-header { align-items: flex-start; flex-direction: column; }.profile-actions { width: 100%; }.profile-actions .button, .profile-actions form, .profile-actions form button { flex: 1; }
    .summary-grid-3, .summary-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .booking-hero { flex-direction: column; }.booking-schedule { min-width: 0; }.status-journey { justify-content: flex-start; overflow-x: auto; padding: 12px 15px; }.journey-connector { min-width: 35px; }.journey-node { flex-direction: column; gap: 3px; }.journey-node small { font-size: 7px; }
    .financial-grid { grid-template-columns: repeat(2, 1fr); }.financial-grid > div:nth-child(2) { border-right: 0; }.financial-grid > div { border-bottom: 1px solid var(--line); }.financial-grid > div:nth-last-child(-n+2) { border-bottom: 0; }
    .detail-list > div { grid-template-columns: 1fr; gap: 5px; }.timeline-copy > div { align-items: flex-start; flex-direction: column; gap: 1px; }
    .report-grid { grid-template-columns: 1fr; }.report-hero { align-items: flex-start; flex-direction: column; }.report-formula { width: 100%; }.report-filter-form { align-items: stretch; flex-wrap: wrap; }.report-entity-select, .report-filter-form > .field:not(.report-entity-select) { width: 100%; min-width: 0; }.report-filter-form .button { flex: 1; }
    .report-subject { align-items: flex-start; flex-direction: column; }.report-period { align-items: flex-start; }.status-summary-grid { grid-template-columns: repeat(2, 1fr); }.commission-hero { align-items: flex-start; flex-direction: column; }.commission-formula-large { width: 100%; flex-wrap: wrap; }.vendor-commission-row { grid-template-columns: 31px 1fr auto; }.commission-bar { grid-column: 2 / -1; grid-row: 2; }.vendor-commission-value { grid-column: 3; grid-row: 1; }
    .pagination { align-items: flex-start; flex-direction: column; gap: 9px; }
    .guest-shell { display: block; }.guest-brand-panel { min-height: auto; padding: 22px; }.guest-brand-inner { height: auto; }.guest-message { margin: 55px 0 45px; }.guest-message h1 { font-size: 38px; }.workflow-preview { display: none; }.guest-form-panel { padding: 38px 22px 55px; }
}

@media (max-width: 430px) {
    .metric-grid { grid-template-columns: 1fr; }.finance-strip { grid-template-columns: 1fr 1fr; }.summary-grid-3, .summary-grid-4 { grid-template-columns: 1fr; }.financial-grid { grid-template-columns: 1fr; }.financial-grid > div { border-right: 0; border-bottom: 1px solid var(--line) !important; }.financial-grid > div:last-child { border-bottom: 0 !important; }.live-calculation { grid-template-columns: 1fr; }.calculation-arrow { text-align: center; }.modal-body .form-row { grid-template-columns: 1fr; }.report-card { min-height: 210px; }
}

@media print {
    @page { size: A4 landscape; margin: 12mm; }
    body { color: #111; background: #fff; font-size: 10px; }
    .sidebar, .sidebar-overlay, .topbar, .print-hide, .alert, .page-actions, .report-filter-card, dialog { display: none !important; }
    .main-shell { margin: 0; }.content { max-width: none; padding: 0; }.card, .summary-card, .report-subject { box-shadow: none; break-inside: avoid; }.print-report-header { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; padding-bottom: 9px; border-bottom: 1px solid #aaa; }.print-report-header .brand-mark { width: 32px; height: 32px; }.print-report-header div { display: flex; flex-direction: column; }.print-report-header small { color: #555; font-size: 8px; }
    .summary-grid-4 { grid-template-columns: repeat(4, 1fr); }.summary-grid-3 { grid-template-columns: repeat(3, 1fr); }.summary-card.highlight { color: #111; background: #f2f2f2; border-color: #bbb; }.summary-card.highlight small, .summary-card.highlight span, .summary-card.highlight strong { color: #111; }
    .commission-hero { color: #111; background: #f4f4f4; box-shadow: none; }.commission-hero h2, .commission-hero .step-kicker { color: #111; }.commission-hero p { color: #555; }.commission-formula-large { border-color: #aaa; }.commission-formula-large strong { color: #111; background: #ddd; }
    th { color: #222; background: #eee; } td, th { padding: 6px 8px; font-size: 8px; } a { text-decoration: none; }.report-section { break-before: auto; }
}
