:root{
  --oc-bg:#f5f2ec;
  --oc-card:#fffdf8;
  --oc-panel:#faf7f0;
  --oc-ink:#151a22;
  --oc-muted:#6f746f;
  --oc-soft:#f0e9dc;
  --oc-line:#e4dacb;
  --oc-blue:#263f63;
  --oc-blue-dark:#17283f;
  --oc-gold:#c79a55;
  --oc-gold-soft:#f4dfb7;
  --oc-green:#167457;
  --oc-amber:#9b6425;
  --oc-red:#a13d32;
  --oc-lilac:#ece7f7;
  --oc-shadow:0 18px 58px rgba(32,27,18,.08);
}

*{box-sizing:border-box}
html{background:var(--oc-bg)}
body.order-center-page{
  margin:0;
  color:var(--oc-ink);
  background:
    linear-gradient(180deg,#f8f6f1 0%,var(--oc-bg) 46%,#efe9dd 100%);
  font-family:Inter,Arial,"Microsoft YaHei",sans-serif;
  letter-spacing:0;
}
body.order-center-page button,
body.order-center-page input,
body.order-center-page select,
body.order-center-page textarea{
  font:inherit;
}
body.order-center-page button{cursor:pointer}
body.order-center-page [hidden]{display:none!important}

.order-app{
  width:min(680px,100%);
  min-height:100vh;
  margin:0 auto;
  padding:30px 16px 96px;
}
.order-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:18px;
}
.order-header > div:first-child{
  min-width:0;
}
.order-brand{
  display:flex;
  align-items:center;
  gap:10px;
}
.order-brand img{
  width:38px;
  height:38px;
  border-radius:50%;
  object-fit:cover;
  box-shadow:0 6px 16px rgba(17,24,39,.14);
}
.order-header h1{
  margin:0;
  font-size:25px;
  line-height:1.12;
  font-weight:950;
  white-space:nowrap;
}
.order-header h1 span{
  font-weight:900;
}
.order-header p{
  margin:5px 0 0 48px;
  color:var(--oc-muted);
  font-size:14px;
  line-height:1.35;
  font-weight:750;
}
.order-header-actions{
  display:flex;
  align-items:center;
  gap:8px;
  padding-top:4px;
  white-space:nowrap;
}
.order-header-actions strong{
  color:#1f2937;
  font-size:15px;
  font-weight:900;
}
.order-header-actions strong.is-demo{color:var(--oc-amber)}
.order-header-actions strong.is-good{color:var(--oc-green)}
.order-header-actions strong.is-bad{color:var(--oc-red)}
.order-header-actions a,
.order-icon-btn{
  width:44px;
  height:44px;
  border:0;
  border-radius:8px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:var(--oc-blue);
  background:var(--oc-soft);
  text-decoration:none;
  font-size:22px;
}

.order-tabs{
  position:sticky;
  top:0;
  z-index:5;
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:6px;
  margin-bottom:22px;
  padding:8px;
  border:1px solid rgba(255,255,255,.75);
  border-radius:8px;
  background:rgba(255,255,255,.92);
  box-shadow:0 8px 24px rgba(32,52,91,.06);
  backdrop-filter:blur(14px);
}
.order-tabs button{
  min-width:0;
  min-height:44px;
  border:0;
  border-radius:8px;
  color:var(--oc-blue);
  background:transparent;
  font-size:13px;
  font-weight:900;
}
.order-tabs button.active{
  color:var(--oc-blue-dark);
  background:var(--oc-soft);
}
.order-tabs button:focus-visible,
.order-primary:focus-visible,
.order-sheet-actions button:focus-visible,
.order-card-action:focus-visible,
.order-icon-btn:focus-visible,
.order-settings-input button:focus-visible,
.order-chip button:focus-visible,
.order-field-delete:focus-visible{
  outline:3px solid rgba(47,99,216,.22);
  outline-offset:2px;
}

.order-panel{display:grid;gap:18px}
.order-card,
.order-stat,
.order-lock article,
.order-sheet{
  border:1px solid var(--oc-line);
  border-radius:8px;
  background:var(--oc-card);
  box-shadow:var(--oc-shadow);
}
.order-card{
  padding:18px;
}
.order-section-head,
.order-calendar-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:16px;
}
.order-card h2,
.order-section-head h2,
.order-calendar-head h2{
  margin:0;
  font-size:23px;
  line-height:1.2;
  font-weight:950;
}
.order-primary,
.order-sheet-actions button,
.order-card-action{
  min-height:44px;
  border:1px solid transparent;
  border-radius:8px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:9px 14px;
  font-weight:950;
}
.order-primary{
  color:#fff;
  background:var(--oc-blue);
  box-shadow:0 10px 22px rgba(47,99,216,.22);
}
.order-primary:hover{background:var(--oc-blue-dark)}
.order-card-delete{
  color:var(--oc-red);
  border-color:#f0c3c0;
  background:#fff8f7;
}
.order-card-delete:hover{
  border-color:var(--oc-red);
  background:#fff0ef;
}
.order-item-deleted{
  opacity:.82;
  background:#faf8f5;
}

.order-analysis-controls .order-section-head p,
.order-panel[data-order-panel="deleted"] .order-section-head p{
  margin:4px 0 0;
  color:var(--oc-muted);
  font-size:13px;
  font-weight:750;
}
.order-analysis-controls .order-section-head > button{
  min-height:40px;
  padding:8px 13px;
  border:1px solid var(--oc-line);
  border-radius:8px;
  color:var(--oc-blue);
  background:#fff;
  font:inherit;
  font-weight:900;
  cursor:pointer;
}
.order-analysis-filters{
  display:grid;
  grid-template-columns:1.2fr 1fr 1fr;
  gap:10px;
}
.order-analysis-filters label{
  display:grid;
  gap:6px;
  color:#263650;
  font-size:12px;
  font-weight:900;
}
.order-analysis-filters input,
.order-analysis-filters select{
  width:100%;
  min-height:42px;
  padding:8px 10px;
  border:1px solid #d7dde9;
  border-radius:8px;
  color:#172033;
  background:#fff;
  font:inherit;
  font-weight:850;
}
.order-analysis-summary{
  display:grid;
  grid-template-columns:1.5fr repeat(4,1fr);
  gap:8px;
  margin-top:12px;
}
.order-analysis-summary span{
  min-width:0;
  padding:11px;
  border:1px solid var(--oc-line);
  border-radius:8px;
  background:#f7f9fd;
}
.order-analysis-summary small,
.order-analysis-summary b{
  display:block;
  min-width:0;
}
.order-analysis-summary small{
  color:var(--oc-muted);
  font-size:11px;
  font-weight:850;
}
.order-analysis-summary b{
  margin-top:4px;
  overflow-wrap:anywhere;
  font-size:14px;
  font-weight:950;
}
.order-month-row + .order-month-row{
  margin-top:10px;
  padding-top:10px;
  border-top:1px solid var(--oc-line);
}

