input[aria-invalid=true],select[aria-invalid=true],textarea[aria-invalid=true]{outline-offset:1px;outline:2px solid #b42318;border-color:#b42318!important}.whenly-field-error{color:#b42318;margin-top:.25rem;font-size:.875rem;display:block}label:has(>input[required]):before{content:"* ";color:#b42318}label:has(>select[required]):before{content:"* ";color:#b42318}label:has(>textarea[required]):before{content:"* ";color:#b42318}div:has(>input[required])>label[for]:after{content:" *";color:#b42318}div:has(>select[required])>label[for]:after{content:" *";color:#b42318}div:has(>textarea[required])>label[for]:after{content:" *";color:#b42318}.driver-page{max-width:720px;margin:auto}.driver-stack{flex-direction:column;gap:1rem;display:flex}.driver-page p{overflow-wrap:anywhere;line-height:1.5}.driver-page h2{font-size:1.25rem}.driver-page h3{font-size:1.05rem}.driver-page label{flex-direction:column;gap:.5rem;display:flex}.driver-page input:not([type=checkbox]),.driver-page select,.driver-page textarea{border:1px solid var(--gray-300);width:100%;min-height:44px;font:inherit;border-radius:.5rem;padding:.65rem}.driver-page input[type=checkbox]{flex-shrink:0;width:24px;height:24px}.driver-page .driver-check{flex-direction:row;align-items:center}.driver-route-card{color:inherit;border:1px solid var(--gray-300);text-decoration:none;display:block}.driver-route-card:hover{border-color:var(--primary)}.driver-actions{flex-wrap:wrap;gap:.75rem;display:flex}.driver-actions .btn{text-align:center;flex:1;min-width:130px}.driver-notes{white-space:pre-wrap}.driver-page [role=alert]{color:#9b1c1c;background:#fff1f1;border-radius:.5rem;padding:.75rem}.driver-page button:disabled{opacity:.55;cursor:not-allowed}.driver-page summary{cursor:pointer;padding:.5rem 0}.driver-evidence{border-top:1px solid var(--gray-300);padding-top:1rem}.driver-evidence-image{object-fit:contain;border:1px solid var(--gray-300);background:#fff;width:100%;max-height:400px}.driver-signature{aspect-ratio:3;touch-action:none;background:#fff;border:2px solid #667085;border-radius:.5rem;width:100%;height:auto}.warehouse-update{color:#172b4d;background:#f0f5ff;border-bottom:1px solid #a9bce6;padding:1rem}.warehouse-update p{margin:.75rem 0;line-height:1.5}.warehouse-update-title,.warehouse-update-actions{flex-wrap:wrap;align-items:center;gap:.75rem;display:flex}.warehouse-update-title{justify-content:space-between}.warehouse-update [role=alert]{color:#9b1c1c}.warehouse-update button:disabled{opacity:.6;cursor:not-allowed}.enrollment-setup{color:#172b2a;overflow-wrap:anywhere;max-width:1100px;margin:0 auto;padding:24px;font:16px/1.5 system-ui,sans-serif}.enrollment-setup header,.enrollment-setup .en-actions,.enrollment-setup .en-product{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.enrollment-setup h1{margin:0;font-size:28px;font-weight:700}.enrollment-setup h2{margin:0 0 12px;font-size:21px;font-weight:650}.enrollment-setup h3{margin:12px 0 6px;font-size:17px;font-weight:650}.enrollment-setup p{margin:10px 0}.enrollment-setup section{background:#fff;border:1px solid #dce4e2;border-radius:12px;margin:16px 0;padding:20px}.enrollment-setup fieldset{border:0;min-width:0;margin:0;padding:0}.enrollment-setup button{font:inherit;cursor:pointer;color:#173c36;background:#fff;border:1px solid #9fadaa;border-radius:7px;min-height:44px;padding:9px 14px}.enrollment-setup button:disabled{cursor:not-allowed;opacity:.5}.enrollment-setup .en-primary{color:#fff;background:#006a5b;border-color:#006a5b;font-weight:600}.enrollment-setup .en-danger{color:#a22828;margin-top:14px}.enrollment-setup button:focus-visible,.enrollment-setup input:focus-visible,.enrollment-setup select:focus-visible,.enrollment-setup textarea:focus-visible{outline-offset:2px;outline:3px solid #308bdb}.enrollment-setup .en-field{flex-direction:column;gap:6px;min-width:0;margin:10px 0;display:flex}.enrollment-setup .en-field>span{font-weight:600}.enrollment-setup input:not([type=checkbox]),.enrollment-setup select,.enrollment-setup textarea{box-sizing:border-box;font:inherit;color:#172b2a;background:#fff;border:1px solid #819b95;border-radius:6px;width:100%;min-width:0;min-height:44px;padding:9px 11px}.enrollment-setup small{color:#4b625c;font-size:13px}.enrollment-setup .en-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px;display:grid}.enrollment-setup .en-notice{background:#fff9e9;border:1px solid #dac482;border-radius:10px;padding:16px}.enrollment-setup .en-success{background:#edf9f1;border:1px solid #77b99f;border-radius:10px;padding:16px}.enrollment-setup .en-table{max-width:100%;margin:16px 0;overflow-x:auto}.enrollment-setup table{border-collapse:collapse;text-align:left;width:100%}.enrollment-setup th,.enrollment-setup td{vertical-align:top;border-bottom:1px solid #dce4e2;padding:10px}.enrollment-setup th{background:#f4f8f6;font-weight:650}.enrollment-setup .en-steps{flex-wrap:wrap;gap:8px;margin:16px 0;display:flex}.enrollment-setup [aria-current=step],.enrollment-setup [aria-pressed=true]{background:#e4f3ed;border-color:#006a5b}.enrollment-setup .en-row,.enrollment-setup .en-history{border:1px solid #dce4e2;border-radius:8px;margin:12px 0;padding:16px}.enrollment-setup .en-totals{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px 0;display:grid}.enrollment-setup .en-totals>div{background:#f1f7f4;border-radius:8px;padding:12px}.enrollment-setup .en-totals dd{margin:0;font-size:26px;font-weight:700}.enrollment-setup .en-confirm{align-items:flex-start;gap:12px;margin:24px 0;font-weight:600;display:flex}.enrollment-setup input[type=checkbox]{accent-color:#006a5b;flex:none;width:24px;height:24px}.enrollment-setup .en-product{border-bottom:1px solid #dce4e2;justify-content:space-between;padding:16px 0}@media (width<=600px){.enrollment-setup{padding:12px}.enrollment-setup header{align-items:flex-start}.enrollment-setup h1{font-size:24px}.enrollment-setup section{padding:14px}.enrollment-setup .en-grid{grid-template-columns:1fr}.enrollment-setup .en-totals{grid-template-columns:repeat(2,minmax(0,1fr))}.enrollment-setup .en-steps button{flex:100%}.enrollment-setup .en-actions>button{max-width:100%}}.warehouse-receiving{box-sizing:border-box;width:100%}.warehouse-receiving *{box-sizing:border-box;min-width:0}.warehouse-receiving fieldset{border:0;margin:0;padding:0}.warehouse-receiving .wr-picker{padding:.75rem 0}.warehouse-receiving section section{border:0;padding:.75rem 0}.warehouse-receiving .en-history{overflow-wrap:anywhere}.warehouse-receiving .en-totals{flex-wrap:wrap;gap:1rem;display:flex}.warehouse-receiving button{white-space:normal}.older-receiving{overflow-wrap:anywhere}.older-receiving details{margin:12px 0}.older-receiving summary{cursor:pointer;padding:8px 0}.older-fields{grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:12px;display:grid}.older-fields div{min-width:0}.older-fields dt{text-transform:capitalize;color:#475569;font-size:.85rem}.older-fields dd{margin:3px 0}.older-receiving fieldset{min-width:0}.older-receiving select{max-width:100%}.count-ui{min-width:0;max-width:100%;font:inherit;overflow-wrap:anywhere}.count-ui h2,.count-ui h3{margin:1rem 0 .5rem;font-weight:650}.count-ui p{margin:.5rem 0}.count-ui label{min-width:0;margin:.6rem 0;display:block}.count-ui input:not([type=checkbox]),.count-ui textarea{box-sizing:border-box;color:#18242d;width:100%;min-height:42px;font:inherit;background:#fff;border:1px solid #879098;border-radius:6px;padding:.6rem;display:block}.count-ui input[type=checkbox]{margin-right:.5rem}.count-ui button{font:inherit;color:#153b32;background:#fff;border:1px solid #73808a;border-radius:6px;min-height:42px;margin:.3rem .4rem .3rem 0;padding:.5rem .8rem}.count-ui button:disabled{opacity:.55}.count-ui fieldset{border:1px solid #bbc5ce;border-radius:8px;min-width:0;margin:1rem 0;padding:.8rem}.count-ui legend{font-weight:600}.count-ui [role=alert]{color:#981b1b}.count-ui ul{padding-left:1.3rem}.count-fields{grid-template-columns:repeat(auto-fit,minmax(min(230px,100%),1fr));gap:0 1rem;display:grid}.count-actions{flex-wrap:wrap;align-items:center;gap:.5rem;display:flex}.count-sources>li{border-bottom:1px solid #dbe1e6;margin:.75rem 0;padding:.5rem}.count-draft{background:#f3f6f8;border-radius:6px;margin:.8rem 0;padding:.6rem}:root{--primary:#4f46e5;--primary-dark:#4338ca;--success:#22c55e;--warning:#f59e0b;--danger:#ef4444;--gray-50:#f9fafb;--gray-100:#f3f4f6;--gray-200:#e5e7eb;--gray-300:#d1d5db;--gray-500:#6b7280;--gray-700:#374151;--gray-900:#111827;--radius:12px;--shadow:0 1px 3px #0000001a;--shadow-lg:0 10px 15px -3px #0000001a;--app-max-width:480px}*{box-sizing:border-box;margin:0;padding:0}html,body{background:var(--gray-50);color:var(--gray-900);-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}body{min-height:100vh;min-height:-webkit-fill-available}.app{width:100%;min-height:100vh;max-width:var(--app-max-width);background:var(--gray-50);flex-direction:column;margin:0 auto;display:flex}@media (width>=600px){body{background:var(--gray-200)}.app{min-height:100vh;box-shadow:0 0 0 1px var(--gray-300), var(--shadow-lg)}}.loading-screen{flex-direction:column;justify-content:center;align-items:center;gap:1rem;min-height:100vh;display:flex}.spinner{border:3px solid var(--gray-200);border-top-color:var(--primary);border-radius:50%;width:40px;height:40px;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.page{padding-bottom:env(safe-area-inset-bottom);flex-direction:column;flex:1;display:flex}.page-header{z-index:100;border-bottom:1px solid var(--gray-200);background:#fff;align-items:center;gap:1rem;padding:1rem;display:flex;position:sticky;top:0}.page-header h1{flex:1;font-size:1.25rem;font-weight:600}.page-content{flex:1;padding:1rem;overflow-y:auto}.stock-count-page{width:100%;min-width:0;max-width:960px;margin-inline:auto}.stock-count-page .page-header{flex-wrap:wrap}.stock-count-page .page-content{min-width:0}.stock-count-page .page-content>.btn{justify-self:start}.btn{border-radius:var(--radius);cursor:pointer;border:none;justify-content:center;align-items:center;gap:.5rem;padding:.875rem 1.5rem;font-size:1rem;font-weight:500;text-decoration:none;transition:all .15s;display:inline-flex}.btn-primary{background:var(--primary);color:#fff}.btn-primary:active{background:var(--primary-dark);transform:scale(.98)}.btn-secondary{color:var(--gray-700);border:1px solid var(--gray-200);background:#fff}.btn-success{background:var(--success);color:#fff}.btn-danger{background:var(--danger);color:#fff}.btn-large{width:100%;padding:1rem;font-size:1.125rem}.btn:disabled{opacity:.5;cursor:not-allowed}.card{border-radius:var(--radius);box-shadow:var(--shadow);background:#fff;margin-bottom:1rem;padding:1rem}.card-header{justify-content:space-between;align-items:center;margin-bottom:.75rem;display:flex}.card-title{font-size:1rem;font-weight:600}.list-item{border-radius:var(--radius);box-shadow:var(--shadow);cursor:pointer;background:#fff;align-items:center;gap:1rem;margin-bottom:.75rem;padding:1rem;transition:transform .1s;display:flex}.list-item:active{transform:scale(.99)}.list-item-content{flex:1}.list-item-title{margin-bottom:.25rem;font-weight:500}.list-item-subtitle{color:var(--gray-500);font-size:.875rem}.badge{border-radius:9999px;align-items:center;padding:.25rem .75rem;font-size:.75rem;font-weight:500;display:inline-flex}.badge-success{color:#166534;background:#dcfce7}.badge-warning{color:#92400e;background:#fef3c7}.badge-danger{color:#991b1b;background:#fee2e2}.badge-info{color:#1e40af;background:#dbeafe}.form-group{margin-bottom:1rem}.form-label{color:var(--gray-700);margin-bottom:.5rem;font-size:.875rem;font-weight:500;display:block}.form-input{border:1px solid var(--gray-200);border-radius:var(--radius);width:100%;padding:.875rem;font-size:1rem;transition:border-color .15s}.form-input:focus{border-color:var(--primary);outline:none;box-shadow:0 0 0 3px #4f46e51a}.quantity-stepper{align-items:center;gap:.5rem;display:flex}.quantity-stepper button{border:1px solid var(--gray-200);border-radius:var(--radius);cursor:pointer;background:#fff;width:48px;height:48px;font-size:1.5rem}.quantity-stepper input{text-align:center;border:1px solid var(--gray-200);border-radius:var(--radius);width:80px;height:48px;font-size:1.25rem;font-weight:600}.progress-bar{background:var(--gray-200);border-radius:4px;height:8px;overflow:hidden}.progress-bar-fill{background:var(--primary);height:100%;transition:width .3s}.scan-button{bottom:calc(1rem + env(safe-area-inset-bottom));right:max(1rem, calc((100vw - var(--app-max-width)) / 2 + 1rem));background:var(--primary);color:#fff;width:64px;height:64px;box-shadow:var(--shadow-lg);cursor:pointer;border:none;border-radius:50%;justify-content:center;align-items:center;display:flex;position:fixed}.scan-button svg{width:28px;height:28px}.camera-container{z-index:1000;background:#000;position:fixed;inset:0}.camera-container video{object-fit:cover;width:100%;height:100%}.camera-overlay{flex-direction:column;justify-content:center;align-items:center;padding:2rem;display:flex;position:absolute;inset:0}.scan-frame{border:3px solid #fff;border-radius:16px;width:250px;height:250px;position:relative}.camera-close{top:calc(1rem + env(safe-area-inset-top));color:#fff;background:#00000080;border:none;border-radius:50%;width:44px;height:44px;font-size:1.5rem;position:absolute;right:1rem}.signature-container{border:2px dashed var(--gray-300);border-radius:var(--radius);touch-action:none;background:#fff;min-height:200px}.signature-container canvas{touch-action:none;width:100%;height:200px}.bottom-actions{padding:1rem;padding-bottom:calc(1rem + env(safe-area-inset-bottom));border-top:1px solid var(--gray-200);background:#fff;gap:.75rem;display:flex;position:sticky;bottom:0;left:0;right:0}.swipe-action{color:#fff;justify-content:center;align-items:center;width:80px;font-weight:500;display:flex}.swipe-action-success{background:var(--success)}.swipe-action-danger{background:var(--danger)}
