@charset "UTF-8";
:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:#24332e;background:#f3f5f1;font-synthesis:none;font-size:14px;--green:#195e49;--muted:#708078;--border:#e0e6df;--soft:#edf5ee;--orange:#a05d14}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:3px}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}a{color:inherit;text-decoration:none}button,input,select,textarea{border-radius:8px}button{border:1px solid var(--border);background:#fff;color:#253b30;padding:10px 15px;font-weight:600;transition:background .15s}button:hover:not(:disabled){background:#f0f6f0}button.primary,.primary-link{background:var(--green);color:#fff;border-color:var(--green)}button.primary:hover:not(:disabled),.primary-link:hover{background:#114a38}button.quiet{background:transparent;border-color:transparent;padding:7px 9px}.danger{color:#a63d35}.link{color:var(--green);text-decoration:underline;text-underline-offset:3px}input,select,textarea{width:100%;border:1px solid #cfd9cf;padding:10px 12px;background:#fff;color:#24332e;min-height:42px}input:focus,select:focus,textarea:focus{outline:2px solid #8fb79a;outline-offset:1px}textarea{min-height:80px;resize:vertical}label{display:flex;flex-direction:column;gap:7px;color:#45574d;font-size:13px;font-weight:600}small,.muted{color:var(--muted);font-weight:400}.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;overflow-wrap:anywhere}h1,h2,h3,p{margin-top:0}h1{font-size:27px;letter-spacing:-.8px;font-weight:650;margin-bottom:8px}h2{font-size:17px;letter-spacing:-.2px;margin-bottom:18px}h3{font-size:15px;margin-bottom:10px}p{line-height:1.7}hr{border:0;border-top:1px solid var(--border);margin:22px 0}.boot-screen{display:grid;min-height:100vh;place-items:center;color:var(--muted)}
.app-shell{display:grid;grid-template-columns:224px minmax(0,1fr);min-height:100vh}.sidebar{background:#142f26;color:#d6e3d9;padding:31px 16px 20px;display:flex;flex-direction:column;position:fixed;inset:0 auto 0 0;width:224px;z-index:30;overflow:auto}.brand{padding:0 13px 25px}.brand-logo{display:block;width:166px;max-width:100%;height:auto;object-fit:contain}.login-logo{width:280px;margin-bottom:28px}.login-environment{font-size:11px;letter-spacing:1.3px;color:#98b4a4}.brand small{display:block;margin-top:8px;font-size:10px;letter-spacing:2px;color:#98b4a4}.nav-group{font-size:10px;letter-spacing:1.6px;color:#8aa596;margin:24px 13px 10px}.nav-item{display:flex;align-items:center;gap:12px;padding:11px 13px;margin:3px 0;border-radius:7px;font-size:13px;color:#c4d6c9}.nav-item:hover{background:#214336}.nav-item.active{color:#fff;background:#2b5543}.nav-icon{width:18px;text-align:center;font-size:16px;opacity:.85}.sidebar-foot{margin-top:auto;padding:28px 13px 0;color:#93ad9e;font-size:11px;line-height:1.8}.main-shell{grid-column:2;min-width:0}.topbar{height:76px;background:#fff;border-bottom:1px solid var(--border);padding:0 36px;display:flex;align-items:center;justify-content:space-between;gap:18px}.topbar-left,.topbar-right{display:flex;align-items:center;gap:13px}.topbar select{width:180px;border:0;background:#f4f7f3;min-height:37px;font-size:13px}.topbar small{font-size:11px}.avatar{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#ecf2e7;color:#52704b;font-size:13px;font-weight:650}.username{font-size:12px}.env-banner{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:37px;padding:9px 36px;background:#fff7e8;color:#8b631f;font-size:11px;line-height:1.5}.env-dot{display:inline-block;width:6px;height:6px;background:#b47b26;border-radius:50%;margin-right:7px}.content{padding:32px 36px 48px;max-width:1700px;margin:auto}.page-heading{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:26px}.eyebrow{font-size:10px;letter-spacing:2.2px;color:#71927d;margin-bottom:10px}.page-heading p{color:var(--muted);font-size:12px;margin-bottom:0}.heading-actions{display:flex;gap:9px;flex-wrap:wrap;padding-top:4px}.primary-link,.button-link{display:inline-flex;align-items:center;justify-content:center;padding:10px 15px;border-radius:8px;font-size:13px;font-weight:600}.button-link{background:#fff;border:1px solid var(--border)}.panel{background:#fff;border:1px solid var(--border);border-radius:12px;padding:23px;margin-bottom:20px;box-shadow:0 2px 2px #24332e02}.panel.no-pad{padding:0;overflow:hidden}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:18px}.panel-head h2{margin:0}.panel-caption{font-size:11px;color:var(--muted);margin:6px 0 0}.grid-two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px}.grid-three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:26px}.stat{padding:20px 22px;background:#fff;border:1px solid var(--border);border-radius:11px}.stat .name{font-size:12px;color:#718276;margin-bottom:15px}.stat .value{font-size:29px;letter-spacing:-1px;font-weight:620;font-variant-numeric:tabular-nums;white-space:nowrap}.stat .note{font-size:10px;color:#839087;margin-top:11px}.stat.featured{background:#e6efe1;border-color:#d6e4d0}.welcome{background:#e7eee2;display:flex;gap:24px;align-items:center;justify-content:space-between;padding:28px;border-radius:12px;margin-bottom:26px;border:1px solid #d7e4cf}.welcome h2{font-family:"Songti SC",serif;font-size:23px;line-height:1.5;margin-bottom:6px;font-weight:600}.welcome p{font-size:12px;color:#65805f;margin-bottom:0}.welcome-mark{font-family:"Songti SC",serif;font-size:56px;color:#7b9a6d;margin-right:15px}.table-scroll{overflow:auto}table{border-collapse:collapse;width:100%;text-align:left;font-size:12px;white-space:nowrap}th{font-size:11px;font-weight:500;color:#7e8c82;background:#f8faf7;padding:13px 16px;border-bottom:1px solid var(--border)}td{padding:15px 16px;border-bottom:1px solid #eef1ec;line-height:1.6}tr:last-child td{border-bottom:0}.numeric{text-align:right;font-variant-numeric:tabular-nums}.table-main{font-weight:600}.table-sub{font-size:10px;color:var(--muted);margin-top:4px}.badge{display:inline-flex;align-items:center;gap:5px;padding:4px 8px;border-radius:5px;background:#edf4eb;color:#4e7552;font-size:10px;white-space:nowrap}.badge.amber{background:#fff4e1;color:#a06c25}.badge.red{background:#faeeeb;color:#a05243}.badge.neutral{background:#f0f3ef;color:#718175}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:18px}.search-row{display:flex;gap:8px;flex:1;max-width:470px}.search-row input{min-width:120px}.tabs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:18px}.tab{padding:8px 14px;background:transparent;border:1px solid var(--border);border-radius:7px;font-size:12px}.tab.active{background:#e5efdf;color:#315a35;border-color:#c5d8bc}.empty{padding:35px 20px;text-align:center;color:var(--muted);font-size:12px;line-height:1.9}.notice{border:1px solid #dce8d7;background:#f3f8f0;color:#536f4e;padding:13px 15px;border-radius:8px;font-size:12px;line-height:1.7;margin-bottom:18px}.notice.warning{background:#fff7e9;border-color:#f0dfbb;color:#8b672b}.error-box{border:1px solid #ecc8c1;background:#fff2ef;padding:14px;color:#8f4438;border-radius:8px;font-size:12px;line-height:1.7;overflow-wrap:anywhere;margin-bottom:18px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.full-width{grid-column:1/-1}.form-actions{display:flex;gap:10px;justify-content:flex-end;align-items:center;margin-top:22px}.hint{font-size:11px;color:var(--muted);line-height:1.7}.form-note{font-size:11px;color:#8e6c3d;margin-top:9px;line-height:1.6}.stack{display:grid;gap:15px}.details{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.detail-label{font-size:11px;color:var(--muted);margin-bottom:7px}.detail-value{font-size:13px;line-height:1.6;overflow-wrap:anywhere}.timeline-item{display:flex;gap:12px;margin-bottom:17px}.timeline-dot{background:#afc2a3;width:7px;height:7px;flex-shrink:0;border-radius:50%;margin-top:5px}.timeline-item p{font-size:12px;margin-bottom:5px}.timeline-item small{font-size:10px}.flow-steps{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0 0}.flow-step{font-size:11px;padding:6px 10px;background:#f4f7f0;border-radius:6px;color:#64795e}.operation-status:empty,.inline-error:empty{display:none}.pager{padding:15px 20px;display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--border);font-size:11px;color:var(--muted)}
.cashier-layout{display:grid;grid-template-columns:minmax(0,1fr) 352px;gap:22px;align-items:start}.catalog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.product-tile{padding:18px 14px;background:#fff;border:1px solid var(--border);border-radius:10px;text-align:left;min-height:140px;display:flex;flex-direction:column;align-items:flex-start}.product-tile:hover{border-color:#96b392;background:#f8faf5}.product-tile .product-kind{font-size:10px;color:#819578;margin-bottom:14px}.product-tile .product-name{font-size:13px;line-height:1.5;font-weight:600;flex:1}.product-tile .product-price{font-size:19px;letter-spacing:-.4px;color:#385c3b;margin-top:15px}.product-tile .product-stock{font-size:10px;color:#819578;font-weight:400;margin-top:5px}.checkout{position:sticky;top:18px;padding:22px}.checkout h2{font-size:17px}.cart-item{padding:15px 0;border-bottom:1px solid var(--border)}.cart-item-head{display:flex;justify-content:space-between;gap:12px;font-size:12px;margin-bottom:10px}.cart-item-bottom{display:flex;justify-content:space-between;align-items:center;gap:15px}.quantity{display:flex;align-items:center;gap:0}.quantity button{padding:3px 9px;font-size:14px;border-radius:4px;line-height:1.5;font-weight:400}.quantity input{width:42px;text-align:center;padding:3px;min-height:29px;border-radius:0;border-left:0;border-right:0}.sum-row{display:flex;justify-content:space-between;font-size:12px;margin:14px 0;color:#687e6d}.sum-row.total{font-size:14px;padding-top:17px;border-top:1px solid var(--border);color:#263e2b}.sum-row.total strong{font-size:28px;font-weight:650;letter-spacing:-.8px}.checkout .primary{width:100%;margin-top:18px;padding:13px}.checkout label{font-size:11px;margin-top:13px}.customer-strip{display:flex;gap:16px;align-items:center;background:#f4f7f0;border:1px solid #e2e8dc;padding:15px;border-radius:8px;margin-bottom:18px}.customer-strip .avatar{flex-shrink:0;background:#e1ead9}.customer-strip select{background:#fff;min-width:0;font-size:12px}.customer-strip .label{font-size:10px;color:#728568;margin-bottom:6px}.branch-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:20px}.branch-link{padding:14px;border:1px solid var(--border);border-radius:8px;font-size:12px;background:#fff}.branch-link small{display:block;margin-top:7px;font-size:10px}.report-list{display:grid;grid-template-columns:1fr 1fr;gap:0 24px}.report-row{display:flex;justify-content:space-between;gap:14px;border-bottom:1px solid var(--border);padding:15px 0;font-size:12px}.report-row strong{font-size:16px}.report-note{padding:22px;background:#f4f7f0;border:1px solid #e0e8dc;border-radius:10px;font-size:12px;line-height:1.8}.rules-list{display:grid;grid-template-columns:1fr 1fr;gap:15px}.rule-card{border:1px solid var(--border);border-radius:9px;padding:18px}.rule-card h3{display:flex;justify-content:space-between;gap:15px;font-size:13px}.rule-card p{font-size:11px;color:var(--muted);margin:8px 0 0}.receipt-success{border-left:4px solid #6c9464}.receipt-failed{border-left:4px solid #b6795c}
.login-page{display:grid;min-height:100vh;grid-template-columns:1.1fr 1fr;background:#f7f9f4}.login-story{padding:8vw;display:flex;flex-direction:column;justify-content:space-between;background:#173c2f;color:#e8efe4;min-height:100vh}.login-story h1{font-family:"Songti SC","STSong",serif;font-size:46px;line-height:1.5;letter-spacing:3px;font-weight:500;margin-top:60px}.login-story p{max-width:380px;font-size:13px;line-height:2;color:#b2c8b6}.login-story footer{font-size:10px;letter-spacing:1.3px;color:#829f89}.login-form-wrap{display:grid;place-items:center;padding:40px}.login-form{width:100%;max-width:360px}.login-form h2{font-size:25px;margin-bottom:11px}.login-form .login-intro{color:var(--muted);font-size:12px;margin-bottom:30px}.login-form label{margin-top:20px}.login-form button{width:100%;margin-top:26px;padding:13px}.login-note{margin-top:26px;color:#7f8e7c;font-size:11px;line-height:1.9}.login-note code{font-size:10px;display:block;margin:7px 0;padding:7px 9px;background:#eaf0e4;color:#547349;border-radius:5px;overflow-wrap:anywhere}#toast{position:fixed;bottom:24px;right:28px;background:#183e2d;color:#fff;border-radius:9px;padding:13px 20px;max-width:420px;z-index:90;box-shadow:0 8px 28px #142f2625;font-size:12px;line-height:1.6;opacity:0;pointer-events:none;transition:opacity .15s}#toast.visible{opacity:1}#toast.error{background:#854838}.loading{padding:50px;color:var(--muted);font-size:13px;text-align:center}.spinner{display:inline-block;width:13px;height:13px;border:2px solid #c7d8c1;border-top-color:#486c40;border-radius:50%;animation:spin .7s linear infinite;margin-right:10px;vertical-align:-2px}@keyframes spin{to{transform:rotate(360deg)}}
@media(min-width:1550px){.catalog-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:1200px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.cashier-layout{grid-template-columns:minmax(0,1fr) 310px}.catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.content{padding:26px}.topbar,.env-banner{padding-left:26px;padding-right:26px}.details{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:960px){.app-shell{grid-template-columns:182px minmax(0,1fr)}.sidebar{width:182px;padding-left:10px;padding-right:10px}.cashier-layout{grid-template-columns:1fr}.checkout{position:static}.grid-two{grid-template-columns:1fr}.topbar{padding:0 20px}.topbar-right .username{display:none}.rules-list{grid-template-columns:1fr}.grid-three{grid-template-columns:1fr 1fr}}@media(max-width:650px){.app-shell{display:block}.sidebar{position:static;width:100%;padding:12px;display:block}.brand{padding:0 7px 10px}.brand small,.sidebar-foot,.nav-group{display:none}.sidebar nav{display:flex;overflow:auto;gap:4px}.nav-item{white-space:nowrap;margin:0;padding:8px 10px;font-size:11px}.nav-icon{display:none}.topbar{height:62px;padding:0 15px}.topbar-left small{display:none}.topbar select{width:170px}.env-banner{padding:10px 15px}.env-banner .env-extra{display:none}.content{padding:22px 15px}.page-heading{flex-direction:column;gap:13px}.stats{gap:10px}.stat{padding:17px 15px}.stat .value{font-size:23px}.welcome{padding:22px}.welcome-mark{display:none}.form-grid,.report-list,.details{grid-template-columns:1fr}.branch-links{grid-template-columns:1fr}.grid-three{grid-template-columns:1fr}.panel{padding:18px}.catalog-grid{gap:9px}.login-page{grid-template-columns:1fr}.login-story{display:none}.login-form-wrap{padding:40px 26px}.toolbar{align-items:stretch;flex-direction:column}.search-row{max-width:none}.report-row strong{font-size:14px}h1{font-size:24px}}
.report-filter-form{display:flex;gap:16px;align-items:flex-end;flex-wrap:wrap}.report-filter-form label{min-width:180px;flex:1;max-width:240px}.report-filter-form button{min-height:42px}.report-filter-form .hint{margin-left:auto;line-height:1.8}.report-footnote{margin-top:18px;margin-bottom:0}.report-total{background:#edf4e8;font-weight:650}.report-total-line{display:flex;justify-content:space-between;gap:18px;margin-top:18px;padding:17px;background:#f2f6ee;border-radius:7px;font-size:12px}.payment-share{margin:24px 0}.payment-share .panel-head{font-size:12px;margin-bottom:12px}.payment-share progress{appearance:none;-webkit-appearance:none;width:100%;height:10px;border:0;border-radius:8px;overflow:hidden;background:#e6eee0}.payment-share progress::-webkit-progress-bar{background:#e6eee0;border-radius:8px}.payment-share progress::-webkit-progress-value{background:#7c9e69;border-radius:8px}.payment-share progress::-moz-progress-bar{background:#7c9e69;border-radius:8px}.payment-share .hint{margin-top:9px}@media(max-width:650px){.report-filter-form{align-items:stretch}.report-filter-form label{max-width:none;min-width:100%}.report-filter-form .hint{margin-left:0}.report-total-line{flex-direction:column;gap:9px}}
.cashier-layout .toolbar h2{flex-shrink:0;white-space:nowrap;margin:0}.cashier-layout .toolbar input{min-width:0;max-width:240px}summary{cursor:pointer}details[open] summary{margin-bottom:16px}
.store-checks{border:1px solid var(--border);border-radius:8px;padding:18px;display:flex;gap:18px;flex-wrap:wrap}.store-checks legend{font-size:12px;color:var(--muted);padding:0 6px}.store-checks label{flex-direction:row;align-items:center;gap:8px}.store-checks input{width:17px;min-height:17px;height:17px;margin:0;accent-color:var(--green)}
.check-label{flex-direction:row;align-items:center;gap:9px}.check-label input{width:18px;min-height:18px;height:18px;margin:0;accent-color:var(--green)}.stock-line{background:#f8faf7;margin-top:15px}.stock-line .form-actions{margin-top:12px}
.variant-axis-row,.variant-sku-row{border:1px solid var(--border);border-radius:8px;padding:16px;margin:14px 0;background:#fafcf8}.variant-sku-row>[data-remove-sku]{margin-top:12px}.variant-axis-row>[data-remove-axis]{align-self:end}.variant-sku-row .form-grid{margin:0}
.reference-hash { overflow-wrap: anywhere; max-width: 26rem; font-family: var(--mono, monospace); font-size: 12px; }
.reference-evidence .detail-value { overflow-wrap: anywhere; }
.reference-raw { margin-top: 18px; }
.reference-raw pre { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 100%; }
.reference-ack { display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; }
.reference-ack input { width: auto; flex: none; margin-top: 4px; }

/* P120: local synthetic scheduling; all selectors scoped to this module. */
.staff-scheduling {min-width:0}
.staff-scheduling .week-scroll {overflow:auto;max-width:100%;border:1px solid var(--line,#d9e2dd)}
.staff-scheduling table.week {min-width:1290px;border-collapse:collapse;width:100%}
.staff-scheduling .week th,.staff-scheduling .week td {padding:10px;vertical-align:top;text-align:left}
.staff-scheduling .week tr>th:first-child {position:sticky;left:0;z-index:2;background:#f7faf8;min-width:138px;max-width:170px;box-shadow:2px 0 0 #d9e2dd}
.staff-scheduling .week thead tr>th:first-child {z-index:3;background:#ecf3ee}
.staff-scheduling .cell {display:flex;flex-direction:column;gap:6px;min-width:135px;width:100%;text-align:left;background:#f3f4f3;min-height:132px}
.staff-scheduling .cell.work {background:#e3f3e8}
.staff-scheduling .cell.rest {background:#eaf0fa}
.staff-scheduling .cell[aria-pressed=true] {outline:3px solid #186d49;outline-offset:-3px}
.staff-scheduling .schedule-segments {display:grid;grid-template-columns:1fr 1fr;gap:12px;max-width:580px;margin:16px 0}
.staff-scheduling pre {white-space:pre-wrap;overflow-wrap:anywhere;max-height:36rem;overflow:auto}
.staff-scheduling label.check-label {display:flex;align-items:flex-start;gap:10px;margin:16px 0}
.staff-scheduling .check-label input {width:auto}
@media(max-width:600px) {.staff-scheduling .schedule-segments input {min-width:0}.staff-scheduling .panel {min-width:0}}

/* Service reference actions remain visible in the narrow local workbench. */
@media(max-width:650px){
 #srw-table table{table-layout:fixed;white-space:normal;width:100%}
 #srw-table th,#srw-table td{padding:12px 8px;overflow-wrap:anywhere}
 #srw-table th:nth-child(1){width:30%}
 #srw-table th:nth-child(2){width:37%}
 #srw-table th:nth-child(3){width:33%}
 #srw-table td:last-child button{display:block;width:100%;margin:4px 0;padding:8px 4px;white-space:nowrap}
 #srw-root .search-row{flex-wrap:wrap}
 #srw-root .search-row label{flex:1 1 100%}
}

@media(max-width:360px){
 .topbar{gap:8px}
 .topbar select{width:128px}
 .topbar-right{gap:8px}
 .topbar button{white-space:nowrap}
}

/* P125 keeps filters/pagination usable without changing the shared header. */
#ppt-root .search-row{max-width:none;flex-wrap:wrap;align-items:flex-end}
#ppt-root .search-row label{flex:1 1 140px;min-width:0}
#ppt-root .search-row button,#ppt-root .pager button{white-space:nowrap}
#ppt-root .pager{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px}
#ppt-root .pager>span{white-space:nowrap;align-self:center}
#ppt-root .pager>label{min-width:80px}
#ppt-jump{display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px;max-width:100%}
#ppt-jump label{width:90px;min-width:0}
#ppt-table table{min-width:550px}
@media(max-width:650px){
 #ppt-root .search-row label{flex-basis:100%}
 #ppt-root .search-row button{flex:1 1 auto}
 #ppt-root .pager>label{flex:1 1 100px}
 #ppt-jump{flex:1 1 100%}
 #ppt-dialog{padding:18px!important;max-width:calc(100vw - 24px)!important}
}

/* P001 reading and separate local management; content is escaped plain text. */
.local-notices{min-width:0;overflow-wrap:anywhere}
.local-notices .notice-copy{border:1px solid var(--border,#dbe2e8);padding:18px;border-radius:10px;margin:14px 0}
.local-notices .notice-copy h2,.local-notices .notice-list-item h2{font-size:1.15rem;line-height:1.55;white-space:pre-wrap}
.local-notices .notice-body,.local-notices .notice-excerpt,.local-notices #notice-preview-content{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8}
.local-notices .notice-list-item{padding:14px 0;border-bottom:1px solid var(--border,#dbe2e8)}
.local-notices .notice-actions,.local-notices #notice-public-history{display:flex;gap:12px;flex-wrap:wrap;margin:16px 0}
.local-notices #notice-public-history a{display:block;border:1px solid var(--border,#dbe2e8);border-radius:8px;padding:10px}
.local-notices details{padding:12px 0;border-bottom:1px solid var(--border,#dbe2e8)}
.local-notices summary{cursor:pointer;overflow-wrap:anywhere}
#notice-dialog{width:min(46rem,calc(100vw - 32px));max-width:calc(100vw - 32px);box-sizing:border-box;border:1px solid #cbd5e1;border-radius:12px;padding:24px;max-height:90vh;overflow:auto}
#notice-dialog form,#notice-dialog label{min-width:0}
#notice-dialog input,#notice-dialog textarea{box-sizing:border-box;max-width:100%;width:100%}
#notice-dialog .heading-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
#notice-dialog #notice-preview-content{white-space:pre-wrap;overflow-wrap:anywhere;padding:12px;background:#f5f7f9;margin-top:10px}
@media(max-width:650px){.local-notices .search-row{display:flex;flex-wrap:wrap;gap:10px}.local-notices .search-row label{min-width:0;flex:1 1 100%}.local-notices .search-row input,.local-notices .search-row select{width:100%;max-width:100%;box-sizing:border-box}#notice-dialog{padding:16px}.local-notices .notice-copy{padding:12px}}

/* P121/P122 scoped business table; IDs stay in history only. */

#pg-root .search-row{max-width:none;flex-wrap:wrap;align-items:flex-end}#pg-root .search-row label{flex:1 1 120px;min-width:0}#pg-root button{white-space:nowrap}#pg-root .pager{display:flex;flex-wrap:wrap;gap:10px;align-items:center}#pg-root .pager label{min-width:80px}#pg-table table{min-width:700px}.pg-dialog{width:32rem;max-width:calc(100vw - 24px);border:1px solid #cbd5e1;border-radius:12px;padding:24px}.pg-dialog pre{white-space:pre-wrap;overflow-wrap:anywhere}.pg-dialog h2{margin-top:0}@media(max-width:650px){#pg-root .search-row label{flex-basis:100%}.pg-dialog{padding:16px}}
@media(max-width:650px){#pg-table::before{content:'左右滑动可查看全部字段与操作';display:block;color:#6c8077;font-size:12px;margin:8px 0}#pg-table table{min-width:650px}}

.pg-dialog code{overflow-wrap:anywhere}
/* Authenticated effect media: natural aspect ratio, never public assets. */
.effect-thumb{width:112px;height:78px;object-fit:contain;background:#f1f5f9;border-radius:6px}
.effect-preview{display:block;max-width:100%;max-height:260px;object-fit:contain;margin:12px auto}
.effect-dialog{width:600px;max-width:calc(100vw - 24px);max-height:90vh;overflow:auto;border:1px solid #cbd5e1;border-radius:12px;padding:20px}
.effect-dialog label{display:block;margin:12px 0}.effect-dialog input,.effect-dialog select{max-width:100%;width:100%;box-sizing:border-box}.effect-dialog article{border-bottom:1px solid #e2e8f0;padding:12px 0}
.effect-viewer figure{margin:0}.effect-viewer img{display:block;width:100%;height:min(60vh,650px);object-fit:contain;background:#f1f5f9;border-radius:8px}.effect-viewer figcaption{white-space:pre-wrap;text-align:center;margin:14px 0;font-size:18px}.effect-viewer .heading-actions{justify-content:center;align-items:center}.effect-dialog .inline-error:empty{display:none}

/* P119 member/history dialogs and P146 import validation must remain readable. */
#sg-dialog{width:min(58rem,calc(100vw - 32px));box-sizing:border-box;max-height:90vh;overflow:auto}
#sg-dialog table{white-space:normal;table-layout:fixed;min-width:40rem}
#sg-dialog th,#sg-dialog td{padding:12px 8px;overflow-wrap:anywhere;vertical-align:top}
#sg-dialog th:first-child{width:24%}
#sg-dialog button{max-width:100%;white-space:normal}
#srp-preview-result th,#srp-preview-result td{white-space:normal;overflow-wrap:anywhere;vertical-align:top}
@media(max-width:650px){#sg-dialog .table-scroll::before{content:'左右滑动查看完整成员信息与操作';display:block;color:var(--muted);font-size:12px;margin:8px 0}}

/* P132 expense type controls and horizontally scrollable six-column table. */
#et-root .search-row{max-width:none;flex-wrap:wrap;align-items:flex-end}
#et-root .search-row label{flex:1 1 140px;min-width:0}
#et-root .search-row button,#et-root .pager button{white-space:nowrap}
#et-root .pager{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px}
#et-root .pager>span{white-space:nowrap;align-self:center}
#et-root .pager>label{min-width:80px}
#et-jump{display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px;max-width:100%}
#et-jump label{width:90px;min-width:0}
#et-table table{min-width:670px}
@media(max-width:650px){
 #et-root .search-row label{flex-basis:100%}
 #et-root .search-row button{flex:1 1 auto}
 #et-root .pager>label{flex:1 1 100px}
 #et-jump{flex:1 1 100%}
 #et-dialog{padding:18px!important;max-width:calc(100vw - 24px)!important}
}
/* P075 query and separate synthetic registration on narrow screens. */
#af-root .search-row,#af-lab .search-row{flex-wrap:wrap}
#af-root .search-row>label,#af-lab label{min-width:0;max-width:100%}
#af-root input,#af-root select,#af-lab input,#af-lab select,#af-lab textarea{max-width:100%;box-sizing:border-box}
#af-root .af-content,#af-receipt .af-content{white-space:pre-wrap;overflow-wrap:anywhere;min-width:220px;max-width:480px}
#af-register{display:grid;gap:16px;max-width:720px}
#af-root .pager,#af-lab .pager{flex-wrap:wrap}
@media(max-width:480px){#af-root .search-row>label,#af-lab .search-row>label{width:100%}#af-root .search-row input,#af-root .search-row select{width:100%}}
/* Cash declarations keep original identifiers readable without widening the page. */
#cr-root,#cr-record{min-width:0;overflow-wrap:anywhere}
#cr-root .search-row{max-width:none;flex-wrap:wrap;align-items:flex-end}
#cr-root .search-row label{flex:1 1 140px;min-width:0}
#cr-root .search-row input,#cr-root .search-row select{min-width:0;max-width:100%}
#cr-root .pager{flex-wrap:wrap;gap:8px;padding:12px 0}
#cr-root .table-scroll{max-width:100%}
#cr-root table{min-width:520px}
#cr-dialog form{display:grid;gap:14px;min-width:0}
#cr-dialog input,#cr-dialog select,#cr-dialog textarea{min-width:0;max-width:100%;box-sizing:border-box}
#cr-dialog .checkbox-label{display:flex;flex-direction:row;align-items:flex-start}
#cr-dialog .checkbox-label input{width:18px;min-height:18px;flex:0 0 18px}
@media(max-width:650px){#cr-root .search-row label{flex-basis:100%}#cr-root .table-scroll::before{content:'左右滑动查看全部字段与操作';display:block;font-size:12px;color:var(--muted);margin:8px 0}}

/* P352 independent local defaults: never resize or replace individual image markup. */
.default-image-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin:1rem 0}
.default-image-slot{min-width:0;border:1px solid var(--line,#d9e1dd);border-radius:12px;padding:1rem;overflow-wrap:anywhere}
.default-image-slot h2{font-size:1.05rem}.default-image-slot select{max-width:100%;width:100%}
.default-image-preview{display:block;max-width:100%;max-height:180px;object-fit:contain;margin:.8rem auto}
.default-image-history{display:flex;flex-wrap:wrap;gap:.5rem}.default-image-history figure{width:120px;margin:.4rem}.default-image-history img{max-width:120px;max-height:80px;object-fit:contain}
.default-product-image{display:block;width:72px;height:64px;object-fit:contain;margin:.4rem 0}.default-product-image[hidden],[data-default-image-slot][hidden]{display:none}
.default-cashier-brand img{max-width:300px;max-height:65px;object-fit:contain;margin-bottom:1rem}
.brand-logo.configured-default-image{width:170px;height:60px;object-fit:contain}
#default-images-root{overflow-wrap:anywhere;min-width:0}#default-images-root input[type=file]{max-width:100%}
#default-images-root .checkbox-label{display:flex;align-items:center;gap:.5rem;margin:1rem 0}#default-images-root .checkbox-label input{width:auto}
@media(max-width:650px){.default-image-grid{grid-template-columns:minmax(0,1fr)}.default-image-slot{padding:.8rem}.default-cashier-brand img{max-width:100%}}

/* Current-store source and bank dictionaries: exact raw tags, one save. */
.source-bank-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.source-bank-field>label{font-weight:600}.source-bank-tags{display:flex;flex-wrap:wrap;gap:8px;min-height:44px;margin:12px 0}.source-bank-tag{display:inline-flex;align-items:center;gap:8px;max-width:100%;padding:5px 10px;background:#f2f5f3;border:1px solid #d9e4dc;border-radius:6px}.source-bank-tag>span{white-space:pre-wrap;overflow-wrap:anywhere}.source-bank-tag button{padding:2px 6px;min-height:28px}.source-bank-field .search-row input{min-width:0;flex:1}#source-bank-history{margin-top:24px}#source-bank-history article{border-top:1px solid #e4e9e6;padding:12px 0;overflow-wrap:anywhere}@media(max-width:800px){.source-bank-grid{grid-template-columns:1fr}}

/* Keep the P205 source action readable when a narrow table is scrolled right. */
@media(max-width:650px){#self-use-report-details td:last-child .table-sub.mono{white-space:normal;overflow-wrap:anywhere;max-width:180px}}
/* P029/P030 retain real horizontal scrolling with reachable rightmost actions. */
#product-stock-root { min-width: 0; }
#product-stock-root .table-scroll { overflow-x: auto; overscroll-behavior-x: contain; }
#product-stock-root table { min-width: 1080px; }
#product-stock-root td:last-child { min-width: 145px; }
#product-stock-root td:last-child button { display: block; margin-top: 8px; }
#product-stock-warning-editor[hidden] { display: none; }
@media (max-width: 650px) {
  #product-stock-root .mono { overflow-wrap: anywhere; }
  #product-stock-root td .table-sub.mono { white-space: normal; max-width: 180px; }
  #product-stock-root td:last-child .table-sub.mono { max-width: 145px; }
  #product-stock-root .heading-actions { flex-wrap: wrap; }
}

/* P360: preserve complete audit IDs in narrow scrollable tables. */
@media(max-width:650px){.appointment-reference-audit-id{display:block;width:160px;max-width:100%;white-space:normal;overflow-wrap:anywhere}}

/* P034: keep entered quantities readable; the existing table wrapper scrolls overflow. */
#receipt-editor-lines input[data-field="quantity"] { width: 84px; min-width: 84px; }
#receipt-editor-lines input[data-field="subtotal"], #receipt-editor-lines input[data-field="unit_cost"] { min-width: 140px; }
#count-editor-root .panel, #count-editor-root .form-grid > label { min-width: 0; }
#count-editor-root .form-grid { margin-bottom: 18px; }
#count-product-catalog .table-scroll, #count-import-result .table-scroll { max-height: 30rem; }
#count-product-catalog table, #count-editor-lines table { min-width: 650px; }
#count-editor-lines [data-count-value] { width: 130px; min-width: 130px; }
#count-import-panel > button, #count-import-panel > label, #count-recount { margin: 0 8px 16px 0; }
#count-editor-form > label { margin-bottom: 18px; }
#count-selection-total { display: inline-block; margin-left: 12px; font-size: 12px; }
#count-editor-root .pager { gap: 10px; flex-wrap: wrap; }
@media(max-width:650px) {
  #count-editor-root .table-scroll::before { content: '左右滑动查看全部商品、数量及操作'; display: block; margin: 10px 0; font-size: 11px; color: var(--muted); }
  #count-editor-root button { max-width: 100%; white-space: normal; }
}

/* P035/P036: wrap complete local IDs so product names and quantities stay readable. */
:is(#store-distribution-root, #store-distribution-detail-root, #store-distribution-receipt-root) table { table-layout: fixed; white-space: normal; }
:is(#store-distribution-root, #store-distribution-detail-root, #store-distribution-receipt-root) :is(th, td) { padding: 12px 9px; overflow-wrap: anywhere; vertical-align: top; }
#store-distribution-list table, #store-distribution-lines table { min-width: 980px; }
#store-distribution-list :is(th, td):nth-child(1) { width: 20%; }
#store-distribution-list :is(th, td):nth-child(2) { width: 16%; }
#store-distribution-list :is(th, td):nth-child(3) { width: 12%; }
#store-distribution-list :is(th, td):nth-child(4) { width: 10%; }
#store-distribution-list :is(th, td):nth-child(10) { width: 9%; }
#store-distribution-lines :is(th, td):nth-child(1), #store-distribution-lines :is(th, td):nth-child(3) { width: 14%; }
#store-distribution-lines :is(th, td):nth-child(2), #store-distribution-lines :is(th, td):nth-child(4) { width: 16%; }
#store-distribution-receipts table { min-width: 880px; }
#store-distribution-receipts :is(th, td):nth-child(-n+3) { width: 22%; }
#store-distribution-receipts :is(th, td):nth-child(4) { width: 8%; }
#store-distribution-receipts :is(th, td):nth-child(5) { width: 15%; }
#store-distribution-receipt-lines table { min-width: 760px; }
#store-distribution-receipt-lines :is(th, td):nth-child(-n+2) { width: 17%; }
#store-distribution-receipt-lines :is(th, td):nth-child(3), #store-distribution-receipt-lines :is(th, td):nth-child(5) { width: 12%; }
#store-distribution-receipt-lines :is(th, td):nth-child(4), #store-distribution-receipt-lines :is(th, td):nth-child(6) { width: 14%; }
#store-distribution-receipt-lines :is(th, td):nth-child(7) { width: 8%; }
#store-distribution-receipt-lines :is(th, td):nth-child(8) { width: 6%; }

/* P037: full identifiers wrap without pushing quantity/mapping outside 1440px. */
#replenishment-root .table-wrap { min-width: 0; }
#replenishment-root table { width: 100%; table-layout: fixed; }
#replenishment-root td, #replenishment-root th, #replenishment-root .mono, #replenishment-root .notice { overflow-wrap: anywhere; word-break: break-word; white-space: normal; }
#replenishment-lines th:nth-child(1) { width: 27%; }
#replenishment-lines th:nth-child(2) { width: 36%; }
#replenishment-lines th:nth-child(3) { width: 14%; }
#replenishment-lines th:nth-child(4) { width: 13%; }
#replenishment-lines th:nth-child(5) { width: 10%; }
#replenishment-lines input, #replenishment-lines select { width: 100%; min-width: 0; }
#replenishment-catalog th:first-child { width: 12%; }
#replenishment-catalog th:last-child { width: 16%; }
#replenishment-root .form-grid > label { min-width: 0; }
#replenishment-root .form-grid select { width: 100%; min-width: 0; }
#replenishment-submit-form { margin-top: 24px; border-top: 1px solid var(--border); padding-top: 20px; }

/* P043/P044: historical reference prices and current stock remain separate. */
:is(#self-use-inquiry-root, #self-use-inquiry-detail-root) { min-width: 0; overflow-wrap: anywhere; }
:is(#self-use-inquiry-root, #self-use-inquiry-detail-root) table { table-layout: fixed; white-space: normal; }
:is(#self-use-inquiry-root, #self-use-inquiry-detail-root) :is(th, td) { padding: 12px 9px; overflow-wrap: anywhere; vertical-align: top; }
#self-use-inquiry-list table, #self-use-inquiry-lines table { min-width: 900px; }
#self-use-inquiry-list :is(th, td):first-child { width: 20%; }
#self-use-inquiry-list :is(th, td):nth-child(3), #self-use-inquiry-list :is(th, td):nth-child(4) { width: 19%; }
#self-use-inquiry-list :is(th, td):last-child { width: 9%; }
#self-use-inquiry-lines :is(th, td):nth-child(-n+3) { width: 21%; }
#self-use-inquiry-entries table, #self-use-inquiry-revisions table, #self-use-inquiry-audit table { min-width: 780px; }
#self-use-inquiry-entries :is(th, td):nth-child(-n+3) { width: 24%; }
#self-use-inquiry-revisions :is(th, td):last-child { width: 40%; }
#self-use-inquiry-audit :is(th, td):first-child { width: 24%; }
#self-use-inquiry-header .detail-item { display: grid; gap: 5px; min-width: 0; }
#self-use-inquiry-header .detail-item > span { color: var(--muted); font-size: 12px; }
:is(#self-use-inquiry-root, #self-use-inquiry-detail-root) .pager { flex-wrap: wrap; gap: 12px; }
:is(#self-use-inquiry-root, #self-use-inquiry-detail-root) :is(label, input, select) { min-width: 0; max-width: 100%; }
@media(max-width:650px) {
  :is(#self-use-inquiry-root, #self-use-inquiry-detail-root) .form-actions { flex-wrap: wrap; }
  :is(#self-use-inquiry-root, #self-use-inquiry-detail-root) .table-scroll::before { content: '左右滑动查看完整快照、数量与操作'; display: block; margin: 10px 0; color: var(--muted); font-size: 11px; }
}

/* P039/P040: distinguish snapshots/current counts and preserve complete evidence IDs. */
:is(#count-inquiry-root, #count-inquiry-detail-root) { min-width: 0; overflow-wrap: anywhere; }
:is(#count-inquiry-root, #count-inquiry-detail-root) table { table-layout: fixed; white-space: normal; }
:is(#count-inquiry-root, #count-inquiry-detail-root) :is(th, td) { padding: 12px 9px; overflow-wrap: anywhere; vertical-align: top; }
#count-inquiry-list table, #count-inquiry-lines table { min-width: 920px; }
#count-inquiry-list :is(th, td):first-child { width: 20%; }
#count-inquiry-list :is(th, td):nth-child(2) { width: 13%; }
#count-inquiry-list :is(th, td):nth-child(3) { width: 17%; }
#count-inquiry-list :is(th, td):last-child { width: 9%; }
#count-inquiry-lines :is(th, td):first-child { width: 18%; }
#count-inquiry-lines :is(th, td):nth-child(2) { width: 19%; }
#count-inquiry-lines :is(th, td):nth-child(7) { width: 17%; }
#count-inquiry-entries table, #count-inquiry-audit table { min-width: 800px; }
#count-inquiry-entries :is(th, td):nth-child(-n+3) { width: 25%; }
#count-inquiry-audit :is(th, td):first-child { width: 25%; }
:is(#count-inquiry-root, #count-inquiry-detail-root) .pager { flex-wrap: wrap; gap: 12px; }
:is(#count-inquiry-root, #count-inquiry-detail-root) :is(label, input, select) { min-width: 0; max-width: 100%; }
@media(max-width:650px) {
  :is(#count-inquiry-root, #count-inquiry-detail-root) .form-actions { flex-wrap: wrap; }
  :is(#count-inquiry-root, #count-inquiry-detail-root) .table-scroll::before { content: '左右滑动查看完整数量与操作'; display: block; margin: 10px 0; color: var(--muted); font-size: 11px; }
}

/* P045 dedicated editor: shared table() produces .table-scroll. */
#self-use-editor-root { min-width: 0; overflow-wrap: anywhere; }
#self-use-editor-root :is(label, input, select, textarea) { min-width: 0; max-width: 100%; }
#self-use-editor-root .table-scroll { overflow-x: auto; max-width: 100%; overscroll-behavior-x: contain; }
#self-use-editor-root table { min-width: 850px; table-layout: fixed; white-space: normal; }
#self-use-editor-root :is(th, td) { overflow-wrap: anywhere; vertical-align: top; padding: 12px 9px; }
#self-use-product-catalog table { min-width: 960px; }
#self-use-product-catalog th:first-child { width: 60px; }
#self-use-product-catalog th:nth-child(2), #self-use-editor-lines th:first-child { width: 30%; }
#self-use-editor-lines input { width: 130px; }
#self-use-product-catalog .table-scroll { max-height: 32rem; }
#self-use-editor-root .pager { gap: 12px; flex-wrap: wrap; }
#self-use-selection-total { display: inline-block; margin: 10px; }
@media(max-width:650px) {
  #self-use-editor-root .form-actions { flex-wrap: wrap; }
  #self-use-editor-root .table-scroll::before { content: '左右滑动查看全部商品、数量及操作'; display: block; margin: 10px 0; font-size: 11px; color: var(--muted); }
}
