:root{font:14px/1.5 Inter,Segoe UI,Arial,sans-serif;color:#253238;background:#f4f6f5;font-synthesis:none;--green:#207a54;--border:#dce4df;--muted:#6d7b74}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.45}button,input,select,textarea{border-radius:7px}button{border:1px solid transparent;background:none;color:inherit;padding:9px 14px}button:hover:not(:disabled){filter:brightness(.95)}input,select,textarea{background:white;border:1px solid #cdd8d1;padding:9px 11px;color:#253238;max-width:100%}input:focus,select:focus,textarea:focus,button:focus-visible{outline:3px solid #bedcca;outline-offset:2px}input[type=checkbox]{accent-color:var(--green);width:17px;height:17px;flex-shrink:0}select[multiple]{min-height:90px}select[multiple] option{padding:4px}textarea{resize:vertical;width:100%}h1,h2,h3,p{margin-top:0}h1{font-size:29px;letter-spacing:-.7px;margin-bottom:6px}h2{font-size:21px;letter-spacing:-.3px}h3{font-size:16px;margin-top:28px;margin-bottom:16px}small{font-size:12px;color:var(--muted)}.app-header{height:86px;background:#fff;border-bottom:1px solid var(--border);display:flex;align-items:center;gap:36px;padding:0 36px;position:sticky;top:0;z-index:5}.brand{font-size:26px;font-weight:750;letter-spacing:-1px;color:#214e39;text-decoration:none;white-space:nowrap}.brand span{color:#e4a958}.app-header nav{display:flex;gap:6px}.app-header nav button.active{color:var(--green);background:#edf5ef;font-weight:650}.employee{margin-left:auto;display:flex;gap:12px;align-items:center;font-size:12px;color:var(--muted)}.employee select{font-size:13px}main{max-width:1500px;margin:auto;padding:28px 36px 65px}.local-banner{display:flex;gap:10px;align-items:center;background:#eef4f0;border:1px solid #d5e3d9;color:#45634f;padding:13px 17px;border-radius:9px;margin-bottom:28px;font-size:12px}.dot{width:7px;height:7px;border-radius:50%;background:#4a9362}.page-title{display:flex;gap:20px;justify-content:space-between;align-items:center;margin:26px 0 24px}.page-title p{color:var(--muted);margin:0}.card{background:#fff;border:1px solid var(--border);border-radius:12px;padding:28px}.tabs{display:flex;border-bottom:1px solid var(--border);gap:20px;margin-bottom:20px}.tabs button{border-radius:0;padding:14px 8px;border-bottom:3px solid transparent;font-weight:600}.tabs button.active{border-bottom-color:var(--green);color:var(--green)}.subtabs{display:flex;gap:6px;margin:15px 0 20px;overflow-x:auto}.subtabs button{white-space:nowrap;border:1px solid var(--border);background:white;font-size:13px}.subtabs button.active{background:#e9f4ec;color:var(--green);border-color:#b6d5c1}#settings-form{max-width:1100px}.tick{display:flex;align-items:center;gap:10px;margin:16px 0;cursor:pointer}.tick small{display:block;font-weight:400;margin-top:4px;max-width:700px}.field{display:flex;flex-direction:column;gap:8px;margin:16px 0;color:#3d4b44;font-size:13px}.field small{font-weight:400}.field select,.field input{width:100%}.columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px}.hint{color:var(--muted);font-size:12px;max-width:840px}.notice{background:#f3f6f3;border:1px solid #e0e6de;padding:13px 16px;border-radius:7px;color:#687568;font-size:12px;margin:15px 0}.primary{background:var(--green);color:#fff;border-color:var(--green);font-weight:600}.secondary{background:#fff;border:1px solid #d0dcd3;color:#3c5745}.sticky-save{position:sticky;bottom:0;background:#ffffffed;backdrop-filter:blur(8px);border-top:1px solid var(--border);margin-top:20px;padding:17px 0;display:flex;align-items:center;justify-content:space-between;gap:15px}.sticky-save span{color:var(--muted);font-size:12px}.actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.reasons{max-width:700px;margin-bottom:15px}.reasons>div{display:flex;gap:6px;margin-bottom:8px}.reasons input{flex:1;min-width:0}.reasons button{border:1px solid var(--border);padding:5px 11px}.simple{border-collapse:collapse;width:100%;font-size:13px}.simple th{text-align:left;color:var(--muted);font-weight:500;padding:12px;border-bottom:1px solid var(--border)}.simple td{padding:13px 12px;border-bottom:1px solid #edf0ee;vertical-align:top}.simple td select{min-width:140px}.document-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:22px;align-items:start}.queue{padding:8px}.doc-card{text-align:left;display:flex;flex-direction:column;width:100%;gap:5px;border-radius:7px;padding:16px 15px;border:1px solid transparent;margin:4px 0}.doc-card small{font-size:10px;text-transform:uppercase;letter-spacing:.8px}.doc-card strong{font-size:18px}.doc-card>span{font-size:12px;color:var(--muted)}.doc-card.active{border-color:#c3dccb;background:#edf6f0}.doc-card em{font-style:normal;align-self:start}.badge{display:inline-flex;gap:6px;align-items:center;padding:4px 10px;border-radius:20px;font-size:11px;font-weight:600;white-space:nowrap}.badge.ok{background:#e3f3e8;color:#2f8051}.badge.warn{background:#fff2d8;color:#a97921}.badge.bad{background:#fbe5e8;color:#b92a3e}.widget{padding:20px;border:1px solid #d6e5dc;border-radius:9px;display:flex;align-items:center;justify-content:space-between;gap:20px;margin:24px 0;background:#fafdfb}.widget strong,.widget small{display:block;margin-bottom:6px}.widget .badge{margin:4px 0}.document-heading small{text-transform:uppercase;font-size:10px;letter-spacing:1px}.document-heading h2{margin-top:6px}.document-heading p{color:var(--muted)}.field-value{font:12px/1.6 inherit;white-space:pre-wrap;max-height:220px;overflow:auto;padding:12px;background:#f8faf8;margin:0;border:1px solid #e8ece8;border-radius:6px;overflow-wrap:anywhere}.empty{padding:35px;color:var(--muted);text-align:center}.overlay{position:fixed;inset:0;background:#18251c88;z-index:20;padding:18px;display:flex;align-items:stretch}.check-modal{background:white;border-radius:12px;width:100%;display:flex;flex-direction:column;box-shadow:0 22px 80px #12271f44;overflow:hidden}.check-modal>header{display:flex;align-items:flex-start;justify-content:space-between;padding:22px 26px 14px}.check-modal h2{font-size:23px;margin-bottom:10px}.check-modal header p{margin:0;color:var(--muted)}.check-modal header p strong{color:#2785b3}.x{font-size:28px;padding:0 10px;color:#69756e}.check-info{display:flex;align-items:center;gap:20px;padding:10px 26px 18px;font-size:12px;color:var(--muted);flex-wrap:wrap}.check-info .secondary{margin-left:auto}.additional{padding:10px 26px;background:#f9fbf9;display:flex;gap:30px;flex-wrap:wrap}.additional span{font-size:12px}.additional small{display:block}.check-table{overflow:auto;flex:1;min-height:150px;margin:0 26px;border:1px solid var(--border)}.check-table table{border-collapse:collapse;min-width:900px;width:100%;table-layout:fixed}.check-table th{position:sticky;top:0;background:#f9fbfa;z-index:1;font-size:12px;font-weight:500;border-bottom:1px solid var(--border);text-align:center;padding:14px 12px;color:#606e65}.check-table th:first-child{width:38%;text-align:left}.check-table th:nth-child(3){width:160px}.check-table th:nth-child(4){width:85px}.check-table td{padding:16px 12px;border-bottom:1px solid #e7eee9;text-align:center;font-size:13px;vertical-align:middle}.check-table td:first-child{text-align:left}.check-table td small{display:block}.check-table tr.selected{background:#edf5fc}.quantity{display:flex;align-items:center;justify-content:center;border:1px solid #d0dcd5;border-radius:6px;overflow:hidden;width:125px;margin:auto;background:white}.quantity.excess{background:#fff0f2;border-color:#e9bdc5;color:#a8253b}.quantity button{padding:3px 9px;font-size:22px;line-height:1.2;border-radius:0}.quantity input{padding:3px 1px;width:55px;text-align:center;border:0;background:transparent;appearance:textfield;-moz-appearance:textfield}.quantity input::-webkit-inner-spin-button{appearance:none}.quantity input:disabled{color:inherit;opacity:1}.product{display:flex;align-items:center;gap:12px}.product strong{font-size:12px}.product select{font-size:11px;padding:5px;margin-top:8px;max-width:250px}.product-image{display:grid;place-items:center;flex-shrink:0;width:44px;height:48px;border-radius:7px;background:#f1f5ee;color:#bd597a;font-size:35px}.product-image.wax{color:#8a6da8}.product-image.paper{color:#ad8d58}.product-image.vase{color:#6a9b9e}.check-modal footer{padding:18px 26px;background:#fff}.check-modal footer .actions{margin-top:12px}#scan-form{display:flex;gap:8px}#scan-input{min-width:160px;flex:1;max-width:650px}.feedback{font-size:13px;padding:10px 14px;border-radius:6px;margin-bottom:12px}.feedback.ok{background:#edf7f0;color:#2c754d}.feedback.bad{background:#fbe9ec;color:#ad2b3d}.suggestions{margin:12px 0;padding:14px;border:1px solid var(--border);border-radius:6px;max-height:200px;overflow:auto}.suggestions>div{display:flex;align-items:center;gap:12px;margin-top:8px;font-size:12px}.suggestions>div span{flex:1}.suggestions input{width:85px}.scanner-demo{font-size:11px;color:var(--muted);margin-top:12px}.scanner-demo summary{cursor:pointer}.scanner-demo .secondary{font-size:11px;padding:6px 9px}#toast{display:none;position:fixed;bottom:22px;left:50%;transform:translateX(-50%);padding:13px 20px;background:#24553c;color:#fff;z-index:50;border-radius:8px;box-shadow:0 5px 30px #12342325;max-width:min(90%,750px)}#toast.show{display:block}#toast.error{background:#a72e42}.loading{padding:50px;text-align:center;color:var(--muted)}
@media(min-width:1500px){.check-modal{max-width:1750px;margin:auto;height:calc(100vh - 36px)}}@media(max-width:1000px){.app-header{padding:0 20px;gap:15px}.employee{flex-direction:column;gap:3px;align-items:flex-end}.employee select{max-width:185px}main{padding:20px}.document-layout{grid-template-columns:220px 1fr}.widget{flex-wrap:wrap}.columns{grid-template-columns:1fr}.check-modal h2{font-size:18px}.check-modal footer{padding:12px}.check-table{margin:0 12px}.check-modal header{padding:16px}.overlay{padding:8px}}@media(max-width:650px){.app-header{height:auto;min-height:100px;flex-wrap:wrap;padding:14px}.brand{font-size:22px}.app-header nav{order:3;width:100%}.employee select{max-width:160px}.document-layout{display:block}.queue{display:flex;overflow-x:auto;margin-bottom:15px}.doc-card{flex-shrink:0;width:180px}.card{padding:18px}.tabs{gap:0}.tabs button{font-size:12px}.local-banner{flex-wrap:wrap;font-size:11px}.page-title{align-items:flex-start}.page-title h1{font-size:24px}.sticky-save span{max-width:160px}.check-info{gap:8px;padding:8px 15px}.check-modal header p{font-size:12px}#scan-form{flex-wrap:wrap}#scan-input{max-width:none;width:100%;flex-basis:100%}.check-modal footer .actions .hint{display:none}.check-table table{min-width:830px}.simple{font-size:12px}.simple th,.simple td{padding:9px 6px}.suggestions>div{flex-wrap:wrap}}

.launch-mode{background:#fff;overflow:hidden}
.launch-banner{height:32px;display:flex;align-items:center;justify-content:center;padding:0 12px;background:#edf4ef;color:#53745c;border-bottom:1px solid #dce7df;font-size:11px;text-align:center}
.launch-mode .overlay{inset:32px 0 0;padding:0;background:white}
.launch-mode .check-modal{height:100%;max-width:none;margin:0;border-radius:0;box-shadow:none}
.launch-mode .check-modal>header{padding-top:20px}
.launch-mode .launch-status{max-width:760px;margin:6vh auto;padding:24px;overflow:auto;max-height:calc(100vh - 50px)}
.launch-status .badge{margin-bottom:20px}
.launch-status h1{font-size:25px}
.launch-status .hint{margin:22px 0 0}
@media(max-width:650px){.launch-banner{font-size:10px}.launch-mode .check-modal>header{padding-top:14px}.launch-mode .check-info{padding-bottom:10px}}
@media(max-width:760px){
  .launch-mode .check-table table{min-width:620px}
  .launch-mode .check-table th:first-child{width:31%}
  .launch-mode .check-table th:nth-child(3){width:126px}
  .launch-mode .check-table th:nth-child(4){width:62px}
  .launch-mode .check-table th,.launch-mode .check-table td{padding:12px 6px;font-size:11px}
  .launch-mode .quantity{width:112px}
  .launch-mode .quantity input{width:45px}
  .launch-mode .check-table .badge{font-size:10px;padding:4px 6px}
}
