/* Cinnabar / warm-gold POS workspace: one revenue path, supporting detail. */
/* Narrow screens keep useful explanations readable, with table scrolling
   confined to each table rather than shrinking financial labels. */
.pos-sales-entry{display:flex;align-items:center;justify-content:space-between;gap:22px;padding:20px;margin:0 0 18px;background:#fff9ef}.pos-sales-entry>div:first-child{flex:1;min-width:0}.pos-sales-entry h2{font-size:15px;line-height:1.6}.pos-sales-entry p{font-size:11px;color:var(--muted);line-height:1.9;margin-top:6px;max-width:700px}.pos-sales-entry>div:last-child{display:flex;flex-wrap:wrap;gap:9px;flex:none}.pos-sales-entry .btn{font-size:12px}
@media(max-width:950px){.pos-sales-entry{align-items:flex-start;flex-direction:column;gap:15px}}@media(max-width:760px){.pos-sales-entry{padding:16px;margin-bottom:15px}.pos-sales-entry h2{font-size:13px}.pos-sales-entry p{font-size:10px}.pos-sales-entry>div:last-child{width:100%}.pos-sales-entry .btn{font-size:11px;flex:1;justify-content:center;min-height:40px}}
.pos-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));list-style:none;margin:0 0 20px;padding:0;gap:12px}.pos-steps[hidden]{display:none}.pos-steps li{display:flex;align-items:center;gap:11px;padding:13px 16px;border:1px solid var(--line);border-radius:8px;background:#fff}.pos-steps b{width:29px;height:29px;display:grid;place-items:center;border-radius:50%;background:#f2ece2;color:var(--muted);font-size:12px;flex:none}.pos-steps strong,.pos-steps small{display:block}.pos-steps strong{font-size:12px}.pos-steps small{font-size:10px;color:var(--muted);margin-top:4px;line-height:1.5}.pos-steps .is-current{border-color:#c8a07c;background:#fff8ef}.pos-steps .is-current b,.pos-steps .is-done b{background:var(--brand);color:#fff}.pos-import-panel,.pos-review-panel,.pos-detail-panel,.pos-history{padding:22px;margin-bottom:18px;min-width:0}.pos-import-panel[hidden]{display:none}.pos-section-title{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:17px}.pos-section-title h2,.pos-detail-panel h2,.pos-batch-heading h2{font-size:16px;line-height:1.5}.pos-section-title h3{font-size:14px}.pos-section-title p,.pos-batch-heading p{font-size:11px;line-height:1.8;color:var(--muted);margin-top:5px}.pos-section-title>.btn,.pos-section-title>.pos-status{flex:none}.pos-status{display:inline-flex;padding:4px 8px;border-radius:4px;color:#845822;background:#f9edcf;font-size:10px;line-height:1.5;white-space:nowrap}.pos-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:18px 0}.pos-form-grid .field{min-width:0;font-size:12px;line-height:1.6}.pos-form-grid input,.pos-dish-filters input,.pos-dish-filters select,.pos-batch-heading select{width:100%;min-width:0;min-height:41px;font-size:13px;padding:8px 10px}.pos-form-grid small{font-size:10px;color:var(--muted);line-height:1.65;font-weight:400}.pos-file-inputs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0}.pos-file-input{padding:16px;border:1px dashed #ccbda8;border-radius:8px;display:flex;flex-direction:column;gap:10px;min-width:0;background:#fffdf8}.pos-file-input>span{display:flex;align-items:center;gap:9px}.pos-file-input strong{font-size:13px}.pos-file-input em{font-size:10px;line-height:1.5;color:var(--brand);font-style:normal;background:#f9e9df;padding:2px 5px;border-radius:3px}.pos-file-input>small{font-size:10px;line-height:1.75;color:var(--muted);min-height:36px}.pos-file-input input{font-size:11px;min-width:0;width:100%;margin-top:auto}.pos-file-input input::file-selector-button{padding:7px 9px;margin-right:7px;border:1px solid var(--line);background:#fff;color:var(--brand);border-radius:4px;cursor:pointer;font-size:11px}.pos-hint{font-size:11px;line-height:1.85;color:var(--muted);margin:12px 0}.pos-form-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:18px}.pos-form-actions .btn{justify-content:center}.pos-equation{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:13px 0 18px}.pos-equation>div{padding:15px 12px;border:1px solid var(--line);border-radius:7px;background:#fff}.pos-equation span{display:block;font-size:10px;color:var(--muted)}.pos-equation strong{display:block;font-size:20px;letter-spacing:-.4px;margin-top:8px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums;line-height:1.4}.pos-equation .pos-equation-result{background:var(--brand);color:white;border-color:var(--brand)}.pos-equation-result span{color:#f8ddd2}.pos-day-preview{padding:19px 0;border-top:1px solid var(--line)}.pos-day-preview>.pos-section-title{align-items:center;margin-bottom:11px}.pos-pending{display:flex;gap:14px;align-items:flex-start;padding:13px 15px;background:#fff7e7;border:1px solid #eddbb9;border-radius:7px;margin:16px 0}.pos-pending>.pos-status{flex:none;background:#f1dfb7}.pos-pending p{font-size:11px;line-height:1.85;color:#806132;margin:0}.pos-checks{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0}.pos-checks>div{padding:11px 13px;background:#faf7f1;border-radius:6px}.pos-checks span,.pos-checks small{display:block}.pos-checks span{font-size:11px;color:var(--ink)}.pos-checks small{font-size:10px;color:var(--muted);line-height:1.7;margin-top:4px}.pos-channel-details{margin-top:15px}.pos-channel-details summary,.pos-notes summary,.pos-source-panel summary{font-size:12px;cursor:pointer;line-height:1.8;color:var(--brand)}.pos-channel-details[open] summary{margin-bottom:12px}.pos-table-wrap{overflow-x:auto;max-width:100%;border:1px solid var(--line);border-radius:7px;scrollbar-width:thin}.pos-table{width:100%;border-collapse:collapse;font-size:11px;min-width:500px}.pos-table th,.pos-table td{padding:12px 13px;border-bottom:1px solid #efe8dc;text-align:right;font-variant-numeric:tabular-nums;line-height:1.65;vertical-align:middle}.pos-table thead th{background:#faf5eb;color:var(--muted);font-size:10px;font-weight:500;white-space:nowrap}.pos-table th:first-child{text-align:left}.pos-table tbody th{font-weight:500}.pos-table tbody tr:last-child>*{border-bottom:0}.pos-table tbody strong{font-weight:600}.pos-table td small,.pos-table th small{display:block;color:var(--muted);font-size:10px;line-height:1.6;margin-top:3px}.pos-table .pos-zero{color:#966021}.pos-conflict{padding:13px 15px;margin-top:14px;border:1px solid #d9b29d;background:#fff4ee;border-radius:6px;font-size:11px;color:#884738;line-height:1.8}.pos-conflict p{margin-top:5px}.pos-notes{margin:16px 0;background:#fffaf1;border:1px solid var(--line);border-radius:7px;padding:13px 15px}.pos-notes ul{font-size:11px;color:var(--muted);line-height:1.9;padding-left:20px;margin:10px 0 0}.pos-confirm-area{border-top:1px solid var(--line);margin-top:18px;padding-top:16px}.pos-confirm-area .check-label{font-size:12px;line-height:1.8;margin:10px 0;align-items:flex-start}.pos-confirm-area .check-label input{flex:none;margin-top:4px}.pos-confirm-area .form-error:not(:empty){margin:12px 0}.pos-file-list{display:grid;gap:10px;margin-top:14px}.pos-file-list>div{border-top:1px solid var(--line);padding-top:10px;display:grid;grid-template-columns:130px minmax(0,1fr) auto;gap:10px;align-items:start;font-size:11px;line-height:1.7}.pos-file-list>div:first-child{border:0;padding-top:0}.pos-file-list span,.pos-file-list small{color:var(--muted);font-size:10px}.pos-file-list strong{font-weight:500;overflow-wrap:anywhere}.pos-batches{border-top:1px solid var(--line)}.pos-batch{display:flex;align-items:center;gap:18px;padding:19px 0;border-bottom:1px solid var(--line)}.pos-batch:last-child{border-bottom:0;padding-bottom:0}.pos-batch>div:first-child{flex:1;min-width:0}.pos-batch strong{display:block;font-size:14px;line-height:1.6;overflow-wrap:anywhere}.pos-batch small{display:block;font-size:10px;color:var(--muted);line-height:1.7;margin-top:4px}.pos-batch-amount{text-align:right;flex:none}.pos-batch-amount>span{font-size:10px;color:var(--muted)}.pos-batch-amount>strong{color:var(--brand);font-size:21px;margin-top:4px}.pos-batch>.icon{width:15px;height:15px;color:var(--muted);flex:none}.pos-batch.is-replaced{opacity:.66}.pos-empty{text-align:center;padding:26px 20px 18px}.pos-empty>.icon{width:35px;height:35px;color:#b18459;margin-bottom:12px}.pos-empty h3{font-size:16px}.pos-empty p{font-size:12px;line-height:1.9;color:var(--muted);margin:10px auto 18px;max-width:460px}.pos-bottom-links{display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;margin:19px 0}.pos-bottom-links>a,.pos-detail-top>a{font-size:12px;color:var(--brand);display:flex;align-items:center;gap:5px}.pos-bottom-links .icon,.pos-detail-top .icon{width:13px;height:13px}.pos-detail-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;gap:12px}.pos-batch-heading{padding:18px 22px;margin:15px 0;display:flex;align-items:center;justify-content:space-between;gap:20px}.pos-batch-heading>.field{font-size:10px;min-width:180px}.pos-dish-note{padding:12px 14px;font-size:11px;line-height:1.85;color:#806132;background:#fff6e5;border-radius:6px;margin-bottom:16px}.pos-dish-filters{display:grid;grid-template-columns:minmax(0,1fr) 190px;gap:14px;margin-bottom:16px;max-width:640px}.pos-dish-filters .field{font-size:11px;min-width:0}.pos-dish-table{min-width:600px}.pos-dish-table td:last-child{text-align:left;font-size:10px;width:190px}.pos-dish-table tbody th{max-width:240px;min-width:155px}.pos-dish-table .pos-no-match{text-align:center;padding:28px;color:var(--muted)}.pos-pagination{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-top:13px}.pos-pagination>small{font-size:10px;color:var(--muted)}.pos-pagination>div{display:flex;gap:8px}.pos-pagination button{font-size:10px;min-height:30px}.pos-source-panel{padding:16px 20px}.pos-source-panel summary{font-weight:600}.pos-source-panel .pos-hint{margin-bottom:0}#pos-preview{scroll-margin-top:22px}.pos-import-panel :focus-visible,.pos-review-panel :focus-visible,.pos-detail-panel :focus-visible{outline:2px solid #a95c3c;outline-offset:3px}
@media(max-width:1200px){.pos-equation{grid-template-columns:repeat(3,minmax(0,1fr))}.pos-equation .pos-equation-result{grid-column:span 2}.pos-file-inputs{grid-template-columns:1fr}.pos-file-input>small{min-height:0}.pos-file-input{display:grid;grid-template-columns:1fr 1.2fr;gap:8px 16px}.pos-file-input>small{grid-column:1;grid-row:2}.pos-file-input>input{grid-column:2;grid-row:1/3;align-self:center;margin:0}.pos-steps li{padding:12px}.pos-steps small{font-size:9px}}
@media(max-width:760px){.pos-steps{gap:6px;margin-bottom:15px}.pos-steps li{padding:10px 7px;gap:6px;flex-direction:column;align-items:flex-start}.pos-steps b{width:23px;height:23px;font-size:10px}.pos-steps strong{font-size:10px}.pos-steps small{font-size:9px;line-height:1.65;margin-top:4px}.pos-import-panel,.pos-review-panel,.pos-detail-panel,.pos-history{padding:16px;margin-bottom:14px}.pos-section-title{gap:10px;margin-bottom:14px;flex-wrap:wrap}.pos-section-title h2,.pos-detail-panel h2,.pos-batch-heading h2{font-size:14px}.pos-section-title p,.pos-batch-heading p{font-size:10px}.pos-section-title h3{font-size:13px}.pos-status{font-size:9px;white-space:normal}.pos-form-grid{grid-template-columns:1fr;gap:15px;margin:15px 0}.pos-form-grid .field{font-size:11px}.pos-form-grid input,.pos-dish-filters input,.pos-dish-filters select,.pos-batch-heading select{font-size:16px;min-height:43px}.pos-file-inputs{gap:10px;margin:15px 0}.pos-file-input{display:flex;padding:13px;gap:8px}.pos-file-input strong{font-size:12px}.pos-file-input>input{font-size:11px;margin-top:3px}.pos-file-input input::file-selector-button{padding:8px 10px}.pos-hint{font-size:10px}.pos-form-actions{gap:8px}.pos-form-actions .btn{font-size:12px;min-height:40px}.pos-form-actions>.btn:first-child{flex:1}.pos-equation{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.pos-equation>div{padding:12px 10px}.pos-equation span{font-size:9px}.pos-equation strong{font-size:21px;margin-top:7px}.pos-equation .pos-equation-result{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:14px}.pos-equation-result strong{font-size:24px;margin-top:0}.pos-equation-result span{font-size:11px}.pos-day-preview{padding:16px 0}.pos-pending{padding:12px;flex-direction:column;gap:7px;margin:13px 0}.pos-pending p{font-size:10px}.pos-checks{gap:8px}.pos-checks>div{padding:10px}.pos-checks span{font-size:10px}.pos-checks small{font-size:9px}.pos-table{font-size:10px;min-width:450px}.pos-table th,.pos-table td{padding:10px}.pos-table thead th{font-size:9px}.pos-table th small,.pos-table td small{font-size:9px}.pos-channel-details summary,.pos-notes summary,.pos-source-panel summary{font-size:11px}.pos-notes{padding:12px}.pos-notes ul,.pos-conflict{font-size:10px}.pos-confirm-area .check-label{font-size:11px;gap:9px}.pos-file-list>div{grid-template-columns:1fr;gap:3px}.pos-file-list strong{font-size:11px}.pos-file-list>div>span{font-size:9px}.pos-batch{gap:8px;padding:15px 0;align-items:flex-start}.pos-batch strong{font-size:12px}.pos-batch small{font-size:9px}.pos-batch-amount>strong{font-size:19px;line-height:1.5}.pos-batch-amount>span{font-size:9px}.pos-batch>.icon{display:none}.pos-empty{padding:16px 4px}.pos-empty h3{font-size:14px}.pos-empty p{font-size:11px}.pos-bottom-links>a,.pos-detail-top>a{font-size:11px}.pos-batch-heading{padding:15px;align-items:stretch;flex-direction:column;gap:13px}.pos-batch-heading>.field{min-width:0;font-size:11px}.pos-dish-note{font-size:10px;padding:10px 12px}.pos-dish-filters{grid-template-columns:minmax(0,1fr) 135px;gap:10px}.pos-dish-filters select{font-size:13px}.pos-dish-filters .field{font-size:10px}.pos-dish-table{min-width:555px}.pos-dish-table td:last-child{font-size:9px;min-width:170px}.pos-pagination{gap:7px}.pos-pagination>small{font-size:9px}.pos-pagination button{font-size:9px;padding:5px 8px}.pos-source-panel{padding:14px}.pos-section-title>.btn{font-size:10px}.pos-detail-panel .pos-table-wrap{margin:0}.pos-detail-top{gap:8px}}

@media(max-width:760px){
  .pos-section-title h2,.pos-detail-panel h2,.pos-batch-heading h2,.pos-empty h3,.pos-sales-entry h2{font-size:16px}
  .pos-section-title h3{font-size:15px}
  .pos-steps strong,.pos-steps b,.pos-form-grid .field,.pos-batch-heading>.field,.pos-dish-filters .field{font-size:12px}
  .pos-steps small{font-size:11px;line-height:1.7}
  .pos-section-title p,.pos-batch-heading p,.pos-sales-entry p,.pos-form-grid small,.pos-file-input>small,
  .pos-hint,.pos-pending p,.pos-checks span,.pos-checks small,.pos-notes ul,.pos-conflict,
  .pos-dish-note,.pos-confirm-area .check-label,.pos-empty p{font-size:12px;line-height:1.85;overflow-wrap:anywhere}
  .pos-status,.pos-file-input em{font-size:11px;line-height:1.6}
  .pos-file-input strong,.pos-file-input>input,.pos-file-input input::file-selector-button{font-size:12px}
  .pos-equation span,.pos-equation-result span{font-size:12px;line-height:1.6}
  .pos-equation strong,.pos-equation-result strong,.pos-batch-amount>strong{font-size:24px}
  .pos-equation-result strong{white-space:nowrap;flex:none}
  .pos-table,.pos-table thead th,.pos-table th small,.pos-table td small,.pos-dish-table td:last-child{font-size:12px;line-height:1.75}
  .pos-table{min-width:525px}
  .pos-dish-table{min-width:650px}
  .pos-dish-table td:last-child{min-width:200px}
  .pos-table-wrap::before{content:'表格可左右滑动 →';display:block;position:sticky;left:0;width:100%;box-sizing:border-box;padding:9px 11px;background:#fff3db;border-bottom:1px solid #ead3ad;color:#805821;font-size:12px;font-weight:600;line-height:1.6;text-align:left}
  .pos-channel-details summary,.pos-notes summary,.pos-source-panel summary{font-size:12px;line-height:1.8}
  .pos-file-list strong,.pos-file-list>div>span,.pos-file-list small{font-size:12px;line-height:1.8;overflow-wrap:anywhere}
  .pos-batch strong{font-size:14px}
  .pos-batch small,.pos-batch-amount>span,.pos-pagination>small,.pos-bottom-links>a,.pos-detail-top>a{font-size:12px;line-height:1.75}
  .pos-batch-amount>strong{font-size:24px}
  .pos-pagination{align-items:flex-start;flex-wrap:wrap}
  .pos-pagination button,.pos-section-title>.btn,.pos-sales-entry .btn{font-size:12px;min-height:36px}
  .pos-form-actions .btn{font-size:13px}
}

/* One main amount; optional explanations stay out of the first read. */
.pos-income-result{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 20px;border:1px solid #d9b99b;border-radius:9px;background:#fff6eb;margin:12px 0}.pos-income-result span,.pos-income-result small{display:block}.pos-income-result span{font-size:15px;font-weight:600}.pos-income-result small{font-size:12px;color:var(--muted);line-height:1.8;margin-top:5px}.pos-income-result strong{font-size:28px;line-height:1.5;color:var(--brand);white-space:nowrap}.pos-equation-details>summary,.pos-extra-files>summary{font-size:14px;line-height:1.8;color:var(--brand);cursor:pointer;font-weight:600}.pos-equation-details{margin:12px 0 18px}.pos-equation span small{display:block;font-size:11px;line-height:1.6;margin-top:4px;opacity:.8}.pos-main-files{grid-template-columns:1fr!important}.pos-extra-files{border-top:1px solid var(--line);padding-top:15px;margin-top:18px}.pos-extra-files[open]>summary{margin-bottom:12px}.pos-extra-files .pos-file-inputs{grid-template-columns:repeat(2,minmax(0,1fr))}.pos-extra-files>.field{font-size:14px;max-width:500px;gap:8px}.pos-extra-files input[type=date]{min-height:42px;font-size:14px}.pos-extra-files .field small{font-size:13px;line-height:1.8;color:var(--muted)}
.pos-form-grid .field,.pos-file-input strong,.pos-form-actions .btn,.pos-section-title p,.pos-section-title>.btn,.pos-empty p,.pos-pending p,.pos-hint,.pos-confirm-area .check-label{font-size:14px;line-height:1.85}.pos-form-grid small,.pos-file-input>small,.pos-checks span,.pos-checks small,.pos-notes ul,.pos-conflict,.pos-dish-note,.pos-batch small,.pos-bottom-links>a{font-size:13px;line-height:1.85}.pos-form-actions .btn{min-height:44px}.pos-section-title h2,.pos-detail-panel h2{font-size:18px}.pos-steps strong{font-size:14px}.pos-steps small{font-size:12px}.pos-file-input{gap:10px}.pos-file-input input,.pos-file-input input::file-selector-button{font-size:13px;min-height:38px}
@media(max-width:760px){.pos-income-result{align-items:flex-start;flex-direction:column;gap:8px;padding:16px}.pos-income-result strong{font-size:28px}.pos-income-result span{font-size:15px}.pos-income-result small{font-size:13px}.pos-extra-files .pos-file-inputs{grid-template-columns:1fr}.pos-extra-files input[type=date],.pos-form-grid input{font-size:16px;min-height:44px}.pos-steps strong{font-size:13px}.pos-steps small{font-size:11px}.pos-steps li{gap:7px}.pos-form-actions .btn{width:100%;justify-content:center}.pos-equation .pos-equation-result{align-items:flex-start;flex-direction:column}.pos-section-title h2,.pos-detail-panel h2{font-size:17px}.pos-extra-files>summary,.pos-equation-details>summary{font-size:14px}}
