:root {
    --bg: #f6f7f8;
    --panel: #ffffff;
    --text: #17202a;
    --muted: #65717d;
    --line: #d9dee4;
    --accent: #087f8c;
    --accent-dark: #05616b;
    --warn: #b54708;
    --warn-bg: #fff2df;
    --danger: #b42318;
    --ok: #197b30;
    --soft: #eef6f7;
    --sidebar: #111827;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    letter-spacing: 0;
}

body.compact-ui {
    font-size: 14px;
}

body.compact-ui .main,
body.compact-ui .form-band,
body.compact-ui .metric,
body.compact-ui .dashboard-appointments {
    padding: 14px;
}

body.compact-ui input,
body.compact-ui select,
body.compact-ui textarea,
body.compact-ui button,
body.compact-ui .button {
    min-height: 34px;
    padding: 7px 9px;
}

a {
    color: var(--accent);
    text-decoration: none;
}

h1, h2 {
    margin: 0;
    font-weight: 700;
}

h1 {
    font-size: 28px;
    line-height: 1.15;
}

h2 {
    font-size: 18px;
    margin-bottom: 14px;
    line-height: 1.2;
}

p {
    margin: 6px 0 0;
}

.app-shell {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    min-height: 100vh;
    transition: grid-template-columns 0.18s ease;
}

.sidebar {
    position: sticky;
    top: 0;
    align-self: start;
    height: 100vh;
    max-height: 100vh;
    background: var(--sidebar);
    color: #fff;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
    overflow: auto;
    transition: opacity 0.16s ease, padding 0.16s ease, transform 0.16s ease;
}

body.sidebar-collapsed .app-shell {
    grid-template-columns: 0 minmax(0, 1fr);
}

body.sidebar-collapsed .sidebar {
    width: 0;
    padding-left: 0;
    padding-right: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-12px);
}

.main-topbar {
    position: sticky;
    top: 10px;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    flex-wrap: wrap;
}

.sidebar-toggle {
    position: static;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    margin: 0;
    padding: 10px 16px;
    border: 0;
    border-radius: 8px;
    background: #0f8b8d;
    color: #fff;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(15, 139, 141, 0.22);
}

.app-version-badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 12px;
    border: 1px solid #b7dfe0;
    border-radius: 999px;
    background: #ecfeff;
    color: #0f6466;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0;
    box-shadow: 0 6px 14px rgba(15, 139, 141, 0.12);
}

.sidebar-toggle:hover,
.sidebar-toggle:focus {
    background: #0a6f71;
}

.sidebar-toggle-icon {
    display: inline-grid;
    gap: 4px;
    width: 22px;
}

.sidebar-toggle-icon span {
    display: block;
    height: 3px;
    border-radius: 999px;
    background: currentColor;
}

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

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #f2c14e;
    color: #111827;
    font-weight: 800;
    flex: 0 0 auto;
}

.brand-logo {
    width: 66px;
    height: 66px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 4px;
    flex: 0 0 auto;
}

.brand strong,
.brand small {
    display: block;
    overflow-wrap: anywhere;
}

.brand small {
    color: #b7c0cc;
    margin-top: 3px;
}

nav {
    display: grid;
    gap: 5px;
}

nav a,
.sidebar-footer a {
    color: #d9e2ec;
    padding: 10px 12px;
    border-radius: 6px;
}

nav a.has-nav-icon {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
}

.nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.nav-icon svg {
    display: block;
    width: 25px;
    height: 25px;
}

nav a.active,
nav a:hover,
.sidebar-footer a:hover {
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
}

.sidebar-footer {
    margin-top: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.main {
    padding: 24px;
    min-width: 0;
}

.app-footer,
.login-footer {
    margin-top: 32px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

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

.page-head p,
.muted {
    color: var(--muted);
}

.metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

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

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.quick-action {
    display: grid;
    gap: 6px;
    min-height: 96px;
    padding: 18px;
    border-radius: 8px;
    color: #fff;
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.12);
}

.quick-action strong {
    font-size: 18px;
}

.quick-action span {
    color: rgba(255, 255, 255, 0.86);
}

.quick-action:hover {
    color: #fff;
    transform: translateY(-1px);
}

.qa-appointments {
    background: #0f766e;
}

.qa-customers {
    background: #2563eb;
}

.qa-services {
    background: #7c3aed;
}

.qa-pos {
    background: #d97706;
}

.dashboard-appointments {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 18px;
}

.section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.dashboard-section-title {
    margin-bottom: 10px;
}

.dashboard-section-title h2 {
    margin: 0;
}

.dashboard-clear-form {
    margin-left: 0;
}

.warning-button {
    border-color: #f59e0b;
    background: #fff7ed;
    color: #92400e;
    font-weight: 800;
}

.warning-button:hover,
.warning-button:focus {
    background: #fed7aa;
    color: #78350f;
}

.range-picker select {
    min-width: 160px;
}

.appointment-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 10px;
}

.appointment-card {
    display: grid;
    gap: 5px;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--line);
    color: var(--text);
    background: #fff;
}

.appointment-card span,
.appointment-card small {
    color: var(--muted);
    font-size: 12px;
}

.appointment-card strong,
.appointment-card em {
    overflow-wrap: anywhere;
}

.appointment-card em {
    color: var(--muted);
    font-style: normal;
}

.appointment-card.is-today {
    border-color: #60a5fa;
}

.appointment-card.is-soon {
    background: #fff7ed;
    border-color: #fb923c;
}

.appointment-card.is-due {
    background: #fef2f2;
    border-color: #ef4444;
}

.metric,
.form-band,
.table-wrap,
.checkout-panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.metric {
    padding: 18px;
}

.metric span {
    display: block;
    color: var(--muted);
    margin-bottom: 8px;
}

.metric strong {
    font-size: 26px;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.form-band {
    padding: 18px;
    margin-bottom: 18px;
}

.supplier-purchase-note {
    line-height: 1.45;
    margin: 8px 0 18px;
    max-width: 980px;
}

.quick-customer {
    border: 1px dashed var(--line);
    border-radius: 8px;
    padding: 14px;
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 12px;
    align-items: start;
}

.quick-customer legend {
    color: var(--muted);
    padding: 0 6px;
}

.quick-customer label.full {
    grid-column: 1 / -1;
}

.quick-customer textarea {
    min-height: 70px;
}

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

.reseller-product-picker {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px;
    max-height: 260px;
    overflow: auto;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
}

.reseller-product-picker label {
    display: flex;
    gap: 8px;
    align-items: center;
    min-height: 42px;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.reseller-product-picker input {
    width: 18px;
    height: 18px;
}

.category-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.category-filter-chips .button {
    border-color: #cbd5e1;
    background: #fff;
    color: #334155;
    font-weight: 700;
}

.category-filter-chips .button.is-active {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}

.product-filter-count {
    margin: 10px 0 0;
}

.product-search-band {
    margin-top: -4px;
}

.product-filter-bar {
    grid-template-columns: minmax(220px, 1.5fr) minmax(180px, 1fr) minmax(170px, 0.9fr) minmax(140px, 0.55fr) auto;
}

.products-table-scroll .table-wrap {
    max-height: 560px;
    overflow: auto;
}

.products-table-scroll .table-wrap table {
    min-width: 1180px;
}

.services-table-scroll .table-wrap {
    height: min(520px, calc(100vh - 330px));
    min-height: 260px;
    overflow-y: scroll;
    overflow-x: auto;
    scrollbar-gutter: stable;
}

.services-table-scroll .table-wrap table {
    min-width: 820px;
    margin-bottom: 0;
}

.services-table-scroll th {
    position: sticky;
    top: 0;
    z-index: 2;
}

.services-table-scroll .table-wrap,
.pos-product-grid[data-pos-view="services"] {
    scrollbar-color: var(--accent) #e5eef3;
    scrollbar-width: thin;
}

.services-table-scroll .table-wrap::-webkit-scrollbar,
.pos-product-grid[data-pos-view="services"]::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

.services-table-scroll .table-wrap::-webkit-scrollbar-track,
.pos-product-grid[data-pos-view="services"]::-webkit-scrollbar-track {
    background: #e5eef3;
    border-radius: 999px;
}

.services-table-scroll .table-wrap::-webkit-scrollbar-thumb,
.pos-product-grid[data-pos-view="services"]::-webkit-scrollbar-thumb {
    background: var(--accent);
    border: 3px solid #e5eef3;
    border-radius: 999px;
}

.service-search-band {
    margin-bottom: 14px;
}

.service-filter-bar {
    margin-bottom: 0;
}

.products-table-scroll th:last-child,
.products-table-scroll td:last-child {
    width: 240px;
    min-width: 240px;
}

.products-actions-cell {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-width: 240px;
    white-space: normal;
}

.products-actions-cell .button,
.products-actions-cell button {
    display: inline-flex;
    min-width: 64px;
    justify-content: center;
    vertical-align: middle;
}

.products-actions-cell .inline-delete-form,
.products-actions-cell .product-label-form {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    vertical-align: middle;
}

.products-actions-cell .product-label-form .compact {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    font-size: 12px;
}

.product-promo-box {
    display: grid;
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    gap: 12px;
    margin: 4px 0 0;
    padding: 14px;
    border: 1px solid #b7d7dc;
    border-radius: 8px;
    background: #f3fbfc;
}

.product-promo-box legend {
    padding: 0 8px;
    color: var(--accent-dark);
    font-weight: 800;
}

.is-muted-field {
    opacity: 0.55;
}

.category-delete-help {
    display: inline-grid;
    gap: 6px;
    max-width: 260px;
    vertical-align: top;
}

.category-delete-help small {
    color: var(--muted);
    line-height: 1.35;
    white-space: normal;
}

.pos-reseller-status {
    color: #047857;
    font-weight: 700;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-top: 4px;
}

.form-actions button {
    min-width: 220px;
}

.appointment-save-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
}

.appointment-main-save {
    margin-top: -2px;
}

.appointment-reservation-fee input {
    font-weight: 700;
}

.appointment-customer-save {
    grid-column: 1 / -1;
    justify-content: flex-end;
}

.appointment-customer-save button {
    min-width: 240px;
}

.appointments-workspace {
    --appt-accent: #087f8c;
    --appt-ink: #12202f;
    --appt-soft: #f6fbfc;
}

.appointments-head {
    border-bottom: 1px solid #dbe4ea;
    padding-bottom: 12px;
}

.appointments-calendar-panel {
    border-color: #cfd9e2;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

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

.appointments-calendar-heading p {
    color: #49616f;
    font-weight: 700;
}

.appointments-calendar-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.appointments-calendar-controls strong {
    min-width: 96px;
    text-align: center;
    color: #0f172a;
    font-size: 18px;
}

.appointments-calendar-weekdays,
.appointments-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}

.appointments-calendar-weekdays {
    margin-bottom: 8px;
}

.appointments-calendar-weekdays span {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
}

.appointment-calendar-empty,
.appointment-calendar-day {
    min-height: 108px;
    border-radius: 8px;
}

.appointment-calendar-day {
    display: flex;
    flex-direction: column;
    gap: 5px;
    border: 1px solid #d7e2ea;
    background: #ffffff;
    color: #17202a;
    padding: 10px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
    transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.appointment-calendar-day:hover,
.appointment-calendar-day:focus {
    transform: translateY(-1px);
    border-color: var(--appt-accent);
    box-shadow: 0 12px 24px rgba(8, 127, 140, 0.14);
}

.appointment-calendar-day strong {
    font-size: 22px;
    line-height: 1;
}

.appointment-calendar-day span {
    width: max-content;
    max-width: 100%;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 800;
}

.appointment-calendar-day em,
.appointment-calendar-day small,
.appointment-calendar-day b {
    overflow-wrap: anywhere;
}

.appointment-calendar-day em {
    color: #334155;
    font-style: normal;
    font-weight: 700;
}

.appointment-calendar-meter {
    width: 100%;
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.09);
}

.appointment-calendar-meter i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #16a34a;
}

