.op{display:grid;grid-template-columns:330px minmax(0,1fr);gap:16px;height:calc(100dvh - 100px);min-height:580px;color:#263645}.op-order{border:1px solid #d9e2ec;border-radius:13px;background:white;padding:16px;display:flex;flex-direction:column;min-height:0}.op-order>header{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #e4e9ef;padding-bottom:10px}.op h2{font-size:17px;margin:0}.op small{color:#62748b;font-size:12px}.op-lines{flex:1;overflow-y:auto;margin:8px 0}.op-empty{height:100%;min-height:150px;display:grid;align-content:center;text-align:center;color:#64748b}.op-empty>span{font-size:35px}.op-empty p{margin:6px}.op-line{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:9px;padding:9px 0}.op-line>div>small{display:block;margin-top:4px}.op-line>aside{text-align:right;font-size:14px}.op-line aside button{display:block;font-size:12px;padding:3px 8px;margin-top:15px;margin-left:auto}.op-image{width:60px;height:60px;border-radius:9px;background:#e8f2ef;display:grid;place-items:center;color:#1c5d51;font-size:26px;overflow:hidden;flex-shrink:0}.op-line .op-image{width:42px;height:42px;font-size:20px}.op-image img{width:100%;height:100%;object-fit:cover}.op .op-note{border-style:dashed;text-align:left;color:#65748b;padding:9px 12px;overflow-wrap:anywhere}.op-total{display:flex;justify-content:space-between;align-items:center;padding:10px 0}.op-total strong{font-size:27px;color:#1c5c50}.op-checkout{font-size:18px;min-height:50px;background:#1c5c50}.op-actions{display:grid;grid-template-columns:1fr 1fr auto;gap:8px;margin-top:8px}.op-actions button{padding:10px 8px}.op .op-danger,.op-modal .op-danger{color:#b23b22;background:#fff;border:1px solid #e9c1b8}.op-catalog{min-width:0;overflow:hidden}.op-catalog>header{display:flex;gap:10px;align-items:center;margin-bottom:12px}.op-catalog>header label{flex:1;min-width:130px;margin:0}.op-catalog>header input{margin:0}.op-tabs{display:flex;gap:4px;background:#e2e8ef;border-radius:10px;padding:3px}.op-tabs button{background:none;color:#62748b;min-width:88px;padding:10px 16px}.op-tabs button[aria-pressed=true]{background:white;color:#1c5c50;box-shadow:0 1px 3px #cbd5e1}.op-browse{display:grid;grid-template-columns:132px minmax(0,1fr);gap:16px;height:calc(100% - 56px)}.op-categories{overflow:auto;display:flex;flex-direction:column;gap:4px}.op-categories button{display:flex;justify-content:space-between;background:transparent;border:0;gap:7px;padding:10px 8px;text-align:left;font-weight:400;flex-shrink:0}.op-categories button[aria-pressed=true]{background:#dceee8;color:#1c5c50;box-shadow:inset 3px 0 #1c5c50}.op-browse>div{overflow:auto}.op-count{font-size:13px;color:#62748b;margin:4px 0 10px}.op-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px;align-content:start}.op-product{display:flex;gap:9px;background:white;color:#243443;border:1px solid #d9e2ec;padding:8px;text-align:left;min-height:77px}.op-product>span:last-child{display:flex;flex-direction:column;justify-content:space-between;gap:14px;font-size:14px;min-width:0}.op-product b{color:#1c5c50}.op-modal{width:min(520px,94vw);padding:25px;border:0;border-radius:18px;color:#253443;max-height:94dvh;overflow:auto}.op-modal::backdrop{background:#173b3666}.op-modal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.op-modal-head h2{margin:0;font-size:22px}.op-modal form>button{width:100%;margin-top:12px;min-height:50px;background:#1c5c50}.op-variants{display:flex;gap:8px}.op-variants button{flex:1;text-align:left}.op-variants b{display:block}.op-variants [aria-pressed=true]{border:2px solid #1c5c50;background:#f1faf7}.op-quantity{display:flex;align-items:center;border:2px solid #1c5c50;border-radius:10px;padding:0 14px}.op-quantity input{border:0;font-size:25px;text-align:right;margin:0}.op-keypad{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:16px 0}.op-keypad button{font-size:23px;min-height:48px;background:#edf2f6;border:0}.op-keypad [data-key="0"]{grid-column:span 3}.op-keypad [data-key="删除"],.op-keypad [data-key="清空"]{font-size:14px;background:white;border:1px solid #cbd5e1}.op-held{display:grid;gap:12px}.op-held>article{border:1px solid #d9e2ec;border-radius:12px;padding:14px}.op-held h3{font-size:16px;margin:0 0 8px}.op-held article>div{display:flex;gap:8px;margin-top:12px}.op-held article button{flex:1}.op-held button small{display:block}.op-held-modal{margin-right:24px;width:430px}.op .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}@media(max-width:1100px){.op{grid-template-columns:290px minmax(0,1fr)}.op-browse{grid-template-columns:110px minmax(0,1fr);gap:8px}.op-tabs button{min-width:55px;padding:10px}.op-catalog>header{flex-wrap:wrap}.op-grid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr))}.op-image{width:42px;height:46px}}@media(max-width:760px){.op{grid-template-columns:1fr;height:auto}.op-order{min-height:350px}.op-catalog{min-height:500px}.op-browse{height:480px}}

.op-quick-notes{display:flex;gap:8px;margin:10px 0}.op-quick-notes button{padding:8px 14px}.op-product:disabled{opacity:.45;cursor:not-allowed}

.ps-surface>.op{padding:24px;height:calc(100dvh - 56px)}.op-browse-single{display:block;overflow:auto}.op-line.op-lesson{grid-template-columns:minmax(0,1fr) auto}.op-quantity>span{white-space:nowrap;flex:none}.op-quantity input{min-width:0;flex:1}.op-modal form{margin-top:0;gap:10px}.op-modal-head{margin-bottom:12px}.op-modal .op-keypad{margin:6px 0;gap:6px}.op-modal .op-keypad button{min-height:42px;padding:6px}.op-modal .op-quick-notes{margin:0}.op-modal form>button{margin-top:0;min-height:46px}.op-modal .error:empty{display:none}@media(max-width:760px){.ps-surface>.op{padding:14px;height:auto}}
.op-packages,.op-package-choice{background:#fff;border:1px solid #d9e2ec;border-radius:12px;padding:16px;height:100%;overflow:auto}.op-packages h3{margin:0 0 8px;font-size:16px}.op-packages .muted{font-size:12px}.op-package-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.op-package-grid .op-package-card{display:flex;align-items:flex-start;gap:12px;text-align:left;padding:10px;background:#fff;color:#263645;min-width:0}.op-package-card>span:last-child{min-width:0}.op-package-card strong,.op-package-card small{display:block;line-height:1.6}.op-package-card small{font-weight:400}.op-package-card b{display:inline-block;margin:4px 10px 0 0;color:#1c5c50;font-size:17px}.op-package-card .op-image{width:64px;height:72px}.op-package-card img,.op-package-choice img{width:100%;height:100%;object-fit:cover}.op-package-choice{display:flex;flex-direction:column;padding:16px}.op-package-choice>header{display:flex;align-items:center;gap:16px;margin-bottom:16px}.op-package-choice>header button{white-space:nowrap;padding:6px;border:0}.op-package-choice h3{font-size:18px;margin:0;flex:1}.op-package-choice>header>strong{font-size:26px;color:#1c5c50}.op-package-choice form{margin:0;display:flex;flex-direction:column;min-height:0;flex:1;gap:0}.op-package-body{overflow:auto;flex:1}.op-package-body h4,.op-package-body legend{font-weight:600;font-size:15px;display:flex;align-items:center;justify-content:space-between;margin:8px 0}.op-package-body h4 small,.op-package-body legend small{font-weight:400}.op-package-body fieldset{border:0;padding:0;margin:16px 0}.op-package-body legend{width:100%}.op-package-items{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:8px}.op-package-item{display:flex!important;align-items:center;gap:9px;border:1px solid #d9e2ec;border-radius:10px;padding:9px!important;background:#fff;margin:0!important;font-weight:400;min-height:76px}.op-package-item .op-image{width:50px;height:50px;font-size:18px}.op-package-item>span:nth-child(2){flex:1}.op-package-item strong{display:block;font-size:14px;line-height:1.5}.op-package-item small{display:block}.op-package-item input{width:20px!important;height:20px;margin:0;flex-shrink:0;accent-color:#1c5c50}.op-package-item.selected{border:2px solid #1c5c50;background:#f2f9f6;padding:8px!important}.op-package-item.required{background:#f6f8fb}.op-package-note{display:flex;align-items:center;gap:10px;margin-top:14px!important}.op-package-note input{margin:0;flex:1}.op-package-quantity{display:flex;align-items:center;gap:10px;width:160px;margin:8px 0!important}.op-package-quantity input{width:90px;margin:0}.op-package-choice footer{border-top:1px solid #d9e2ec;padding-top:10px;display:flex;align-items:center;justify-content:space-between;gap:12px}.op-package-choice footer p{font-size:13px;margin:0}.op-package-choice footer button{white-space:nowrap;background:#1c5c50;padding:14px}.op-package-body .error:empty{display:none}.op-held article>header{display:flex;justify-content:space-between;gap:12px}.op-held article>header strong{white-space:nowrap;font-size:20px}.op-held article>p{font-size:13px;line-height:1.7}.op-cancel-reasons{border:0;padding:0;display:flex;flex-wrap:wrap;gap:8px}.op-cancel-reasons legend{font-size:14px;color:#62748b;margin-bottom:8px}.op-cancel-reasons label{position:relative;display:block;margin:0;padding:10px!important;border:1px solid #cbd5e1;border-radius:8px;font-weight:400;font-size:14px}.op-cancel-reasons label:has(input:checked){border-color:#1c5c50;color:#1c5c50;background:#f1faf7}.op-cancel-reasons input{position:absolute;opacity:0;pointer-events:none;width:1px}.op-cancel-reasons label:focus-within{outline:2px solid #1c5c50;outline-offset:2px}.op-explanation{background:#f5f7fa;padding:14px;line-height:1.8;font-size:13px;margin:0}.op-cancel-actions{display:flex;gap:10px}.op-cancel-actions button{flex:1;min-height:48px}.op-cancel-actions .op-danger{background:#b33b21;color:#fff}.op-merge-modal{width:min(700px,94vw)}.op-merge-filters{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0}.op-merge-filters nav{display:flex;gap:6px}.op-merge-filters nav button{border-radius:20px;padding:8px}.op-merge-filters input{width:170px;margin:0}.op-merge-targets{display:grid;grid-template-columns:1fr 1fr;gap:8px;max-height:48dvh;overflow:auto}.op-merge-targets button{text-align:left;min-height:75px;background:white;color:#263645}.op-merge-targets small{display:block;line-height:1.7;color:#62748b}.op-merge-targets [aria-pressed=true],.op-merge-filters [aria-pressed=true]{border:2px solid #1c5c50;background:#f1faf7}.op-merge-modal [data-confirm]{background:#f1f9f7;padding:12px;min-height:40px}.op-merge-actions{display:flex;gap:12px}.op-merge-actions [data-submit]{flex:1;background:#1c5c50}.op .op-line:has(.op-lesson){border-top:1px solid #e4e9ef}
@media(max-width:900px){.op-package-grid{grid-template-columns:1fr}.op-package-choice>header{gap:7px}.op-package-choice>header>.op-image{display:none}.op-package-choice footer{flex-wrap:wrap}.op-merge-targets{grid-template-columns:1fr}}

/* Narrow POS: never make a card wider than its scrollable catalog pane. */
.op-browse>div,.op-grid,.op-product{min-width:0}
.op-product strong{overflow-wrap:anywhere}
@media(min-width:761px) and (max-width:1100px){
  .op-grid{grid-template-columns:repeat(auto-fill,minmax(120px,1fr))}
  .op-catalog>header{gap:8px}
  .op-tabs{flex-shrink:0}
}
