:root {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  color: #172321;
  background: #f4f6f3;
  font-synthesis: none;
  --green: #18544c;
  --green-2: #267267;
  --green-soft: #e9f2ef;
  --rose: #a95768;
  --rose-soft: #f7e9ec;
  --gold: #977327;
  --gold-soft: #f6f0df;
  --red: #b44646;
  --red-soft: #f9e8e6;
  --ink: #172321;
  --muted: #697572;
  --line: #dce2de;
  --surface: #fff;
  --sidebar: #153f3a;
}
* {
  box-sizing: border-box;
}
html,
body,
#root {
  margin: 0;
  min-height: 100%;
  min-width: 320px;
}
body {
  min-height: 100vh;
}
button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
svg {
  flex: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
small {
  display: block;
}
input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cfd8d3;
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  outline: none;
}
textarea {
  resize: vertical;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--green-2);
  box-shadow: 0 0 0 3px #2672671c;
}
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  color: #384441;
}
label em {
  font-style: normal;
  color: var(--red);
}
.muted {
  color: var(--muted);
}
.center {
  text-align: center;
}
.screen-center {
  height: 100vh;
  display: grid;
  place-items: center;
}
.spin {
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.app-shell {
  min-height: 100vh;
  display: flex;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 232px;
  z-index: 40;
  background: var(--sidebar);
  color: #fff;
  padding: 20px 14px calc(16px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
}
.brand,
.login-brand,
.login-mobile-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}
.brand {
  height: 58px;
  padding: 0 10px 18px;
  border-bottom: 1px solid #ffffff18;
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: #d7b7a4;
  color: #4b2c23;
  border-radius: 50%;
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 21px;
}
.brand strong,
.login-brand strong {
  display: block;
  font-size: 17px;
}
.brand small,
.login-brand small {
  margin-top: 2px;
  color: #bdd0cb;
  font-size: 11px;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 18px;
}
.nav-item {
  min-height: 48px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 6px;
  color: #c8d8d4;
  font-size: 14px;
  font-weight: 600;
}
.nav-item:hover {
  background: #ffffff0c;
}
.nav-item.active {
  background: #fff;
  color: var(--sidebar);
}
.nav-chevron {
  margin-left: auto;
  opacity: 0.45;
}
.sidebar-footer {
  margin-top: auto;
  padding: 16px 8px 0;
  border-top: 1px solid #ffffff18;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-footer > span:nth-child(2) {
  min-width: 0;
  flex: 1;
}
.sidebar-footer strong {
  display: block;
  font-size: 13px;
}
.sidebar-footer small {
  color: #a9c0ba;
  font-size: 11px;
  margin-top: 2px;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #dceae6;
  color: var(--green);
  font-weight: 700;
}
.icon-btn {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  display: inline-grid;
  place-items: center;
}
.icon-btn svg {
  width: 20px;
}
.icon-btn:hover {
  background: #0000000a;
}
.sidebar-close,
.menu-trigger {
  display: none;
}
.drawer-mask {
  display: none;
}
.workspace {
  margin-left: 232px;
  width: calc(100% - 232px);
  min-height: 100vh;
}
.topbar {
  height: 86px;
  padding: calc(14px + env(safe-area-inset-top)) 28px 14px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
}
.topbar h1 {
  font-size: 20px;
  line-height: 1.25;
}
.eyebrow {
  text-transform: uppercase;
  color: var(--green-2);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.eyebrow.light {
  color: #bcd3cd;
}
.topbar-date {
  margin-left: auto;
  font-size: 13px;
  color: var(--muted);
}
.page {
  padding: 26px 28px 60px;
  max-width: 1500px;
  margin: 0 auto;
}
.page-heading {
  min-height: 56px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.page-heading h2 {
  font-size: 25px;
  letter-spacing: 0;
}
.page-heading p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 5px;
}
.page-actions,
.quick-actions,
.dropdown-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.btn {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.btn svg {
  width: 18px;
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.btn-primary {
  background: var(--green);
  color: #fff;
}
.btn-primary:hover {
  background: #10443e;
}
.btn-secondary {
  border-color: #a9bbb6;
  background: #fff;
  color: var(--green);
}
.btn-quiet {
  background: transparent;
  color: #50605c;
  border-color: var(--line);
}
.btn-block {
  width: 100%;
}
.text-link {
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.section-head {
  min-height: 68px;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #e7ebe8;
}
.section-head h3 {
  font-size: 16px;
}
.section-head p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.empty {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #7a8582;
  padding: 32px;
}
.empty strong {
  color: #43504d;
  margin-top: 10px;
}
.empty p {
  font-size: 13px;
  margin: 6px 0 16px;
}
.loading {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
}
.quick-actions {
  justify-content: flex-end;
  margin-top: -76px;
  margin-bottom: 25px;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.stat-card {
  min-height: 126px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
}
.stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 7px;
  display: grid;
  place-items: center;
}
.stat-icon svg {
  width: 21px;
}
.stat-icon.green {
  background: var(--green-soft);
  color: var(--green);
}
.stat-icon.rose {
  background: var(--rose-soft);
  color: var(--rose);
}
.stat-icon.gold {
  background: var(--gold-soft);
  color: var(--gold);
}
.stat-icon.red {
  background: var(--red-soft);
  color: var(--red);
}
.stat-card > div {
  display: flex;
  flex-direction: column;
}
.stat-card span {
  font-size: 12px;
  color: var(--muted);
}
.stat-card strong {
  font-size: 25px;
  margin: 6px 0 3px;
}
.stat-card small {
  font-size: 11px;
  color: #8a9491;
}
.dashboard-grid,
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 14px;
  margin-top: 14px;
}
.list-stack {
  padding: 4px 14px;
}
.list-row {
  min-height: 66px;
  border-bottom: 1px solid #edf0ee;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 4px;
}
.list-row:last-child {
  border: 0;
}
.customer-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 800;
}
.customer-avatar.soft {
  background: var(--rose-soft);
  color: var(--rose);
}
.list-main {
  min-width: 0;
  flex: 1;
}
.list-main strong,
.list-main small {
  display: block;
}
.list-main strong {
  font-size: 14px;
}
.list-main small,
.list-side small {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.list-side {
  text-align: right;
}
.list-side strong {
  font-size: 14px;
}
.notice-strip {
  margin-top: 14px;
  padding: 15px 18px;
  background: var(--gold-soft);
  border: 1px solid #e5d7ad;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: #725716;
}
.notice-strip > span {
  flex: 1;
}
.notice-strip strong,
.notice-strip small {
  display: block;
}
.notice-strip small {
  margin-top: 4px;
  color: #856d31;
}
.status {
  display: inline-flex;
  min-height: 25px;
  padding: 3px 8px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  background: #eef1ef;
  color: #5d6865;
}
.status-active,
.status-confirmed,
.status-completed,
.status-paid,
.status-arrived,
.status-done {
  background: var(--green-soft);
  color: var(--green);
}
.status-inactive,
.status-voided,
.status-cancelled,
.status-no_show {
  background: #eee;
  color: #6f7473;
}
.status-unpaid,
.status-pending,
.status-warning {
  background: var(--gold-soft);
  color: #7f611f;
}
.status-partial {
  background: #e8f0f7;
  color: #315f86;
}
.status-wechat {
  background: #e7f4e9;
  color: #318340;
}
.status-alipay {
  background: #e7f0fb;
  color: #1677c8;
}
.status-cash {
  background: #f5eddf;
  color: #856220;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.search-box {
  height: 46px;
  max-width: 440px;
  flex: 1;
  background: #fff;
  border: 1px solid #cfd8d3;
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 8px;
  color: #78837f;
}
.search-box input {
  border: 0;
  box-shadow: none;
  padding: 0;
  min-height: 42px;
}
.search-box.compact {
  max-width: 250px;
}
.toolbar-select {
  width: 180px;
}
.segmented {
  min-height: 44px;
  background: #e9eeeb;
  border-radius: 6px;
  padding: 3px;
  display: flex;
  align-items: center;
}
.segmented button {
  min-height: 38px;
  padding: 0 15px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #64706d;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 7px;
}
.segmented button svg {
  width: 17px;
}
.segmented button.active {
  background: #fff;
  color: var(--green);
  box-shadow: 0 1px 3px #132a2420;
}
.segmented.full button {
  flex: 1;
}
.table-panel {
  overflow: hidden;
}
.table {
  width: 100%;
}
.table-head,
.table-row {
  display: grid;
  align-items: center;
  gap: 15px;
  padding: 0 18px;
}
.table-head {
  height: 44px;
  background: #f8faf8;
  color: #75807d;
  font-size: 11px;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
}
.table-row {
  min-height: 74px;
  border-bottom: 1px solid #edf0ee;
  font-size: 13px;
}
.table-row:last-child {
  border-bottom: 0;
}
.table-row:hover {
  background: #fbfcfb;
}
.table-row > span {
  min-width: 0;
}
.table-row span > strong,
.table-row span > small {
  display: block;
}
.table-row small {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.customer-table .table-head,
.customer-table .table-row {
  grid-template-columns: 1.5fr 0.9fr 0.8fr 0.7fr 0.5fr 24px;
}
.person-cell {
  display: flex !important;
  align-items: center;
  gap: 11px;
}
.photo-count {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #52615d;
}
.table-footer {
  min-height: 46px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  background: #fafbfa;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.orders-table .table-head,
.orders-table .table-row {
  grid-template-columns: 1.2fr 1.5fr 0.7fr 0.8fr 0.8fr 24px;
}
.order-mini-table .table-row {
  grid-template-columns: 1fr 1.5fr 0.7fr 0.6fr;
}
.product-table .table-head,
.product-table .table-row {
  grid-template-columns: 1.4fr 1fr 0.7fr 0.7fr 0.7fr 0.6fr 72px;
}
.row-actions,
.record-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.stock-doc-table .table-row {
  grid-template-columns: 1fr 0.6fr 1.5fr 0.6fr;
}
.stock-ledger-table .table-row {
  grid-template-columns: 1.2fr 0.8fr 0.5fr 0.7fr 1.2fr;
}
.product-thumb {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: #edf2ef;
  color: #60706b;
  display: grid;
  place-items: center;
}
.product-thumb svg {
  width: 20px;
}
.stock-low,
.stock-out {
  color: var(--red);
}
.stock-in {
  color: var(--green);
}
.ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.form-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-section {
  padding-bottom: 18px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px 18px;
  padding: 18px;
}
.span-2 {
  grid-column: span 2;
}
.span-full {
  grid-column: 1/-1;
}
.sticky-actions {
  position: sticky;
  bottom: 12px;
  grid-column: 1/-1;
  min-height: 64px;
  background: #fffffff2;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  z-index: 10;
  box-shadow: 0 4px 18px #253b3514;
}
.form-error,
.form-success {
  padding: 11px 13px;
  border-radius: 6px;
  font-size: 13px;
  margin: 0 18px 12px;
}
.form-error {
  background: var(--red-soft);
  color: #973838;
  border: 1px solid #ebc4c0;
}
.form-success {
  background: var(--green-soft);
  color: var(--green);
  border: 1px solid #c8ded8;
}
.customer-summary {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 18px 22px;
  gap: 18px;
}
.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--rose-soft);
  color: var(--rose);
  font-size: 23px;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.profile-main {
  flex: 1;
}
.profile-main > div {
  display: flex;
  align-items: center;
  gap: 9px;
}
.profile-main h3 {
  font-size: 20px;
}
.profile-main p {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  margin-top: 8px;
}
.profile-main p svg {
  width: 14px;
}
.summary-metric {
  min-width: 105px;
  border-left: 1px solid var(--line);
  padding-left: 20px;
}
.summary-metric span {
  font-size: 11px;
  color: var(--muted);
}
.summary-metric strong {
  display: block;
  font-size: 19px;
  margin-top: 5px;
}
.baseline-prompt {
  margin-top: 14px;
  border: 1px solid #d7c99e;
  background: var(--gold-soft);
  border-radius: 8px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.baseline-prompt > div {
  flex: 1;
}
.baseline-prompt p {
  font-size: 12px;
  color: #76622c;
  margin-top: 4px;
}
.tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 20px 0 14px;
  border-bottom: 1px solid var(--line);
}
.tabs button {
  min-height: 45px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #687470;
  font-weight: 700;
}
.tabs button svg {
  width: 17px;
}
.tabs button.active {
  color: var(--green);
  border-color: var(--green);
}
.detail-grid > .panel {
  min-width: 0;
}
.info-list {
  padding: 10px 18px;
  margin: 0;
}
.info-list > div {
  min-height: 47px;
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: center;
  border-bottom: 1px solid #edf0ee;
  font-size: 13px;
}
.info-list dt {
  color: var(--muted);
}
.info-list dd {
  margin: 0;
  font-weight: 600;
}
.care-notes {
  padding: 12px 18px;
}
.care-notes article {
  padding: 11px 0;
  border-bottom: 1px solid #edf0ee;
}
.care-notes article:last-child {
  border: 0;
}
.care-notes strong {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}
.care-notes strong svg {
  width: 16px;
}
.care-notes p {
  font-size: 13px;
  color: #56635f;
  line-height: 1.6;
  margin-top: 5px;
}
.care-notes .warning-note {
  background: var(--red-soft);
  margin: 4px -8px;
  padding: 10px 8px;
  border: 0;
  border-radius: 6px;
}
.simple-record {
  min-height: 58px;
  padding: 9px 18px;
  border-bottom: 1px solid #edf0ee;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.simple-record span {
  color: var(--muted);
}
.photo-toolbar {
  min-height: 60px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.photo-toolbar > div {
  display: flex;
  align-items: center;
  gap: 12px;
}
.photo-toolbar > div:first-child {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.photo-toolbar span {
  font-size: 12px;
  color: var(--muted);
}
.selection-tip {
  white-space: nowrap;
}
.timeline {
  position: relative;
}
.timeline:before {
  content: "";
  position: absolute;
  left: 7px;
  top: 10px;
  bottom: 0;
  width: 1px;
  background: #cfd9d5;
}
.timeline-group {
  display: grid;
  grid-template-columns: 125px 1fr;
  gap: 18px;
  margin-bottom: 24px;
}
.timeline-date {
  position: relative;
  padding: 2px 0 0 25px;
  font-size: 12px;
  font-weight: 700;
  color: #52615d;
}
.timeline-date > span {
  position: absolute;
  left: 2px;
  top: 6px;
  width: 11px;
  height: 11px;
  background: var(--green);
  border: 3px solid #dceae6;
  border-radius: 50%;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.photo-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0;
  text-align: left;
  overflow: hidden;
  color: inherit;
}
.photo-card-select {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}
.photo-delete {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  width: 32px;
  height: 32px;
  background: #ffffffde;
}
.photo-delete:hover {
  background: #fff;
}
.photo-card.selected {
  border-color: var(--green);
  box-shadow: 0 0 0 2px #26726722;
}
.photo-frame {
  position: relative;
  aspect-ratio: 4/3;
  background: #e8ece9;
  overflow: hidden;
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-placeholder {
  width: 100%;
  height: 100%;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #82908c;
  background: #e6ebe8;
}
.photo-check {
  position: absolute;
  right: 9px;
  top: 9px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffffffde;
  color: #62706c;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}
.photo-check svg {
  width: 15px;
}
.selected .photo-check {
  background: var(--green);
  color: #fff;
}
.baseline-tag {
  position: absolute;
  left: 8px;
  bottom: 8px;
  background: #71551cd9;
  color: #fff;
  padding: 4px 7px;
  border-radius: 4px;
  font-size: 10px;
}
.photo-meta {
  padding: 11px;
}
.photo-meta strong,
.photo-meta small {
  display: block;
}
.photo-meta strong {
  font-size: 13px;
}
.photo-meta small {
  margin-top: 4px;
  font-size: 10px;
  color: var(--muted);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.modal-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  background: #101b18a8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal {
  width: min(760px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 20px 60px #0e1e1a44;
}
.small-modal {
  width: min(600px, 100%);
}
.modal-head {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 76px;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.modal-head h3 {
  font-size: 18px;
}
.modal-head p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.upload-body {
  padding: 18px;
}
.camera-drop {
  width: 100%;
  min-height: 225px;
  border: 1px dashed #9eb4ad;
  border-radius: 8px;
  background: #f3f7f5;
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
}
.camera-drop span {
  font-size: 12px;
  color: var(--muted);
}
.upload-previews {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 8px;
}
.upload-previews img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 5px;
}
.upload-body .form-grid {
  padding: 18px 0 0;
}
.consent-check {
  min-height: 64px;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 10px 12px;
  background: var(--gold-soft);
  border: 1px solid #e3d5ac;
  border-radius: 6px;
}
.consent-check input {
  width: 22px;
  min-height: 22px;
}
.consent-check span {
  flex: 1;
}
.consent-check small {
  margin-top: 3px;
  font-weight: 400;
  color: #725f2b;
}
.modal-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  min-height: 68px;
  background: #fff;
  padding: 11px 18px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--line);
}
.modal-form {
  padding: 20px;
}
.modal form > .form-error {
  margin-bottom: 0;
}
.compare-screen {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: #111614;
  color: #fff;
  display: flex;
  flex-direction: column;
}
.compare-screen header {
  min-height: 72px;
  padding: 10px max(16px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ffffff1e;
}
.inverse {
  border-color: #ffffff30;
  color: #fff;
}
.segmented.dark {
  background: #ffffff16;
}
.segmented.dark button {
  color: #c9d0ce;
}
.segmented.dark button.active {
  background: #fff;
  color: #172321;
}
.compare-tools {
  display: flex;
}
.compare-tools .icon-btn {
  color: #fff;
}
.compare-stage {
  flex: 1;
  min-height: 0;
  display: flex;
}
.compare-pane {
  width: 50%;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #ffffff20;
}
.compare-image {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #0a0d0c;
}
.compare-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.18s;
}
.compare-caption {
  min-height: 64px;
  padding: 10px 18px;
  background: #19201e;
}
.compare-caption strong,
.compare-caption span {
  display: block;
}
.compare-caption span {
  font-size: 11px;
  color: #abb5b2;
  margin-top: 4px;
}
.slider-compare {
  position: relative;
  flex: 1;
  overflow: hidden;
}
.slider-compare .compare-image {
  position: absolute;
  inset: 0;
}
.slider-compare input {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
}
.slider-line {
  position: absolute;
  z-index: 4;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #fff;
  box-shadow: 0 0 4px #000;
}
.slider-line:after {
  content: "↔";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  color: #222;
  display: grid;
  place-items: center;
  font-size: 20px;
}
.compare-label {
  position: absolute;
  z-index: 4;
  top: 16px;
  padding: 6px 10px;
  border-radius: 4px;
  background: #111b;
  color: #fff;
  font-size: 12px;
}
.compare-label.before {
  left: 16px;
}
.compare-label.after {
  right: 16px;
}
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(360px, 0.7fr);
  gap: 14px;
  align-items: start;
}
.catalog-panel,
.cart-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.checkout-customer {
  min-height: 78px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 16px;
}
.checkout-customer label {
  flex: 1;
  display: grid;
  grid-template-columns: 20px 90px 1fr;
  align-items: center;
}
.checkout-customer > span {
  font-size: 11px;
  color: var(--muted);
}
.checkout-care-record {
  border-bottom: 1px solid var(--line);
  background: #fbfdfb;
}
.checkout-record-head {
  min-height: 62px;
  padding: 13px 16px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.checkout-record-head.compact {
  padding-top: 8px;
}
.checkout-record-head h3 {
  font-size: 15px;
}
.checkout-record-head h3 small {
  display: inline;
  margin-left: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}
.checkout-record-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}
.checkout-record-head > svg {
  width: 20px;
  color: var(--green);
}
.checkout-care-grid,
.checkout-photo-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 4px 16px 14px;
}
.checkout-care-grid .span-2,
.checkout-photo-fields .span-2 {
  grid-column: span 2;
}
.checkout-care-grid textarea {
  min-height: 78px;
}
.checkout-photo-record {
  border-top: 1px solid var(--line);
}
.checkout-photo-previews {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 0 16px 10px;
}
.checkout-photo-preview {
  position: relative;
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #e8ece9;
}
.checkout-photo-preview img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  display: block;
  object-fit: cover;
}
.checkout-photo-preview .icon-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 30px;
  height: 30px;
  background: #ffffffde;
}
.checkout-photo-preview-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-top: 6px;
}
.checkout-photo-preview-fields select,
.checkout-photo-preview-fields input {
  width: 100%;
  min-width: 0;
  min-height: 32px;
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  font-size: 11px;
}
.checkout-photo-preview-fields input {
  grid-column: 1 / -1;
}
.checkout-photo-fields {
  padding-top: 2px;
  padding-bottom: 10px;
}
.checkout-consent {
  margin: 0 16px 14px;
}
.catalog-head {
  position: relative;
  z-index: 12;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}
.catalog-search {
  position: relative;
}
.catalog-search-options {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  width: min(430px, calc(100vw - 32px));
  max-height: 350px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid #cbd6d1;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 12px 32px #19332c24;
}
.catalog-search-options button {
  width: 100%;
  min-height: 60px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: inherit;
  text-align: left;
}
.catalog-search-options button:hover,
.catalog-search-options button.active {
  background: var(--green-soft);
}
.catalog-search-options button:disabled {
  opacity: 0.45;
}
.catalog-search-options .catalog-icon {
  width: 36px;
  height: 36px;
}
.catalog-search-options button > span:nth-child(2) {
  min-width: 0;
}
.catalog-search-options strong,
.catalog-search-options small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.catalog-search-options strong {
  font-size: 13px;
}
.catalog-search-options small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}
.catalog-search-options b {
  color: var(--green);
  font-size: 12px;
}
.catalog-search-empty {
  padding: 22px 12px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
}
.catalog-item {
  min-height: 83px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: inherit;
  padding: 12px;
  display: grid;
  grid-template-columns: 42px 1fr auto 18px;
  align-items: center;
  text-align: left;
  gap: 10px;
}
.catalog-item:hover {
  border-color: #9fb8b1;
  background: #fbfdfc;
}
.catalog-item > span:nth-child(2) {
  min-width: 0;
}
.catalog-item strong,
.catalog-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.catalog-item small {
  color: var(--muted);
  font-size: 11px;
  margin-top: 5px;
}
.catalog-item b {
  font-size: 13px;
  color: var(--green);
}
.catalog-item > svg {
  width: 16px;
  color: var(--green);
}
.catalog-icon {
  width: 42px;
  height: 42px;
  border-radius: 7px;
  display: grid;
  place-items: center;
}
.catalog-icon.service {
  background: var(--rose-soft);
  color: var(--rose);
}
.catalog-icon.product {
  background: var(--green-soft);
  color: var(--green);
}
.cart-panel {
  position: sticky;
  top: 100px;
}
.cart-items {
  min-height: 140px;
  max-height: 300px;
  overflow: auto;
  padding: 0 14px;
}
.cart-item {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #edf0ee;
}
.mini-type {
  width: 26px;
  height: 26px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
}
.mini-type.service {
  background: var(--rose-soft);
  color: var(--rose);
}
.mini-type.product {
  background: var(--green-soft);
  color: var(--green);
}
.cart-main {
  min-width: 0;
  flex: 1;
}
.cart-main strong,
.cart-main small {
  display: block;
}
.cart-main strong {
  font-size: 12px;
}
.cart-main small {
  font-size: 10px;
  color: var(--muted);
}
.stepper {
  height: 34px;
  display: flex;
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
}
.stepper button {
  width: 30px;
  border: 0;
  background: #f6f8f6;
  display: grid;
  place-items: center;
}
.stepper button svg {
  width: 13px;
}
.stepper span {
  width: 28px;
  display: grid;
  place-items: center;
  font-size: 12px;
}
.icon-btn.danger {
  color: var(--red);
  width: 34px;
}
.checkout-totals {
  padding: 11px 16px;
  border-top: 1px solid var(--line);
}
.checkout-totals > div,
.checkout-totals > label {
  min-height: 34px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}
.checkout-totals .total-due {
  font-size: 18px;
  border-top: 1px dashed #cfd8d3;
  margin-top: 6px;
  padding-top: 10px;
}
.money-input {
  width: 110px;
  height: 38px;
  border: 1px solid #cfd8d3;
  border-radius: 5px;
  display: flex;
  align-items: center;
  padding-left: 9px;
}
.money-input input {
  border: 0;
  min-height: 34px;
  padding: 4px;
}
.payment-box {
  padding: 13px 16px;
  background: #f7f9f7;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.payment-box > span {
  font-size: 12px;
  font-weight: 700;
}
.payment-methods {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.payment-methods button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  position: relative;
}
.payment-methods button svg {
  width: 13px;
  position: absolute;
  right: 3px;
  top: 3px;
}
.payment-methods button.active {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green);
  font-weight: 700;
}
.paid-field {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: space-between;
}
.checkout-submit {
  border-radius: 0 0 7px 7px;
  min-height: 55px;
}
.order-extra-grid {
  margin-top: 14px;
}
.order-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 18px 18px;
}
.order-photo-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}
.order-photo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #e8ece9;
}
.order-photo-card span {
  display: block;
  padding: 7px 8px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.receipt-items {
  padding: 5px 18px;
}
.receipt-items > div {
  min-height: 65px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #edf0ee;
}
.receipt-items > div > span:nth-child(2) {
  flex: 1;
}
.receipt-items strong,
.receipt-items small {
  display: block;
}
.receipt-items small {
  color: var(--muted);
  font-size: 11px;
  margin-top: 4px;
}
.receipt-summary dl {
  padding: 10px 18px;
  margin: 0;
}
.receipt-summary dl > div {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}
.receipt-summary dt {
  color: var(--muted);
}
.receipt-summary dd {
  margin: 0;
  font-weight: 700;
}
.receipt-summary .receipt-total {
  font-size: 17px;
  border-top: 1px dashed var(--line);
  margin-top: 5px;
}
.receipt-note {
  margin: 0 18px 18px;
  padding: 10px;
  background: #f5f7f5;
  font-size: 12px;
  color: var(--muted);
  border-radius: 5px;
}
.btn-danger {
  color: var(--red);
  background: #fff;
  border-color: #e6c8c8;
}
.btn-danger:hover {
  background: #fff5f5;
  border-color: var(--red);
}
.customer-delete-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}
.photo-frame img {
  cursor: zoom-in;
}
.photo-preview-backdrop {
  z-index: 120;
  background: rgba(11, 28, 27, 0.82);
  padding: max(24px, env(safe-area-inset-top))
    max(24px, env(safe-area-inset-right))
    max(24px, env(safe-area-inset-bottom))
    max(24px, env(safe-area-inset-left));
}
.photo-preview-modal {
  box-sizing: border-box;
  position: relative;
  display: grid;
  place-items: center;
  max-width: min(92vw, 1100px);
  max-height: calc(100dvh - 48px);
  overflow: auto;
  padding: 20px;
  border-radius: 10px;
  background: #102f2c;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}
.photo-preview-modal img {
  display: block;
  max-width: min(86vw, 1000px);
  max-height: calc(100dvh - 140px);
  object-fit: contain;
  border-radius: 6px;
}
.photo-preview-modal p {
  margin: 12px 0 0;
  color: #fff;
  font-size: 14px;
}
.photo-preview-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  color: #fff;
  background: rgba(0, 0, 0, 0.42);
  border-color: transparent;
}
.upload-source-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 14px;
}
.upload-preview {
  position: relative;
}
.upload-preview .icon-btn {
  position: absolute;
  top: 6px;
  right: 6px;
}
.upload-preview-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin-top: 8px;
}
.upload-preview-fields select,
.upload-preview-fields input {
  min-width: 0;
  width: 100%;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-size: 12px;
}
.upload-add-photo {
  min-height: 150px;
  border: 1px dashed #86a89e;
  border-radius: 6px;
  background: #e7f1ed;
  color: var(--green);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}