.appointment-calendar-day small {
    color: #64748b;
    font-size: 12px;
}

.appointment-calendar-day b {
    margin-top: auto;
    color: var(--appt-accent);
    font-size: 12px;
}

.appointment-calendar-day.is-free {
    background: #f0fdf4;
    border-color: #b7e4c7;
}

.appointment-calendar-day.is-free span {
    background: #dcfce7;
    color: #166534;
}

.appointment-calendar-day.is-booked {
    background: #fff7ed;
    border-color: #fed7aa;
}

.appointment-calendar-day.is-booked span {
    background: #ffedd5;
    color: #9a3412;
}

.appointment-calendar-day.is-booked .appointment-calendar-meter i {
    background: #f97316;
}

.appointment-calendar-day.is-past {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #64748b;
    box-shadow: none;
}

.appointment-calendar-day.is-past:hover,
.appointment-calendar-day.is-past:focus {
    transform: none;
    border-color: #94a3b8;
    box-shadow: none;
}

.appointment-calendar-day.is-past span {
    background: #e2e8f0;
    color: #475569;
}

.appointment-calendar-day.is-past .appointment-calendar-meter i {
    background: #94a3b8;
}

.appointment-calendar-day.is-past b,
.appointment-calendar-day.is-past em,
.appointment-calendar-day.is-past small {
    color: #64748b;
}

.appointment-calendar-day.is-today {
    outline: 2px solid rgba(8, 127, 140, 0.28);
    outline-offset: 2px;
}

.appointment-calendar-day.is-selected {
    border-color: var(--appt-accent);
    box-shadow: 0 0 0 3px rgba(8, 127, 140, 0.16), 0 12px 24px rgba(8, 127, 140, 0.12);
}

.appointment-day-agenda {
    border-color: #cfd9e2;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbfc 100%);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.appointment-day-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
}

.appointment-day-top h2 {
    margin: 0 0 4px;
}

.appointment-day-top p {
    color: #49616f;
    font-weight: 700;
}

.appointment-day-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.appointment-day-scroll {
    position: relative;
    max-height: 680px;
    overflow: auto;
    border: 1px solid #d7e2ea;
    border-radius: 8px;
    background: #ffffff;
}

.appointment-day-grid {
    display: grid;
    grid-template-columns: 70px repeat(var(--worker-count), minmax(190px, 1fr));
    grid-template-rows: 68px repeat(var(--slot-count), 24px);
    min-width: calc(70px + (var(--worker-count) * 190px));
    position: relative;
}

.appointment-day-date-head,
.appointment-worker-head {
    position: sticky;
    top: 0;
    z-index: 6;
    display: grid;
    place-items: center;
    min-width: 0;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #d7e2ea;
    background: #ffffff;
}

.appointment-day-date-head {
    left: 0;
    z-index: 8;
    color: #0f172a;
}

.appointment-day-date-head strong {
    font-size: 24px;
    line-height: 1;
}

.appointment-day-date-head span {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.appointment-worker-head {
    gap: 3px;
    padding: 8px;
    text-align: center;
}

.appointment-worker-head span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #075985;
    font-size: 12px;
    font-weight: 900;
}

.appointment-worker-head strong {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.appointment-worker-head small {
    color: #64748b;
    font-size: 11px;
    text-transform: capitalize;
}

.appointment-time-label {
    position: sticky;
    left: 0;
    z-index: 4;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 2px;
    border-right: 1px solid #d7e2ea;
    border-bottom: 1px solid #eef2f6;
    background: #ffffff;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
}

.appointment-time-label.is-major {
    color: #0f172a;
    font-size: 12px;
}

.appointment-day-slot {
    border-right: 1px solid #eef2f6;
    border-bottom: 1px solid #eef2f6;
    background: #ffffff;
}

.appointment-day-slot.is-major {
    border-top: 1px solid #dbe4ea;
}

.appointment-day-block {
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-height: 34px;
    margin: 2px 4px;
    padding: 8px;
    overflow: hidden;
    border-radius: 7px;
    border-left: 5px solid rgba(15, 23, 42, 0.24);
    color: #111827;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.14);
}

.appointment-day-block:hover,
.appointment-day-block:focus {
    color: #111827;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.2);
}

.appointment-day-block strong,
.appointment-day-block span,
.appointment-day-block em,
.appointment-day-block small {
    overflow: hidden;
    text-overflow: ellipsis;
}

.appointment-day-block strong {
    font-size: 13px;
    white-space: nowrap;
}

.appointment-day-block span {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.15;
}

.appointment-day-block em,
.appointment-day-block small {
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
}

.appointment-day-block small {
    align-self: flex-end;
    margin-top: auto;
    padding: 2px 5px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.82);
    color: #ffffff;
}

.appointment-day-block.color-0 {
    background: #f9a8d4;
}

.appointment-day-block.color-1 {
    background: #f0abfc;
}

.appointment-day-block.color-2 {
    background: #fbcfe8;
}

.appointment-day-block.color-3 {
    background: #fed7aa;
}

.appointment-day-block.color-4 {
    background: #bae6fd;
}

.appointment-day-block.status-attended {
    background: #99f6e4;
}

.appointment-day-block.status-finished {
    background: #bbf7d0;
}

.appointment-day-empty {
    position: sticky;
    left: 86px;
    bottom: 12px;
    width: max-content;
    margin: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #ecfeff;
    color: #0f6466;
    font-weight: 800;
}

.appointments-editor,
.appointments-filter,
.appointments-list .table-wrap {
    border-color: #cfd9e2;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.appointments-editor {
    border-left: 4px solid var(--appt-accent);
}

.appointments-editor h2 {
    color: var(--appt-ink);
    margin-bottom: 14px;
}

.appointments-form > label,
.appointments-filter label {
    background: #fbfdfe;
    border: 1px solid #e3e9ef;
    border-radius: 6px;
    padding: 10px;
}

.appointments-form > label:focus-within,
.appointments-filter label:focus-within {
    border-color: #64b9c3;
    box-shadow: 0 0 0 3px rgba(8, 127, 140, 0.12);
}

.appointments-form label.check {
    justify-content: flex-start;
}

.appointment-reminder-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(150px, 1fr));
    gap: 10px;
    border: 1px solid #d7e5ea;
    border-radius: 8px;
    background: #fbfdfe;
    padding: 10px;
}

.appointment-reminder-options legend {
    color: var(--appt-accent);
    font-weight: 700;
    padding: 0 6px;
}

.appointment-reminder-options label.check {
    min-height: 42px;
    border: 1px solid #cbdbe5;
    border-radius: 8px;
    background: #ffffff;
    padding: 12px 14px 12px 44px;
    position: relative;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.appointment-reminder-options label.check input {
    position: absolute;
    left: 14px;
    top: 50%;
    width: 20px;
    height: 20px;
    transform: translateY(-50%);
    accent-color: var(--appt-accent);
}

.appointment-reminder-options label.check:has(input:checked) {
    background: #e9fbf8;
    border-color: var(--appt-accent);
    color: #064e4b;
    box-shadow: 0 10px 24px rgba(8, 127, 140, 0.16);
}

.appointments-form input,
.appointments-form select,
.appointments-form textarea,
.appointments-filter input,
.appointments-filter select {
    background: #fff;
}

.appointments-walkin {
    border-color: #b8dfe4;
    background: var(--appt-soft);
}

.appointments-walkin legend {
    border: 1px solid #b8dfe4;
    border-radius: 999px;
    background: #fff;
    color: var(--appt-accent);
    font-weight: 700;
}

.appointments-filter {
    padding: 14px;
    margin-bottom: 18px;
    background: #ffffff;
    border: 1px solid #cfd9e2;
    border-radius: 8px;
}

.appointments-list .table-wrap {
    background: #fff;
}

.appointments-list th {
    background: #f3f7fa;
    color: #334155;
    font-weight: 800;
}

.appointments-list td {
    vertical-align: top;
}

.appointments-list tbody tr:hover {
    background: #f7fbfc;
}

.appointments-list .actions-cell .button,
.appointments-list .actions-cell button {
    font-weight: 700;
}

.appointments-list .actions-cell {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.appointments-list .actions-cell > .button,
.appointments-list .actions-cell > form {
    margin: 0;
}

.appointments-list .inline-notes {
    gap: 10px;
}

.appointments-list .inline-notes input {
    min-width: 220px;
}

.appointments-list .inline-notes input {
    background: #fff;
}

.appointment-assign-form select {
    min-width: 170px;
}

.payroll-panel {
    border-style: solid;
    background: #fbfdfe;
}

.payroll-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(160px, 1fr));
    gap: 12px;
}

.payroll-grid label {
    background: #fff;
    border: 1px solid #e3e9ef;
    border-radius: 6px;
    padding: 10px;
}

.expense-entry-form {
    margin-bottom: 14px;
}

.compat-card {
    display: grid;
    gap: 6px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcfd;
}

.compat-card span {
    display: inline-flex;
    width: fit-content;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
}

.compat-ok {
    background: #eaf7ee;
    color: var(--ok);
}

