/* A3 세신샵 전용 화면 요소. 기본 레이아웃·테마는 styles.css / ipad.css / theme.css를 그대로 사용합니다. */
.brand-word .store-name{display:block;font-size:18px;letter-spacing:1px;line-height:1.1}
.brand-word small{margin-top:3px}
/* bed states */
.seat.bed-running{border-top-color:#258274}
.seat.bed-scheduled{border-top-color:#5b7bd5;background:#f2f5fc}
.seat.bed-overtime{border-top-color:var(--red);background:#fff3f1;animation:a3-pulse 1.6s ease-in-out infinite}
.seat.bed-ended{border-top-color:var(--amber);background:#fff8ea}
.seat-state.bed-running{color:#258274;font-weight:700}
.seat-state.bed-scheduled{color:#4b67b8;font-weight:700}
.seat-state.bed-overtime{color:var(--red);font-weight:700}
.seat-state.bed-ended{color:var(--amber);font-weight:700}
.seat-meta [data-bed-timer]{font-weight:700;font-variant-numeric:tabular-nums}
.seat-lines b{color:var(--ink)}
@keyframes a3-pulse{0%,100%{box-shadow:0 2px 4px #163e2510}50%{box-shadow:0 0 0 4px #ba4f4833}}
/* therapist strip under the board */
.floor-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px}
.therapist-strip{display:flex;flex-wrap:wrap;gap:6px;min-width:0;flex:1}
.therapist-chip{display:flex;flex-direction:column;gap:1px;padding:5px 10px;border:1px solid var(--line);border-radius:6px;background:var(--paper);font-size:11px;line-height:1.3;min-width:120px}
.therapist-chip strong{font-size:12px}
.therapist-chip span{color:var(--muted)}
.therapist-chip em{font-style:normal;color:var(--amber);font-weight:700}
.therapist-chip.is-off{opacity:.65;border-style:dashed}
/* bed drawer pickers */
.bed-pickers{display:flex;flex-direction:column;gap:10px;overflow:auto;min-height:0}
.bed-pickers .order-section-title{margin:4px 0 0}
.therapist-grid,.service-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:8px}
.therapist-card,.service-card{text-align:left;background:var(--paper);border:2px solid var(--line);border-radius:10px;padding:10px 12px;display:flex;flex-direction:column;gap:4px;min-height:84px;transition:border-color .12s,box-shadow .12s}
.therapist-card:hover,.service-card:hover{border-color:#87b5a1}
.therapist-card.selected,.service-card.selected{border-color:var(--teal);background:var(--teal-soft);box-shadow:0 0 0 2px #16726922}
.therapist-card.is-off{border-style:dashed}
.therapist-card-head{display:flex;align-items:center;justify-content:space-between;gap:6px;flex-wrap:wrap}
.therapist-card-head strong{font-size:15px}
.therapist-card-row{display:flex;align-items:baseline;gap:6px;font-size:12px}
.therapist-card-row span{color:var(--muted);min-width:64px}
.therapist-card-row b{font-size:14px;font-variant-numeric:tabular-nums}
.therapist-card-row small{color:var(--muted)}
.therapist-card-foot{font-size:11px;color:var(--muted);margin-top:auto}
.service-card strong{font-size:15px}
.service-card span{font-size:12px;color:var(--muted)}
.service-card b{font-size:16px;font-variant-numeric:tabular-nums}
.service-card small{color:var(--muted);text-decoration:line-through}
.service-card small.no-strike{text-decoration:none;color:var(--amber)}
.service-card:disabled{opacity:.5;cursor:not-allowed}
.payment-toggle{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-bottom:10px}
.payment-toggle label{position:relative;border:2px solid var(--line);border-radius:8px;padding:9px 10px;text-align:center;cursor:pointer;font-weight:600;background:var(--paper)}
.payment-toggle label.active{border-color:var(--teal);background:var(--teal-soft)}
.payment-toggle input{position:absolute;opacity:0;pointer-events:none}
.bed-timer{font-size:34px;font-weight:800;letter-spacing:-1px;text-align:center;padding:12px;border-radius:10px;background:var(--teal-soft);color:var(--teal);font-variant-numeric:tabular-nums;margin-bottom:10px}
.bed-timer.bed-overtime{background:#fff3f1;color:var(--red)}
.bed-timer.bed-scheduled{background:#f2f5fc;color:#4b67b8;font-size:22px}
.bed-actions{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end;margin-top:8px}
.bed-actions .btn.primary{flex:1 1 160px}
.payment-toggle{grid-template-columns:repeat(3,1fr)}
.manual-amount{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:10px}
.manual-amount.is-set .btn{border-color:var(--amber);background:var(--amber-soft)}
/* keypad */
.keypad-modal{max-width:380px}
.keypad-display{font-size:34px;font-weight:800;text-align:center;padding:12px;border:2px solid var(--line);border-radius:10px;background:var(--paper);font-variant-numeric:tabular-nums;margin-bottom:10px}
.keypad-grid button{min-height:56px;font-size:22px}
.keypad-shortcuts{display:flex;gap:6px;justify-content:center;margin:10px 0}
/* expenses */
.expense-layout{align-items:start}
.expense-side{display:flex;flex-direction:column;gap:14px}
.amount-button{width:100%;min-height:44px;font-size:16px;font-weight:700}
@media (max-width:899px){.expense-layout{grid-template-columns:1fr}}
/* bed resize handles in the layout editor (same look as counter handles) */
html[data-design] .editor-board .seat.selected{overflow:visible;z-index:3}
.editor-board .seat.selected .seat-resize{display:flex}
.editor-board .seat .seat-resize{position:absolute;width:32px;height:32px;min-height:32px;display:none;align-items:center;justify-content:center;padding:0;background:transparent;touch-action:none;z-index:7;border:0}
.editor-board .seat .seat-resize.nw{left:-16px;top:-16px;cursor:nwse-resize}
.editor-board .seat .seat-resize.ne{right:-16px;top:-16px;cursor:nesw-resize}
.editor-board .seat .seat-resize.sw{left:-16px;bottom:-16px;cursor:nesw-resize}
.editor-board .seat .seat-resize.se{right:-16px;bottom:-16px;cursor:nwse-resize}
/* .panel has no padding of its own; direct form/toolbar children get the same inset as .panel-title */
.panel>form:not(.modal-body),.panel>.inline-actions,.statement-controls>.inline-actions{padding:16px 22px}
.panel>.panel-title+form:not(.modal-body){padding-top:14px}
.panel>form .modal-actions{margin-top:12px}
.statement-head{padding:18px 22px 0}
.statement-foot{padding:0 22px 16px;margin-top:10px}
.shifts-range{padding:12px 22px 16px;gap:12px;align-items:flex-end;flex-wrap:wrap}
.shifts-range .field{min-width:160px}
/* Color presets: when a non-default preset is active, components with hard-coded blues follow the variables. */
html.has-preset .primary-nav button.active,html.has-preset .category-tabs button.active{background:var(--teal);color:#fff}
html.has-preset .category-tabs{border-bottom-color:var(--teal)}
html.has-preset .btn.primary{background:var(--teal);border-color:var(--teal);color:#fff}
html.has-preset .btn.primary:hover{filter:brightness(.92)}
html.has-preset .seat.occupied,html.has-preset[data-design] .floor-page .seat.occupied:not(.waiting){background:var(--teal);border-color:var(--teal);color:#fff}
html.has-preset .legend i{background:var(--teal)}
html.has-preset .editor-board .seat.selected,html.has-preset .editor-board .bar-counter.selected{outline-color:var(--teal)}
html.has-preset button:focus-visible,html.has-preset input:focus-visible,html.has-preset select:focus-visible,html.has-preset textarea:focus-visible{outline-color:var(--teal)}
html.has-preset .topbar{background:var(--nav)}
html.has-preset[data-theme="dark"] .primary-nav button.active{background:var(--teal);color:#0b1420}
html.has-preset[data-theme="dark"] .btn.primary{background:var(--teal);border-color:var(--teal);color:#0b1420}
html.has-preset[data-theme="dark"] .seat.occupied,html.has-preset[data-design][data-theme="dark"] .floor-page .seat.occupied:not(.waiting){background:var(--teal-soft);border-color:var(--teal);color:var(--ink)}
.design-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px;padding:16px 22px}
.design-card{text-align:left;border:2px solid var(--line);border-radius:10px;background:var(--paper);padding:0;overflow:hidden;display:flex;flex-direction:column}
.design-card.selected{border-color:var(--teal);box-shadow:0 0 0 2px #0002}
.design-preview{display:flex;flex-direction:column;height:84px}
.design-preview .dp-nav{height:22px;display:flex;align-items:center;gap:6px;padding:0 8px}
.design-preview .dp-nav i{display:block;width:26px;height:6px;border-radius:2px;background:#ffffff66}
.design-preview .dp-nav i.on{background:var(--dp-accent)}
.design-preview .dp-body{flex:1;display:flex;gap:6px;padding:8px;background:var(--dp-bg)}
.design-preview .dp-body span{flex:1;border-radius:4px;border:1px solid var(--dp-line);background:var(--dp-paper)}
.design-preview .dp-body span.on{background:var(--dp-accent);border-color:var(--dp-accent)}
.design-preview .dp-body b{width:34px;border-radius:4px;background:var(--dp-accent)}
.design-card strong{padding:10px 12px;font-size:14px}
.design-custom{padding:4px 22px 18px;display:flex;gap:16px;flex-wrap:wrap;align-items:flex-end}
.design-custom input[type=color]{width:64px;height:40px;padding:2px;border:1px solid var(--line);border-radius:6px;background:var(--paper)}
/* reserve time grid */
.time-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(118px,1fr));gap:6px;max-height:48vh;overflow:auto;padding:2px}
.time-chip{display:flex;align-items:center;justify-content:center;border:2px solid var(--line);border-radius:8px;padding:9px 6px;cursor:pointer;font-size:13px;background:var(--paper)}
.time-chip.current{border-color:#87b5a1}
.time-chip:has(input:checked){border-color:var(--teal);background:var(--teal-soft);font-weight:700}
.time-chip input{position:absolute;opacity:0;pointer-events:none}
/* day-off calendar */
.dayoff-nav{display:flex;align-items:center;justify-content:center;gap:14px;margin-bottom:10px}
.dayoff-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}
.dayoff-head{text-align:center;font-size:11px;color:var(--muted);padding:4px 0}
.dayoff-cell{border:1px solid var(--line);border-radius:6px;background:var(--paper);min-height:46px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:13px}
.dayoff-cell small{font-size:10px;color:var(--amber);font-weight:700}
.dayoff-cell.is-off{background:var(--amber-soft);border-color:var(--amber)}
.dayoff-cell.today{outline:2px solid var(--teal);outline-offset:-2px}
/* statement */
.statement-controls .inline-actions{align-items:flex-end;flex-wrap:wrap;gap:12px}
.statement-head{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:14px}
.statement-totals{display:grid;grid-template-columns:repeat(4,auto);gap:14px}
.statement-totals div{display:flex;flex-direction:column;gap:2px;padding:8px 12px;border:1px solid var(--line);border-radius:8px;background:var(--paper);min-width:110px}
.statement-totals span{font-size:11px;color:var(--muted)}
.statement-totals strong{font-size:17px;font-variant-numeric:tabular-nums}
.statement-totals small{font-size:10px;color:var(--muted)}
.statement-incentive{color:var(--teal)}
.statement-table tr.is-off td{background:var(--amber-soft)}
.statement-table tr.is-empty td{color:var(--muted)}
.statement-detail{font-size:11px;line-height:1.5;color:var(--muted)}
.statement-table tfoot th{text-align:left;background:var(--teal-soft)}
.statement-foot{margin-top:10px;font-size:11px;color:var(--muted)}
@media print{
  body.printing-statement *{visibility:hidden}
  body.printing-statement #statement-print,body.printing-statement #statement-print *{visibility:visible}
  body.printing-statement #statement-print{position:absolute;left:0;top:0;width:100%;box-shadow:none;border:0;padding:0;background:#fff;color:#000}
  body.printing-statement .statement-totals div{border-color:#999}
  body.printing-statement .statement-table{font-size:11px}
}
@media (max-width:899px){
  .therapist-grid,.service-grid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr))}
  .statement-totals{grid-template-columns:repeat(2,1fr)}
  .bed-timer{font-size:26px}
}
