/* Local V15 operations: consistent cards, inline actions and readable detail pages. */
.commerce-section{margin:0 0 22px;min-width:0}.commerce-section>.card-h{gap:16px;align-items:center}.commerce-section>.card-h>div:first-child{min-width:0}.commerce-section .card-h .btn{flex:none;white-space:nowrap}.commerce-caption{font-size:12px;color:#8a96a8;line-height:1.8;margin-top:7px}.commerce-table-wrap{max-width:100%;overflow-x:auto}.commerce-table{min-width:760px;width:100%}.commerce-table td{vertical-align:middle}.commerce-table b{font-weight:550}.commerce-table small{display:block;color:#8d9bb0;font-size:11px;line-height:1.8;margin-top:4px;overflow-wrap:anywhere}.commerce-table .commerce-id{font-size:11px;font-weight:500;word-break:break-all}.commerce-service-cell{display:flex;gap:12px;align-items:center;min-width:190px;max-width:290px}.commerce-service-mark{flex:0 0 44px;width:44px;height:44px;display:grid;place-items:center;border-radius:12px;color:#5578ad;background:#edf3fa;font-size:19px}.commerce-status{display:inline-block;border-radius:6px;background:#edf3ff;color:#557aaf;font-size:12px;padding:5px 10px;white-space:nowrap;font-weight:400}.commerce-status.ready,.commerce-status.used{background:#edf7f1;color:#42826d}.commerce-status.cancelled,.commerce-status.expired{background:#f2f4f7;color:#919baa}.commerce-status.booked{background:#fff3e2;color:#a77a40}.commerce-variant-label{display:block;font-size:12px;line-height:1.9}.commerce-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:22px}.commerce-metrics>div{padding:20px 23px;background:#fff;border:1px solid #e6ebf2;border-radius:12px}.commerce-metrics span{font-size:12px;color:#8a98ad}.commerce-metrics b{display:block;font-size:30px;font-weight:600;margin-top:13px;color:#253c5d}.commerce-metrics small{font-size:12px;font-weight:400;color:#9aa6b9}.commerce-filter{display:grid;grid-template-columns:minmax(220px,1fr) 180px auto;gap:16px;align-items:end;margin-bottom:22px}.commerce-filter .fld{margin:0}.commerce-filter input,.commerce-filter select{width:100%;min-width:0}.commerce-filter .ghost-btn{white-space:nowrap;height:40px}.commerce-empty{padding:42px 24px;display:flex;flex-direction:column;align-items:center;gap:12px;color:#95a1b4;text-align:center}.commerce-empty>span{font-size:32px;color:#bac6d6}.commerce-empty b{font-size:14px;font-weight:500}.commerce-empty small{font-size:12px;color:#b0b9c7}.commerce-modal{max-width:620px!important}.commerce-modal.wide{max-width:860px!important}.commerce-modal .modal-b{max-height:70vh;overflow:auto}.commerce-modal .form-grid{align-items:start}.commerce-modal .fld{margin-bottom:8px}.commerce-modal input,.commerce-modal select,.commerce-modal textarea{width:100%;box-sizing:border-box;min-width:0;max-width:100%}.commerce-modal input[type=checkbox]{width:16px;min-height:16px;height:16px;flex:none}.commerce-modal-actions{padding:18px 24px;display:flex;justify-content:flex-end;gap:12px;border-top:1px solid #edf1f6}.commerce-modal .btn,.commerce-modal-actions .btn{width:auto;min-width:112px}.commerce-order-hero{padding:24px;background:#f1f5fb;border-radius:12px;margin-bottom:22px}.commerce-order-hero h2{font-size:24px;color:#263c5a;margin:14px 0 8px}.commerce-order-hero p{font-size:13px;color:#7b8aa1}.commerce-kv{border:1px solid #e8edf4;border-radius:10px;padding:0 20px}.commerce-kv>div{display:grid;grid-template-columns:130px minmax(0,1fr);gap:16px;padding:14px 0;border-bottom:1px solid #f0f2f6;font-size:13px;line-height:1.7}.commerce-kv>div:last-child{border:0}.commerce-kv span{color:#92a0b5}.commerce-kv b{font-weight:500;overflow-wrap:anywhere}.commerce-rule-copy{font-size:13px;line-height:1.9;color:#7b8aa0;white-space:pre-line;overflow-wrap:anywhere;margin:16px 0}.commerce-actions{display:flex;gap:12px;justify-content:flex-end;align-items:center;flex-wrap:wrap;margin-top:20px;padding-top:16px;border-top:1px solid #edf1f6}.commerce-actions .btn{width:auto;min-width:112px;min-height:40px}.commerce-actions .live-note{margin-right:auto}.commerce-appointment{border:1px solid #e8edf5;border-radius:12px;padding:22px;margin:16px 0;background:#fff}.commerce-appointment .review-header h3{margin:7px 0 0}.commerce-eyebrow{font-size:11px;color:#7990ad;letter-spacing:.3px}.commerce-appointment-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.commerce-appointment-grid>div{display:flex;flex-direction:column;gap:7px;min-width:0}.commerce-appointment-grid span{font-size:11px;color:#9aa7b9}.commerce-appointment-grid b{font-size:13px;font-weight:500;color:#536782;overflow-wrap:anywhere}.commerce-checkbox,.commerce-checkboxes label{font-size:13px;color:#64748a;display:inline-flex;align-items:center;gap:8px;line-height:1.8}.commerce-checkbox{margin-top:16px}.commerce-checkboxes{display:flex;flex-wrap:wrap;gap:14px 24px;margin:20px 0}.commerce-variant-row{padding:20px;border:1px solid #e6ecf4;border-radius:10px;margin:16px 0;background:#f8fafd}.commerce-variant-row .review-header b{font-size:13px}.commerce-template{border:1px solid #e6edf5;border-radius:12px;padding:22px;margin-bottom:16px}.commerce-template:last-child{margin-bottom:0}.commerce-param-list{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}.commerce-param-list button{font-size:12px!important}.commerce-workflow{display:flex;align-items:center;gap:18px;padding:16px 20px;border-radius:10px;background:#f5f8fd;margin-bottom:26px}.commerce-workflow-step{display:flex;align-items:center;gap:10px;color:#667c9b;font-size:13px}.commerce-workflow-step>span{width:25px;height:25px;display:grid;place-items:center;border-radius:50%;color:#5075b4;background:#e4edfb}.commerce-workflow-step b{font-weight:500}.commerce-workflow>i{font-style:normal;color:#bec9d9}.commerce-issue-layout{display:flex;flex-direction:column;gap:28px}.commerce-issue-section{min-width:0;padding-bottom:26px;border-bottom:1px solid #e9edf4}.commerce-issue-section:last-child{padding-bottom:0;border:0}.commerce-issue-section .sec{margin-top:0}.commerce-kind-tabs{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:24px}.commerce-kind-tabs>button{padding:11px 18px;border:1px solid #e0e7f3;background:#fff;border-radius:9px;font-size:13px;color:#71839d}.commerce-kind-tabs>button.on{border-color:#81a7f1;background:#edf3ff;color:#3269d9}.commerce-issue-section .mode-cards{margin:0 0 22px}.commerce-issue-section .mode-cards+.sec{margin-top:20px}.commerce-issue-section .commerce-plan-picker{margin-bottom:20px}.commerce-issue-section .form-grid{margin:20px 0}.commerce-issue-section .fld{margin-bottom:16px}.commerce-issue-section .fld input,.commerce-issue-section .fld select,.commerce-issue-section .fld textarea{max-width:100%;width:100%;box-sizing:border-box}.commerce-issue-section input[type=checkbox]{width:16px;height:16px;min-height:16px}.commerce-issue-section .cust-pick{max-height:260px}.commerce-issue-section .cust-pick .tag-dim{flex:none;white-space:nowrap}.commerce-preview{display:flex;flex-direction:column;gap:9px;border:1px solid #e2eaf5;border-radius:10px;background:#f5f8fd;padding:18px;font-size:13px;line-height:1.8;color:#7287a6;margin:20px 0}.commerce-preview b{font-size:15px;color:#38567e;font-weight:600}.commerce-rule-tools{display:flex;align-items:center;gap:15px;margin:10px 0 20px;flex-wrap:wrap}.commerce-upload{padding:20px;border:1px dashed #cbd9ed;background:#fafcff;border-radius:12px;outline:none;margin:24px 0}.commerce-upload:focus-within,.commerce-upload:focus{border-color:#6f9de9;background:#f5f9ff}.commerce-upload b{font-size:14px;font-weight:550}.commerce-upload b span{font-size:11px;font-weight:400;color:#9cabc1;padding-left:8px}.commerce-upload p{font-size:12px;color:#8f9db2;line-height:1.8;margin:7px 0 15px}.commerce-upload input[type=file]{max-width:100%;font-size:12px}.commerce-upload #reviewFileNames{margin-top:12px}.commerce-file-row{display:flex;gap:12px;justify-content:space-between;align-items:center;font-size:12px;color:#7c8da7;padding:6px 0}.commerce-file-row>span{overflow-wrap:anywhere;min-width:0}.commerce-file-row button{flex:none}.commerce-submit-actions{padding-top:22px}.commerce-submit-actions .btn{min-width:180px}.commerce-redeem-note{margin:20px 0;padding:20px;border:1px solid #e5ecf5;border-radius:12px;background:#f6f9fd}.commerce-balance{display:flex;justify-content:space-between;align-items:center;color:#8a9ab1;font-size:12px;margin-bottom:16px}.commerce-balance b{font-size:24px;color:#3e6596}.commerce-kpi-link{font-size:10px;color:#9caec8;display:block;margin-top:12px}.kpi[role=button]{cursor:pointer;transition:border-color .15s,transform .15s}.kpi[role=button]:hover{border-color:#abc5f4;transform:translateY(-2px)}.commerce-detail-toolbar{display:flex;gap:16px;justify-content:space-between;align-items:center;margin-bottom:18px;font-size:12px;color:#8d9bb0}.commerce-approval-rules{background:#f6f9fc;padding:16px;border-radius:8px;margin-top:18px;font-size:12px;color:#7186a3}.commerce-approval-rules b{font-weight:550}.commerce-approval-rules p{white-space:pre-line;font-size:12px;line-height:1.8}.commerce-finance-numbers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;border:1px solid #e6edf6;border-radius:10px;margin:18px 0;background:#f9fbfe;padding:18px}.commerce-finance-numbers>div{display:flex;flex-direction:column;gap:10px;font-size:12px;color:#91a0b5}.commerce-finance-numbers b{font-size:23px;font-weight:550;color:#405c82}.commerce-config-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:22px}.commerce-config-shortcuts button{padding:22px;text-align:left;display:flex;flex-direction:column;gap:12px;background:#fff;border:1px solid #e5ecf5;border-radius:12px;color:#576d8d}.commerce-config-shortcuts span{font-size:12px}.commerce-config-shortcuts b{font-size:21px;font-weight:550}.commerce-config-shortcuts small{color:#9cabc0;font-size:11px}
@media(max-width:1180px){.commerce-filter{grid-template-columns:minmax(160px,1fr) 150px}.commerce-filter>.ghost-btn{grid-column:1/-1;justify-self:end}.commerce-service-cell{max-width:240px}.commerce-workflow{gap:10px;padding:14px}.commerce-workflow-step{gap:7px;font-size:12px}.commerce-appointment{padding:18px}.commerce-section>.card-h{flex-wrap:wrap}.commerce-metrics{gap:12px}.commerce-metrics>div{padding:18px}.commerce-finance-numbers{gap:10px}}
@media(max-width:700px){.commerce-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.commerce-filter{grid-template-columns:1fr}.commerce-filter>.ghost-btn{grid-column:auto}.commerce-workflow{gap:7px;flex-wrap:wrap}.commerce-workflow-step{font-size:11px}.commerce-workflow-step>span{width:20px;height:20px}.commerce-appointment-grid{grid-template-columns:1fr}.commerce-modal .modal-b{padding:16px}.commerce-finance-numbers{grid-template-columns:1fr}.commerce-config-shortcuts{grid-template-columns:1fr}.commerce-kv>div{grid-template-columns:90px minmax(0,1fr)}.commerce-actions .live-note{flex-basis:100%}.commerce-kind-tabs>button{flex:1;min-width:120px}.commerce-issue-section .cust-pick .tag-dim{display:none}}
/* Header actions opt out of the prototype's full-width primary button. */
.commerce-section>.card-h{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px}
.commerce-section>.card-h>div:first-child{flex:1 1 260px;min-width:200px;max-width:100%}
.commerce-section>.card-h>div:first-child>.t{display:block;white-space:normal;word-break:normal;overflow-wrap:break-word;line-height:1.6}
.commerce-section>.card-h>div:first-child>.commerce-caption{width:auto;max-width:100%;white-space:normal;line-height:1.8}
.commerce-section>.card-h>.btn,.commerce-section>.card-h>.ghost-btn{width:auto;max-width:100%;flex:0 0 auto;white-space:nowrap;margin:0}
.commerce-modal .modal-h>.t{flex:1;min-width:0;line-height:1.6}
.commerce-modal .modal-h>.ghost-btn,.commerce-modal .commerce-variant-row .review-header>.link-btn,.commerce-modal .modal-b>.ghost-btn{width:auto;flex:0 0 auto;white-space:nowrap}
.commerce-modal .commerce-variant-row .review-header>b{flex:1;min-width:0}
@media(max-width:700px){.commerce-section>.card-h>div:first-child{min-width:min(200px,100%)}.commerce-section>.card-h>.btn{margin-left:auto}}

/* Reserve distinct widths for order references, amounts, statuses and actions. */
.sy-admin #storeBody #commerceOrderList .commerce-table{table-layout:fixed}
.sy-admin #storeBody #commerceOrderList th:nth-child(1){width:16%}
.sy-admin #storeBody #commerceOrderList th:nth-child(2){width:13%}
.sy-admin #storeBody #commerceOrderList th:nth-child(3){width:20%}
.sy-admin #storeBody #commerceOrderList th:nth-child(4){width:15%}
.sy-admin #storeBody #commerceOrderList th:nth-child(5){width:11%}
.sy-admin #storeBody #commerceOrderList th:nth-child(6){width:15%}
.sy-admin #storeBody #commerceOrderList th:nth-child(7){width:10%}
.sy-admin #storeBody #commerceOrderList td{overflow-wrap:anywhere}
.sy-admin #storeBody #commerceOrderList .commerce-id{white-space:normal;overflow-wrap:anywhere}
.sy-admin #storeBody #commerceOrderList td:nth-child(4){white-space:nowrap}

/* Keep card fields within their own columns in both appointment views. */
.sy-admin #storeBody #commerceAppointmentList :is(.sy-appointment-service>div,.sy-appointment-info>div){min-width:0}
.sy-admin #storeBody #commerceAppointmentList .sy-appointment-info>div{max-width:100%;flex-wrap:wrap}
.sy-admin #storeBody #commerceAppointmentList :is(.sy-appointment-service h3,.sy-appointment-info b){min-width:0;overflow-wrap:anywhere}
