:root{--ink:#203c35;--muted:#72817b;--green:#27634e;--green-dark:#1c493a;--line:#e3e8e2;--bg:#f6f7f2;--amber:#a36b16;--amber-bg:#fff7e7;--radius:15px;font-family:"Leelawadee UI","Tahoma",system-ui,sans-serif;color:var(--ink);background:var(--bg);font-size:15px;line-height:1.65;color-scheme:light}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,summary,select{cursor:pointer}button:disabled{opacity:.4;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #73b89a;outline-offset:3px}button{transition:background .15s,transform .15s}button:not(:disabled):active{transform:translateY(1px)}h1,h2,h3,p{margin:0}h2{font-size:17px}h3{font-size:17px}.topbar{min-height:91px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:48px;padding:18px 4%;background:#fff}.brand{color:var(--ink);text-decoration:none;display:flex;gap:12px;align-items:center;font-size:21px;font-weight:700;line-height:1.3}.brand small{display:block;letter-spacing:2.8px;font-size:9px;font-weight:500;margin-top:4px}.brand-icon{display:grid;place-items:center;width:43px;height:43px;border-radius:12px;background:var(--green);color:#fff;font-size:29px}.top-note{font-size:13px;display:flex;gap:9px;align-items:center}.dot{width:7px;height:7px;border-radius:50%;background:#74a58b}.private-note{margin-left:auto;font-size:12px;color:var(--muted)}main{max-width:1530px;margin:0 auto;padding:38px 4% 40px}.page-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:30px}.eyebrow{color:var(--green);font-size:11px;letter-spacing:.9px;font-weight:600;margin-bottom:8px}h1{font-size:clamp(27px,2.6vw,38px);letter-spacing:-1px;font-weight:650;line-height:1.4}h1 span{color:#83a687}.page-heading p{font-size:14px;color:var(--muted);margin-top:7px}.heading-tag{font-size:12px;padding:7px 13px;border:1px solid #dbe2d7;border-radius:30px;color:#657b62}.workspace{display:grid;grid-template-columns:minmax(285px,350px) minmax(0,1fr);align-items:start;gap:25px}.panel{border:1px solid var(--line);border-radius:var(--radius);background:#fff;box-shadow:0 3px 6px #344c3403}.input-panel{padding:24px;position:sticky;top:20px}.panel-title{display:flex;align-items:center;gap:10px}.step{font-size:10px;color:var(--green);background:#edf3ec;border-radius:7px;width:27px;height:27px;display:grid;place-items:center;font-weight:700}.muted{color:var(--muted);font-size:12px}.input-panel>.muted{margin-top:9px;margin-bottom:18px}textarea{resize:vertical;width:100%;border:1px solid var(--line);border-radius:10px;background:#fafbf8;padding:15px;color:#34483c;line-height:1.9;font-size:13px}textarea::placeholder{color:#94a096}#raw{min-height:340px}.input-meta{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:9px 0 20px;font-size:10px;color:var(--muted)}.text-button{border:0;background:none;color:var(--green);font-size:12px;padding:4px 0;text-decoration:none}.text-button:hover{text-decoration:underline}.button{display:inline-flex;align-items:center;justify-content:center;gap:18px;border-radius:8px;font-weight:600;font-size:12px;padding:10px 15px;border:1px solid transparent;min-height:42px;white-space:nowrap}.primary{background:var(--green);color:#fff}.primary:hover:not(:disabled){background:var(--green-dark)}.secondary{background:#fff;border-color:#dce3da;color:var(--ink)}.secondary:hover:not(:disabled){background:#f3f6f0}.full{width:100%;justify-content:space-between}.help{margin-top:20px;font-size:12px;color:var(--muted)}.help summary{color:#536a5d}.help p{margin-top:10px}.privacy{display:flex;gap:10px;border-top:1px solid var(--line);padding-top:20px;margin-top:22px;color:var(--muted);font-size:11px}.privacy>span{color:var(--green);font-size:25px}.privacy strong{display:block;color:#55695a;font-weight:600;font-size:12px;margin-bottom:4px}.results{min-width:0}.stats{display:grid;grid-template-columns:1fr 1fr 1.25fr;gap:13px;margin-bottom:22px}.stat{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:18px 20px;position:relative;overflow:hidden}.stat>span{font-size:12px;color:var(--muted)}.stat strong{display:block;font-size:31px;font-weight:650;letter-spacing:-1px;line-height:1.8}.stat strong small{font-size:11px;font-weight:400;letter-spacing:0;margin-left:8px;color:var(--muted)}.stat-icon{position:absolute;right:18px;top:18px;display:grid;place-items:center;background:#f0f5ed;width:28px;height:28px;border-radius:8px;font-size:16px;color:#66866a}.stat-icon.amber{background:var(--amber-bg);color:var(--amber)}.output-panel{overflow:hidden}.output-heading{padding:22px 24px 18px;display:flex;justify-content:space-between;gap:15px;align-items:center}.danger{color:#9b6256}.toolbar{display:flex;flex-wrap:wrap;gap:12px;padding:0 24px 18px;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.tabs{display:flex;gap:3px;background:#f3f5f0;padding:4px;border-radius:8px}.tabs button{background:none;border:0;border-radius:6px;font-size:11px;padding:7px 11px;color:var(--muted)}.tabs button span{font-size:10px;margin-left:5px;opacity:.8}.tabs button.active{background:#fff;box-shadow:0 1px 4px #254c1c12;color:var(--green);font-weight:600}.search{display:flex;align-items:center;border:1px solid var(--line);border-radius:8px;padding:3px 10px;gap:7px;width:205px;color:#96a296}.search input{border:0;outline:0;width:100%;font-size:11px;background:transparent;padding:6px 0;color:var(--ink)}.selection-bar{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:var(--muted);padding:13px 24px;background:#fcfdfb;border-bottom:1px solid #edf0ea}.selection-bar label{display:flex;gap:9px;align-items:center}input[type=checkbox]{accent-color:var(--green);width:16px;height:16px;margin:0;cursor:pointer;flex:none}.orders{padding:0 24px;min-height:330px}.empty{min-height:355px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:24px 0}.empty-icon{width:68px;height:76px;background:#f0f4eb;border:1px solid #e7ecdf;border-radius:16px;position:relative;font-size:40px;color:#9dad90;margin-bottom:21px;line-height:1.8}.empty-icon span{position:absolute;bottom:1px;right:-8px;border:3px solid #fff;background:#6e9373;color:#fff;border-radius:50%;font-size:12px;height:25px;width:25px;line-height:20px}.empty h3{font-size:16px;font-weight:600}.empty p{font-size:12px;color:var(--muted);margin:9px 0 21px}.action-bar{padding:18px 24px;display:flex;align-items:center;justify-content:space-between;gap:15px;border-top:1px solid var(--line);background:#fcfdfb}.action-bar strong{display:block;font-size:12px;font-weight:600}.action-bar small{font-size:10px;color:var(--muted)}.actions{display:flex;gap:7px;align-items:center}.print-options{display:flex;align-items:center;flex-wrap:wrap;gap:15px;padding:10px 24px;border-top:1px solid var(--line);font-size:10px;color:var(--muted)}select{background:#fff;border:1px solid var(--line);color:var(--ink);border-radius:6px;padding:6px 8px;font-size:11px}.verification-note{font-size:10px;color:#869080;margin:14px 4px}.file-tools{display:flex;gap:12px;align-items:center;font-size:10px;color:#8a9588;margin:20px 4px}.file-tools label{cursor:pointer}.card{padding:21px 0;border-bottom:1px solid var(--line)}.card:last-child{border-bottom:0}.card-top{display:flex;gap:11px;align-items:start}.card-title{flex:1;min-width:0}.card-title h3{font-size:16px;overflow-wrap:anywhere}.card-top>input{margin-top:6px}.order-number{font-size:10px;color:#859581;margin-bottom:3px}.badge{font-size:10px;padding:3px 9px;background:#eef5ec;border-radius:20px;color:#557a4f;white-space:nowrap}.badge.warning{color:var(--amber);background:var(--amber-bg)}.order-body{display:grid;grid-template-columns:1.2fr 1fr;gap:20px;margin:14px 0 0 27px;font-size:12px}.address-text{white-space:pre-line;overflow-wrap:anywhere;line-height:1.95;color:#597061}.phone{font-size:13px;color:var(--ink);margin-top:8px;font-weight:600}.product-box{background:#f6f8f3;border-radius:9px;padding:12px 14px;overflow-wrap:anywhere}.product-box small{font-size:9px;color:var(--muted);display:block;margin-bottom:4px}.product-box .price{font-size:20px;margin-top:8px;color:var(--ink);font-weight:600}.product-box .price small{display:inline;font-size:10px;margin-left:5px}.account-line{font-size:10px;color:var(--muted);margin:12px 0 0 27px;overflow-wrap:anywhere}.issues{background:var(--amber-bg);border:1px solid #f4e9d3;padding:10px 12px;border-radius:8px;font-size:11px;color:#936521;margin:12px 0 0 27px}.issues strong{font-size:11px}.issues ul{margin:4px 0 0;padding-left:18px}.card-actions{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:13px 0 0 27px}.card-buttons{display:flex;gap:7px}.card-buttons .button{font-size:10px;min-height:33px;padding:5px 11px}.raw-detail{font-size:11px;color:var(--muted);margin:12px 0 0 27px}.raw-detail pre{font:inherit;white-space:pre-wrap;overflow-wrap:anywhere;background:#f7f8f5;padding:12px;border-radius:8px;max-height:260px;overflow:auto}.raw-detail summary{font-size:11px}.copy-preview{margin-left:27px}.copy-preview pre{font-family:inherit;white-space:pre-wrap;font-size:12px;background:#fafbf8;border:1px dashed #d5dfd2;padding:15px;border-radius:8px;line-height:1.9;overflow-wrap:anywhere}.copy-preview summary{font-size:11px;color:var(--green);margin-top:12px}.batch-note{background:var(--amber-bg);color:#936521;padding:11px 24px;font-size:11px}.batch-note[hidden]{display:none}.no-results{text-align:center;color:var(--muted);padding:75px 0;font-size:13px}#message{font-size:12px;color:#a05932;margin-top:10px;white-space:pre-line}dialog{border:1px solid var(--line);border-radius:18px;padding:25px;width:min(620px,calc(100% - 28px));max-height:90dvh;color:var(--ink);box-shadow:0 30px 100px #12321d26}dialog::backdrop{background:#18362b66;backdrop-filter:blur(3px)}.dialog-heading{display:flex;align-items:start;justify-content:space-between;gap:20px;margin-bottom:20px}.close{border:0;background:#f3f6f0;border-radius:50%;width:31px;height:31px;color:var(--ink);font-size:23px;line-height:1}.edit-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.edit-grid label{font-size:12px;display:block}.edit-grid label.wide{grid-column:1/-1}.edit-grid input,.edit-grid textarea{display:block;width:100%;border:1px solid #dce3d7;border-radius:7px;padding:9px 11px;margin-top:5px;background:#fcfdfa;color:var(--ink);font-size:14px}.edit-grid textarea{min-height:85px}.review-check{display:flex;align-items:center;gap:9px;font-size:12px;margin:20px 0 7px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}#copy-text{min-height:300px;font-size:15px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#203f33;color:#fff;box-shadow:0 8px 30px #17352330;padding:12px 23px;border-radius:10px;font-size:13px;z-index:10;max-width:90%;text-align:center}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}#print-area{display:none}
@media(min-width:1500px){#raw{min-height:390px}}@media(max-width:1150px){.workspace{grid-template-columns:300px minmax(0,1fr);gap:18px}.input-panel{padding:19px}.stat{padding:15px}.stat-icon{display:none}.toolbar{padding:0 18px 15px}.search{width:100%}.output-heading{padding:20px 18px 15px}.orders{padding:0 18px}.action-bar{flex-wrap:wrap;padding:17px 18px}.print-options{padding:10px 18px}.order-body{grid-template-columns:1fr}.stats{gap:9px}.stat strong{font-size:27px}}
@media(max-width:760px){.topbar{min-height:74px;padding:15px 5%;gap:15px}.brand{font-size:18px}.brand-icon{width:37px;height:37px;font-size:24px}.top-note{display:none}.private-note{font-size:10px;max-width:105px;text-align:right}main{padding:27px 5% 25px}.page-heading{margin-bottom:23px}.heading-tag{display:none}.eyebrow{font-size:10px}.page-heading p{font-size:12px}.workspace{display:flex;flex-direction:column;gap:23px}.input-panel{width:100%;position:static;padding:20px}#raw{min-height:215px;font-size:16px}.input-panel>.muted{margin-bottom:13px}.input-meta{margin-bottom:14px;font-size:11px}.privacy{font-size:11px;margin-top:18px;padding-top:15px}.help{margin-top:15px}.results{width:100%}.stats{margin-bottom:18px;gap:8px}.stat{padding:13px 12px;border-radius:11px}.stat>span{font-size:10px}.stat strong{font-size:25px;letter-spacing:-.5px}.stat strong small{font-size:9px;margin-left:4px}.output-heading{padding:19px 16px 15px}.toolbar{padding:0 16px 15px;gap:11px}.tabs{width:100%;justify-content:space-between}.tabs button{flex:1;padding:8px 5px;font-size:11px}.search{padding:6px 10px}.search input{font-size:16px}.selection-bar{padding:12px 16px}.orders{padding:0 16px;min-height:250px}.card{padding:19px 0}.card-title h3{font-size:16px}.badge{font-size:9px;padding:4px 7px}.order-body{margin-left:0;gap:12px}.address-text{font-size:14px}.product-box{font-size:14px}.account-line{margin-left:0;font-size:11px}.issues{margin-left:0;font-size:12px}.card-actions{margin-left:0}.card-buttons .button{min-height:41px;font-size:12px}.copy-preview,.raw-detail{margin-left:0}.copy-preview pre{font-size:14px}.action-bar{padding:16px;gap:12px}.action-bar>div:first-child{width:100%}.actions{width:100%}.actions .button{flex:1;font-size:13px;min-height:46px}.print-options{padding:12px 16px;gap:10px}.print-options label{font-size:11px}.print-options select{font-size:12px;max-width:175px}.verification-note{font-size:11px;line-height:1.8;margin-top:13px}.empty{min-height:300px}.edit-grid{gap:12px}.edit-grid input,.edit-grid textarea{font-size:16px}dialog{padding:20px}.edit-grid label{font-size:12px}.review-check{align-items:start;font-size:12px}.review-check input{margin-top:3px}.file-tools{margin-top:15px}#toast{bottom:16px}.button{min-height:44px}.heading-tag{font-size:10px}}
@media(max-width:370px){.stats{grid-template-columns:1fr 1fr}.stat:last-child{grid-column:1/-1}.stat:last-child strong{display:inline;margin-left:18px}.edit-grid{grid-template-columns:1fr}.edit-grid label.wide{grid-column:auto}}
@media print{body{background:#fff;color:#000}body>*:not(#print-area){display:none!important}#print-area{display:block;font-family:"Tahoma","Leelawadee UI",sans-serif;color:#000}.print-order{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7;font-size:12pt;break-inside:avoid;border-bottom:1px dashed #000;padding:0 0 5mm;margin:0 0 5mm}.print-order:last-child{border-bottom:0}.print-order strong{font-size:14pt}.print-warning{font-size:10pt;margin-bottom:4mm;border:1px solid #000;padding:3mm}.paper-58 .print-order{font-size:10pt}.paper-58 .print-order strong{font-size:12pt}.paper-a4{max-width:170mm;margin:auto}.paper-a4 .print-order{padding:5mm}.paper-80,.paper-58{margin:0;padding:0}}
/* PeriPage copy workflow */
.selection-bar{flex-wrap:wrap;gap:10px}.compact-copy{font-size:11px;min-height:35px;padding:6px 12px}.peripage-guide{margin:16px 0 0;padding:16px 18px;border:1px solid #dbe5d7;background:#eef4e9;border-radius:12px;font-size:12px;color:#4f6b54}.peripage-guide strong{font-size:13px;color:#294e39}.peripage-guide p{margin:6px 0;line-height:1.9}.peripage-guide small{font-size:10px;color:#71846d}@media(max-width:760px){.compact-copy{min-height:44px;font-size:12px}.selection-bar{gap:9px}.selection-bar>label{font-size:11px}.peripage-guide{font-size:13px}.peripage-guide small{font-size:11px}.actions #copy-all{flex:1.5}.print-options label{max-width:100%}.paper-57 .print-order{font-size:10pt}}@media print{.paper-57 .print-order{font-size:10pt}.paper-57 .print-order strong{font-size:12pt}}
@media print{.paper-peripage-a6 .print-order{font-size:10pt}.paper-peripage-a6 .print-order strong{font-size:12pt}}
.receipt-settings{padding:14px 24px;display:flex;align-items:center;flex-wrap:wrap;gap:9px;border-bottom:1px solid var(--line);font-size:11px;color:var(--muted)}.receipt-settings small{font-size:10px}.receipt-settings select{max-width:100%}.receipt-preview{padding:12px 24px;border-bottom:1px solid var(--line);font-size:12px;color:var(--green);background:#f5f7f1}.receipt-preview[hidden]{display:none}.receipt-preview pre{font:14px/1.8 "Leelawadee UI","Tahoma",sans-serif;color:#24382c;white-space:pre-wrap;overflow-wrap:anywhere;background:white;max-width:300px;max-height:480px;overflow:auto;padding:22px 20px;margin:15px auto 3px;border:1px solid #e0e6dc;box-shadow:0 3px 10px #273c1f08}@media(max-width:760px){.receipt-settings{padding:13px 16px}.receipt-settings label{font-size:12px}.receipt-settings select{font-size:12px}.receipt-settings small{font-size:11px}.receipt-preview{padding:12px 16px}}@media print{.space-gap2 .print-order{border:0;padding-bottom:0;margin-bottom:8mm}.space-gap3 .print-order{border:0;padding-bottom:0;margin-bottom:12mm}.space-gap5 .print-order{border:0;padding-bottom:0;margin-bottom:20mm}.print-order:last-child{margin-bottom:0}}
