.wf-form{display:grid;gap:12px;margin:16px 0}.wf-form>button,.wf-form>.actions{justify-self:start}.wf-form label{margin:0}
.wf-area,.wf-tabs,.wf-pages,.wf-tools,.wf-tools form{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.wf-area input{max-width:210px}.wf-pages,.wf-tabs,.wf-tools{margin:16px 0}.wf-tools form{align-items:end}
.wf-scroll{width:100%;overflow:auto;border:1px solid var(--line);border-radius:12px;background:white}.wf-scroll table{border-collapse:collapse;font-size:.9rem;min-width:1300px;width:100%}.wf-scroll th,.wf-scroll td{padding:10px;text-align:left;border-bottom:1px solid var(--line)}.wf-scroll th{background:var(--forest);color:white}.wf-details{display:grid;grid-template-columns:minmax(100px,1fr) 2fr;gap:8px}.wf-details dd{margin:0;overflow-wrap:anywhere}.wf-details dt{font-weight:700}.wf-review{padding-block:32px}.wf-review .panel,.desk details.panel{margin-block:14px}.wf-tabs a[aria-current]{font-weight:700}
.wf-preview{display:block;width:100%;height:clamp(340px,65vh,760px);margin-top:12px;border:1px solid var(--line);border-radius:8px}
.wf-pages form{display:flex;gap:8px;align-items:end}.wf-pages label{margin:0}

.applicant-page{padding-block:clamp(28px,4vw,64px)}
.applicant-page h1,.desk:has(.applicant-list) h1{font-size:var(--title-page);margin:0 0 22px}
.desk:has(.applicant-list){width:100%;max-width:1500px}
.applicant-list{background:white;border:1px solid var(--line);border-radius:16px;box-shadow:0 6px 22px #14362009;overflow:hidden}
.directory-tools,.directory-foot{display:flex;align-items:end;justify-content:space-between;flex-wrap:wrap;gap:14px;padding:18px 20px}
.directory-tools form{flex:1 1 240px;max-width:490px}
.directory-tools form>div,.directory-actions,.directory-foot form,.directory-foot label{display:flex;align-items:center;gap:8px}
.directory-tools label,.directory-foot label{margin:0;font-size:.85rem}
.directory-tools input[type=search],.directory-foot select{margin:0;min-width:0}
.directory-tools form>div{margin-top:5px}.directory-tools button,.directory-tools .button,.directory-tools input[type=search]{height:44px;min-height:44px}
.directory-table{width:100%;border-collapse:collapse;table-layout:fixed;text-align:left;font-size:.87rem;line-height:1.4}
.directory-table th,.directory-table td{padding:13px 10px;vertical-align:top;overflow-wrap:anywhere}
.directory-table th{background:#153e2f;color:white;vertical-align:middle}
.directory-table th:first-child{width:4em}
.directory-table td{border-bottom:1px solid #e1e9df}
.directory-table tbody tr:nth-child(even){background:#f7faf6}.directory-table small{display:block;color:#4e6456;margin-top:4px;font-size:.83rem}
.directory-status{display:inline-block;border-radius:7px;background:#e5f2e2;color:#214f37;padding:4px 7px;font-weight:600}
.directory-delete{color:#94392f;margin-left:6px}.directory-empty td{text-align:center;padding:34px;color:#4f6356}
.directory-foot{align-items:center;font-size:.85rem}.directory-foot select,.directory-foot button{min-height:36px;padding:4px 10px;font:inherit}
@media(min-width:801px){.desk .directory-table th:nth-child(2){width:24%}.desk .directory-table th:last-child{width:11%}}
@media(max-width:800px){
.directory-tools,.directory-foot{padding:14px}.directory-tools form{max-width:none}.directory-tools .directory-actions{flex-wrap:wrap}
.directory-table,.directory-table tbody,.directory-table tr{display:block}.directory-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.directory-table tr{padding:10px 14px;border-block-start:1px solid var(--line)}
.directory-table td{display:grid;grid-template-columns:minmax(90px,35%) minmax(0,1fr);gap:2px 10px;padding:5px 0;border:0}
.directory-table td::before{content:attr(data-label);grid-column:1;grid-row:1;color:#496353;font-weight:600}
.directory-table td>*{grid-column:2}.directory-table small,.directory-delete{margin:0}.directory-status{justify-self:start}
.directory-empty td{display:block;padding:20px 0}.directory-empty td::before{display:none}
}

.master-tabs,.master-head,.master-actions,.master-bottom{display:flex;align-items:center;gap:8px}
.master-tabs{flex-wrap:wrap;margin:18px 0}.master-tabs a{border:1px solid #cddbcf;border-radius:20px;background:#fff;padding:7px 15px;color:#23503a;text-decoration:none}
.master-tabs a[aria-current=page]{background:#173f2e;color:#fff;border-color:#173f2e}
.master-panel{background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden;box-shadow:0 6px 22px #14362009}
.master-head{padding:18px 20px;justify-content:space-between;flex-wrap:wrap}.master-head h2,.master-dialog h2{font-size:1.25rem;margin:0}
.master-table{width:100%;border-collapse:collapse;text-align:left;table-layout:fixed}.master-table th:first-child{width:4em}.master-table th:last-child{width:108px}
.master-table th,.master-table td{padding:12px;overflow-wrap:anywhere}.master-table th{background:#153e2f;color:white;font-size:.87rem}.master-table td{border-bottom:1px solid #e4ebe3}
.master-actions a{display:grid;place-items:center;width:36px;height:36px;border-radius:8px;color:#23543a;background:#eaf3e7}.master-actions a:last-child{color:#91352f;background:#faeeeb}
.master-actions svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round;stroke-linecap:round}.master-empty{text-align:center;color:#53675a}
.master-dialog{width:min(480px,calc(100% - 28px));max-height:85dvh;margin:auto;padding:24px;border:1px solid var(--line);border-radius:16px;box-shadow:0 18px 75px #12251e35}
.master-dialog::backdrop{background:#112c2080}.master-dialog form{display:grid;gap:14px}.master-bottom{justify-content:end;gap:18px}.master-danger{background:#91352f;color:white}
@media(max-width:580px){.master-head{padding:14px}.master-table th:first-child{width:30px}.master-table th:last-child{width:84px}.master-table th,.master-table td{padding:9px 4px;font-size:.82rem}.master-actions{gap:3px}.master-tabs a{font-size:.85rem;padding:6px 12px}}
.queue-badge{display:inline-grid;place-items:center;flex:none;min-width:22px;padding:1px 6px;margin-left:auto;border-radius:20px;background:#bd303e;color:#fff;font-size:.76rem;font-weight:750}
.obs-entry{padding:16px 0;border-top:1px solid var(--line)}.obs-entry h3{margin:4px 0}.obs-files,.obs-controls{display:flex;flex-wrap:wrap;align-items:center;gap:9px}.obs-photo img{width:96px;height:80px;object-fit:cover;border-radius:8px}
#obs-form,#obs-gallery{margin:auto;max-height:90dvh;width:min(550px,94vw);overflow:auto}
#obs-form::backdrop,#obs-gallery::backdrop{background:#10332599}
#obs-gallery{width:min(900px,94vw)}#obs-gallery>img{display:block;width:100%;height:60vh;object-fit:contain;margin-bottom:12px}
#obs-form,#obs-gallery{border:1px solid var(--line);border-radius:18px;padding:clamp(16px,3vw,28px);background:#fff;color:#143428;box-shadow:0 18px 70px #0b241c38}
#obs-form h2{margin:0}#obs-form .obs-controls{justify-content:flex-end}.obs-entry p{white-space:normal;overflow-wrap:anywhere}.obs-photo:focus-visible{outline:3px solid #387948;outline-offset:3px}
.row-actions{display:flex;flex-wrap:wrap;gap:4px;align-items:center}
.row-actions .material-action{background:#eaf3e7}.row-actions .remove{background:#faeeeb;color:#923228}
.row-actions .material-action:hover{background:#d7e8d2}.row-actions .remove:hover{background:#f6d6d1}
.material-action:focus-visible{outline:2px solid currentColor;outline-offset:2px}
@media(min-width:801px){.desk .directory-table th:last-child{width:106px}}
.proposal-upload{display:grid;gap:8px;min-width:0}
.wf-form a.proposal-example{justify-self:start;display:inline-flex;align-items:center;gap:7px;padding:5px 10px;border-radius:7px;background:#eef4e9;color:#315d38;font-size:.875rem;text-decoration:none}
.wf-form a.proposal-example:hover{background:#dfeeda;color:#1d452b}
.wf-form a.proposal-card{box-sizing:border-box;display:flex;align-items:center;gap:14px;min-width:0;padding:15px 18px;border:1px solid #c9dacb;border-radius:14px;background:#f6faf5;color:#183f2b;text-decoration:none}
.wf-form a.proposal-card:hover{border-color:#80a685;background:#edf6ed}
.proposal-filetype{flex:none;display:grid;place-items:center;width:44px;height:50px;border-radius:7px 13px 7px 7px;background:#1d523b;color:white;font-weight:750;font-size:.77rem;letter-spacing:.04em}
.proposal-caption{display:grid;min-width:0;gap:2px;overflow-wrap:anywhere}.proposal-caption small{font-weight:500;color:#4f6756}
.proposal-open{margin-left:auto;flex:none;font-size:1.25rem}.proposal-card:focus-visible,.proposal-example:focus-visible{outline:2px solid #326b43;outline-offset:3px}

.distribution-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.distribution-actions .schedule-action{background:#e8f1fa;border:1px solid #9abbd7;color:#204e74}
.distribution-actions .schedule-action:hover{background:#d6e7f6}
.distribution-actions .deliver-action{background:#205b3d;color:#fff;border:1px solid #205b3d}
.distribution-actions .deliver-action:hover{background:#16432c}
.proposal-reader{margin-top:12px;overflow:hidden;border:1px solid var(--line);border-radius:12px;background:#fff}
.proposal-reader canvas:not([hidden]){display:block;width:100%;height:auto}
.reader-nav{display:flex;justify-content:center;align-items:center;gap:12px;padding:9px;background:#eff5ee}.reader-nav button{padding:7px 12px}.reader-nav button:disabled{opacity:.45}.reader-nav output{font-size:.85rem;text-align:center}
.receipt-page{min-height:100svh;display:grid;place-items:center;padding:20px;background:radial-gradient(ellipse at top,#dcebdc,transparent 65%),#f3f6ef}
.receipt-card{width:min(100%,460px);box-sizing:border-box;padding:clamp(22px,5vw,40px);border:1px solid #d0dfd0;border-radius:22px;background:white;box-shadow:0 18px 60px #15392813}
.receipt-mark{display:grid;place-items:center;width:56px;height:56px;border-radius:18px;background:#1e583d;color:#e2f8cf}.receipt-mark svg{width:30px;fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.receipt-card h1{font-size:clamp(1.5rem,3.5vw,2rem);line-height:1.15;margin:20px 0}.receipt-card dl{padding:16px;background:#f3f7ef;border-radius:12px;margin-bottom:22px}.receipt-card dt{font-size:.85rem;color:#52685c}.receipt-card dd{font-weight:650;margin:2px 0 12px;overflow-wrap:anywhere}.receipt-card dd:last-child{margin-bottom:0}
.status-pair{display:inline-flex;align-items:flex-start;flex-wrap:wrap;gap:4px}
.directory-status{line-height:1.4;max-width:100%;overflow-wrap:anywhere}
.status-draft{background:#eceff1;color:#46535d}
.status-review{background:#e1edff;color:#204b85}
.status-revision{background:#ffe5e4;color:#852d30}
.status-approved{background:#fff1c5;color:#775112}
.status-scheduled{background:#ffead8;color:#834015}
.status-delivered{background:#d7f2ef;color:#125e59}
.status-observing{background:#eee5ff;color:#613688}
.status-complete{background:#226044;color:#fff}

.receipt-warning .receipt-mark{background:#fff0cb;color:#81540c}
.receipt-warning p{line-height:1.6;color:#465e51;margin:0 0 22px}
.receipt-actions{display:flex;flex-wrap:wrap;gap:10px}