.upload-add-photo svg {
  width: 28px;
  height: 28px;
}
.service-list {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.service-row {
  min-height: 82px;
  padding: 12px 18px;
  display: grid;
  grid-template-columns: 44px 1fr 1.5fr 0.5fr 0.4fr 72px;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid #edf0ee;
}
.service-row:last-child {
  border: 0;
}
.service-symbol {
  width: 42px;
  height: 42px;
  border-radius: 7px;
  background: var(--rose-soft);
  color: var(--rose);
  display: grid;
  place-items: center;
}
.service-row strong {
  font-size: 14px;
}
.service-row small {
  display: flex;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
  margin-top: 5px;
}
.service-row small svg {
  width: 13px;
}
.service-row p {
  font-size: 12px;
  color: var(--muted);
}
.schedule-board {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 420px;
}
.schedule-title {
  height: 74px;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--green);
}
.schedule-title > div {
  color: var(--ink);
}
.schedule-title small {
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}
.appointment-list {
  padding: 10px 20px;
}
.appointment-list article {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.appointment-list time {
  width: 92px;
  font-weight: 800;
  font-size: 14px;
}
.schedule-line {
  height: 74px;
  width: 1px;
  background: #d4ddda;
  position: relative;
}
.schedule-line:before {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  background: var(--green);
  border: 2px solid #dceae6;
  border-radius: 50%;
  left: -4px;
  top: 32px;
}
.appointment-list article > div {
  flex: 1;
}
.appointment-list article > div strong,
.appointment-list article > div small {
  display: block;
}
.appointment-list article > div small {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.followup-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.followup-columns > section {
  min-width: 0;
}
.column-title {
  height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.column-title > span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.column-title small {
  font-size: 11px;
  color: var(--muted);
}
.followup-card {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 7px;
  padding: 15px;
  margin-bottom: 10px;
}
.followup-card.done {
  border-left-color: var(--green);
}
.followup-card > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.followup-card > div > span:nth-child(2) {
  flex: 1;
}
.followup-card strong,
.followup-card small {
  display: block;
}
.followup-card small {
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}
.followup-card p {
  font-size: 12px;
  color: #56635f;
  line-height: 1.5;
  padding: 12px 0;
}
.followup-card > .record-actions {
  justify-content: space-between;
}
.report-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
}
.report-kpis article {
  padding: 20px;
  border-right: 1px solid var(--line);
}
.report-kpis article:last-child {
  border: 0;
}
.report-kpis span,
.report-kpis small {
  font-size: 11px;
  color: var(--muted);
}
.report-kpis strong {
  display: block;
  font-size: 24px;
  margin: 7px 0;
}
.bar-chart {
  padding: 20px;
}
.bar-chart > div {
  min-height: 48px;
  display: grid;
  grid-template-columns: 60px 1fr 90px;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.bar-chart > div > div {
  height: 9px;
  background: #edf1ee;
  border-radius: 5px;
  overflow: hidden;
}
.bar-chart i {
  height: 100%;
  background: var(--green-2);
  display: block;
  border-radius: 5px;
}
.bar-chart strong {
  text-align: right;
}
.settings-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 720px);
  gap: 20px;
}
.settings-layout > nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.settings-layout > nav a {
  min-height: 46px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.settings-layout > nav a.active {
  background: #fff;
  color: var(--green);
  border: 1px solid var(--line);
}
.settings-layout > nav svg {
  width: 18px;
}
.settings-layout > div {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.inline-actions {
  padding: 0 18px;
  text-align: right;
}
.data-actions {
  padding: 6px 18px;
}
.data-actions > div {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #edf0ee;
}
.data-actions > div > span {
  flex: 1;
}
.data-actions strong,
.data-actions small {
  display: block;
}
.data-actions small {
  color: var(--muted);
  font-size: 11px;
  margin-top: 4px;
}
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(380px, 0.9fr) minmax(480px, 1.1fr);
}
.login-intro {
  padding: calc(38px + env(safe-area-inset-top)) 52px
    calc(36px + env(safe-area-inset-bottom));
  background: #153f3a;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}
.login-intro:after {
  content: "";
  position: absolute;
  right: 48px;
  bottom: 110px;
  width: 120px;
  height: 1px;
  background: #d9b9a4;
  box-shadow:
    0 8px 0 #ffffff2b,
    0 16px 0 #ffffff16;
}
.login-intro h1 {
  font-size: 43px;
  line-height: 1.22;
  font-family: Georgia, "Songti SC", serif;
  font-weight: 500;
  margin: 15px 0;
}
.login-intro p {
  max-width: 410px;
  color: #c8d8d4;
  line-height: 1.8;
  font-size: 14px;
}
.login-intro > small {
  color: #9eb9b2;
}
.login-panel {
  display: grid;
  place-items: center;
  padding: 32px;
  background: #f7f8f6;
}
.login-form {
  width: min(400px, 100%);
}
.login-form h2 {
  font-size: 28px;
  margin: 10px 0 4px;
}
.login-form > p {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 30px;
}
.login-form > label {
  margin-bottom: 17px;
}
.input-with-icon {
  height: 50px;
  border: 1px solid #cfd8d3;
  border-radius: 6px;
  background: #fff;
  display: flex;
  align-items: center;
  padding-left: 13px;
  color: #82908c;
}
.input-with-icon > svg {
  width: 19px;
}
.input-with-icon input {
  border: 0;
  box-shadow: none;
  min-height: 46px;
}
.login-form .btn-block {
  min-height: 50px;
  margin-top: 6px;
}
.login-form > .muted {
  margin-top: 16px;
  font-size: 11px;
}
.login-mobile-brand {
  display: none;
}
@media (max-width: 1100px) {
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .photo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .catalog-grid {
    grid-template-columns: 1fr;
  }
  .checkout-layout {
    grid-template-columns: minmax(0, 1.2fr) 380px;
  }
  .customer-table .table-head,
  .customer-table .table-row {
    grid-template-columns: 1.4fr 0.8fr 0.7fr 0.6fr 24px;
  }
  .customer-table .table-head > span:nth-child(2),
  .customer-table .table-row > span:nth-child(2) {
    display: none;
  }
  .orders-table .table-head,
  .orders-table .table-row {
    grid-template-columns: 1.2fr 1.2fr 0.7fr 0.7fr 24px;
  }
  .orders-table .table-head > span:nth-child(5),
  .orders-table .table-row > span:nth-child(5) {
    display: none;
  }
}
@media (max-width: 820px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: min(310px, 84vw);
    padding-top: calc(20px + env(safe-area-inset-top));
  }
  .sidebar-open {
    transform: translateX(0);
  }
  .sidebar-close,
  .menu-trigger {
    display: grid;
  }
  .sidebar-close {
    margin-left: auto;
  }
  .drawer-mask {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 35;
    background: #0c171460;
    border: 0;
  }
  .workspace {
    width: 100%;
    margin-left: 0;
  }
  .topbar {
    height: 78px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .page {
    padding: 20px 16px calc(80px + env(safe-area-inset-bottom));
  }
  .quick-actions {
    margin: 0 0 18px;
    justify-content: flex-start;
  }
  .dashboard-grid,
  .detail-grid,
  .form-layout {
    grid-template-columns: 1fr;
  }
  .checkout-layout {
    grid-template-columns: 1fr;
  }
  .cart-panel {
    position: static;
  }
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .timeline-group {
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .timeline:before {
    display: none;
  }
  .timeline-date {
    padding-left: 0;
  }
  .timeline-date > span {
    display: none;
  }
  .customer-summary {
    flex-wrap: wrap;
  }
  .profile-main {
    min-width: calc(100% - 92px);
  }
  .summary-metric {
    flex: 1;
    min-width: 90px;
  }
  .service-row {
    grid-template-columns: 44px 1fr auto auto;
  }
  .service-row > p {
    display: none;
  }
  .followup-columns {
    grid-template-columns: 1fr;
  }
  .settings-layout {
    grid-template-columns: 1fr;
  }
  .settings-layout > nav {
    flex-direction: row;
    overflow: auto;
  }
  .settings-layout > nav a {
    white-space: nowrap;
  }
  .login-page {
    grid-template-columns: 1fr;
  }
  .login-intro {
    display: none;
  }
  .login-panel {
    padding: 24px;
    min-height: 100vh;
  }
  .login-mobile-brand {
    display: flex;
    margin-bottom: 45px;
  }
  .orders-table .table-head,
  .product-table .table-head,
  .customer-table .table-head {
    display: none;
  }
  .orders-table .table-row,
  .product-table .table-row,
  .customer-table .table-row {
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 13px 15px;
  }
  .customer-table .table-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    padding-right: 76px;
    align-items: center;
  }
  .customer-table .table-row > span:nth-child(2),
  .customer-table .table-row > span:nth-child(4) {
    grid-column: 1;
  }
  .customer-table .table-row > span:nth-child(3),
  .customer-table .table-row > span:nth-child(5) {
    grid-column: 2;
  }
  .customer-table .table-row > span:last-child {
    top: 16px;
    display: flex !important;
    align-items: center;
    gap: 8px;
  }
  .product-table .row-actions {
    grid-column: 1 / -1;
  }
  .orders-table .table-row > span,
  .product-table .table-row > span,
  .customer-table .table-row > span {
    display: block !important;
  }
  .orders-table .table-row > span:before,
  .product-table .table-row > span:before,
  .customer-table .table-row > span:before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 10px;
    margin-right: 7px;
  }
  .customer-table .table-row > .person-cell,
  .orders-table .table-row > span:first-child,
  .product-table .table-row > .person-cell {
    grid-column: 1/-1;
  }
  .customer-table .table-row > span:last-child,
  .orders-table .table-row > svg {
    position: absolute;
    right: 13px;
  }
  .table-row {
    position: relative;
  }
  .compare-screen header {
    flex-wrap: wrap;
  }
  .compare-stage.side {
    flex-direction: column;
  }
  .compare-stage.side .compare-pane {
    width: 100%;
    height: 50%;
    flex-direction: row;
  }
  .compare-stage.side .compare-caption {
    width: 160px;
  }
  .report-kpis {
    grid-template-columns: 1fr;
  }
  .report-kpis article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}
@media (max-width: 560px) {
  .page-heading {
    align-items: stretch;
    flex-direction: column;
  }
  .page-actions,
  .dropdown-actions {
    width: 100%;
  }
  .page-actions .btn,
  .dropdown-actions .btn {
    flex: 1;
  }
  .topbar-date {
    display: none;
  }
  .stat-grid {
    grid-template-columns: 1fr;
  }
  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .search-box,
  .toolbar-select {
    max-width: none;
    width: 100%;
  }
  .segmented {
    overflow-x: auto;
  }
  .photo-grid {
    grid-template-columns: 1fr;
  }
  .photo-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 9px;
  }
  .photo-toolbar > div {
    justify-content: space-between;
  }
  .customer-summary {
    padding: 15px;
  }
  .summary-metric {
    border-top: 1px solid var(--line);
    border-left: 0;
    padding: 12px 0 0;
  }
  .baseline-prompt {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .baseline-prompt > div {
    min-width: calc(100% - 50px);
  }
  .baseline-prompt .btn {
    width: 100%;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .span-2 {
    grid-column: span 1;
  }
  .catalog-head {
    flex-direction: column;
  }
  .search-box.compact {
    max-width: none;
  }
  .checkout-customer {
    align-items: stretch;
    flex-direction: column;
  }
  .checkout-customer label {
    grid-template-columns: 20px 1fr;
  }
  .checkout-customer label select {
    grid-column: 1/-1;
  }
  .payment-methods {
    grid-template-columns: repeat(2, 1fr);
  }
  .checkout-care-grid,
  .checkout-photo-fields {
    grid-template-columns: 1fr;
  }
  .checkout-care-grid .span-2,
  .checkout-photo-fields .span-2 {
    grid-column: span 1;
  }
  .upload-previews {
    grid-template-columns: repeat(2, 1fr);
  }
  .checkout-photo-previews,
  .order-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .modal-backdrop {
    padding: 0;
    align-items: flex-end;
  }
  .modal {
    width: 100%;
    max-height: 94vh;
    border-radius: 8px 8px 0 0;
  }
  .compare-screen header > .segmented {
    order: 3;
    width: 100%;
    justify-content: center;
  }
  .compare-stage.side .compare-pane {
    flex-direction: column;
  }
  .compare-stage.side .compare-caption {
    width: auto;
  }
  .login-panel {
    padding: 20px;
  }
  .table-row[data-label]:before {
    display: block;
  }
  .service-row {
    grid-template-columns: 42px 1fr auto;
  }
  .service-row > .status {
    display: none;
  }
  .service-row > .row-actions {
    grid-column: 3;
    grid-row: 1;
  }
  .schedule-title {
    padding: 12px;
  }
  .appointment-list {
    padding: 8px 12px;
  }
  .appointment-list article {
    gap: 8px;
  }
  .appointment-list article > .customer-avatar {
    display: none;
  }
  .report-kpis strong {
    font-size: 21px;
  }
}
@media (orientation: portrait) and (min-width: 821px) and (max-width: 1050px) {
  .sidebar {
    width: 205px;
  }
  .workspace {
    margin-left: 205px;
    width: calc(100% - 205px);
  }
  .page {
    padding-left: 20px;
    padding-right: 20px;
  }
  .checkout-layout {
    grid-template-columns: 1fr;
  }
  .cart-panel {
    position: static;
  }
}
@media print {
  .sidebar,
  .topbar,
  .page-heading .btn,
  .tabs,
  .quick-actions {
    display: none !important;
  }
  .workspace {
    margin: 0;
    width: 100%;
  }
  .page {
    padding: 0;
  }
  .panel {
    break-inside: avoid;
  }
}