.compat-warn {
    background: var(--warn-bg);
    color: var(--warn);
}

.settings-form-band > h2 {
    margin-bottom: 8px;
}

.settings-form-band > .grid-form {
    align-items: stretch;
    grid-template-columns: 1fr;
    gap: 10px;
}

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

.settings-quick-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0 0 12px;
}

.settings-quick-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #f8fafc;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.settings-quick-nav a:hover {
    border-color: var(--accent);
    background: #eefafa;
}

.settings-group[id],
.settings-status-grid[id] {
    scroll-margin-top: 18px;
}

.settings-group {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    min-width: 0;
}

.settings-group-head {
    border-bottom: 1px solid var(--line);
    margin: 0 0 9px;
    padding-bottom: 7px;
}

.settings-group-head h3 {
    color: var(--text);
    font-size: 15px;
    margin: 0 0 4px;
}

.settings-group-head p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.32;
    margin: 0;
    max-width: 860px;
}

.settings-group-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(165px, 240px));
    gap: 8px 10px;
    align-items: end;
    justify-content: start;
    min-width: 0;
}

.settings-group-grid .full {
    grid-column: 1 / -1;
    max-width: 820px;
}

.settings-group-grid label,
.settings-group-grid input,
.settings-group-grid select,
.settings-group-grid textarea {
    min-width: 0;
}

.settings-group-grid label {
    gap: 4px;
    font-size: 12px;
}

.settings-group-grid input,
.settings-group-grid select,
.settings-group-grid textarea {
    min-height: 34px;
    padding: 7px 8px;
    font-size: 13px;
}

.settings-group-grid label.check {
    align-self: end;
    min-height: 34px;
    white-space: normal;
    max-width: 260px;
}

.settings-split-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 460px));
    gap: 10px;
}

.settings-subcard {
    min-width: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.settings-subcard h4 {
    margin: 0 0 4px;
    font-size: 16px;
}

.settings-subcard .settings-group-grid {
    margin-top: 8px;
}

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

.settings-group-pax {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}

.settings-group-pax > .settings-group-head {
    margin: 0 0 16px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.settings-stack > .settings-subcard {
    width: 100%;
    padding: 18px;
    border-radius: 12px;
    border-width: 2px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .05);
}

.settings-stack > .settings-subcard legend {
    padding: 0 10px;
    font-size: 17px;
    font-weight: 800;
    color: #111827;
    background: #fff;
}

.pax-terminal-settings {
    border-color: #bae6fd;
    background: #f8fcff;
}

.receipt-printer-settings {
    border-color: #99f6e4;
    background: #fbfffe;
}

.label-printer-settings {
    border-color: #fde68a;
    background: #fffdf7;
}

.pax-terminal-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 240px));
    gap: 10px;
    align-items: end;
}

.pax-terminal-grid .full {
    grid-column: 1 / -1;
}

.pax-terminal-grid label {
    max-width: none;
}

.settings-inline-button {
    align-self: end;
    width: auto;
    min-width: 220px;
    min-height: 38px;
    max-width: none;
}

.receipt-printer-settings {
    margin-top: 0;
}

.receipt-printer-row {
    display: grid;
    grid-template-columns: minmax(190px, 250px) minmax(180px, 240px) minmax(90px, 110px) minmax(200px, 1fr) minmax(170px, auto);
    gap: 10px;
    align-items: end;
}

.receipt-printer-row label {
    max-width: none;
}

.receipt-printer-row button,
.label-printer-settings button {
    width: auto;
    min-width: 160px;
    min-height: 38px;
    padding: 8px 16px;
    border-radius: 7px;
    max-width: none;
}

.label-printer-settings {
    display: grid;
    grid-template-columns: minmax(190px, 250px) minmax(170px, 240px) minmax(180px, 240px) minmax(110px, 150px);
    gap: 8px 10px;
    justify-content: start;
    align-items: end;
    max-width: 980px;
    margin-top: 0;
}

.label-printer-settings label:nth-of-type(5) {
    grid-column: 1 / 3;
}

.label-printer-settings button {
    grid-column: 3 / 4;
}

@media (max-width: 1180px) {
    .pax-terminal-grid {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }

    .receipt-printer-row {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }

    .receipt-printer-row button {
        justify-self: start;
    }

    .label-printer-settings {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
        max-width: none;
    }

    .label-printer-settings label:nth-of-type(5),
    .label-printer-settings button {
        grid-column: auto;
    }
}

@media (max-width: 640px) {
    .pax-terminal-grid,
    .receipt-printer-row,
    .label-printer-settings {
        grid-template-columns: 1fr;
    }

    .settings-inline-button,
    .receipt-printer-row button,
    .label-printer-settings button {
        width: 100%;
    }
}

.receipt-footer-textarea {
    min-height: 88px;
    resize: vertical;
}

.settings-form-band .form-actions {
    justify-content: flex-end;
}

.settings-form-band .form-actions button {
    max-width: 260px;
    width: 100%;
}

.settings-group-pax .settings-group-grid > .full {
    max-width: none;
}

.settings-test-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding-top: 8px;
}

.settings-test-actions button {
    width: auto;
    min-width: 180px;
    max-width: none;
    flex: 0 1 220px;
}

.settings-test-actions .muted {
    flex: 1 1 260px;
    min-width: 220px;
    margin: 0;
    line-height: 1.35;
}

.settings-group-smtp {
    background: #f8fbff;
    border-color: #bfdbfe;
}

.settings-group-stripe {
    background: #fbf8ff;
    border-color: #ddd6fe;
}

.settings-group-sync {
    background: #fbfffb;
    border-color: #bbf7d0;
}

.settings-danger-zone {
    margin-top: 18px;
    border-color: rgba(180, 35, 24, 0.35);
    background: #fff8f7;
}

.settings-danger-zone .settings-group-head h3 {
    color: var(--danger);
}

.permissions-panel {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcfd;
}

.permissions-panel p {
    margin: 4px 0 0;
    color: var(--muted);
}

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

.howto-panel {
    display: grid;
    gap: 12px;
}

.howto-item {
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcfd;
}

.howto-item strong {
    display: block;
    margin-bottom: 5px;
    color: var(--text);
    font-size: 15px;
}

.howto-item p {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
}

.howto-item ol {
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
    line-height: 1.48;
}

.howto-item li + li {
    margin-top: 4px;
}

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

.report-permissions-block {
    display: grid;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.report-permission-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.report-empty-note {
    grid-column: 1 / -1;
    padding: 14px;
    border: 1px dashed var(--line);
    border-radius: 8px;
    background: #fbfcfd;
}

.muted-note {
    color: var(--muted);
    font-size: 13px;
}

.danger-note {
    padding: 10px 12px;
    border: 1px solid rgba(180, 35, 24, 0.28);
    border-radius: 8px;
    background: #fff1f0;
    color: #7a271a;
    font-weight: 700;
}

.danger-fill {
    border: 1px solid var(--danger);
    background: var(--danger);
    color: #fff;
}

.danger-fill:hover {
    background: #8f1d14;
}

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

.grid-form.compact {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
}

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

.wide-form {
    grid-template-columns: repeat(5, minmax(150px, 1fr));
}

label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 13px;
}

label.check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    width: fit-content;
    align-self: center;
    justify-self: start;
    color: var(--text);
    white-space: nowrap;
}

label.check input {
    width: 18px;
    min-width: 18px;
    height: 18px;
    min-height: 18px;
    padding: 0;
}

label.full {
    grid-column: 1 / -1;
}

input,
select,
textarea,
button,
.button {
    font: inherit;
    border-radius: 6px;
}

input,
select,
textarea {
    max-width: 100%;
    width: 100%;
    min-height: 40px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    padding: 9px 10px;
}

textarea {
    min-height: 82px;
    resize: vertical;
}

button,
.button {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    min-height: 40px;
    padding: 9px 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    max-width: 100%;
}

button:hover,
.button:hover {
    border-color: var(--accent);
}

.shortcut-button {
    gap: 9px;
    min-height: 44px;
    padding: 10px 16px;
    border: 0;
    color: #fff;
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
}

.shortcut-button:hover {
    color: #fff;
    transform: translateY(-1px);
}

.shortcut-icon {
    display: inline-flex;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
}

.shortcut-icon svg {
    width: 24px;
    height: 24px;
    display: block;
}

.shortcut-products {
    background: #2563eb;
    border-color: #2563eb;
}

.shortcut-products:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.shortcut-categories {
    background: #d97706;
    border-color: #d97706;
}

.shortcut-categories:hover {
    background: #b45309;
    border-color: #b45309;
}

.primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.primary:hover {
    background: var(--accent-dark);
    color: #fff;
}

.wide {
    width: 100%;
}

.promo-check {
    align-self: end;
    margin-bottom: 2px;
}

.active-check {
    align-self: end;
    margin-bottom: 2px;
}

.small {
    min-height: 32px;
    padding: 6px 9px;
    font-size: 13px;
}

.table-wrap {
    overflow-x: auto;
    margin-bottom: 18px;
}

