:root{font-family:'Vazirmatn',Tahoma,Arial,sans-serif;color:#172033;background:#f5f7fb;line-height:1.6;font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:#f5f7fb}button,input,select{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #a6e6ee;outline-offset:2px}.login-screen{min-height:100vh;display:grid;place-items:center;overflow:hidden;background:radial-gradient(circle at 15% 15%,#1b516a 0,#102a43 38%,#071a2a 100%);position:relative}.login-card{width:min(430px,calc(100% - 32px));padding:36px;background:#fff;border-radius:28px;box-shadow:0 30px 80px #0007;position:relative;z-index:1}.login-decoration{position:absolute;border-radius:50%;filter:blur(2px);opacity:.35}.decor-one{width:420px;height:420px;background:#22c5c9;right:-150px;top:-160px}.decor-two{width:300px;height:300px;background:#2c73b9;left:-130px;bottom:-120px}.brand-lockup,.topbar-brand{display:flex;align-items:center;gap:12px}.brand-lockup strong,.topbar-brand strong{display:block;color:#14364f;font-weight:800}.brand-lockup span,.topbar-brand span{display:block;color:#7890a4;font-size:.76rem}.brand-mark{width:52px;height:52px;border-radius:16px;background:linear-gradient(135deg,#16a4ad,#0d5579);color:white;display:grid;place-items:center;font-weight:800;letter-spacing:1px}.brand-mark.small{width:38px;height:38px;border-radius:12px;font-size:.8rem}.login-copy{margin:34px 0 22px}.eyebrow{font-size:.68rem;letter-spacing:2px;color:#0b91a1;font-weight:800}.login-copy h1{font-size:1.55rem;margin:5px 0}.login-copy p,.page-heading p,.section-head p{margin:0;color:#7c8b9b;font-size:.86rem}.form-stack,.modal-form{display:grid;gap:14px}.form-stack label,.modal-form label,.count-form label{display:grid;gap:6px;font-size:.8rem;color:#405268;font-weight:700}.form-stack input,.modal-form input,.modal-form select,.count-form input{width:100%;border:1px solid #dce4ec;background:#fbfcfe;padding:12px 13px;border-radius:11px;color:#172033;transition:.2s}.form-stack input:focus,.modal-form input:focus,.modal-form select:focus,.count-form input:focus{border-color:#11a2af;background:white;box-shadow:0 0 0 4px #11a2af12;outline:0}.password-field{position:relative}.password-field input{padding-left:46px}.password-toggle{position:absolute;left:6px;top:5px;border:0;background:transparent;color:#7890a4;padding:7px}.primary-button,.outline-button,.text-button,.icon-button{border-radius:11px;border:0;padding:11px 16px;font-weight:700;transition:.18s}.primary-button{background:#0e8796;color:#fff;box-shadow:0 8px 18px #0e879633}.primary-button:hover{background:#08727f;transform:translateY(-1px)}.primary-button span{margin-right:8px}.primary-button.full{width:100%;margin-top:5px}.outline-button{background:#fff;color:#0c7584;border:1px solid #b7dfe4}.outline-button:hover{background:#effbfc}.login-foot{border-top:1px solid #eef1f5;margin-top:25px;padding-top:16px;font-size:.75rem;color:#8795a5}.status-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#22b77e;box-shadow:0 0 0 4px #22b77e1f;margin-left:7px}.form-error{color:#be3a3a;min-height:20px;font-size:.77rem}.topbar{height:76px;background:#fff;border-bottom:1px solid #e7edf2;padding:0 30px;display:flex;align-items:center;justify-content:space-between}.topbar-actions{display:flex;align-items:center;gap:22px}.connection{font-size:.76rem;color:#6a7f91}.user-chip{display:flex;align-items:center;gap:9px}.user-chip strong,.user-chip span{display:block}.user-chip strong{font-size:.78rem}.user-chip span{font-size:.68rem;color:#8998a8}.avatar{width:35px;height:35px;border-radius:12px;background:#dff4f4;color:#087e8d;display:grid;place-items:center;font-weight:800}.icon-button{background:transparent;color:#5d7184;font-size:1.2rem;padding:7px}.icon-button:hover{background:#edf5f7;color:#087e8d}.app-shell{display:grid;grid-template-columns:242px 1fr;min-height:calc(100vh - 76px)}.sidebar{background:#102a43;color:white;padding:25px 16px;display:flex;flex-direction:column}.sidebar-heading{font-size:.7rem;color:#88a3b8;margin:0 10px 12px}.nav-list{display:grid;gap:5px}.nav-item{border:0;background:transparent;color:#b8c9d8;border-radius:12px;padding:13px 12px;display:flex;align-items:center;gap:10px;text-align:right;font-size:.82rem;width:100%}.nav-item:hover,.nav-item.active{background:#1d4967;color:white}.nav-icon{width:22px;text-align:center;font-size:1rem}.nav-item kbd{margin-right:auto;color:#83b5c5;border:1px solid #42738c;border-radius:5px;padding:1px 5px;font-size:.6rem}.sidebar-bottom{margin-top:auto}.tip-card{background:#17415e;border-radius:15px;padding:15px;display:flex;gap:9px;color:#d6e7f0}.tip-icon{color:#77e0d5;font-size:1.2rem}.tip-card strong{font-size:.78rem}.tip-card p{font-size:.7rem;color:#a8bfce;margin:3px 0 0;line-height:1.7}.sidebar-meta{font-size:.65rem;color:#6f91a5;margin:18px 8px 0}.main-content{max-width:1280px;width:100%;padding:32px 38px;margin:0 auto}.page-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:24px}.page-heading h1{margin:4px 0 5px;font-size:1.55rem;color:#173750}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:22px}.stat-card{background:#fff;border:1px solid #e8edf2;border-radius:15px;padding:17px;display:flex;align-items:center;gap:12px;box-shadow:0 6px 16px #1c49600a}.stat-card>div span,.stat-card>div strong{display:block}.stat-card>div span{font-size:.72rem;color:#8292a2}.stat-card>div strong{font-size:1.35rem;color:#18374f;margin-top:2px}.stat-icon{width:40px;height:40px;border-radius:13px;display:grid;place-items:center;font-size:1.15rem;font-weight:800}.stat-icon.blue{background:#e3f1ff;color:#2f82c9}.stat-icon.green{background:#e4f8ee;color:#199d64}.stat-icon.amber{background:#fff4dd;color:#c68a19}.stat-icon.purple{background:#eee8ff;color:#7858ce}.scan-card{background:#fff;border:1px solid #dfe9ed;border-radius:20px;padding:22px;box-shadow:0 12px 25px #1b52600c}.scan-card-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:17px}.scan-title{display:flex;align-items:center;gap:11px}.scan-title h2{font-size:1rem;margin:0;color:#163b55}.scan-title p{font-size:.75rem;color:#8292a2;margin:3px 0 0}.scan-pulse{width:36px;height:36px;border-radius:12px;background:#e4f8f8;color:#0a909d;display:grid;place-items:center;font-size:1.5rem}.hotkey{border:1px solid #d9e6eb;border-radius:7px;padding:3px 9px;color:#8495a3;font-size:.68rem}.search-box{height:58px;background:#f7fafc;border:2px solid #e0e9ee;border-radius:14px;display:flex;align-items:center;padding:0 14px;gap:9px;transition:.2s}.search-box:focus-within{border-color:#12a2b1;background:#fff;box-shadow:0 0 0 5px #12a2b112}.search-symbol{font-size:1.7rem;line-height:1;color:#0e99a6}.search-box input{border:0;background:transparent;outline:0;flex:1;min-width:0;font-size:.92rem;color:#172033}.search-box input::placeholder{color:#9aa9b5}.enter-hint{font-size:.65rem;color:#91a0ab;border:1px solid #d6e0e6;border-radius:6px;padding:3px 7px}.clear-search{border:0;background:transparent;color:#8b9aa7;font-size:1.4rem}.search-hint{font-size:.71rem;color:#8696a3;margin:10px 4px 0}.search-hint span{color:#0e99a6}.product-results{display:grid;gap:8px;margin-top:15px}.result-item{border:1px solid #e6edf1;border-radius:13px;padding:11px 13px;display:flex;align-items:center;gap:12px;cursor:pointer;transition:.15s}.result-item:hover{border-color:#16a6b2;background:#f2fcfd}.result-thumb,.product-thumb{width:43px;height:43px;border-radius:10px;object-fit:cover;background:#eaf2f5;display:grid;place-items:center;color:#78a4ad;font-weight:800;flex:none}.result-main{min-width:0;flex:1}.result-main strong{display:block;font-size:.82rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.result-main small{color:#81909e;font-size:.68rem}.result-arrow{color:#0f9aa8;font-size:1.2rem}.selected-product-box{margin-top:18px;background:#eefafb;border:1px solid #bde7e8;border-radius:16px;padding:17px}.selected-product{display:flex;gap:12px;align-items:center;margin-bottom:15px}.selected-product .product-thumb{width:55px;height:55px}.selected-product h3{margin:0;color:#173d56;font-size:.92rem}.selected-product p{margin:3px 0 0;color:#688393;font-size:.7rem}.source-pill{display:inline-block;background:#d8f1f2;color:#087c89;border-radius:6px;padding:2px 7px;font-size:.64rem;margin:4px 4px 0 0}.count-form{display:grid;grid-template-columns:180px 1fr 160px;gap:12px;align-items:end}.count-submit{height:45px}.section-head{display:flex;justify-content:space-between;align-items:end;margin:28px 2px 12px}.section-head h2{font-size:1rem;margin:0;color:#173d56}.text-button{background:transparent;color:#0b8d9b;font-size:.76rem;padding:4px}.recent-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:11px}.recent-card{background:#fff;border:1px solid #e8edf2;border-radius:14px;padding:12px;display:flex;gap:9px;min-width:0}.recent-card strong{display:block;font-size:.74rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.recent-card small{display:block;color:#8797a5;font-size:.65rem;margin-top:4px}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.table-search{background:#fff;border:1px solid #e2eaf0;border-radius:11px;padding:9px 12px;display:flex;align-items:center;gap:7px;max-width:450px;flex:1}.table-search span{color:#0b93a0;font-size:1.2rem}.table-search input{border:0;outline:0;flex:1;background:transparent;font-size:.78rem}.result-count{font-size:.75rem;color:#8292a2}.table-card{background:#fff;border:1px solid #e3eaf0;border-radius:16px;overflow:hidden}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;min-width:700px}th,td{text-align:right;padding:14px 16px;border-bottom:1px solid #eef2f5;font-size:.75rem}th{color:#8292a2;background:#f9fbfc;font-weight:600}td{color:#405268}td strong{display:block;color:#183b55;font-size:.78rem}td small{color:#8a99a6}.quantity-cell{font-size:1rem;font-weight:800;color:#0d8794}.empty-state{text-align:center;padding:60px 20px;color:#80919e}.empty-state span{display:block;font-size:2rem;color:#b4d8dc}.empty-state strong{display:block;margin:10px 0 3px;color:#476477}.empty-state p{font-size:.75rem;margin:0}.user-notice{display:flex;gap:12px;align-items:center;background:#e9f8f8;border:1px solid #cceced;border-radius:15px;padding:14px 17px;margin-bottom:19px;color:#15626c}.user-notice>span{font-size:1.5rem}.user-notice strong{font-size:.8rem}.user-notice p{font-size:.72rem;margin:3px 0 0;color:#6f8e96}.users-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.user-card{background:#fff;border:1px solid #e4ebf0;border-radius:16px;padding:16px;position:relative}.user-card-head{display:flex;align-items:center;gap:10px}.user-card .avatar{width:42px;height:42px}.user-card h3{margin:0;font-size:.86rem;color:#183b55}.user-card p{margin:2px 0 0;color:#8797a5;font-size:.7rem}.role-tag{display:inline-block;margin-top:17px;background:#eff4f7;color:#526e80;border-radius:7px;padding:4px 8px;font-size:.65rem}.active-tag{background:#e4f8ee;color:#168358}.inactive-tag{background:#f9e8e8;color:#a65353}.user-actions{border-top:1px solid #eef2f5;margin-top:14px;padding-top:10px;display:flex;justify-content:space-between}.small-button{background:transparent;border:0;color:#0c8b99;font-size:.72rem;padding:4px}.small-button.danger{color:#ad5656}.modal{position:fixed;inset:0;z-index:20;background:#091d2b9c;display:grid;place-items:center;padding:18px}.modal-card{background:#fff;border-radius:21px;width:min(500px,100%);padding:27px;position:relative;box-shadow:0 20px 60px #0005}.modal-close{position:absolute;left:17px;top:14px;border:0;background:transparent;color:#8493a0;font-size:1.5rem}.modal-heading{display:flex;align-items:center;gap:11px;margin-bottom:20px}.modal-heading h2{margin:0;font-size:1.1rem;color:#173d56}.modal-heading p{margin:3px 0 0;color:#8595a2;font-size:.73rem}.modal-icon{width:40px;height:40px;border-radius:13px;background:#e1f6f6;color:#0b8c99;display:grid;place-items:center;font-size:1.2rem}.modal-form small{font-weight:400;color:#8a99a7;margin-right:5px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.modal-actions{display:flex;justify-content:flex-start;gap:9px;margin-top:5px}.mobile-only{display:none}
@media(max-width:1000px){.main-content{padding:25px}.stats-grid{grid-template-columns:repeat(2,1fr)}.recent-grid{grid-template-columns:repeat(2,1fr)}.users-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:720px){.topbar{height:65px;padding:0 14px}.connection{display:none}.topbar-brand span{display:none}.app-shell{display:block}.sidebar{position:fixed;top:65px;right:-270px;width:260px;height:calc(100vh - 65px);z-index:15;transition:.25s;box-shadow:-15px 0 35px #0003}.sidebar.open{right:0}.mobile-only{display:block}.main-content{padding:20px 14px}.page-heading{flex-direction:column;margin-bottom:19px}.page-heading h1{font-size:1.3rem}.page-heading .primary-button,.page-heading .outline-button{width:100%}.stats-grid{gap:8px}.stat-card{padding:12px 10px}.stat-card>div strong{font-size:1.1rem}.stat-icon{width:34px;height:34px}.count-form{grid-template-columns:1fr}.recent-grid,.users-grid{grid-template-columns:1fr}.toolbar{align-items:stretch;flex-direction:column}.table-search{max-width:none}.login-card{padding:29px 23px}.user-chip>div:last-child{display:none}}
.view{animation:fadeIn .18s ease}.empty-inline{border:1px dashed #c9dfe3;border-radius:12px;padding:16px;text-align:center;color:#718895;font-size:.76rem;background:#fbfefe}.toast{position:fixed;left:24px;bottom:24px;z-index:30;display:none;background:#173b56;color:#fff;border-radius:11px;padding:12px 16px;font-size:.78rem;box-shadow:0 10px 30px #173b5638}.toast.show{display:block}.toast.bad{background:#a23e46}@keyframes fadeIn{from{opacity:.2;transform:translateY(3px)}to{opacity:1;transform:none}}
.camera-button{border:1px solid #b9dfe3;background:#e9f8f8;color:#078b98;border-radius:9px;height:36px;min-width:48px;padding:3px 7px;display:grid;place-items:center;line-height:1}.camera-button small{font-size:.54rem}.priority-banner{display:flex;gap:12px;align-items:center;background:#e9f8f8;border:1px solid #c3e7e8;border-radius:16px;padding:16px 18px;margin-bottom:18px;color:#15626c}.priority-banner>span{font-size:1.55rem;color:#0b929d}.priority-banner strong{font-size:.82rem}.priority-banner p{font-size:.73rem;margin:3px 0 0;color:#6c8991}.import-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.import-card{background:#fff;border:1px solid #e3ebef;border-radius:18px;padding:21px;box-shadow:0 8px 22px #1b52600a}.import-card.primary-source{border-color:#a9dfe2;box-shadow:0 8px 25px #139da515}.import-card-icon{width:40px;height:40px;border-radius:12px;background:#dff5f5;color:#0b8e99;display:grid;place-items:center;font-weight:800}.import-card-icon.secondary{background:#edf1ff;color:#6459b5}.import-card h2{font-size:1rem;color:#173d56;margin:13px 0 4px}.import-card p{font-size:.73rem;color:#7d8d9b;min-height:35px}.import-card input[type=file]{width:100%;padding:10px;border:1px dashed #bdd5db;border-radius:10px;background:#fbfdfd;color:#738795;font-size:.72rem;margin:9px 0 13px}.import-result{font-size:.7rem;color:#14815f;min-height:22px;margin-top:10px}.mapping-guide{background:#fff;border:1px solid #e5edf1;border-radius:16px;margin-top:18px;padding:18px;display:flex;justify-content:space-between;gap:20px}.mapping-guide>div:first-child{display:grid;gap:7px;font-size:.75rem;color:#567082}.mapping-guide strong{color:#173d56}.mapping-example{min-width:280px;border-right:1px solid #e5edf1;padding-right:20px;display:grid;gap:4px}.mapping-example small{color:#0b929d}.mapping-example strong{color:#173d56;font-size:.82rem}.mapping-example code{color:#7f909d;font-size:.66rem}.scanner-card{background:#fff;border-radius:20px;padding:22px;width:min(520px,100%);box-shadow:0 20px 60px #0006}.scanner-heading{display:flex;gap:11px;align-items:center;margin-bottom:15px}.scanner-heading>span{width:40px;height:40px;border-radius:12px;background:#e1f6f6;color:#0b8c99;display:grid;place-items:center}.scanner-heading h2{font-size:1rem;margin:0;color:#173d56}.scanner-heading p{font-size:.72rem;color:#80919d;margin:3px 0 0}.video-frame{height:330px;background:#081d2c;border-radius:15px;position:relative;overflow:hidden}.video-frame video{width:100%;height:100%;object-fit:cover}.scan-corners{position:absolute;inset:25% 12%;border:2px solid #7ee9df;border-radius:12px;box-shadow:0 0 0 999px #001a2a32}.scanner-status{text-align:center;color:#607b8a;font-size:.74rem;padding:12px 0}.scanner-modal{z-index:25}
@media(max-width:720px){.import-grid{grid-template-columns:1fr}.mapping-guide{display:grid}.mapping-example{border-right:0;border-top:1px solid #e5edf1;padding:15px 0 0;min-width:0}.video-frame{height:280px}}
.duplicate-card{text-align:center;width:min(480px,100%)}.duplicate-card .modal-close{left:15px}.duplicate-icon{width:48px;height:48px;border-radius:15px;background:#fff1d8;color:#c98720;display:grid;place-items:center;font-size:1.5rem;font-weight:800;margin:0 auto 12px}.duplicate-card .modal-heading{justify-content:center;margin-bottom:8px}.duplicate-card .modal-heading h2{font-size:1.05rem}.duplicate-card .modal-heading p{font-size:.76rem}.duplicate-summary{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:18px 0}.duplicate-summary div{background:#f7fafb;border:1px solid #e5edf0;border-radius:11px;padding:11px;font-size:.73rem;color:#537184}.duplicate-summary div:last-child{background:#e7f8f8;border-color:#c8e9e9;color:#0a7f8b}.duplicate-question{font-size:.84rem;color:#27495d;margin:10px 0 18px}.duplicate-card .modal-actions{justify-content:center}@media(max-width:480px){.duplicate-summary{grid-template-columns:1fr}}
.compact-input{width:100%;border:1px solid #dce7eb;background:#fbfdfd;border-radius:10px;padding:10px 11px;color:#36566b;font-size:.72rem;margin-bottom:5px}.compact-input:focus{outline:0;border-color:#0e9aa7;box-shadow:0 0 0 3px #0e9aa71a}
:where([hidden]){display:none!important}
[hidden]{display:none!important}html,body{min-height:100%;overflow-x:hidden}.main-content{min-width:0}.scan-card,.table-card,.import-card,.user-card{min-width:0}
@media(max-width:720px){.topbar-actions{gap:7px}.topbar{padding-left:9px;padding-right:9px}.user-chip{gap:5px}.icon-button{padding:6px}.search-box{padding-left:9px;padding-right:9px;gap:6px}.search-box input{font-size:.82rem}.enter-hint{display:none}.camera-button{min-width:43px}.scan-card{padding:15px}.scan-card-head{margin-bottom:12px}.selected-product-box{padding:13px}.selected-product p{line-height:1.8}.table-wrap{margin:0 -1px}.page-heading p{line-height:1.9}.modal{padding:10px}.scanner-card{padding:16px}.video-frame{height:260px}}
.heading-actions{display:flex;gap:8px;flex-wrap:wrap}@media(max-width:720px){.heading-actions{width:100%}.heading-actions button{flex:1}.barcode-list{grid-template-columns:1fr}}
/* Mobile layout pass: compact cards, forms and navigation for phone widths. */
@media (max-width: 900px){
  .app-shell{display:block;min-height:calc(100vh - 65px)}
  .sidebar{position:fixed;top:65px;right:-280px;width:270px;height:calc(100vh - 65px);z-index:30;transition:right .22s ease;overflow:auto}
  .sidebar.open{right:0}
  .main-content{width:100%;max-width:none;padding:22px 18px 36px}
}
@media (max-width: 720px){
  .topbar{height:65px;position:sticky;top:0;z-index:20}
  .topbar-brand{min-width:0;gap:8px}
  .topbar-brand strong{font-size:.78rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .topbar-actions{min-width:0}
  .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .stat-card{min-width:0;gap:8px;padding:11px 9px}
  .stat-card>div{min-width:0}
  .stat-card>div span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .stat-card>div strong{font-size:1.05rem}
  .page-heading{gap:13px}
  .page-heading>div:first-child{min-width:0}
  .page-heading h1{line-height:1.45}
  .heading-actions{gap:7px}
  .heading-actions button{min-width:0;padding:10px 9px;font-size:.73rem}
  .scan-card-head{align-items:flex-start}
  .scan-title{min-width:0}
  .scan-title>div{min-width:0}
  .scan-title h2,.scan-title p{overflow-wrap:anywhere}
  .hotkey{display:none}
  .search-box{height:54px}
  .search-box input{min-width:0}
  .selected-product{align-items:flex-start}
  .selected-product>div{min-width:0}
  .selected-product h3{overflow-wrap:anywhere}
  .count-form{grid-template-columns:1fr;gap:10px}
  .count-submit{width:100%;height:48px}
  .form-row{grid-template-columns:1fr}
  .modal-card{padding:22px 17px;border-radius:18px}
  .modal-heading{padding-left:18px}
  .modal-actions{flex-wrap:wrap}
  .modal-actions>*{flex:1;min-width:130px}
  .duplicate-card .modal-actions>*{min-width:0}
  .mapping-guide{gap:14px}
  .mapping-example{min-width:0}
  .table-card{border-radius:12px}
  .table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
}
@media (max-width: 420px){
  .main-content{padding:16px 11px 30px}
  .topbar-brand .brand-mark.small{width:34px;height:34px;border-radius:10px}
  .topbar-brand strong{font-size:.7rem}
  .topbar-actions{gap:3px}
  .user-chip .avatar{width:32px;height:32px}
  .page-heading h1{font-size:1.16rem}
  .page-heading p{font-size:.76rem}
  .stats-grid{gap:7px}
  .stat-card{padding:9px 7px}
  .stat-icon{width:30px;height:30px;border-radius:10px;font-size:.95rem}
  .stat-card>div strong{font-size:.95rem}
  .scan-card{padding:12px;border-radius:15px}
  .scan-title h2{font-size:.86rem}
  .scan-title p{font-size:.67rem}
  .selected-product-box{padding:11px;border-radius:13px}
  .selected-product{gap:9px}
  .selected-product .product-thumb{width:47px;height:47px}
  .selected-product p{font-size:.66rem}
  .source-pill{font-size:.58rem}
  .price-review-hint{font-size:.68rem;line-height:1.8}
  .result-item{padding:10px 9px;gap:8px}
  .result-main strong{font-size:.76rem}
  .result-main small{font-size:.61rem}
  .modal{padding:7px}
  .modal-card{padding:20px 13px}
}
.price-review-hint{margin:0 0 12px;padding:9px 11px;border-radius:10px;background:#f7fbfc;border:1px solid #dcecee;color:#66808d;font-size:.72rem}
.price-review-hint.from-mahak{background:#fff8e8;border-color:#f0d99c;color:#966b16}
@media (min-width: 900px){
  .count-form{grid-template-columns:repeat(3,minmax(0,1fr))}
  .count-form .note-field{grid-column:span 2}
}

/* Keep controls usable with the mobile keyboard and long forms. */
.app-shell{grid-template-columns:242px minmax(0,1fr)}
.count-form label,.table-search input{min-width:0}
.modal-card,.scanner-card{max-height:calc(100dvh - 28px);overflow-y:auto;overscroll-behavior:contain}
.scanner-card{position:relative}
body.modal-open{overflow:hidden}
.sidebar-backdrop{display:none;position:fixed;inset:65px 0 0;background:#071a2a88;border:0;z-index:29}
@media(max-width:900px){.mobile-only{display:block}.topbar{height:65px}.sidebar.open~.sidebar-backdrop{display:block}.count-form{grid-template-columns:1fr}.recent-grid,.users-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){
 input,select,textarea,.search-box input,.table-search input{font-size:16px!important}
 button{touch-action:manipulation}
 .recent-grid,.users-grid{grid-template-columns:1fr}
 .section-head{align-items:center;gap:10px}
 .section-head>div{min-width:0}.section-head p{font-size:.7rem}.section-head button{flex-shrink:0}
 .table-search{min-width:0}.table-search input{width:100%;min-width:0}
 .records-table{min-width:0}.records-table thead{display:none}
 .records-table,.records-table tbody,.records-table tr,.records-table td{display:block;width:100%}
 .records-table tr{padding:12px;border-bottom:1px solid #dfe9ed}
 .records-table td{display:flex;justify-content:space-between;gap:12px;border:0;padding:5px 0;text-align:right;overflow-wrap:anywhere;min-width:0}
 .records-table td::before{content:attr(data-label);font-size:.7rem;color:#8292a2;flex:none}
 .records-table td:first-child{display:block;padding-bottom:9px}.records-table td:first-child::before{display:none}
 .records-table td[dir=ltr]{direction:rtl}.records-table td strong{white-space:normal}
 .toast{left:12px;right:12px;bottom:max(14px,env(safe-area-inset-bottom));max-width:calc(100% - 24px)}
 .login-screen{min-height:100dvh}.modal-card,.scanner-card{max-height:calc(100dvh - 14px)}
}

.new-barcode-field{display:grid;gap:6px}
.new-barcode-field>label{font-size:.8rem;color:#405268;font-weight:700}
.new-barcode-controls{display:flex;align-items:stretch;gap:8px}
.new-barcode-controls input{min-width:0;flex:1;text-align:left}
.new-barcode-controls button{flex-shrink:0;white-space:nowrap;font-size:.72rem}
.new-barcode-field>small{font-size:.7rem;color:#6f8e96;line-height:1.8}
.new-barcode-controls button:disabled{opacity:.65;cursor:wait}
@media(max-width:480px){.new-barcode-controls{flex-direction:column}.new-barcode-controls button{width:100%;min-height:44px}}
