:root{--navy:#142745;--navy2:#1b365c;--blue:#2564dc;--bg:#f3f6fb;--text:#1c2d46;--muted:#6d7b92;--border:#dce4f0;--good:#108459;--bad:#bb3545;--radius:19px}*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:system-ui,-apple-system,'Segoe UI',Arial,sans-serif;background:var(--bg);color:var(--text)}button,input,select,textarea{font:inherit}button{cursor:pointer;touch-action:manipulation}button:disabled{opacity:.45;cursor:not-allowed}input,select,textarea{background:#fff;color:var(--text);border:1px solid #d4dfed;border-radius:12px;outline:0;padding:13px;min-height:49px;max-width:100%}input:focus,select:focus,textarea:focus{border-color:var(--blue);box-shadow:0 0 0 3px #dceaff}h1,h2,h3,p{margin:0}h1{font-size:30px;line-height:1.15}h2{font-size:21px;margin-bottom:12px}p{line-height:1.5}label{display:grid;gap:8px;font-weight:750;color:#53637b;font-size:13px}.hidden{display:none!important}.primary,.outline,.secondary,.danger{border:0;padding:12px 18px;min-height:49px;border-radius:12px;font-weight:850;display:inline-flex;justify-content:center;align-items:center;gap:7px}.primary{background:var(--blue);color:white}.outline{background:#fff;border:1px solid #cfd9e9;color:#2d4a70}.secondary{background:#eaf0f9;color:#34527b}.danger{background:#fff0f0;color:#b83242}.huge{min-height:66px;font-size:19px}.small{min-height:37px;padding:8px 12px;font-size:12px}.full{width:100%}.eyebrow{color:var(--blue);font-size:11px;letter-spacing:1.3px;font-weight:900;margin-bottom:7px}.hint{font-size:12px;color:var(--muted);margin-top:11px}.panel{background:white;border:1px solid var(--border);border-radius:var(--radius);box-shadow:0 5px 24px #1b33500a;padding:21px}.topbar{background:var(--navy);color:white;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 28px;min-height:86px}.brand{display:flex;gap:11px;align-items:center}.brand-icon{background:#315890;border-radius:14px;height:47px;width:47px;display:grid;place-items:center;font-size:26px}.brand strong{font-size:18px;letter-spacing:.3px}.brand strong span{color:#78b9ff}.brand small{font-size:11px;color:#b6c6dc;display:block;margin-top:3px}.topbar nav{display:flex;gap:8px}.navbtn{background:transparent;border:1px solid #50627e;border-radius:13px;padding:12px 16px;min-height:48px;color:#d0e0f5;font-weight:800}.navbtn.active{color:white;background:#315488;border-color:#597cb3}.userbox{display:flex;gap:11px;align-items:center;font-size:12px}.userbox .outline{background:transparent;color:white;border-color:#566b87}.workspace{max-width:1650px;margin:auto;padding:27px 26px 60px}.section-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:22px}.section-head p{color:var(--muted);font-size:14px;margin-top:6px}.online{color:#087d57;background:#e4f8ef;padding:10px 15px;border-radius:50px;font-size:12px;font-weight:800;white-space:nowrap}.cash-grid{display:grid;grid-template-columns:minmax(0,1fr) 365px;gap:17px;align-items:start}.cash-grid>div:first-child{min-width:0;display:grid;gap:17px}.worker-panel{min-height:156px}.step-title{font-size:13px;font-weight:900;color:#3e5375;letter-spacing:.35px;display:flex;align-items:center;gap:10px;margin-bottom:15px}.step-title span{background:#e8f0ff;color:#2155b5;border-radius:9px;display:grid;place-items:center;font-size:15px;height:31px;width:31px}.relative{position:relative}.search-worker{width:100%;font-size:19px;min-height:65px;font-weight:700;padding-left:19px}.worker-results{position:absolute;z-index:10;left:0;right:0;top:70px;background:#fff;border:1px solid #cfdded;border-radius:14px;box-shadow:0 16px 32px #1b2e4e29;max-height:270px;overflow:auto}.worker-option{width:100%;background:#fff;border:0;border-bottom:1px solid #edf1f6;text-align:left;padding:15px 18px;display:flex;gap:12px;align-items:center;min-height:65px}.worker-option strong{font-size:17px}.worker-option small{display:block;color:var(--muted);margin-top:3px}.worker-option:hover{background:#eaf2ff}.selected-worker{background:#e7f8ef;border:1px solid #c0e8d3;padding:14px;border-radius:14px;display:flex;align-items:center;gap:13px}.selected-worker .person{flex:1}.selected-worker b{display:block;font-size:17px}.selected-worker small{color:#197850}.categories{display:flex;gap:9px;overflow:auto;margin-bottom:19px;padding-bottom:3px}.category{background:#fff;border:1px solid #d9e2ef;padding:12px 15px;min-height:51px;white-space:nowrap;font-weight:800;border-radius:13px;color:#546580}.category.selected{background:#203e68;color:white;border-color:#203e68}.product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.product-card{background:#fff;border:1px solid var(--border);border-radius:15px;padding:9px 9px 13px;min-width:0;min-height:229px;position:relative;text-align:center}.product-card.selected{border:2px solid var(--blue);padding:8px 8px 12px;background:#f4f8ff}.product-card:disabled{opacity:.5}.product-card img{width:100%;height:121px;object-fit:contain;background:#fff;border-radius:9px}.no-photo{height:121px;display:grid;place-items:center;font-size:42px;background:#eaf1fb;border-radius:9px}.product-name{font-size:14px;font-weight:900;margin-top:8px;min-height:34px;display:grid;place-items:center}.price{font-size:19px;color:#1c2e4a;font-weight:900;margin-top:4px}.ministock{font-size:11px;color:var(--muted);margin-top:4px}.qty-badge{position:absolute;right:6px;top:6px;border-radius:9px;background:var(--blue);color:white;padding:5px 9px;font-size:13px;font-weight:900}.checkout{position:sticky;top:15px}.cart-items{max-height:270px;overflow:auto}.empty-cart{color:#a0adc0;text-align:center;font-size:15px;padding:33px 8px;line-height:2}.cart-line{padding:12px 0;border-bottom:1px solid #ebf0f5;display:flex;align-items:center;gap:8px;justify-content:space-between}.cart-line .info{flex:1;min-width:0}.cart-line .info b{font-size:14px;display:block}.cart-line .info small{color:var(--muted)}.qty-buttons{display:flex;align-items:center;gap:7px}.qty-buttons button{width:37px;height:37px;border:1px solid #cbd7e7;border-radius:10px;background:#f8fbff;color:#33507e;font-size:22px}.qty-buttons strong{width:18px;text-align:center}.total{display:flex;justify-content:space-between;align-items:center;margin:18px 0;padding:15px;background:#eaf1fe;border-radius:14px;color:#2f4e7b;font-weight:900}.total strong{font-size:30px;color:#142b53}.paytitle{margin-top:12px}.pay-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:9px}.pay{border:1px solid #dce4ee;background:#fff;min-height:87px;border-radius:13px;font-weight:900;font-size:13px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:#415472}.pay span{font-size:27px}.pay.selected{border:2px solid var(--blue);background:#ebf3ff;color:#2055b1}.save{width:100%;margin-top:19px}.checkout .outline{margin-top:8px}.checkout-note{color:var(--muted);font-size:11px;line-height:1.5;margin-top:13px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:18px}.stat{padding:18px;background:white;border:1px solid var(--border);border-radius:15px}.stat small{color:var(--muted);font-weight:750}.stat strong{display:block;font-size:27px;margin-top:8px}.tabs{display:flex;overflow:auto;gap:8px;margin-bottom:15px;padding-bottom:4px}.tab{white-space:nowrap;background:#fff;border:1px solid var(--border);border-radius:11px;padding:13px 16px;font-weight:800;color:#546681}.tab.active{background:#203f6c;border-color:#203f6c;color:#fff}.admin-panel{min-height:300px}.tools{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:15px;flex-wrap:wrap}.tools h2{margin:0}.table-scroll{overflow:auto;max-width:100%}table{border-collapse:collapse;width:100%;font-size:13px;min-width:620px}th{text-align:left;text-transform:uppercase;letter-spacing:.5px;color:#6c7a94;font-size:10px;background:#f6f9fd;padding:14px 12px}td{padding:13px 12px;border-top:1px solid #edf0f5;vertical-align:middle}td img{height:48px;width:48px;object-fit:contain;vertical-align:middle;border-radius:9px;background:white}.money{font-weight:900}.green{color:var(--good)}.red{color:var(--bad)}.pill{font-size:11px;border-radius:7px;background:#eff3fa;padding:6px 10px;font-weight:850}.pill.orange{background:#fff1dc;color:#9a590f}.pill.good{background:#e2f7ed;color:#057c50}.pill.red{background:#ffe8ea;color:#ae3543}.modal-layer{position:fixed;z-index:30;inset:0;background:#12243aa8;display:grid;place-items:center;padding:15px}.modal{background:#fff;border-radius:20px;max-height:calc(100vh - 32px);overflow:auto;width:min(560px,100%);padding:24px;box-shadow:0 22px 60px #05102440}.modal.large{width:min(850px,100%)}.modal-header{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:16px}.modal-header h2{margin:0}.xbutton{border:0;background:#edf2f8;border-radius:11px;width:42px;height:42px;font-size:20px}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:15px}.form-grid .wide{grid-column:1/-1}.form-grid label input,.form-grid label select{width:100%}.form-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:22px;flex-wrap:wrap}.receipt{white-space:pre-wrap;font-size:13px;line-height:1.8;background:#f1f5fa;border:1px solid #e4e9f1;padding:16px;border-radius:12px}.toast{position:fixed;z-index:50;bottom:20px;left:50%;transform:translateX(-50%);padding:15px 23px;border-radius:13px;background:#203d67;color:white;box-shadow:0 14px 32px #14263e55;font-weight:750;max-width:90vw;text-align:center}.notice{padding:12px 15px;border:1px solid #f1d3a1;background:#fffaed;border-radius:12px;color:#87632c;font-size:12px;line-height:1.5}.login-screen{min-height:100vh;display:grid;place-items:center;padding:20px;background:radial-gradient(ellipse at top left,#234575,#10243f 70%)}.login-card{width:min(435px,100%);padding:39px 32px;background:white;border-radius:23px;box-shadow:0 16px 60px #07132655;text-align:center}.logo-big{font-size:56px;margin-bottom:10px}.login-card h1{letter-spacing:-1px}.login-card h1 span{color:#2878eb}.login-card p{margin-top:11px;color:var(--muted)}.login-card form{display:grid;gap:17px;text-align:left;margin-top:29px}.login-card .huge{width:100%;margin-top:7px}.login-foot{font-size:12px;color:var(--muted);margin-top:26px}
@media(max-width:1240px){.cash-grid{grid-template-columns:minmax(0,1fr) 335px}.product-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:940px){.cash-grid{grid-template-columns:1fr}.checkout{position:static}.product-grid{grid-template-columns:repeat(4,1fr)}.topbar{padding:12px 18px}.stats{grid-template-columns:repeat(2,1fr)}}
@media(max-width:690px){.topbar{flex-wrap:wrap;gap:11px}.topbar nav{order:3;width:100%}.navbtn{flex:1;padding:11px}.brand strong{font-size:15px}.brand-icon{width:42px;height:42px}.workspace{padding:17px 12px 45px}.section-head{flex-wrap:wrap;gap:12px}.section-head h1{font-size:25px}.section-head .primary{width:100%}.panel{padding:16px}.product-grid{grid-template-columns:repeat(2,1fr);gap:9px}.product-card{min-height:225px}.product-card img,.no-photo{height:120px}.pay-grid{grid-template-columns:repeat(4,1fr);gap:6px}.pay{font-size:10px;min-height:82px;padding:4px}.pay span{font-size:24px}.form-grid{grid-template-columns:1fr}.form-grid .wide{grid-column:auto}.stats{gap:8px}.stat{padding:11px}.stat strong{font-size:22px}.userbox #userRole{font-size:10px}.worker-option{min-height:74px}}

.check-perm{display:flex;flex-direction:row;align-items:center;gap:12px;padding:10px;border:1px solid #dce4ee;border-radius:10px;background:#f8faff}.check-perm input{width:24px;height:24px;min-height:auto;flex:0 0 auto}.check-perm span{font-weight:650;font-size:13px}.tab.hidden,.navbtn.hidden{display:none}