.receipt-refund-search-scroll .table-wrap {
    max-height: 360px;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.receipt-refund-search-scroll .table-wrap table {
    margin-bottom: 0;
}

.receipt-refund-search-scroll th {
    position: sticky;
    top: 0;
    z-index: 2;
}

.payment-report-ticket-scroll .table-wrap {
    max-height: 420px;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.payment-report-ticket-scroll .table-wrap table {
    margin-bottom: 0;
}

.payment-report-ticket-scroll th {
    position: sticky;
    top: 0;
    z-index: 2;
}

.report-table-scroll .table-wrap {
    max-height: 420px;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.report-table-scroll-sm .table-wrap {
    max-height: 260px;
}

.report-table-scroll .table-wrap table {
    margin-bottom: 0;
}

.report-table-scroll th {
    position: sticky;
    top: 0;
    z-index: 2;
}

.dashboard-table-scroll .table-wrap {
    max-height: 320px;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.dashboard-table-scroll .table-wrap table {
    margin-bottom: 0;
}

.dashboard-table-scroll th {
    position: sticky;
    top: 0;
    z-index: 2;
}

.report-chart-band {
    overflow: hidden;
}

.report-bar-chart {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    align-items: end;
    margin: 16px 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.report-bar-item {
    display: grid;
    gap: 8px;
    min-width: 0;
    text-align: center;
}

.report-bar-track {
    display: flex;
    align-items: end;
    justify-content: center;
    height: 190px;
    padding: 8px;
    border-radius: 8px;
    background: repeating-linear-gradient(
        to top,
        #eef2f7,
        #eef2f7 1px,
        transparent 1px,
        transparent 38px
    );
}

.report-bar-fill {
    width: min(82px, 70%);
    min-height: 8px;
    border-radius: 8px 8px 3px 3px;
    background: linear-gradient(180deg, #21c55d, #0f8b46);
    box-shadow: 0 12px 24px rgba(15, 139, 70, 0.22);
}

.report-bar-item.sales-b .report-bar-fill {
    background: linear-gradient(180deg, #38bdf8, #0369a1);
    box-shadow: 0 12px 24px rgba(3, 105, 161, 0.22);
}

.report-bar-item.expenses .report-bar-fill {
    background: linear-gradient(180deg, #fb7185, #be123c);
    box-shadow: 0 12px 24px rgba(190, 18, 60, 0.22);
}

.report-bar-item strong {
    color: var(--text);
    font-size: 14px;
}

.report-bar-item span {
    color: var(--muted);
    font-weight: 700;
}

.tax-range-filter {
    margin-bottom: 14px;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

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

th {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    background: #fbfcfd;
}

.table-total-row td {
    background: #f3f8f7;
    color: var(--ink);
    font-weight: 800;
}

.empty {
    color: var(--muted);
    text-align: center;
}

.thumb {
    width: 54px;
    height: 54px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--soft);
    border: 1px solid var(--line);
}

.image-lightbox-trigger {
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
    min-height: 0;
}

.thumb-empty {
    display: grid;
    place-items: center;
    color: var(--accent);
    font-weight: 800;
}

.warn-row {
    background: var(--warn-bg);
}

.status {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #edf2f7;
    color: var(--text);
    border: 1px solid rgba(15, 23, 42, 0.08);
    font-weight: 700;
}

.status.scheduled {
    background: #fff7ed;
    color: #9a3412;
    border-color: #fed7aa;
}

.status.attended {
    background: #e6f6ee;
    color: var(--ok);
    border-color: #b7e4c7;
}

.status.finished {
    background: #e9eef6;
    color: #2f5597;
    border-color: #c7d2fe;
}

.status.canceled {
    background: #f3f4f6;
    color: #6b7280;
    border-color: #d1d5db;
}

.focused-row {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

.live-timer {
    display: inline-flex;
    min-width: 86px;
    justify-content: center;
    padding: 5px 8px;
    border-radius: 6px;
    background: #111827;
    color: #86efac;
    font-family: Consolas, monospace;
    font-weight: 800;
    box-shadow: inset 0 0 0 1px rgba(134, 239, 172, 0.22);
}

.danger-button {
    border-color: var(--danger);
    color: var(--danger);
}

.inline-delete-form {
    display: inline-flex;
    margin-left: 6px;
}

.actions-cell {
    min-width: 330px;
}

.actions-cell form,
.inline-pay,
.inline-notes {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 7px;
}

.inline-pay input,
.inline-pay select,
.inline-notes input {
    width: auto;
    min-width: 118px;
}

.alert {
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 14px;
    border: 1px solid var(--line);
    background: #fff;
}

.alert.success {
    background: #eaf7ee;
    border-color: #b6dfc2;
    color: var(--ok);
}

.alert.error {
    background: #fff0f0;
    border-color: #ffc9c9;
    color: var(--danger);
}

.pos-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
    align-items: start;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 12px;
}

.product-tile {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 74px;
    gap: 10px;
    align-items: center;
    min-height: 96px;
}

.product-tile strong,
.product-tile span,
.product-tile em {
    display: block;
    overflow-wrap: anywhere;
}

.product-tile span {
    color: var(--muted);
    font-size: 13px;
    margin-top: 2px;
}

.product-tile em {
    color: var(--warn);
    font-size: 12px;
    font-style: normal;
    margin-top: 4px;
}

.checkout-panel {
    padding: 18px;
    position: sticky;
    top: 18px;
}

.checkout-panel form,
.checkout-panel label {
    margin-bottom: 12px;
}

.pos-page-head {
    margin-bottom: 16px;
}

.pos-page-head h1 {
    font-size: 22px;
    font-weight: 600;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 12px;
    margin-top: 12px;
}

.breadcrumb a {
    color: var(--muted);
}

.pos-register {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 410px;
    gap: 20px;
    align-items: start;
    font-size: 15px;
}

.pos-products-panel,
.pos-sale-panel {
    background: #fff;
    border: 1px solid #e6e9ee;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(17, 24, 39, 0.05);
}

.pos-products-panel {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 132px);
    overflow: hidden;
}

.pos-panel-title,
.pos-sale-panel h2 {
    min-height: 58px;
    border-bottom: 1px solid #e6e9ee;
}

.pos-panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
}

.pos-panel-heading-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

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

.pos-mode-tabs {
    display: inline-flex;
    padding: 2px;
    border: 1px solid #d8dde5;
    border-radius: 6px;
    background: #f8fafc;
}

.pos-mode-tabs button {
    min-height: 30px;
    padding: 6px 10px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--muted);
    font-size: 14px;
}

.pos-mode-tabs button.active {
    background: var(--accent);
    color: #fff;
}

.pos-panel-title h2,
.pos-sale-panel h2 {
    font-size: 20px;
    font-weight: 500;
    margin: 0;
}

.pos-reprint-inline-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 7px 14px;
    border: 0;
    border-radius: 8px;
    background: #7c3aed;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(124, 58, 237, .24);
    cursor: pointer;
    white-space: nowrap;
}

.pos-reprint-inline-button:hover {
    background: #6d28d9;
    color: #fff;
}

.pos-reprint-inline-button .pos-choice-icon {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, .18);
}

.pos-admin-products {
    min-height: 34px;
    background: #47a8e8;
    border-color: #47a8e8;
    color: #fff;
    font-size: 14px;
}

.pos-admin-products:hover {
    background: #278fd2;
    color: #fff;
}

.pos-product-tools {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(190px, 1fr);
    gap: 24px;
    padding: 18px 16px;
}

.pos-product-tools input,
.pos-product-tools select,
.pos-sale-panel input,
.pos-sale-panel select {
    min-height: 34px;
    border-radius: 3px;
    font-size: 15px;
}

.pos-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    align-content: start;
    gap: 14px;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 0 12px 18px;
    scrollbar-gutter: stable;
}

.pos-product-grid[hidden] {
    display: none;
}

.pos-product-grid[data-pos-view="services"] {
    height: min(520px, calc(100vh - 300px));
    min-height: 0;
    overflow-y: scroll;
    row-gap: 24px;
}

.pos-product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    min-height: 206px;
    padding: 12px 8px 10px;
    border-left: 1px solid #f0f2f5;
    border-right: 1px solid #f0f2f5;
    text-align: center;
}

.pos-product-card.is-hidden {
    display: none;
}

.pos-service-card {
    min-height: 218px;
    justify-content: flex-start;
}

.pos-service-card strong {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
}

.pos-service-card .pos-add-button {
    margin-top: auto;
}

.pos-service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    min-height: 34px;
    padding: 7px 10px;
    margin-bottom: 5px;
    border-radius: 6px;
    background: #ecfeff;
    border: 1px solid #a5f3fc;
    color: var(--accent-dark);
    font-size: 13px;
    font-weight: 700;
}

.pos-empty-grid {
    padding: 18px 0;
}

.pos-product-image {
    width: 100%;
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3px;
}

.pos-product-image .thumb {
    width: 146px;
    max-width: 100%;
    height: 74px;
    border-radius: 2px;
    object-fit: contain;
    background: #fff;
}

.pos-product-card strong {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.pos-product-card span {
    color: var(--muted);
    font-size: 13px;
}

.pos-product-card em {
    color: #111827;
    font-style: normal;
    font-size: 15px;
    font-weight: 600;
}

.pos-product-card small {
    color: var(--warn);
    min-height: 14px;
    font-size: 12px;
}

.pos-add-button {
    width: 100%;
    min-height: 30px;
    margin-top: 5px;
    border-color: #1f73d8;
    background: #1f73d8;
    color: #fff;
    font-size: 13px;
    border-radius: 3px;
}

.pos-add-button:hover {
    background: #155db3;
    color: #fff;
}

.pos-sale-panel {
    position: sticky;
    top: 18px;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 36px);
    overflow: hidden;
}

.pos-sale-panel h2 {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    padding: 0 16px;
}

.pos-sale-panel .pos-totals-sticky {
    flex: 0 0 auto;
}

.pos-sale-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    padding-bottom: 8px;
    scrollbar-gutter: stable;
}

.pos-sale-scroll::-webkit-scrollbar {
    width: 10px;
}

.pos-sale-scroll::-webkit-scrollbar-thumb {
    border: 2px solid #fff;
    border-radius: 999px;
    background: #0f8f95;
}

.pos-sale-scroll::-webkit-scrollbar-track {
    background: #f2f6f8;
}

.pos-sale-panel label,
.pos-sale-panel .pos-choice-group,
.pos-sale-panel .pos-cart-list,
.pos-sale-panel .pos-mini-total,
.pos-sale-panel .pos-totals,
.pos-sale-panel .pos-charge-button,
.pos-sale-panel .pos-clear-button {
    margin-left: 16px;
    margin-right: 16px;
}

.pos-cart-list {
    min-height: 36px;
    margin-top: 16px;
    margin-bottom: 12px;
}

.pos-appointment-charge {
    display: grid;
    gap: 3px;
    margin: 14px 16px 0;
    padding: 10px;
    border-radius: 6px;
    background: #ecfeff;
    border: 1px solid #a5f3fc;
}

.pos-appointment-charge span,
.pos-appointment-charge em {
    color: var(--muted);
    font-style: normal;
    font-size: 14px;
}

.pos-cart-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #eef1f4;
}

.pos-cart-row strong {
    display: block;
    font-size: 15px;
    overflow-wrap: anywhere;
}

.pos-cart-row span {
    color: var(--muted);
    font-size: 14px;
}

.pos-cart-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pos-cart-actions button {
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 8px;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    touch-action: manipulation;
}

.pos-sale-panel label {
    margin-bottom: 8px;
    color: #202938;
    font-size: 14px;
    font-weight: 600;
}

.pos-choice-group {
    display: grid;
    gap: 8px;
    padding: 0;
    border: 0;
    margin-top: 8px;
    margin-bottom: 10px;
    min-width: 0;
}

.pos-choice-group legend {
    padding: 0;
    color: #202938;
    font-size: 14px;
    font-weight: 600;
}

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

