:root{--red:#eb0a1e;--ink:#212121;--muted:#667085;--bg:#f7f8fa;--border:#e9ecef;--green:#16a34a}*{box-sizing:border-box}html,body,button,input,select,textarea,table,.tooltip,.popover,.dropdown-menu,.modal{font-family:"Google Sans",sans-serif!important}body{background:var(--bg);color:var(--ink)}.site-header{height:86px;background:#fff;border-bottom:1px solid var(--border);display:flex;align-items:center;padding:10px 24px;gap:44px;position:sticky;top:0;z-index:20}.brand{display:flex;align-items:center;color:var(--ink);text-decoration:none;min-width:225px;gap:10px}.brand img{width:52px;max-height:52px;object-fit:contain}.brand b{display:block;font-size:20px}.brand small{display:block;line-height:1.25;color:var(--muted)}nav{display:flex;gap:30px}nav a{color:#495057;text-decoration:none;font-weight:600}nav a:first-child{color:var(--red);border-bottom:2px solid var(--red);padding:29px 4px}.header-actions{margin-left:auto}.cart-link{position:relative;color:var(--ink);font-weight:600;text-decoration:none}.cart-link i{font-size:26px}.cart-link .badge{position:absolute;top:-10px;left:15px;background:var(--red)}.catalog-heading h1{font-size:30px;font-weight:700}.muted{color:var(--muted)}.category-pills .btn{border-radius:24px;border:1px solid var(--border);margin-right:8px}.category-pills .btn.active,.btn-toyota{background:var(--red);color:#fff;border-color:var(--red)}.product-card,.cart-panel,.panel,.kpi,.form-card{background:#fff;border:1px solid var(--border);border-radius:14px;box-shadow:0 3px 12px #1018280a}.product-card{height:100%;padding:16px}.product-img{height:150px;width:100%;object-fit:contain;margin-bottom:10px}.product-name{font-weight:700;min-height:48px}.product-code{font-size:13px;color:var(--muted)}.stock-ok{color:var(--green);font-weight:700;font-size:14px}.stock-low{color:var(--red);font-weight:700;font-size:14px}.qty-control{display:flex;border:1px solid var(--border);border-radius:8px;overflow:hidden;width:max-content}.qty-control button{background:#fff;border:0;padding:6px 12px}.qty-control input{width:36px;border:0;text-align:center}.btn-toyota{font-weight:700;border-radius:9px}.cart-panel{padding:20px;position:sticky;top:106px}.cart-row{display:grid;grid-template-columns:1fr auto;gap:8px;border-bottom:1px solid var(--border);padding:12px 0}.site-footer{padding:22px;text-align:center;color:var(--muted);background:#fff;border-top:1px solid var(--border)}.status{padding:4px 10px;border-radius:20px;font-size:12px;font-weight:700}.pending{background:#fff2df;color:#c56a00}.approved{background:#e7f8ed;color:#17803d}.rejected{background:#ffe7e7;color:#c12626}.received{background:#e6f2ff;color:#1464b0}.admin-shell{display:flex;min-height:100vh}.admin-side{width:270px;background:#fff;border-right:1px solid var(--border);padding:20px 16px;display:flex;flex-direction:column;position:fixed;height:100vh}.admin-nav{padding:13px 12px;color:#475467;text-decoration:none;border-radius:9px;margin:3px 0;font-size:16px}.admin-nav i{margin-right:14px}.admin-nav.active{background:#fff0f1;color:var(--red);font-weight:700}.admin-content{margin-left:270px;width:calc(100% - 270px)}.admin-top{height:72px;background:#fff;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 32px}.search{width:45%;border:1px solid var(--border);border-radius:9px;padding:8px 12px}.search input{border:0;outline:0;width:90%;margin-left:8px}.admin-page{padding:28px 32px}.kpi{padding:20px}.kpi .icon{background:#fff0f1;color:var(--red);padding:13px;border-radius:12px;font-size:22px}.table-responsive{background:#fff;border:1px solid var(--border);border-radius:12px}.table>:not(caption)>*>*{padding:14px}.offcanvas{width:min(520px,100vw)!important}.metric{font-size:30px;font-weight:700}.form-card{padding:24px}.login-wrap{min-height:100vh;display:grid;place-items:center}.login-card{width:min(430px,92vw);padding:34px}.empty{padding:35px;text-align:center;color:var(--muted)}@media(max-width:992px){.site-header{gap:12px}.site-header nav{display:none}.admin-side{width:72px;padding:15px 8px}.admin-side .brand span,.admin-nav{font-size:0}.admin-side .brand{min-width:0}.admin-side .brand img{width:48px}.admin-nav i{font-size:20px;margin:0}.admin-content{margin-left:72px;width:calc(100% - 72px)}.admin-page{padding:20px}.product-img{height:120px}}@media(max-width:576px){.site-header{padding:8px 14px;height:68px}.brand{min-width:0}.brand img{width:42px}.brand small,.brand b{font-size:12px}.cart-link{font-size:0}.cart-link i{font-size:24px}.admin-top{padding:0 16px}.search{width:70%}.admin-page{padding:15px}.admin-side{display:none}.admin-content{margin-left:0;width:100%}.product-img{height:110px}}

/* Refined product UI */
body{background:#f5f6f8;letter-spacing:-.01em}.site-header{height:76px;padding:8px 34px;gap:34px;box-shadow:0 1px 0 rgba(16,24,40,.04)}.brand img{width:47px}.brand b{font-size:18px}.brand small{font-size:12px}.site-header nav a{font-size:14px}.site-header nav a:first-child{padding:24px 4px}.catalog-heading{display:flex;align-items:end;justify-content:space-between;margin:2px 0 18px}.catalog-heading h1{font-size:27px;letter-spacing:-.03em;margin:0}.product-card{padding:14px;border-radius:16px;transition:transform .18s ease,box-shadow .18s ease;box-shadow:none}.product-card:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(16,24,40,.07)}.product-img{height:145px;background:#fafafa;border-radius:12px;padding:10px;object-fit:contain}.product-name{font-size:15px;min-height:43px;line-height:1.35}.product-code{font-size:12px}.qty-control{border-color:#e4e7ec}.qty-control button{color:#475467;font-weight:700}.btn-toyota{min-height:38px;font-size:13px}.category-pills{display:flex;gap:8px;flex-wrap:wrap}.category-pills .btn{margin:0;background:#fff;font-size:13px;padding:8px 15px}.category-pills .btn.active{box-shadow:0 4px 10px rgba(235,10,30,.14)}.cart-panel,.form-card{border-radius:16px;box-shadow:0 3px 14px rgba(16,24,40,.04)}.admin-side{width:262px;padding:22px 14px}.admin-content{margin-left:262px;width:calc(100% - 262px)}.admin-top{height:72px;padding:0 30px}.admin-page{padding:26px 30px}.admin-page h2{font-size:26px;letter-spacing:-.03em;margin-bottom:2px}.kpi{padding:18px;border-radius:14px}.metric{font-size:28px}.table-responsive{border-radius:14px;box-shadow:0 2px 10px rgba(16,24,40,.025)}.table thead th{font-size:12px;color:#667085;text-transform:uppercase;letter-spacing:.02em;background:#fbfcfd}.table>:not(caption)>*>*{padding:13px 15px}.req-product-thumb,.cart-product-thumb{width:58px;height:58px;object-fit:contain;background:#fafafa;border-radius:10px;padding:5px;margin-right:12px;vertical-align:middle}.cart-product-cell{display:flex;align-items:center;min-width:240px}.cart-product-cell b{font-size:14px}.status{font-size:11px;padding:5px 10px}.site-footer{font-size:12px;padding:18px}
.user-side{position:fixed;top:76px;left:0;bottom:0;width:220px;background:#fff;border-right:1px solid var(--border);padding:24px 14px;z-index:10}.user-side-label{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:#98a2b3;font-weight:700;padding:0 11px 10px}.user-nav{display:flex;align-items:center;gap:11px;padding:12px 11px;border-radius:9px;color:#475467;text-decoration:none;font-size:14px;font-weight:600;margin:4px 0}.user-nav i{font-size:18px}.user-nav span{margin-left:auto;background:#f2f4f7;border-radius:20px;padding:1px 7px;font-size:12px}.user-nav.active{background:#fff0f1;color:var(--red)}.user-main{margin-left:220px;min-height:calc(100vh - 76px)}.cart-count{background:var(--red);color:#fff;width:24px;height:24px;display:grid;place-items:center;border-radius:50%;font-weight:700;font-size:12px}.mini-cart-row{display:flex;gap:10px;padding:10px 0;border-bottom:1px solid #eef0f2}.mini-cart-row img{width:45px;height:45px;object-fit:contain;background:#fafafa;border-radius:8px;padding:3px}.mini-cart-row b,.mini-cart-row small{display:block;font-size:12px;line-height:1.35}.mini-cart-row small{color:#667085;margin-top:3px}.history-head{margin-bottom:18px}.history-head h1{font-size:28px;margin:0}.history-search{max-width:760px}.history-person{display:inline-flex;align-items:center;gap:8px;color:#176b3a;font-weight:600;background:#edfbf2;padding:8px 12px;border-radius:8px}.history-results{max-width:960px;margin-top:20px;background:#fff;border:1px solid var(--border);border-radius:14px;overflow:hidden}.history-row{display:grid;grid-template-columns:1.7fr 1fr auto 18px;align-items:center;gap:16px;padding:16px 18px;border-bottom:1px solid #eef0f2;color:#344054;text-decoration:none}.history-row:hover{background:#fafafa}.history-row b,.history-row small{display:block}.history-row small{font-size:12px;color:#98a2b3;margin-top:3px}.request-summary{display:flex;align-items:center;justify-content:space-between;max-width:980px}.request-summary h1{font-size:25px}.request-item{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid #eef0f2}.request-item small{display:block;color:#667085;margin-top:3px;font-size:12px}@media(max-width:992px){.user-side{width:72px;padding:18px 8px}.user-side-label,.user-nav{font-size:0}.user-nav i{font-size:20px}.user-nav span{display:none}.user-main{margin-left:72px}.history-row{grid-template-columns:1fr auto}.history-row>div:nth-child(2),.history-row i{display:none}}@media(max-width:576px){.user-side{display:none}.user-main{margin-left:0}.history-row{padding:14px}.request-summary{align-items:flex-start;gap:12px}.request-summary .text-end{text-align:left!important}.site-header{padding-left:16px}}
.site-header nav{display:none}.site-header{justify-content:space-between}.header-actions{margin-left:0}.user-main{width:calc(100% - 220px);max-width:calc(100% - 220px);overflow-x:hidden}.user-side{display:flex;flex-direction:column}.requester-box{margin-top:auto;padding:14px 10px 4px;border-top:1px solid #eaecf0}.requester-box .input-group .form-control{min-width:0}.side-employee-info{padding-top:10px;font-size:12px;line-height:1.35}.side-employee-info b,.side-employee-info small{display:block}.side-employee-info small{color:#667085;margin-top:2px}.catalog-heading p{display:none}.cart-panel{min-width:0;overflow:hidden}.mini-cart-row{min-width:0}.mini-cart-row div{min-width:0;flex:1}.mini-cart-row b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mini-cart-row small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.product-card{min-width:0}.product-name{overflow-wrap:anywhere}@media(max-width:992px){.user-main{width:calc(100% - 72px);max-width:calc(100% - 72px)}.requester-box{display:none}}@media(max-width:576px){.user-main{width:100%;max-width:100%}}
.header-title{position:absolute;left:50%;transform:translateX(-50%);text-align:center;line-height:1.25}.header-title b,.header-title span{display:block}.header-title b{font-size:14px}.header-title span{font-size:11px;color:#98a2b3;margin-top:2px}.requester-box{margin-top:0;border-top:0;border-bottom:1px solid #eaecf0;padding:0 10px 17px}.quick-request{border-top:1px solid #eaecf0;margin-top:12px;padding-top:12px}.quick-request label{font-size:12px;font-weight:700;margin-bottom:6px;display:block}.quick-request textarea{width:100%;resize:none;border:1px solid #d0d5dd;border-radius:8px;padding:8px 9px;font-size:12px;outline:none;margin-bottom:8px}.quick-request textarea:focus{border-color:#eb0a1e;box-shadow:0 0 0 3px rgba(235,10,30,.08)}.quick-request .btn{font-size:13px}@media(max-width:720px){.header-title{display:none}}
.site-header{display:grid;grid-template-columns:minmax(230px,1fr) auto minmax(230px,1fr);gap:20px;padding:9px 30px;background:linear-gradient(90deg,#fff 0%,#fff 72%,#fff8f8 100%)}
.brand{min-width:0;gap:12px;position:relative}.brand img{width:48px;height:48px;padding:5px;object-fit:contain;border:1px solid #f1e7e8;border-radius:12px;background:#fff;box-shadow:0 3px 10px rgba(16,24,40,.05)}
.brand span{line-height:1.15}.brand b{font-size:18px;letter-spacing:-.03em}.brand small{font-size:11px;line-height:1.35;margin-top:4px}.header-title{position:static;transform:none;justify-self:center;min-width:220px}.header-title b{font-size:13px;letter-spacing:.01em}.header-title span{font-size:11px;letter-spacing:.02em}.header-actions{justify-self:end;margin-left:0}.cart-link{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;padding:9px 12px;border:1px solid #f0e8e9;border-radius:10px;background:#fff}.cart-link i{font-size:22px}.cart-link .badge{top:-7px;left:22px}
.cart-panel{min-width:0;overflow:hidden}.mini-cart-row{align-items:center;min-width:0}.mini-cart-row img{flex:0 0 45px}.mini-cart-row div{min-width:0;flex:1;overflow:hidden}.mini-cart-row b,.mini-cart-row small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}.quick-request{display:none}
.popup-cart-list{max-height:250px;overflow:auto;border:1px solid #eaecf0;border-radius:12px;padding:0 13px;margin:0 0 18px;text-align:left}.popup-cart-row{display:flex;align-items:center;gap:11px;padding:10px 0;border-bottom:1px solid #eef0f2}.popup-cart-row:last-child{border-bottom:0}.popup-cart-row img{flex:0 0 45px;width:45px;height:45px;object-fit:contain;background:#fafafa;border-radius:9px;padding:4px}.popup-cart-row div{min-width:0;flex:1}.popup-cart-row b,.popup-cart-row small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.popup-cart-row b{font-size:13px}.popup-cart-row small{font-size:12px;color:#667085;margin-top:3px}.popup-purpose-label{display:block;text-align:left;font-weight:700;font-size:13px;color:#344054}.popup-purpose-label span{color:#d92d20}.swal2-textarea{width:100%!important;box-sizing:border-box!important;margin:8px 0 0!important;min-height:84px!important;font-size:14px!important}.swal2-popup{border-radius:18px!important}.swal2-title{font-size:21px!important}
@media(max-width:720px){.site-header{grid-template-columns:1fr auto;padding:8px 14px}.header-title{display:none}.brand img{width:42px;height:42px}.brand small{display:none}.cart-link{padding:8px}.cart-link{font-size:0}.cart-link i{font-size:23px}}
.brand{align-items:center}.brand span{display:flex;flex-direction:column;justify-content:center;gap:4px}.brand b{text-transform:uppercase;font-size:17px;line-height:1.05;white-space:nowrap}.brand small{text-transform:uppercase;font-size:9px;line-height:1.1;letter-spacing:.025em;white-space:nowrap;margin:0}.brand small br{display:none}.brand img{width:46px;height:46px;flex:0 0 46px;padding:4px}
.site-header{grid-template-columns:minmax(360px,1fr) auto minmax(230px,1fr)}.brand{gap:14px}.brand img{width:150px;height:42px;flex:0 0 150px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;object-fit:contain}.brand b{font-size:18px;line-height:1.1}.brand small{font-size:9px;line-height:1.15;letter-spacing:.02em}
@media(max-width:900px){.site-header{grid-template-columns:minmax(190px,1fr) auto}.header-title{display:none}.brand img{width:72px;height:34px;flex-basis:72px}.brand small{white-space:normal}.brand b{font-size:14px}}
.brand small br{display:inline;content:" "}
.brand img{width:128px;height:36px;flex-basis:128px}
.user-side .user-nav:has(.icon-cart){display:none}
.swal2-popup{width:min(780px,94vw)!important;padding:30px 34px!important}.swal2-title{font-size:24px!important;margin-bottom:18px!important}.popup-cart-list{max-height:340px;margin-bottom:22px;padding:0 18px;border-radius:14px}.popup-cart-row{gap:15px;padding:13px 0}.popup-cart-row img{width:58px;height:58px;flex-basis:58px;border-radius:11px}.popup-cart-row b{font-size:15px}.popup-cart-row small{font-size:13px;margin-top:5px}.popup-purpose-label{font-size:15px}.swal2-textarea{min-height:120px!important;padding:12px!important;font-size:15px!important}.swal2-actions{margin-top:22px!important}.swal2-confirm,.swal2-cancel{font-size:15px!important;padding:11px 22px!important}
@media(max-width:576px){.swal2-popup{padding:24px 18px!important}.popup-cart-list{padding:0 12px}.popup-cart-row img{width:48px;height:48px;flex-basis:48px}.swal2-title{font-size:20px!important}}
.brand{gap:0}.brand span{display:none}.site-header{grid-template-columns:minmax(180px,1fr) auto minmax(230px,1fr)}.header-title b{font-size:20px;line-height:1.2;letter-spacing:-.02em}.header-title span{font-size:14px;margin-top:4px}.admin-login-link{margin-top:auto;display:flex;align-items:center;justify-content:center;gap:9px;padding:11px 10px;border:1px solid #d0d5dd;border-radius:10px;color:#344054;text-decoration:none;font-size:13px;font-weight:700;background:#fff}.admin-login-link:hover{border-color:#eb0a1e;background:#fff5f5;color:#c91528}.admin-login-link i{font-size:17px;color:#eb0a1e}@media(max-width:720px){.site-header{grid-template-columns:1fr auto}.header-title{display:none}}
.page-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:20px}.page-heading h2{margin:0 0 4px}.page-heading p{margin:0}.request-tabs,.action-buttons,.table-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.request-tabs .btn{border-radius:9px;padding:8px 12px;font-size:13px}.action-buttons{justify-content:flex-end}.action-buttons .btn{display:inline-flex;align-items:center;gap:5px;padding:6px 10px;line-height:1.25;white-space:nowrap}.table-actions{justify-content:flex-end}.status{display:inline-flex;align-items:center;justify-content:center;min-height:28px;padding:5px 11px;border-radius:999px;line-height:1;font-size:12px;white-space:nowrap}.status.pending{background:#fff2df;color:#a85a00}.status.approved{background:#e7f8ed;color:#17803d}.status.received{background:#e6f2ff;color:#1464b0}.status.rejected{background:#ffe7e7;color:#c12626}.product-table-name{display:flex;align-items:center;gap:10px}.product-table-name img{width:42px;height:42px;object-fit:contain;border-radius:8px;background:#fafafa;padding:3px}.product-table-name span{display:flex;flex-direction:column}.product-table-name small{margin-top:2px}.btn-add-product{padding:10px 16px;box-shadow:0 6px 14px rgba(235,10,30,.17)}.image-upload-row{display:flex;align-items:center;gap:16px;padding:12px;border:1px dashed #cfd4dc;border-radius:12px;background:#fafbfc}.image-upload-row img{width:72px;height:72px;object-fit:contain;border-radius:10px;background:#fff}.image-upload-row>div{flex:1}.image-upload-row small{display:block;margin-top:6px}.req-popup{text-align:left}.req-popup-meta{display:grid;grid-template-columns:1fr 150px 1.25fr;gap:16px;margin-bottom:18px;padding:15px;border-radius:12px;background:#f8fafc}.req-popup-meta span,.req-popup-meta small{display:block;color:#667085;font-size:12px}.req-popup-meta b{display:block;margin:4px 0}.req-popup-meta p{margin:4px 0 0;white-space:pre-wrap}.req-popup table td small{display:block;color:#667085;margin-top:2px}.report-filter{padding:20px}.report-print-head{display:block;margin:28px 0 22px;padding:0 2px}.report-print-head p{margin:0;color:#667085;font-size:15px}.report-print-head b{color:#344054}.print-report .kpi{height:100%}
@media(max-width:900px){.page-heading{flex-direction:column}.request-tabs{width:100%}.req-popup-meta{grid-template-columns:1fr}.action-buttons .btn span{display:none}.action-buttons .btn{padding:7px 9px}.action-buttons .btn i{font-size:15px}}@media(max-width:576px){.page-heading{gap:12px}.page-heading .btn{width:100%;justify-content:center}.request-tabs .btn{flex:1}.image-upload-row{align-items:flex-start;flex-direction:column}.report-print-head{align-items:flex-start;flex-direction:column}.product-table-name img{display:none}}
@media print{body{background:#fff!important}.site-header,.admin-side,.admin-top,.site-footer,.no-print{display:none!important}.admin-content{margin:0!important;width:100%!important}.admin-page{padding:0!important}.print-report{display:block!important}.table-responsive{border:0!important}.kpi,.form-card{box-shadow:none!important;border:1px solid #ddd!important}.status{border:1px solid #bbb!important;background:#fff!important;color:#111!important}.table{font-size:11px}.table>:not(caption)>*>*{padding:7px!important}}
.product-table-name{display:table-cell!important}.product-table-name>div,.stock-product-cell{display:flex;align-items:center;gap:10px}.product-table-name img,.stock-product-cell img{flex:0 0 42px;width:42px;height:42px;object-fit:contain;border-radius:8px;background:#fafafa;padding:3px}.product-table-name span,.stock-product-cell span{display:flex;min-width:0;flex-direction:column}.product-table-name b,.stock-product-cell b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.stock-product-cell small{display:block;color:#667085;margin-top:2px}.stock-movement-type{font-size:11px;font-weight:700;background:#f2f4f7;border-radius:20px;padding:5px 8px}.stock-product-hint{min-height:20px;margin-top:7px;color:#667085;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.stock-adjust-card{position:sticky;top:96px}.stock-adjust-card .input-group-text{background:#fff;color:#667085}.stock-adjust-card textarea{min-height:88px;resize:vertical}
.req-popup-product{display:flex;align-items:center;gap:12px}.req-popup-product img{width:52px;height:52px;flex:0 0 52px;object-fit:contain;background:#fafafa;border-radius:10px;padding:4px}.req-popup-product span{min-width:0}.req-popup-product b,.req-popup-product small{display:block}.req-popup-product small{color:#667085;margin-top:3px}
.request-remove-heading,.request-remove-cell{width:76px;text-align:center}.request-item-remove{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:36px;padding:6px 10px;border:1px solid #fda4af;border-radius:8px;background:#fff;color:#d92d20;font-weight:700}.request-item-remove:hover{background:#fff1f2;border-color:#eb0a1e}.request-item-remove span{font-size:12px}.request-removed-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0;padding:10px 12px;border:1px solid #fecdd3;border-radius:9px;background:#fff1f2;color:#b42318;font-size:13px}.request-items-undo{border:0;background:transparent;color:#b42318;font-weight:700;text-decoration:underline;white-space:nowrap}
.dashboard-request,.user-dashboard-request{cursor:pointer}.dashboard-request:hover>td,.user-dashboard-request:hover>td{background:#fff7f7!important}.dashboard-request:focus-visible,.user-dashboard-request:focus-visible{outline:2px solid #eb0a1e;outline-offset:-2px}.employee-history-summary .kpi{height:100%;box-shadow:none}.dashboard-pagination{display:flex;justify-content:center;gap:7px}.request-rejection-note{display:flex;gap:12px;margin:0 0 14px;padding:11px 13px;border:1px solid #fecaca;border-radius:10px;background:#fff1f2;color:#b42318;text-align:left}.request-rejection-note span{white-space:pre-wrap}
.low-stock-row{display:flex!important;align-items:center;gap:10px}.low-stock-row img{width:42px;height:42px;flex:0 0 42px;object-fit:contain;border-radius:9px;background:#fafafa;padding:3px}.low-stock-row span{min-width:0;flex:1}.low-stock-row b{white-space:nowrap}
.product-card{display:grid;grid-template-columns:112px minmax(0,1fr);column-gap:14px;row-gap:7px;align-content:start}.product-card .product-img{grid-column:1;grid-row:1 / span 3;width:112px;height:112px;margin:0;padding:7px}.product-card .product-name,.product-card .product-code{grid-column:2;min-height:0;margin:0}.product-card>.d-flex.justify-content-between{grid-column:2;align-self:start;margin:0!important;padding-top:3px;min-height:26px}.product-card>.d-flex.gap-2{grid-column:1 / -1;margin-top:12px}.product-card .stock-ok,.product-card .stock-low{font-size:13px}@media(max-width:576px){.product-card{grid-template-columns:96px minmax(0,1fr);column-gap:12px}.product-card .product-img{width:96px;height:96px}.product-card>.d-flex.gap-2{margin-top:10px}}
.product-card>.d-flex.gap-2 .qty-control button{padding:6px 8px}.product-card>.d-flex.gap-2 .qty-control input{width:30px}.product-card>.d-flex.gap-2 .btn{min-width:0;padding:8px 9px;font-size:11px;white-space:nowrap}
.catalog-pagination{display:flex;justify-content:center;gap:7px;margin:26px 0 10px}.catalog-pagination .btn{min-width:38px;padding:7px 11px}.catalog-pagination .btn:disabled{opacity:.45;cursor:not-allowed}
.stock-product-results{max-height:210px;overflow:auto;border:1px solid #e4e7ec;border-radius:9px;background:#fff;margin:-9px 0 13px;box-shadow:0 8px 16px rgba(16,24,40,.07)}.stock-product-results:empty{display:none}.stock-product-option{display:block;width:100%;padding:10px 12px;text-align:left;background:#fff;border:0;border-bottom:1px solid #eef0f2;font-size:13px}.stock-product-option:last-child{border-bottom:0}.stock-product-option:hover{background:#fff4f4;color:#c12626}.stock-product-empty{padding:11px 12px;color:#667085;font-size:13px}
.product-image-picker{display:flex;align-items:center;gap:18px;padding:14px;border:1px dashed #98a2b3;border-radius:12px;background:#f8fafc}.product-image-preview{position:relative;display:grid;place-items:center;width:160px;height:112px;flex:0 0 160px;overflow:hidden;border:1px dashed #98a2b3;border-radius:9px;background:#eef6ff;color:#667085;font-size:13px}.product-image-preview img{width:100%;height:100%;object-fit:contain;padding:7px}.product-image-preview span{position:absolute;text-align:center}.product-image-preview span[hidden]{display:none}.product-image-controls{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.product-image-controls small{flex-basis:100%}.image-upload-row{align-items:center}.image-upload-row>div{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.image-upload-actions{display:flex;gap:9px;flex-wrap:wrap}.image-upload-actions .btn,.product-image-controls .btn{white-space:nowrap}
@media(max-width:576px){.product-image-picker{align-items:flex-start;flex-direction:column}.product-image-preview{width:100%;flex-basis:112px}.product-image-controls{width:100%}}
.admin-side>a.admin-nav.mt-auto{display:flex;align-items:center;justify-content:center;gap:8px;margin:20px 4px 2px!important;padding:11px 12px;border:1px solid #fecaca;border-radius:10px;background:#fff7f7;color:#c12626;font-size:13px;font-weight:700}.admin-side>a.admin-nav.mt-auto i{margin:0;font-size:17px}.admin-side>a.admin-nav.mt-auto:hover{background:#fee2e2;border-color:#fca5a5;color:#a61b1b}
@media(max-width:992px){.admin-side>a.admin-nav.mt-auto{font-size:0;padding:11px;justify-content:center}.admin-side>a.admin-nav.mt-auto i{font-size:19px}}
.product-image-preview{width:120px;height:120px;flex-basis:120px}.product-image-preview img{object-fit:cover;padding:0}@media(max-width:576px){.product-image-preview{width:120px;flex-basis:120px}}
.crop-stage{min-height:430px;background:#151a1f;border-radius:10px;display:grid;place-items:center;overflow:hidden}.crop-frame{position:relative;width:min(62vw,500px);aspect-ratio:1;overflow:hidden;border:2px solid #fff;box-shadow:0 0 0 9999px rgba(0,0,0,.24);cursor:grab;touch-action:none}.crop-frame:active{cursor:grabbing}.crop-frame img{position:absolute;max-width:none;user-select:none;pointer-events:none}.crop-tools{display:grid;grid-template-columns:52px minmax(140px,360px) 1fr;gap:14px;align-items:center;margin-top:16px}.crop-tools input{accent-color:#eb0a1e}@media(max-width:700px){.crop-stage{min-height:300px}.crop-frame{width:min(82vw,360px)}.crop-tools{grid-template-columns:1fr}.crop-tools small{line-height:1.35}}
.admin-search-empty td{padding:28px!important;text-align:center;color:#667085;font-weight:600;background:#fbfcfd}
.report-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:24px}.report-summary-grid .kpi{min-width:0}.report-date-input{font-variant-numeric:tabular-nums}.report-filter .input-group-text{background:#fff;color:#667085}@media(max-width:700px){.report-summary-grid{grid-template-columns:1fr}}
@media print{.report-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important;margin-bottom:16px!important}.report-summary-grid .kpi{padding:14px!important}.report-summary-grid .metric{font-size:24px!important}}
@media print{.report-print-head{margin-top:12px!important}}
.admin-side{top:76px;left:0;height:calc(100vh - 76px)}.admin-side>a.admin-nav.mt-auto{margin:auto 4px 2px!important}.admin-account{display:inline-flex;align-items:center;gap:8px;color:#344054}.admin-account i{font-size:18px;color:#667085}
.admin-notification-button{position:relative;display:inline-flex;align-items:center;gap:9px;min-height:44px;padding:8px 14px;border:1px solid #f0dfe1;border-radius:11px;background:#fff;color:#344054;font-size:14px;font-weight:700}.admin-notification-button:hover{border-color:#eb0a1e;background:#fff8f8;color:#c91528}.admin-notification-button:disabled{opacity:.65}.admin-notification-button>i{font-size:21px}.admin-notification-badge{position:absolute;top:-8px;left:27px;display:grid;place-items:center;min-width:22px;height:22px;padding:0 6px;border:2px solid #fff;border-radius:999px;background:#eb0a1e;color:#fff;font-size:11px;font-weight:700}
.admin-notification-popup{width:min(900px,94vw)!important}.pending-notification-list{max-height:440px;overflow:auto;margin:0 -4px 16px;text-align:left;border:1px solid #eaecf0;border-radius:14px}.pending-notification-row{display:grid;grid-template-columns:42px minmax(0,1fr) auto 18px;align-items:center;gap:13px;padding:14px 16px;border-bottom:1px solid #eef0f2;color:#344054;text-decoration:none}.pending-notification-row:last-child{border-bottom:0}.pending-notification-row:hover{background:#fff7f7}.pending-notification-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:11px;background:#fff0f1;color:#eb0a1e;font-size:18px}.pending-notification-info{min-width:0}.pending-notification-info b,.pending-notification-info strong,.pending-notification-info small,.pending-notification-total small{display:block}.pending-notification-info b{font-size:12px;color:#eb0a1e}.pending-notification-info strong{margin:2px 0;font-size:14px}.pending-notification-info small,.pending-notification-total small{color:#667085;font-size:12px}.pending-notification-total{text-align:right;font-weight:700;white-space:nowrap}.pending-notification-all{display:inline-flex;justify-content:center;width:100%;padding:10px;color:#eb0a1e;font-weight:700;text-decoration:none}.pending-notification-empty{display:flex;align-items:center;flex-direction:column;gap:5px;padding:34px;color:#667085}.pending-notification-empty i{font-size:36px;color:#16a34a}.pending-notification-empty b{color:#344054}@media(max-width:576px){.admin-notification-button span:last-child{display:none}.pending-notification-row{grid-template-columns:36px minmax(0,1fr) 16px}.pending-notification-total{display:none}}
.admin-overview-title{margin:0 0 22px;font-size:36px;font-weight:700;line-height:1.15;letter-spacing:-.035em}.admin-top{justify-content:flex-start}.table td:has(>.status){text-align:center}.req-popup-meta>div:nth-child(2){text-align:center}.req-popup-meta>div:nth-child(2) .status{margin-inline:auto}.employee-dashboard-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:20px}.employee-dashboard-head h1{margin:0;font-size:32px;font-weight:700}.employee-dashboard-head p{margin:4px 0 0}.employee-dashboard-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:22px}.employee-dashboard-grid .kpi{height:100%}.employee-dashboard-grid .metric{font-size:32px}.employee-dashboard-recent .table th:nth-child(5),.employee-dashboard-recent .table td:nth-child(5){text-align:center}.employee-dashboard-empty{max-width:720px;margin:36px auto;padding:46px 30px;text-align:center}.employee-dashboard-empty i{display:block;margin-bottom:12px;color:#eb0a1e;font-size:44px}@media(max-width:900px){.employee-dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:576px){.admin-overview-title{font-size:30px}.employee-dashboard-head{align-items:flex-start;flex-direction:column}.employee-dashboard-grid{grid-template-columns:1fr}}
.user-side{width:300px;padding:26px 20px}.user-main{margin-left:300px;width:calc(100% - 300px);max-width:calc(100% - 300px)}.user-side-label{font-size:12px;padding:0 12px 11px}.user-nav{gap:13px;padding:14px 13px;font-size:16px;margin:5px 0}.user-nav i{font-size:20px}.requester-box{padding:0 10px 20px}.requester-box .form-control,.requester-box .btn{min-height:42px;font-size:15px}.side-employee-info{padding-top:11px;font-size:14px;line-height:1.45}.side-employee-info b{font-size:15px}.admin-login-link{padding:13px 12px;font-size:14px}.admin-login-link i{font-size:18px}.employee-dashboard-chart{height:330px}.employee-dashboard-chart canvas{max-height:280px}.employee-dashboard-low{height:100%}.employee-dashboard-low .low-stock-row:last-child{border-bottom:0}@media(max-width:992px){.user-side{width:84px;padding:20px 9px}.user-main{margin-left:84px;width:calc(100% - 84px);max-width:calc(100% - 84px)}.user-nav{justify-content:center;padding:14px 10px}.user-nav i{font-size:22px}}@media(max-width:576px){.user-main{margin-left:0;width:100%;max-width:100%}.employee-dashboard-chart{height:auto}}
.request-qty-cell{text-align:center!important;min-width:190px}.request-qty-editor{display:inline-flex;align-items:center;overflow:hidden;border:1px solid #d0d5dd;border-radius:9px;background:#fff}.request-qty-editor button{width:38px;height:38px;border:0;background:#f8fafc;color:#344054;font-size:19px;font-weight:700}.request-qty-editor button:hover{background:#fff0f1;color:#eb0a1e}.request-qty-editor input{width:64px;height:38px;border:0;border-right:1px solid #eaecf0;border-left:1px solid #eaecf0;text-align:center;font-weight:700;outline:0}.request-qty-editor input::-webkit-inner-spin-button{appearance:none}.request-qty-limit{display:block;margin-top:5px;color:#667085;font-size:11px}.request-edit-note{margin:-3px 0 14px;padding:10px 12px;border:1px solid #b7e4c7;border-radius:9px;background:#f0fff4;color:#176b3a;font-size:13px;text-align:left}.request-edit-note i{margin-right:5px}

/* UX hardening: navigation, accessibility and scalable data views. */
:root{--focus:#2563eb;--mobile-nav-height:70px;--drawer-width:min(340px,88vw)}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[role="button"]:focus-visible{outline:3px solid var(--focus)!important;outline-offset:2px!important;box-shadow:0 0 0 4px rgba(37,99,235,.16)!important}
button,.btn,.form-control,.form-select,.input-group-text{min-height:44px}
.qty-control button{min-width:44px;min-height:44px;padding:7px 12px}.qty-control input{width:46px;min-height:44px}
.table-actions .btn{min-width:44px;min-height:44px;display:inline-grid;place-items:center;padding:8px}.request-tabs .btn,.category-pills .btn{min-height:44px}
.product-card{display:flex;flex-direction:column;gap:14px;min-height:100%}.product-card-main{display:flex;align-items:flex-start;gap:14px;min-width:0}.product-card .product-img{width:116px;height:116px;flex:0 0 116px;margin:0;padding:8px}.product-card-copy{display:flex;flex:1;min-width:0;flex-direction:column;align-self:stretch}.product-card .product-name{min-height:0;margin:3px 0 8px;line-height:1.4}.product-stock-row{margin-top:auto;padding-top:12px}.product-card-actions{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:10px;margin-top:auto}.product-card-actions .btn{white-space:nowrap}
.catalog-search .input-group-text{background:#fff;border-right:0}.catalog-search .form-control{border-left:0;padding-left:0}.catalog-search:focus-within{border-radius:8px;box-shadow:0 0 0 4px rgba(37,99,235,.14)}.catalog-search:focus-within .input-group-text,.catalog-search:focus-within .form-control{border-color:var(--focus);box-shadow:none!important;outline:0!important}
.employee-dashboard-primary{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}.admin-menu-toggle{display:none;place-items:center;flex:0 0 44px;width:44px;border:1px solid #d0d5dd;border-radius:9px;background:#fff;color:#344054;font-size:22px}
.nav-backdrop{position:fixed;inset:0;z-index:1040;width:100%;height:100%;border:0;background:rgba(16,24,40,.46);opacity:0;transition:opacity .2s ease}.nav-backdrop.show{opacity:1}.nav-backdrop[hidden]{display:none!important}.nav-drawer-open{overflow:hidden}.mobile-user-nav{display:none}
.admin-table-pagination{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:12px 0 22px;padding:0 2px}.admin-table-page-summary{color:#667085;font-size:13px}.admin-table-page-buttons{display:flex;align-items:center;gap:6px}.admin-table-page-buttons .btn{min-width:44px;padding:7px 10px}
.system-help{border:0;background:transparent;text-align:left;width:100%}.system-help-list{display:grid;gap:14px;margin:0;padding:0;text-align:left;list-style:none;counter-reset:help}.system-help-list li{display:grid;grid-template-columns:28px 1fr;column-gap:10px;counter-increment:help}.system-help-list li:before{content:counter(help);display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#fff0f1;color:#c91528;font-weight:700}.system-help-list b,.system-help-list span{grid-column:2}.system-help-list span{color:#667085;margin-top:2px;font-size:14px}.system-help-popup{width:min(600px,94vw)!important}
.admin-search-empty td{text-align:center!important;color:#667085;padding:32px!important}.dashboard-chart-panel{min-height:330px}
@media(max-width:992px){.product-card .product-img{width:104px;height:104px;flex-basis:104px}.admin-side .system-help{justify-content:center;font-size:0}.admin-side .system-help i{font-size:20px;margin:0}}
@media(max-width:576px){.site-header{z-index:1030}.user-main{padding-bottom:calc(var(--mobile-nav-height) + 22px)!important}.mobile-user-nav{position:fixed;right:0;bottom:0;left:0;z-index:1030;display:grid;grid-template-columns:repeat(4,1fr);height:var(--mobile-nav-height);padding:7px max(8px,env(safe-area-inset-right)) max(7px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));border-top:1px solid #e4e7ec;background:#fff;box-shadow:0 -6px 20px rgba(16,24,40,.08)}.mobile-user-nav a,.mobile-user-nav button{position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:2px;min-width:0;min-height:54px;border:0;border-radius:10px;background:transparent;color:#667085;text-decoration:none;font-size:11px;font-weight:600}.mobile-user-nav i{font-size:21px}.mobile-user-nav .active{background:#fff0f1;color:#c91528}.mobile-user-nav em{position:absolute;top:0;right:calc(50% - 25px);display:grid;place-items:center;min-width:19px;height:19px;padding:0 5px;border:2px solid #fff;border-radius:999px;background:var(--red);color:#fff;font-size:10px;font-style:normal}.user-side{display:flex!important;top:76px;bottom:0;z-index:1050;width:var(--drawer-width)!important;padding:22px 18px;transform:translateX(-105%);transition:transform .22s cubic-bezier(.2,.8,.2,1);box-shadow:18px 0 40px rgba(16,24,40,.16)}.user-side.mobile-open{transform:translateX(0)}.user-side .requester-box{display:block!important;padding:0 4px 20px}.user-side .user-side-label{display:block!important;font-size:12px!important}.user-side .user-nav{justify-content:flex-start!important;padding:13px!important;font-size:16px!important}.user-side .user-nav i{font-size:20px!important}.user-side .user-nav span{display:inline-flex!important}.user-side .system-help{font-size:16px!important}.admin-menu-toggle{display:grid}.admin-top{gap:10px}.admin-top .search{flex:1;width:auto;min-width:0}.admin-top .search input{width:calc(100% - 34px)}.admin-side{display:flex!important;top:76px;bottom:0;z-index:1050;width:var(--drawer-width)!important;height:auto;padding:20px 16px;transform:translateX(-105%);transition:transform .22s cubic-bezier(.2,.8,.2,1);box-shadow:18px 0 40px rgba(16,24,40,.16)}.admin-side.mobile-open{transform:translateX(0)}.admin-side .admin-nav{display:flex;align-items:center;justify-content:flex-start!important;gap:12px;padding:13px 12px!important;font-size:16px!important}.admin-side .admin-nav i{margin:0!important;font-size:20px!important}.admin-side>a.admin-nav.mt-auto{font-size:14px!important}.admin-table-pagination{align-items:flex-start;flex-direction:column}.admin-table-page-buttons{width:100%;overflow-x:auto;padding-bottom:4px}.product-card .product-img{width:96px;height:96px;flex-basis:96px}.product-card-main{gap:12px}.product-card-actions{grid-template-columns:auto minmax(0,1fr)}.product-card-actions .btn{padding-inline:10px;font-size:12px}.employee-dashboard-primary{width:100%;justify-content:center}.dashboard-chart-panel{min-height:300px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}

/* TATC icon system: 24px grid, 1.8px rounded stroke, currentColor. */
.tatc-icon{display:inline-block;width:1.25em;height:1.25em;flex:0 0 auto;overflow:visible;color:inherit;vertical-align:-.2em;pointer-events:none}
.tatc-icon.icon{width:1.5rem;height:1.5rem;vertical-align:middle}
.icon-xs{width:1rem;height:1rem}.icon-sm{width:1.125rem;height:1.125rem}.icon-md{width:1.5rem;height:1.5rem}.icon-lg{width:2rem;height:2rem}.icon-xl{width:4.375rem;height:4.375rem}
button>.tatc-icon,a>.tatc-icon{margin-inline-end:.4em}button[aria-label]>.tatc-icon:only-child,a[aria-label]>.tatc-icon:only-child{margin-inline-end:0}
.qty-control button>.tatc-icon,.request-qty-editor button>.tatc-icon{width:1rem;height:1rem;margin:0}
.admin-nav>.tatc-icon,.user-nav>.tatc-icon,.mobile-user-nav .tatc-icon{width:1.35rem;height:1.35rem}
.pending-notification-icon>.tatc-icon{margin:0}
@media(prefers-color-scheme:dark){.tatc-icon{color:inherit}}
.kpi .tatc-icon.icon{box-sizing:content-box;width:1.5rem;height:1.5rem;padding:12px;border-radius:12px;background:#fff0f1;color:var(--red)}
.cart-link>.tatc-icon{width:1.5rem;height:1.5rem}.admin-notification-button>.tatc-icon{width:1.35rem;height:1.35rem}
.admin-nav>.tatc-icon,.user-nav>.tatc-icon,.mobile-user-nav .tatc-icon{margin-inline-end:0}
.admin-login-link>.tatc-icon{width:1.15rem;height:1.15rem;margin:0;color:var(--red)}
.request-edit-note>.tatc-icon{margin-inline-end:.35rem}.pending-notification-empty>.tatc-icon{color:#16a34a}
.search>.tatc-icon{width:1.2rem;height:1.2rem;color:#667085}.admin-menu-toggle>.tatc-icon{width:1.5rem;height:1.5rem}

/* Unified button alignment and interaction colour. */
button,.btn{align-items:center;justify-content:center;text-align:center;vertical-align:middle;line-height:1.25}
button:not(.nav-backdrop):not(.admin-menu-toggle),.btn{display:inline-flex;gap:.45rem}
button>.tatc-icon,.btn>.tatc-icon{margin-inline:0}
.system-help{justify-content:flex-start}
button:not(:disabled):not(.nav-backdrop):hover,.btn:not(.disabled):not([aria-disabled="true"]):hover{border-color:#111!important;background-color:#111!important;color:#fff!important}
button:not(:disabled):not(.nav-backdrop):hover .tatc-icon,.btn:not(.disabled):not([aria-disabled="true"]):hover .tatc-icon{color:#fff!important}
.btn-close:hover{background-color:#111!important;filter:invert(1) grayscale(1) brightness(2)}

/* Keep sidebar icons and labels on one shared alignment grid. */
.admin-nav,.user-nav{display:flex;align-items:center;justify-content:flex-start;gap:14px;line-height:1.35;text-align:left}
.admin-nav>.tatc-icon,.user-nav>.tatc-icon{width:22px;height:22px;flex:0 0 22px;margin:0}
.admin-nav.system-help,.user-nav.system-help{justify-content:flex-start}
@media(min-width:577px) and (max-width:992px){.admin-nav,.user-nav{justify-content:center;gap:0;text-align:center}.admin-nav>.tatc-icon,.user-nav>.tatc-icon{width:22px;height:22px;flex-basis:22px}}

/* Mobile admin layout must override the later desktop shell dimensions. */
@media(max-width:576px){
  .admin-shell{display:block;width:100%;min-width:0}
  .admin-content{width:100%!important;max-width:100%!important;min-width:0;margin-left:0!important}
  .admin-top{width:100%;min-height:72px;height:auto;padding:12px 14px!important}
  .admin-top .search{width:auto;max-width:none;min-width:0;flex:1}
  .admin-top .search input{width:calc(100% - 34px);min-width:0;margin-left:6px}
  .admin-page{width:100%;min-width:0;padding:18px 14px!important;overflow-x:hidden}
  .admin-page>.row{--bs-gutter-x:16px}
  .admin-page .kpi,.admin-page .form-card{min-width:0}
  .admin-overview-title{font-size:30px;line-height:1.2}
  .employee-dashboard-grid{grid-template-columns:minmax(0,1fr)}
  .table-responsive{width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
  .mobile-card-list,.responsive-card-list{overflow:visible;border:0;background:transparent;box-shadow:none}
  .mobile-card-table,.mobile-card-table tbody,.responsive-card-table,.responsive-card-table tbody{display:block;width:100%}
  .mobile-card-table thead,.responsive-card-table thead{display:none}
  .mobile-card-table tbody,.responsive-card-table tbody{padding:0}
  .mobile-card-table tr,.responsive-card-table tr{display:block;width:100%;margin:0 0 12px;padding:13px 15px;border:1px solid var(--border);border-radius:14px;background:#fff;box-shadow:0 3px 12px rgba(16,24,40,.05)}
  .mobile-card-table tr:last-child,.responsive-card-table tr:last-child{margin-bottom:0}
  .mobile-card-table td,.responsive-card-table td{display:grid!important;grid-template-columns:96px minmax(0,1fr);align-items:start;gap:12px;width:100%;padding:6px 0!important;border:0!important;text-align:left!important;overflow-wrap:anywhere}
  .mobile-card-table td:before,.responsive-card-table td:before{content:attr(data-label);color:var(--muted);font-size:12px;font-weight:600;line-height:1.4}
  .mobile-card-table td>b,.responsive-card-table td>b{font-size:15px;line-height:1.4}
  .mobile-card-table .status,.responsive-card-table .status{justify-self:start}
  .mobile-card-table .action-buttons,.mobile-card-table .table-actions,.responsive-card-table .action-buttons,.responsive-card-table .table-actions{justify-content:flex-start;gap:7px}
  .mobile-card-table .dashboard-request,.responsive-card-table .dashboard-request{cursor:pointer}
  .mobile-card-table .dashboard-request:hover,.responsive-card-table .dashboard-request:hover{border-color:#f5b8be;background:#fffafa}
  .mobile-card-table .dashboard-request:hover>td,.responsive-card-table .dashboard-request:hover>td{background:transparent!important}
  .responsive-card-table .admin-search-empty{padding:0}
  .responsive-card-table .admin-search-empty td{display:block!important;padding:28px 14px!important;text-align:center!important}
  .responsive-card-table .admin-search-empty td:before,.responsive-card-table td[colspan]:before{display:none}
  .responsive-card-table td[colspan]{display:block!important;width:100%;padding:26px 18px!important;text-align:center!important;font-size:15px;line-height:1.65;white-space:normal;word-break:normal;overflow-wrap:break-word}
}

/* Keep the product form compact and its actions visible at every viewport height. */
#productModal .modal-dialog{height:calc(100dvh - 32px);margin-top:16px;margin-bottom:16px}
#productModal .modal-content{max-height:100%;overflow:hidden}
#productModal #productForm{display:flex;min-height:0;max-height:100%;flex:1 1 auto;flex-direction:column;overflow:hidden}
#productModal .modal-header,#productModal .modal-footer{position:relative;z-index:2;flex:0 0 auto;background:#fff}
#productModal .modal-body{min-height:0;overflow-y:auto;overscroll-behavior:contain}
#productModal .modal-footer{box-shadow:0 -6px 18px rgba(16,24,40,.08)}
@media(max-height:800px) and (min-width:577px){
  #productModal .modal-body{padding-top:14px;padding-bottom:14px}
  #productModal .modal-body .row{--bs-gutter-y:12px}
  #productModal .product-image-picker{padding:10px}
  #productModal .product-image-preview{width:92px;height:92px;flex-basis:92px}
}
@media(max-width:576px){
  #productModal .modal-dialog{height:calc(100dvh - 16px);margin:8px}
  #productModal .modal-header,#productModal .modal-footer{padding:12px 14px}
  #productModal .modal-footer{display:grid;grid-template-columns:1fr 1fr;gap:10px}
  #productModal .modal-footer>*{width:100%;margin:0}
}

/* Stock workspace: adjustment first, full-width movement history below. */
.stock-adjust-wide{position:static;top:auto;padding:20px 22px}
.stock-adjust-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px;padding-bottom:14px;border-bottom:1px solid #eaecf0}
.stock-adjust-wide .form-label{margin-bottom:7px;font-size:13px;font-weight:700;color:#344054}
.stock-adjust-wide .stock-search-field{position:relative;z-index:4}
.stock-adjust-wide .stock-product-results{position:absolute;top:100%;right:calc(var(--bs-gutter-x)*.5);left:calc(var(--bs-gutter-x)*.5);z-index:20;max-height:230px;margin:5px 0 0}
.stock-adjust-wide .stock-product-hint{height:20px;min-height:20px;margin-top:5px}
.stock-adjust-wide textarea{height:44px;min-height:44px;resize:none}
.stock-adjust-submit{display:flex;align-items:flex-end;padding-top:30px}
.stock-adjust-submit .btn{min-height:44px;white-space:nowrap}
.stock-history-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 2px 12px}
.stock-history-table{width:100%}
.stock-history-table th:first-child{width:150px}
.stock-history-table th:nth-child(3){width:112px}
.stock-history-table th:nth-child(4),.stock-history-table th:nth-child(5),.stock-history-table th:nth-child(6){width:80px;text-align:center}
.stock-history-table td:nth-child(4),.stock-history-table td:nth-child(5),.stock-history-table td:nth-child(6){text-align:center;font-variant-numeric:tabular-nums}
.stock-history-table td:last-child{min-width:190px}
.stock-history-table tbody td{border-bottom-width:1px;vertical-align:middle}
.stock-history-table tbody tr:last-child td{border-bottom:0}
.stock-date-cell{width:150px;white-space:nowrap;font-variant-numeric:tabular-nums}
.stock-date-cell span,.stock-date-cell time{display:block;line-height:1.45}
.stock-date-cell time{color:#475467}
.stock-history-table .stock-product-cell{display:table-cell!important;min-width:270px}
.stock-product-info{display:flex;align-items:center;gap:10px;min-width:0}
.stock-product-info img{flex:0 0 42px;width:42px;height:42px;object-fit:contain;border-radius:8px;background:#fafafa;padding:3px}
.stock-product-info span{display:flex;min-width:0;flex-direction:column}
.stock-product-info b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.stock-product-info small{display:block;margin-top:2px;color:#667085}
@media(max-width:1399px){
  .stock-adjust-submit{padding-top:0}
  .stock-adjust-submit .btn{width:auto!important;min-width:220px}
}
@media(max-width:576px){
  .stock-adjust-wide{padding:18px 16px}
  .stock-adjust-heading{margin-bottom:15px;padding-bottom:12px}
  .stock-adjust-wide .stock-product-results{right:8px;left:8px}
  .stock-adjust-submit .btn{width:100%!important;min-width:0}
  .stock-history-heading{align-items:flex-start;flex-direction:column;gap:3px}
}

/* Editable requisition review inside the catalog popup. */
.popup-cart-summary{display:flex;align-items:center;justify-content:space-between;margin:0 2px 9px;color:#667085;font-size:13px;text-align:left}
.popup-cart-summary strong{color:#212121;font-size:14px}
.popup-cart-list .popup-cart-row{display:grid;grid-template-columns:58px minmax(0,1fr) auto;align-items:center;gap:14px;padding:13px 0}
.popup-cart-list .popup-cart-product{min-width:0;flex:initial}
.popup-cart-list .popup-cart-product b,.popup-cart-list .popup-cart-product small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.popup-cart-list .popup-cart-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;min-width:0;flex:initial}
.popup-cart-qty-control{display:flex;align-items:center;overflow:hidden;border:1px solid #d0d5dd;border-radius:9px;background:#fff}
.popup-cart-qty-control button{display:grid!important;place-items:center;width:38px;min-width:38px;height:38px;min-height:38px;padding:0;border:0;background:#fff;color:#344054}
.popup-cart-qty-control button:disabled{cursor:not-allowed;color:#c7cdd4;background:#f8fafc}
.popup-cart-qty-control input{width:46px;height:38px;border:0;border-right:1px solid #eaecf0;border-left:1px solid #eaecf0;background:#fff;text-align:center;font-weight:700;color:#212121;outline:0}
.popup-cart-qty-control .tatc-icon{width:16px;height:16px;margin:0}
.popup-cart-remove{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-width:64px;min-height:38px;padding:7px 10px;border:1px solid #fecaca;border-radius:9px;background:#fff;color:#c12626;font-size:13px;font-weight:700}
.popup-cart-remove .tatc-icon{width:16px;height:16px;margin:0}
.popup-cart-empty{padding:28px 14px;text-align:center;color:#667085}
@media(max-width:640px){
  .popup-cart-list .popup-cart-row{grid-template-columns:48px minmax(0,1fr);gap:10px;padding:12px 0}
  .popup-cart-list .popup-cart-row img{grid-row:1}
  .popup-cart-list .popup-cart-actions{grid-column:1/-1;justify-content:space-between;padding-left:58px}
  .popup-cart-remove span{display:none}
  .popup-cart-remove{min-width:40px;width:40px;padding:0}
}
