:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--forest:#24513d;--forest-dark:#173629;--leaf:#7aae68;--cream:#f8f5eb;--paper:#fff;--line:#dfe7dd;--muted:#66726a;--shadow:0 18px 42px #234c381f}*{box-sizing:border-box}html{background:#eef4e9;min-height:100%}body{color:#243129;background:radial-gradient(circle at 12% 0,#ffffffe6,#0000 28%),linear-gradient(#f4f8f1 0%,#e5efe0 100%);min-height:100vh;margin:0;font-family:Inter,Noto Sans TC,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}button,input,select{font:inherit}button{cursor:pointer;min-width:48px;min-height:48px}a{color:inherit}.merchant-shell{width:min(100%,980px);margin:0 auto;padding:28px 20px 64px}.merchant-header{justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:20px;display:flex}.merchant-brand{color:var(--forest);margin:0 0 8px;font-weight:900}.merchant-header h1{color:var(--forest-dark);margin:0;font-size:clamp(34px,6vw,54px)}.merchant-subtitle{max-width:690px;color:var(--muted);line-height:1.65}.dashboard-link,.dashboard-links a{color:var(--forest);font-weight:900;text-decoration:none}.dashboard-links{justify-content:flex-end;margin-bottom:14px;display:flex}.progress-card,.form-section,.status-card,.records-card{border:1px solid var(--line);box-shadow:var(--shadow);background:#fffffff0;border-radius:22px}.progress-card{margin-bottom:18px;padding:18px 20px}.progress-steps{grid-template-columns:repeat(3,1fr);gap:10px;display:grid}.progress-step{color:#758179;text-align:center;background:#f0f5ed;border-radius:14px;padding:12px;font-size:13px;font-weight:800}.progress-step.active{color:#fff;background:var(--forest)}.merchant-form{gap:18px;display:grid}.form-section{padding:22px}.form-section h2{color:var(--forest-dark);margin:0 0 4px}.form-section>p,.section-heading p{color:var(--muted);margin:0 0 18px;line-height:1.55}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;display:grid}.field{gap:7px;display:grid}.field.full{grid-column:1/-1}.field span{font-weight:800}.field small{color:var(--muted);line-height:1.45}.field input,.field select,.period-row select{background:#fff;border:1px solid #cfd8ce;border-radius:12px;outline:none;width:100%;min-height:48px;padding:11px 13px}.field input:focus,.field select:focus,.period-row select:focus{border-color:var(--leaf);box-shadow:0 0 0 3px #7aae6829}.other-field{margin-top:14px}.meal-grid{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;display:grid}.meal-option{border:1px solid var(--line);background:#fbfdf9;border-radius:12px;align-items:center;gap:9px;min-height:46px;padding:10px 12px;font-weight:700;display:flex}.meal-option:has(input:checked){border-color:var(--leaf);color:var(--forest);background:#eaf4e5}.meal-option input{width:18px;height:18px;accent-color:var(--forest)}.section-heading{justify-content:space-between;align-items:flex-start;gap:14px;display:flex}.compact-action{white-space:nowrap;padding:8px 12px;min-height:48px!important}.hours-editor{gap:10px;display:grid}.hours-row{border:1px solid var(--line);background:#fbfdf9;border-radius:14px;grid-template-columns:150px 1fr;gap:16px;padding:14px;display:grid}.hours-row.closed{background:#f4f5f2}.day-control{flex-direction:column;gap:10px;display:flex}.closed-toggle{color:var(--muted);align-items:center;gap:8px;font-size:14px;display:flex}.closed-toggle input{width:18px;height:18px;accent-color:var(--forest)}.closed-label{color:var(--muted);align-self:center;font-weight:800}.period-list{gap:8px;display:grid}.period-row{grid-template-columns:74px minmax(100px,1fr) 24px minmax(100px,1fr) auto;align-items:center;gap:8px;display:grid}.period-row>span{color:var(--muted);font-size:13px;font-weight:800}.period-row select{min-height:42px;padding:8px 10px}.text-button{color:var(--forest);background:0 0;border:0;justify-self:start;padding:4px 0;font-weight:900}.hours-summary{color:#526159;gap:5px;margin:14px 0;display:grid}.hours-summary span{display:block}.form-actions{gap:10px;display:grid}.primary-action,.secondary-action{border:0;border-radius:14px;min-height:50px;font-weight:900}.primary-action{color:#fff;background:var(--forest);box-shadow:0 12px 20px #24513d2e}.secondary-action{color:var(--forest);background:#eaf3e6;border:1px solid #cfe0c9}.primary-action:disabled,.secondary-action:disabled{cursor:default;opacity:.52}.link-action{justify-content:center;align-items:center;padding:0 18px;text-decoration:none;display:inline-flex}.message-box{color:#526159;background:#ffffffb3;border:1px dashed #bfd0bb;border-radius:14px;margin:0;padding:14px 16px}.status-layout{gap:18px;display:grid}.status-card,.records-card{padding:22px}.status-badge{color:#945c1d;background:#fff0d6;border-radius:999px;padding:7px 11px;font-size:13px;font-weight:900;display:inline-flex}.status-badge.approved{color:#2f6d39;background:#dff0dc}.status-badge.revision{color:#9a5f22;background:#ffe8cf}.status-badge.rejected{color:#9b3939;background:#f7dddd}.selected-types{flex-wrap:wrap;gap:8px;margin:16px 0;display:flex}.selected-types span{color:var(--forest);background:#edf4e9;border-radius:999px;padding:7px 10px;font-size:13px;font-weight:800}.button-row{flex-wrap:wrap;gap:10px;display:flex}.button-row>*{flex:180px}.plan-card,.settlement-card{color:var(--forest-dark);background:#edf6e9;border:1px solid #cfe0c9;border-radius:14px;gap:6px;margin:14px 0;padding:14px 16px;display:grid}.plan-card span,.settlement-card p{color:var(--muted);margin:0}.settlement-card h3{color:var(--forest-dark);margin:0}.task-code-card{gap:16px;display:grid}.task-code-head{justify-content:space-between;align-items:flex-start;gap:14px;display:flex}.task-code-head h2,.pending-list h3{color:var(--forest-dark);margin:0 0 4px}.task-code-head p,.pending-list p,.current-code-box small{color:var(--muted);margin:0;line-height:1.5}.current-code-box{background:#edf6e9;border:1px solid #cfe0c9;border-radius:14px;gap:6px;padding:16px;display:grid}.current-code-box span{color:var(--muted);font-size:13px;font-weight:900}.current-code-box strong{color:var(--forest-dark);letter-spacing:.16em;font-size:clamp(36px,8vw,56px)}.pending-list{gap:10px;display:grid}.pending-item{border:1px solid var(--line);background:#fbfdf9;border-radius:14px;grid-template-columns:1fr auto;align-items:center;gap:12px;padding:14px;display:grid}.pending-item strong{color:var(--forest-dark)}.pending-actions{gap:8px;display:flex}.pending-actions .primary-action,.pending-actions .secondary-action{min-width:112px;padding:0 12px}.merchant-history-entry,.history-header,.history-filter-heading,.history-section-heading,.history-record-head,.history-drawer>header{justify-content:space-between;align-items:flex-start;gap:16px;display:flex}.merchant-history-entry h2,.merchant-history-entry p,.history-header h1,.history-header p,.history-filter-heading h2,.history-filter-heading p,.history-section-heading h2,.history-section-heading p,.history-record h3,.history-drawer h2,.history-drawer h3{margin:0}.merchant-history-entry p,.history-header>div>p:last-child,.history-filter-heading p,.history-section-heading p{color:var(--muted);margin-top:6px;line-height:1.5}.history-shell{width:min(100%,1080px)}.history-header{margin-bottom:18px}.history-header h1{color:var(--forest-dark);font-size:clamp(32px,7vw,48px)}.history-back{min-height:48px;color:var(--forest);align-items:center;margin-bottom:18px;font-weight:900;text-decoration:none;display:inline-flex}.history-eyebrow{letter-spacing:.08em;font-size:13px;font-weight:900;color:var(--forest)!important;margin-bottom:5px!important}.history-scope{border:1px solid var(--line);background:#ffffffdb;border-radius:14px;flex:0 330px;gap:5px;padding:14px 16px;display:grid}.history-scope span,.history-single-branch span{color:var(--muted);font-size:13px;font-weight:800}.history-scope strong,.history-single-branch strong{overflow-wrap:anywhere;color:var(--forest-dark)}.history-state{text-align:center;gap:10px;display:grid}.history-state>span,.history-state>p{color:var(--muted)}.history-state button,.history-home-link,.history-filter-heading button,.history-record-head button,.history-more button,.history-inline-error button{min-height:48px;color:var(--forest);background:#edf6e9;border:1px solid #cfe0c9;border-radius:11px;padding:8px 14px;font-weight:900;text-decoration:none}.history-state button,.history-home-link{justify-self:center}.history-error strong,.history-inline-error{color:#9b3939}.history-filters,.history-records{gap:18px;display:grid}.history-filter-heading button:disabled{cursor:default;opacity:.5}.history-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;display:grid}.history-filter-grid label,.history-single-branch{gap:7px;display:grid}.history-filter-grid label>span{font-weight:800}.history-filter-grid select{background:#fff;border:1px solid #cfd8ce;border-radius:12px;width:100%;min-height:48px;padding:10px 12px}.history-single-branch{border:1px solid var(--line);background:#f7faf5;border-radius:12px;align-content:center;min-height:48px;padding:9px 12px}.history-section-heading>span{color:var(--muted);flex:none;font-size:13px;font-weight:800}.history-list{gap:12px;display:grid}.history-record{border:1px solid var(--line);background:#fbfdf9;border-radius:16px;min-width:0;padding:17px}.history-record h3{overflow-wrap:anywhere;color:var(--forest-dark);margin:14px 0;font-size:19px}.history-record-head button{min-height:48px;padding:6px 11px}.history-status{border-radius:999px;align-items:center;width:fit-content;padding:6px 10px;font-size:13px;font-weight:900;display:inline-flex}.history-status-settled{color:#2f6d39;background:#dff0dc}.history-status-rejected{color:#9b3939;background:#f7dddd}.history-status-expired{color:#805b25;background:#f3ead8}.history-record-grid,.history-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0;display:grid}.history-detail-field{min-width:0}.history-detail-field dt{color:var(--muted);margin-bottom:4px;font-size:12px;font-weight:800}.history-detail-field dd{overflow-wrap:anywhere;margin:0;line-height:1.45}.history-detail-wide{grid-column:1/-1}.history-settlement{flex-wrap:wrap;gap:7px 13px;display:flex}.history-settlement span{white-space:nowrap}.history-unsettled{color:var(--muted);line-height:1.45}.history-breakable{overflow-wrap:anywhere;word-break:break-word}.history-more{color:var(--muted);justify-items:center;gap:10px;display:grid}.history-inline-error{align-items:center;gap:10px;display:flex}.history-drawer-layer{z-index:40;position:fixed;inset:0}.history-scrim{background:#12231a6b;border:0;width:100%;position:absolute;inset:0}.history-drawer{background:#fff;width:min(100%,560px);height:100%;position:absolute;top:0;right:0;overflow-y:auto;box-shadow:-18px 0 48px #17362933}.history-drawer>header{z-index:1;border-bottom:1px solid var(--line);background:#fffffff5;padding:20px;position:sticky;top:0}.history-drawer>header>button{border:1px solid var(--line);width:48px;height:48px;color:var(--forest-dark);background:#fff;border-radius:50%;font-size:24px}.history-drawer-body{gap:24px;padding:20px;display:grid}.history-drawer-body section{gap:13px;display:grid}.history-drawer-body h3{color:var(--forest-dark);font-size:16px}@media (max-width:760px){.merchant-shell{padding:18px 14px 40px}.merchant-header{display:block}.dashboard-link{margin-top:10px;display:inline-block}.merchant-header h1{font-size:36px}.progress-steps,.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.form-section,.status-card,.records-card{border-radius:18px;padding:18px}.meal-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.section-heading{display:grid}.hours-row{grid-template-columns:1fr}.day-control{flex-direction:row;justify-content:space-between}.period-row{grid-template-columns:1fr 1fr}.period-row>span:first-child{grid-column:1/-1}.period-row>span:nth-child(3){display:none}.period-row .text-button{grid-column:1/-1}.task-code-head,.pending-item,.pending-actions,.merchant-history-entry,.history-header,.history-filter-heading,.history-section-heading{display:grid}.merchant-history-entry .link-action{min-height:48px}.history-scope{width:100%}.history-filter-grid,.history-record-grid{grid-template-columns:1fr}.history-detail-wide{grid-column:auto}.history-section-heading>span{justify-self:start}.history-drawer{width:100%}}@media (max-width:420px){.history-shell{padding-inline:12px}.history-record,.history-drawer-body,.history-drawer>header{padding:16px}.history-detail-grid{grid-template-columns:1fr}.history-inline-error{flex-direction:column;align-items:stretch}}