.pos-split-payments {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.pos-payment-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 118px;
    align-items: center;
    gap: 8px;
    min-width: 0;
    min-height: 52px;
    margin: 0 !important;
    padding: 8px;
    border: 1px solid #d5dce7;
    border-radius: 7px;
    background: #f8fafc;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.pos-payment-line.is-active {
    border-color: var(--accent);
    background: #e9f8fa;
    box-shadow: inset 0 0 0 1px var(--accent);
}

.pos-payment-line.is-active > span {
    color: var(--accent-dark);
}

.pos-payment-line:hover {
    border-color: var(--accent);
}

.pos-payment-line > span {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.1;
}

.pos-payment-line em {
    min-width: 0;
    font-style: normal;
    overflow-wrap: normal;
    white-space: nowrap;
}

.pos-payment-line input {
    min-height: 38px;
    padding: 8px;
    text-align: right;
}

.pos-choice-option {
    position: relative;
    display: block;
    margin: 0 !important;
    min-width: 0;
    color: var(--text);
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer;
}

.pos-choice-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pos-choice-option > span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid #d5dce7;
    border-radius: 7px;
    background: #f8fafc;
    color: #334155;
    text-align: center;
    line-height: 1.15;
    transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, color .15s ease;
}

.pos-choice-option em {
    min-width: 0;
    font-style: normal;
    overflow-wrap: anywhere;
}

.pos-choice-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    color: currentColor;
    filter: drop-shadow(0 1px 1px rgba(15, 23, 42, 0.14));
}

.pos-choice-icon svg {
    display: block;
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.pos-choice-option input:checked + span {
    border-color: var(--accent);
    background: #e9f8fa;
    color: var(--accent-dark);
    box-shadow: inset 0 0 0 1px var(--accent);
}

.pos-choice-option input:focus-visible + span {
    outline: 2px solid rgba(8, 127, 140, 0.35);
    outline-offset: 2px;
}

.pos-choice-option:hover > span {
    border-color: var(--accent);
}

.daily-cash-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.daily-cash-split-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: stretch;
}

.daily-cash-split-actions .daily-cash-action {
    flex: 1 1 220px;
}

.daily-cash-close-batch-only-form {
    display: none;
}

.close-batch-only-button {
    background: #111827;
    color: #d1fae5;
    border-color: #1f2937;
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.16);
}

.close-batch-only-button:hover,
.close-batch-only-button:focus {
    background: #0f766e;
    color: #fff;
}

.button-icon.cash-register-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
}

.button-icon.cash-register-icon svg {
    display: block;
    width: 30px;
    height: 30px;
}

.pos-tax-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 72px;
}

.pos-tax-control input {
    border-radius: 3px 0 0 3px;
}

.pos-tax-control select {
    border-left: 0;
    border-radius: 0 3px 3px 0;
}

.pos-assigned-tax-note {
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fbfcfd;
    padding: 10px 12px;
}

.pos-assigned-tax-note strong,
.pos-assigned-tax-note span {
    display: block;
}

.pos-assigned-tax-note span {
    color: var(--muted);
    font-size: 13px;
    margin-top: 4px;
}

.pos-mini-total {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 4px;
}

.pos-coupon-status {
    min-height: 16px;
    color: #047857;
    font-weight: 700;
}

.pos-coupon-status.is-error {
    color: #b91c1c;
}

.pos-totals {
    display: grid;
    gap: 3px;
    padding: 18px 0;
    margin-top: 18px;
    border-top: 1px solid #e6e9ee;
}

.pos-totals-sticky {
    position: sticky;
    top: 8px;
    z-index: 8;
    padding-bottom: 2px;
    background: #fff;
}

.pos-totals-top {
    margin-top: 8px;
    margin-bottom: 0;
    padding: 10px 12px 12px;
    border: 1px solid #3ee86f;
    border-radius: 8px;
    background: #050805;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

.pos-totals div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pos-totals span,
.pos-totals strong {
    font-size: 15px;
    font-weight: 500;
}

.pos-totals-top span,
.pos-totals-top strong {
    color: #a7f56d;
}

.pos-totals-top strong {
    font-size: 17px;
    font-weight: 800;
}

.pos-tax-exempt-row {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    margin: 8px 16px 10px;
}

.pos-tax-exempt-button {
    min-height: 44px;
    padding: 0 18px;
    border: 2px solid #ef4444;
    border-radius: 7px;
    background: #ffffff;
    color: #dc2626;
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(239, 68, 68, 0.14);
}

.pos-tax-exempt-button.is-active {
    background: #dc2626;
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(220, 38, 38, 0.24);
}

.pos-no-fee-button {
    border-color: #f59e0b;
    color: #b45309;
    box-shadow: 0 8px 18px rgba(245, 158, 11, 0.14);
}

.pos-no-fee-button.is-active {
    background: #f59e0b;
    color: #111827;
    box-shadow: 0 10px 22px rgba(245, 158, 11, 0.24);
}

.pos-stripe-tax-button {
    border-color: #635bff;
    color: #4338ca;
    box-shadow: 0 8px 18px rgba(99, 91, 255, 0.14);
}

.pos-stripe-tax-button.is-active {
    background: #635bff;
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(99, 91, 255, 0.24);
}

.pos-charge-button,
.pos-clear-button {
    width: calc(100% - 32px);
    min-height: 44px;
    border-radius: 3px;
    color: #fff;
    margin-bottom: 8px;
    font-size: 15px;
}

.pos-charge-button {
    background: #72d572;
    border-color: #72d572;
}

.pos-charge-button:hover {
    background: #57bd57;
    color: #fff;
}

.pos-clear-button {
    background: #fb5865;
    border-color: #fb5865;
    margin-bottom: 22px;
}

.pos-clear-button:hover {
    background: #e44452;
    color: #fff;
}

.pos-reprint-widget {
    position: fixed;
    left: 22px;
    top: 110px;
    z-index: 2600;
    display: grid;
    justify-items: start;
    gap: 12px;
    pointer-events: none;
}

.pos-reprint-toggle,
.pos-reprint-panel {
    pointer-events: auto;
}

.pos-reprint-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 12px 18px;
    border: 0;
    border-radius: 999px;
    background: #0f8b8d;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 18px 42px rgba(15, 139, 141, .34);
    cursor: pointer;
}

.pos-reprint-toggle .pos-choice-icon {
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, .18);
}

.pos-reprint-panel {
    width: min(480px, calc(100vw - 32px));
    max-height: min(76vh, 680px);
    overflow: auto;
    padding: 16px;
    border: 1px solid rgba(15, 23, 42, .12);
    border-radius: 14px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 26px 70px rgba(15, 23, 42, .24);
}

.pos-reprint-panel[hidden] {
    display: none;
}

.pos-reprint-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.pos-reprint-head h2 {
    margin: 0;
    font-size: 18px;
}

.pos-reprint-latest,
.pos-reprint-search {
    display: grid;
    gap: 10px;
    margin-bottom: 12px;
}

.pos-reprint-latest button small {
    display: block;
    margin-top: 3px;
    color: rgba(255, 255, 255, .82);
    font-weight: 600;
}

.pos-reprint-search {
    grid-template-columns: 150px minmax(0, 1fr) auto;
    align-items: end;
}

.pos-reprint-search label {
    display: grid;
    gap: 5px;
    font-size: 12px;
    color: #475569;
}

.pos-reprint-results {
    display: grid;
    gap: 8px;
}

.pos-reprint-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f8fafc;
}

.pos-reprint-row div {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.pos-reprint-row strong,
.pos-reprint-row span,
.pos-reprint-row small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pos-reprint-row strong {
    color: #0f172a;
    font-size: 13px;
}

.pos-reprint-row span,
.pos-reprint-row small {
    color: #64748b;
    font-size: 12px;
}

.pos-reprint-row em {
    color: #0f172a;
    font-style: normal;
    font-weight: 800;
}

.filter-bar {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 18px;
}

.report-actions {
    display: flex;
    align-items: end;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 14px 18px;
    margin: 12px 0 16px;
}

.report-email-form,
.report-print-form {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    gap: 10px 12px;
    margin: 0;
}

.report-email-form label {
    min-width: 260px;
}

.report-actions .button,
.report-actions button {
    min-height: 44px;
}

.report-pdf-button {
    align-self: end;
}

.tax-pdf-report {
    max-width: 980px;
    margin: 0 auto 28px;
    padding: 34px 40px;
    background: #ffffff;
    border: 1px solid #c7d2df;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    color: #111827;
}

.tax-pdf-report h2 {
    margin: 0 0 20px;
    color: #111827;
    font-size: 22px;
    font-weight: 800;
}

.tax-pdf-report h3 {
    margin: 28px 0 12px;
    color: #111827;
    font-size: 18px;
    font-weight: 750;
}

.tax-report-meta,
.tax-report-table,
.tax-report-totals {
    width: 100%;
    border-collapse: collapse;
}

.tax-report-meta {
    max-width: 760px;
}

.tax-report-meta th {
    width: 210px;
    background: #1f5a86;
    color: #ffffff;
    font-weight: 700;
    text-align: left;
}

.tax-report-meta th,
.tax-report-meta td,
.tax-report-table th,
.tax-report-table td,
.tax-report-totals th,
.tax-report-totals td {
    border: 1px solid #a7b3c2;
    padding: 7px 9px;
}

.tax-report-table-wrap {
    overflow-x: auto;
}

.tax-report-table th {
    background: #1f5a86;
    color: #ffffff;
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
}

.tax-report-table tbody tr:nth-child(even) {
    background: #f5f3df;
}

.tax-report-table tfoot td {
    background: #eef6f4;
    font-weight: 800;
}

.tax-report-table .num,
.tax-report-totals td {
    text-align: right;
    white-space: nowrap;
}

.tax-report-totals {
    max-width: 620px;
    margin-left: 48px;
}

.tax-report-totals th {
    background: #f8fafc;
    text-align: left;
    font-weight: 700;
}

.tax-report-totals .grand th,
.tax-report-totals .grand td {
    background: #dff0d8;
    font-weight: 850;
}

.report-jump-search {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
    padding: 14px;
    border: 1px solid #c7d7ea;
    border-left: 4px solid #087f8c;
    border-radius: 8px;
    background: #f8fbff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.report-center-head p,
.report-selected-head p {
    color: var(--muted);
}

.report-center-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
    align-items: stretch;
}

.report-center-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 104px;
    padding: 18px;
    border: 1px solid #cfe0e7;
    border-radius: 8px;
    background: #ffffff;
    color: var(--text);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.report-center-card:hover,
.report-center-card:focus {
    border-color: #0f8b8d;
    box-shadow: 0 16px 34px rgba(15, 139, 141, 0.15);
    text-decoration: none;
}

.report-center-card-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    grid-row: span 2;
    border-radius: 8px;
    background: #e9fbfc;
    color: #087f8c;
    font-size: 22px;
    font-weight: 900;
}

