:root{font-family:Helvetica, Arial, Verdana, 'LiHei Pro', '微軟正黑體', '新細明體', sans-serif;color:#253d35;background:#f5f7f6;font-synthesis:none;font-size:14px;--green:#246b54;--line:#e4eae6;--muted:#8a9690}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;transition:background .15s,color .15s}button:disabled{cursor:wait;opacity:.5}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,.table-scroll:focus-visible{outline:2px solid #4f9b80;outline-offset:3px}button{border:0}svg{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.6}.app-header{height:76px;display:flex;align-items:center;justify-content:space-between;padding:0 42px;background:#fff;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px;font-size:16px;font-weight:650;letter-spacing:1px}.brand-mark{background:var(--green);width:34px;height:36px;border-radius:9px;display:grid;place-items:center;color:#fff}.brand-mark svg{width:23px;height:23px}.brand-divider{height:18px;width:1px;background:#dce3de;margin:0 7px}.brand-section{font-weight:400;font-size:13px;color:#7e8983;letter-spacing:0}.today{font-size:12px;color:#7b8981;font-variant-numeric:tabular-nums;letter-spacing:.4px}main{padding:44px 42px 40px;max-width:1920px;margin:0 auto}.page-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:30px}.eyebrow{font-size:10px;letter-spacing:2.2px;font-weight:600;color:#84968c}h1{font-size:28px;font-weight:600;letter-spacing:1.5px;margin:9px 0 0}.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:11px 19px;min-height:42px;border-radius:6px;font-size:13px;font-weight:500;white-space:nowrap}.primary{background:var(--green);color:white;box-shadow:0 2px 3px #143b1910}.primary:hover{background:#195640}.plus{font-size:22px;line-height:16px;font-weight:300}.secondary{background:#fff;border:1px solid #dce3de;color:#55645b}.secondary:hover{background:#f3f6f4}.register{border:1px solid #dfe6e1;border-radius:10px;background:#fff;overflow:hidden;box-shadow:0 3px 12px #273c3003}.toolbar{min-height:79px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 24px}.tabs{display:flex;align-self:stretch;gap:27px}.tabs button{position:relative;background:none;color:#8a948e;font-size:13px;padding:0 1px;white-space:nowrap}.tabs button[aria-selected=true]{color:var(--green);font-weight:600}.tabs button[aria-selected=true]:after{content:"";position:absolute;height:3px;bottom:0;left:0;right:0;background:var(--green);border-radius:3px 3px 0 0}.tabs button span{display:inline-block;margin-left:5px;padding:2px 7px;border-radius:5px;font-size:11px;background:#eaf1ec;color:#3f705b}.search{display:flex;gap:9px;align-items:center;border:1px solid var(--line);border-radius:6px;padding:9px 12px;width:260px}.search svg{height:16px;width:16px;flex-shrink:0;color:#939e97}.search input{border:0;outline:0;background:transparent;min-width:0;width:100%;font-size:12px;color:#33493d}.search input::placeholder{color:#9ba59f}.table-region{position:relative;min-height:435px;background:repeating-linear-gradient(to bottom,#fff 0,#fff 63px,#f0f3f1 64px,#fff 65px);background-position:0 47px}/* Fluid summary table; full fields live in each expanded record. */
.table-scroll{min-height:435px;width:100%}
table{border-collapse:separate;border-spacing:0;width:100%;table-layout:fixed;font-size:12px;text-align:left}
th{height:48px;padding:0 16px;background:#f3f6f4;color:#708076;font-weight:500;border-top:1px solid var(--line);border-bottom:1px solid var(--line);text-align:left}
td{padding:17px 16px;border-bottom:1px solid #edf1ee;color:#5b6b62;background:#fff;overflow-wrap:anywhere;vertical-align:middle;line-height:1.6}
.summary-row:hover>td,.summary-row.is-expanded>td{background:#f8fbf9}
th.col-archived{width:60px}th.col-number{width:17%}th.col-item{width:26%}th.col-applicant{width:19%}th.col-amount{width:14%}th.col-status{width:90px}th.col-details{width:78px}
.col-archived{text-align:center}.col-amount{text-align:right;font-variant-numeric:tabular-nums}.col-details{text-align:right}
.record-link{padding:0;background:transparent;color:var(--green);font-weight:550;text-align:left;overflow-wrap:anywhere;max-width:100%}.record-link:hover{text-decoration:underline}
.cell-primary{display:block;font-weight:500;color:#3e5447}.cell-secondary{display:block;font-size:11px;color:#8b988f;margin-top:5px;line-height:1.6}
input[type=checkbox]{accent-color:var(--green);width:16px;height:16px;cursor:pointer;vertical-align:middle}
.detail-toggle{color:var(--green);background:transparent;padding:8px 0;font-size:12px;white-space:nowrap}.detail-toggle:hover{color:#153f2f}
.detail-row>td{padding:0;background:#f8fbf9}.record-details{padding:23px 28px 25px;border-top:1px dashed #dce7df;display:grid;gap:22px;grid-template-columns:1fr 1fr 1.4fr}
.record-details section{min-width:0}.record-details h3{font-size:12px;margin:0 0 15px;color:#47725b;font-weight:600}.record-details dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:0}.record-details dt{font-size:11px;color:#8c9a90;margin-bottom:5px}.record-details dd{font-size:12px;line-height:1.7;color:#3d5445;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.detail-wide{grid-column:1/-1}.detail-edit{grid-column:1/-1;justify-self:end;padding:7px 14px;min-height:34px}.detail-hint{color:#95a297}
.status{padding:5px 9px;border-radius:4px;font-size:11px;background:#f0f2f1;color:#76837a}.status.pending{background:#fff4df;color:#aa7b28}.status.progress{background:#eaf1fb;color:#557aa8}.status.done{background:#e9f3ec;color:#4c8060}.empty-state{position:absolute;top:133px;left:0;right:0;display:flex;align-items:center;flex-direction:column;pointer-events:none}.empty-state[hidden]{display:none}.empty-icon{display:grid;place-items:center;width:66px;height:66px;border:1px solid #dce7df;border-radius:18px;background:#f2f7f3;color:#6e9780;box-shadow:0 5px 0 0 #ffffff,0 6px 0 0 #edf2ee}.empty-icon svg{width:40px;height:40px}.empty-state h2{font-size:16px;font-weight:500;letter-spacing:.5px;margin:22px 0 8px}.empty-state p{font-size:12px;color:#95a098;margin:0}.text-button{font-size:12px;color:var(--green);background:#fff;padding:10px 12px;margin-top:17px;pointer-events:auto;border-radius:5px}.text-button:hover{background:#eff6f1}.table-footer{height:53px;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:15px;padding:0 24px;font-size:11px;color:#94a097}.save-status{display:flex;align-items:center;gap:6px}.save-status:before{content:"";width:5px;height:5px;border-radius:50%;background:#81a58c}.save-status.error{color:#bb6054}.save-status.error:before{background:#bb6054}dialog{padding:0;border:1px solid #e0e7e2;border-radius:12px;width:740px;max-width:calc(100vw - 28px);max-height:92vh;box-shadow:0 20px 80px #172c3429;color:#253d35}dialog::backdrop{background:#1c322c69;backdrop-filter:blur(3px)}dialog form{display:flex;flex-direction:column;max-height:90vh}.dialog-heading{padding:25px 30px 21px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.dialog-heading h2{font-size:22px;font-weight:550;margin:8px 0 0;letter-spacing:1px}.icon-button{width:34px;height:34px;border-radius:50%;background:#f4f6f4;font-size:26px;color:#89958c}.form-body{padding:25px 30px;overflow:auto}.form-section+.form-section{margin-top:27px}.form-section h3{font-size:13px;font-weight:600;margin:0 0 17px;display:flex;gap:9px;align-items:center}.form-section h3 span{font-size:10px;letter-spacing:1px;color:#759882;background:#edf4ef;padding:4px 5px;border-radius:3px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px 20px}.field{display:flex;flex-direction:column;gap:7px;font-size:12px;color:#6c7c71}.field.wide{grid-column:1/-1}.field input,.field select,.field textarea{border:1px solid #dce4de;border-radius:5px;padding:10px 11px;width:100%;min-width:0;background:#fff;color:#334c3e;min-height:40px}.field input::placeholder,.field textarea::placeholder{color:#b0b9b2}.field textarea{resize:vertical;min-height:68px}.required{color:#af7960}.archive-field{display:flex;align-items:center;gap:8px;font-size:12px;color:#657a6a;grid-column:1/-1}.dialog-footer{border-top:1px solid var(--line);display:flex;gap:10px;padding:18px 30px;background:#fbfcfb}.footer-spacer{flex:1}.delete-button{background:none;color:#b3675e;font-size:12px;padding:5px}.delete-button:hover{color:#933f35}.form-error{color:#b35044;font-size:12px;margin-bottom:0}.form-error:empty{display:none}.toast{position:fixed;bottom:26px;left:50%;transform:translate(-50%,15px);background:#284c3c;color:white;border-radius:7px;padding:12px 22px;box-shadow:0 5px 20px #244a3520;font-size:13px;opacity:0;pointer-events:none;transition:.2s;z-index:10}.toast.show{opacity:1;transform:translate(-50%,0)}[hidden]{display:none!important}@media(min-height:850px){.table-region,.table-scroll{min-height:565px}.empty-state{top:185px}}@media(max-width:700px){.app-header{padding:0 20px;height:65px}.today{font-size:10px}.brand-section,.brand-divider{display:none}main{padding:30px 18px}.page-heading{margin-bottom:24px;gap:12px}h1{font-size:23px;letter-spacing:.5px}.eyebrow{font-size:8px;letter-spacing:1.5px}.page-heading .primary{padding:10px 12px;font-size:12px}.toolbar{padding:0 16px;flex-wrap:wrap;gap:0}.tabs{height:61px;gap:24px}.search{width:100%;margin:12px 0 16px}.table-footer{padding:12px 16px;height:auto;flex-wrap:wrap;gap:10px}.detail-hint{display:none}.dialog-heading{padding:20px}.form-body{padding:20px}.form-grid{gap:14px 12px}.dialog-footer{padding:16px 20px}.empty-state p{font-size:11px}.save-status{font-size:10px}}

@media(max-width:1050px) and (min-width:761px){main{padding-left:24px;padding-right:24px}th,td{padding-left:10px;padding-right:10px}th.col-number{width:18%}th.col-item{width:23%}th.col-applicant{width:18%}th.col-amount{width:13%}th.col-archived{width:48px}th.col-status{width:76px}th.col-details{width:65px}.record-details{gap:22px;grid-template-columns:1fr 1fr}.record-details section:last-of-type{grid-column:1/-1}.record-details section:last-of-type dl{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:760px){
  .table-region{background:white}.table-scroll{width:100%}table,tbody{display:block;width:100%}thead{display:none}
  .summary-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px 12px;padding:20px;border-top:1px solid var(--line)}
  .summary-row>td{display:block;padding:0;border:0;background:transparent;min-width:0}
  .summary-row:hover,.summary-row.is-expanded{background:#f8fbf9}.summary-row:hover>td,.summary-row.is-expanded>td{background:transparent}
  td.col-number{grid-column:1;grid-row:1}td.col-archived{grid-column:2;grid-row:1;text-align:right;display:flex;align-items:flex-start;justify-content:flex-end;gap:6px;padding-top:2px}td.col-archived:before{content:'歸檔';font-size:11px;color:#88978d}td.col-archived input{margin:2px 0 0}
  td.col-item{grid-column:1;grid-row:2}td.col-status{grid-column:2;grid-row:2;text-align:right}
  td.col-applicant{grid-column:1;grid-row:3}td.col-applicant:before{content:'申請人員／廠商';display:block;color:#96a197;font-size:10px;margin-bottom:4px}
  td.col-amount{grid-column:2;grid-row:3;align-self:end;font-size:16px;font-weight:600;color:#355744}td.col-amount:before{content:'金額';display:block;font-size:10px;font-weight:400;color:#96a197;margin-bottom:4px}
  td.col-details{grid-column:1/-1;grid-row:4;border-top:1px solid #edf1ee;padding-top:7px}.detail-toggle{width:100%;text-align:right;padding:5px 0}
  .detail-row{display:block}.detail-row>td{display:block}.record-details{display:flex;flex-direction:column;padding:22px 20px;gap:24px}.detail-edit{align-self:flex-end}.detail-hint{display:none}
}
@media(max-width:420px){.form-grid{grid-template-columns:minmax(0,1fr)}.page-heading{flex-wrap:wrap}.page-heading .primary{margin-top:4px}}
.header-main{display:flex;align-items:center;gap:24px;min-width:0}
.header-pages{position:relative;display:inline-flex;align-items:center;gap:3px;padding:3px;border:1px solid #dfe9e2;border-radius:10px;background:#f4f7f5}
.header-pages a{position:relative;z-index:1;display:inline-flex;align-items:center;justify-content:center;min-width:74px;min-height:36px;padding:0 14px;border-radius:7px;color:#687d70;text-decoration:none;font-size:13px;font-weight:500;white-space:nowrap;transition:background .15s,color .15s,box-shadow .15s}
.header-pages a:hover:not([aria-current="page"]){background:#e8f0ea;color:#246b54}
.header-pages a[aria-current="page"]{background:#fff;color:var(--green);font-weight:650;box-shadow:0 1px 4px #193e281a}
.header-pages a:focus-visible{outline:2px solid #4f9b80;outline-offset:2px}
.header-pages .nav-indicator{position:absolute;top:3px;bottom:3px;left:0;z-index:0;border-radius:7px;background:#fff;box-shadow:0 1px 4px #193e281a;pointer-events:none;transition:transform .22s ease,width .22s ease}
.header-pages.is-animated a[aria-current="page"]{background:transparent;box-shadow:none}
.header-pages.is-switching a[aria-current="page"]{color:#687d70}
.header-pages.is-switching a:hover{background:transparent}
.header-pages.is-switching a.is-pending{color:var(--green)}
html.nav-enter-forward main{animation:nav-enter-forward .26s ease-out both}
html.nav-enter-backward main{animation:nav-enter-backward .26s ease-out both}
html.nav-exit-forward main{animation:nav-exit-forward .22s ease-in both;pointer-events:none}
html.nav-exit-backward main{animation:nav-exit-backward .22s ease-in both;pointer-events:none}
html.nav-enter-forward,html.nav-enter-backward,html.nav-exit-forward,html.nav-exit-backward{overflow-x:clip}
@keyframes nav-enter-forward{from{opacity:0;transform:translateX(28px)}to{opacity:1;transform:translateX(0)}}
@keyframes nav-enter-backward{from{opacity:0;transform:translateX(-28px)}to{opacity:1;transform:translateX(0)}}
@keyframes nav-exit-forward{to{opacity:0;transform:translateX(-28px)}}
@keyframes nav-exit-backward{to{opacity:0;transform:translateX(28px)}}
@media(prefers-reduced-motion:reduce){.header-pages .nav-indicator{transition:none}html.nav-enter-forward main,html.nav-enter-backward main,html.nav-exit-forward main,html.nav-exit-backward main{animation:none}}
@media print{html.nav-enter-forward main,html.nav-enter-backward main,html.nav-exit-forward main,html.nav-exit-backward main{animation:none!important}}
@media(max-width:700px){.header-main{gap:16px}.header-pages a{min-width:66px;padding:0 10px}}
@media(max-width:400px){.brand-name{display:none}.header-main{gap:12px}}
.list-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) minmax(160px,.85fr);gap:12px;padding:15px 24px;border-top:1px solid var(--line);background:#fff}
.list-sort{display:flex;align-items:center;gap:7px;min-width:0;color:#718176;font-size:11px}
.list-sort select,.pagination select{min-width:0;height:38px;border:1px solid #dce4de;border-radius:6px;background:#fff;color:#354c3e;padding:0 10px;font-size:12px}
.column-filter{position:relative;min-width:0;align-self:end}
.filter-trigger{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:38px;padding:0 12px;border:1px solid #dce4de;border-radius:6px;background:#fff;color:#506c58;font-size:12px;text-align:left}.filter-trigger:hover,.filter-trigger[aria-expanded=true]{border-color:#9fbcaa;background:#f5faf6}.filter-trigger.is-active{border-color:#79aa89;background:#ecf5ee;color:var(--green);font-weight:600}.filter-count{display:grid;place-items:center;flex:none;min-width:18px;height:18px;border-radius:4px;font-size:13px}.filter-trigger.is-active .filter-count{background:#cfe6d4;font-size:10px}
.filter-popover{position:absolute;top:calc(100% + 6px);left:0;z-index:30;width:min(310px,calc(100vw - 40px));padding:12px;border:1px solid #dce6de;border-radius:9px;background:#fff;box-shadow:0 12px 32px #24473324;color:#355244}.filter-popover[hidden]{display:none}
.filter-tabs{display:flex;gap:5px;margin-bottom:10px}.filter-tabs button{flex:1;min-width:0;padding:8px 5px;border-radius:5px;background:#f4f7f5;color:#62786a;font-size:11px;white-space:nowrap}.filter-tabs button[aria-pressed=true]{background:#e2f0e6;color:var(--green);font-weight:600}
.filter-search{width:100%;height:36px;padding:0 10px;border:1px solid #dce4de;border-radius:5px;background:#fff;color:#334c3e;font-size:12px}
.filter-all,.filter-value{display:flex;align-items:center;gap:9px;font-size:12px;color:#4d6454}.filter-all{padding:10px 4px 8px;border-bottom:1px solid var(--line)}.filter-all input,.filter-value input{flex:none;margin:0}
.filter-values{max-height:218px;min-height:42px;overflow:auto;padding:4px 0}.filter-value{min-height:31px;padding:5px 4px;cursor:pointer;overflow-wrap:anywhere}.filter-value:hover{background:#f5f9f6}.filter-empty{margin:10px 4px;color:#93a096;font-size:12px}
.filter-actions{display:flex;justify-content:space-between;gap:8px;padding-top:10px;border-top:1px solid var(--line)}.filter-actions button{min-height:34px;padding:6px 11px;border-radius:5px;font-size:12px}.filter-clear{background:transparent;color:#66796b}.filter-clear:hover{background:#f0f5f1}.filter-apply{background:var(--green);color:#fff}.filter-apply:hover{background:#195640}
.list-sort>div{display:flex;flex:1;gap:6px;min-width:0}.list-sort select{flex:1;width:100%}
.list-sort button{flex:none;width:38px;height:38px;border:1px solid #dce4de;border-radius:6px;background:#f7faf8;color:var(--green);font-size:20px}.list-sort button:hover{background:#eaf3ed}
.pagination{display:flex;align-items:center;gap:7px;white-space:nowrap;font-size:11px;color:#718176}
.pagination select{height:32px;padding:0 5px;max-width:62px}.pagination button{width:30px;height:32px;border:1px solid #dce4de;border-radius:5px;background:#fff;color:var(--green);font-size:19px}.pagination button:hover:not(:disabled){background:#eaf3ed}.pagination button:disabled{opacity:.35}
@media(max-width:900px){.list-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.column-filter:nth-child(2) .filter-popover{left:auto;right:0}}
@media(max-width:700px){.list-controls{padding:14px 16px}.table-footer .pagination{order:3;width:100%;justify-content:center}.table-footer #record-count{flex:1}}
@media(max-width:420px){.list-controls{gap:10px}.filter-trigger,.list-sort select{font-size:11px}}
.settings-main{max-width:850px}.settings-section+.settings-section{margin-top:34px}.settings-section h2{font-size:16px;font-weight:600;margin:0 0 14px;color:#355744}.location-panel{background:#fff;border:1px solid #dfe6e1;border-radius:10px;overflow:hidden;box-shadow:0 3px 12px #273c3003}.location-add{padding:26px 28px 30px}.location-add label{display:block;font-size:12px;color:#63796a;margin-bottom:10px}.location-add-controls{display:flex;gap:10px}.location-add-controls input,.location-edit input{flex:1;min-width:0;border:1px solid #dce4de;border-radius:5px;padding:10px 12px;color:#334c3e;background:#fff;outline:none}.location-add-controls input:focus,.location-edit input:focus{border-color:#5c9873;box-shadow:0 0 0 2px #e0eee4}.location-add-controls .primary{min-width:84px}.location-list-heading{display:flex;justify-content:space-between;padding:13px 28px;background:#f3f6f4;border-top:1px solid var(--line);border-bottom:1px solid var(--line);color:#708076;font-size:12px}.location-list-heading span:last-child{color:#91a095}.location-row{display:flex;align-items:center;justify-content:space-between;min-height:64px;padding:10px 28px;border-bottom:1px solid #edf1ee;gap:16px}.location-name{font-size:13px;color:#3d5445;overflow-wrap:anywhere}.location-actions{display:flex;gap:20px;flex-shrink:0}.location-actions button{background:none;color:#47775d;font-size:12px;padding:7px 0}.location-actions button:hover{text-decoration:underline}.location-actions .location-remove{color:#b3675e}.location-edit{display:flex;align-items:center;gap:9px;width:100%}.location-edit .primary,.location-edit .secondary{min-height:38px;padding:8px 12px}.location-empty{padding:46px 20px;color:#94a197;font-size:12px;text-align:center;margin:0}.settings-error{color:#b35044;font-size:12px;margin:0 28px}.settings-error:not(:empty){padding:12px 0}.location-panel-footer{display:flex;justify-content:flex-end;border-top:1px solid var(--line);padding:15px 28px;color:#94a197;font-size:11px}
@media(max-width:700px){.app-header>.today{display:none}.app-header .brand-section{display:inline}.app-header .brand-divider{display:block}.settings-main{padding-top:30px}.location-add{padding:22px 18px}.location-list-heading{padding:13px 18px}.location-row{padding:12px 18px}.location-panel-footer{padding:15px 18px}.settings-error{margin:0 18px}}
@media(max-width:420px){.location-edit{flex-wrap:wrap}.location-edit input{flex-basis:100%}.location-edit .primary,.location-edit .secondary{flex:1}}
.settings-main{max-width:1100px}.settings-layout{display:grid;grid-template-columns:190px minmax(0,1fr);gap:28px;align-items:start}.settings-menu{display:flex;flex-direction:column;gap:4px;padding:6px;background:#fff;border:1px solid var(--line);border-radius:10px}.settings-menu button{background:transparent;color:#66796c;text-align:left;font-size:13px;padding:12px 14px;border-radius:6px;white-space:nowrap}.settings-menu button:hover{background:#f2f7f3}.settings-menu button[aria-pressed=true]{background:#eaf3ed;color:var(--green);font-weight:600}.settings-content{min-width:0}.settings-content .settings-section{margin-top:0}
@media(max-width:700px){.settings-layout{display:block}.settings-menu{flex-direction:row;overflow-x:auto;margin-bottom:22px}.settings-menu button{padding:10px 12px}}
.location-edit>div:last-child{display:flex;gap:9px}
.vendor-add,.vendor-edit{width:100%}
.vendor-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 20px}
.vendor-add .vendor-fields label,.vendor-edit .vendor-fields label{display:flex;flex-direction:column;gap:7px;margin:0;font-size:12px;color:#63796a}
.vendor-fields input{width:100%;min-width:0;min-height:40px;border:1px solid #dce4de;border-radius:5px;padding:10px 12px;color:#334c3e;background:#fff}
.vendor-fields input:focus{outline:2px solid #e0eee4;border-color:#5c9873}
.vendor-form-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:19px}
.vendor-edit{padding:10px 0}
.vendor-info{min-width:0;display:flex;flex-direction:column;gap:6px}
.vendor-summary{display:flex;flex-wrap:wrap;gap:4px 14px;color:#7b8c80;font-size:11px;line-height:1.5;overflow-wrap:anywhere}
.vendor-summary:empty{display:none}
@media(max-width:700px){.vendor-fields{grid-template-columns:minmax(0,1fr)}.vendor-info{min-width:0}.location-row{align-items:flex-start}.location-actions{padding-top:2px}}
.new-choice-dialog{width:410px;padding:27px 28px}
.new-choice-dialog form{display:block}
.new-choice-dialog h2{font-size:18px;font-weight:600;margin:0 0 12px}
.new-choice-dialog p{font-size:13px;line-height:1.7;color:#68796e;margin:0 0 25px;overflow-wrap:anywhere}
.new-choice-dialog strong{color:#253d35}
.new-choice-actions{display:flex;justify-content:flex-end;gap:9px}
.new-choice-dialog.vendor-choice{width:620px}
.new-choice-dialog form{overflow:auto}
.new-choice-dialog .vendor-fields label{display:flex;flex-direction:column;gap:7px;font-size:12px;color:#63796a}
.new-choice-dialog .vendor-fields{margin-bottom:22px}
.new-choice-dialog.vendor-choice p{margin-bottom:19px}
@media(max-width:500px){#editor .dialog-heading{flex-wrap:wrap;gap:12px}#editor .editor-heading-actions{width:100%;justify-content:flex-end}}
@media(max-width:600px){.brand-name{display:none}.header-main{gap:12px}.header-pages a{min-width:0;padding:0 9px;font-size:12px}}
.location-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 18px;width:100%}
.location-fields label{display:flex;flex-direction:column;gap:7px;margin:0;font-size:12px;color:#63796a}
.location-fields label:first-child{grid-column:1/-1}
.location-fields input{width:100%;min-width:0;min-height:40px;border:1px solid #dce4de;border-radius:5px;padding:10px 12px;color:#334c3e;background:#fff}
.location-fields input:focus{outline:2px solid #e0eee4;border-color:#5c9873}
.location-form-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:18px}
.location-edit:has(.location-fields){display:block;padding:10px 0}
.location-info{display:flex;flex-direction:column;gap:6px;min-width:0}
@media(max-width:560px){.location-fields{grid-template-columns:minmax(0,1fr)}}
.register th.header-with-tools{position:relative;height:72px;padding:8px 10px;vertical-align:middle}
.header-heading{display:flex;align-items:center;justify-content:flex-start;gap:5px;min-width:0;font-size:12px;color:#5c7263;line-height:1.25}
.header-heading>span{min-width:0;overflow-wrap:anywhere}
.header-filter{flex:none}
.header-filter .filter-trigger{display:grid;place-items:center;width:22px;height:22px;min-height:0;padding:0;border:1px solid transparent;border-radius:5px;background:transparent;color:#62836d}
.header-filter .filter-trigger:hover,.header-filter .filter-trigger[aria-expanded=true]{background:#e3eee6;border-color:#c2d9c8}
.header-filter .filter-trigger.is-active{background:#dceee0;border-color:#94c6a2;color:#246b54}
.header-filter .filter-count{display:grid;place-items:center;min-width:17px;height:17px;font-size:12px;font-weight:600;line-height:1}
.header-filter .filter-count:empty::before{content:"";display:block;width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-2px) rotate(45deg)}
.header-filter .filter-trigger.is-active .filter-count{font-size:10px}
.header-sorts{display:flex;align-items:center;gap:3px;margin-top:5px;flex-wrap:wrap}
.col-amount .header-heading,.col-amount .header-sorts{justify-content:flex-end}
.header-sort{display:inline-flex;align-items:center;gap:3px;min-height:22px;padding:2px 5px;border-radius:4px;background:transparent;color:#839389;font-size:10px;white-space:nowrap}
.header-sort:hover{background:#e8f0ea;color:#246b54}
.header-sort.is-active{background:#e2eee5;color:#246b54;font-weight:650}
.sort-arrow{font-size:13px;line-height:1}
.header-with-tools .filter-popover{top:calc(100% + 3px);left:0;text-align:left;font-weight:400}
.header-with-tools.col-item .filter-popover,.header-with-tools.col-applicant .filter-popover{left:auto;right:0}
@media(max-width:760px){
  .register .table-region{min-height:0;background:#fff}
  .register .table-scroll{min-height:0}
  .register thead{display:block;width:100%}
  .register thead tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
  .register thead th{display:block;width:auto;height:auto;min-height:70px;padding:9px 12px;border-top:0;border-right:1px solid var(--line)}
  .register thead th.col-archived,.register thead th.col-details{display:none}
  .register thead th.header-with-tools{height:auto;min-height:70px;padding:9px 12px}
  .register .empty-state{position:static;padding:45px 12px 55px}
  .register .filter-values{max-height:150px}
}
.record-details .quote-detail-section{grid-column:1/-1;padding-top:18px;border-top:1px solid #e2eae4}
.detail-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.quote-detail-section h3{margin-bottom:9px}
.quote-current{margin-bottom:12px;color:#95a297;font-size:12px;overflow-wrap:anywhere}
.quote-attachment-controls{display:flex;align-items:center;flex-wrap:wrap;gap:10px 16px}
.quote-detail-section input[type=file]{max-width:100%;min-width:0;color:#526658;font-size:12px}
.quote-detail-section input[type=file]::file-selector-button{margin-right:10px;padding:8px 12px;border:1px solid #dce4de;border-radius:5px;background:#fff;color:#426d50;cursor:pointer;font:inherit}
.quote-detail-section input[type=file]::file-selector-button:hover{background:#f2f7f3}
.quote-detail-section a{color:var(--green);font-size:12px;text-decoration:none;overflow-wrap:anywhere}
.quote-detail-section a:hover{text-decoration:underline}
.quote-detail-section .quote-save{min-height:34px;padding:6px 12px;font-size:12px}
.quote-detail-section .text-button{margin:0;padding:5px 7px;color:#b3675e}
.quote-detail-section small{display:block;margin-top:8px;color:#92a096;font-size:11px;overflow-wrap:anywhere}
html:has(dialog[open]),body:has(dialog[open]){overflow:hidden}
dialog[open],dialog[open] :is(.form-body,.print-inputs,.print-preview-pane,.print-workspace,form){overscroll-behavior:contain}
@media print{html:has(dialog[open]),body:has(dialog[open]){overflow:visible!important}}
