:root {
  --background: #fafafa;
  --foreground: #15171a;
  --card: #ffffff;
  --primary: #17191c;
  --primary-foreground: #ffffff;
  --muted: #f3f4f6;
  --muted-foreground: #6d727a;
  --accent: #fff5d8;
  --accent-strong: #dfaa00;
  --success: #15805d;
  --warning: #a15c00;
  --danger: #c4322b;
  --border: #e5e7eb;
  --input: #dfe2e6;
  --sidebar-width: 232px;
  --control-height: 36px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-lg: 0 20px 48px rgba(16, 24, 40, .16);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "PingFang TC", sans-serif;
  color: var(--foreground);
  background: var(--background);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; background: var(--background); color: var(--foreground); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid #6b7280; outline-offset: 2px; }
svg { display: block; width: 18px; height: 18px; stroke-width: 1.8; }
.hidden { display: none !important; }
.muted { color: var(--muted-foreground); }

.app-loading { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: var(--muted-foreground); }
.spinner { width: 24px; height: 24px; border: 2px solid #d8dadd; border-top-color: var(--foreground); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.brand-mark { display: inline-grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; background: var(--primary); color: #fff; font-size: 17px; font-weight: 800; }
.brand-mark-light { background: #fff; color: #15171a; }
.brand-lockup, .mobile-brand { display: flex; align-items: center; gap: 11px; font-size: 16px; font-weight: 700; }
.eyebrow { display: block; margin-bottom: 7px; color: #7d838c; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow-light { color: rgba(255,255,255,.58); }

.login-page { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 46%) 1fr; background: #fff; }
.login-brand-panel { min-height: 100vh; padding: 46px 54px; display: flex; flex-direction: column; position: relative; overflow: hidden; color: #fff; background: radial-gradient(circle at 78% 15%, rgba(255,255,255,.08), transparent 30%), linear-gradient(150deg, #101215 0%, #191d21 64%, #20262a 100%); }
.login-brand-panel::after { content: ""; position: absolute; width: 480px; height: 480px; right: -280px; bottom: -210px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.018), 0 0 0 140px rgba(255,255,255,.012); }
.login-brand-copy { margin: auto 0; position: relative; z-index: 1; max-width: 520px; }
.login-brand-copy h1 { margin: 0 0 24px; font-size: clamp(40px,4.4vw,64px); line-height: 1.08; letter-spacing: -.055em; font-weight: 650; }
.login-brand-copy p { max-width: 450px; margin: 0; color: rgba(255,255,255,.63); font-size: 16px; line-height: 1.75; }
.login-brand-footer { position: relative; z-index: 1; margin: 0; color: rgba(255,255,255,.36); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.login-form-panel { display: grid; place-items: center; min-height: 100vh; padding: 44px; }
.login-card { width: min(100%,400px); }
.mobile-brand { display: none; margin-bottom: 48px; }
.login-card h2 { margin: 0 0 7px; font-size: 28px; letter-spacing: -.035em; }
.login-card .field-group:first-of-type { margin-top: 30px; }
.login-card .button-full { margin-top: 22px; }
.form-note { margin: 18px 0 0; text-align: center; color: #92979e; font-size: 12px; }

.field-group { display: grid; align-content: start; gap: 7px; }
.field-group label { color: #363a40; font-size: 13px; font-weight: 700; }
.field-group small { color: var(--muted-foreground); font-size: 11px; }
input, select, textarea { width: 100%; border: 1px solid var(--input); border-radius: 10px; outline: none; padding: 0 12px; color: var(--foreground); background: #fff; box-shadow: var(--shadow-sm); }
input, select { height: var(--control-height); }
.water-date-input { position: relative; display: flex; width: 100%; min-width: 0; }
.water-date-display { padding-right: 42px; }
.water-date-picker { position: absolute; top: 0; right: 0; width: 40px; height: var(--control-height); display: grid; place-items: center; border: 0; border-radius: 0 10px 10px 0; background: transparent; color: var(--foreground); cursor: pointer; }
.water-date-picker:hover { background: #f4f5f6; }
.water-date-picker svg { width: 17px; height: 17px; }
.water-date-source { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; pointer-events: none; }
.locked-field { align-items: center; background: #f3f5f7; border: 1px solid var(--input); border-radius: 10px; color: var(--muted-foreground); display: flex; min-height: var(--control-height); padding: 0 12px; }
textarea { padding-top: 11px; padding-bottom: 11px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: #34373b; box-shadow: 0 0 0 3px rgba(25,28,31,.09); }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 48px; }
.password-toggle { position: absolute; top: 0; right: 5px; }

.button { height: var(--control-height); border: 1px solid transparent; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 14px; font-size: 14px; font-weight: 600; line-height: 1; transition: background .15s,border-color .15s,transform .05s; }
.button:active { transform: translateY(1px); }
.button:disabled { opacity: .58; cursor: not-allowed; transform: none; }
.button svg { width: 16px; height: 16px; }
.button-primary { background: var(--primary); color: var(--primary-foreground); }
.button-primary:hover { background: #2a2d31; }
.button-outline { background: #fff; border-color: var(--border); color: #383c42; }
.button-outline:hover { background: #f7f8f9; border-color: #d6d9dd; }
.service-slot-card { margin-top: 18px; }
.booking-service-tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; margin: 0 0 18px; padding: 6px; border: 1px solid var(--border); border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm); }
.booking-service-tab { min-height: 36px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 6px 12px; border: 1px solid transparent; border-radius: 999px; color: #686d74; background: transparent; font-size: 13px; font-weight: 800; transition: background .18s ease,color .18s ease,border-color .18s ease; }
.booking-service-tab svg { width: 19px; height: 19px; stroke-width: 2; }
.booking-service-tab:hover { color: #202327; background: #f6f7f8; }
.booking-service-tab.active { border-color: #191b1e; color: #fff; background: #191b1e; }
.service-booking-parts { display: grid; gap: 10px; margin-bottom: 10px; }
.service-booking-part-row { display: grid; grid-template-columns: minmax(150px, 1fr) 90px 130px 44px; gap: 8px; align-items: end; padding: 10px; border: 1px solid var(--border); border-radius: 14px; background: #f7f8f9; }
.service-booking-part-row label { display: grid; gap: 5px; color: var(--muted); font-size: 11px; font-weight: 700; }
.service-booking-part-row input { min-width: 0; width: 100%; }
.service-booking-part-remove { width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: #bd3f52; }
.service-booking-phone-grid { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 8px; }
@media (max-width: 760px) { .service-booking-part-row { grid-template-columns: 1fr 80px; } .service-booking-part-row label:first-child { grid-column: 1 / -1; } }
.button-large { height: 48px; font-size: 15px; font-weight: 800; }
.button-small { height: var(--control-height); font-size: 14px; font-weight: 600; }
.button-full { width: 100%; }
.icon-button { width: 36px; height: 36px; border: 0; border-radius: 50%; display: inline-grid; place-items: center; padding: 0; background: transparent; }
.icon-button:hover { background: var(--muted); }

.alert { margin-top: 20px; padding: 11px 13px; border-radius: 10px; font-size: 13px; }
.alert-error { color: #9e2b25; background: #fff1f0; border: 1px solid #f5cfcc; }

.dashboard-shell { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar-width) minmax(0,1fr); }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; width: var(--sidebar-width); display: flex; flex-direction: column; padding: 16px 12px 12px; background: #fff; border-right: 1px solid var(--border); }
.sidebar-brand { display: flex; align-items: center; gap: 11px; padding: 0 8px 18px; }
.sidebar-brand-copy { display: grid; }
.sidebar-brand-copy strong { font-size: 15px; }
.sidebar-brand-copy small { color: var(--muted-foreground); font-size: 11px; }
.sidebar-nav { display: flex; flex-direction: column; gap: 2px; }
.nav-label { margin: 9px 12px 7px; color: #9a9ea5; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.nav-label-spaced { margin-top: 24px; }
.nav-item { width: 100%; height: 36px; border: 0; border-radius: 10px; display: flex; align-items: center; gap: 9px; padding: 0 12px; color: #565b62; background: transparent; text-align: left; font-size: 13px; font-weight: 500; }
.nav-item:hover { background: #f6f7f8; color: #202327; }
.nav-item.active { background: #eceef0; color: #17191c; }
.nav-item .nav-count { margin-left: auto; min-width: 23px; padding: 2px 7px; border-radius: 999px; color: #715500; background: var(--accent); text-align: center; font-size: 11px; }
.sidebar-footer { margin-top: auto; }
.sidebar-user { width: 100%; min-height: 58px; border: 1px solid transparent; border-radius: 12px; display: flex; align-items: center; gap: 10px; padding: 8px; background: transparent; text-align: left; }
.sidebar-user:hover { border-color: var(--border); background: #fafafa; }
.sidebar-user-copy { display: grid; min-width: 0; flex: 1; }
.sidebar-user-copy strong, .sidebar-user-copy span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sidebar-user-copy span { color: var(--muted-foreground); font-size: 11px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; background: #202327; color: #fff; font-size: 12px; font-weight: 800; }
.avatar-sm { width: 32px; height: 32px; }
.account-menu { position: absolute; left: 12px; bottom: 82px; width: calc(var(--sidebar-width) - 24px); padding: 8px; border: 1px solid var(--border); border-radius: 14px; background: #fff; box-shadow: var(--shadow-lg); }
.account-menu-header { display: flex; align-items: center; gap: 10px; padding: 9px; }
.account-menu-header > div:last-child { min-width: 0; display: grid; }
.account-menu-header span { color: var(--muted-foreground); font-size: 11px; overflow: hidden; text-overflow: ellipsis; }
.account-menu-item { width: 100%; height: 40px; border: 0; border-radius: 9px; display: flex; align-items: center; gap: 10px; padding: 0 10px; background: transparent; }
.account-menu-item:hover { background: var(--muted); }

.main-column { grid-column: 2; min-width: 0; }
.topbar { height: 52px; position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; background: rgba(250,250,250,.96); border-bottom: 1px solid rgba(229,231,235,.9); backdrop-filter: blur(14px); }
.breadcrumb { display: flex; align-items: center; gap: 8px; color: #8a8f97; font-size: 12px; }
.breadcrumb i { color: #c0c3c7; font-style: normal; }
.breadcrumb strong { color: #33373c; }
.topbar-actions { display: flex; align-items: center; gap: 16px; }
.status-dot-wrap { display: flex; align-items: center; gap: 7px; color: #71767d; font-size: 11px; }
.status-dot-wrap i { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(21,128,93,.1); }
.mobile-menu { display: none; }
/* 頁面標題已在各頁 heading 顯示；頂欄只在手機需要（開啟選單）。 */
@media (min-width: 781px) { .topbar { display: none; } }
.main-content { max-width: 1680px; margin: 0 auto; padding: 24px 24px 48px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.page-heading h1 { margin: 0 0 5px; font-size: 24px; letter-spacing: -.04em; }
.page-heading p { margin: 0; }
.heading-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.metrics-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-bottom: 16px; }
.metric-card { min-height: 112px; padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); }
.metric-card-top { display: flex; justify-content: space-between; color: #777c83; font-size: 13px; font-weight: 500; }
.metric-icon { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; color: #8c6900; background: var(--accent); }
.metric-card strong { display: block; margin-top: 8px; font-size: 26px; letter-spacing: -.04em; }
.metric-card small { color: var(--muted-foreground); }

.card { border: 1px solid var(--border); border-radius: 14px; background: var(--card); box-shadow: var(--shadow-sm); }
.card-header { padding: 14px 16px; border-bottom: 1px solid var(--border); }
.card-header-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.card-header h2 { margin: 0 0 3px; font-size: 15px; }
.card-header p { margin: 0; color: var(--muted-foreground); font-size: 12px; }
.toolbar { min-height: 58px; display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--border); }
.card-toolbar > .toolbar { border-bottom: 0; }
.card-toolbar { margin-bottom: 16px; }
.toolbar-filter { margin-left: auto; display: flex; align-items: center; gap: 10px; color: var(--muted-foreground); font-size: 12px; font-weight: 700; }
.order-result-count { margin-left: auto; color: var(--muted-foreground); font-size: 11px; font-weight: 700; white-space: nowrap; }
.search-wrap { position: relative; flex: 1; max-width: 520px; }
.search-wrap svg { position: absolute; top: 9px; left: 13px; color: #9ba0a7; }
.search-wrap input { padding-left: 40px; }
.toolbar select { width: 170px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
#orders-table { position: relative; isolation: isolate; }
.orders-table { min-width: 1460px; border-collapse: separate; border-spacing: 0; }
.orders-table th, .orders-table td, .orders-table .order-number-link { -webkit-user-select: text; user-select: text; }
.orders-table th:last-child, .orders-table td:last-child:not([colspan]) { position: sticky; right: 0; z-index: 2; min-width: 100px; background: #fff; box-shadow: -1px 0 0 #eceef0, -5px 0 8px -6px #9ba0a7; }
.orders-table thead th:last-child { z-index: 3; background: #fafbfc; }
.orders-table .table-filter-row th:last-child { background: #f5f6f7; }
.products-table { min-width: 1280px; }
th, td { padding: 10px 14px; border-bottom: 1px solid #eceef0; text-align: left; vertical-align: middle; white-space: nowrap; }
th { color: #777c83; background: #fafbfc; font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.sortable-header { cursor: pointer; user-select: none; }
.sortable-header:focus-visible { position: relative; z-index: 1; outline: 2px solid #6b7280; outline-offset: -3px; }
.sortable-header > span { display: inline-flex; align-items: center; }
.sort-indicator { display: inline-block; min-width: 13px; margin-left: 6px; color: #afb4bb; font-size: 12px; font-style: normal; }
.sortable-header[aria-sort="ascending"] .sort-indicator,
.sortable-header[aria-sort="descending"] .sort-indicator { color: #25282c; }
.table-filter-row th { padding: 8px 7px; background: #f5f6f7; }
.table-filter-row th:first-child { padding-left: 18px; }
.table-filter-row th:last-child { padding-right: 18px; }
.column-filter { min-width: 112px; height: var(--control-height); border-radius: 8px; padding: 0 9px; background: #fff; color: #3e4247; font-size: 11px; font-weight: 600; letter-spacing: 0; }
.column-filter-number { min-width: 76px; width: 82px; }
.column-filter-actions { display: flex; align-items: center; gap: 6px; }
.settings-machine-image-preview { display: grid; gap: 8px; justify-items: start; padding: 14px; border: 1px dashed var(--border); border-radius: 12px; background: #fafbfc; }
.settings-machine-image-preview img { max-width: 160px; max-height: 190px; }
.settings-machine-image-preview img.is-default { opacity: .9; }
.settings-machine-image-preview small { color: var(--muted-foreground); font-size: 11px; overflow-wrap: anywhere; }
.settings-machine-image-actions { margin-top: 10px; }
.column-date-range { min-width: 224px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 5px; }
.column-date-range .column-filter { min-width: 96px; padding: 0 5px; }
.column-date-range span { color: #969ba2; font-size: 10px; }
.order-filter-reset { height: 36px; color: #686d74; background: #fff; border: 1px solid var(--border); font-size: 14px; font-weight: 700; }
.order-filter-reset:hover { color: var(--danger); background: #fff3f1; border-color: #f1cfca; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fcfcfd; }
.table-primary { font-weight: 750; }
.table-secondary { display: block; color: var(--muted-foreground); font-size: 11px; }
.product-components { max-width: 360px; display: flex; flex-wrap: wrap; gap: 5px; white-space: normal; }
.product-special-tags { display: flex; flex-wrap: wrap; gap: 5px; }
/* 商品類別標籤：顏色跟主後台 store_product_list 的類型標籤。 */
.product-category-tags { display: inline-flex; flex-wrap: wrap; gap: 5px; }
.product-category-tag { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 999px; font-size: 10px; font-weight: 700; line-height: 1.6; white-space: nowrap; }
.product-category-tag--service { background: #e8f1ff; color: #356ac3; }
.product-category-tag--voucher { background: #f3e8ff; color: #7c3aed; }
.product-category-tag--water-voucher { background: #fff4e5; color: #b45309; }
.product-category-tag--water-machine { background: #e7f8f2; color: #08785c; }
.product-category-tag--package { background: #93e088; color: #ffffff; }
.product-components > span { display: inline-flex; padding: 4px 7px; border-radius: 999px; color: #555b62; background: #f1f3f5; font-size: 10px; font-weight: 700; }
.product-content-summary { margin-top: 6px; }
.product-sales-success { color: #116447; }
.products-table .money-value { white-space: nowrap; }
.products-table .table-secondary .money-value { display: inline-flex; }
.table-actions { display: flex; justify-content: flex-end; gap: 7px; }
.table-action { height: var(--control-height); border: 1px solid var(--border); border-radius: 999px; padding: 0 12px; background: #fff; font-size: 13px; font-weight: 600; }
.table-action:hover { background: var(--muted); }
.order-number-link { border: 0; padding: 0; color: inherit; background: transparent; text-align: left; }
.order-number-link .table-primary { text-decoration: underline; text-decoration-color: #cfd2d6; text-underline-offset: 3px; }
.order-number-link:hover .table-primary { text-decoration-color: currentColor; }
.quantity { font-size: 16px; font-weight: 800; }
.quantity-unit { margin-left: 3px; color: var(--muted-foreground); font-size: 11px; font-weight: 700; }
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; background: #f0f1f2; color: #555a61; font-size: 11px; font-weight: 800; }
.badge-success { color: #116447; background: #e8f6ef; }
.badge-warning { color: #855100; background: #fff4d8; }
.badge-danger { color: #9b2d27; background: #fff0ee; }
.badge-info { color: #235a9f; background: #eaf2ff; }
.empty-state { padding: 55px 20px; color: var(--muted-foreground); text-align: center; }
.empty-state strong { display: block; margin-bottom: 5px; color: #3f4348; font-size: 15px; }
.management-empty { min-height: 300px; padding: 54px 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted-foreground); text-align: center; }
.management-empty-icon { width: 48px; height: 48px; margin-bottom: 16px; border-radius: 14px; display: grid; place-items: center; color: #876600; background: var(--accent); }
.management-empty-icon svg { width: 22px; height: 22px; }
.management-empty strong { margin-bottom: 5px; color: #3f4348; font-size: 15px; }
.management-empty > span:last-child { max-width: 470px; }

.e-coupon-metrics { grid-template-columns: repeat(4,minmax(0,1fr)); }
.e-coupon-metrics .metric-card { min-height: 112px; padding: 16px; }
.e-coupon-metrics .metric-card strong { font-size: 26px; }
.e-coupon-warning-panel { display: grid; gap: 7px; margin: 0 0 18px; padding: 14px 16px; border: 1px solid #efdca7; border-radius: 13px; color: #735312; background: #fff9e9; font-size: 12px; font-weight: 700; }
.e-coupon-warning-panel > div { display: flex; align-items: flex-start; gap: 8px; }
.e-coupon-warning-panel svg { flex: 0 0 auto; width: 17px; height: 17px; }
.e-coupon-tabs { display: flex; gap: 7px; padding: 15px 18px 0; overflow-x: auto; }
.e-coupon-tab { flex: 0 0 auto; height: var(--control-height); padding: 0 15px; border: 1px solid var(--border); border-radius: 999px; color: #656a71; background: #fff; font-size: 12px; font-weight: 800; }
.e-coupon-tab:hover { color: #202327; background: #f6f7f8; }
.e-coupon-tab.active { border-color: #191b1e; color: #fff; background: #191b1e; }
.e-coupon-filter-panel { display: grid; grid-template-columns: repeat(5,minmax(145px,1fr)) auto; gap: 10px; align-items: end; margin: 14px 18px 0; padding: 14px; border: 1px solid var(--border); border-radius: 13px; background: #f7f8f9; }
.e-coupon-filter-panel .field-group { gap: 5px; }
.e-coupon-filter-panel .field-group label { font-size: 11px; }
.e-coupon-filter-panel input, .e-coupon-filter-panel select { height: var(--control-height); background: #fff; }
.e-coupon-filter-panel .button { height: var(--control-height); white-space: nowrap; }
.toolbar-actions { margin-left: auto; display: flex; align-items: center; gap: 9px; }
.result-count { color: var(--muted-foreground); font-size: 11px; font-weight: 700; white-space: nowrap; }
.e-coupon-table { min-width: 1720px; }
.e-coupon-code { font-family: ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace; font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.e-coupon-checkbox { width: 17px; height: 17px; accent-color: #17191c; }
.e-coupon-expired-row { background: #fffafa; }
.e-coupon-event-detail { max-width: 360px; overflow: hidden; text-overflow: ellipsis; }
.toggle-setting { min-height: 48px; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: #f7f8f9; font-size: 13px; font-weight: 750; }
.toggle-setting input { width: 18px; height: 18px; accent-color: #17191c; }
.toggle-setting > span { min-width: 0; display: grid; gap: 3px; }
.toggle-setting strong { color: #34383d; font-size: 13px; }
.toggle-setting small { color: var(--muted-foreground); font-size: 11px; font-weight: 500; }
.import-preview { display: flex; align-items: flex-start; gap: 8px; padding: 11px 13px; border: 1px solid #cce8dd; border-radius: 11px; color: #146149; background: #eef9f5; font-size: 12px; font-weight: 700; }
.import-preview svg { flex: 0 0 auto; width: 17px; height: 17px; }
.import-preview.is-loading { border-color: #d9dde2; color: #626970; background: #f7f8f9; }
.import-preview.is-error { border-color: #f2cac6; color: #9e2b25; background: #fff1f0; }
.e-coupon-camera { display: grid; gap: 13px; padding: 14px; border: 1px solid var(--border); border-radius: 14px; background: #f5f6f7; }
.e-coupon-camera-stage { position: relative; display: none; overflow: hidden; min-height: 230px; aspect-ratio: 4 / 3; border-radius: 12px; background: #111417; }
.e-coupon-camera.is-active .e-coupon-camera-stage { display: block; }
.e-coupon-camera-stage video { width: 100%; height: 100%; display: block; object-fit: cover; }
.e-coupon-scan-frame { position: absolute; inset: 18% 12%; border: 2px solid rgba(255,255,255,.95); border-radius: 14px; box-shadow: 0 0 0 999px rgba(8,10,12,.28); pointer-events: none; }
.e-coupon-camera-copy { display: grid; gap: 3px; }
.e-coupon-camera-copy strong { font-size: 13px; }
.e-coupon-camera-copy span { color: var(--muted-foreground); font-size: 11px; }
.e-coupon-camera-copy span[data-state="success"] { color: var(--success); font-weight: 750; }
.e-coupon-camera-copy span[data-state="error"] { color: var(--danger); font-weight: 750; }
.e-coupon-camera-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.e-coupon-scan-feedback { min-height: 66px; display: grid; align-content: center; gap: 3px; padding: 12px 14px; border: 1px solid transparent; border-radius: 13px; }
.e-coupon-scan-feedback strong { font-size: 14px; }
.e-coupon-scan-feedback span { font-size: 11px; }
.e-coupon-scan-feedback.is-scanning { border-color: #ead99e; color: #765900; background: #fff8dd; }
.e-coupon-scan-feedback.is-success { border-color: #bfe4d6; color: #0c6649; background: #eaf8f3; }
.e-coupon-scan-feedback.is-error { border-color: #f0c8c4; color: #a02d27; background: #fff0ef; }
.api-status-card { min-height: 66px; display: flex; align-items: center; gap: 12px; padding: 13px 15px; border: 1px solid var(--border); border-radius: 13px; background: #f7f8f9; }
.api-status-card > div { min-width: 0; display: grid; gap: 2px; }
.api-status-card strong { font-size: 14px; }
.api-status-card small { color: var(--muted-foreground); font-size: 11px; }
.api-status-dot { width: 10px; height: 10px; flex: 0 0 auto; border-radius: 50%; background: #aeb3ba; box-shadow: 0 0 0 5px rgba(120,126,135,.1); }
.api-status-card.is-active { border-color: #c7e7da; background: #eef9f5; }
.api-status-card.is-active .api-status-dot { background: var(--success); box-shadow: 0 0 0 5px rgba(21,128,93,.1); }
.api-status-card.is-inactive { border-color: #eedca6; background: #fff9e9; }
.api-status-card.is-inactive .api-status-dot { background: #b17b00; box-shadow: 0 0 0 5px rgba(177,123,0,.1); }
.api-copy-row { min-width: 0; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 9px; }
.api-copy-row code { min-height: 44px; display: flex; align-items: center; overflow-wrap: anywhere; padding: 9px 12px; border: 1px solid var(--input); border-radius: 10px; color: #31363b; background: #f7f8f9; font-family: ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace; font-size: 12px; line-height: 1.5; }
.api-token-summary { justify-content: space-between; gap: 15px; }
.api-token-summary strong { color: #34383d; }
.api-token-summary span { font-family: ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace; }
.api-secret-panel { display: grid; gap: 11px; padding: 14px; border: 1px solid #dfc46d; border-radius: 13px; color: #6e5100; background: #fff8dd; }
.api-secret-panel > div:first-child { display: grid; gap: 2px; }
.api-secret-panel small { font-size: 11px; }
.api-secret-panel .api-copy-row code { color: #352a00; background: #fff; border-color: #e7d28d; user-select: all; }
.api-security-note { display: grid; gap: 5px; padding: 14px 15px; border: 1px solid #dfe4ea; border-radius: 13px; color: #4c535b; background: #f7f9fb; font-size: 12px; }
.api-security-note strong { color: #272b30; font-size: 13px; }
.api-security-note a { width: fit-content; color: #235a9f; font-weight: 750; text-decoration: none; }
.api-security-note a:hover { text-decoration: underline; }
.api-request-list { max-height: 250px; overflow-y: auto; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.api-request-list > .muted { min-height: 70px; display: grid; place-items: center; padding: 15px; font-size: 12px; }
.api-request-row { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 11px 13px; border-bottom: 1px solid #eceef0; }
.api-request-row:last-child { border-bottom: 0; }
.api-request-row > div { min-width: 0; display: grid; gap: 3px; }
.api-request-row > div:last-child { flex: 0 0 auto; justify-items: end; }
.api-request-row strong, .api-request-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.api-request-row strong { font-family: ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace; font-size: 12px; }
.api-request-row small { color: var(--muted-foreground); font-size: 10px; }

.modal-dialog { width: min(760px,calc(100vw - 32px)); max-height: calc(100vh - 40px); border: 0; border-radius: 16px; padding: 0; background: #fff; box-shadow: var(--shadow-lg); }
.modal-dialog-small { width: min(520px,calc(100vw - 32px)); }
.modal-dialog::backdrop { background: rgba(15,18,22,.48); backdrop-filter: blur(2px); }
.modal-card { display: grid; grid-template-rows: auto minmax(0,1fr) auto; max-height: calc(100dvh - 40px); }
.modal-header, .modal-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px; }
.modal-header { border-bottom: 1px solid var(--border); }
.modal-header h2 { margin: 0; font-size: 18px; }
.modal-footer { justify-content: flex-end; border-top: 1px solid var(--border); }
.modal-body { min-height: 0; overflow-y: auto; padding: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.form-span { grid-column: 1 / -1; }
.existing-member-panel { padding: 15px; border: 1px solid #ecdca7; border-radius: 13px; background: #fffaf0; }
.existing-member-heading { display: grid; gap: 3px; margin-bottom: 11px; }
.existing-member-heading strong { font-size: 14px; }
.existing-member-heading span { color: var(--muted-foreground); font-size: 11px; }
.existing-member-list { display: grid; gap: 8px; }
.existing-member-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 12px; border: 1px solid #eee5ca; border-radius: 11px; background: #fff; }
.existing-member-row > div { min-width: 0; display: grid; }
.existing-member-row strong, .existing-member-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.existing-member-row span { color: var(--muted-foreground); font-size: 11px; }
.offline-product-preview { padding: 15px; border: 1px solid var(--border); border-radius: 13px; background: #f7f8f9; }
.offline-product-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.offline-product-title > div:first-child { display: grid; gap: 3px; }
.offline-product-title > div:first-child > strong { font-size: 15px; }
.offline-product-title > div:first-child > span { color: var(--muted-foreground); font-size: 11px; }
.offline-component-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.offline-component-list > span { padding: 5px 9px; border-radius: 999px; background: #fff; color: #555b62; font-size: 11px; }
.offline-product-facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-top: 12px; }
.offline-product-facts > span { min-height: 68px; display: grid; align-content: center; gap: 3px; padding: 10px; border-radius: 11px; background: #fff; }
.offline-product-facts small { color: var(--muted-foreground); font-size: 10px; font-weight: 700; }
.offline-product-facts strong { display: flex; align-items: baseline; gap: 5px; font-size: 13px; }
.offline-product-preview > p { margin: 11px 0 0; color: var(--muted-foreground); font-size: 10px; }
.new-order-back-icon svg { transform: rotate(180deg); }
.new-order-layout { display: grid; gap: 18px; }
.new-order-card { position: relative; overflow: visible; padding: 0; }
.new-order-card-heading { padding: 14px 16px; border-bottom: 1px solid var(--border); }
.new-order-card-heading > div { display: flex; align-items: center; gap: 13px; }
.new-order-card-heading h2 { margin: 0; font-size: 17px; }
.new-order-card-heading p { margin: 2px 0 0; color: var(--muted-foreground); font-size: 11px; }
.new-order-step { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #765900; background: var(--accent); font-size: 11px; font-weight: 900; }
.new-order-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; padding: 16px; }
.manual-customer-label-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.manual-customer-label-row .button { flex: 0 0 auto; }
.manual-customer-field > small { min-height: 17px; }
.searchable-select-native { position: absolute !important; width: 1px !important; height: 1px !important; margin: 0 !important; padding: 0 !important; overflow: hidden; opacity: 0; pointer-events: none; }
.searchable-select { position: relative; width: 100%; }
.searchable-select.open { z-index: 80; }
.searchable-select-trigger { width: 100%; height: var(--control-height); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 12px; border: 1px solid var(--input); border-radius: 10px; color: var(--foreground); background: #fff; box-shadow: var(--shadow-sm); text-align: left; }
.searchable-select-trigger:hover { border-color: #cdd1d6; }
.searchable-select-trigger:focus-visible, .searchable-select.open .searchable-select-trigger { border-color: #34373b; outline: none; box-shadow: 0 0 0 3px rgba(25,28,31,.09); }
.searchable-select-trigger > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.searchable-select-trigger > svg { width: 16px; height: 16px; flex: 0 0 auto; color: #7d838c; transition: transform .15s; }
.searchable-select.open .searchable-select-trigger > svg { transform: rotate(180deg); }
.searchable-select-popover { position: absolute; top: calc(100% + 7px); left: 0; right: 0; z-index: 90; overflow: hidden; border: 1px solid #d9dde2; border-radius: 13px; background: #fff; box-shadow: 0 18px 42px rgba(16,24,40,.18); }
.searchable-select-search { position: relative; padding: 10px; border-bottom: 1px solid var(--border); background: #fff; }
.searchable-select-search > svg { position: absolute; top: 20px; left: 23px; width: 16px; height: 16px; color: #969ca4; pointer-events: none; }
.searchable-select-search input { padding-left: 38px; }
.searchable-select-options { max-height: 260px; overflow-y: auto; padding: 6px; }
.searchable-select-option { width: 100%; min-height: 36px; display: flex; align-items: center; gap: 9px; padding: 8px 10px; border: 0; border-radius: 9px; color: #373b40; background: transparent; text-align: left; }
.searchable-select-option:hover, .searchable-select-option.active { background: #f3f4f6; }
.searchable-select-option.selected { color: #725600; background: var(--accent); font-weight: 800; }
.searchable-select-option svg { width: 15px; height: 15px; flex: 0 0 auto; }
.searchable-select-empty { padding: 18px 12px; color: var(--muted-foreground); text-align: center; font-size: 12px; }
.new-order-product-picker { display: grid; grid-template-columns: minmax(260px,1fr) auto; align-items: end; gap: 12px; padding: 14px 16px; }
.new-order-product-picker .button { min-width: 138px; }
.new-order-unified-date { display: grid; grid-template-columns: minmax(220px,1fr) 190px auto; align-items: center; gap: 12px; margin: 0 22px 20px; padding: 14px; border: 1px solid #eadcae; border-radius: 13px; background: #fffaf0; }
.new-order-unified-date > div { display: grid; }
.new-order-unified-date strong { font-size: 13px; }
.new-order-unified-date span { color: var(--muted-foreground); font-size: 10px; }
.manual-order-items { display: grid; gap: 14px; padding: 0 22px 22px; }
.manual-order-items > .empty-state { padding: 38px 20px; border: 1px dashed #d8dade; border-radius: 13px; background: #fafbfc; }
.manual-order-line { overflow: hidden; border: 1px solid var(--border); border-radius: 14px; background: #fbfcfd; }
.manual-order-line-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 16px; border-bottom: 1px solid var(--border); background: #fff; }
.manual-order-line-heading > div { display: grid; min-width: 0; }
.manual-order-line-heading span, .manual-order-line-heading small { color: var(--muted-foreground); font-size: 10px; }
.manual-order-line-heading strong { overflow: hidden; text-overflow: ellipsis; font-size: 15px; }
.manual-order-line-controls { display: grid; grid-template-columns: 130px 220px minmax(180px,1fr); align-items: end; gap: 14px; padding: 16px; }
.manual-order-line-total { min-height: 44px; display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.manual-order-line-total > span { color: var(--muted-foreground); font-size: 11px; font-weight: 700; }
.manual-order-line .offline-component-list, .manual-order-line .offline-product-facts { margin-left: 16px; margin-right: 16px; }
.manual-order-line .offline-product-facts { margin-bottom: 16px; }
.manual-line-deliveries { margin: 16px; }
.new-order-summary-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 22px; }
.new-order-summary-card > div:first-child { display: grid; }
.new-order-summary-card > div:first-child > span { color: var(--muted-foreground); font-size: 11px; font-weight: 700; }
.new-order-summary-card > div:first-child > strong { margin-top: 3px; font-size: 23px; }
.new-order-summary-card > div:first-child > small { margin-top: 2px; color: var(--muted-foreground); }
.new-order-submit-actions { display: flex; gap: 14px; }
.manual-detail-delivery { display: grid; gap: 13px; padding: 14px; border-top: 1px solid #d8e2ec; background: #f8fbff; }
.machine-delivery-panel { padding: 15px; border: 1px solid #e7d9aa; border-radius: 13px; background: #fffdf6; }
.machine-delivery-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.machine-delivery-panel-heading > div { display: grid; gap: 3px; }
.machine-delivery-panel-heading strong { font-size: 14px; }
.machine-delivery-panel-heading span { color: var(--muted-foreground); font-size: 11px; }
.machine-delivery-list { display: grid; gap: 11px; }
.machine-delivery-card { padding: 13px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.machine-delivery-card-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.machine-delivery-card-heading strong { font-size: 13px; }
.machine-delivery-card-heading span { color: var(--muted-foreground); font-size: 10px; }
.machine-delivery-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
.machine-delivery-fields .field-group { gap: 5px; }
.machine-delivery-fields .field-group label { font-size: 10px; }
.machine-delivery-fields input { height: var(--control-height); }
.machine-delivery-fields textarea { min-height: 66px; }
.order-machine-delivery-section { border-color: #d8e2ec; background: #fbfdff; }
.machine-delivery-readonly { display: grid; gap: 9px; }
.machine-delivery-readonly article { padding: 12px; border: 1px solid var(--border); border-radius: 11px; background: #fff; }
.machine-delivery-readonly span { display: block; margin-top: 3px; color: var(--muted-foreground); font-size: 11px; }
.machine-delivery-readonly p { margin: 7px 0 0; font-size: 12px; }
.complete-order-copy { display: grid; gap: 9px; }
.complete-order-copy strong { font-size: 15px; }
.complete-order-copy p { margin: 0; color: var(--muted-foreground); font-size: 12px; line-height: 1.7; }

body.order-detail-open { overflow: hidden; }
.order-detail-drawer { position: fixed; inset: 0; z-index: 90; display: flex; justify-content: flex-end; }
.order-detail-backdrop { position: absolute; inset: 0; border: 0; padding: 0; background: rgba(15,18,22,.44); opacity: 0; transition: opacity .18s ease; backdrop-filter: blur(1px); }
.order-detail-panel { position: relative; width: min(620px,100vw); height: 100%; display: grid; grid-template-rows: auto minmax(0,1fr); background: #fff; box-shadow: -18px 0 50px rgba(16,24,40,.16); transform: translateX(100%); transition: transform .18s ease; }
.order-detail-drawer.open .order-detail-backdrop { opacity: 1; }
.order-detail-drawer.open .order-detail-panel { transform: translateX(0); }
.order-detail-header { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 22px; border-bottom: 1px solid var(--border); background: #fff; }
.order-detail-header .eyebrow { margin-bottom: 2px; }
.order-detail-header h2 { margin: 0; font-size: 22px; letter-spacing: -.025em; }
.order-detail-header p { margin: 2px 0 0; color: var(--muted-foreground); font-size: 11px; }
.order-detail-close { flex: 0 0 auto; background: var(--muted); }
.order-detail-content { min-height: 0; overflow-y: auto; padding: 20px 22px 34px; background: #f8f9fa; }
.order-detail-loading, .order-detail-error { min-height: 360px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--muted-foreground); text-align: center; }
.order-detail-loading strong, .order-detail-error strong { color: #3f4348; }
.order-detail-error > svg { width: 28px; height: 28px; color: var(--warning); }
.order-detail-status-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; margin-bottom: 14px; }
.order-detail-status-grid > div { min-height: 70px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.order-detail-status-grid > div > span:first-child { color: var(--muted-foreground); font-size: 11px; font-weight: 700; }
.order-detail-tabs { display: flex; gap: 6px; padding: 5px; border: 1px solid var(--border); border-radius: 24px; background: #fff; overflow-x: auto; }
.order-detail-tabs [role="tab"] { flex: 1 0 auto; height: 36px; padding: 0 12px; border: 0; border-radius: 999px; color: var(--muted-foreground); background: transparent; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.order-detail-tabs [aria-selected="true"] { color: #111111; background: #eef0f2; }
.order-detail-tabs [role="tab"]:focus-visible { outline: 2px solid #64748b; outline-offset: -2px; }
.order-detail-content [role="tabpanel"][hidden] { display: none; }
.order-detail-item-price > .money-value, .order-detail-item-deposit .money-value { font-size: 12px; }
.order-detail-item-price .money-integer, .order-detail-item-deposit .money-integer { font-size: 1em; }
.order-detail-item-price .money-affix, .order-detail-item-deposit .money-affix { font-size: 70%; }
.order-detail-section { margin-top: 14px; padding: 18px; border: 1px solid var(--border); border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); }
.order-detail-section h3 { margin: 0 0 13px; font-size: 14px; }
.order-detail-dedicated-address { border-color: #bfdbfe; background: #eff6ff; }
.order-detail-dedicated-address h3 { color: #1e40af; }
.order-detail-dedicated-address .order-detail-info-row { border-bottom-color: #dbeafe; }
.order-detail-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.order-detail-section-heading h3 { margin-bottom: 3px; }
.order-detail-section-heading p { margin: 0; color: var(--muted-foreground); font-size: 11px; }
.order-fulfilment-section { border-color: #e7d9aa; background: #fffdf6; }
.order-fulfilment-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.order-fulfilment-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 15px; }
.order-fulfilment-note { margin: 11px 0 0; color: var(--muted-foreground); font-size: 10px; line-height: 1.6; }
.order-detail-items { display: grid; gap: 11px; }
.order-detail-item { overflow: hidden; border: 1px solid var(--border); border-radius: 12px; }
.order-detail-item-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 14px; }
.order-detail-item-head > div:first-child { min-width: 0; display: grid; gap: 3px; }
.order-detail-item-head strong { white-space: normal; }
.order-detail-item-head span { color: var(--muted-foreground); font-size: 11px; }
.order-detail-item-price { flex: 0 0 auto; display: grid; justify-items: end; gap: 4px; }
.order-detail-components { padding: 12px 14px; border-top: 1px solid var(--border); background: #f6f7f8; }
.order-detail-components > span { display: block; margin-bottom: 7px; color: var(--muted-foreground); font-size: 10px; font-weight: 800; letter-spacing: .06em; }
.order-detail-components > div { display: flex; justify-content: space-between; gap: 16px; padding: 5px 0; }
.order-detail-components strong { font-size: 12px; font-weight: 650; }
.order-detail-components strong small { display: block; margin-top: 2px; color: var(--muted-foreground); font-size: 10px; font-weight: 650; }
.order-detail-components b { flex: 0 0 auto; font-size: 12px; }
.order-detail-item-deposit { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; border-top: 1px solid #f1dfab; color: #674d00; background: #fff8e5; }
.order-detail-item-deposit > div:first-child { display: grid; }
.order-detail-item-deposit span { font-size: 12px; font-weight: 800; }
.order-detail-item-deposit small { color: #8b6c16; font-size: 10px; }
.order-detail-summary { display: grid; gap: 9px; }
.order-detail-summary-row, .order-detail-summary-total { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.order-detail-summary-row { color: #545960; font-size: 12px; }
.order-detail-summary-row.is-discount { color: var(--danger); }
.order-detail-summary-total { margin-top: 4px; padding-top: 13px; border-top: 2px solid #e4e6e8; font-size: 16px; font-weight: 800; }
.money-value { display: inline-flex; align-items: baseline; justify-content: flex-end; color: inherit; white-space: nowrap; font-weight: 800; }
.money-integer { font-size: 1em; }
.money-affix { font-size: 70%; }
.order-detail-summary-total .money-value { font-size: 22px; }
.order-detail-info { display: grid; gap: 0; }
.order-detail-info-row { display: grid; grid-template-columns: 110px minmax(0,1fr); gap: 14px; padding: 9px 0; border-bottom: 1px solid #eff0f1; }
.order-detail-info-row:last-child { border-bottom: 0; }
.order-detail-info-row > span { color: var(--muted-foreground); font-size: 11px; }
.order-detail-info-row strong { min-width: 0; font-size: 12px; overflow-wrap: anywhere; }
.order-detail-multiline, .order-detail-note { white-space: pre-line; }
.order-detail-note { margin: 0; color: #4f545b; font-size: 12px; }

.toast-region { position: fixed; right: 22px; bottom: 22px; z-index: 100; display: grid; gap: 10px; }
.toast { width: min(360px,calc(100vw - 44px)); display: flex; align-items: flex-start; gap: 10px; padding: 14px; border: 1px solid #cce8dd; border-radius: 12px; background: #fff; box-shadow: var(--shadow-lg); }
.toast > svg { color: var(--success); }
.toast strong { display: block; }
.toast p { margin: 2px 0 0; color: var(--muted-foreground); font-size: 12px; }
.toast-error { border-color: #f2cac6; }
.toast-error > svg { color: var(--danger); }
.mobile-overlay { display: none; }

@media (max-width: 1050px) {
  .metrics-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .e-coupon-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .e-coupon-filter-panel { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 780px) {
  .login-page { display: block; padding: 30px 22px; }
  .login-brand-panel { display: none; }
  .login-form-panel { min-height: calc(100vh - 60px); padding: 0; }
  .mobile-brand { display: flex; }
  .dashboard-shell { display: block; }
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: translateX(0); }
  .main-column { width: 100%; }
  .mobile-menu { display: inline-grid; }
  .mobile-overlay { position: fixed; inset: 0; z-index: 25; display: block; border: 0; background: rgba(15,18,22,.42); }
  .topbar { padding: 0 18px; }
  .topbar .breadcrumb span, .topbar .breadcrumb i, .status-dot-wrap { display: none; }
  .main-content { padding: 20px 16px 40px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .page-heading h1 { font-size: 22px; }
  .heading-actions { width: 100%; }
  .heading-actions .button { flex: 1; }
  .metrics-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .metric-card { min-height: 112px; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .toolbar-actions { width: 100%; margin-left: 0; flex-wrap: wrap; }
  .toolbar-actions .result-count { margin-right: auto; }
  .toolbar-filter { width: 100%; margin-left: 0; justify-content: space-between; }
  .toolbar select, .search-wrap { width: 100%; max-width: none; }
  .booking-service-tabs { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-span { grid-column: auto; }
  .existing-member-row { align-items: stretch; flex-direction: column; }
  .existing-member-row .button { width: 100%; }
  .offline-product-title { flex-direction: column; }
  .offline-product-facts { grid-template-columns: 1fr; }
  .new-order-form-grid { grid-template-columns: 1fr; padding: 18px; }
  .new-order-form-grid .form-span { grid-column: auto; }
  .manual-customer-label-row { align-items: flex-start; }
  .new-order-product-picker { grid-template-columns: 1fr; padding: 18px; }
  .new-order-product-picker .button { width: 100%; }
  .new-order-unified-date { grid-template-columns: 1fr; margin: 0 18px 18px; }
  .manual-order-items { padding: 0 18px 18px; }
  .manual-order-line-controls { grid-template-columns: 1fr; }
  .manual-order-line-total { justify-content: space-between; }
  .new-order-summary-card { align-items: stretch; flex-direction: column; }
  .new-order-submit-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .machine-delivery-panel-heading { align-items: stretch; flex-direction: column; }
  .machine-delivery-panel-heading .button { width: 100%; }
  .machine-delivery-fields { grid-template-columns: 1fr; }
  .machine-delivery-fields .form-span { grid-column: auto; }
  .modal-footer .button { flex: 1; }
  .api-copy-row { grid-template-columns: 1fr; }
  .api-copy-row .button { width: 100%; }
  .api-request-row { align-items: flex-start; flex-direction: column; }
  .api-request-row > div:last-child { width: 100%; grid-auto-flow: column; justify-content: space-between; justify-items: start; }
  #e-coupon-api-dialog .modal-footer { flex-wrap: wrap; }
  #e-coupon-api-dialog .modal-footer .button { flex: 1 1 calc(50% - 8px); }
  .e-coupon-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .e-coupon-filter-panel { grid-template-columns: 1fr; margin-inline: 14px; }
  .e-coupon-filter-panel .button { width: 100%; }
  .order-detail-panel { width: 100vw; }
  .order-detail-content { padding: 16px 14px 28px; }
  .order-detail-header { padding: 12px 17px; }
  .order-detail-status-grid { grid-template-columns: 1fr; }
  .order-detail-status-grid > div { min-height: 54px; flex-direction: row; align-items: center; }
  .order-detail-section { padding: 15px; }
  .order-fulfilment-grid { grid-template-columns: 1fr; }
  .order-fulfilment-grid .form-span { grid-column: auto; }
  .order-fulfilment-actions { align-items: stretch; flex-direction: column; }
  .order-fulfilment-actions .button { width: 100%; }
  .order-detail-item-head { gap: 10px; }
  .order-detail-info-row { grid-template-columns: 90px minmax(0,1fr); }
}

.settings-card { display: grid; gap: 18px; padding: 18px; }
.settings-intro { background: #f4f8ff; border: 1px solid #dce8fb; border-radius: 14px; padding: 18px; }
.settings-intro strong { color: #25324a; display: block; font-size: 15px; margin-bottom: 6px; }
.settings-intro p { color: var(--muted-foreground); font-size: 13px; line-height: 1.65; margin: 0; }
.settings-editor-section { display: grid; gap: 0; }
.settings-editor-heading { align-items: center; display: flex; gap: 16px; justify-content: space-between; margin-bottom: 10px; }
.settings-editor-heading h2 { font-size: 16px; margin: 0 0 4px; }
.settings-editor-heading p { color: var(--muted-foreground); font-size: 12px; margin: 0; }
.settings-upload-button { cursor: pointer; flex: 0 0 auto; }
.rich-toolbar { align-items: center; background: #f6f7f8; border: 1px solid var(--border); border-bottom: 0; border-radius: 12px 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; }
.rich-toolbar button { background: #fff; border: 1px solid var(--border); border-radius: 999px; color: #34383d; cursor: pointer; font: inherit; font-size: 12px; height: var(--control-height); padding: 0 11px; }
.rich-toolbar button:hover { background: #eef1f3; }
.rich-editor { border: 1px solid var(--border); border-radius: 0 0 12px 12px; color: #30343a; line-height: 1.65; min-height: 180px; outline: none; overflow-wrap: anywhere; padding: 16px; }
.rich-editor:focus { border-color: #9aa8ba; box-shadow: 0 0 0 3px rgba(84, 121, 166, .11); }
.rich-editor img, .settings-notice-preview img { border-radius: 12px; display: block; height: auto; margin: 12px 0; max-width: 100%; }
.rich-editor p:first-child, .settings-notice-preview p:first-child { margin-top: 0; }
.rich-editor p:last-child, .settings-notice-preview p:last-child { margin-bottom: 0; }
.settings-preview-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.settings-preview-grid article { background: #fbfbfc; border: 1px solid var(--border); border-radius: 14px; padding: 16px; }
.settings-notice-preview { color: #41464d; font-size: 13px; line-height: 1.65; margin-top: 10px; min-height: 56px; overflow-wrap: anywhere; }
.settings-section-divider { border-top: 1px solid var(--border); padding-top: 24px; }
.settings-section-divider h2 { font-size: 18px; margin: 7px 0 5px; }
.settings-section-divider p { color: var(--muted-foreground); font-size: 13px; line-height: 1.6; margin: 0; }
.settings-sms-toggle { align-items: flex-start; }
.settings-sms-toggle span { display: grid; gap: 3px; }
.settings-sms-toggle strong { color: #25282d; font-size: 14px; }
.settings-sms-toggle small { color: var(--muted-foreground); font-size: 12px; font-weight: 500; line-height: 1.55; }
.settings-textarea-heading { align-items: center; display: flex; gap: 12px; justify-content: space-between; }
.settings-textarea-heading span { color: var(--muted-foreground); font-size: 12px; }
.settings-sms-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.settings-sms-grid #service-sms-text { min-height: 400px; resize: vertical; }
.settings-sms-preview-card { min-width: 0; padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: #fbfbfc; }
.settings-sms-preview-note { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.settings-sms-preview-card .verification-sms-preview { box-sizing: border-box; margin: 10px 0 0; min-height: 360px; }
.settings-actions { align-items: center; border-top: 1px solid var(--border); display: flex; gap: 16px; justify-content: space-between; padding-top: 20px; }

@media (max-width: 720px) {
  .settings-card { padding: 16px; }
  .settings-editor-heading, .settings-actions { align-items: stretch; flex-direction: column; }
  .settings-preview-grid { grid-template-columns: 1fr; }
  .settings-sms-grid { grid-template-columns: 1fr; }
  .settings-upload-button, .settings-actions .button { width: 100%; }
}

/* Shared compact dashboard rhythm. Preserve larger login and touch inputs. */
.page-heading p { font-size: 13px; }
.nav-item svg, .metric-icon svg { width: 16px; height: 16px; }
.sidebar { overflow-y: auto; }
.sidebar-footer { padding-top: 16px; }
.card-table > .card-header:first-child { border-radius: 14px 14px 0 0; }
.card-table > .table-wrap:last-child { border-radius: 0 0 14px 14px; }
.table-primary { font-weight: 600; }
.dashboard-shell .button-large, .modal-dialog .button-large { height: var(--control-height); font-size: 14px; font-weight: 600; }
.login-card input { height: 44px; }
.login-card .password-toggle { top: 4px; }
.service-booking-part-row { grid-template-columns: minmax(150px,1fr) 90px 130px 36px; }
.service-booking-part-remove { width: 36px; height: 36px; }
.service-booking-part-row label { color: var(--muted-foreground); }
@media (max-width: 780px) {
  .booking-service-tabs { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .booking-service-tab { gap: 5px; padding-inline: 6px; font-size: 12px; }
  .service-booking-part-row { grid-template-columns: 1fr 80px; }
  .metric-card { padding: 14px; }
  .metric-card-top { gap: 6px; }
  .metric-icon { flex: 0 0 28px; }
  .metric-card small { display: block; font-size: 11px; }
  input:not([type="checkbox"]):not([type="radio"]), select, textarea { font-size: 16px; }
}
@media (max-width: 360px) {
  .metrics-grid { grid-template-columns: 1fr; }
}

/* Operations overview */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.overview-top { display: grid; grid-template-columns: minmax(0,1fr) 300px; align-items: start; gap: 16px; }
.overview-kpis { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.overview-kpi { min-height: 112px; }
.overview-kpi strong { display: flex; align-items: baseline; gap: 4px; margin-top: 8px; font-size: 26px; letter-spacing: -.04em; }
.overview-kpi small { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px; color: var(--muted-foreground); }
.overview-kpi small .money-value { font-size: 1em; }
.overview-range { display: grid; align-content: start; gap: 10px; }
.overview-range-box { display: flex; align-items: center; gap: 6px; padding: 10px; border: 1px solid var(--border); border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); }
.overview-range-field { flex: 1 1 0; min-width: 0; }
.overview-range-box .water-date-input { width: 100%; }
.overview-range-box input { padding: 0 6px; }
.overview-range-box .water-date-display { padding-right: 28px; text-align: center; }
.overview-range-box .water-date-picker { width: 26px; }
.overview-range-sep { color: var(--muted-foreground); }
.overview-updated-line { display: flex; justify-content: flex-end; margin: 0; color: var(--muted-foreground); font-size: 11px; text-align: right; }
#overview-warning { margin: 14px 0 0; }
.overview-status-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: stretch; gap: 12px; margin-top: 16px; }
.overview-status-card { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; text-align: left; color: var(--foreground); }
button.overview-status-card { cursor: pointer; }
.overview-status-card.has-pending { background: #fff9ed; border-color: #ead5a7; }
.overview-status-card strong { display: block; font-size: 28px; line-height: 1.25; letter-spacing: -.03em; }
.overview-status-card strong small { margin-left: 8px; color: var(--muted-foreground); font-size: 12px; font-weight: 500; letter-spacing: 0; }
.overview-card-label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #525861; font-weight: 700; }
.overview-status-card > span:not(.overview-card-label), .overview-status-card > a { display: flex; align-items: center; gap: 6px; color: #686e77; font-size: 11px; text-decoration: none; }
.overview-status-card a:hover { text-decoration: underline; }
.overview-card-static { display: grid; gap: 8px; }
.overview-main-grid { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); align-items: start; gap: 16px; margin-top: 16px; }
.overview-main-grid > section { min-width: 0; overflow: hidden; }
.overview-main-grid .card-header { min-height: 78px; }
.overview-booking-date input { width: 150px; }
.overview-calendar { padding: 6px 14px 12px; }
.overview-calendar-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 2px 10px; }
.overview-calendar-head strong { font-size: 14px; letter-spacing: -.02em; }
.overview-calendar-weekdays, .overview-calendar-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 2px; }
.overview-calendar-weekdays span { padding-bottom: 6px; color: var(--muted-foreground); font-size: 11px; font-weight: 700; text-align: center; }
.overview-calendar-day { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; height: 38px; border: 0; border-radius: 9px; color: var(--foreground); background: transparent; font-size: 12px; font-weight: 600; line-height: 1.05; }
.overview-calendar-day small { font-size: 9px; font-weight: 800; letter-spacing: -.02em; }
button.overview-calendar-day { cursor: pointer; }
button.overview-calendar-day:hover { background: #f2f3f5; }
.overview-calendar-day.is-empty { visibility: hidden; }
.overview-calendar-day.is-sunday { color: var(--danger); }
.overview-calendar-day.is-today { box-shadow: inset 0 0 0 1px #cfd3d8; }
.overview-calendar-day.has-bookings { color: #12578f; background: #e6f0fa; }
.overview-calendar-day.has-bookings small { color: #12578f; }
.overview-calendar-day.is-selected, .overview-calendar-day.is-selected small { color: var(--primary-foreground); background: var(--primary); }
.overview-scope { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted-foreground); white-space: nowrap; }
.overview-scope select { width: 166px; }
.overview-product-cell { white-space: normal; min-width: 180px; max-width: 280px; overflow-wrap: anywhere; }
.overview-product-button { display: grid; gap: 3px; width: 100%; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.overview-product-button:hover .overview-product-text { color: #12578f; text-decoration: underline; }
.overview-product-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.overview-status-stack { display: grid; justify-items: start; gap: 5px; }
.overview-product-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.overview-product-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid #eff0f1; font-size: 13px; }
.overview-product-list li:last-child { border-bottom: 0; }
.overview-product-list li span { min-width: 0; overflow-wrap: anywhere; }
.overview-product-list li strong { flex: 0 0 auto; font-weight: 700; }
.overview-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.overview-pagination, .overview-card-footer { padding: 12px 16px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--muted-foreground); }
.overview-pagination > div { display: flex; gap: 8px; }
.overview-booking-row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.overview-booking-row:last-child { border: 0; }
.overview-booking-row > div { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.overview-booking-row > div:last-child { align-items: flex-end; flex: 0 0 auto; }
.overview-booking-row span, .overview-booking-row small { color: var(--muted-foreground); font-size: 12px; overflow-wrap: anywhere; }
.overview-list { max-height: 320px; overflow: auto; }
#overview-orders .button { text-decoration: none; white-space: nowrap; font-weight: 700; }
@media (max-width: 1280px) { .overview-top { grid-template-columns: minmax(0,1fr); } .overview-range { grid-template-columns: minmax(0,320px) auto minmax(0,1fr); align-items: center; } .overview-updated-line { grid-column: 3; } }
@media (max-width: 1100px) { .overview-main-grid { grid-template-columns: minmax(0,1fr); } .overview-status-cards { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 900px) { .overview-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); } .overview-range { grid-template-columns: minmax(0,1fr); } .overview-updated-line { grid-column: auto; } }
@media (max-width: 700px) {
  .overview-kpis { grid-template-columns: minmax(0,1fr); }
  .overview-status-cards { grid-template-columns: minmax(0,1fr); }
  #overview-page .card-header-row { flex-wrap: wrap; }
  .overview-pagination { flex-wrap: wrap; }
  .overview-booking-row { gap: 8px; }
  .overview-list { max-height: none; }
}

#overview-page .button { font-weight: 700; }

.customer-metric-link { min-height: 36px; display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 4px 8px; margin-left: -8px; border: 0; border-radius: 999px; color: var(--foreground); background: transparent; font: inherit; font-weight: 800; text-align: left; text-decoration: underline; text-decoration-color: #c9ced5; text-underline-offset: 4px; }
.customer-metric-link:hover { background: #f0f2f5; text-decoration-color: currentColor; }
.customer-metric-link .table-secondary { text-decoration: none; }
.customer-contact-cell { max-width: 300px; }
.customer-contact-button { display: block; width: 100%; padding: 4px 8px; margin-left: -8px; border: 0; border-radius: 8px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.customer-contact-button:hover { background: #f0f2f5; }
.customer-contact-button > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.customer-contact-button > span:first-child { font-weight: 700; }
.customer-contact-button > span:not(:first-child) { color: var(--muted-foreground); font-size: 11px; }
.customer-detail-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.customer-detail-summary { display: flex; align-items: center; gap: 24px; padding: 20px; border-bottom: 1px solid var(--border); }
.customer-detail-summary > div { min-width: 150px; flex: 0 0 auto; }
.customer-detail-summary strong { display: block; font-size: 30px; line-height: 1.35; }
.customer-detail-summary strong small { font-size: 13px; color: var(--muted-foreground); margin-left: 8px; }
.customer-detail-summary span, .customer-detail-summary p { color: var(--muted-foreground); font-size: 12px; }
.customer-detail-summary p { margin: 0; max-width: 680px; }
.customer-detail-code { overflow-wrap: anywhere; white-space: normal; max-width: 320px; }
#customer-detail-page .button { font-weight: 700; white-space: nowrap; }
@media (max-width: 600px) { .customer-detail-summary { align-items: flex-start; flex-direction: column; gap: 12px; padding: 16px; } }

.profile-header-actions, .profile-identity-main, .profile-machine-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.profile-head-main { flex: 1 1 auto; min-width: 0; }
.profile-back-link { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 8px; padding: 0; border: 0; background: transparent; color: var(--muted-foreground); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.profile-back-link:hover { color: var(--foreground); }
.profile-back-link svg { width: 16px; height: 16px; }
.profile-head-main h1 { margin: 0 0 6px; }
.profile-name-heading { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.profile-name-heading h1 { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.profile-name-heading .icon-button { flex: 0 0 36px; color: var(--muted-foreground); }
.profile-name-heading .icon-button[hidden] { display: none; }
#profile-name-dialog .profile-name-title { display: grid; gap: 2px; min-width: 0; text-align: left; }
#profile-name-dialog .profile-name-title h2, #profile-name-dialog .profile-name-title p { margin: 0; }
#profile-name-dialog .profile-name-title p { font-size: 12px; color: var(--muted-foreground); }
#profile-name-dialog input { height: 36px; border-radius: 8px; }
#profile-name-dialog .button { height: 36px; font-size: 14px; font-weight: 700; }
.profile-identity { margin: 0; font-size: 13px; }
.profile-head-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.profile-member-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; width: 100%; max-width: 380px; margin-top: 10px; }
.profile-member-search input { min-width: 0; }
.profile-identity-main { gap: 12px; }
.profile-identity .profile-note { margin: 8px 0 0; color: var(--muted-foreground); overflow-wrap: anywhere; }
.profile-note { white-space: pre-wrap; }
.profile-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; margin-bottom: 24px; }
.profile-stats article { padding: 18px; background: white; border: 1px solid var(--border); border-radius: 14px; }
.profile-stats article > span { font-size: 12px; color: var(--muted-foreground); }
.profile-stats strong { display: block; font-size: 26px; margin: 12px 0 8px; line-height: 1.3; }
.profile-stats small { font-size: 12px; margin-left: 6px; font-weight: 500; }
.profile-stats p { font-size: 11px; color: var(--muted-foreground); margin: 0; }
.profile-page-heading { align-items: center; }
.profile-delivery-box { max-width: 440px; margin-left: auto; padding: 12px 16px; background: #fff8ef; border: 1px solid #ffd9a8; border-radius: 12px; font-size: 12px; text-align: left; }
.profile-delivery-label { display: block; font-size: 10px; letter-spacing: .06em; color: #b45309; margin-bottom: 8px; font-weight: 800; }
.profile-delivery-rows { display: grid; gap: 3px; }
.profile-delivery-row { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 8px; align-items: baseline; }
.profile-delivery-key { color: #b45309; font-weight: 700; }
.profile-delivery-value { font-weight: 700; color: #1f2937; overflow-wrap: anywhere; line-height: 1.45; }
.profile-delivery-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.profile-delivery-head .profile-delivery-label { margin-bottom: 0; }
.profile-delivery-actions { display: flex; align-items: center; gap: 8px; }
.profile-delivery-actions .icon-button { color: #b45309; }
.profile-delivery-actions .icon-button:hover { background: #ffeddc; }
.profile-delivery-actions .button { border-color: #ffd9a8; color: #b45309; background: #fff; }
.profile-delivery-actions .button:hover { background: #fff3e2; }
.profile-history-list { display: grid; gap: 14px; }
.profile-history-current { margin: 0 0 12px; font-size: 12px; }
.profile-delivery-changes { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.profile-delivery-changes li { display: grid; gap: 2px; font-size: 12px; }
.profile-delivery-changes li span { color: #b45309; font-weight: 800; }
.profile-delivery-changes li strong { font-weight: 600; overflow-wrap: anywhere; }
.profile-delivery-changes li i { margin: 0 4px; color: var(--muted-foreground); font-style: normal; }
.profile-stat-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 168px), 1fr)); gap: 12px; margin-bottom: 24px; }
.profile-stat-tab { display: block; text-align: left; padding: 16px 18px; background: white; border: 1px solid var(--border); border-radius: 14px; cursor: pointer; color: inherit; font: inherit; transition: border-color .15s ease, box-shadow .15s ease; }
.profile-stat-tab:hover { border-color: var(--primary); }
.profile-stat-tab.active { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary) inset; }
.profile-stat-tab > span { display: block; font-size: 12px; color: var(--muted-foreground); }
.profile-stat-tab strong { display: block; font-size: 24px; margin: 10px 0 6px; line-height: 1.25; }
.profile-stat-tab strong small { font-size: 12px; margin-left: 6px; font-weight: 500; color: var(--muted-foreground); }
.profile-stat-tab p { font-size: 11px; color: var(--muted-foreground); margin: 0; }
.profile-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 22px 0 16px; }
.profile-section-heading h2 { font-size: 17px; margin: 0 0 4px; }
.profile-section-heading p { margin: 0; font-size: 12px; color: var(--muted-foreground); }
.profile-inline-label { display: flex; align-items: center; gap: 8px; font-size: 12px; flex-shrink: 0; }
.profile-inline-label select { width: 150px; }
.profile-machines { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 390px), 1fr)); gap: 18px; }
.profile-machine { background: white; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.profile-machine > header { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; padding: 20px 20px 14px; }
.profile-machine h3 { font-size: 17px; margin: 6px 0 0; }
.order-variant { display: block; width: fit-content; max-width: 100%; margin-top: 6px; padding: 3px 8px; border-radius: 6px; background: #eaf4ff; color: #17446f; font-size: 12px; font-weight: 700; overflow-wrap: anywhere; }
.profile-machine .eyebrow { font-size: 10px; letter-spacing: .04em; }
.profile-machine > header .badge { flex-shrink: 0; }
.profile-serial { margin: 0 20px 14px; background: #f6f7f8; border-radius: 10px; padding: 13px 15px; }
.profile-serial span { display: block; font-size: 10px; letter-spacing: .12em; color: var(--muted-foreground); margin-bottom: 4px; }
.profile-serial strong { font-size: 20px; overflow-wrap: anywhere; }
.profile-machine-badges { margin: 0 20px; }
.profile-details { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 18px 20px; margin: 0; }
.profile-details > div:last-child { grid-column: 1 / -1; }
.profile-details dt { font-size: 11px; color: var(--muted-foreground); margin-bottom: 5px; }
.profile-details dd { font-size: 12px; margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.profile-machine > footer { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--border); padding: 12px 20px; }
.profile-table-card { padding: 0; overflow: hidden; }
.profile-table-card table { min-width: 720px; }
.profile-wrap { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 460px; }
.profile-loading { display: flex; align-items: center; justify-content: center; min-height: 220px; gap: 12px; font-size: 13px; color: var(--muted-foreground); }
.profile-timeline { display: grid; gap: 14px; }
.profile-history-item { display: grid; grid-template-columns: 140px minmax(0, 1fr); background: white; border: 1px solid var(--border); border-radius: 14px; padding: 20px; gap: 20px; }
.profile-history-date { font-size: 12px; line-height: 1.6; }
.profile-history-date span { display: block; margin-top: 6px; font-size: 14px; font-weight: 800; }
.profile-history-body { min-width: 0; border-left: 2px solid #e8ebee; padding-left: 20px; }
.profile-history-body header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.profile-history-body h3 { margin: 0; font-size: 15px; }
.profile-history-body p { font-size: 13px; }
.profile-history-machine { color: var(--muted-foreground); font-size: 12px !important; overflow-wrap: anywhere; }
.profile-history-body footer { display: flex; align-items: center; gap: 8px 18px; flex-wrap: wrap; font-size: 11px; color: var(--muted-foreground); }
.profile-replacement { padding: 12px; background: #f3f7f5; border-radius: 8px; margin: 12px 0; font-size: 13px; overflow-wrap: anywhere; }
.profile-replacement span { margin-right: 10px; color: var(--muted-foreground); }
.profile-form-note, .profile-form-error { margin: 0; font-size: 12px; }
.profile-form-note { color: var(--muted-foreground); }
.profile-form-error { color: #b42318; }
.profile-delivery-lock { margin-top: 9px; font-weight: 700; line-height: 1.5; }
.deposit-receipt-saved { display: grid; justify-items: start; gap: 3px; }
.deposit-receipt-number-row { display: flex; align-items: center; gap: 7px; }
.deposit-receipt-number-row > strong { overflow-wrap: anywhere; }
.deposit-receipt-edit { width: 28px; height: 28px; min-height: 28px; flex: 0 0 28px; padding: 0; border: 1px solid var(--border); border-radius: 50%; color: var(--muted-foreground); font-size: 13px; }
.deposit-receipt-edit:hover { color: #5b21b6; border-color: #c4b5fd; background: #f5f3ff; }
.deposit-receipt-edit:focus-visible { outline: 2px solid #7c3aed; outline-offset: 2px; }
#deposit-receipt-no { height: 36px; border-radius: 8px; }
#deposit-receipt-numbers { display: grid; gap: 8px; }
.deposit-receipt-number-field { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: center; gap: 8px; }
#deposit-receipt-dialog [data-receipt-number] { height: 36px; border-radius: 8px; min-width: 0; }
#deposit-receipt-add-number { justify-self: start; width: fit-content; }
.deposit-receipt-image-link strong { overflow-wrap: anywhere; text-align: left; }
#deposit-receipt-dialog .button, #deposit-receipt-image-dialog .button { height: 36px; font-size: 14px; font-weight: 700; }
#deposit-receipt-dialog .modal-body { gap: 12px; }
#deposit-receipt-dialog .modal-body .muted { margin: 0; font-size: 12px; }
#deposit-receipt-dialog [hidden], #deposit-receipt-image-dialog [hidden],
#deposit-receipt-error:empty, #deposit-receipt-image-list:empty, #deposit-receipt-image-status:empty { display: none; }
.deposit-receipt-image-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.deposit-receipt-image-choice { display: grid; gap: 8px; padding: 8px; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; min-width: 0; }
.deposit-receipt-image-choice img { width: 100%; height: 110px; object-fit: contain; background: #f5f6f8; border-radius: 4px; }
.deposit-receipt-image-choice span { display: flex; align-items: center; gap: 6px; font-size: 12px; min-height: 28px; }
#deposit-receipt-dialog .deposit-receipt-image-choice input { width: 16px; height: 16px; margin: 0; flex: 0 0 16px; }
.deposit-receipt-image-choice:has(input:checked) { border-color: #b42318; background: #fff1f0; }
.deposit-receipt-image-choice:has(input:checked) img { opacity: .45; }
#deposit-receipt-new-preview { max-width: 100%; max-height: 160px; justify-self: center; object-fit: contain; border-radius: 8px; }
#deposit-receipt-image { max-width: 100%; font-size: 12px; }
#deposit-receipt-image-list { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
#deposit-receipt-image-list [aria-pressed="true"] { border-color: #7c3aed; color: #5b21b6; background: #f5f3ff; }
#deposit-receipt-image-dialog .modal-footer { flex-wrap: wrap; gap: 8px; }
.deposit-receipt-image-link { display: inline-flex; align-items: center; gap: 7px; padding: 0; border: 0; background: transparent; color: #5b21b6; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.deposit-receipt-image-link:hover { color: #7c3aed; }
.deposit-receipt-image-icon { display: inline-flex; width: 18px; height: 18px; flex: 0 0 18px; }
.deposit-receipt-image-icon svg { width: 100%; height: 100%; stroke-width: 1.8; }
.deposit-receipt-image-dialog { width: min(900px, calc(100vw - 24px)); }
.deposit-receipt-image-body { display: grid; place-items: center; min-height: 240px; background: #f5f6f8; }
.deposit-receipt-image-body img { display: block; max-width: 100%; max-height: calc(100dvh - 220px); border-radius: 10px; box-shadow: 0 8px 28px rgba(15,23,42,.14); object-fit: contain; }
#profile-service-dialog .form-span { grid-column: 1 / -1; }
#customer-profile-page .button, #profile-service-dialog .button { height: 36px; font-size: 14px; font-weight: 700; white-space: nowrap; }
@media (max-width: 1100px) { .profile-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .profile-header-actions { width: 100%; }
  .profile-section-heading { align-items: flex-start; flex-direction: column; }
  .profile-stats { gap: 10px; }
  .profile-stats article { padding: 13px; }
  .profile-stats strong { font-size: 21px; }
  .profile-machine > header { flex-direction: column; }
  .profile-history-item { grid-template-columns: 1fr; padding: 16px; gap: 12px; }
  .profile-history-date { display: flex; justify-content: space-between; align-items: center; }
  .profile-history-date span { margin: 0; }
  .profile-history-body { padding-left: 12px; }
}

/* Delivery reservations: immutable recipient and selectable owned quantities. */
#delivery-reservation-dialog { width: min(960px, calc(100vw - 24px)); }
.delivery-reservation-goods-row { display: grid; grid-template-columns: minmax(0,1fr) 108px; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.delivery-reservation-goods-row small { display: block; color: var(--muted-foreground); margin-top: 4px; }
.delivery-reservation-goods-row input, .delivery-reservation-goods-row select { width: 100%; height: 36px; margin-top: 6px; border-radius: 8px; }
#delivery-reservations-table { position: relative; isolation: isolate; }
#delivery-reservation-detail-content .heading-actions { flex-wrap: wrap; }

/* Read-only recipient details are a content card, not a single-line control. */
.delivery-recipient-card { padding: 16px; background: #f3f5f7; border: 1px solid var(--border); border-radius: 12px; align-self: start; }
.delivery-recipient-card > div { display: grid; grid-template-columns: 64px minmax(0,1fr); gap: 12px; margin-bottom: 8px; overflow-wrap: anywhere; }
.delivery-recipient-card p { margin: 10px 0 0; color: var(--muted-foreground); }
.delivery-recipient-card .delivery-limit-note { border-top: 1px solid var(--border); padding-top: 12px; color: var(--foreground); line-height: 1.8; }
.delivery-time-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.delivery-time-grid input { min-width: 0; }
#delivery-reservation-detail-content .locked-field { display: block; padding: 14px; height: auto; overflow-wrap: anywhere; }
@media(max-width: 480px) { .delivery-time-grid { grid-template-columns: 1fr; } }

.delivery-reservation-page-form { display: grid; gap: 20px; }
.delivery-form-section { padding: 24px; }
.delivery-form-section h2 { margin: 0 0 18px; font-size: 18px; }
.delivery-holdings { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.delivery-holdings > div { padding: 18px; background: var(--muted); border-radius: 12px; display: grid; gap: 8px; }
.delivery-holdings strong { font-size: 24px; }
.delivery-holdings small { color: var(--muted-foreground); }
.delivery-water-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 0px; }
.delivery-water-heading h2 { margin: 0; }
.delivery-water-count { display: inline-flex; align-items: center; justify-content: flex-end; gap: 16px; flex-shrink: 0; font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }
.delivery-water-count-slash { display: inline-block; width: 2px; height: 32px; background: var(--muted-foreground); transform: rotate(45deg); }
.delivery-water-count-limit { color: var(--muted-foreground); }
.delivery-page-footer { display: flex; justify-content: flex-end; gap: 14px; padding: 12px 0 24px; }
@media(max-width: 700px) { .delivery-holdings { grid-template-columns: 1fr; } .delivery-form-section { padding: 16px; } }

/* Independent columns keep each section directly below the previous one. */
.delivery-form-column { display: grid; align-content: start; gap: 20px; min-width: 0; }
@media (min-width: 1200px) {
  .delivery-reservation-page-form { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; }
  .delivery-form-column-left .form-grid { grid-template-columns: minmax(0,1fr); }
  .delivery-holdings { gap: 12px; }
  .delivery-holdings > div { padding: 14px; align-content: start; overflow-wrap: anywhere; }
}

.page-primary-actions { margin-left: auto; align-self: flex-start; justify-content: flex-end; flex-wrap: wrap; gap: 14px; }

.delivery-schedule-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px; }
.delivery-schedule-grid input { min-width: 0; }

#delivery-reservation-detail-dialog { width: min(820px,calc(100vw - 28px)); }
#delivery-reservation-detail-content { display: grid; align-content: start; grid-auto-rows: max-content; gap: 16px; padding: 20px; }
.delivery-detail-overview { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.delivery-detail-label { display: block; font-size: 12px; color: var(--muted-foreground); margin-bottom: 5px; }
.delivery-detail-overview h3 { margin: 0; font-size: 20px; overflow-wrap: anywhere; }
.delivery-detail-status { padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #f0f1f2; color: #555a61; flex-shrink: 0; }
.delivery-detail-status[data-status="completed"] { background: #e7f5ee; color: #167452; }
.delivery-detail-status[data-status="pending"], .delivery-detail-status[data-status="confirmed"] { background: #fff4d8; color: #855100; }
.delivery-detail-status[data-status="in_progress"] { background: #eaf1ff; color: #245b9e; }
.delivery-detail-status[data-status="cancelled"] { background: #fff0ee; color: #9b2d27; }
.delivery-detail-status[data-status="unbooked"] { background: #f0f1f2; color: #555a61; }
.delivery-cancellation-meta { display:block; margin-top:6px; font-size:11px; line-height:1.5; color:var(--muted-foreground); white-space:normal; }
.delivery-cancellation-meta > span { display:block; }
.delivery-cancellation-note p { margin:5px 0 0; overflow-wrap:anywhere; }
.delivery-detail-schedule { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.delivery-detail-schedule strong { overflow-wrap: anywhere; }
.delivery-detail-recipient { padding: 16px; background: #f5f6f8; border: 1px solid var(--border); border-radius: 12px; }
.delivery-detail-recipient h3, .delivery-detail-products h3, .delivery-detail-note h3 { font-size: 14px; margin: 0; }
.delivery-detail-recipient dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 20px; margin: 14px 0 0; }
.delivery-detail-recipient dl > div { display: grid; grid-template-columns: 54px minmax(0,1fr); gap: 8px; }
.delivery-detail-recipient dt { color: var(--muted-foreground); }
.delivery-detail-recipient dd { margin: 0; overflow-wrap: anywhere; }
.delivery-detail-address { grid-column: 1 / -1; }
.delivery-detail-products-heading, .delivery-detail-product { display: grid; grid-template-columns: minmax(0,1fr) 64px; gap: 16px; }
.delivery-detail-products-heading { padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.delivery-detail-products-heading > span { color: var(--muted-foreground); font-size: 12px; text-align: right; }
.delivery-detail-product { padding: 14px 0; border-bottom: 1px solid var(--border); align-items: center; }
.delivery-detail-product strong { overflow-wrap: anywhere; }
.delivery-detail-product small { display: block; margin-top: 5px; color: var(--muted-foreground); font-size: 12px; }
.delivery-detail-quantity { text-align: right; font-size: 18px; font-weight: 700; }
.delivery-detail-quantity small { display: inline; margin-left: 4px; font-weight: 400; }
.delivery-detail-note p { margin: 8px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
#delivery-reservation-detail-actions { justify-content: flex-end; flex-wrap: wrap; gap: 14px; }
#delivery-reservation-detail-actions .button { flex: 0 0 auto; }
@media(max-width: 520px) { #delivery-reservation-detail-content { padding: 16px; } .delivery-detail-overview { align-items: flex-start; } .delivery-detail-overview h3 { font-size: 17px; } .delivery-detail-recipient dl { grid-template-columns: minmax(0,1fr); } }

.delivery-machine-serials { grid-column: 1 / -1; }
.delivery-machine-serials textarea { margin-top: 6px; }

/* Page headers retain only their primary title and actions. */
.page-heading > div > .eyebrow,
.page-heading > div > p { display: none; }
.page-heading h1 { margin-bottom: 0; }

.status-edit-button { background: transparent; border: 0; padding: 0; cursor: pointer; font: inherit; border-radius: 999px; }
.status-edit-button:hover .badge { box-shadow: 0 0 0 2px var(--border); }
.order-reservation-cell + .order-reservation-cell { margin-top: 10px; }
#delivery-reservation-detail-dialog.reservation-side-panel { inset: 0 0 0 auto; margin: 0; height: 100dvh; max-height: 100dvh; width: min(680px,100vw); border-radius: 16px 0 0 16px; }
#delivery-reservation-detail-dialog.reservation-side-panel .modal-card { height: 100%; max-height: 100%; }
#order-status-body { display: grid; gap: 18px; }
.order-payment-info { display: grid; gap: 10px; }
.order-payment-code { display: flex; align-items: center; justify-content: space-between; gap: 12px; overflow-wrap: anywhere; }
#order-payment-result pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; max-height: 320px; overflow: auto; background: #f4f5f7; padding: 12px; border-radius: 10px; }

.payment-query-results { margin: 12px 0 0; background: #f4f5f7; padding: 12px; border-radius: 10px; }
.payment-query-row { display: grid; grid-template-columns: minmax(90px,1fr) minmax(0,2fr); gap: 10px; padding: 6px 0; font-size: 13px; }
.payment-query-row dd { margin: 0; overflow-wrap: anywhere; }
.payment-query-row dl { margin: 0; }

.customer-more-button { flex: 0 0 36px; width: 36px; height: 36px; font-size: 22px; line-height: 1; }
.customer-actions-dropdown { position: fixed; z-index: 120; width: 160px; padding: 6px; border: 1px solid var(--border); border-radius: 14px; background: #fff; box-shadow: var(--shadow-lg); }
.customer-actions-dropdown button { display: block; width: 100%; height: 36px; border: 0; border-radius: 999px; padding: 0 12px; background: transparent; color: inherit; text-align: left; font: inherit; font-size: 14px; cursor: pointer; }
.customer-actions-dropdown button:hover, .customer-actions-dropdown button:focus-visible { background: var(--muted); }

.manual-member-search-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; }
.manual-member-search-row input { min-width: 0; }
.manual-member-selected { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 10px; border: 2px solid #2563eb; background: #eff6ff; font-weight: 700; }
.manual-member-result { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.manual-member-result > div { min-width: 0; overflow-wrap: anywhere; }
.manual-member-result small { display: block; margin-top: 5px; color: var(--muted-foreground); }
.manual-member-result button { flex-shrink: 0; }

.manual-member-selected.hidden { display: none; }
.manual-member-selected-info { display: flex; align-items: center; gap: 10px; min-width: 0; }
.manual-member-selected-info svg { flex: 0 0 20px; width: 20px; height: 20px; color: #2563eb; }
.manual-member-selected-info strong { display: block; font-size: 11px; letter-spacing: .04em; color: #1d4ed8; margin-bottom: 3px; }
.manual-member-selected .icon-button { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; }
.account-recipient-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.account-copy-name { background: none; border: 0; border-radius: 999px; height: 36px; padding: 0 8px; color: var(--foreground); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }

/* New order: customer details on the left, products and summary on the right. */
.new-order-products-column { display: grid; gap: 18px; min-width: 0; }
.new-order-layout > .new-order-card { min-width: 0; }
@media (min-width: 1100px) {
  .new-order-layout { grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.65fr); align-items: start; }
  .new-order-layout > .new-order-card .new-order-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .new-order-layout .manual-member-selected > span { min-width: 0; overflow-wrap: anywhere; }
  .new-order-products-column .new-order-product-picker { grid-template-columns: minmax(0, 1fr) auto; }
  .new-order-products-column .manual-order-line-controls { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
}

#account-form .field-group { align-content: start; gap: 4px; }
#account-form .field-group > label,
#account-form .account-recipient-heading { min-height: 20px; display: flex; align-items: center; margin: 0; }
#account-form .account-recipient-heading > label { margin: 0; }
#account-form .account-recipient-heading { flex-wrap: nowrap; }
#account-form .account-copy-name { height: auto; min-height: 20px; flex-shrink: 0; }
#manual-delivery-profile .machine-delivery-card { min-width: 0; }
#manual-delivery-profile input, #manual-delivery-profile select, #manual-delivery-profile textarea { min-width: 0; width: 100%; }
#manual-delivery-profile input[readonly], #manual-delivery-profile textarea[readonly] { background: var(--muted); }
#manual-delivery-profile .machine-delivery-card-heading { align-items: start; flex-direction: column; }
#manual-delivery-profile .machine-delivery-card-heading span { font-size: 11px; }

#account-form .account-identity-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 70px minmax(0, 1.4fr); gap: 12px; }
#account-form .account-identity-row + small { margin-top: -8px; color: var(--muted-foreground); }
.account-water-section { padding: 16px; border: 1px solid #e7dfc8; border-radius: 14px; background: #fffaf0; min-width: 0; }
.account-water-section h3 { margin: 0 0 14px; font-size: 15px; color: #765900; }
.account-water-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
#account-form .account-water-section .account-recipient-heading { gap: 4px; }
#account-form .account-water-section .account-copy-name { padding: 0; font-size: 11px; }
@media (max-width: 600px) {
  #account-form .account-identity-row { grid-template-columns: 70px minmax(0, 1fr); }
  #account-form .account-identity-row > :first-child, #account-form .account-identity-row > :nth-child(2) { grid-column: 1 / -1; }
  .account-water-grid { grid-template-columns: 1fr; }
  .account-water-grid .form-span { grid-column: auto; }
  .account-water-section { padding: 12px; }
}

.catalog-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 12px; }
.catalog-mode-card { padding: 18px; margin-bottom: 18px; }
.catalog-mode-controls { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.catalog-mode-controls > .field-group { flex: 1; max-width: 680px; gap: 5px; }
.catalog-mode-controls select { max-width: 360px; }
.catalog-mode-controls > button { margin-top: 24px; flex-shrink: 0; }
#address-catalog-page .catalog-mode-help { font-size: 12px; color: var(--muted-foreground); line-height: 1.5; }
#address-catalog-list table { min-width: 700px; }
#address-catalog-list th:last-child { text-align: right; }
#address-catalog-list .catalog-actions { flex-wrap: nowrap; }

#address-catalog-list .catalog-filter-row input, #address-catalog-list .catalog-filter-row select { width: 100%; min-width: 0; }
#address-catalog-list .catalog-filter-row th:nth-child(2) { width: 180px; }
#catalog-form-error:empty { display: none; }
#catalog-form-error { color: #b42318; margin: 0; }
#address-catalog-logs details { padding: 12px 0; border-bottom: 1px solid var(--border); }
#address-catalog-logs details > div { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 8px; }
@media (max-width: 600px) { .catalog-mode-controls { flex-direction: column; }.catalog-mode-controls > button { margin-top: 0; align-self: flex-end; }.catalog-mode-controls > .field-group { width: 100%; } }

#address-catalog-list { position: relative; isolation: isolate; }
#address-catalog-list .catalog-address-table { min-width: 760px; }
.catalog-address-table th:first-child { width: 112px; }
.catalog-address-table th:nth-child(2) { width: 180px; }
.catalog-address-table th:last-child { width: 160px; }
#address-catalog-list .catalog-sort-actions { justify-content: flex-start; }
#address-catalog-list .table-actions { gap: 10px; flex-wrap: nowrap; }
#address-catalog-list .catalog-filter-row th { padding-top: 8px; }
#catalog-filter-reset { width: 36px; height: 36px; font-size: 22px; color: var(--muted-foreground); }
.catalog-address-table tbody td { vertical-align: middle; }

/* Compact new-order product cards. */
#manual-delivery-profile .machine-delivery-card { background: #fffaf0; border-color: #e7dfc8; }
#manual-delivery-profile .machine-delivery-card-heading strong { color: #856000; }
.manual-order-line-heading > .manual-line-header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.manual-line-header-actions .field-group { width: 84px; margin: 0; }
.manual-line-header-actions input { width: 100%; }
.new-order-products-column .manual-order-line-controls { display: flex; justify-content: flex-end; padding: 10px 16px; }
.manual-order-line .offline-component-list { display: grid; gap: 6px; margin-top: 0; margin-bottom: 12px; }
.manual-order-line .offline-component-list > span { display: block; border-radius: 0; background: transparent; padding: 3px 0; }
.manual-component-row { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px solid var(--border); color: #555b62; font-size: 11px; }
.manual-component-row:last-child { border-bottom: 0; }
.manual-component-option { width: min(220px, 48%); display: grid; gap: 4px; color: var(--foreground); }
.manual-component-option > span { color: var(--muted-foreground); font-size: 10px; font-weight: 700; }
.manual-component-option select { width: 100%; height: 36px; }
.manual-component-selected { color: var(--muted-foreground); }
@media (max-width: 600px) { .manual-component-row { align-items: stretch; flex-direction: column; } .manual-component-option { width: 100%; } }

.manual-order-line .offline-component-list { padding-top: 12px; align-content: start; }
.manual-order-line-heading .manual-line-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
.manual-line-header-actions .manual-line-amount { display: grid; gap: 6px; min-width: 100px; }
.manual-line-amount > strong { display: flex; align-items: center; min-height: 36px; }
.manual-order-line-heading .money-value { color: inherit; font-size: inherit; }
.manual-order-line-heading .money-affix { font-size: 70%; }
.manual-order-line-heading .money-integer { font-size: 100%; }
.new-order-summary-card { display: grid; gap: 16px; }
#manual-order-total-facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; width: 100%; margin: 0; }
.new-order-summary-card > div:last-child { display: grid; }
#manual-order-suggested-total { margin-top: 3px; font-size: 23px; }
@media (max-width: 700px) { .manual-order-line-heading { flex-wrap: wrap; } .manual-order-line-heading > .manual-line-header-actions { margin-left: auto; } }

.new-order-summary-card { grid-template-columns: minmax(0, 1fr); }
#manual-order-total-facts { gap: 12px; }
#manual-order-total-facts > span { min-width: 0; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: #f7f8fa; color: var(--foreground); }
#manual-order-total-facts strong { flex-wrap: wrap; color: #17191b; }
@media (max-width: 600px) { #manual-order-total-facts { grid-template-columns: 1fr; } }

.new-order-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.new-order-card-heading > button { flex-shrink: 0; }
.new-order-summary-card > div:last-child { justify-items: end; text-align: right; }

/* Reservation list and configurable working calendar. */
.delivery-list-table { min-width: 1180px; }
.delivery-sort-heading { display:inline-flex; align-items:center; gap:2px; }
.delivery-sort-control { display:inline-flex; align-items:center; gap:5px; height:36px; padding:0 8px; border:0; border-radius:999px; background:transparent; color:inherit; font:inherit; font-weight:inherit; letter-spacing:inherit; cursor:pointer; }
.delivery-sort-control:hover,.delivery-sort-control.is-active { background:#eceff2; color:#25282c; }
.delivery-sort-control:focus-visible { outline:2px solid #6b7280; outline-offset:2px; }
.delivery-sort-control span { color:#89919a; font-size:13px; }
.delivery-sort-control.is-active span { color:#25282c; }
.delivery-list-table th:last-child, .delivery-list-table td:last-child:not([colspan]) { min-width: 250px; }
.delivery-list-table td { vertical-align:top; }
.delivery-list-table td:nth-child(2),.delivery-list-table td:nth-child(3) { white-space:normal; min-width:220px; }
.delivery-list-table .table-filter-row input,.delivery-list-table .table-filter-row select { min-width:130px; width:100%; }
.delivery-list-table .table-filter-row input+input { margin-top:6px; }
.delivery-list-actions,.delivery-workdays,.delivery-holiday-add,.delivery-holidays { display:flex; flex-wrap:wrap; gap:12px; }
.delivery-workdays { margin:12px 0 24px; }
.delivery-workdays label { display:flex; gap:8px; align-items:center; }
.delivery-workdays input { width:auto; }
.delivery-holidays { margin:16px 0; }
#delivery-automation-form { max-width:1050px; }
#delivery-cancel-dialog { width:min(540px,calc(100vw - 32px)); }
#delivery-cancel-reason { width:100%; }
.delivery-list-table .table-filter-row input { display:block; }
.delivery-list-table thead { position:sticky; top:0; z-index:4; }
@media (max-width: 600px) {
  .delivery-list-table th:last-child,
  .delivery-list-table td:last-child:not([colspan]) { position:static; box-shadow:none; }
}
.delivery-automation-toggle { display:flex; align-items:center; gap:10px; margin-bottom:24px; }
#delivery-automation-form input[type="checkbox"] { width:18px; height:18px; padding:0; margin:0; box-shadow:none; flex:none; }
.delivery-holiday-add input { width:200px; }

#delivery-holidays { display:block; max-height:380px; overflow:auto; border:1px solid var(--border); border-radius:12px; }
#delivery-holidays thead { position:sticky; top:0; z-index:1; }
#delivery-holidays th { background:#f5f6f7; }
#delivery-holidays td:last-child,#delivery-holidays th:last-child { text-align:right; }
#delivery-holidays > p { padding:12px; }

#delivery-reservations-page .toolbar { flex-wrap:wrap; }

.followup-summary-grid { display:grid; grid-template-columns:repeat(4,minmax(150px,210px)); gap:14px; margin-bottom:18px; }
.followup-summary-card { border:1px solid var(--border); background:#fff; padding:16px 18px; text-align:left; cursor:pointer; border-radius:14px; }
.followup-summary-card span { display:block; color:var(--muted-foreground); font-size:13px; font-weight:700; }
.followup-summary-card strong { display:inline-block; margin-top:8px; font-size:30px; line-height:1; }
.followup-summary-card small { margin-left:5px; color:var(--muted-foreground); }
.followup-list-card { padding:0; overflow:hidden; }
.followup-toolbar { padding:16px; flex-wrap:wrap; border-bottom:1px solid var(--border); }
.followup-toolbar > input { width:min(360px,100%); }
.followup-toolbar label { display:flex; align-items:center; gap:8px; color:var(--muted-foreground); font-size:13px; font-weight:700; }
.followup-toolbar select { min-width:132px; }
.followup-toolbar .order-result-count { margin-left:auto; }
.followup-table td { vertical-align:top; }
.followup-table td .button { height:36px; }
.followup-expiry,.followup-note { display:block; width:max-content; margin-top:6px; padding:3px 8px; border-radius:999px; background:#eef5ff; color:#285a9c; font-size:12px; font-weight:700; }
.followup-expiry.is-urgent { background:#fff4d8; color:#916100; }
.followup-expiry.is-expired { background:#ffe7e7; color:#b42318; }
.followup-note { background:#f1ecff; color:#7047a6; }
.followup-pagination { display:flex; justify-content:center; align-items:center; gap:12px; padding:14px; }
@media (max-width:900px) { .followup-summary-grid { grid-template-columns:repeat(2,minmax(140px,1fr)); } .followup-toolbar .order-result-count { margin-left:0; width:100%; } }
#delivery-reservation-search { flex:1; width:auto; min-width:240px; }
.delivery-date-range { display:flex; align-items:center; gap:8px; }
.delivery-date-range input { width:155px; }
#delivery-automation-form h2 { margin-bottom:5px; }
#delivery-automation-form h2 + p { margin-top:0; }
#delivery-automation-form .field-group > .muted { margin:0; }
#delivery-reschedule-form .field-group + .field-group { margin-top:16px; }
.delivery-booking-date-picker { position: relative; }
.delivery-booking-date-trigger { width: 100%; height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 12px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--foreground); font: inherit; text-align: left; cursor: pointer; }
.delivery-booking-date-trigger:hover,.delivery-booking-date-trigger[aria-expanded="true"] { border-color: #9aa1ab; }
.delivery-booking-date-trigger svg { width: 17px; height: 17px; flex: none; }
.delivery-booking-date-hint { display: block; margin-top: 7px; color: var(--muted-foreground); line-height: 1.45; }
.delivery-booking-calendar { position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; width: min(324px,calc(100vw - 48px)); padding: 14px; border: 1px solid var(--border); border-radius: 14px; background: #fff; box-shadow: 0 18px 45px rgba(20,25,31,.18); }
.delivery-calendar-heading { display: grid; grid-template-columns: 36px 1fr 36px; align-items: center; gap: 8px; margin-bottom: 10px; text-align: center; }
.delivery-calendar-heading strong { font-size: 15px; }
.delivery-calendar-nav { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--foreground); font-size: 25px; line-height: 1; cursor: pointer; }
.delivery-calendar-nav:hover { background: #f0f2f5; }
.delivery-calendar-weekdays,.delivery-calendar-days { display: grid; grid-template-columns: repeat(7,1fr); gap: 4px; }
.delivery-calendar-weekdays { margin-bottom: 4px; color: var(--muted-foreground); font-size: 12px; text-align: center; }
.delivery-calendar-weekdays span { padding: 5px 0; }
.delivery-calendar-day { aspect-ratio: 1; min-width: 0; border: 0; border-radius: 9px; background: transparent; color: var(--foreground); font: inherit; font-size: 13px; cursor: pointer; }
.delivery-calendar-day:hover:not(:disabled) { background: #eef3ff; }
.delivery-calendar-day.is-selected { background: #2878f0; color: #fff; font-weight: 800; }
.delivery-calendar-day:disabled { background: #f3f4f6; color: #b1b6be; cursor: not-allowed; text-decoration: line-through; }
.delivery-calendar-day.is-outside:disabled { background: transparent; color: #d8dbe0; text-decoration: none; }
.delivery-booking-calendar > p { margin: 10px 2px 0; color: var(--muted-foreground); font-size: 11px; }
#delivery-reschedule-dialog .delivery-booking-calendar { position: static; width: 100%; margin-top: 8px; transform: none; }
@media(max-width:520px) { .delivery-booking-calendar { left: 50%; transform: translateX(-50%); } #delivery-reschedule-dialog .delivery-booking-calendar { left: auto; right: auto; transform: none; } }

.order-detail-item-serials { display: grid; gap: 5px; padding: 12px 14px; border-top: 1px solid var(--border); background: #f6f7f8; overflow-wrap: anywhere; }
.order-detail-item-serials > span { color: var(--muted-foreground); font-size: 11px; }
.order-reservation-detail { display: grid; gap: 16px; }
.order-reservation-detail .delivery-detail-overview h3 { margin: 0; }
.order-reservation-accordion details + details { border-top: 1px solid var(--border); }
.order-reservation-accordion summary { display: flex; align-items: center; gap: 10px; padding: 16px 0; cursor: pointer; list-style: none; }
.order-reservation-accordion summary::-webkit-details-marker { display: none; }
.order-reservation-accordion summary > span:first-child { display: grid; gap: 5px; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.order-reservation-accordion summary small { color: var(--muted-foreground); }
.order-reservation-accordion summary::after { content: '⌄'; font-size: 18px; }
.order-reservation-accordion details[open] > summary::after { transform: rotate(180deg); }
.order-reservation-accordion .order-reservation-detail { padding: 4px 0 20px; }

/* Order date range stays beside the main search; display dates independently of browser locale. */
#orders-page .toolbar { flex-wrap: wrap; }
#orders-page .search-wrap { min-width: 220px; }
.order-date-range { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--muted-foreground); }
.order-date-control { position: relative; width: 152px; }
.order-date-control > input { padding-right: 35px; }
.order-date-control > input[aria-invalid="true"] { border-color: #dc2626; }
.order-date-picker { position: absolute; inset: 0 0 0 auto; width: 32px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.order-date-picker svg { width: 16px; height: 16px; }
.order-date-picker input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.order-date-picker input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: auto; height: auto; cursor: pointer; }
.order-date-picker:focus-within { outline: 2px solid #64748b; border-radius: 6px; }
@media (max-width: 600px) {
  #orders-page .search-wrap { flex-basis: 100%; max-width: none; }
  .order-date-range { width: 100%; gap: 6px; }
  .order-date-label { width: 100%; }
  .order-date-control { flex: 1; min-width: 0; width: auto; }
}

#orders-table .orders-table th:last-child,
#orders-table .orders-table td:last-child:not([colspan]) { text-align: center; }
#orders-table .table-actions { justify-content: center; }
.order-detail-reservation-actions { display: flex; justify-content: flex-end; margin-top: 14px; }
#orders-table .table-action { font-size: 14px; font-weight: 700; }
.cancellation-request-button[data-request-status="requested"] { background: #fff4d6; border-color: #f0d58c; color: #885500; }
.cancellation-request-button[data-request-status="requested"]:hover { background: #ffebba; }
.cancellation-request-button[data-request-status="failed"] { background: #fff0ef; border-color: #efc4bf; color: #ae3028; }
.cancellation-request-button[data-request-status="reviewed"] { background: #e7f5ef; border-color: #bce1d2; color: #126346; }


.verification-settings-layout { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; align-items: stretch; margin-bottom: 20px; padding: 20px 0; }
.delivery-sms-settings-layout { grid-template-columns: repeat(2,minmax(0,1fr)); }
.delivery-sms-settings-heading { margin-top: 20px; padding: 18px 22px; border: 1px solid var(--border, #e3e5e9); border-bottom: 0; border-radius: 14px 14px 0 0; background: #fff; }
.delivery-sms-settings-heading h2, .delivery-sms-settings-heading p { margin: 0; }
.delivery-sms-settings-heading + .delivery-sms-settings-layout { margin-top: 0; border-radius: 0 0 14px 14px; }
.delivery-settings-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; align-items: start; }
.delivery-settings-column { min-width: 0; }
.delivery-settings-column > .delivery-form-section { max-width: none; margin: 0; }
.delivery-settings-column-sms .delivery-sms-settings-heading { margin-top: 0; }
.delivery-settings-column-sms .delivery-sms-settings-layout { grid-template-columns: 1fr; }
.delivery-settings-column-sms .delivery-sms-settings-layout > .verification-settings-card + .verification-settings-card { border-left: 0; border-top: 1px solid var(--border, #e3e5e9); }
.delivery-reservation-sms-card .verification-toggle { margin-bottom: 14px; }
.delivery-reservation-sms-card .verification-sms-preview { min-height: 92px; margin: 0; }
.verification-settings-card { padding: 22px; }
.verification-settings-card h2 { margin: 0 0 18px; font-size: 17px; }
.verification-settings-card .field-group { margin-bottom: 18px; }
.verification-toggle { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
.verification-toggle input { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 3px; }
.verification-toggle small { display: block; color: var(--muted-foreground); font-weight: 400; margin-top: 5px; }
.verification-settings-save { grid-column: 1/-1; display: flex; justify-content: flex-end; padding: 0 22px 16px; }
.verification-settings-layout > .verification-settings-card + .verification-settings-card { border-left: 1px solid var(--border, #e3e5e9); }
.verification-settings-layout textarea { min-height: 190px; }
.verification-preview-column .verification-sms-preview { min-height: 190px; margin: 0; }
.verification-sms-preview { white-space: pre-wrap; overflow-wrap: anywhere; padding: 16px; border-radius: 12px; background: #f3f6fa; font: inherit; }
.order-verification-notice { padding: 16px; border: 1px solid #f1d69c; border-radius: 14px; background: #fff8e8; margin-bottom: 14px; }
@media(max-width:1000px) { .verification-settings-layout { grid-template-columns: 1fr; } .verification-settings-layout > .verification-settings-card + .verification-settings-card { border-left: 0; border-top: 1px solid var(--border, #e3e5e9); } }
@media(max-width:1100px) { .delivery-settings-columns { grid-template-columns: 1fr; } }

.verification-preview-column .verification-toggle { margin-top: 20px; margin-bottom: 0; }

.manual-heading-actions { flex-wrap: wrap; justify-content: flex-end; }
.payment-method-row { display: flex; gap: 10px; margin-bottom: 12px; }
.payment-method-row input { flex: 1; min-width: 0; }
.payment-method-row button { flex-shrink: 0; }
@media(max-width:600px) { .new-order-card-heading:has(.manual-heading-actions) { flex-direction: column; align-items: stretch; } }

/* Service termination uses the shared compact modal and pill controls. */
.service-end-impact { display:flex; flex-wrap:wrap; gap:10px 18px; padding:14px; background:#fff2f2; border:1px solid #f3d7d7; border-radius:12px; color:#923232; }
.service-end-confirm { display:flex; align-items:flex-start; gap:10px; line-height:1.6; }
.service-end-confirm input { flex:0 0 auto; width:18px; height:18px; margin-top:3px; }
#service-termination-dialog .button { height:36px; font-weight:700; }
#service-termination-dialog .modal-footer { flex-wrap:wrap; gap:14px; }
#service-termination-dialog .modal-body { overflow-y:auto; }
.profile-service-ended { background:#f6f6f7; border-color:#e1e1e4; }

.deposit-return-actions{display:grid;justify-items:start;gap:4px;min-width:112px}
.deposit-return-actions .button{height:36px;font-size:14px;font-weight:700}
#deposit-return-dialog .button{height:36px;font-size:14px;font-weight:700}
#deposit-return-dialog .modal-header>div{min-width:0}
#deposit-return-dialog .modal-header>.button{flex-shrink:0}
#deposit-return-dialog .field-group input{height:36px;border-radius:8px}
#deposit-return-dialog .field-group{min-width:0}
#deposit-return-dialog .modal-footer{gap:8px}
.deposit-return-amount{display:flex;align-items:center;min-height:36px;font-size:20px;font-weight:800}
#deposit-return-summary{display:grid;gap:6px;overflow-wrap:anywhere}
#deposit-return-summary p{margin:0}
@media(max-width:560px){#deposit-return-dialog .form-grid{grid-template-columns:1fr}#deposit-return-dialog .form-span{grid-column:1}#deposit-return-dialog .modal-footer{display:grid;grid-template-columns:1fr;gap:14px}#deposit-return-dialog .modal-footer .button{width:100%}}
/* Completed delivery adjustments retain the compact Dashboard control rhythm. */
.delivery-adjust-dialog { width: min(620px, calc(100vw - 24px)); }
.delivery-adjust-dialog .modal-header h2 { min-width: 0; }
.delivery-adjust-dialog .modal-header .button { flex-shrink: 0; }
.delivery-adjust-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.delivery-adjust-summary > span { color: var(--text-muted, #717784); }
.delivery-adjust-items { margin: 12px 0; border: 1px solid var(--border, #e1e5eb); border-radius: 8px; overflow: hidden; }
.delivery-adjust-items > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; }
.delivery-adjust-items > div + div { border-top: 1px solid var(--border, #e1e5eb); }
.delivery-adjust-items > div > span { overflow-wrap: anywhere; }
.delivery-adjust-items strong { color: #b42318; white-space: nowrap; }
.delivery-adjust-dialog .modal-footer { gap: 14px; }
.delivery-detail-status[data-status="adjusted"] { background: #fff0db; color: #92530b; }
@media (max-width: 560px) {
  .delivery-adjust-dialog .modal-footer { flex-direction: column; align-items: stretch; }
  .delivery-adjust-dialog .modal-footer .button { width: 100%; height: 36px; min-height: 36px; flex: 0 0 36px; }
}

/* Customer-service attachment and SN corrections follow the compact control rhythm. */
.profile-serial-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}
.profile-serial-heading .icon-button{width:28px;height:28px;flex:0 0 28px;background:#fff}
.profile-serial-heading>span{margin:0}
.deposit-receipt-pdf-tile{display:flex;align-items:center;justify-content:center;gap:8px;min-height:90px;background:#f5f6f8;border-radius:8px;color:#222;text-decoration:none}
#deposit-receipt-pdf-preview{width:100%;height:min(58vh,620px);min-height:240px;border:1px solid #e1e4e8;border-radius:8px;background:#fff}
#deposit-receipt-file-open{align-self:flex-start}
#cancel-order-dialog .modal-footer{flex-wrap:wrap;gap:8px}