.report-center-card strong {
    min-width: 0;
    font-size: 16px;
    line-height: 1.2;
}

.report-center-card small {
    color: var(--muted);
    font-weight: 700;
}

.report-section-hidden {
    display: none !important;
}

.report-jump-form {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto;
    gap: 12px;
    align-items: end;
}

.report-jump-form label {
    display: grid;
    gap: 6px;
    font-weight: 800;
}

.report-jump-form input {
    min-height: 44px;
    border: 1px solid #b7c7d8;
    border-radius: 8px;
    padding: 0 14px;
    font-size: 15px;
}

.report-jump-form button {
    min-height: 44px;
}

.report-jump-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.report-jump-chips .button {
    flex: 0 0 auto;
    border-color: #bfdbfe;
    background: #ffffff;
    color: #0f5f9a;
}

.report-payment-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 14px;
}

.report-payment-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid #b8d5df;
    border-radius: 8px;
    background: #ffffff;
    color: #0f5f66;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.report-payment-tab:hover,
.report-payment-tab:focus {
    border-color: #0f8b8d;
    color: #087f8c;
    text-decoration: none;
}

.report-payment-tab.is-active {
    border-color: #0f8b8d;
    background: #0f8b8d;
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(15, 139, 141, 0.18);
}

#report-daily-cash,
#report-receipt-search,
#report-summary,
#report-month-comparison,
#report-sales-expenses,
#report-simtech-test,
#report-payment-summary,
#report-payments,
#report-coupons,
#report-day-history,
#report-expenses,
#report-taxes,
#report-profit,
#report-sales,
#report-inventory {
    scroll-margin-top: 18px;
}

.inline-action-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.compact-inline-form {
    align-items: center;
    margin: 0;
}

.compact-inline-form input[type="email"] {
    min-height: 38px;
    min-width: 220px;
}

.daily-cash-check {
    align-self: center;
    margin-bottom: 0 !important;
}

.daily-close-actions {
    display: grid;
    gap: 8px;
    min-width: 260px;
}

.daily-close-actions form {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.daily-close-email-form input[type="email"] {
    min-height: 36px;
    min-width: 170px;
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px;
    background-color: var(--bg);
}

.login-box {
    width: min(430px, 100%);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px;
}

.login-brand {
    margin-bottom: 18px;
}

.login-logo {
    width: 86px;
    height: 86px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--line);
    padding: 5px;
    flex: 0 0 auto;
}

.login-box form {
    display: grid;
    gap: 13px;
}

.settings-preview {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: var(--muted);
}

.receipt-workspace {
    display: grid;
    grid-template-columns: 360px minmax(260px, 1fr);
    gap: 18px;
    align-items: start;
}

.thermal-receipt {
    width: 320px;
    background: #fff;
    color: #111;
    padding: 18px;
    border: 1px solid var(--line);
    box-shadow: 0 4px 20px rgba(17, 24, 39, 0.10);
    font-family: Consolas, "Courier New", monospace;
    font-size: 12px;
}

.test-sale-badge {
    margin: 0 0 10px;
    padding: 7px 8px;
    border: 1px dashed #b42318;
    color: #b42318;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
}

.receipt-logo {
    text-align: center;
    margin-bottom: 8px;
}

.receipt-logo img {
    max-width: 180px;
    max-height: 92px;
    object-fit: contain;
}

.thermal-receipt h2 {
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 21px;
    margin-bottom: 8px;
}

.image-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(17, 24, 39, 0.72);
}

.image-modal[hidden] {
    display: none;
}

.image-modal-content {
    width: min(620px, 92vw);
    max-height: 82vh;
    display: grid;
    gap: 10px;
    justify-items: end;
}

.image-modal-content img {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(15, 23, 42, .28);
}

.floating-number-keypad {
    position: fixed;
    z-index: 4000;
    width: min(330px, calc(100vw - 24px));
    padding: 12px;
    border: 1px solid rgba(15, 23, 42, .16);
    border-radius: 14px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 22px 55px rgba(15, 23, 42, .22);
    backdrop-filter: blur(12px);
}

.floating-number-keypad[hidden] {
    display: none !important;
}

.keypad-grip {
    width: 42px;
    height: 4px;
    margin: 0 auto 10px;
    border-radius: 999px;
    background: #cbd5e1;
}

