@charset "UTF-8";
:root{font-family:"Microsoft JhengHei","Noto Sans TC",system-ui,sans-serif;color:#172e27;background:#f4f7f5;font-size:16px;font-synthesis:none;--green:#185944;--line:#dce5df;--muted:#61756a;--soft:#e8f1eb;--red:#b13b36}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a{touch-action:manipulation}a{color:var(--green);text-underline-offset:3px}button,.button{border:1px solid #c5d5ca;border-radius:8px;background:white;color:var(--green);padding:.65rem 1rem;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:.5rem;font-weight:600;line-height:1.5}
button:hover,.button:hover{background:#edf4ee}button.primary,.button.primary{background:var(--green);border-color:var(--green);color:white}button.primary:hover{background:#104733}button.danger{color:var(--red)}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible,input:focus,select:focus,textarea:focus{outline:3px solid #9dccaf;outline-offset:2px}
.shell{max-width:1500px;margin:auto;padding:28px 36px 60px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:40px}.brand{display:flex;gap:13px;align-items:center}.brand-mark{background:var(--green);color:white;font-weight:700;font-size:22px;width:48px;height:48px;border-radius:14px;display:grid;place-items:center}.brand strong{font-size:22px;letter-spacing:.04em}.brand small{display:block;font-size:14px;color:var(--muted);margin-top:4px}.top-actions,.actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.account{font-size:14px;color:var(--muted)}h1,h2,h3,p{margin-top:0}h1{font-size:30px;line-height:1.4;letter-spacing:.02em;margin-bottom:8px}h2{font-size:20px;margin-bottom:18px}h3{font-size:17px;margin-bottom:14px}p{line-height:1.75}.muted{color:var(--muted)}.lead{margin-bottom:30px}.heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}.heading p{margin-bottom:0}
.toolbar{display:flex;align-items:center;gap:12px;margin-bottom:18px}.toolbar input{max-width:340px}.toolbar select{max-width:190px}.card{background:white;border:1px solid var(--line);border-radius:14px;padding:25px;margin-bottom:22px;box-shadow:0 3px 12px #143e2510}.table-card{padding:0;overflow:auto}table{border-collapse:collapse;width:100%;text-align:left;font-size:15px}th{font-weight:500;color:var(--muted);font-size:14px;background:#f9fbf9}th,td{padding:17px 22px;border-bottom:1px solid #edf1ee;white-space:nowrap}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#f6faf7}td a{font-weight:600;text-decoration:none}.status{font-size:14px;display:inline-block;padding:4px 10px;border-radius:5px;background:#eef2ef;color:#53675a}.status.completed{background:#e1f2e7;color:#17613c}.status.invited,.status.ready{background:#e8f0fa;color:#315a8a}.status.cancelled{background:#f7eae9;color:#9a4641}
.empty{padding:75px 20px;text-align:center}.empty h2{font-size:22px}.empty p{color:var(--muted);margin-bottom:24px}.detail-grid{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:24px;align-items:start}.aside{position:sticky;top:24px}.aside .actions{flex-direction:column;align-items:stretch}.aside p{font-size:14px}.form-section+.form-section{margin-top:28px;padding-top:24px;border-top:1px solid var(--line)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px 22px}.field{min-width:0}.field.wide{grid-column:1/-1}.field label{font-size:14px;font-weight:600;display:block;margin-bottom:7px}input,select,textarea{width:100%;padding:.7rem .8rem;border:1px solid #cddbd1;border-radius:7px;background:white;color:#172e27;line-height:1.5}input[readonly]{background:#f3f7f4;color:#506c5b}input:disabled,select:disabled,textarea:disabled{background:#f6f8f6;color:#435c4e;opacity:1}textarea{min-height:102px;resize:vertical}select{appearance:none;padding-right:32px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%234d6c58' stroke-width='1.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center}.error-text{display:block;color:var(--red);font-size:14px;margin-top:6px}.field:has(.error-text:not(:empty)) input,.field:has(.error-text:not(:empty)) select{border-color:#c56761}.hint{font-size:14px;color:var(--muted);margin:8px 0 0}.notice{padding:15px 18px;border-radius:8px;background:#edf4ef;color:#315b43;line-height:1.8;font-size:14px;margin-bottom:20px}.notice.warning{background:#fff5e7;color:#89602a}.notice.error{background:#fbeeee;color:#a13b36}.mail-body{min-height:190px}.summary{display:grid;grid-template-columns:1fr auto;gap:10px;font-size:14px}.summary strong{font-weight:600}.summary .net{padding-top:12px;border-top:1px solid var(--line);font-size:17px;margin-top:5px}.return-link{display:inline-block;margin-bottom:18px;text-decoration:none;font-size:14px}.stack{display:grid;gap:12px}.file-state{font-size:14px;color:var(--muted);margin:0}.file-tile{padding:17px;border:1px solid var(--line);border-radius:9px;display:grid;gap:10px}.file-tile header{display:flex;justify-content:space-between;align-items:center}.file-tile h3{margin:0}.file-tile input{font-size:14px}.file-tile img{width:100%;height:150px;object-fit:contain;background:#f5f7f5;border-radius:6px}.files-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.definition{display:grid;grid-template-columns:115px 1fr;gap:11px 18px;font-size:15px;line-height:1.7}.definition dt{color:var(--muted)}.definition dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.sign-shell{max-width:970px;margin:auto;padding:28px 24px 65px}.sign-shell .topbar{margin-bottom:32px}.sign-shell .brand small{max-width:550px}.sign-header{display:flex;gap:20px;justify-content:space-between;align-items:center;margin-bottom:25px}.sign-header h1{font-size:27px}.steps{display:flex;gap:12px;margin-bottom:28px;color:#7b8b80;font-size:14px;flex-wrap:wrap}.steps .active{color:var(--green);font-weight:700}.steps span+span:before{content:"／";margin-right:12px;color:#adb9b1}.otp{max-width:490px;margin:65px auto}.otp input{letter-spacing:.35em;font-size:24px}.otp button{margin-top:18px;width:100%}.preview-frame{width:100%;height:650px;border:1px solid var(--line);border-radius:8px;background:#f0f3f0}.signature-area{width:100%;height:185px;touch-action:none;display:block;border:1px solid #b4c9b9;border-radius:8px;background:white}.signature-tools{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:8px}.signature-tools p{margin:0}.consent{display:flex;align-items:flex-start;gap:10px;font-size:15px;line-height:1.7;margin:23px 0}.consent input{width:20px;height:20px;flex-shrink:0;margin-top:3px}.complete{text-align:center;padding:50px 25px}.complete .brand-mark{margin:0 auto 23px;border-radius:50%;font-size:26px;width:66px;height:66px}.complete h1{margin-bottom:16px}
dialog{border:1px solid var(--line);border-radius:14px;width:min(600px,calc(100% - 30px));padding:27px;color:#172e27;max-height:85vh}dialog::backdrop{background:#102c2455}dialog .actions{justify-content:flex-end;margin-top:22px}.choice{display:flex;align-items:center;gap:12px;padding:13px;border:1px solid var(--line);border-radius:8px;margin:13px 0}.choice input{width:18px;height:18px}.choice label{flex:1}dialog pre{white-space:pre-wrap;overflow-wrap:anywhere;font:14px/1.7 inherit}.mail-item{border-top:1px solid var(--line);padding:16px 0}.mail-item:first-of-type{border:0}.mail-item p{font-size:14px;margin-bottom:6px}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#183e2d;color:white;border-radius:9px;padding:13px 22px;box-shadow:0 6px 30px #1231222a;z-index:20;max-width:calc(100% - 40px);display:none}#toast.visible{display:block}.loading{padding:70px 20px;text-align:center;color:var(--muted)}.busy{pointer-events:none;opacity:.65}.hidden{display:none!important}.footnote{font-size:14px;color:var(--muted);margin-top:24px}.full{width:100%}
@media(max-width:1000px){.detail-grid{grid-template-columns:1fr}.aside{position:static}.aside .actions{flex-direction:row}.aside .actions>*{flex:1}.shell{padding:22px}.topbar{margin-bottom:27px}.account{display:none}.preview-frame{height:540px}}
dialog:has(#invite-mail-form){width:min(820px,calc(100% - 30px))}dialog[open]:has(#invite-mail-form){display:flex;flex-direction:column;overflow:hidden}#invite-mail-form{margin-top:14px;flex:1;min-height:0;overflow:auto}#invite-mail-form .mail-body{min-height:clamp(150px,27vh,300px)}dialog:has(#invite-mail-form) .actions{flex-shrink:0}
.signature-modes{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:18px}.signature-modes [aria-pressed="true"]{background:var(--green);color:white}#signature-upload-area{margin-bottom:18px}#signature-upload-area label{display:block;margin-bottom:8px}#signature-upload-area .hint{margin-bottom:10px}
@media(max-width:650px){.shell,.sign-shell{padding:18px 14px 45px}.brand strong{font-size:19px}.brand-mark{width:40px;height:40px;font-size:20px}.topbar{align-items:flex-start;gap:12px}.top-actions{gap:7px}.top-actions button,.top-actions .button{font-size:14px;padding:.55rem .65rem}.brand small{max-width:190px;font-size:12px}.heading{align-items:flex-start}.heading h1{font-size:25px}.heading p{font-size:14px}.card{padding:19px;border-radius:10px}.table-card{padding:0}.toolbar{flex-wrap:wrap}.toolbar input{max-width:100%}.toolbar select{max-width:100%}.form-grid,.files-grid{grid-template-columns:1fr}.field.wide{grid-column:auto}th,td{padding:14px 16px}.sign-header{align-items:flex-start}.sign-header h1{font-size:23px}.definition{grid-template-columns:90px 1fr;font-size:14px;gap:10px}.preview-frame{height:460px}.otp{margin:35px auto}.signature-tools{align-items:flex-start}.sign-shell .topbar{margin-bottom:28px}.aside .actions{flex-direction:column}.consent{font-size:14px}}

.amount-entry{grid-column:1/-1;display:flex;align-items:center;gap:24px}.amount-entry .field{flex:1}.tax-choice{display:flex;align-items:center;gap:10px;white-space:nowrap}.tax-choice input{width:20px;height:20px;flex-shrink:0}.amount-entry .tax-choice{margin-bottom:22px}@media(max-width:650px){.amount-entry{gap:14px}.tax-choice{font-size:14px}}