.order-stats{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.order-stat{
  min-height:106px;
  padding:16px;
}
.order-stat span{
  display:block;
  color:var(--oc-muted);
  font-size:14px;
  font-weight:800;
}
.order-stat strong{
  display:block;
  margin-top:10px;
  font-size:34px;
  line-height:1;
  font-weight:950;
}
.order-stat small{
  display:block;
  margin-top:8px;
  color:var(--oc-muted);
  font-size:12px;
  font-weight:800;
}

.order-list{
  display:grid;
  gap:14px;
}

.order-load-more{
  width:100%;
  min-height:52px;
  border:1px solid #dbe3f0;
  border-radius:8px;
  background:#f7f9fd;
  color:#2458bf;
  font-family:inherit;
  font-size:15px;
  font-weight:700;
  line-height:1.2;
  cursor:pointer;
}

.order-load-more:hover,
.order-load-more:focus-visible{
  background:#edf3ff;
  border-color:#9db9ef;
}
.order-item{
  display:grid;
  grid-template-columns:84px minmax(0,1fr);
  content-visibility:auto;
  contain-intrinsic-size:260px;
  gap:10px;
  padding:0 0 14px;
  border-bottom:1px solid var(--oc-line);
}
.order-item:last-child{
  padding-bottom:0;
  border-bottom:0;
}
.order-date{
  display:grid;
  gap:2px;
  color:#172033;
}
.order-date strong{
  font-size:22px;
  line-height:1;
  font-weight:950;
}
.order-date span,
.order-date small{
  color:var(--oc-muted);
  font-size:13px;
  font-weight:850;
}
.order-main{
  min-width:0;
}
.order-main-head{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px;
  align-items:start;
}
.order-customer{
  margin:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:18px;
  font-weight:950;
}
.order-amount{
  color:#142033;
  font-size:20px;
  font-weight:950;
  white-space:nowrap;
}
.order-title{
  display:flex;
  align-items:center;
  gap:7px;
  margin:7px 0;
  font-weight:900;
}
.order-title i{
  color:var(--oc-amber);
  font-size:18px;
}
.order-note{
  margin:0;
  padding:12px;
  border-radius:8px;
  color:#5f6b7a;
  background:#f5f7fb;
  white-space:pre-line;
  line-height:1.36;
}
.order-meta{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:10px;
}
.order-meta span,
.order-date-chip{
  display:inline-flex;
  align-items:center;
  gap:5px;
  min-height:30px;
  padding:6px 9px;
  border-radius:8px;
  color:#475467;
  background:#f7f9fd;
  font-size:12px;
  font-weight:850;
}
.order-status{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:30px;
  padding:6px 10px;
  border-radius:8px;
  color:#344054;
  background:#eef2f7;
  font-size:12px;
  font-weight:950;
}
.order-status.new{color:#9a5b00;background:#fff6df}
.order-status.deposit_paid{color:#875200;background:#fff0cf}
.order-status.fully_paid{color:#027a48;background:#ddf8eb}
.order-status.service_completed{color:#5d3fd3;background:var(--oc-lilac)}
.order-status.cancelled{color:#b42318;background:#fee4e2}
.order-card-actions{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:7px;
  margin-top:10px;
}
.order-card-action{
  min-height:38px;
  padding:7px 9px;
  border-color:var(--oc-line);
  color:#1f3d75;
  background:#fff;
  font-size:12px;
}
.order-card-action:hover{border-color:#b9c8ea;background:#f8fbff}

.order-filters{
  display:grid;
  gap:10px;
  margin-bottom:12px;
}
.order-filters input,
.order-filters select,
.order-form-grid input,
.order-form-grid select,
.order-form-grid textarea,
.order-lock input{
  width:100%;
  min-height:50px;
  border:1px solid #d7dde9;
  border-radius:8px;
  padding:12px 13px;
  color:var(--oc-ink);
  background:#fff;
  font-weight:850;
  outline:none;
}
.order-form-grid textarea{
  min-height:112px;
  resize:vertical;
  line-height:1.45;
}
.order-filters input:focus,
.order-filters select:focus,
.order-form-grid input:focus,
.order-form-grid select:focus,
.order-form-grid textarea:focus,
.order-lock input:focus{
  border-color:var(--oc-blue);
  box-shadow:0 0 0 3px rgba(47,99,216,.13);
}
.order-select-action{
  display:grid;
  grid-template-columns:minmax(0,1fr) 50px;
  gap:8px;
  align-items:stretch;
}
.order-category-field{
  display:grid;
  gap:10px;
}
.order-category-heading{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
}
.order-category-heading span{
  color:#15233d;
  font-size:16px;
  font-weight:950;
}
.order-category-heading small,
.order-category-shortcuts > span{
  color:var(--oc-muted);
  font-size:12px;
  font-weight:850;
}
.order-category-lines{
  display:grid;
  gap:10px;
}
.order-category-line{
  display:grid;
  gap:10px;
  padding:12px;
  border:1px solid #dfe6f2;
  border-radius:12px;
  background:#f8fbff;
}
.order-category-line-top{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(116px,.36fr);
  gap:10px;
}
.order-category-note textarea{
  min-height:94px;
  background:#fff;
}
.order-category-add-line,
.order-category-shortcuts button,
.order-category-remove{
  min-height:42px;
  border-radius:10px;
  font-weight:950;
}
.order-category-add-line{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  border:0;
  color:#fff;
  background:var(--oc-blue);
}
.order-category-shortcuts{
  display:grid;
  gap:8px;
  padding:10px;
  border:1px solid #e4e9f4;
  border-radius:12px;
  background:#fff;
}
.order-category-shortcuts div{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
}
.order-category-shortcuts button{
  border:1px solid #d7e4ff;
  color:#2552b3;
  background:#eff5ff;
  padding:8px 11px;
  line-height:1.15;
}
.order-category-shortcuts button span,
.order-category-shortcuts button small{
  display:block;
}
.order-category-shortcuts button small{
  margin-top:2px;
  color:#7b5523;
  font-size:10px;
  font-variant-numeric:tabular-nums;
}
.order-category-remove{
  border:1px solid #f1c0b8;
  color:var(--oc-red);
  background:#fff7f5;
}
.order-category-add-line:focus-visible,
.order-category-shortcuts button:focus-visible,
.order-category-remove:focus-visible{
  outline:3px solid rgba(47,99,216,.18);
  outline-offset:2px;
}
.order-category-remove:hover{
  color:#fff;
  background:var(--oc-red);
  border-color:var(--oc-red);
}
.order-field-delete{
  width:50px;
  min-height:50px;
  border:1px solid #f1c0b8;
  border-radius:8px;
  color:var(--oc-red);
  background:#fff7f5;
  font-size:20px;
}
.order-field-delete:hover:not(:disabled){
  color:#fff;
  background:var(--oc-red);
  border-color:var(--oc-red);
}
.order-field-delete:disabled{
  color:#a4adba;
  background:#f4f6fa;
  border-color:#d7dde9;
  cursor:default;
}
.order-date-chip{
  width:max-content;
  margin-bottom:12px;
}
.order-date-chip button{
  border:0;
  color:inherit;
  background:transparent;
  font-weight:950;
}

.order-weekdays,
.order-calendar-grid{
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
  gap:6px;
}
.order-weekdays{
  margin-bottom:7px;
  color:#667085;
  font-size:13px;
  font-weight:850;
  text-align:center;
}
.order-day{
  min-height:86px;
  border:1px solid var(--oc-line);
  border-radius:8px;
  padding:8px;
  color:#172033;
  background:#fff;
  text-align:left;
}
.order-day.is-empty{
  border-color:transparent;
  background:transparent;
  cursor:default;
}
.order-day.has-order{
  border-color:#c8d6f7;
  background:#f8fbff;
}
.order-day b{
  display:block;
  font-size:17px;
  line-height:1;
}
.order-day span{
  display:block;
  margin-top:8px;
  color:var(--oc-blue);
  font-size:11px;
  font-weight:900;
}
.order-day small{
  display:block;
  margin-top:4px;
  color:#596579;
  font-size:11px;
  line-height:1.2;
  font-weight:800;
}

.order-table{
  display:grid;
  margin-top:12px;
}
.order-table-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) 48px 112px;
  gap:12px;
  align-items:center;
  min-height:58px;
  border-bottom:1px solid var(--oc-line);
}
.order-table-row:last-child{border-bottom:0}
.order-table-row span,
.order-table-row b{
  min-width:0;
  overflow-wrap:anywhere;
}
.order-table-row span{font-weight:850}
.order-table-row small{color:var(--oc-muted);font-weight:800}
.order-table-row b{
  text-align:right;
  font-size:18px;
  font-weight:950;
}
.order-status-bars,
.order-staff-bars{
  display:grid;
  gap:14px;
  margin-top:14px;
}
.order-bar-row{
  display:grid;
  grid-template-columns:118px minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
}
.order-bar-row span{
  font-weight:850;
}
.order-bar{
  height:10px;
  overflow:hidden;
  border-radius:8px;
  background:#eef2f7;
}
.order-bar i{
  display:block;
  height:100%;
  border-radius:8px;
  background:var(--oc-blue);
}
.order-bar-row strong{
  white-space:nowrap;
  font-weight:950;
}
.order-staff-card{
  display:grid;
  gap:12px;
  padding:14px;
  border:1px solid var(--oc-line);
  border-radius:8px;
  background:#fff;
}
.order-staff-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.order-staff-head div{
  min-width:0;
}
.order-staff-head span{
  display:block;
  color:var(--oc-blue);
  font-size:11px;
  font-weight:950;
  letter-spacing:.8px;
}
.order-staff-head h3{
  min-width:0;
  margin:3px 0 0;
  overflow-wrap:anywhere;
  font-size:22px;
  line-height:1.12;
  font-weight:950;
}
.order-staff-head > strong{
  min-height:34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:7px 11px;
  border-radius:8px;
  color:#fff;
  background:var(--oc-blue);
  white-space:nowrap;
  font-size:14px;
  font-weight:950;
}
.order-staff-metrics{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
}
.order-staff-metrics span{
  min-width:0;
  padding:10px;
  border:1px solid var(--oc-line);
  border-radius:8px;
  background:#f7f9fd;
}
.order-staff-metrics small{
  display:block;
  color:var(--oc-muted);
  font-size:11px;
  font-weight:850;
}
.order-staff-metrics b{
  display:block;
  min-width:0;
  margin-top:5px;
  overflow-wrap:anywhere;
  font-size:16px;
  line-height:1.15;
  font-weight:950;
}
.order-staff-dates{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:9px 0;
  border-top:1px solid var(--oc-line);
  border-bottom:1px solid var(--oc-line);
}
.order-staff-dates span{
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:var(--oc-muted);
  font-size:12px;
  font-weight:900;
}
.order-staff-dates b{
  color:#172033;
  font-size:13px;
  font-weight:950;
  text-align:right;
}
.order-staff-records{
  display:grid;
  overflow:hidden;
  margin:0;
  padding:0;
  border:1px solid var(--oc-line);
  border-radius:8px;
  list-style:none;
}
.order-staff-records li{
  display:grid;
  grid-template-columns:82px minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
  padding:10px;
  border-bottom:1px solid var(--oc-line);
}
.order-staff-records li:last-child{
  border-bottom:0;
}
.order-staff-records time{
  color:var(--oc-blue);
  font-size:12px;
  font-weight:950;
}
.order-staff-records span,
.order-staff-records b,
.order-staff-records small,
.order-staff-records strong{
  min-width:0;
}
.order-staff-records b,
.order-staff-records small{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.order-staff-records b{
  color:#172033;
  font-size:14px;
  font-weight:950;
}
.order-staff-records small{
  margin-top:2px;
  color:var(--oc-muted);
  font-size:12px;
  font-weight:800;
}
.order-staff-records strong{
  white-space:nowrap;
  font-size:14px;
  font-weight:950;
}
.order-month-income{
  margin-top:12px;
  padding:14px;
  border-radius:8px;
  background:#f7f9fd;
}
.order-month-income strong{
  display:block;
  font-size:20px;
  font-weight:950;
}
.order-month-income span{
  display:block;
  margin-top:4px;
  color:var(--oc-muted);
  font-weight:850;
}
.order-settings-card .order-section-head{
  align-items:flex-start;
}
.order-settings-status{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:30px;
  padding:6px 10px;
  border-radius:8px;
  color:var(--oc-blue);
  background:var(--oc-soft);
  font-size:12px;
  font-weight:950;
  white-space:nowrap;
}
.order-settings-status.is-good{
  color:var(--oc-green);
  background:#ddf8eb;
}
.order-settings-status.is-bad{
  color:var(--oc-red);
  background:#fee4e2;
}
.order-settings-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
}
.order-settings-grid section{
  min-width:0;
  padding-top:2px;
}
.order-settings-grid h3{
  margin:0;
  font-size:17px;
  font-weight:950;
}
.order-settings-grid p{
  margin:5px 0 10px;
  color:var(--oc-muted);
  font-size:13px;
  line-height:1.35;
  font-weight:800;
}
.order-settings-input{
  display:grid;
  grid-template-columns:minmax(0,1fr) 72px;
  gap:8px;
  margin-bottom:10px;
}
.order-settings-input-category{
  grid-template-columns:minmax(0,1.35fr) minmax(110px,.65fr) 72px;
}
.order-settings-input-category input[type="number"]{
  font-variant-numeric:tabular-nums;
}
.order-settings-input input{
  width:100%;
  min-height:42px;
  border:1px solid #d7dde9;
  border-radius:8px;
  padding:10px 12px;
  color:var(--oc-ink);
  background:#fff;
  font-weight:850;
  outline:none;
}
.order-settings-input input:focus{
  border-color:var(--oc-blue);
  box-shadow:0 0 0 3px rgba(47,99,216,.13);
}
.order-settings-input button{
  min-height:42px;
  border:0;
  border-radius:8px;
  color:#fff;
  background:var(--oc-blue);
  font-weight:950;
}

.order-business-settings{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px 16px;
}
.order-business-settings label{
  display:grid;
  gap:7px;
  min-width:0;
  color:var(--oc-ink);
  font-size:13px;
  font-weight:900;
}
.order-business-settings .order-wide{
  grid-column:1/-1;
}
.order-business-settings input,
.order-business-settings select,
.order-business-settings textarea{
  width:100%;
  min-height:44px;
  border:1px solid #d7dde9;
  border-radius:8px;
  padding:10px 12px;
  color:var(--oc-ink);
  background:#fff;
  font-family:inherit;
  font-size:14px;
  font-weight:800;
  line-height:1.45;
  outline:none;
  resize:vertical;
}
.order-business-settings textarea{min-height:80px}
.order-business-settings input:focus,
.order-business-settings select:focus,
.order-business-settings textarea:focus{
  border-color:var(--oc-blue);
  box-shadow:0 0 0 3px rgba(47,99,216,.13);
}
.order-business-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  padding-top:6px;
}
.order-business-actions button{
  min-height:46px;
  padding:0 18px;
  border:1px solid #d7dde9;
  border-radius:8px;
  background:#fff;
  color:var(--oc-ink);
  font-weight:900;
}
.order-business-actions .order-primary{
  border-color:var(--oc-blue);
  background:var(--oc-blue);
  color:#fff;
}
.order-alert-list{display:grid;gap:8px}
.order-alert-item{display:grid;grid-template-columns:72px 1fr;gap:12px;align-items:center;padding:11px 12px;border:1px solid #eadfce;border-radius:8px;background:#fffdf8}
.order-alert-item strong{color:#9b5d16;font-size:12px}
.order-alert-item span{font-size:13px;font-weight:750}
.order-tools-grid,.order-payment-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.order-tools-grid label,.order-payment-grid label{display:grid;gap:6px;font-size:12px;font-weight:900}
.order-tools-grid input,.order-tools-grid select,.order-payment-grid input,.order-payment-grid select{width:100%;min-height:44px;border:1px solid #d7dde9;border-radius:8px;padding:8px 10px;background:#fff;font:inherit}
.order-staff-manager{margin-top:18px;padding-top:18px;border-top:1px solid #e5e8ef}.order-staff-manager[hidden]{display:none}.order-staff-form{display:grid;grid-template-columns:1fr 1.4fr 1fr .8fr auto;gap:8px}.order-staff-form input,.order-staff-form select,.order-staff-form button{min-height:42px;border:1px solid #d7dde9;border-radius:8px;padding:8px 10px;background:#fff;font:inherit}.order-staff-form button{background:#152f62;color:#fff;font-weight:800}.order-staff-list{display:grid;gap:8px;margin-top:12px}.order-staff-item{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;border:1px solid #e5e8ef;border-radius:8px}.order-staff-item span{display:grid}.order-staff-item small{color:#697386}.order-staff-item button{border:0;background:#fff0f0;color:#b42318;border-radius:7px;padding:8px 12px}
.order-control-checks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:18px 0}.order-control-checks section{padding:14px;border:1px solid #e1e6ef;border-radius:8px;background:#f8faff}.order-control-checks h3{margin:0 0 8px;font-size:13px}.order-control-checks strong{font-size:17px;color:#10244a}.order-control-checks p{margin:6px 0 0;color:#667085;font-size:12px;line-height:1.5}
.order-tool-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.order-tool-actions button{min-height:42px;border:1px solid #d7dde9;border-radius:8px;padding:0 13px;background:#fff;color:var(--oc-ink);font-weight:850}
.order-audit-list{display:grid;gap:7px;margin-top:18px}
[data-order-tools-status]:empty{display:none}
.order-audit-list h3{margin:0 0 4px}
.order-audit-item{display:grid;grid-template-columns:150px 1fr auto;gap:10px;padding:10px 0;border-bottom:1px solid #ece5da;font-size:12px}
.order-audit-item span{min-width:0;overflow-wrap:anywhere;color:#5f6470}
.order-audit-item small{color:#8b8f97}
.order-payment-entry{display:grid;gap:12px;padding:14px;border:1px solid #e2d5c3;border-radius:8px;background:#fffdf8}
.order-payment-history{display:grid;gap:7px}
.order-payment-history h4{margin:0}
.order-payment-history>div{display:grid;grid-template-columns:110px 1fr;gap:8px;padding:8px 0;border-top:1px solid #ece5da;font-size:12px}
.order-payment-history strong{color:#28633d}
input[readonly][data-order-field="payableAmount"]{background:#edf7f0;color:#205f38;font-weight:950}
.order-chip-list{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.order-chip{
  display:inline-grid;
  grid-template-columns:minmax(0,1fr) 32px;
  align-items:stretch;
  min-width:0;
  max-width:100%;
  overflow:hidden;
  border:1px solid var(--oc-line);
  border-radius:8px;
  background:#fff;
}
.order-chip button{
  min-width:0;
  border:0;
  color:#1f2937;
  background:transparent;
}
.order-chip > button:first-child{
  display:grid;
  gap:1px;
  padding:7px 10px;
  text-align:left;
}
.order-chip span{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:13px;
  font-weight:950;
}
.order-chip small{
  color:var(--oc-muted);
  font-size:10px;
  font-weight:850;
}
.order-chip-remove{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-left:1px solid var(--oc-line)!important;
  color:#667085!important;
  font-size:17px;
}
.order-chip button:hover:not(:disabled){
  background:#f8fbff;
}
.order-chip button:disabled{
  cursor:default;
  opacity:.55;
}
.order-empty{
  padding:18px;
  border:1px dashed #ccd4e3;
  border-radius:8px;
  color:#667085;
  background:#f8fafc;
  font-weight:850;
  text-align:center;
}

.order-lock{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:18px;
  background:var(--oc-bg);
}
.order-lock article{
  width:min(420px,100%);
  padding:24px;
}
.order-lock img{
  width:58px;
  height:58px;
  border-radius:50%;
  object-fit:cover;
}
.order-lock span{
  display:block;
  margin-top:14px;
  color:var(--oc-blue);
  font-weight:950;
}
.order-lock h1{
  margin:6px 0 8px;
  font-size:30px;
  line-height:1.1;
}
.order-lock p{
  margin:0 0 16px;
  color:var(--oc-muted);
}
.order-lock form{
  display:grid;
  gap:12px;
}
.order-lock label,
.order-form-grid label{
  display:grid;
  gap:7px;
  color:#344054;
  font-size:14px;
  font-weight:900;
}

.order-receipt-field{
  display:grid;
  gap:10px;
  min-width:0;
  padding:14px;
  border:1px solid #d7dde9;
  border-radius:8px;
  background:#f8faff;
}
.order-receipt-heading{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.order-receipt-heading span{
  color:#172033;
  font-size:15px;
  font-weight:950;
}
.order-receipt-heading small{
  max-width:320px;
  color:var(--oc-muted);
  font-size:12px;
  line-height:1.45;
  text-align:right;
}
.order-receipt-empty,
.order-receipt-preview{
  min-height:76px;
  display:grid;
  grid-template-columns:48px minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  padding:10px;
  border:1px dashed #bdc9df;
  border-radius:8px;
  background:#fff;
}
.order-receipt-gallery,
.order-receipt-list{
  display:grid;
  gap:8px;
}
.order-receipt-gallery[hidden]{display:none}
.order-receipt-add{
  min-height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:8px 13px;
  border:1px solid #bdc9df;
  border-radius:8px;
  color:var(--oc-blue);
  background:#fff;
  font:inherit;
  font-weight:950;
  cursor:pointer;
}
.order-receipt-add:hover{
  border-color:var(--oc-blue);
  background:var(--oc-soft);
}
.order-receipt-empty > i{
  width:48px;
  height:48px;
  display:grid;
  place-items:center;
  border-radius:8px;
  color:var(--oc-blue);
  background:var(--oc-soft);
  font-size:24px;
}
.order-receipt-empty strong,
.order-receipt-preview strong,
.order-receipt-empty small,
.order-receipt-preview small{
  display:block;
  min-width:0;
}
.order-receipt-empty strong,
.order-receipt-preview strong{
  overflow:hidden;
  color:#172033;
  font-size:14px;
  font-weight:950;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.order-receipt-empty small,
.order-receipt-preview small{
  margin-top:3px;
  color:var(--oc-muted);
  font-size:12px;
  font-weight:800;
}
.order-receipt-empty button{
  min-height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:8px 13px;
  border:0;
  border-radius:8px;
  color:#fff;
  background:var(--oc-blue);
  font:inherit;
  font-weight:950;
  cursor:pointer;
}
.order-receipt-preview img{
  width:48px;
  height:56px;
  object-fit:cover;
  border:1px solid var(--oc-line);
  border-radius:6px;
  background:#fff;
}
.order-receipt-actions{
  display:flex;
  gap:6px;
}
.order-receipt-actions button{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  padding:0;
  border:1px solid #d7dde9;
  border-radius:8px;
  color:#28436f;
  background:#fff;
  font-size:17px;
  cursor:pointer;
}
.order-receipt-actions button:last-child{
  color:var(--oc-red);
  border-color:#f0c3c0;
  background:#fff8f7;
}
.order-receipt-badge{
  color:#17613f;
  background:#ddf8eb;
}

@media (max-width:640px){
  .order-receipt-heading{
    display:block;
  }
  .order-receipt-heading small{
    display:block;
    margin-top:4px;
    text-align:left;
  }
  .order-receipt-empty,
  .order-receipt-preview{
    grid-template-columns:48px minmax(0,1fr);
  }
  .order-receipt-empty button,
  .order-receipt-actions{
    grid-column:1 / -1;
  }
  .order-receipt-actions button{
    flex:1;
    width:auto;
  }
}
.order-message{
  min-height:22px;
  margin:10px 0 0;
  color:var(--oc-red);
  font-weight:900;
}
.order-message.is-good{color:var(--oc-green)}

.order-sheet-backdrop{
  position:fixed;
  inset:0;
  z-index:40;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  padding:18px;
  background:rgba(15,23,42,.38);
}
.order-sheet{
  width:min(640px,100%);
  max-height:min(88vh,780px);
  overflow:auto;
  padding:18px;
}
.order-sheet header{
  position:sticky;
  top:0;
  z-index:1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:-18px -18px 16px;
  padding:16px 18px;
  border-bottom:1px solid var(--oc-line);
  background:#fff;
}
.order-sheet header span{
  color:var(--oc-blue);
  font-size:12px;
  font-weight:950;
}
.order-sheet header h2{
  margin:3px 0 0;
  font-size:24px;
}
.order-form-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.order-wide{grid-column:1/-1}
.order-sheet-actions{
  position:sticky;
  bottom:0;
  display:grid;
  grid-template-columns:minmax(0,1.2fr) minmax(0,.9fr) minmax(0,.7fr);
  gap:8px;
  margin:16px -18px -18px;
  padding:12px 18px 18px;
  border-top:1px solid var(--oc-line);
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(12px);
}
.order-sheet-actions button:not(.order-primary){
  border-color:var(--oc-line);
  color:#203864;
  background:#fff;
}

.order-print{display:none}

@media (min-width:980px){
  .order-app{
    width:min(1120px,100%);
    padding:34px 28px 100px;
  }
  .order-panel[data-order-panel="overview"].active{
    grid-template-columns:380px minmax(0,1fr);
    align-items:start;
  }
  .order-stats{
    grid-template-columns:1fr;
  }
  .order-filters{
    grid-template-columns:minmax(0,1fr) 220px;
  }
}

@media (max-width:520px){
  .order-app{
    padding:26px 16px 86px;
  }
  .order-tabs{
    grid-template-columns:repeat(5,minmax(68px,1fr));
  }
  .order-analysis-filters,
  .order-analysis-summary{
    grid-template-columns:1fr;
  }
  .order-header{
    align-items:flex-start;
  }
  .order-brand img{
    display:none;
  }
  .order-header h1{
    font-size:20px;
  }
  .order-header p{
    margin-left:0;
    font-size:13px;
  }
  .order-header-actions{
    flex-direction:column;
    align-items:flex-end;
    gap:6px;
  }
  .order-header-actions a{
    width:38px;
    height:38px;
  }
  .order-tabs{
    gap:4px;
    padding:6px;
  }
  .order-tabs button{
    min-height:40px;
    padding:8px 4px;
    font-size:12px;
  }

  .order-tools-grid,.order-payment-grid{grid-template-columns:1fr}
  .order-staff-form{grid-template-columns:1fr}
  .order-control-checks{grid-template-columns:1fr}
  .order-tool-actions{display:grid}
  .order-audit-item{grid-template-columns:1fr;gap:3px}
  .order-card{
    padding:16px;
  }
  .order-stats{
    gap:10px;
  }
  .order-stat{
    min-height:100px;
    padding:14px;
  }
  .order-stat strong{
    font-size:29px;
  }
  .order-item{
    grid-template-columns:70px minmax(0,1fr);
  }
  .order-date strong{
    font-size:20px;
  }
  .order-main-head{
    grid-template-columns:1fr;
  }
  .order-amount{
    font-size:18px;
  }
  .order-card-actions{
    grid-template-columns:1fr 1fr;
  }
  .order-day{
    min-height:78px;
    padding:7px;
  }
  .order-day small{
    display:none;
  }
  .order-table-row{
    grid-template-columns:minmax(0,1fr) 42px 96px;
  }
  .order-bar-row{
    grid-template-columns:88px minmax(0,1fr) auto;
  }
  .order-staff-head h3{
    font-size:20px;
  }
  .order-staff-metrics{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .order-staff-records li{
    grid-template-columns:66px minmax(0,1fr);
    align-items:start;
  }
  .order-staff-records strong{
    grid-column:2;
    justify-self:start;
  }
  .order-settings-card .order-section-head,
  .order-settings-grid{
    grid-template-columns:1fr;
  }
  .order-settings-card .order-section-head{
    display:grid;
  }
  .order-settings-input{
    grid-template-columns:minmax(0,1fr) 68px;
  }
  .order-settings-input-category{
    grid-template-columns:minmax(0,1fr) 104px;
  }
  .order-settings-input-category button{
    grid-column:1/-1;
  }
  .order-business-settings{
    grid-template-columns:1fr;
  }
  .order-business-settings .order-wide{
    grid-column:auto;
  }
  .order-business-actions{
    display:grid;
  }
  .order-form-grid{
    grid-template-columns:1fr;
  }
  .order-category-heading{
    align-items:flex-start;
    flex-direction:column;
    gap:4px;
  }
  .order-category-line-top{
    grid-template-columns:1fr;
  }
  .order-sheet-backdrop{
    padding:10px;
  }
  .order-sheet{
    max-height:92vh;
  }
  .order-sheet-actions{
    grid-template-columns:1fr;
  }
}

@media (max-width:380px){
  .order-header{
    flex-wrap:wrap;
  }
  .order-header-actions{
    width:100%;
    flex-direction:row;
    justify-content:space-between;
  }
}

/* Premium minimal control layer */
body.order-center-page button,
body.order-center-page input,
body.order-center-page select,
body.order-center-page textarea{
  letter-spacing:0;
}

.order-app{
  width:min(1040px,100%);
  padding:28px 16px 88px;
}

.order-header{
  align-items:center;
  margin-bottom:16px;
}

.order-brand img{
  width:42px;
  height:42px;
  border-radius:8px;
  border:1px solid rgba(199,154,85,.28);
  box-shadow:0 10px 28px rgba(32,27,18,.12);
}

.order-header h1{
  color:var(--oc-ink);
  font-size:24px;
  line-height:1.08;
  letter-spacing:0;
}

.order-header h1 span{
  color:#2c3440;
}

.order-header p{
  margin:5px 0 0 52px;
  color:var(--oc-muted);
  font-size:13px;
  font-weight:760;
}

.order-header-actions{
  gap:10px;
}

.order-header-actions strong{
  min-height:34px;
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:7px 12px;
  border:1px solid var(--oc-line);
  border-radius:8px;
  color:#4a4338;
  background:rgba(255,253,248,.74);
  box-shadow:0 8px 24px rgba(32,27,18,.05);
  font-size:13px;
}

.order-header-actions strong::before{
  content:"";
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--oc-gold);
}

.order-header-actions strong.is-good::before{
  background:var(--oc-green);
}

.order-header-actions strong.is-bad::before{
  background:var(--oc-red);
}

.order-header-actions a,
.order-icon-btn{
  width:42px;
  height:42px;
  border:1px solid var(--oc-line);
  border-radius:8px;
  color:var(--oc-blue);
  background:rgba(255,253,248,.82);
  box-shadow:none;
}

.order-header-actions a:hover,
.order-icon-btn:hover{
  border-color:#d5c5ad;
  background:#fff;
}

.order-tabs{
  top:10px;
  gap:6px;
  margin-bottom:22px;
  padding:6px;
  border-color:rgba(228,218,203,.84);
  border-radius:8px;
  background:rgba(255,253,248,.9);
  box-shadow:0 14px 34px rgba(32,27,18,.06);
}

.order-tabs button{
  min-height:42px;
  border:1px solid transparent;
  border-radius:8px;
  color:#626967;
  font-size:13px;
  font-weight:850;
}

.order-tabs button.active{
  color:var(--oc-ink);
  border-color:#eadbc3;
  background:linear-gradient(180deg,#fff8e9 0%,#f1dfbd 100%);
  box-shadow:0 8px 18px rgba(148,101,42,.08);
}

.order-card,
.order-stat,
.order-lock article,
.order-sheet{
  border-color:rgba(228,218,203,.94);
  border-radius:8px;
  background:rgba(255,253,248,.96);
  box-shadow:var(--oc-shadow);
}

.order-card{
  padding:18px;
}

.order-section-head,
.order-calendar-head{
  margin-bottom:16px;
}

.order-card h2,
.order-section-head h2,
.order-calendar-head h2{
  color:var(--oc-ink);
  font-size:22px;
  letter-spacing:0;
}

.order-primary,
.order-sheet-actions button,
.order-card-action{
  border-radius:8px;
  font-weight:900;
  transition:background .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease;
}

.order-primary{
  color:#fffaf1;
  background:var(--oc-blue-dark);
  box-shadow:0 12px 28px rgba(23,40,63,.18);
}

.order-primary:hover{
  background:#0f1c2f;
  transform:translateY(-1px);
}

.order-stats{
  gap:10px;
}

.order-stat{
  min-height:96px;
  padding:15px;
  background:linear-gradient(180deg,#fffefa 0%,#fbf6ec 100%);
}

.order-stat span{
  color:#706b61;
  font-size:12px;
  font-weight:850;
}

.order-stat strong{
  margin-top:8px;
  color:#101720;
  font-size:31px;
  line-height:.98;
  letter-spacing:0;
}

.order-stat small{
  color:#82796b;
  font-size:11px;
  font-weight:780;
}

.order-item{
  grid-template-columns:78px minmax(0,1fr);
  gap:14px;
  padding:16px 0 18px;
  border-bottom-color:#ebe2d5;
}

.order-date{
  align-content:start;
  color:#172033;
}

.order-date strong{
  font-size:21px;
}

.order-date span,
.order-date small{
  color:#6f746f;
  font-size:12px;
}

.order-main-head{
  grid-template-columns:minmax(0,1fr) auto;
  gap:14px;
}

.order-customer{
  color:#111820;
  font-size:18px;
  letter-spacing:0;
}

.order-amount{
  color:#111820;
  font-size:18px;
}

.order-title{
  margin:7px 0 9px;
  color:#1f2933;
  font-size:15px;
  line-height:1.35;
}

.order-title i{
  color:var(--oc-gold);
}

.order-note{
  padding:12px 13px;
  border:1px solid #eee4d6;
  border-radius:8px;
  color:#59616a;
  background:#f8f4ec;
  line-height:1.42;
}

.order-meta{
  gap:7px;
}

.order-meta span,
.order-date-chip{
  min-height:29px;
  border:1px solid #eadfd0;
  border-radius:8px;
  color:#59616a;
  background:#fffbf3;
  font-size:11px;
  font-weight:820;
}

.order-status{
  min-height:29px;
  border:1px solid transparent;
  border-radius:8px;
  font-size:11px;
}

.order-status.new{
  color:#875200;
  border-color:#f4d28e;
  background:#fff6df;
}

.order-status.deposit_paid{
  color:#875200;
  border-color:#efc16c;
  background:#fff0cf;
}

.order-status.fully_paid{
  color:#0d6b4c;
  border-color:#bcebd7;
  background:#e4faef;
}

.order-status.service_completed{
  color:#6040b5;
  border-color:#ded2ff;
  background:#f0eaff;
}

.order-status.cancelled{
  color:var(--oc-red);
  border-color:#f1c0b8;
  background:#fff0ee;
}

.order-card-actions{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin-top:12px;
}

.order-card-action{
  min-height:38px;
  border-color:#e6dccd;
  color:#233958;
  background:#fffefa;
  font-size:12px;
  box-shadow:none;
}

.order-card-action:hover{
  border-color:#d6c4aa;
  background:#fff7e8;
}

.order-filters{
  gap:9px;
  margin-bottom:14px;
}

.order-filters input,
.order-filters select,
.order-form-grid input,
.order-form-grid select,
.order-form-grid textarea,
.order-lock input,
.order-settings-input input{
  border-color:#ded5c8;
  border-radius:8px;
  color:#151a22;
  background:#fffefa;
  font-weight:820;
}

.order-filters input:focus,
.order-filters select:focus,
.order-form-grid input:focus,
.order-form-grid select:focus,
.order-form-grid textarea:focus,
.order-lock input:focus,
.order-settings-input input:focus{
  border-color:var(--oc-gold);
  box-shadow:0 0 0 3px rgba(199,154,85,.16);
}

.order-category-heading span{
  color:#172033;
}

.order-category-heading small,
.order-category-shortcuts > span{
  color:#777265;
}

.order-category-line{
  border-color:#eadfd0;
  border-radius:8px;
  background:#faf6ef;
}

.order-category-note textarea{
  background:#fffefa;
}

.order-category-add-line{
  border:1px solid #d9c29d;
  color:#1d1a16;
  background:var(--oc-gold-soft);
}

.order-category-shortcuts{
  border-color:#eadfd0;
  border-radius:8px;
  background:#fffefa;
}

.order-category-shortcuts button{
  border-color:#e6dccd;
  color:#51432c;
  background:#fbf4e7;
}

.order-category-remove,
.order-field-delete{
  border-color:#efc9c2;
  background:#fff7f5;
}

.order-day{
  min-height:82px;
  border-color:#e7ded2;
  border-radius:8px;
  background:#fffefa;
}

.order-day.has-order{
  border-color:#d9c29d;
  background:#fff8ea;
}

.order-day span{
  color:#7b5523;
}

.order-table-row{
  min-height:56px;
  border-bottom-color:#ebe2d5;
}

.order-table-row span{
  color:#262d36;
}

.order-table-row small{
  color:#777265;
}

.order-bar{
  background:#eee7dc;
}

.order-bar i{
  background:linear-gradient(90deg,var(--oc-blue),var(--oc-gold));
}

.order-staff-card{
  border-color:#e6dccd;
  border-radius:8px;
  background:#fffefa;
}

.order-staff-head span{
  color:#8b632f;
  letter-spacing:0;
}

.order-staff-head > strong{
  border:1px solid #d9c29d;
  color:#1d1a16;
  background:var(--oc-gold-soft);
}

.order-staff-metrics span,
.order-month-income{
  border-color:#eadfd0;
  border-radius:8px;
  background:#faf6ef;
}

.order-staff-dates,
.order-staff-records,
.order-staff-records li{
  border-color:#eadfd0;
}

.order-staff-records{
  border-radius:8px;
}

.order-staff-records time{
  color:#7b5523;
}

.order-settings-status{
  border:1px solid #e2d2ba;
  color:#7b5523;
  background:#fff7e8;
}

.order-settings-input button{
  border:1px solid #d9c29d;
  border-radius:8px;
  color:#1d1a16;
  background:var(--oc-gold-soft);
}

.order-chip{
  border-color:#e7ded2;
  border-radius:8px;
  background:#fffefa;
}

.order-chip button:hover:not(:disabled){
  background:#fff7e8;
}

.order-empty{
  border-color:#d9cfc0;
  border-radius:8px;
  color:#777265;
  background:#faf6ef;
}

.order-lock{
  background:
    linear-gradient(180deg,#f8f6f1 0%,var(--oc-bg) 100%);
}

.order-lock article{
  padding:26px;
}

.order-lock img{
  width:56px;
  height:56px;
  border-radius:8px;
  border:1px solid rgba(199,154,85,.28);
}

.order-lock span{
  color:#8b632f;
  letter-spacing:0;
}

.order-lock h1{
  color:var(--oc-ink);
}

.order-lock p{
  color:var(--oc-muted);
}

.order-lock label,
.order-form-grid label{
  color:#29313a;
}

.order-sheet-backdrop{
  background:rgba(21,26,34,.42);
  backdrop-filter:blur(10px);
}

.order-sheet{
  padding:0;
  overflow:hidden;
}

.order-sheet form{
  max-height:min(88vh,780px);
  overflow:auto;
  padding:18px;
}

.order-sheet header{
  margin:-18px -18px 16px;
  border-bottom-color:#e8ded0;
  background:rgba(255,253,248,.96);
}

.order-sheet header span{
  color:#8b632f;
  letter-spacing:0;
}

.order-sheet header h2{
  color:var(--oc-ink);
}

.order-sheet-actions{
  border-top-color:#e8ded0;
  background:rgba(255,253,248,.96);
}

.order-sheet-actions button:not(.order-primary){
  border-color:#e1d7ca;
  color:#253a57;
  background:#fffefa;
}

.order-sheet-actions button:not(.order-primary):hover{
  background:#fff7e8;
}

@media (min-width:980px){
  .order-app{
    width:min(1120px,100%);
    padding:34px 28px 96px;
  }

  .order-panel[data-order-panel="overview"].active{
    grid-template-columns:360px minmax(0,1fr);
    gap:18px;
  }

  .order-stats{
    position:sticky;
    top:86px;
  }

  .order-card{
    padding:20px;
  }
}

@media (max-width:520px){
  .order-app{
    padding:20px 12px 82px;
  }

  .order-header{
    align-items:flex-start;
    gap:10px;
  }

  .order-brand{
    gap:8px;
    min-width:0;
  }

  .order-brand img{
    display:block;
    width:34px;
    height:34px;
  }

  .order-header h1{
    min-width:0;
    font-size:17px;
    white-space:normal;
  }

  .order-header h1 span{
    display:block;
    margin-top:2px;
    font-size:18px;
  }

  .order-header p{
    margin-left:42px;
    font-size:12px;
  }

  .order-header-actions strong{
    min-height:30px;
    padding:6px 9px;
    font-size:12px;
  }

  .order-header-actions a{
    width:36px;
    height:36px;
  }

  .order-tabs{
    top:0;
    display:flex;
    overflow-x:auto;
    scrollbar-width:none;
    margin-inline:-2px;
    margin-bottom:14px;
  }

  .order-tabs::-webkit-scrollbar{
    display:none;
  }

  .order-tabs button{
    flex:0 0 88px;
    min-height:40px;
    font-size:12px;
  }

  .order-card,
  .order-stat{
    box-shadow:0 12px 34px rgba(32,27,18,.07);
  }

  .order-stat strong{
    font-size:28px;
  }

  .order-item{
    grid-template-columns:64px minmax(0,1fr);
    gap:10px;
  }

  .order-main-head{
    grid-template-columns:1fr;
    gap:3px;
  }

  .order-card-actions{
    grid-template-columns:1fr 1fr;
  }

  .order-card-action:last-child{
    grid-column:1/-1;
  }

  .order-sheet-backdrop{
    padding:8px;
  }

  .order-sheet form{
    max-height:92vh;
    padding:16px;
  }

  .order-sheet header{
    margin:-16px -16px 14px;
    padding:14px 16px;
  }

  .order-sheet-actions{
    margin:16px -16px -16px;
    padding:12px 16px 16px;
  }
}

@media print{
  body.order-center-page{
    background:#fff;
    font-size:11px;
    line-height:1.32;
  }
  @page{
    size:A4;
    margin:8mm;
  }
  .order-app,
  .order-lock,
  .order-sheet-backdrop{
    display:none!important;
  }
  .order-print{
    display:block;
    width:194mm;
    max-height:281mm;
    overflow:hidden;
    color:#101828;
    font-family:Arial,"Microsoft YaHei",sans-serif;
    font-size:11px;
    line-height:1.32;
  }
  .order-print-paper{
    width:194mm;
    max-height:281mm;
    margin:0 auto;
    padding:0;
    overflow:hidden;
  }
  .order-print-letterhead{
    display:grid;
    grid-template-columns:minmax(0,1fr) 180px;
    gap:14px;
    align-items:start;
    padding-bottom:10px;
    margin-bottom:8px;
    border-bottom:2px solid #101828;
  }
  .order-print-brand{
    display:flex;
    gap:10px;
    align-items:flex-start;
  }
  .order-print-brand img{
    width:46px;
    height:46px;
    border-radius:50%;
    object-fit:cover;
  }
  .order-print-brand strong{
    display:block;
    font-size:21px;
    line-height:1.05;
  }
  .order-print-brand span,
  .order-print-brand small{
    display:block;
    color:#667085;
    font-size:9px;
    font-weight:700;
    line-height:1.32;
    letter-spacing:0;
  }
  .order-print-doc{
    text-align:right;
  }
  .order-print-doc span{
    display:block;
    color:#9a6a2e;
    font-size:9px;
    font-weight:900;
    letter-spacing:0;
  }
  .order-print-doc strong{
    display:block;
    margin-top:3px;
    font-size:18px;
  }
  .order-print-doc em{
    display:inline-flex;
    margin-top:6px;
    padding:4px 9px;
    border:1px solid #9a6a2e;
    border-radius:999px;
    color:#7a4d16;
    font-style:normal;
    font-weight:900;
  }
  .order-print-meta,
  .order-print-two{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:6px;
    margin-bottom:7px;
  }
  .order-print-meta div,
  .order-print-box,
  .order-print-section,
  .order-print-payment,
  .order-print-terms,
  .order-print-sign div{
    padding:7px;
    border:1px solid #d0d5dd;
    border-radius:6px;
    background:#fff;
  }
  .order-print-meta span,
  .order-print-total span{
    display:block;
    color:#667085;
    font-size:8px;
    font-weight:900;
    letter-spacing:0;
    text-transform:uppercase;
  }
  .order-print-meta strong{
    display:block;
    margin-top:2px;
    font-size:10.5px;
    overflow-wrap:anywhere;
  }
  .order-print-two{
    grid-template-columns:1fr 1fr;
  }
  .order-print-box h3,
  .order-print-section h3,
    .order-print-pay-note h3,
    .order-print-terms h3{
    margin:0 0 5px;
    font-size:11px;
  }
  .order-print-box p,
  .order-print-pay-note p{
    margin:2px 0;
    color:#344054;
    font-size:10px;
    line-height:1.32;
  }
  .order-print-box b{
    color:#101828;
    font-size:12px;
  }
  .order-print-section{
    margin-bottom:7px;
  }
  .order-print-items{
    width:100%;
    border-collapse:collapse;
    font-size:10px;
  }
  .order-print-items th{
    padding:4px 5px;
    border-bottom:1px solid #98a2b3;
    color:#475467;
    font-size:8px;
    letter-spacing:0;
    text-align:left;
    text-transform:uppercase;
  }
  .order-print-items td{
    padding:5px;
    border-bottom:1px solid #eaecf0;
    vertical-align:top;
  }
  .order-print-items td:nth-child(1),
  .order-print-items td:nth-child(3){
    width:34px;
    text-align:center;
  }
  .order-print-items td:nth-child(4),
  .order-print-items td:nth-child(5),
  .order-print-items th:nth-child(4),
  .order-print-items th:nth-child(5){
    text-align:right;
  }
  .order-print-items strong,
  .order-print-items span{
    display:block;
  }
  .order-print-items span{
    margin-top:1px;
    color:#667085;
  }
  .order-print-menu{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:6px;
  }
  .order-print-menu-group{
    padding:7px;
    border:1px solid #eaecf0;
    border-radius:6px;
    background:#f8fafc;
  }
  .order-print-menu-group strong{
    display:block;
    margin-bottom:3px;
    color:#7a4d16;
    font-size:10.5px;
  }
  .order-print-menu-group ul{
    margin:0;
    padding-left:14px;
    color:#344054;
    line-height:1.25;
  }
  .order-print-menu-note{
    grid-column:1/-1;
    color:#7a4d16;
    font-size:9px;
    font-weight:900;
  }
  .order-print-payment{
    display:grid;
    grid-template-columns:minmax(0,1fr) 230px;
    gap:8px;
    margin-bottom:7px;
  }
  .order-print-total{
    padding-left:8px;
    border-left:3px solid #101828;
  }
  .order-print-total div{
    display:flex;
    justify-content:space-between;
    gap:12px;
    padding:3px 0;
    border-bottom:1px solid #eaecf0;
  }
  .order-print-total div:last-child{
    border-bottom:0;
  }
  .order-print-total strong{
    font-size:15px;
  }
  .order-print-total .is-due strong{
    color:#b42318;
  }
  .order-print-total .is-clear strong{
    color:#0f9f6e;
  }
  .order-print-footer-grid{
    display:grid;
    grid-template-columns:minmax(0,1fr) 240px;
    gap:8px;
    align-items:stretch;
  }
  .order-print-terms ol{
    margin:0;
    padding-left:15px;
    color:#344054;
    font-size:9px;
    line-height:1.32;
  }
  .order-print-sign{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
  }
  .order-print-sign div{
    min-height:50px;
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
  }
  .order-print-sign span{
    display:block;
    padding-top:4px;
    border-top:1px solid #98a2b3;
    color:#475467;
    font-size:9px;
    font-weight:900;
  }
  .order-print-sign b{
    margin-top:2px;
    font-size:10px;
  }
}