.keypad-display {
    min-height: 42px;
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 10px;
    background: #0f172a;
    color: #86efac;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.15;
    text-align: right;
    letter-spacing: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.keypad-quick-cash {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 7px;
    margin-bottom: 10px;
}

.keypad-quick-cash button {
    min-height: 42px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(180deg, #22c55e, #15803d);
    color: #ffffff;
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 8px 16px rgba(21, 128, 61, .22), inset 0 -2px 0 rgba(0, 0, 0, .12);
    cursor: pointer;
    touch-action: manipulation;
}

.keypad-quick-cash button:active {
    transform: translateY(1px);
    box-shadow: inset 0 1px 0 rgba(0, 0, 0, .14);
}

.keypad-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.keypad-grid button {
    min-height: 54px;
    border: 0;
    border-radius: 10px;
    background: #f1f5f9;
    color: #0f172a;
    font-size: 21px;
    font-weight: 800;
    line-height: 1;
    box-shadow: inset 0 -2px 0 rgba(15, 23, 42, .08);
    cursor: pointer;
    touch-action: manipulation;
}

.keypad-grid button:active {
    transform: translateY(1px);
    box-shadow: inset 0 1px 0 rgba(15, 23, 42, .1);
}

.keypad-grid .keypad-action {
    background: #e0f2fe;
    color: #075985;
}

.keypad-grid .keypad-ok {
    background: #0f8b8d;
    color: #fff;
}

.floating-text-keyboard {
    position: fixed;
    z-index: 4100;
    width: min(720px, calc(100vw - 24px));
    padding: 12px;
    border: 1px solid rgba(15, 23, 42, .16);
    border-radius: 14px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 24px 62px rgba(15, 23, 42, .24);
    backdrop-filter: blur(12px);
}

.floating-text-keyboard[hidden] {
    display: none !important;
}

.text-keyboard-display {
    min-height: 42px;
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 10px;
    background: #111827;
    color: #86efac;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.text-keyboard-grid {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 8px;
}

.text-keyboard-grid button {
    min-height: 50px;
    border: 0;
    border-radius: 10px;
    background: #f1f5f9;
    color: #0f172a;
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
    box-shadow: inset 0 -2px 0 rgba(15, 23, 42, .08);
    cursor: pointer;
    touch-action: manipulation;
}

.text-keyboard-grid button:active {
    transform: translateY(1px);
    box-shadow: inset 0 1px 0 rgba(15, 23, 42, .1);
}

.text-keyboard-grid .text-keyboard-action {
    background: #e0f2fe;
    color: #075985;
    font-size: 14px;
}

.text-keyboard-grid .text-keyboard-action.is-active {
    background: #facc15;
    color: #713f12;
}

.text-keyboard-grid .text-keyboard-space {
    grid-column: span 4;
}

.text-keyboard-grid .text-keyboard-done {
    grid-column: span 2;
    background: #0f8b8d;
    color: #fff;
}

@media (max-width: 820px) {
    .floating-text-keyboard {
        width: auto;
    }

    .text-keyboard-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .text-keyboard-grid button {
        min-height: 48px;
        font-size: 16px;
    }
}

.manual-price-backdrop {
    position: fixed;
    inset: 0;
    z-index: 3900;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(15, 23, 42, .42);
}

.manual-price-dialog {
    width: min(430px, calc(100vw - 36px));
    padding: 18px;
    border: 1px solid rgba(15, 23, 42, .14);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 24px 72px rgba(15, 23, 42, .34);
}

.manual-price-dialog h3 {
    margin: 0 0 10px;
    font-size: 22px;
    letter-spacing: 0;
}

.manual-price-dialog p {
    display: grid;
    gap: 4px;
    margin: 0 0 14px;
    color: #475569;
}

.manual-price-dialog p strong {
    color: #0f172a;
    font-size: 17px;
}

.manual-price-dialog input {
    width: 100%;
    min-height: 56px;
    margin-bottom: 14px;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 24px;
    font-weight: 800;
    text-align: right;
}

.manual-price-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.manual-price-actions button {
    min-height: 48px;
}

.text-keyboard-grid .text-keyboard-number {
    background: #ecfeff;
    color: #0e7490;
}
.settings-status-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin-top: 10px;
}

.settings-status-grid .compat-card {
    align-items: flex-start;
    padding: 10px;
}

.settings-status-grid form {
    margin-top: 6px;
}

.sync-run-list {
    color: #475569;
    font-size: 12px;
    line-height: 1.5;
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
}

.thermal-receipt p {
    text-align: center;
    margin: 4px 0;
}

.thermal-receipt hr {
    border: 0;
    border-top: 1px dashed #444;
    margin: 12px 0;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin: 6px 0;
}

.receipt-card-details {
    margin: 4px 0 8px;
    padding-left: 8px;
    border-left: 2px solid #d5dce7;
}

.receipt-signature {
    display: grid;
    gap: 12px;
    margin: 10px 0;
    font-size: 12px;
}

.receipt-signature strong {
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.receipt-total strong {
    font-size: 18px;
}

.receipt-table {
    min-width: 0;
    font-size: 12px;
}

.receipt-table th,
.receipt-table td {
    padding: 6px 0;
    border: 0;
    background: #fff;
    color: #111;
    text-transform: none;
}

.receipt-table th:nth-child(n+2),
.receipt-table td:nth-child(n+2) {
    text-align: right;
}

.receipt-thanks,
.receipt-footer-message {
    font-weight: 700;
    margin-top: 22px !important;
}

.receipt-footer-message {
    white-space: pre-wrap;
}

.barcode {
    height: 54px;
    width: 220px;
    margin: 22px auto 6px;
    background: repeating-linear-gradient(90deg, #000 0 2px, #fff 2px 4px, #000 4px 5px, #fff 5px 8px);
}

.receipt-qr {
    display: grid;
    justify-items: center;
    gap: 6px;
    margin: 18px auto 6px;
    text-align: center;
}

.receipt-qr img {
    width: 132px;
    height: 132px;
    object-fit: contain;
}

.receipt-qr span {
    max-width: 240px;
    font-size: 11px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.receipt-code {
    letter-spacing: 4px;
    font-size: 10px;
}

.report-receipt-text {
    white-space: pre-wrap;
    line-height: 1.45;
}

.receipt-side-panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
}

.receipt-side-panel form {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
}

.actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.language-switch {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

@media (max-width: 980px) {
    .app-shell,
    .pos-layout,
    .pos-register,
    .split {
        grid-template-columns: minmax(0, 1fr);
    }

    .app-shell,
    .sidebar,
    .main {
        min-width: 0;
        max-width: 100%;
    }

    .sidebar {
        width: 100%;
        overflow: hidden;
    }

    .sidebar {
        position: static;
        padding: 14px;
    }

    .sidebar nav {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        min-width: 0;
        max-width: 100%;
        overflow: visible;
        padding-bottom: 0;
    }

    .sidebar nav a,
    .sidebar-footer a {
        flex: 1 1 135px;
        min-width: 0;
        text-align: center;
    }

    .sidebar-footer {
        margin-top: 0;
    }

    .metrics,
    .quick-actions,
    .grid-form,
    .grid-form.compact,
    .wide-form,
    .product-promo-box,
    .quick-customer,
    .payroll-grid,
    .howto-layout,
    .filter-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .checkout-panel {
        position: static;
    }

    .pos-sale-panel {
        position: static;
    }

    .appointment-save-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 17px;
    }

    .appointments-calendar-heading {
        flex-direction: column;
        align-items: stretch;
    }

    .appointments-calendar-controls {
        justify-content: space-between;
    }

    .appointments-calendar-panel {
        overflow-x: auto;
    }

    .appointments-calendar-weekdays,
    .appointments-calendar-grid {
        min-width: 680px;
    }

    .appointment-calendar-empty,
    .appointment-calendar-day {
        min-height: 96px;
    }

    .brand {
        align-items: flex-start;
    }

    .form-actions {
        justify-content: stretch;
    }

    .form-actions button {
        width: 100%;
        min-width: 0;
    }

    .settings-group-grid {
        grid-template-columns: 1fr;
    }

    .settings-form-band .form-actions button {
        max-width: none;
    }

    
.manual-price-backdrop {
    position: fixed;
    inset: 0;
    z-index: 3900;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(15, 23, 42, .42);
}

.manual-price-dialog {
    width: min(430px, calc(100vw - 36px));
    padding: 18px;
    border: 1px solid rgba(15, 23, 42, .14);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 24px 72px rgba(15, 23, 42, .34);
}

.manual-price-dialog h3 {
    margin: 0 0 10px;
    font-size: 22px;
    letter-spacing: 0;
}

.manual-price-dialog p {
    display: grid;
    gap: 4px;
    margin: 0 0 14px;
    color: #475569;
}

.manual-price-dialog p strong {
    color: #0f172a;
    font-size: 17px;
}

.manual-price-dialog input {
    width: 100%;
    min-height: 56px;
    margin-bottom: 14px;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 24px;
    font-weight: 800;
    text-align: right;
}

.manual-price-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.manual-price-actions button {
    min-height: 48px;
}

.text-keyboard-grid .text-keyboard-number {
    background: #ecfeff;
    color: #0e7490;
}
.settings-status-grid {
        grid-template-columns: 1fr;
    }

    .appointment-reminder-options {
        grid-template-columns: 1fr;
    }

    .actions-cell,
    .inline-pay input,
    .inline-pay select,
    .inline-notes input {
        min-width: 0;
    }

    .actions-cell form,
    .inline-pay,
    .inline-notes {
        align-items: stretch;
    }

    .actions-cell form input,
    .actions-cell form select,
    .actions-cell form button {
        width: 100%;
    }

    .table-wrap {
        margin-left: -8px;
        margin-right: -8px;
        border-left: 0;
        border-right: 0;
        border-radius: 0;
    }

    .table-wrap table {
        min-width: 680px;
    }

    .product-filter-bar,
    .product-promo-box {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .main {
        padding: 16px;
    }

    body {
        font-size: 14px;
    }

    h1 {
        font-size: 22px;
    }

    .sidebar {
        gap: 12px;
    }

    .page-head {
        display: grid;
    }

    .page-head .button,
    .page-head button {
        width: 100%;
    }

    .metrics,
    .quick-actions,
    .grid-form,
    .grid-form.compact,
    .wide-form,
    .quick-customer,
    .payroll-grid,
    .howto-layout,
    .filter-bar {
        grid-template-columns: 1fr;
    }

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

    .report-jump-form button {
        width: 100%;
    }

    .tax-pdf-report {
        padding: 18px 14px;
    }

    .tax-report-meta th,
    .tax-report-meta td {
        display: block;
        width: 100%;
    }

    .tax-report-totals {
        max-width: none;
        margin-left: 0;
    }

    .receipt-workspace {
        grid-template-columns: 1fr;
    }

    .thermal-receipt {
        width: 100%;
        max-width: 340px;
    }

    .product-tile {
        grid-template-columns: 54px minmax(0, 1fr);
    }

    .product-tile input {
        grid-column: 1 / -1;
    }

    .pos-product-tools {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px;
    }

    .pos-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        max-height: 58vh;
        min-height: 280px;
        overflow-y: auto;
        padding: 0 10px 14px;
    }

    .pos-product-grid[data-pos-view="services"] {
        height: auto;
        max-height: 58vh;
        row-gap: 12px;
    }

    .pos-product-card {
        min-height: 168px;
        padding: 8px 6px;
        gap: 2px;
    }

    .pos-service-card {
        min-height: 176px;
    }

    .pos-product-image {
        height: 56px;
        margin-bottom: 2px;
    }

    .pos-product-image .thumb {
        width: 100%;
        height: 54px;
    }

    .pos-product-card strong {
        font-size: 13px;
        line-height: 1.18;
    }

    .pos-product-card span,
    .pos-product-card small {
        font-size: 12px;
    }

    .pos-product-card em {
        font-size: 14px;
    }

    .pos-service-card strong {
        min-height: 42px;
    }

    .pos-service-icon {
        min-width: 66px;
        min-height: 28px;
        padding: 5px 8px;
        font-size: 12px;
    }

    .pos-add-button {
        min-height: 34px;
        font-size: 13px;
        margin-top: auto;
    }

    .pos-sale-panel h2 {
        min-height: 48px;
        padding: 0 12px;
        font-size: 18px;
    }

    .pos-choice-grid {
        gap: 7px;
    }

    .pos-choice-option > span {
        min-height: 38px;
        padding: 7px 8px;
        font-size: 13px;
    }

    .pos-choice-icon {
        width: 22px;
        height: 22px;
        flex-basis: 22px;
    }

    .pos-choice-icon svg {
        width: 22px;
        height: 22px;
    }

    .pos-payment-line {
        grid-template-columns: minmax(0, 1fr) 96px;
        min-height: 48px;
        padding: 7px;
    }

    .pos-payment-line > span {
        font-size: 13px;
    }

    .pos-payment-line input {
        min-height: 36px;
    }

    .pos-cart-actions button {
        min-width: 42px;
        min-height: 42px;
    }

    .pos-split-payments {
        grid-template-columns: 1fr;
    }

    .pos-panel-title {
        align-items: stretch;
        flex-direction: column;
    }

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

    .pos-reprint-inline-button {
        justify-content: center;
        width: 100%;
    }

    .pos-panel-actions,
    .pos-mode-tabs {
        width: 100%;
    }

    .pos-mode-tabs button,
    .pos-panel-actions .button {
        flex: 1 1 0;
        min-width: 0;
    }

    .pos-reprint-widget {
        left: 12px;
        right: 12px;
        bottom: 12px;
        justify-items: stretch;
    }

    .pos-reprint-toggle {
        justify-content: center;
        width: 100%;
    }

    .pos-reprint-panel {
        width: 100%;
        max-height: 72vh;
    }

    .pos-reprint-search,
    .pos-reprint-row {
        grid-template-columns: 1fr;
    }

    .pos-reprint-row form,
    .pos-reprint-row button {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .main {
        padding: 12px;
    }

    .main-topbar {
        top: 6px;
        gap: 8px;
    }

    .sidebar-toggle {
        min-height: 42px;
        padding: 8px 12px;
    }

    .form-band,
    .dashboard-appointments,
    .receipt-side-panel {
        padding: 12px;
    }

    .quick-action {
        min-height: 78px;
        padding: 14px;
    }

    .pos-sale-panel label,
    .pos-sale-panel .pos-choice-group,
    .pos-sale-panel .pos-cart-list,
    .pos-sale-panel .pos-mini-total,
    .pos-sale-panel .pos-totals,
    .pos-sale-panel .pos-charge-button,
    .pos-sale-panel .pos-clear-button {
        margin-left: 12px;
        margin-right: 12px;
    }

    .pos-charge-button,
    .pos-clear-button {
        width: calc(100% - 24px);
    }

    .pos-product-grid {
        gap: 8px;
        padding-left: 8px;
        padding-right: 8px;
    }

    .pos-product-card {
        min-height: 160px;
        padding-left: 5px;
        padding-right: 5px;
    }

    .pos-product-image,
    .pos-product-image .thumb {
        height: 50px;
    }

    .pos-panel-title {
        padding: 12px;
    }

    .pos-panel-title h2,
    .pos-sale-panel h2 {
        font-size: 17px;
    }

    .pos-tax-exempt-row {
        margin-left: 12px;
        margin-right: 12px;
    }

    .pos-tax-exempt-button {
        flex: 1 1 120px;
        min-height: 42px;
        padding: 0 10px;
    }
}

@media (max-width: 340px) {
    .pos-product-grid {
        grid-template-columns: 1fr;
    }
}

@media print {
    .sidebar,
    .sidebar-toggle,
    .receipt-actions-head,
    .receipt-side-panel,
    .alert {
        display: none !important;
    }

    .app-shell,
    .receipt-workspace {
        display: block;
    }

    .main {
        padding: 0;
    }

    .thermal-receipt {
        box-shadow: none;
        border: 0;
        width: 80mm;
    }

    .tax-pdf-report {
        max-width: none;
        margin: 0;
        padding: 0;
        border: 0;
        box-shadow: none;
    }

    .tax-report-table-wrap {
        overflow: visible;
    }
}

/* Customer-facing display */
.customer-display-body {
    min-height: 100vh;
    margin: 0;
    background: #05070a;
    color: #eaffd0;
    font-size: 20px;
    overflow: hidden;
}

.customer-display {
    min-height: 100vh;
    height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 14px;
    padding: 18px;
    background:
        linear-gradient(135deg, rgba(8, 127, 140, 0.24), transparent 36%),
        linear-gradient(225deg, rgba(242, 193, 78, 0.16), transparent 34%),
        #05070a;
}

.customer-display-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(234, 255, 208, 0.22);
}

.customer-display-brand {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.customer-display-brand img {
    width: 74px;
    height: 74px;
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
    padding: 6px;
}

.customer-display-brand strong {
    display: block;
    color: #fff;
    font-size: 28px;
    line-height: 1;
}

.customer-display-store-copy {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.customer-display-brand span,
.customer-display-status span {
    display: block;
    color: #a7f3d0;
    font-size: 14px;
    margin-top: 3px;
}

.customer-display-status {
    text-align: right;
    color: #c7f9cc;
}

.customer-display-status strong {
    display: block;
    margin-top: 6px;
    font-size: 18px;
    color: #fef9c3;
}

.customer-display-qr {
    display: grid;
    justify-items: center;
    gap: 6px;
    min-width: 120px;
    color: #a7f3d0;
    text-align: center;
    font-size: 12px;
}

.customer-display-qr img {
    width: 78px;
    height: 78px;
    object-fit: contain;
    padding: 6px;
    border-radius: 8px;
    background: #fff;
}

.customer-display-qr span {
    max-width: 180px;
    overflow-wrap: anywhere;
}

.customer-display-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
    gap: 16px;
    min-height: 0;
    height: 100%;
}

.customer-display-items-wrap,
.customer-display-totals {
    border: 1px solid rgba(234, 255, 208, 0.16);
    border-radius: 8px;
    background: rgba(6, 12, 18, 0.78);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.28);
}

.customer-display-items-wrap {
    display: grid;
    grid-template-rows: 1fr;
    min-height: 0;
    padding: 14px;
}

.customer-display-empty[hidden],
.customer-display-items[hidden] {
    display: none;
}

.customer-display-items-wrap h1 {
    display: none;
}

.customer-display-empty {
    display: grid;
    place-items: center;
    min-height: 100%;
    color: #a7f3d0;
    font-size: 28px;
    text-align: center;
    border: 1px dashed rgba(167, 243, 208, 0.28);
    border-radius: 8px;
}

.customer-display-items {
    display: grid;
    align-content: start;
    gap: 9px;
    overflow: auto;
    padding-right: 4px;
}

.customer-display-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.customer-display-item strong {
    display: block;
    color: #fff;
    font-size: 20px;
    line-height: 1.08;
    overflow-wrap: anywhere;
}

.customer-display-item span {
    display: block;
    margin-top: 3px;
    color: #a7f3d0;
    font-size: 16px;
}

.customer-display-item em {
    color: #fef9c3;
    font-style: normal;
    font-weight: 800;
    font-size: 22px;
}

.customer-display.is-compact-sale .customer-display-items {
    gap: 7px;
}

.customer-display.is-compact-sale .customer-display-item {
    padding: 8px 10px;
}

.customer-display.is-compact-sale .customer-display-item strong {
    font-size: 18px;
}

.customer-display.is-compact-sale .customer-display-item span {
    font-size: 14px;
}

.customer-display.is-compact-sale .customer-display-item em {
    font-size: 20px;
}

.customer-display.is-dense-sale .customer-display-items {
    gap: 5px;
}

.customer-display.is-dense-sale .customer-display-item {
    padding: 6px 8px;
}

.customer-display.is-dense-sale .customer-display-item strong {
    font-size: 16px;
}

.customer-display.is-dense-sale .customer-display-item span {
    font-size: 12px;
    margin-top: 2px;
}

.customer-display.is-dense-sale .customer-display-item em {
    font-size: 18px;
}

.customer-display.is-ultra-dense-sale .customer-display-items {
    gap: 4px;
}

.customer-display.is-ultra-dense-sale .customer-display-item {
    padding: 5px 7px;
}

.customer-display.is-ultra-dense-sale .customer-display-item strong {
    font-size: 14px;
}

.customer-display.is-ultra-dense-sale .customer-display-item span {
    font-size: 11px;
    margin-top: 1px;
}

.customer-display.is-ultra-dense-sale .customer-display-item em {
    font-size: 16px;
}

.customer-display-totals {
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 14px;
}

.customer-display-totals div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 18px;
    color: #a7f3d0;
    font-size: 18px;
}

.customer-display-totals strong {
    color: #eaffd0;
    font-size: 24px;
}

.customer-display-totals .customer-display-total {
    display: grid;
    gap: 6px;
    margin: 6px 0;
    padding: 14px;
    border-radius: 8px;
    background: #030712;
    border: 1px solid rgba(190, 242, 100, 0.35);
}

.customer-display-total span {
    color: #bef264;
    font-size: 20px;
    text-transform: uppercase;
    font-weight: 800;
}

.customer-display-total strong {
    color: #bef264;
    font-size: 44px;
    line-height: 1;
}

.customer-display-powered {
    margin: auto 0 0;
    padding-top: 12px;
    border-top: 1px solid rgba(167, 243, 208, 0.22);
    color: rgba(167, 243, 208, 0.86);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0;
    text-align: center;
}

.pos-customer-display-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 900px) {
    .customer-display-body {
        overflow: auto;
    }

    .customer-display {
        padding: 18px;
    }

    .customer-display-header,
    .customer-display-content {
        grid-template-columns: 1fr;
        display: grid;
    }

    .customer-display-status {
        text-align: left;
    }

    .customer-display-qr {
        justify-items: start;
        text-align: left;
    }

    .customer-display-content {
        gap: 18px;
    }

    .customer-display-brand strong,
    .customer-display-items-wrap h1 {
        font-size: 28px;
    }

    .customer-display-item strong {
        font-size: 22px;
    }

    .customer-display-total strong {
        font-size: 44px;
    }
}

.advertising-preview,
.customer-ad-slideshow {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 300px;
    overflow: hidden;
    border-radius: 8px;
    background: #0f172a;
}

.advertising-preview {
    margin: 14px 0;
    width: 100%;
    height: clamp(220px, 28vw, 300px);
    min-height: 0;
    max-height: 300px;
}

.ad-slide-bg,
.ad-slide-image {
    width: 100%;
    height: 100%;
    min-height: inherit;
    opacity: 0;
    transition: opacity .6s ease;
}

.ad-slide-bg {
    position: absolute;
    inset: 0;
    object-fit: cover;
    filter: blur(18px) saturate(1.08);
    transform: scale(1.08);
}

.ad-slide-image {
    position: relative;
    z-index: 1;
    object-fit: contain;
}

.advertising-preview .ad-slide-bg,
.advertising-preview .ad-slide-image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-width: 100%;
    max-height: 100%;
}

