:root{--bg:#f8f7f4;--paper:#fff;--ink:#303237;--muted:#81817f;--line:#e8e6e1;--red:#a32636;--red-soft:#faf0ef;--green:#427266}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,Noto Sans TC,PingFang TC,Microsoft JhengHei,system-ui,sans-serif;font-size:14px;-webkit-font-smoothing:antialiased}button,input,select{font:inherit;color:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #d57884;outline-offset:3px}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin:0}h1,h2,h3{font-weight:650;letter-spacing:-.035em}button{border:0}input,select{min-width:0}small{display:block}input[type=checkbox]{accent-color:var(--red);width:17px;height:17px;flex-shrink:0}input[type=date],select{width:100%;border:1px solid #deddd7;border-radius:9px;background:white;height:40px;padding:0 10px}label{display:flex;flex-direction:column;gap:7px;font-size:12px;color:#6b6b68}.site-header{background:#ffffffde;border-bottom:1px solid var(--line)}.header-inner{max-width:1180px;margin:auto;min-height:88px;padding:0 32px;justify-content:space-between;gap:20px}.brand,.header-inner{display:flex;align-items:center}.brand{gap:12px;font-size:19px;font-weight:700;letter-spacing:.025em}.brand-mark{display:grid;place-items:center;width:45px;height:45px;border-radius:12px;background:var(--red-soft);color:var(--red)}.brand small{font-size:9px;letter-spacing:.2em;font-weight:500;color:var(--muted);margin-top:4px}.header-note{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:12px}main{max-width:1180px;margin:auto;padding:42px 32px 0}.intro{display:flex;align-items:center;justify-content:space-between;gap:20px}.eyebrow{font-size:11px;letter-spacing:.16em;color:var(--muted);margin-bottom:10px}h1{font-size:29px;margin-bottom:12px}.intro p{color:var(--muted);line-height:1.8;font-size:13px}.tag{display:flex;align-items:center;gap:8px;border:1px solid var(--line);background:white;border-radius:24px;padding:9px 13px;color:#666863;font-size:11px;white-space:nowrap}.tag span{width:6px;height:6px;border-radius:50%;background:var(--green)}.steps{gap:20px;padding:27px 0;color:#a5a39d;font-size:12px}.steps,.steps span{display:flex;align-items:center}.steps span{gap:8px}.steps b{display:grid;place-items:center;border-radius:50%;width:22px;height:22px;background:#eeece7;font-size:10px}.steps .current{color:var(--red)}.steps .current b{background:var(--red-soft)}.workspace{display:grid;grid-template-columns:minmax(0,1.16fr) minmax(0,1fr);gap:26px;align-items:start}.controls{display:flex;flex-direction:column;gap:20px}.card{background:var(--paper);border:1px solid var(--line);border-radius:16px;padding:24px}.card-title{display:flex;align-items:center;gap:10px;margin-bottom:21px}.section-icon{color:var(--red);display:flex}.card-title h2{font-size:16px}.step-label{margin-left:auto;color:#aaa7a0;font-size:9px;letter-spacing:.15em}.file-input{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.dropzone{width:100%;border:1px dashed #d7c8c6;background:#fcfaf8;border-radius:12px;display:flex;align-items:center;flex-direction:column;padding:27px 14px;gap:10px;transition:.2s}.dropzone.drag,.dropzone:hover{border-color:var(--red);background:var(--red-soft)}.upload-icon{color:var(--red);background:#f4eae7;width:54px;height:54px;display:grid;place-items:center;border-radius:14px;margin-bottom:5px}.dropzone strong{font-size:13px;font-weight:550}.dropzone>span:not(.upload-icon):not(.upload-button){font-size:11px;color:var(--muted)}.upload-button{gap:18px;background:white;border:1px solid var(--line);padding:9px 14px;border-radius:7px;margin-top:7px}.template-row,.upload-button{display:flex;align-items:center;font-size:11px}.template-row{justify-content:space-between;gap:12px;margin-top:17px;color:var(--muted)}.template-row button,.text-button{display:flex;align-items:center;gap:5px;color:var(--red);background:none;padding:3px;font-size:11px;white-space:nowrap}.import-info{border-top:1px solid var(--line);margin-top:18px;padding-top:15px;display:grid;gap:13px}.import-info>div{gap:8px;overflow-wrap:anywhere}.import-info>div,.success{display:flex;align-items:center;color:var(--green);font-size:12px}.success{gap:5px}.error,.warning{white-space:pre-line;line-height:1.8;border-radius:8px;padding:12px;margin-top:15px;font-size:12px}.error{background:var(--red-soft);color:var(--red)}.warning{background:#fff7df;color:#89651b}.empty-drivers{text-align:center;color:#b1afa8;padding:18px 0 12px}.empty-drivers p{font-size:12px;color:#85847e;margin-top:12px}.empty-drivers small{font-size:11px;margin-top:7px}.list-tools{gap:15px;margin-bottom:13px}.list-tools,.search{display:flex;align-items:center}.search{gap:7px;background:#f8f7f4;border:1px solid var(--line);border-radius:8px;padding:8px 10px;color:var(--muted);flex:1 1;min-width:0}.search input{width:100%;border:0;background:none;font-size:12px;outline:none}.driver-list{max-height:360px;overflow:auto}.driver-row{display:flex;align-items:center;gap:9px;padding:9px 10px;border:1px solid transparent;border-radius:10px;margin-top:4px}.driver-row.active{border-color:#ead1d4;background:#fcf6f5}.driver-row button{display:flex;align-items:center;gap:10px;background:none;text-align:left;width:100%;padding:0;min-width:0}.avatar{display:grid;place-items:center;background:#eeeae5;color:#77746c;width:34px;height:34px;border-radius:10px;flex-shrink:0}.driver-row strong{font-size:13px}.driver-row small{font-size:10px;color:var(--muted);margin-top:4px}.driver-qty{margin-left:auto;text-align:right;font-size:15px}.selection-note{border-top:1px solid var(--line);padding-top:14px;margin-top:14px;display:flex;align-items:center;justify-content:space-between;font-size:11px;color:var(--muted)}.privacy{display:flex;gap:10px;color:var(--green);padding:0 8px}.privacy p{font-size:11px}.privacy small{font-size:10px;color:var(--muted);line-height:1.8;margin-top:4px}.preview-panel{border:1px solid var(--line);border-radius:16px;background:#efeee9;overflow:hidden}.preview-title{display:flex;align-items:center;justify-content:space-between;padding:24px 24px 19px}.preview-title .eyebrow{font-size:9px;margin-bottom:6px}.preview-title h2{font-size:17px}.preview-badge{border:1px solid #dcdad2;border-radius:6px;color:#77766e;padding:5px 9px;font-size:10px}.print-settings{display:flex;gap:12px;padding:0 24px 20px}.print-settings label:first-child{width:100px}.print-settings label:last-child{flex:1 1}.receipt-stage{padding:23px 16px 30px;background:repeating-linear-gradient(45deg,#eae9e3,#eae9e3 1px,#eeede8 0,#eeede8 7px);max-height:620px;overflow:auto;display:flex;justify-content:center;align-items:flex-start;min-height:380px}.receipt,.receipt-placeholder{background:white;width:var(--receipt-width,80mm);max-width:100%;flex-shrink:0;padding:6mm 4mm;color:#202020;box-shadow:0 7px 20px #39322a12;overflow-wrap:anywhere;position:relative;font-size:12px}.receipt-placeholder:after,.receipt:after{content:"";position:absolute;left:0;right:0;bottom:-5px;height:6px;background:linear-gradient(135deg,white 25%,transparent 0) -5px 0,linear-gradient(225deg,white 25%,transparent 0) -5px 0;background-size:10px 10px}.receipt-head{text-align:center;border-bottom:1px dashed #777;padding-bottom:15px}.receipt-brand{font-size:10px;letter-spacing:.25em}.receipt-head h2{font-size:19px;margin:10px 0 8px;letter-spacing:.08em}.receipt-head p{font-size:11px}.receipt-driver{display:flex;align-items:center;justify-content:space-between;padding:14px 0 7px}.receipt-driver strong{font-size:20px}.receipt-meta{display:flex;justify-content:space-between;font-size:10px;padding-bottom:12px}.receipt-branch{border-top:1px dashed #888;padding-top:11px;margin-bottom:12px;page-break-inside:avoid;break-inside:avoid}.receipt-branch h3{font-size:14px}.customer{font-size:10px;color:#555;margin:4px 0 7px}.receipt table{width:100%;border-collapse:collapse;table-layout:fixed}.receipt th{text-align:left;font-weight:400}.receipt td,.receipt th{padding:4px 0;vertical-align:top}.receipt td:last-child,.receipt th:last-child{text-align:right;width:28%}.receipt thead{font-size:10px;color:#555;border-bottom:1px solid #ddd}.receipt tfoot{border-top:1px dotted #aaa;font-size:11px}.receipt-total{border-top:2px solid #333;display:flex;align-items:center;justify-content:space-between;padding:13px 0;font-weight:700}.receipt-total strong{font-size:22px}.receipt-footer{font-size:11px;border-top:1px dashed #888;padding-top:15px}.receipt-footer small{font-size:9px;color:#666;margin:15px 0}.receipt-footer>span{display:block;text-align:center;font-size:10px}.receipt-placeholder{text-align:center;padding:25px 22px}.placeholder-brand{font-size:14px;letter-spacing:.25em;color:#78776f}.placeholder-line{height:7px;background:#efeee9;border-radius:3px;margin:12px 0}.placeholder-line.short{width:40%;margin:15px auto}.placeholder-line.medium{width:65%}.placeholder-dash{border-top:1px dashed #dedbd3;margin:22px 0}.receipt-placeholder>svg{color:#c7beb1;margin:4px 0 15px}.receipt-placeholder h3{font-size:12px;color:#817e74}.receipt-placeholder p{font-size:11px;color:#aaa69b;line-height:1.9;margin-top:9px}.placeholder-end{font-size:10px;color:#aaa69b;letter-spacing:.1em}.print-bottom{text-align:center;padding:20px 24px 23px;background:#fff}.print-bottom>p{font-size:11px;color:var(--muted);margin-bottom:14px}.primary{width:100%;display:flex;align-items:center;justify-content:center;gap:10px;background:var(--red);color:white;border-radius:9px;height:46px;font-size:13px}.primary:hover:not(:disabled){background:#8d1e2d}.primary>span{background:#ffffff24;border-radius:4px;padding:2px 7px;font-size:11px}.print-bottom>small{font-size:10px;color:#96938b;line-height:1.8;margin-top:13px}.summary{gap:25px;padding:19px 23px;border:1px solid var(--line);background:#fff;border-radius:12px;margin-top:24px;font-size:12px}.summary,.summary span{display:flex;align-items:center}.summary span{gap:8px}.summary span:last-child{margin-left:auto;color:var(--green);font-size:10px}.site-footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);margin-top:40px;padding:23px 0;color:#aaa69d;font-size:10px;letter-spacing:.04em}.print-output{display:none}.empty-small{padding:20px;text-align:center;color:var(--muted)}.spin{animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(1turn)}}@media(max-width:760px){.header-inner{padding:0 20px;min-height:76px}.header-note{font-size:10px}.brand{font-size:17px}main{padding:28px 18px 0}.intro{align-items:flex-start}.tag{display:none}h1{font-size:25px}.steps{gap:10px;font-size:10px}.steps>svg{width:12px}.workspace{grid-template-columns:1fr}.card{padding:20px}.summary{flex-wrap:wrap;gap:16px}.summary span:last-child{margin-left:0}.receipt-stage{max-height:550px}.site-footer{gap:15px}.header-note svg{display:none}}@media print{body,html{background:white!important;color:black;margin:0;padding:0}.app-shell{display:none!important}.print-output{display:block!important;width:100%}.print-output .receipt{width:100%;max-width:100%;box-shadow:none;padding:0;break-after:page;page-break-after:always}.print-output .receipt:last-child{break-after:auto;page-break-after:auto}.receipt:after{display:none}.receipt-branch,.receipt-footer,.receipt-head,.receipt-total{page-break-inside:avoid;break-inside:avoid}thead{display:table-header-group}.receipt tr{page-break-inside:avoid;break-inside:avoid}.receipt tfoot{display:table-row-group}}