.customer-display-ad-panel .ad-slide-image {
    padding: 0;
}

.ad-slide-image.is-visible {
    opacity: 1;
}

.ad-slide-bg.is-visible {
    opacity: .58;
}

.ad-slide-title {
    position: absolute;
    z-index: 2;
    left: 16px;
    right: 16px;
    bottom: 16px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(15, 23, 42, .72);
    color: #fff;
    text-align: center;
    font-size: 18px;
}

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

.advertising-card {
    display: grid;
    gap: 10px;
    align-content: start;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.advertising-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 150px;
    object-fit: contain;
    border-radius: 6px;
    background: #f8fafc;
}

.advertising-card-copy {
    display: grid;
    gap: 4px;
}

.advertising-card-copy span {
    color: var(--muted);
    font-size: 13px;
}

.customer-display.has-advertising .customer-display-content {
    grid-template-columns: minmax(0, 1fr) minmax(230px, 290px) minmax(280px, 36vw);
    grid-template-rows: minmax(0, 1fr);
    align-items: stretch;
    gap: 16px;
}

.customer-display.has-advertising .customer-display-items-wrap,
.customer-display.has-advertising .customer-display-totals,
.customer-display-ad-panel {
    min-height: 0;
}

.customer-display-ad-panel {
    display: grid;
}

.customer-display-ad-panel .customer-ad-slideshow {
    height: 100%;
    min-height: 0;
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .22);
}

.customer-display-ad-panel .ad-slide-image {
    min-height: 0;
    object-fit: contain;
}

.customer-display.has-advertising .customer-display-totals {
    grid-column: 2;
    grid-row: 1;
    overflow: auto;
}

.customer-display.has-advertising .customer-display-items-wrap {
    grid-column: 1;
    grid-row: 1;
}

.customer-display-ad-panel {
    grid-column: 3;
    grid-row: 1;
}

@media (max-width: 900px) {
    .customer-display.has-advertising .customer-display-content {
        grid-template-columns: 1fr;
    }

    .customer-display.has-advertising .customer-display-totals {
        grid-column: 1;
        grid-row: auto;
    }

    .customer-display-ad-panel {
        grid-column: 1;
        grid-row: auto;
    }

    .customer-display-ad-panel .customer-ad-slideshow {
        min-height: 300px;
    }
}

.manual-price-detail {
    display: grid;
    gap: 6px;
    margin: 2px 0 14px;
    font-size: 14px;
    color: #475569;
    text-align: left;
}

.manual-price-detail textarea {
    width: 100%;
    min-height: 86px;
    resize: vertical;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 10px 12px;
    font: inherit;
    color: #0f172a;
    background: #fff;
}



.daily-close-preview {
    margin: 16px 0;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fbfdff;
}

.daily-close-preview h3 {
    margin: 0 0 12px;
    font-size: 1.05rem;
}

.daily-close-preview-metrics {
    margin-bottom: 12px;
}

.daily-close-preview-table .table-wrap {
    max-height: 300px;
}

.daily-close-preview-table td:nth-child(n+2),
.daily-close-preview-table th:nth-child(n+2) {
    text-align: right;
}

.daily-close-preview-note {
    margin: 10px 0 0;
}

.local-sync-progress {
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #b7e4df;
    border-radius: 8px;
    background: #f1fffd;
}

.local-sync-progress-bar {
    overflow: hidden;
    height: 12px;
    border-radius: 999px;
    background: #dce9ec;
}

.local-sync-progress-bar span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0f8b8d, #62d2a2);
    transition: width .18s ease;
}

.local-sync-progress strong {
    display: inline-block;
    margin-top: 8px;
    color: #0f766e;
}

.local-sync-progress p {
    margin: 4px 0 0;
    color: #39545a;
}
