:root{--ink:#1c2434;--muted:#708099;--line:#e2e8f0;--canvas:#f4f6fa;--nav:#111827;--blue:#3c50e0;--blue-soft:#eef0ff;--red:#d34053;--green:#168453;--amber:#bf7b17;font-family:Inter,"Segoe UI",Arial,sans-serif;color:var(--ink);background:var(--canvas)}*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-size:14px}body{min-width:320px;background:var(--canvas)}button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin:0}h1{font-size:27px;line-height:1.25;letter-spacing:-.045em;font-weight:750}h2{font-size:15px;letter-spacing:-.01em;font-weight:750}small,.muted{color:var(--muted)}.app-shell{min-height:100vh;display:flex}.sidebar{width:252px;min-height:100vh;display:flex;flex-direction:column;flex-shrink:0;padding:24px 13px 14px;color:#c9d2e3;background:var(--nav)}.brand{height:42px;display:flex;align-items:center;gap:11px;margin:0 10px 34px;color:#fff;font-size:12px;font-weight:750;letter-spacing:.07em}.brand b{font-weight:450;color:#b3bfd4}.brand-mark{width:50px;height:50px;display:grid;place-items:center;border-radius:15px;color:#fff;background:linear-gradient(140deg,#6578f0,#3c50e0);font-size:22px;font-weight:800;box-shadow:0 9px 22px #3c50e044}.brand-mark.small{width:31px;height:31px;border-radius:9px;font-size:16px}.sidebar-caption{margin:0 10px 9px;color:#7f8aa1;font-size:9px;font-weight:800;letter-spacing:.14em}.nav-list{display:grid;gap:3px}.nav-item{min-height:39px;display:flex;align-items:center;gap:11px;padding:9px 12px;border-radius:7px;color:#b7c1d4;font-size:12px;transition:background .15s,color .15s}.nav-item:hover,.nav-item.active{color:#fff;background:#263247}.nav-item.active{box-shadow:inset 2px 0 #7384ff}.nav-icon{width:17px;color:#a9b5d1;text-align:center;font-size:15px}.nav-item.active .nav-icon{color:#9eabff}.nav-count{margin-left:auto;min-width:20px;padding:2px 5px;border-radius:9px;color:#e5e9ff;background:#4755a8;text-align:center;font-size:10px}.sidebar-footer{margin-top:auto;display:flex;align-items:center;gap:10px;padding:14px 8px 4px;border-top:1px solid #2a3549}.avatar,.top-avatar{width:31px;height:31px;display:grid;place-items:center;flex:none;border-radius:50%;color:#4052d6;background:#e9edff;font-weight:800}.profile{min-width:0;display:grid;gap:3px;flex:1}.profile b{overflow:hidden;color:#f7f9fd;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.profile small{overflow:hidden;color:#8d9ab0;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.logout{border:0;color:#9ba8be;background:transparent;font-size:19px}.main-content{min-width:0;flex:1}.topbar{height:56px;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(22px,3.5vw,50px);border-bottom:1px solid #e9edf3;background:#fff}.crumb{color:#8995a9;font-size:11px}.crumb span{margin:0 9px;color:#c1c9d5}.crumb b{color:#344157;font-weight:650}.topbar-right{display:flex;align-items:center;gap:14px}.today{color:#78869a;font-size:11px}.top-avatar{width:29px;height:29px;font-size:12px}.page{width:min(1420px,100%);margin:0 auto;padding:34px clamp(22px,3.5vw,50px) 54px}.page-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:22px}.page-heading h1{margin:4px 0 5px}.eyebrow{color:#7380c4;font-size:9px;font-weight:800;letter-spacing:.12em}.page-heading>.primary-button{margin-top:5px}.primary-button,.secondary-button,.danger-button{min-height:36px;display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid transparent;border-radius:6px;padding:8px 13px;font-size:11px;font-weight:750;white-space:nowrap}.primary-button{color:white;background:var(--blue);box-shadow:0 4px 10px #3c50e01c}.primary-button:hover{background:#3244c7}.secondary-button{color:#3e4c65;border-color:#dce2eb;background:#fff}.secondary-button:hover{background:#f8f9fc}.danger-button{color:#fff;background:#cc3d50}.full{width:100%}.page-card,.metric-card{border:1px solid var(--line);border-radius:8px;background:#fff;box-shadow:0 1px 3px #1c24340a}.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:15px}.metric-card{min-height:95px;display:flex;align-items:center;gap:13px;padding:17px}.metric-card strong{display:block;margin-bottom:4px;font-size:23px;line-height:1.1;letter-spacing:-.045em}.metric-card span:not(.metric-icon){color:var(--muted);font-size:10px}.metric-icon{width:37px;height:37px;display:grid;place-items:center;flex:none;border-radius:9px;font-size:15px;font-weight:900}.metric-icon.blue{color:#4658da;background:#e9edff}.metric-icon.purple{color:#9655cc;background:#f3eaff}.metric-icon.green{color:#198452;background:#e7f7ee}.metric-icon.orange{color:#d77e18;background:#fff1df}.metric-icon.red{color:#cf4350;background:#fdecef}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(280px,1fr);gap:15px;margin-bottom:15px}.page-card{padding:18px}.card-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:15px}.card-heading p{margin-top:4px;color:var(--muted);font-size:10px}.text-link,.table-action{border:0;padding:0;color:#5365db;background:transparent;font-size:10px;font-weight:750}.text-link:hover,.table-action:hover{text-decoration:underline}.bar-list{display:grid;gap:14px}.bar-row{display:grid;grid-template-columns:minmax(90px,145px) 1fr 45px;align-items:center;gap:10px;color:#536078;font-size:10px}.bar-row>b{text-align:right;color:#35425a}.bar{height:7px;overflow:hidden;border-radius:20px;background:#eef1f6}.bar i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#7685f0,#3c50e0)}.notice-card{padding-bottom:8px}.notice-row{min-height:41px;display:flex;align-items:center;gap:9px;border-top:1px solid #edf0f4;color:#55637a;font-size:10px}.notice-row b{margin-left:auto;color:#273249;font-size:12px}.notice-dot{width:7px;height:7px;border-radius:50%}.red-dot{background:#db5263}.orange-dot{background:#e59a39}.blue-dot{background:#6878e8}.purple-dot{background:#a265d5}.table-card{padding:0;overflow:hidden}.table-scroll{overflow:auto}.table-card table{width:100%;border-collapse:collapse;white-space:nowrap}th,td{padding:11px 14px;border-top:1px solid #edf0f4;color:#536078;text-align:left;font-size:10px;vertical-align:middle}th{color:#8491a6;background:#f9fafc;font-size:9px;font-weight:800;letter-spacing:.045em}td b,td strong{color:#28344b;font-weight:700}td small{display:block;margin-top:4px;color:#8793a6;font-size:9px;white-space:normal;max-width:240px}.empty-state{padding:32px;color:#8b97a9;text-align:center}.badge{display:inline-flex;align-items:center;justify-content:center;min-height:21px;border-radius:12px;padding:3px 8px;font-size:9px;font-weight:750;white-space:nowrap}.badge.green{color:#187a48;background:#e7f7ee}.badge.gray{color:#68758b;background:#edf0f5}.badge.blue{color:#4357ce;background:#ebeeff}.badge.violet{color:#7650a4;background:#f1eafb}.badge.amber{color:#a76a12;background:#fff4df}.badge.red{color:#b93247;background:#fdecef}.list-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.search-wrap{max-width:290px;min-width:180px;position:relative;flex:1}.search-wrap span{position:absolute;top:8px;left:11px;color:#8a96aa;font-size:18px}.search-wrap input{padding-left:34px}.code-pill{display:inline-block;border-radius:4px;padding:4px 6px;color:#5161c6;background:#f0f1ff;font:10px ui-monospace,Consolas,monospace}.actions-cell form{display:inline}.filter-bar{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin:0 0 14px;padding:12px;border:1px solid var(--line);border-radius:7px;background:#fff}.filter-bar label{min-width:140px}.filter-bar .wide-label{min-width:230px;flex:1}.filter-bar>button,.filter-bar>a{min-height:34px}.report-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:17px}.report-tile{min-height:130px;display:flex;flex-direction:column;align-items:flex-start;gap:9px;color:#344157}.report-tile b{font-size:12px}.report-tile small{font-size:10px;line-height:1.5}.report-metrics{margin-top:16px}.table-card .card-heading{padding:18px 18px 0}.groups-layout{display:grid;grid-template-columns:minmax(220px,.62fr) minmax(0,2fr);gap:14px;align-items:start}.roles-list h2{margin-bottom:12px}.role-link{display:grid;gap:4px;padding:10px;border-radius:5px;color:#546178}.role-link:hover,.role-link.active{color:white;background:#3c50e0}.role-link b{font-size:11px}.role-link small{font-size:9px}.role-link.active small{color:#d2d8ff}.permissions-card{padding:18px}.permission-module{padding:12px 0;border-top:1px solid #edf0f4}.permission-module h3{margin-bottom:9px;font-size:11px}.permission-checks{display:flex;flex-wrap:wrap;gap:7px 17px}.check-label{display:flex!important;align-items:center;gap:6px;color:#5b687e;font-size:10px!important}.check-label input{width:14px!important;height:14px!important;margin:0}.alert{margin:0 0 15px;padding:11px 14px;border:1px solid;border-radius:6px;font-size:11px}.alert.ok{border-color:#c7ead5;color:#187a48;background:#edfaf2}.alert.error{border-color:#f2c5cc;color:#ad3042;background:#fff1f3}.modal-backdrop[hidden]{display:none}.modal-backdrop{position:fixed;z-index:20;inset:0;display:grid;place-items:center;overflow:auto;padding:20px;background:#0b1220a8;backdrop-filter:blur(2px)}.modal-card{width:min(540px,100%);max-height:calc(100vh - 38px);display:grid;gap:14px;overflow:auto;padding:19px;border:1px solid #e7ebf2;border-radius:9px;background:#fff;box-shadow:0 22px 65px #0a102044}.wide-modal{width:min(760px,100%)}.modal-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px}.modal-head h2{font-size:16px}.modal-head p{margin-top:4px;color:var(--muted);font-size:10px;line-height:1.5}.icon-button{width:28px;height:28px;display:grid;place-items:center;border:0;border-radius:5px;color:#67748a;background:#f0f2f6;font-size:20px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.form-grid .span-2{grid-column:1/-1}.form-grid label,.modal-card>label,.filter-bar label{display:grid;gap:5px;color:#48566d;font-size:10px;font-weight:700}input,textarea,select{width:100%;min-height:34px;border:1px solid #dce2eb;border-radius:5px;padding:7px 9px;outline:none;color:#27344a;background:#fff;font-size:11px}input:focus,textarea:focus,select:focus{border-color:#7382eb;box-shadow:0 0 0 3px #6677e61a}textarea{min-height:70px;resize:vertical}.modal-actions{display:flex;justify-content:flex-end;gap:8px;padding-top:3px}.modal-open{overflow:hidden}.request-line,.review-line,.count-line{display:grid;grid-template-columns:1.2fr .65fr 1fr;align-items:end;gap:10px;margin-bottom:9px;padding:10px;border:1px solid #edf0f5;border-radius:6px;background:#fbfcfe}.review-line{grid-template-columns:1fr 190px;align-items:center}.review-line small,.count-line small{display:block;margin-top:4px;color:var(--muted);font-size:9px}.count-list{display:grid;gap:7px;max-height:50vh;overflow:auto}.count-line{grid-template-columns:1fr 135px 1.2fr;margin:0}.audit-json{max-width:440px;max-height:180px;overflow:auto;white-space:pre-wrap;color:#526078;font-size:9px}.app-footer{display:flex;justify-content:space-between;padding:14px clamp(22px,3.5vw,50px);border-top:1px solid #e7ebf2;color:#8a96a9;font-size:9px}.login-page{min-height:100vh;display:grid;place-items:center;padding:20px;background:radial-gradient(ellipse at top left,#e8ebff 0,transparent 42%),var(--canvas)}.login-card{width:min(400px,100%);padding:31px;border:1px solid #e2e8f0;border-radius:12px;background:#fff;box-shadow:0 20px 60px #17233a12}.login-card .brand-mark{margin-bottom:24px}.login-card h1{margin:5px 0 6px;font-size:25px}.login-card>.muted{margin-bottom:21px;font-size:11px}.login-card .form-stack{display:grid;gap:13px}.form-stack label{display:grid;gap:6px;color:#455269;font-size:10px;font-weight:700}.login-foot{margin-top:18px;padding-top:13px;border-top:1px solid #edf0f4;color:#929db0;text-align:center;font-size:9px}
@media(max-width:1050px){.sidebar{width:220px}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.report-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-grid{grid-template-columns:1.3fr 1fr}}
@media(max-width:960px){.sidebar{width:58px;padding:17px 7px}.brand{justify-content:center;margin:0 0 24px}.brand>span:not(.brand-mark),.sidebar-caption,.nav-item>span:not(.nav-icon),.nav-count,.profile,.logout{display:none}.nav-item{justify-content:center;padding:10px 5px}.nav-icon{font-size:17px}.sidebar-footer{justify-content:center;padding-inline:0}.main-content{min-width:0}.topbar{height:50px;padding:0 15px}.crumb{font-size:10px}.page{padding:22px 14px 40px}.page-heading h1{font-size:22px}.dashboard-grid{grid-template-columns:1fr}.report-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.groups-layout{grid-template-columns:1fr}.roles-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}.roles-list h2{grid-column:1/-1}.filter-bar{align-items:stretch}.filter-bar label{flex:1}.app-footer{padding-inline:15px}.count-line{grid-template-columns:1fr 120px}.count-line label:last-child{grid-column:1/-1}.request-line{grid-template-columns:1fr 1fr}.request-line label:last-child{grid-column:1/-1}}
@media(max-width:480px){.metric-grid{gap:8px}.metric-card{min-height:83px;gap:8px;padding:11px}.metric-icon{width:30px;height:30px}.metric-card strong{font-size:18px}.metric-card span:not(.metric-icon){font-size:9px}.report-grid{gap:8px}.page-card{padding:13px}.page-heading{margin-bottom:16px}.list-toolbar{align-items:stretch}.search-wrap{min-width:0}.form-grid{grid-template-columns:1fr}.form-grid .span-2{grid-column:auto}.modal-backdrop{padding:9px}.modal-card{padding:15px}.review-line{grid-template-columns:1fr}.app-footer span{display:none}}
.arrival-card{margin-top:15px}.arrival-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:11px 0;border-top:1px solid #edf0f4}.arrival-row b,.arrival-row small{display:block}.arrival-row b{font-size:11px}.arrival-row small{margin-top:4px;font-size:9px}
.amber-dot{background:#e59a39}.violet-dot{background:#9963cf}.notification-summary{display:flex;align-items:center;gap:12px;margin-bottom:14px;padding:15px;border:1px solid var(--line);border-radius:8px;background:#fff}.notification-summary b,.notification-summary small{display:block}.notification-summary b{font-size:12px}.notification-summary small{margin-top:4px;font-size:10px}.notification-list{display:grid;gap:8px}.notification-card{display:flex;align-items:center;gap:12px;padding:13px 15px}.notification-card:hover{border-color:#cbd2f3;background:#fdfdff}.notification-copy{min-width:0;display:grid;gap:4px;flex:1}.notification-copy b{font-size:11px}.notification-copy small{color:var(--muted);font-size:10px;overflow-wrap:anywhere}

/* Refined warehouse workspace */
:root{--canvas:#f4f6fb;--ink:#182338;--muted:#758198;--line:#e4e9f1;--brand:#4b61e8;--brand-dark:#354bd0;--surface:#fff;--shadow-card:0 12px 34px rgba(22,36,66,.055)}
*{font-family:Inter,"Noto Sans Armenian",system-ui,-apple-system,"Segoe UI",sans-serif}
body{color:var(--ink);font-size:14px;-webkit-font-smoothing:antialiased}
.app-shell{min-height:100vh;background:var(--canvas)}
.sidebar{width:264px;padding:20px 14px;background:linear-gradient(180deg,#111a30 0%,#17233d 100%);box-shadow:8px 0 30px rgba(18,29,52,.08)}
.brand{min-height:52px;gap:12px;margin:0 4px 28px;padding:0 8px;color:#f7f9ff;font-size:13px;letter-spacing:.04em}
.brand-mark{width:42px;height:42px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.25);border-radius:14px;color:#fff;background:linear-gradient(145deg,#6b7cff,#465ce9);box-shadow:0 6px 18px rgba(70,92,233,.32);font-size:20px;font-weight:800}
.brand-mark.small{width:36px;height:36px;border-radius:12px;font-size:18px}
.sidebar-caption{margin:0 10px 12px;color:#7e8aa5;font-size:10px;letter-spacing:.12em}
.nav-list{gap:5px}
.nav-item{min-height:46px;gap:12px;padding:10px 12px;border:1px solid transparent;border-radius:11px;color:#c0c9db;font-size:13px;font-weight:560;transition:background .18s ease,color .18s ease,transform .18s ease}
.nav-item:hover{transform:translateX(2px);color:white;background:#ffffff0d}
.nav-item.active{border-color:#8794ff35;color:#fff;background:linear-gradient(100deg,#5065e94a,#5065e91c);box-shadow:inset 3px 0 #8793ff}
.nav-icon{width:22px;color:#aab6d3;font-size:17px}
.nav-item.active .nav-icon{color:#aeb8ff}
.nav-count{min-width:23px;height:23px;display:grid;place-items:center;margin-left:auto;border:1px solid #ffffff16;border-radius:999px;color:#eef1ff;background:#ffffff12;font-size:11px;font-weight:700}
.sidebar-footer{gap:11px;padding:15px 8px 7px;border-top-color:#ffffff17}
.avatar,.top-avatar{width:38px;height:38px;border:1px solid #dfe5ff;border-radius:13px;color:#4056d4;background:#f0f2ff;font-size:14px;font-weight:750}
.profile b{color:#eef2ff;font-size:12px}.profile small{margin-top:4px;color:#95a2bc;font-size:10px}
.main-content{min-width:0}
.topbar{position:sticky;top:0;z-index:12;height:72px;padding:0 clamp(22px,3.5vw,52px);border-bottom:1px solid #e9edf4;background:rgba(255,255,255,.92);backdrop-filter:blur(16px)}
.crumb{color:#7d889d;font-size:12px}.crumb b{color:#202b40;font-weight:700}
.topbar-right{gap:13px}.today{color:#8994a8;font-size:12px;font-variant-numeric:tabular-nums}
.page{width:min(100%,1700px);margin:0 auto;padding:34px clamp(22px,3.5vw,52px) 54px}
.page-heading{margin-bottom:26px}.page-heading .eyebrow{margin-bottom:9px;color:#7b89a3;font-size:10px;font-weight:800;letter-spacing:.13em}.page-heading h1{color:#18243a;font-size:clamp(26px,2.1vw,34px);font-weight:760;letter-spacing:-.035em;line-height:1.16}.page-heading .muted{margin-top:8px;color:#7c879b;font-size:13px;line-height:1.6}
.metric-grid{gap:15px;margin-bottom:18px}.metric-card,.page-card{border:1px solid #e8ecf3;border-radius:16px;background:var(--surface);box-shadow:var(--shadow-card)}
.metric-card{min-height:124px;gap:16px;padding:21px}.metric-icon{width:45px;height:45px;border-radius:14px;font-size:20px}.metric-card strong{font-size:25px;font-weight:760;letter-spacing:-.03em}.metric-card span:not(.metric-icon){margin-top:5px;color:#77839a;font-size:12px}
.dashboard-grid{gap:16px;margin-bottom:16px}.page-card{padding:22px}.card-heading{align-items:center;margin-bottom:19px}.card-heading h2,.roles-list h2{color:#202c42;font-size:16px;font-weight:730;letter-spacing:-.015em}.card-heading p{margin-top:5px;color:#8290a5;font-size:12px;line-height:1.5}
.table-card{padding:0;border-radius:15px}.table-card .card-heading{padding:22px 22px 0}.table-scroll{scrollbar-color:#cbd3e3 transparent;scrollbar-width:thin}.table-card table{min-width:760px}.table-card tbody tr{transition:background .15s ease}.table-card tbody tr:hover{background:#f8f9fd}th,td{padding:14px 17px;border-top:1px solid #edf0f5;font-size:12px}th{color:#77849b;background:#f8f9fc;font-size:10px;letter-spacing:.055em;text-transform:uppercase}td{color:#58667e}td b,td strong{color:#26334a;font-size:12px}td small{max-width:310px;color:#8a96a9;font-size:11px;line-height:1.5}
.badge{min-height:25px;padding:4px 10px;border-radius:999px;font-size:10px}
.list-toolbar{margin-bottom:15px}.search-wrap{max-width:360px}.search-wrap span{top:10px;left:13px}.search-wrap input{padding-left:40px}
input,textarea,select{min-height:46px;border:1px solid #d8dfeb;border-radius:10px;padding:10px 13px;color:#26344b;background:#fff;font-size:13px;transition:border-color .16s ease,box-shadow .16s ease,background .16s ease}
input::placeholder,textarea::placeholder{color:#a3adbd}
input:hover,textarea:hover,select:hover{border-color:#b9c3d6}
input:focus,textarea:focus,select:focus{border-color:#6879ef;box-shadow:0 0 0 4px rgba(87,105,232,.12);outline:0}
select{appearance:none;padding-right:42px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23758398' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center}
textarea{min-height:104px;line-height:1.6}
.filter-bar{gap:12px;margin-bottom:16px;padding:17px;border:1px solid #e6eaf2;border-radius:14px;background:#fff;box-shadow:var(--shadow-card)}
.filter-bar label,.form-grid label,.modal-card>label,.form-stack label{gap:7px;color:#4e5c73;font-size:12px;font-weight:650}
.primary-button,.secondary-button,.danger-button,.erp-button{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:10px 16px;border:1px solid transparent;border-radius:10px;font-size:12px;font-weight:700;letter-spacing:.005em;transition:transform .15s ease,box-shadow .15s ease,background .15s ease,border-color .15s ease}
.primary-button{color:#fff;background:linear-gradient(135deg,#596ded,#4559df);box-shadow:0 5px 14px rgba(74,95,222,.18)}
.primary-button:hover{transform:translateY(-1px);background:linear-gradient(135deg,#4d63e7,#384fcf);box-shadow:0 9px 20px rgba(74,95,222,.24)}
.secondary-button{border-color:#dfe5ef;color:#4b5a73;background:#fff}.secondary-button:hover{border-color:#bbc6db;color:#33435e;background:#f8f9fc}
.danger-button{border-color:#f2d3d7;color:#b94252;background:#fff7f8}.danger-button:hover{border-color:#e9aeb6;background:#fff0f2}
.create-button svg,.primary-button svg,.secondary-button svg,.danger-button svg,.table-action svg,.danger-link svg,.icon-button svg{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.table-action,.danger-link,.text-link{min-height:34px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:7px 10px;border:1px solid #e3e8f1;border-radius:8px;color:#52617a;background:#fff;font-size:11px;font-weight:680;text-decoration:none;transition:border-color .15s ease,color .15s ease,background .15s ease}
.table-action:hover{border-color:#c7d0e2;color:#34435e;background:#f8f9fc;text-decoration:none}.danger-link{border-color:#f4dfe2;color:#c24958;background:#fffafa}.danger-link:hover{border-color:#edc0c6;color:#a73544;background:#fff1f2}
.text-link{min-height:30px;padding:5px 8px;border-color:transparent;color:#4d61dc;background:transparent}.text-link:hover{border-color:#e1e6ff;background:#f5f6ff;text-decoration:none}
.icon-button{width:38px;height:38px;border:1px solid #e6eaf1;border-radius:10px;color:#6c7890;background:#f8f9fc;font-size:20px;transition:background .15s ease,border-color .15s ease,color .15s ease}.icon-button:hover{border-color:#d3d9e6;color:#34425c;background:#eef1f7}
.modal-backdrop{z-index:40;padding:28px;background:rgba(18,27,46,.54);backdrop-filter:blur(7px)}
.modal-card{width:min(600px,100%);max-height:min(88vh,940px);gap:19px;padding:25px;border:1px solid rgba(255,255,255,.68);border-radius:18px;box-shadow:0 28px 90px rgba(12,22,44,.24);animation:modal-in .18s ease-out}.wide-modal{width:min(850px,100%)}
@keyframes modal-in{from{opacity:0;transform:translateY(8px) scale(.99)}to{opacity:1;transform:translateY(0) scale(1)}}
.modal-head{align-items:center;padding-bottom:15px;border-bottom:1px solid #edf0f5}.modal-head h2{color:#202d43;font-size:20px;font-weight:750;letter-spacing:-.02em}.modal-head p{margin-top:6px;color:#7c899f;font-size:12px;line-height:1.55}.form-grid{gap:15px}.form-grid label{min-width:0}.modal-actions{gap:10px;padding-top:9px}.request-line,.review-line,.count-line{gap:13px;margin-bottom:11px;padding:15px;border:1px solid #e8ecf3;border-radius:12px;background:#fafbfe}.check-label{display:flex!important;align-items:center;gap:9px!important;color:#52617a!important;font-size:12px!important}.check-label input{width:17px!important;height:17px!important;min-height:17px!important;accent-color:#4d61e4}
.alert{margin-bottom:18px;padding:13px 16px;border-radius:11px;font-size:13px}.app-footer{padding:18px clamp(22px,3.5vw,52px);color:#8994a7;font-size:11px}
.login-card{border-radius:20px;box-shadow:0 26px 80px rgba(30,43,72,.12)}.login-card h1{letter-spacing:-.03em}.login-card .form-stack{gap:16px}.login-foot{font-size:11px}

.topbar-right{position:relative}.notification-center{position:relative;display:flex;align-items:center}
.header-icon-button{position:relative;width:42px;height:42px;display:grid;place-items:center;border:1px solid #e4e8f0;border-radius:13px;color:#58667d;background:#fff;transition:transform .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease}
.header-icon-button:hover{transform:translateY(-1px);border-color:#cbd3e4;color:#3e54d6;box-shadow:0 5px 14px rgba(30,45,78,.08)}
.header-icon-button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.header-icon-button.is-live:after{position:absolute;right:5px;bottom:5px;width:7px;height:7px;border:1.5px solid #fff;border-radius:50%;background:#36b37e;content:""}
.notification-trigger.has-new{animation:notification-pop .35s ease-out}
@keyframes notification-pop{50%{transform:scale(1.12)}}
.header-badge{position:absolute;top:-5px;right:-5px;min-width:20px;height:20px;display:grid;place-items:center;padding:0 5px;border:2px solid #fff;border-radius:999px;color:#fff;background:#e84d62;font-size:9px;font-weight:800;line-height:1}
.sound-toggle .sound-on{display:none}.sound-toggle.is-enabled{border-color:#dbe2ff;color:#4b60dd;background:#f5f6ff}.sound-toggle.is-enabled .sound-off{display:none}.sound-toggle.is-enabled .sound-on{display:block}
.notification-popover{position:absolute;top:calc(100% + 13px);right:-58px;z-index:60;width:min(430px,calc(100vw - 24px));max-height:min(74vh,650px);overflow:hidden;border:1px solid #e5e9f1;border-radius:17px;background:#fff;box-shadow:0 24px 75px rgba(19,31,56,.18);animation:popover-in .16s ease-out}
@keyframes popover-in{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}
.notification-popover[hidden]{display:none}.notification-popover-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 19px;border-bottom:1px solid #edf0f5;background:linear-gradient(180deg,#fff,#fbfcff)}
.notification-popover-head strong,.notification-popover-head small{display:block}.notification-popover-head strong{color:#202c42;font-size:15px;font-weight:760}.notification-popover-head small{margin-top:4px;color:#8792a5;font-size:11px}.notification-popover-head a{color:#5266dd;font-size:11px;font-weight:700;text-decoration:none}.notification-popover-head a:hover{color:#344bcf}
.notification-items{max-height:min(58vh,510px);overflow:auto;padding:7px}.notification-item{display:flex;align-items:center;gap:12px;min-height:69px;padding:11px 10px;border-radius:11px;color:inherit;text-decoration:none;transition:background .14s ease}.notification-item:hover{background:#f6f7fc}.notification-tone{width:9px;height:9px;flex:none;border-radius:50%;background:#6577e8;box-shadow:0 0 0 4px #eef0ff}.notification-tone.red{background:#dd586a;box-shadow:0 0 0 4px #fff0f1}.notification-tone.amber{background:#e3a43d;box-shadow:0 0 0 4px #fff7e9}.notification-tone.blue{background:#5b73e8;box-shadow:0 0 0 4px #eef1ff}.notification-tone.violet{background:#9664cd;box-shadow:0 0 0 4px #f5effb}
.notification-item-copy{min-width:0;display:grid;gap:4px;flex:1}.notification-item-copy strong{overflow:hidden;color:#2b374c;font-size:12px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.notification-item-copy small{overflow:hidden;color:#7c899e;font-size:11px;line-height:1.45;text-overflow:ellipsis;white-space:nowrap}.notification-chevron{color:#a4aec0;font-size:22px;line-height:1}
.notification-empty{min-height:180px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:#8490a4;text-align:center}.notification-empty-icon{width:44px;height:44px;display:grid;place-items:center;border-radius:15px;color:#2e9b67;background:#eaf8f0;font-size:22px;font-weight:700}.notification-empty strong{color:#354159;font-size:13px}.notification-empty small{font-size:11px}.notification-live-status{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.live-notification-toast{position:fixed;top:86px;right:24px;z-index:90;width:min(410px,calc(100vw - 32px));display:flex;align-items:center;gap:12px;padding:15px 16px;border:1px solid #e2e8f3;border-radius:15px;background:#fff;box-shadow:0 18px 55px rgba(19,31,56,.18);animation:toast-in .22s ease-out}
@keyframes toast-in{from{opacity:0;transform:translateX(14px)}to{opacity:1;transform:translateX(0)}}
.toast-live-dot{width:10px;height:10px;flex:none;border-radius:50%;background:#5368e7;box-shadow:0 0 0 5px #edf0ff}.toast-live-copy{min-width:0;display:grid;gap:4px;flex:1}.toast-live-copy strong{overflow:hidden;color:#263249;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.toast-live-copy small{overflow:hidden;color:#77849a;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.live-notification-toast button{width:28px;height:28px;border:0;border-radius:8px;color:#7b879a;background:#f4f6fa;font-size:19px;cursor:pointer}
@media(max-width:960px){.sidebar{width:64px}.topbar{height:64px;padding:0 14px}.topbar-right{gap:8px}.today{display:none}.header-icon-button{width:39px;height:39px}.notification-popover{right:-86px;width:min(410px,calc(100vw - 82px))}.page{padding-top:26px}.page-card{padding:18px}.table-card{padding:0}}
@media(max-width:480px){.crumb{max-width:48vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.top-avatar{width:34px;height:34px}.notification-popover{right:-52px;width:calc(100vw - 22px)}.live-notification-toast{top:73px;right:11px}.modal-card{gap:15px;padding:18px;border-radius:15px}.modal-head h2{font-size:18px}.primary-button,.secondary-button,.danger-button{min-height:42px;padding:9px 12px;font-size:11px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
@media(max-width:960px){
  html,body{overflow-x:hidden}
  .sidebar{position:fixed;top:0;bottom:0;left:0;z-index:42;width:min(292px,84vw);padding:20px 14px;transform:translateX(-105%);transition:transform .24s cubic-bezier(.2,.75,.25,1);box-shadow:16px 0 48px rgba(12,22,42,.2)}
  body.sidebar-open{overflow:hidden}
  body.sidebar-open .sidebar{transform:translateX(0)}
  .brand{justify-content:flex-start;margin:0 4px 28px;padding:0 8px}
  .brand>span:not(.brand-mark),.sidebar-caption,.nav-item>span:not(.nav-icon),.nav-count,.profile,.logout{display:initial}
  .sidebar-caption{display:block}
  .nav-item{justify-content:flex-start;padding:10px 12px}
  .nav-item>span:not(.nav-icon){display:block}
  .sidebar-footer{justify-content:flex-start;padding-inline:8px}
  .profile{display:grid}
  .sidebar-scrim{position:fixed;inset:0;z-index:41;border:0;background:rgba(13,22,40,.42);opacity:0;visibility:hidden;transition:opacity .2s ease,visibility .2s ease}
  body.sidebar-open .sidebar-scrim{opacity:1;visibility:visible}
  .mobile-nav-toggle{width:40px;height:40px;display:grid;place-items:center;flex:0 0 40px;border:1px solid #e5eaf2;border-radius:12px;color:#34435d;background:#fff;box-shadow:0 4px 12px rgba(25,39,69,.06);cursor:pointer}
  .mobile-nav-toggle svg{width:19px;height:19px}
  .topbar{gap:11px}
  .crumb{min-width:0;flex:1}
  .metric-grid{grid-template-columns:1fr}
  .metric-card{min-height:94px}
  .metric-card strong{overflow-wrap:anywhere;font-size:25px}
  .metric-card span:not(.metric-icon){font-size:12px}
  .dashboard-grid{grid-template-columns:1fr}
}
@media(max-width:480px){
  .topbar{gap:7px;padding-inline:9px}
  .mobile-nav-toggle{width:36px;height:36px;flex-basis:36px;border-radius:10px}
  .crumb{max-width:none;font-size:11px}
  .topbar-right{gap:5px}
  .header-icon-button{width:35px;height:35px}
  .top-avatar{width:31px;height:31px}
  .metric-grid{grid-template-columns:1fr}
  .metric-card{padding:15px}
  .metric-card strong{font-size:24px}
  .dashboard-grid{grid-template-columns:1fr}
  .report-grid{grid-template-columns:1fr}
  .page-heading h1{overflow-wrap:anywhere}
  .filter-bar{flex-wrap:wrap}
  .filter-bar label{min-width:min(100%,145px)}
}

/* Consistent finishing pass for every workspace page */
:root{--canvas:#f3f6fc;--ink:#18243a;--muted:#718099;--line:#e3e9f2;--brand:#4c61e8;--brand-dark:#354bd2;--shadow-card:0 14px 38px rgba(25,39,69,.065)}
html{scroll-behavior:smooth;scroll-padding-top:88px}
body{font-size:14px;line-height:1.55}
::selection{color:#18243a;background:#dce3ff}
::-webkit-scrollbar{width:10px;height:10px}::-webkit-scrollbar-thumb{border:3px solid transparent;border-radius:99px;background:#c6cfdf;background-clip:padding-box}::-webkit-scrollbar-thumb:hover{background:#aebbd1;background-clip:padding-box}
.sidebar{width:272px;padding:22px 15px}
.brand{margin-bottom:30px;font-size:14px}
.sidebar-caption{font-size:10px;font-weight:750}
.nav-list{gap:6px}
.nav-item{min-height:47px;font-size:13px;letter-spacing:.005em}
.nav-icon{width:21px;height:21px;display:grid;place-items:center;flex:0 0 21px}
.nav-icon svg{width:18px;height:18px;overflow:visible}
.main-content{min-width:0}
.topbar{height:74px}
.crumb{font-size:13px}.today{font-size:12px}
.page{padding-top:38px;padding-bottom:58px}
.page-heading{margin-bottom:28px}
.page-heading h1{font-size:clamp(27px,2.25vw,36px);line-height:1.2}
.page-heading .muted{font-size:14px}
.eyebrow,.page-heading .eyebrow{font-size:10px}
.metric-grid{gap:16px;margin-bottom:20px}
.metric-card{min-height:128px;padding:22px;transition:transform .2s ease,box-shadow .2s ease}
.metric-card:hover{transform:translateY(-3px);box-shadow:0 18px 44px rgba(25,39,69,.1)}
.metric-card strong{font-size:27px}.metric-card span:not(.metric-icon){font-size:12px}
.dashboard-grid{gap:18px;margin-bottom:18px}
.page-card,.table-card{border-radius:17px}
.page-card{padding:24px}
.table-card{padding:0}
.card-heading{margin-bottom:20px}
.card-heading h2,.roles-list h2{font-size:17px}
.card-heading p{font-size:13px}
.table-card .card-heading{padding:23px 24px 0}
.table-card table{min-width:790px}
th,td{padding:15px 17px;font-size:13px}
th{font-size:11px;letter-spacing:.065em}
td b,td strong{font-size:13px}
td small{font-size:12px}
.badge{min-height:27px;padding:5px 11px;font-size:11px;font-weight:700}
.page-heading .primary-button{margin-top:4px}
.list-toolbar{gap:14px;margin-bottom:17px}
.search-wrap{max-width:410px}
.search-wrap input{min-height:46px}
.filter-bar{gap:13px;margin-bottom:18px;padding:15px;border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,.78);box-shadow:0 7px 22px rgba(25,39,69,.035)}
.filter-bar label,.form-grid label,.modal-card>label,.form-stack label{gap:7px;color:#4b5870;font-size:12px;font-weight:680}
.filter-bar input,.filter-bar select{min-width:145px}
input,textarea,select{min-height:47px;border-color:#d7dfeb;border-radius:11px;padding:11px 14px;font-size:13px}
input::placeholder,textarea::placeholder{color:#a1aabd}
input:hover,textarea:hover,select:hover{border-color:#bfc9dc}
input:focus,textarea:focus,select:focus{border-color:#6678ed;box-shadow:0 0 0 4px rgba(85,105,231,.12)}
input[type=checkbox]{width:18px;height:18px;min-height:18px;accent-color:#4c61e8}
.check-label{gap:9px;font-size:12px}
.primary-button,.secondary-button,.danger-button,.erp-button{min-height:43px;padding:10px 16px;border-radius:11px;font-size:13px;font-weight:700;transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
.primary-button:hover,.secondary-button:hover,.danger-button:hover,.erp-button:hover{transform:translateY(-1px)}
.primary-button{box-shadow:0 6px 15px rgba(76,97,232,.17)}
.primary-button:hover{box-shadow:0 10px 22px rgba(76,97,232,.24)}
.create-button svg,.primary-button svg,.secondary-button svg,.danger-button svg,.table-action svg,.danger-link svg,.icon-button svg{width:16px;height:16px;flex:0 0 16px}
.table-action,.danger-link,.text-link{min-height:35px;gap:7px;padding:7px 10px;border-radius:9px;font-size:12px;font-weight:680;transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
.table-action:hover,.danger-link:hover,.text-link:hover{transform:translateY(-1px);box-shadow:0 5px 13px rgba(30,46,77,.08)}
.table-action svg,.danger-link svg{width:15px;height:15px;flex-basis:15px}
.actions-cell{white-space:nowrap}
.actions-cell form{display:inline-flex}
.code-pill{padding:5px 9px;border:1px solid #e7ebf7;border-radius:8px;background:#f5f7ff;font-size:11px;font-weight:700}
.alert{padding:14px 17px;border-radius:12px;font-size:13px;line-height:1.6;box-shadow:0 8px 22px rgba(24,37,67,.045)}
.alert.error{border-color:#f2d4d5;background:#fff7f7;color:#a93d47}
.alert.ok{border-color:#ccebdc;background:#f2fbf6;color:#24774d}
.empty-state{padding:38px 22px;border:1px dashed #d6deeb;border-radius:13px;background:linear-gradient(145deg,#fbfcff,#f7f9fd);color:#75839a;text-align:center;font-size:13px}
.report-grid{gap:16px}.report-tile{min-height:142px;padding:20px;border:1px solid #e7ecf4;border-radius:15px;background:#fff;box-shadow:var(--shadow-card);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
.report-tile:hover{transform:translateY(-3px);border-color:#cbd4ff;box-shadow:0 18px 38px rgba(25,39,69,.1)}
.report-tile b{font-size:15px}.report-tile small{font-size:12px;line-height:1.55}
.roles-list,.permissions-card{border:1px solid #e8edf4;border-radius:16px;box-shadow:var(--shadow-card)}
.role-link{padding:12px 13px;border-radius:11px;transition:background .16s ease,transform .16s ease}
.role-link:hover{transform:translateX(2px)}.role-link b{font-size:13px}.role-link small{font-size:11px}
.permission-module{padding:14px 0;border-bottom-color:#edf0f5}
.permission-module h3{font-size:13px}
.permission-checks{gap:10px 15px}
.permission-checks label{gap:7px;font-size:12px}
.permission-checks input{width:17px;height:17px}
.notification-summary{padding:18px;border-radius:14px;box-shadow:var(--shadow-card)}
.notification-card{min-height:75px;padding:16px 18px;border:1px solid #e7ecf3;border-radius:13px;box-shadow:0 7px 20px rgba(25,39,69,.04);transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}
.notification-card:hover{transform:translateY(-2px);box-shadow:0 12px 27px rgba(25,39,69,.08)}
.notification-copy b{font-size:13px}.notification-copy small{font-size:12px}
.notification-tone,.notice-dot{width:11px;height:11px;flex:0 0 11px}
.modal-backdrop{padding:22px;background:rgba(17,27,46,.48);backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px)}
.modal-card{width:min(100%,700px);max-height:min(88vh,900px);gap:20px;padding:28px;border:1px solid rgba(255,255,255,.78);border-radius:20px;box-shadow:0 34px 100px rgba(9,19,39,.28);animation:modal-rise .24s cubic-bezier(.2,.75,.25,1)}
.wide-modal{width:min(100%,880px)}
.modal-head{padding-bottom:15px;border-bottom:1px solid #edf0f5}
.modal-head h2{font-size:20px;letter-spacing:-.02em}.modal-head p{font-size:13px}
.form-grid{gap:15px 16px}
.modal-actions{gap:10px;padding-top:5px}
.icon-button{width:38px;height:38px;border-radius:11px;cursor:pointer;transition:transform .15s ease,background .15s ease}
.icon-button:hover{transform:rotate(90deg);background:#e9edfa}
.request-line,.review-line,.count-line{gap:12px;margin-bottom:11px;padding:14px;border-radius:12px;background:#fbfcff}
.request-line label,.review-line label,.count-line label{font-size:12px}
.request-line small,.review-line small,.count-line small{font-size:11px}
.app-footer{padding-top:17px;padding-bottom:17px;font-size:11px}
.live-notification-toast{border-radius:15px;box-shadow:0 22px 65px rgba(15,28,51,.2);animation:toast-arrive .24s ease-out}
.login-card{width:min(440px,100%);padding:38px;border-radius:20px;box-shadow:0 28px 80px rgba(25,39,69,.12)}
.login-card h1{font-size:29px}.login-card>.muted{font-size:13px}
.login-card .form-stack{gap:17px}
@keyframes modal-rise{from{opacity:0;transform:translateY(12px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes toast-arrive{from{opacity:0;transform:translate(12px,-8px)}to{opacity:1;transform:translate(0)}}
@media(max-width:1050px){.sidebar{width:242px}.page{padding-inline:28px}.page-card{padding:21px}}
@media(max-width:960px){.sidebar{width:66px;padding:17px 8px}.nav-icon{width:24px;height:24px;flex-basis:24px}.nav-icon svg{width:20px;height:20px}.page{padding:27px 17px 42px}.page-heading{margin-bottom:20px}.page-heading h1{font-size:26px}.page-card{padding:17px}.table-card{padding:0}.table-card .card-heading{padding:18px 18px 0}.filter-bar{padding:12px}.modal-card{padding:22px}}
@media(max-width:480px){.topbar{height:62px;padding:0 11px}.topbar-right{gap:7px}.header-icon-button{width:38px;height:38px}.page{padding:22px 12px 34px}.page-heading h1{font-size:23px}.page-heading .muted{font-size:12px}.page-card{padding:14px}.table-card{padding:0}.card-heading h2{font-size:15px}.metric-card{padding:12px}.filter-bar{gap:9px}.filter-bar input,.filter-bar select{min-width:0}.primary-button,.secondary-button,.danger-button,.erp-button{padding:9px 12px;font-size:12px}.modal-card{gap:15px;padding:17px;border-radius:16px}.modal-head h2{font-size:18px}.app-footer{font-size:10px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
/* Mobile drawer and single-column dashboard refinements */
.sidebar-scrim,.mobile-nav-toggle{display:none}
@media(max-width:960px){
  html,body{overflow-x:hidden}
  .sidebar{position:fixed;top:0;bottom:0;left:0;z-index:42;width:min(292px,84vw);padding:20px 14px;transform:translateX(-105%);transition:transform .24s cubic-bezier(.2,.75,.25,1);box-shadow:16px 0 48px rgba(12,22,42,.2)}
  body.sidebar-open{overflow:hidden}
  body.sidebar-open .sidebar{transform:translateX(0)}
  .brand{justify-content:flex-start;margin:0 4px 28px;padding:0 8px}
  .brand>span:not(.brand-mark),.sidebar-caption,.nav-item>span:not(.nav-icon),.profile,.logout{display:initial}
  .sidebar-caption{display:block}
  .nav-item{justify-content:flex-start;padding:10px 12px}
  .nav-item>span:not(.nav-icon){display:block}
  .nav-count{display:grid}
  .sidebar-footer{justify-content:flex-start;padding-inline:8px}
  .profile{display:grid}
  .sidebar-scrim{position:fixed;inset:0;z-index:41;display:block;border:0;background:rgba(13,22,40,.42);opacity:0;visibility:hidden;transition:opacity .2s ease,visibility .2s ease}
  body.sidebar-open .sidebar-scrim{opacity:1;visibility:visible}
  .mobile-nav-toggle{width:40px;height:40px;display:grid;place-items:center;flex:0 0 40px;border:1px solid #e5eaf2;border-radius:12px;color:#34435d;background:#fff;box-shadow:0 4px 12px rgba(25,39,69,.06);cursor:pointer}
  .mobile-nav-toggle svg{width:19px;height:19px}
  .topbar{gap:11px}
  .crumb{min-width:0;flex:1}
  .metric-grid{grid-template-columns:1fr}
  .metric-card{min-height:94px}
  .metric-card strong{overflow-wrap:anywhere;font-size:25px}
  .metric-card span:not(.metric-icon){font-size:12px}
  .dashboard-grid{grid-template-columns:1fr}
}
@media(max-width:480px){
  .topbar{gap:7px;padding-inline:9px}
  .mobile-nav-toggle{width:36px;height:36px;flex-basis:36px;border-radius:10px}
  .crumb{max-width:none;font-size:11px}
  .topbar-right{gap:5px}
  .header-icon-button{width:35px;height:35px}
  .top-avatar{width:31px;height:31px}
  .metric-grid,.dashboard-grid,.report-grid{grid-template-columns:1fr}
  .metric-card{padding:15px}
  .metric-card strong{font-size:24px}
  .page-heading h1{overflow-wrap:anywhere}
  .filter-bar{flex-wrap:wrap}
  .filter-bar label{min-width:min(100%,145px)}
}
@media(min-width:851px) and (max-width:1250px){.metric-grid,.report-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.metric-card{min-height:112px}.metric-card strong{white-space:nowrap}}
/* Tabler 1.6 inspired workspace refresh */
:root{--canvas:#f4f6fb;--surface:#fff;--ink:#18243a;--muted:#76839a;--line:#e5eaf2;--brand:#4d61e8;--brand-dark:#344bd0;--tblr-blue:#4d61e8}
body{background:var(--canvas);color:var(--ink);font-family:Inter,"Noto Sans Armenian","Segoe UI",Arial,sans-serif;letter-spacing:0}
.app-shell{background:radial-gradient(ellipse at 88% 0,rgba(112,131,255,.07),transparent 36%),var(--canvas)}
.sidebar{flex:0 0 272px;transition:width .24s cubic-bezier(.2,.7,.2,1),flex-basis .24s cubic-bezier(.2,.7,.2,1),padding .24s ease}
.nav-item{transition:color .16s ease,background .16s ease,border-color .16s ease,transform .16s ease}
.topbar{top:12px;height:68px;margin:12px 16px 0;padding-inline:20px;border:1px solid rgba(226,232,242,.9);border-radius:17px;background:rgba(255,255,255,.88);box-shadow:0 8px 30px rgba(22,35,62,.07);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
.topbar-right{gap:10px}.header-icon-button{border:1px solid #e8edf4;background:rgba(255,255,255,.8)}.header-icon-button:hover{border-color:#d8dffd;background:#f5f7ff;box-shadow:0 6px 18px rgba(35,53,95,.08)}
.page{padding-top:29px}.page-heading{margin-bottom:25px}.page-heading h1{font-size:clamp(28px,2.2vw,35px);font-weight:760;letter-spacing:-.045em}.page-heading .muted{max-width:750px}
.page-kicker{display:inline-flex;align-items:center;gap:8px;margin:0 0 9px;padding:5px 10px;border:1px solid #e6eafa;border-radius:999px;color:#626f91;background:#f8f9ff;font-size:11px;font-weight:680;letter-spacing:0}
.page-kicker span{width:7px;height:7px;border-radius:50%;background:linear-gradient(135deg,#8390ff,#4c60e7);box-shadow:0 0 0 3px #e9ecff}
.page-card,.metric-card,.roles-list,.permissions-card{border-color:#e8edf4;box-shadow:0 10px 30px rgba(21,36,67,.045)}
.page-card,.metric-card,.table-card,.report-tile,.notification-card{transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}
.table-card{overflow:hidden}.table-card .table-scroll{border-radius:inherit}.table-card thead th{position:sticky;top:0;z-index:1;background:#f7f8fc}
.table-card tbody tr:last-child td{border-bottom:0}.table-card tbody tr:hover{background:#f6f8ff}
.search-wrap input,.filter-bar input,.filter-bar select{background:rgba(255,255,255,.9)}
.badge,.code-pill{letter-spacing:.01em}
.alert{margin:0 0 24px}.alert-modern{position:relative;display:flex;align-items:center;gap:14px;min-height:82px;padding:14px 16px 14px 17px;border-radius:16px;overflow:hidden;box-shadow:0 12px 32px rgba(35,48,75,.065);animation:alert-enter .24s ease-out}
.alert-modern::before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:currentColor;opacity:.72}
.alert-mark{width:44px;height:44px;display:grid;place-items:center;flex:0 0 44px;border-radius:14px}
.alert-mark svg{width:22px;height:22px}
.alert-copy{min-width:0;display:grid;gap:3px;flex:1}
.alert-copy strong{font-size:14px;font-weight:760;letter-spacing:-.01em}
.alert-copy>span{font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.alert-dismiss{width:34px;height:34px;display:grid;place-items:center;flex:0 0 34px;border:1px solid transparent;border-radius:10px;color:inherit;background:transparent;opacity:.58;cursor:pointer;transition:opacity .16s ease,background .16s ease,transform .16s ease}
.alert-dismiss:hover{opacity:1;background:rgba(255,255,255,.7);transform:rotate(90deg)}.alert-dismiss svg{width:16px;height:16px}
.alert.error.alert-modern{border:1px solid #f5d7dc;border-left-color:transparent;color:#a83b4b;background:linear-gradient(105deg,#fff2f4 0%,#fff9fa 68%,#fff 100%)}
.alert.error.alert-modern .alert-mark{color:#bc4759;background:linear-gradient(145deg,#ffe0e5,#fff0f2);box-shadow:inset 0 0 0 1px #f7d4da}
.alert.ok.alert-modern{border:1px solid #d4eee1;border-left-color:transparent;color:#247b54;background:linear-gradient(105deg,#f0fbf5 0%,#f9fefa 68%,#fff 100%)}
.alert.ok.alert-modern .alert-mark{color:#25885b;background:linear-gradient(145deg,#d9f5e5,#effbf4);box-shadow:inset 0 0 0 1px #ccebd9}
.login-card .alert-modern{margin:0 0 17px}.login-card .alert-copy strong{font-size:12px}.login-card .alert-copy>span{font-size:11px}
.sidebar-collapse-toggle{width:38px;height:38px;display:none;place-items:center;flex:0 0 38px;border:1px solid #e7ebf2;border-radius:12px;color:#50617b;background:rgba(255,255,255,.84);cursor:pointer;transition:background .16s ease,border-color .16s ease,transform .16s ease}
.sidebar-collapse-toggle:hover{transform:translateY(-1px);border-color:#d7def2;background:#f8f9ff}.sidebar-collapse-toggle svg{width:18px;height:18px}
@media(min-width:961px){.sidebar-collapse-toggle{display:grid}}
body.sidebar-collapsed .sidebar{width:82px;flex-basis:82px;padding-inline:10px}
body.sidebar-collapsed .brand{justify-content:center;margin-inline:0;padding-inline:0}
body.sidebar-collapsed .brand>span:not(.brand-mark),body.sidebar-collapsed .sidebar-caption,body.sidebar-collapsed .nav-item>span:not(.nav-icon),body.sidebar-collapsed .profile{display:none}
body.sidebar-collapsed .nav-item{justify-content:center;position:relative;padding-inline:8px}
body.sidebar-collapsed .nav-icon{width:24px;flex-basis:24px}
body.sidebar-collapsed .sidebar-footer{justify-content:center;gap:0;padding-inline:0}
body.sidebar-collapsed .logout{margin-left:6px}
body.sidebar-collapsed .nav-count{position:absolute;top:2px;right:3px;min-width:17px;height:17px;padding:0;font-size:9px}
@media(max-width:960px){
 .topbar{top:0;margin:8px 10px 0;padding-inline:12px;border-radius:14px}
 .sidebar-collapse-toggle{display:none}
 body.sidebar-collapsed .sidebar{width:min(292px,84vw);flex-basis:auto;padding:20px 14px}
 body.sidebar-collapsed .brand{justify-content:flex-start;margin:0 4px 28px;padding:0 8px}
 body.sidebar-collapsed .brand>span:not(.brand-mark),body.sidebar-collapsed .sidebar-caption,body.sidebar-collapsed .nav-item>span:not(.nav-icon),body.sidebar-collapsed .profile{display:initial}
 body.sidebar-collapsed .sidebar-caption{display:block}
 body.sidebar-collapsed .nav-item{justify-content:flex-start;padding:10px 12px}
 body.sidebar-collapsed .nav-item>span:not(.nav-icon){display:block}
 body.sidebar-collapsed .sidebar-footer{justify-content:flex-start;gap:11px;padding-inline:8px}
 body.sidebar-collapsed .profile{display:grid}
 body.sidebar-collapsed .nav-count{position:static;min-width:23px;height:23px;padding:0 6px;font-size:11px}
 .page{padding-top:24px}
}
@media(max-width:480px){.topbar{margin:7px 7px 0;padding-inline:8px}.alert-modern{gap:10px;min-height:72px;padding:11px 10px 11px 12px;border-radius:13px}.alert-mark{width:38px;height:38px;flex-basis:38px}.alert-mark svg{width:19px;height:19px}.alert-copy strong{font-size:12px}.alert-copy>span{font-size:11px}.alert-dismiss{width:30px;height:30px;flex-basis:30px}.page-kicker{font-size:10px}}
@keyframes alert-enter{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.alert-modern{animation:none}}

/* Live workspace updates */
.realtime-status{display:inline-flex;align-items:center;gap:7px;margin-right:3px;color:#7b879b;font-size:11px;font-weight:650;white-space:nowrap}
.realtime-status i{width:8px;height:8px;border-radius:50%;background:#e1a23d;box-shadow:0 0 0 3px #fff1d9;transition:background .2s ease,box-shadow .2s ease}
.realtime-status.is-live{color:#438268}
.realtime-status.is-live i{background:#36a877;box-shadow:0 0 0 3px #e1f5eb}
.realtime-status.is-connecting i{animation:live-pulse 1.5s ease-in-out infinite}
.live-refresh-toast{position:fixed;right:22px;bottom:22px;z-index:95;display:flex;align-items:center;gap:15px;padding:12px 14px 12px 17px;border:1px solid #dfe6f2;border-radius:14px;color:#34435d;background:rgba(255,255,255,.96);box-shadow:0 14px 38px rgba(21,36,67,.16);backdrop-filter:blur(12px);animation:alert-enter .2s ease-out}
.live-refresh-toast button{min-height:34px;border:0;border-radius:9px;padding:7px 12px;color:white;background:#4c61e8;font-size:12px;font-weight:700}
.live-refresh-toast button:hover{background:#354bd2}
@keyframes live-pulse{50%{box-shadow:0 0 0 6px rgba(225,162,61,.08);opacity:.55}}
@media(max-width:480px){.realtime-status{width:10px;overflow:hidden;gap:8px;margin-right:0;font-size:0}.realtime-status i{flex:0 0 8px}.live-refresh-toast{right:10px;bottom:10px;left:10px;justify-content:space-between;padding:10px 11px 10px 14px}}

/* Readability pass: increase supporting text across every workspace page. */
body{font-size:15px}
.sidebar-caption{font-size:11px}
.nav-item{font-size:14px}
.brand{font-size:14px}
.profile b{font-size:13px}.profile small{font-size:11px}
.crumb{font-size:13px}.today{font-size:13px}.realtime-status{font-size:12px}
.page-heading .muted{font-size:14px}
.card-heading p{font-size:13px}
.metric-card span:not(.metric-icon){font-size:13px}
th{font-size:11px}
td{font-size:13px}
td b,td strong{font-size:13px}
td small{font-size:12px}
.badge{font-size:11px}
.filter-bar label,.form-grid label,.modal-card>label,.form-stack label{font-size:13px}
input,textarea,select{font-size:14px}
.primary-button,.secondary-button,.danger-button,.erp-button{font-size:13px}
.table-action,.danger-link{font-size:12px}
.text-link{font-size:12px}
.alert{font-size:14px}
.notification-item-copy strong,.notification-copy b{font-size:13px}
.notification-item-copy small,.notification-copy small{font-size:12px}
.notification-popover-head strong{font-size:15px}
.notification-popover-head small{font-size:12px}
.app-footer{font-size:12px}
@media(max-width:960px){.nav-item{font-size:14px}.page-heading .muted{font-size:13px}th{font-size:11px}td{font-size:13px}}
@media(max-width:480px){.crumb{font-size:12px}.metric-card span:not(.metric-icon){font-size:12px}.primary-button,.secondary-button,.danger-button,.erp-button{font-size:13px}.page-heading .muted{font-size:13px}}
.profile-menu{position:relative;z-index:25}
.profile-trigger{min-height:42px;display:flex;align-items:center;gap:9px;border:1px solid #e8ecf5;border-radius:14px;padding:4px 9px 4px 5px;color:var(--ink);background:#fff;transition:background .18s,border-color .18s,box-shadow .18s,transform .18s}
.profile-trigger:hover,.profile-trigger[aria-expanded="true"]{border-color:#d9defe;background:#fafaff;box-shadow:0 7px 20px #293a6812}
.profile-trigger:active{transform:translateY(1px)}
.profile-trigger-avatar,.profile-popover-avatar{display:grid;place-items:center;flex:none;border-radius:12px;color:#4657dc;background:linear-gradient(145deg,#f1f3ff,#e5eaff);font-weight:800}
.profile-trigger-avatar{width:32px;height:32px;font-size:14px}
.profile-trigger-copy{max-width:145px;display:grid;gap:2px;text-align:left}
.profile-trigger-copy b{overflow:hidden;font-size:11px;font-weight:750;text-overflow:ellipsis;white-space:nowrap}
.profile-trigger-copy small{overflow:hidden;color:#8190a5;font-size:9px;text-overflow:ellipsis;white-space:nowrap}
.profile-trigger-chevron{width:14px;height:14px;flex:none;fill:none;stroke:#8290a5;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:transform .18s}
.profile-trigger[aria-expanded="true"] .profile-trigger-chevron{transform:rotate(180deg)}
.profile-popover{position:absolute;top:calc(100% + 11px);right:0;width:min(340px,calc(100vw - 24px));overflow:hidden;border:1px solid #e6eaf2;border-radius:18px;background:#fff;box-shadow:0 20px 55px #17233a24;animation:profile-enter .16s ease-out;transform-origin:top right}
.profile-popover[hidden]{display:none}
@keyframes profile-enter{from{opacity:0;transform:translateY(-5px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
.profile-popover-head{display:flex;align-items:center;gap:13px;padding:19px 19px 16px;background:linear-gradient(145deg,#f8f9ff,#fff)}
.profile-popover-avatar{width:48px;height:48px;border-radius:15px;font-size:20px;box-shadow:inset 0 0 0 1px #e2e7ff}
.profile-popover-head>div{min-width:0;display:grid;gap:5px}
.profile-popover-head strong{overflow:hidden;font-size:14px;text-overflow:ellipsis;white-space:nowrap}
.profile-popover-head small{overflow:hidden;font-size:11px;text-overflow:ellipsis;white-space:nowrap}
.profile-details{display:grid;gap:0;padding:2px 19px 9px}
.profile-details>div{display:grid;gap:4px;padding:12px 0;border-top:1px solid #eff1f5}
.profile-details small{font-size:10px}
.profile-details b{font-size:12px;font-weight:650;line-height:1.45}
.profile-logout-form{padding:10px 14px 14px;border-top:1px solid #eff1f5}
.profile-logout-button{width:100%;min-height:40px;display:flex;align-items:center;gap:9px;border:1px solid #f2dfe2;border-radius:11px;padding:9px 12px;color:#bf4050;background:#fff8f8;text-align:left;font-size:12px;font-weight:700;transition:background .16s,border-color .16s}
.profile-logout-button:hover{border-color:#efc8ce;background:#fff0f1}
.profile-logout-button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:480px){.profile-trigger{min-height:40px;gap:6px;padding-right:6px;border-radius:13px}.profile-trigger-copy{max-width:82px}.profile-trigger-copy b{font-size:10px}.profile-trigger-copy small{font-size:8px}.profile-trigger-avatar{width:30px;height:30px;border-radius:10px}.profile-popover{right:-2px}}
.searchable-select{position:relative;width:100%;min-width:0}
.searchable-select-input{width:100%;padding-right:42px;background-color:#fff;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23758398' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;text-overflow:ellipsis;cursor:pointer}
.searchable-select-input:focus{cursor:text}
.searchable-select.is-open .searchable-select-input{border-color:#7382eb;box-shadow:0 0 0 3px #6677e61a}
.searchable-select-input:disabled{cursor:not-allowed;color:#8b96a7;background-color:#f3f5f8}
.searchable-select-menu{position:absolute;z-index:60;top:calc(100% + 6px);right:0;left:0;max-height:min(270px,45vh);overflow:auto;padding:5px;border:1px solid #e1e6ef;border-radius:12px;background:#fff;box-shadow:0 14px 32px #1b29441c;overscroll-behavior:contain}
.searchable-select-menu[hidden]{display:none}
.searchable-select.opens-up .searchable-select-menu{top:auto;bottom:calc(100% + 6px)}
.searchable-select-option{width:100%;min-height:38px;display:flex;align-items:center;border:0;border-radius:8px;padding:8px 10px;color:#38465e;background:transparent;text-align:left;font-size:12px;line-height:1.4}
.searchable-select-option:hover,.searchable-select-option.is-active{color:#3448ce;background:#f0f2ff}
.searchable-select-option[aria-selected="true"]{color:#3448ce;background:#f5f6ff;font-weight:700}
.searchable-select-option:disabled{opacity:.45;cursor:not-allowed}
.searchable-select-empty{padding:13px 10px;color:#8792a5;text-align:center;font-size:11px}
@media(max-width:480px){.searchable-select-menu{max-height:38vh}.searchable-select-option{min-height:42px;font-size:13px}}

/* Tablet sizing: switch to the drawer before the desktop sidebar crowds the workspace. */
@media(max-width:960px){.groups-layout,.groups-layout>*{min-width:0}.groups-layout{grid-template-columns:minmax(0,1fr)}.roles-list{min-width:0}.role-link{min-width:0}.role-link b,.role-link small{overflow-wrap:anywhere}}

@media(max-width:480px){.permissions-card>.card-heading{flex-wrap:wrap;align-items:stretch}.permissions-card>.card-heading>div{min-width:0}.permissions-card>.card-heading button{width:100%;max-width:100%;white-space:normal}}

@media(max-width:480px){.notification-popover{position:fixed;top:72px;left:0;right:auto;width:min(420px,calc(100vw - 24px))}}
@media(max-width:360px){.profile-trigger-copy,.profile-trigger-chevron{display:none}.profile-trigger{padding:4px;border-radius:12px}.profile-trigger-avatar{width:31px;height:31px}}

/* Keep table actions compact on narrow screens while retaining accessible names. */
.table-action.icon-only-action,.danger-link.icon-only-action{width:36px;min-width:36px;height:36px;min-height:36px;display:inline-flex;align-items:center;justify-content:center;gap:0;padding:0;font-size:0;line-height:1}
.table-action.icon-only-action svg,.danger-link.icon-only-action svg{width:18px;height:18px;flex:0 0 18px}
.icon-only-action .action-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;clip-path:inset(50%)}
.actions-cell form+form{margin-left:4px}

/* On compact workspaces, show complete records as labeled cards instead of clipping table columns. */
@media(max-width:1280px){
  .table-scroll{overflow:visible}
  .table-card table{display:block;width:100%;min-width:0;max-width:100%;overflow:hidden;white-space:normal}
  .table-card thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .table-card tbody{display:grid;width:100%;min-width:0;grid-template-columns:minmax(0,1fr);gap:9px;padding:9px}
  .table-card tbody tr{display:grid;width:100%;min-width:0;grid-template-columns:minmax(0,1fr);overflow:hidden;border:1px solid var(--line);border-radius:10px;background:#fff;box-shadow:0 2px 8px #18243a08}
  .table-card tbody tr[hidden]{display:none}
  .table-card tbody td{min-width:0;display:grid;grid-template-columns:minmax(82px,36%) minmax(0,1fr);align-items:center;gap:8px;padding:9px 11px;border-top:1px solid #edf0f4;font-size:12px;white-space:normal;overflow-wrap:anywhere}
  .table-card tbody td:first-child{border-top:0}
  .table-card tbody td::before{content:attr(data-label);align-self:start;color:var(--muted);font-size:10px;font-weight:700;line-height:1.45}
  .table-card .cell-value{min-width:0;max-width:100%;overflow-wrap:anywhere}
  .table-card tbody td b,.table-card tbody td strong,.table-card tbody td small{overflow-wrap:anywhere}
  .table-card tbody td small{max-width:none}
  .table-card tbody td[colspan]{display:block;padding:24px 10px;text-align:center}
  .table-card tbody td[colspan]::before{content:none}
  .table-card tbody td.actions-cell{display:flex;align-items:center;justify-content:flex-end;gap:8px}
  .table-card tbody td.actions-cell::before{margin-right:auto}
  .table-card tbody td.actions-cell .cell-value{display:flex;align-items:center;gap:6px}
  .actions-cell form+form{margin-left:0}
}

/* Global section finder in the workspace header. */
.global-search{position:relative;z-index:16;flex:0 1 330px;min-width:180px;margin-inline:clamp(8px,2vw,28px)}
.global-search-field{height:42px;display:flex;align-items:center;gap:9px;padding:0 11px;border:1px solid #e3e8f1;border-radius:12px;color:#8a96aa;background:rgba(255,255,255,.92);transition:border-color .16s,box-shadow .16s,background .16s}
.global-search-field:focus-within{border-color:#aab5ff;background:#fff;box-shadow:0 0 0 4px rgba(77,97,232,.1)}
.global-search-field>svg{width:17px;height:17px;flex:0 0 17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.global-search-field input{width:100%;min-width:0;min-height:38px;border:0;padding:0;outline:0;color:#27344a;background:transparent;font-size:12px;box-shadow:none!important}
.global-search-field input::-webkit-search-cancel-button{cursor:pointer}
.global-search-field kbd,.global-search-enter{display:grid;place-items:center;flex:none;border:1px solid #e7ebf2;border-radius:6px;padding:3px 5px;color:#8792a5;background:#f8f9fc;font:10px/1.2 inherit;white-space:nowrap}
.global-search-results{position:absolute;top:calc(100% + 9px);left:0;width:min(360px,calc(100vw - 24px));max-height:min(420px,65vh);overflow:auto;padding:6px;border:1px solid #e7ebf2;border-radius:14px;background:rgba(255,255,255,.98);box-shadow:0 18px 50px rgba(24,36,58,.18);backdrop-filter:blur(16px)}
.global-search-results[hidden]{display:none}
.global-search-option{min-height:42px;display:flex;align-items:center;gap:10px;padding:7px 9px;border-radius:9px;color:#46546b;font-size:12px;font-weight:620;transition:background .14s,color .14s}
.global-search-option[hidden]{display:none}
.global-search-option:hover,.global-search-option.is-active{color:#3449ce;background:#f0f2ff}
.global-search-option-icon{width:27px;height:27px;display:grid;place-items:center;flex:none;border-radius:8px;color:#5366d8;background:#eef0ff;font-size:14px}
.global-search-option-name{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.global-search-enter{visibility:hidden}
.global-search-option.is-active .global-search-enter{visibility:visible}
.global-search-empty{padding:15px 10px;color:#8792a5;text-align:center;font-size:11px}
@media(max-width:960px){.crumb{display:none}.global-search{flex:1 1 auto;min-width:100px;max-width:none;margin:0}.topbar-right{flex:0 0 auto}}
@media(max-width:480px){.global-search{min-width:72px}.global-search-field{height:38px;gap:7px;padding:0 9px;border-radius:11px}.global-search-field input{min-height:34px;font-size:11px}.global-search-field input::placeholder{font-size:10px}.global-search-field kbd{display:none}.global-search-results{position:fixed;top:74px;right:12px;left:12px;width:auto;max-height:60vh}.global-search-option{min-height:44px;font-size:13px}}

/* Keep the desktop navigation anchored while the workspace content scrolls. */
@media(min-width:961px){
  .sidebar{position:fixed;inset:0 auto 0 0;height:100vh;min-height:0;overflow-y:auto;overscroll-behavior:contain;z-index:30}
  .main-content{margin-left:272px;transition:margin-left .24s cubic-bezier(.2,.7,.2,1)}
  body.sidebar-collapsed .main-content{margin-left:82px}
}

/* Keep navigation and page controls available while long inventory lists scroll. */
:root{--muted:#65748b;--line:#e1e7f0}
html{overflow-x:clip}
.sidebar{overflow:hidden}
.sidebar .nav-list{min-height:0;flex:1;align-content:start;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#52617a transparent}
.sidebar .nav-list{overflow-x:hidden}
.sidebar .nav-item{width:100%;min-width:0}
.sidebar .nav-item>span:not(.nav-icon){min-width:0;overflow-wrap:anywhere}
.sidebar .nav-list::-webkit-scrollbar{width:6px}
.sidebar .nav-list::-webkit-scrollbar-thumb{border:0;border-radius:99px;background:#52617a}
.sidebar-caption{flex:none}
.sidebar-footer{flex:none}
.topbar{position:sticky;top:0;z-index:25;background:rgba(255,255,255,.9);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
.table-scroll{scrollbar-width:thin;scrollbar-color:#c2ccdc transparent;overscroll-behavior-x:contain}
.table-card th:first-child,.table-card td:first-child{background-clip:padding-box}
.table-card th:first-child{z-index:2}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid rgba(76,97,232,.28);outline-offset:2px}
button:active,.primary-button:active,.secondary-button:active,.danger-button:active{transform:translateY(0) scale(.985)}

@media(max-width:960px){
  .sidebar{height:100vh;height:100dvh;overflow:hidden}
  .sidebar .nav-list{flex:1;min-height:0;overflow-y:auto}
  .sidebar-footer{padding-bottom:max(10px,env(safe-area-inset-bottom))}
  .topbar{padding-top:env(safe-area-inset-top)}
}
@media(max-width:480px){
  .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .metric-card{min-width:0;min-height:94px;align-items:flex-start;gap:9px;padding:12px}
  .metric-card>div{min-width:0}
  .metric-card strong{font-size:21px}
  .metric-card span:not(.metric-icon){font-size:11px;line-height:1.4}
  .sidebar{padding-bottom:max(14px,env(safe-area-inset-bottom))}
}
@media(max-width:350px){
  .metric-grid{grid-template-columns:1fr}
}
.main-content{display:flex;flex-direction:column;min-height:100vh}
.page{flex:1}
@media(min-width:961px) and (max-width:1050px){
  .main-content{margin-left:242px}
  body.sidebar-collapsed .main-content{margin-left:82px}
}
@media(min-width:961px) and (max-width:1280px){
  .crumb,.today{display:none}
  .topbar{gap:9px;padding-inline:18px}
  .global-search{flex:1 1 250px;min-width:145px;margin:0 10px}
  .global-search-field kbd{display:none}
  .topbar-right{flex:0 0 auto;gap:8px}
  .profile-menu,.profile-trigger{flex:0 0 auto}
  .profile-trigger-copy{min-width:0;max-width:112px;flex:0 1 112px}
}

/* Give desktop tables the available page width instead of forcing sideways scrolling. */
@media(min-width:961px){
  .table-card .table-scroll{max-width:100%;overflow-x:hidden}
  .table-card table{width:100%;min-width:0;table-layout:auto}
  .table-card th,.table-card td{white-space:normal;overflow-wrap:anywhere}
  .table-card th{padding-inline:clamp(6px,.7vw,11px);font-size:10px;line-height:1.4}
  .table-card td{padding-inline:clamp(6px,.7vw,11px);font-size:12px;line-height:1.45}
  .table-card td:nth-child(8):not(.actions-cell){min-width:76px}
  .table-card td small{max-width:none}
}

.page-heading-copy{min-width:0;flex:1}
.page-breadcrumb{display:flex;align-items:center;justify-content:flex-end;gap:9px;align-self:flex-start;flex:none;margin:4px 0 0 16px;color:#8995a9;font-size:12px;line-height:1.4;text-align:right;white-space:nowrap}
.page-breadcrumb b{color:#344157;font-weight:680}
.page-breadcrumb-separator{color:#c1c9d5}
.page-heading h1{margin-top:0}
@media(max-width:600px){.page-heading{flex-direction:column;gap:7px}.page-breadcrumb{order:-1;align-self:flex-end;margin:0;font-size:11px}}
@media(max-width:360px){.page-breadcrumb{gap:6px;font-size:10px}}

/* Consistent right-side drawers for create, edit, review and inventory dialogs. */
.modal-backdrop[hidden]{display:none}
.modal-backdrop{z-index:100;display:flex;align-items:stretch;justify-content:flex-end;overflow:hidden;padding:0;background:rgba(13,21,38,.48);backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px);animation:drawer-overlay-in .2s ease-out both}
.modal-card,.wide-modal{width:min(1040px,78vw);height:100vh;height:100dvh;max-height:none;display:flex;flex-direction:column;gap:0;overflow-x:hidden;overflow-y:auto;padding:0;border:0;border-left:1px solid rgba(226,232,240,.9);border-radius:24px 0 0 24px;background:#fff;box-shadow:-24px 0 70px rgba(10,18,34,.2);animation:drawer-panel-in .28s cubic-bezier(.2,.75,.2,1) both;overscroll-behavior:contain}
.modal-card>*{flex:0 0 auto}
.modal-card>.modal-head{position:sticky;top:0;z-index:3;align-items:center;padding:24px 30px 20px;border-bottom:1px solid #e8edf4;background:rgba(255,255,255,.96);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.modal-head h2{font-size:22px;line-height:1.3;letter-spacing:-.025em}
.modal-head p{margin-top:6px;font-size:13px;line-height:1.55}
.modal-head .icon-button{width:44px;height:44px;flex:none;border:1px solid #e4e9f1;border-radius:14px;background:#f8f9fc;font-size:24px;transition:background .16s,transform .16s}
.modal-head .icon-button:hover{background:#edf0f6;transform:rotate(4deg)}
.modal-card>.form-grid,.modal-card>.count-list{width:auto;margin:24px 30px 28px}
.modal-card>.count-list{max-height:none;gap:12px;overflow:visible}
.modal-card>.form-grid{row-gap:18px;column-gap:16px}
.form-grid>label{align-content:start}
.table-list-tools{display:flex;align-items:center;justify-content:flex-start;gap:12px;padding:13px 16px 0}
.table-list-search-wrap{position:relative;display:flex;align-items:center;width:min(100%,410px);min-height:42px;margin:0;border:1px solid #d8e0eb;border-radius:11px;background:#fff;color:#8794a8}
.table-list-search-wrap>span{position:absolute;left:13px;font-size:20px;line-height:1}
.table-list-search-wrap input{width:100%;min-width:0;min-height:40px;padding:8px 12px 8px 39px;border:0;border-radius:inherit;outline:0;background:transparent;color:#26344c;font-size:13px;box-shadow:none}
.table-list-search-wrap input:focus{border:0;outline:0;box-shadow:0 0 0 3px rgba(76,97,232,.13)}
.list-pagination{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:58px;padding:10px 16px;border-top:1px solid #edf0f5;color:#7a879b;font-size:12px}
.list-pagination-controls{display:flex;align-items:center;gap:8px}
.list-pagination-controls label{display:flex;align-items:center;gap:7px;margin:0;color:#77849a;font-size:11px;font-weight:600}
.list-pagination-controls .page-size-control{display:flex;align-items:center;gap:8px;color:#75839c;font-size:11px;white-space:nowrap}
.list-pagination-controls .page-size-picker{position:relative}
.list-pagination-controls .page-size-trigger{width:auto;min-width:76px;height:40px;min-height:40px;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:0 11px 0 14px;border:1px solid #dce3ef;border-radius:12px;background:linear-gradient(180deg,#fff,#fbfcff);color:#263650;font-size:13px;font-weight:700;box-shadow:0 2px 5px #18243b08;transition:border-color .16s,box-shadow .16s}
.list-pagination-controls .page-size-trigger:hover,.list-pagination-controls .page-size-trigger[aria-expanded=true]{border-color:#9aa8ff;box-shadow:0 0 0 3px #6679ff18,0 5px 14px #24335b12}
.list-pagination-controls .page-size-trigger:focus-visible{outline:0;border-color:#6879ff;box-shadow:0 0 0 3px #6879ff30}
.list-pagination-controls .page-size-chevron{width:8px;height:8px;border-right:1.8px solid #73829c;border-bottom:1.8px solid #73829c;transform:rotate(45deg) translateY(-2px);transition:transform .16s}
.list-pagination-controls .page-size-trigger[aria-expanded=true] .page-size-chevron{transform:rotate(225deg) translate(-1px,-1px)}
.legacy-page-size-menu{position:fixed;right:auto;bottom:auto;z-index:1000;width:142px;padding:6px;border:1px solid #e0e6f2;border-radius:13px;background:#fff;box-shadow:0 14px 34px #18243b24,0 3px 8px #18243b0c;animation:page-size-in .14s ease-out}
.legacy-page-size-menu button{width:100%;min-height:35px;display:flex;align-items:center;justify-content:space-between;padding:0 10px;border:0;border-radius:8px;background:transparent;color:#44536d;text-align:left;font-size:12px;font-weight:600;transition:background .12s,color .12s}
.legacy-page-size-menu button:hover,.legacy-page-size-menu button:focus-visible{outline:0;background:#f1f3ff;color:#4659ed}
.legacy-page-size-menu button.selected{background:#eef1ff;color:#4055ed;font-weight:800}
.legacy-page-size-menu button.selected::after{content:'✓';color:#4b5fff;font-size:13px}
@keyframes page-size-in{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
.list-pagination-controls button{width:34px;min-width:34px;min-height:34px;padding:4px;border-radius:9px;font-size:18px;line-height:1}
.list-pagination-controls button:disabled{opacity:.42;cursor:not-allowed}
.list-pagination-page{min-width:48px;color:#46546c;text-align:center;font-size:11px;font-weight:700}
.list-pagination[hidden],.list-pagination [hidden]{display:none!important}
@media(max-width:560px){.table-list-tools{padding:12px 12px 0}.table-list-search-wrap{width:100%}.list-pagination{align-items:flex-start;flex-direction:column;gap:8px;padding:11px 12px}.list-pagination-controls{width:100%;justify-content:flex-end}.list-pagination-controls label{margin-right:auto}}
.modal-card>.modal-head~label{margin:22px 30px 0}
.modal-card>.request-line,.modal-card>.review-line,.modal-card>.count-line{margin:18px 30px 0;padding:17px;border:1px solid #e4eaf3;border-radius:16px;background:#f9fbfe}
.modal-card>.review-line{grid-template-columns:minmax(0,1fr) minmax(190px,.55fr);gap:18px}
.modal-card>.count-line{grid-template-columns:minmax(0,1.1fr) minmax(150px,.55fr) minmax(210px,1.15fr);gap:16px}
.modal-card>.count-line b,.modal-card>.review-line b{font-size:15px}
.modal-card>.count-line small,.modal-card>.review-line small{font-size:12px;line-height:1.55}
.modal-card>.modal-actions{position:sticky;bottom:0;z-index:3;justify-content:flex-end;flex-wrap:wrap;gap:10px;margin-top:auto;padding:17px 30px max(20px,env(safe-area-inset-bottom));border-top:1px solid #e8edf4;background:rgba(255,255,255,.97);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.modal-actions .primary-button,.modal-actions .secondary-button,.modal-actions .danger-button{min-height:46px;border-radius:12px;padding:11px 18px;font-size:13px}
@keyframes drawer-overlay-in{from{opacity:0}to{opacity:1}}
@keyframes drawer-panel-in{from{opacity:.7;transform:translateX(32px)}to{opacity:1;transform:translateX(0)}}
@media(max-width:640px){
  .modal-backdrop{padding:0}
  .modal-card,.wide-modal{width:100vw;height:100vh;height:100dvh;border-radius:20px 0 0 20px}
  .modal-card>.modal-head{padding:18px 18px 15px}
  .modal-head h2{font-size:19px}
  .modal-head p{font-size:12px}
  .modal-card>.form-grid,.modal-card>.count-list{margin:18px 16px 22px}
  .modal-card>.modal-head~label{margin:18px 16px 0}
  .modal-card>.request-line,.modal-card>.review-line,.modal-card>.count-line{grid-template-columns:minmax(0,1fr);gap:12px;margin:12px 16px 0;padding:15px;border-radius:14px}
  .modal-card>.count-line label:last-child{grid-column:auto}
  .modal-card>.modal-actions{gap:8px;padding:13px 16px max(16px,env(safe-area-inset-bottom))}
  .modal-actions .primary-button,.modal-actions .secondary-button,.modal-actions .danger-button{flex:1 1 145px;min-height:44px;padding-inline:12px;font-size:12px}
}
@media(prefers-reduced-motion:reduce){.modal-backdrop,.modal-card,.wide-modal{animation:none}}

/* Let short forms keep a composed, compact drawer height instead of a blank full screen. */
@media(min-width:641px){
  .modal-backdrop{align-items:center}
  .modal-card,.wide-modal{height:auto;min-height:min(620px,calc(100dvh - 36px));max-height:calc(100dvh - 36px);margin-block:18px;border-radius:22px 0 0 22px}
  .modal-card>.count-line,.modal-card>.review-line,.modal-card>.request-line{padding:19px 20px;border-color:#e0e7f1;background:linear-gradient(135deg,#fbfcff,#f7f9fd);transition:border-color .18s,box-shadow .18s,transform .18s}
  .modal-card>.count-line:hover,.modal-card>.review-line:hover,.modal-card>.request-line:hover{border-color:#ccd5ee;box-shadow:0 8px 24px rgba(43,62,105,.07);transform:translateY(-1px)}
  .modal-card>.count-line label,.modal-card>.review-line label{font-size:12px}
  .modal-card>.count-line input,.modal-card>.review-line input,.modal-card>.count-line textarea,.modal-card>.review-line textarea{min-height:46px;border-radius:12px;font-size:13px}
}
@media(max-width:640px){
  .modal-card,.wide-modal{height:100vh;height:100dvh;min-height:0;max-height:100dvh;margin:0;border-radius:20px 0 0 20px}
}

.request-stock-hint{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:8px;color:#63748e;font-size:12px;line-height:1.45}.request-suggestion-button{border:0;background:transparent;color:#4357e8;font-weight:700;padding:3px 0}.request-suggestion-button:hover{text-decoration:underline}.daily-activity{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 18px}.daily-activity-item{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 16px;border:1px solid var(--line);border-radius:14px;background:#fff}.daily-activity-item span{color:var(--muted);font-size:12px}.daily-activity-item b{font-size:17px}@media(max-width:760px){.daily-activity{grid-template-columns:repeat(2,minmax(0,1fr))}}@media print{.sidebar,.topbar,.page-heading,.list-toolbar,.filter-bar,.create-button,.table-action,.page-footer{display:none!important}.app-shell,.main-content,.page{display:block!important;width:100%!important;margin:0!important;padding:0!important;background:#fff!important;box-shadow:none!important}.page-card{break-inside:avoid;box-shadow:none!important;border:1px solid #ccd4df!important}body{background:#fff!important}}

.report-export-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:-10px 0 18px}.report-export-toolbar>span{font-size:12px;color:var(--muted)}@media(max-width:640px){.report-export-toolbar{align-items:stretch;flex-direction:column}.report-export-toolbar .secondary-button{width:100%;justify-content:center}}

.purchase-items-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-top:.25rem}
.purchase-item-lines{display:grid;gap:.75rem}
.purchase-item-row{display:grid;grid-template-columns:minmax(240px,1.6fr) minmax(120px,.65fr) minmax(170px,.8fr) 42px;align-items:end;gap:.75rem;padding:1rem;border:1px solid var(--line,#e5e9f2);border-radius:16px;background:var(--surface-soft,#f8faff)}
.purchase-item-row label{min-width:0}
.purchase-item-remove{width:42px;height:42px;color:#cb4053;border-color:#f4d7dc;background:#fff}
@media(max-width:760px){.purchase-items-heading{align-items:flex-start;flex-direction:column}.purchase-item-row{grid-template-columns:1fr 1fr}.purchase-item-row label:first-child{grid-column:1/-1}.purchase-item-remove{grid-column:2;justify-self:end}}

/* Stock overview: compact, responsive location switcher and matrix. */
.stock-toolbar{align-items:center;gap:10px;flex-wrap:wrap}.view-switch{display:inline-flex;gap:4px;padding:4px;border:1px solid var(--line,#e4e9f2);border-radius:12px;background:#f7f8fc}.view-switch a{padding:9px 13px;border-radius:9px;color:var(--muted,#71809a);font-weight:650;text-decoration:none;white-space:nowrap}.view-switch a.active{color:var(--ink,#1b2942);background:#fff;box-shadow:0 1px 4px #17243b12}.stock-matrix-wrap{overflow:hidden;border:1px solid var(--line,#e4e9f2);border-radius:16px;background:#fff;box-shadow:0 8px 24px #17243b08}.stock-matrix{min-width:720px;width:100%;border-collapse:separate;border-spacing:0}.stock-matrix th,.stock-matrix td{padding:14px 16px;border-bottom:1px solid #edf0f6;text-align:right;white-space:nowrap}.stock-matrix th:first-child,.stock-matrix td:first-child{text-align:left;position:sticky;left:0;background:#fff;z-index:1}.stock-matrix thead th{background:#f7f8fc;color:#697895;font-size:12px;font-weight:700}.stock-matrix thead th:first-child{background:#f7f8fc}.stock-matrix tbody tr:last-child td{border-bottom:0}.stock-matrix tbody tr:hover td{background:#fafbff}.stock-matrix tbody tr:hover td:first-child{background:#fafbff}.stock-matrix td small{display:block;margin-top:4px;color:#8490a6}
@media(max-width:720px){.stock-toolbar{align-items:stretch}.view-switch{width:100%;justify-content:space-between}.view-switch a{padding:8px 10px;font-size:13px}.stock-toolbar>.secondary-button{flex:1;justify-content:center}}
.transfer-line{display:grid;grid-template-columns:minmax(0,2fr) minmax(150px,1fr) auto;gap:12px;align-items:end;padding:14px;margin:10px 0;border:1px solid #e6ebf4;border-radius:14px;background:#fbfcff}.transfer-line label{margin:0}@media(max-width:620px){.transfer-line{grid-template-columns:1fr 1fr auto;padding:10px}}
.return-line{display:grid;grid-template-columns:minmax(0,2fr) minmax(150px,1fr) auto;gap:12px;align-items:end;padding:14px;margin:10px 0;border:1px solid #e6ebf4;border-radius:14px;background:#fbfcff}.return-line label{margin:0}@media(max-width:620px){.return-line{grid-template-columns:1fr 1fr auto;padding:10px}}
.category-manager{margin:0 0 18px;padding:0 18px;border:1px solid var(--line,#e5eaf3);border-radius:18px;background:rgba(255,255,255,.78)}
.category-manager>summary{display:flex;align-items:center;gap:10px;padding:17px 2px;cursor:pointer;font-weight:700;color:var(--ink,#23304a);list-style:none}
.category-manager>summary::-webkit-details-marker{display:none}.category-manager>summary:after{content:'⌄';margin-left:auto;color:var(--muted,#78859f)}
.category-manager>summary small{padding:4px 9px;border-radius:999px;background:#eef2ff;color:#5262dc;font-size:12px}
.category-manager-body{padding:0 0 18px}.category-create-form{display:grid;grid-template-columns:minmax(180px,1fr) minmax(180px,1fr) auto;align-items:end;gap:12px;padding:14px;border:1px solid var(--line,#e5eaf3);border-radius:14px;background:#f8faff}
.category-create-form label{display:grid;gap:7px;font-size:13px;font-weight:600}.category-chip-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:9px;margin-top:12px}.category-chip{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 13px;border:1px solid var(--line,#e5eaf3);border-radius:12px;background:#fff}.category-chip span{display:grid;gap:3px}.category-chip small{color:var(--muted,#78859f);font-size:12px}.category-chip form{margin:0}.category-chip button:disabled{opacity:.38;cursor:not-allowed}
@media(max-width:680px){.category-create-form{grid-template-columns:1fr}.category-chip-list{grid-template-columns:1fr}}
.barcode-camera-panel{grid-column:1/-1;display:grid;grid-template-columns:minmax(220px,420px) 1fr;align-items:center;gap:16px;padding:14px;border:1px solid var(--line,#e5eaf3);border-radius:16px;background:#f8faff}.barcode-camera-panel[hidden]{display:none}.barcode-camera-panel video{width:100%;max-height:280px;object-fit:cover;border-radius:12px;background:#101828}.barcode-camera-panel p{margin:0 0 12px;color:var(--muted,#78859f)}@media(max-width:640px){.barcode-camera-panel{grid-template-columns:1fr}}

/* TailAdmin-inspired light workspace theme: retain Diagen branding and Armenian workflows. */
:root{--ink:#182230;--muted:#667085;--line:#e4e7ec;--canvas:#f7f8fc;--nav:#fff;--blue:#465fff;--blue-soft:#eef2ff;--red:#d92d20;--green:#16804a;--amber:#b54708}
body{color:var(--ink);background:#f7f8fc}
.app-shell{background:#f7f8fc}
.sidebar{width:264px;flex-basis:264px;padding:22px 14px 14px;color:#475467;background:#fff;border-right:1px solid #eaecf0;box-shadow:2px 0 12px rgba(16,24,40,.025)}
.brand{margin-bottom:30px;color:#182230}.brand b{color:#667085}.brand-mark{border-radius:13px;background:linear-gradient(145deg,#6379ff,#465fff);box-shadow:0 7px 18px rgba(70,95,255,.2)}
.sidebar-caption{margin-bottom:10px;color:#98a2b3;font-size:10px;letter-spacing:.1em}
.nav-list{gap:4px}.nav-item{min-height:42px;border:1px solid transparent;border-radius:10px;color:#475467;font-size:13px;font-weight:550;transition:background .16s,color .16s,border-color .16s,transform .16s}
.nav-item:hover{color:#344054;background:#f8f9fc}.nav-item.active{color:#465fff;background:#eef2ff;border-color:#e0e7ff;box-shadow:none;font-weight:700}.nav-icon,.nav-item.active .nav-icon{color:#667085}.nav-item.active .nav-icon{color:#465fff}.nav-count{color:#465fff;background:#e8edff}
.sidebar-footer{border-color:#eaecf0}.profile b{color:#344054}.profile small{color:#98a2b3}.logout{color:#667085}.avatar,.top-avatar{color:#465fff;background:#eef2ff}
.topbar{position:sticky;top:0;z-index:25;height:70px;margin:0;padding:0 clamp(22px,3.2vw,44px);border:0;border-bottom:1px solid #eaecf0;border-radius:0;background:rgba(255,255,255,.94);box-shadow:0 1px 2px rgba(16,24,40,.025);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.global-search{max-width:380px}.global-search-field{height:42px;border:1px solid #e4e7ec;border-radius:11px;background:#fff;box-shadow:0 1px 2px rgba(16,24,40,.03)}.global-search-field:focus-within{border-color:#aab7ff;box-shadow:0 0 0 3px rgba(70,95,255,.1)}
.topbar-right{gap:10px}.today{font-size:12px;color:#667085}.header-icon-button{border-color:#eaecf0;border-radius:11px;background:#fff}.header-icon-button:hover{border-color:#d0d5dd;background:#f9fafb;box-shadow:0 2px 5px rgba(16,24,40,.05)}
.profile-trigger{border-color:#eaecf0;border-radius:12px;background:#fff}.profile-trigger:hover{background:#f9fafb}
.page{width:min(1460px,100%);padding:30px clamp(22px,3.2vw,44px) 50px}.page-heading{margin-bottom:20px}.page-heading h1{color:#182230;font-size:26px;letter-spacing:-.035em}.page-heading .muted{font-size:13px;line-height:1.55}.page-breadcrumb{color:#98a2b3;font-size:12px}.page-breadcrumb b{color:#344054}
.page-card,.metric-card,.table-card,.report-tile,.notification-card{border-color:#e4e7ec;border-radius:15px;background:#fff;box-shadow:0 1px 2px rgba(16,24,40,.035)}
.page-card,.metric-card,.table-card,.report-tile,.notification-card{transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}.page-card:hover,.metric-card:hover{border-color:#d7dce5;box-shadow:0 5px 16px rgba(16,24,40,.045)}
.metric-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:16px}.metric-card{min-height:112px;padding:19px}.metric-card strong{font-size:27px;color:#101828}.metric-card span:not(.metric-icon){font-size:12px;line-height:1.45}.metric-icon{width:42px;height:42px;border-radius:12px}
.dashboard-grid{gap:16px;margin-bottom:16px}.card-heading{margin-bottom:17px}.card-heading h2{font-size:16px}.card-heading p{font-size:12px;line-height:1.5}
.daily-activity-item{min-height:66px;border-color:#e4e7ec;border-radius:13px;padding:13px 15px}.daily-activity-item span{font-size:12px}.daily-activity-item b{font-size:18px}
.table-card{overflow:hidden}.table-scroll{border-radius:inherit}.table-card table{min-width:680px}.table-card th{padding:13px 15px;border-top:0;background:#f9fafb;color:#667085;font-size:10px;letter-spacing:.055em}.table-card td{padding:13px 15px;border-color:#eaecf0;color:#475467;font-size:12px;line-height:1.45}.table-card td b,.table-card td strong{color:#182230}.table-card td small{font-size:11px;color:#667085}.table-card tbody tr:hover{background:#fafbff}
.badge{min-height:23px;border-radius:999px;padding:4px 9px;font-size:10px}.code-pill{border:1px solid #e0e7ff;border-radius:7px;padding:5px 8px;color:#465fff;background:#f5f7ff;font-size:11px}
.list-toolbar{gap:12px;margin-bottom:14px}.search-wrap input,.filter-bar input,.filter-bar select{min-height:40px;border-color:#d0d5dd;border-radius:10px;background:#fff;font-size:13px}.filter-bar{gap:12px;padding:14px;border-color:#e4e7ec;border-radius:14px;background:#fff;box-shadow:0 1px 2px rgba(16,24,40,.025)}.filter-bar label,.form-grid label,.modal-card>label{gap:7px;color:#344054;font-size:12px}.filter-bar>button,.filter-bar>a{min-height:40px}
input,textarea,select{min-height:40px;border-color:#d0d5dd;border-radius:9px;padding:9px 11px;color:#182230;font-size:13px}input::placeholder,textarea::placeholder{color:#98a2b3}input:focus,textarea:focus,select:focus{border-color:#8091ff;box-shadow:0 0 0 3px rgba(70,95,255,.12)}
.primary-button,.secondary-button,.danger-button,.erp-button{min-height:40px;border-radius:10px;padding:9px 14px;font-size:13px;font-weight:650}.primary-button{background:#465fff;box-shadow:0 2px 4px rgba(70,95,255,.13)}.primary-button:hover{background:#364ee8}.secondary-button{border-color:#d0d5dd;color:#344054;background:#fff}.secondary-button:hover{border-color:#c3cad5;background:#f9fafb}.danger-button{background:#d92d20}
.table-action,.text-link,.danger-link{font-size:12px;font-weight:650}.table-action{color:#465fff}.danger-link{color:#d92d20}.icon-button{width:36px;height:36px;border:1px solid #eaecf0;border-radius:10px;background:#f9fafb}
.report-tile{min-height:144px;padding:17px}.report-tile:hover{transform:translateY(-2px);border-color:#c7d2fe;box-shadow:0 8px 22px rgba(52,64,84,.08)}.report-tile b{font-size:13px}.report-tile small{font-size:12px;line-height:1.55}
.roles-list,.permissions-card{border-color:#e4e7ec;border-radius:15px;background:#fff}.role-link{border-radius:9px}.role-link:hover,.role-link.active{color:#465fff;background:#eef2ff}.role-link.active small{color:#667085}
.modal-card{border-radius:24px 0 0 24px;background:#fff;box-shadow:0 24px 64px rgba(16,24,40,.22)}.modal-card>.modal-head{border-color:#eaecf0}.modal-card>.modal-actions{border-color:#eaecf0}.request-line,.review-line,.count-line{border-color:#e4e7ec;border-radius:12px;background:#f9fafb}
.app-footer{border-color:#eaecf0;color:#98a2b3;font-size:11px}.alert{border-radius:11px;font-size:13px}.notification-popover,.profile-popover{border-color:#e4e7ec;border-radius:16px;box-shadow:0 14px 42px rgba(16,24,40,.14)}
@media(min-width:1251px){.metric-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1250px) and (min-width:961px){.metric-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:960px){.sidebar{background:#fff;border-right:1px solid #eaecf0}.topbar{height:64px;margin:0;border-radius:0;padding-inline:16px}.page{padding:24px 18px 40px}.nav-item.active{color:#465fff;background:#eef2ff}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.page{padding:20px 13px 34px}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.metric-card{min-height:92px;padding:12px;border-radius:13px}.metric-card strong{font-size:22px}.metric-icon{width:35px;height:35px;border-radius:10px}.filter-bar{border-radius:12px}.table-card{border-radius:13px}.page-heading h1{font-size:23px}}

.page-heading>.page-create-action{align-self:flex-start;margin:0 0 0 auto;flex:none}
.report-export-toolbar>.page-create-action{margin-left:auto;flex:none}
@media(max-width:640px){.page-heading>.page-create-action,.report-export-toolbar>.page-create-action{width:100%;margin:0}.report-export-toolbar{flex-wrap:wrap}.report-export-toolbar>.page-create-action{justify-content:center}}

/* Keep sidebar labels at the same restrained scale on desktop and mobile. */
.sidebar .nav-item{font-size:13px;line-height:1.4}
.sidebar .nav-group-title{font-size:10px;line-height:1.35}
@media(max-width:640px){.sidebar .nav-item{font-size:13px}.sidebar .nav-group-title{font-size:10px}}
/* Keep Armenian data comfortably readable while preserving dense inventory tables. */
.table-card th{font-size:11px}.table-card td{font-size:13px}.table-card td small{font-size:12px}.badge{font-size:11px}.filter-bar label,.form-grid label,.modal-card>label{font-size:13px}.table-action,.text-link,.danger-link{font-size:13px}
@media(max-width:640px){.table-card th{font-size:11px}.table-card td{font-size:12px}.table-card td small{font-size:11px}}
@media(max-width:960px){.modal-card{border-radius:20px 0 0 20px}}
@media(max-width:640px){.modal-card{border-radius:20px 0 0 20px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important}}

/* Deep blue navigation panel: keep the sidebar aligned with Diagen's original brand. */
.sidebar{
  color:#c7d2e6;
  background:linear-gradient(180deg,#111b31 0%,#15213a 100%);
  border-right:1px solid #263653;
  box-shadow:6px 0 24px rgba(16,27,49,.08);
}
.sidebar .brand{color:#f8faff}
.sidebar .brand b{color:#aebcda}
.sidebar .sidebar-caption{color:#91a2c4}
.sidebar .nav-item{color:#bdc9df}
.sidebar .nav-item:hover{color:#fff;background:rgba(128,151,207,.13)}
.sidebar .nav-item.active{color:#fff;background:linear-gradient(100deg,rgba(70,95,255,.27),rgba(70,95,255,.12));border-color:rgba(126,145,255,.23);box-shadow:inset 3px 0 #8293ff}
.sidebar .nav-icon,.sidebar .nav-item.active .nav-icon{color:#9eafd2}
.sidebar .nav-item.active .nav-icon{color:#aeb9ff}
.sidebar .nav-count{color:#eef1ff;background:#4055b6}
.sidebar .sidebar-footer{border-color:#293956}
.sidebar .profile b{color:#f5f7ff}
.sidebar .profile small{color:#9aabc9}
.sidebar .logout{color:#a9b8d5}
.sidebar .logout:hover{color:#fff}
.sidebar .avatar{color:#eef1ff;background:#4055b6}
.sidebar .nav-list::-webkit-scrollbar-thumb{background:#435678}
@media(max-width:960px){.sidebar{background:linear-gradient(180deg,#111b31 0%,#15213a 100%);border-right:1px solid #263653}.sidebar .nav-item.active{color:#fff;background:linear-gradient(100deg,rgba(70,95,255,.27),rgba(70,95,255,.12))}}

/* Match the reference pattern: dialogs dock to the right edge as full-height drawers. */
@media(min-width:641px){
  .modal-backdrop{align-items:stretch!important;justify-content:flex-end!important}
  .modal-card,.wide-modal{height:100vh!important;height:100dvh!important;min-height:0!important;max-height:100dvh!important;margin:0!important;border-radius:0!important}
}

/* Consistent Armenian date field and calendar popover. */
.date-picker{position:relative;display:block;width:100%;min-width:0}
.date-picker-control{position:relative;display:flex;align-items:center;width:100%;min-height:44px;border:1px solid #d0d5dd;border-radius:11px;background:#fff;transition:border-color .16s,box-shadow .16s,background .16s}
.date-picker.is-focused .date-picker-control,.date-picker.is-open .date-picker-control{border-color:#8091ff;box-shadow:0 0 0 3px rgba(70,95,255,.12)}
.date-picker-text{width:100%;min-width:0;min-height:42px!important;border:0!important;border-radius:inherit!important;padding:10px 46px 10px 13px!important;outline:0!important;background:transparent!important;box-shadow:none!important;color:#182230!important;font-size:14px!important;font-weight:550}
.date-picker-text::placeholder{color:#98a2b3;font-weight:450}
.date-picker-trigger{position:absolute;right:5px;top:50%;display:grid;place-items:center;width:34px;height:34px;transform:translateY(-50%);border:0;border-radius:8px;color:#667085;background:transparent;transition:color .16s,background .16s}
.date-picker-trigger:hover,.date-picker.is-open .date-picker-trigger{color:#465fff;background:#eef2ff}
.date-picker-trigger svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.date-picker-native{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;clip-path:inset(50%)!important;white-space:nowrap!important}
.date-picker-popover{position:fixed;z-index:220;width:304px;padding:14px;border:1px solid #e3e9f3;border-radius:16px;background:#fff;box-shadow:0 18px 50px rgba(20,35,65,.2);animation:date-picker-in .14s ease-out}
.date-picker-popover[hidden]{display:none}
.date-picker-heading{display:grid;grid-template-columns:36px 1fr 36px;align-items:center;gap:8px;margin-bottom:12px;text-align:center}
.date-picker-heading strong{color:#1d2939;font-size:14px;font-weight:750}
.date-picker-nav{display:grid;place-items:center;width:34px;height:34px;border:1px solid #e9edf4;border-radius:10px;color:#52617a;background:#f8faff;font-size:22px;line-height:1;transition:color .15s,border-color .15s,background .15s}
.date-picker-nav:hover{border-color:#cdd6ff;color:#465fff;background:#eef2ff}
.date-picker-weekdays,.date-picker-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;text-align:center}
.date-picker-weekdays{margin-bottom:5px;color:#8b97aa;font-size:10px;font-weight:700}
.date-picker-weekdays span{padding:5px 0}
.date-picker-day{display:grid;place-items:center;aspect-ratio:1;border:1px solid transparent;border-radius:9px;color:#344054;background:#fff;font-size:12px;transition:color .14s,border-color .14s,background .14s}
.date-picker-day:hover:not(:disabled){border-color:#d9e0ff;color:#465fff;background:#f2f4ff}
.date-picker-day.outside{color:#b1bac8}
.date-picker-day.today{border-color:#cfd7ff;color:#465fff;font-weight:750}
.date-picker-day.selected{border-color:#465fff;color:#fff;background:#465fff;font-weight:750;box-shadow:0 4px 10px rgba(70,95,255,.2)}
.date-picker-day:disabled{color:#c7cdd7;background:#fafbfc;cursor:not-allowed}
.date-picker-footer{display:flex;justify-content:space-between;gap:10px;margin-top:11px;padding-top:10px;border-top:1px solid #edf0f5}
.date-picker-footer button{border:0;padding:6px 8px;color:#465fff;background:transparent;font-size:12px;font-weight:650}
.date-picker-footer button:hover{color:#293dc7;text-decoration:underline}
@keyframes date-picker-in{from{opacity:0;transform:translateY(-4px) scale(.99)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:480px){.date-picker-control{min-height:44px}.date-picker-text{font-size:13px!important}.date-picker-popover{width:min(304px,calc(100vw - 24px));padding:12px;border-radius:14px}}
.inventory-empty-state{display:flex;align-items:flex-start;gap:16px;margin:24px 30px;padding:22px 24px;border:1px solid #e2e8f0;border-radius:16px;background:linear-gradient(145deg,#f8faff,#f2f5fb);color:#334155}
.inventory-empty-icon{display:grid;place-items:center;flex:none;width:38px;height:38px;border-radius:12px;color:#465fff;background:#e8edff;font-size:20px;font-weight:800}
.inventory-empty-state b{display:block;margin:1px 0 7px;color:#1d2939;font-size:15px}
.inventory-empty-state p{max-width:690px;color:#667085;font-size:13px;line-height:1.7}
@media(max-width:640px){.inventory-empty-state{margin:18px 16px;padding:17px;gap:12px}.inventory-empty-state p{font-size:12px}}

/* Responsive records: keep list pages scannable instead of turning every field into a full-width row. */
@media(max-width:1280px){
  .table-card tbody{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:12px}
  .table-card tbody tr:has(td[colspan]){grid-column:1/-1}
  .table-card tbody tr{align-content:start;border-color:#e2e8f0;border-radius:15px;box-shadow:0 2px 8px rgba(16,24,40,.035)}
  .table-card tbody tr:hover{border-color:#cfd8eb;box-shadow:0 7px 20px rgba(16,24,40,.07)}
  .table-card tbody td{grid-template-columns:minmax(92px,.72fr) minmax(0,1.45fr);gap:10px;min-height:48px;padding:10px 12px;border-top-color:#f0f2f6;font-size:13px;line-height:1.45}
  .table-card tbody td::before{align-self:center;color:#738198;font-size:11px;font-weight:650;line-height:1.4}
  .table-card tbody td:first-child{grid-column:1/-1;min-height:58px;border-top:0;background:linear-gradient(110deg,#f7f8ff,#fff)}
  .table-card tbody td:first-child::before{color:#667085;font-size:11px}
  .table-card tbody td:first-child .cell-value{color:#1d2939;font-size:14px;font-weight:700}
  .table-card tbody td:first-child .cell-value small{margin-top:3px;font-size:12px;font-weight:500}
  .table-card tbody td.actions-cell{grid-column:1/-1;min-height:48px;justify-content:flex-end;background:#fbfcfe}
  .table-card tbody td[colspan]{grid-column:1/-1}
  .table-card .cell-value{line-height:1.5}
  .table-card tbody td small{font-size:12px;line-height:1.45}
}
@media(max-width:640px){
  .table-card tbody{grid-template-columns:minmax(0,1fr);gap:10px;padding:10px}
  .table-card tbody td{grid-template-columns:minmax(90px,.7fr) minmax(0,1.3fr);min-height:44px;padding:9px 11px;font-size:13px}
  .table-card tbody td::before{font-size:11px}
  .table-card tbody td:first-child{min-height:54px}
  .table-card tbody td:first-child .cell-value{font-size:14px}
}

/* Improve clarity across dense administration and reporting screens. */
.permission-module{padding:16px 0;border-top-color:#edf0f5}
.permission-module h3{margin-bottom:12px;color:#27344a;font-size:14px}
.permission-checks{gap:10px 18px}
.check-label{font-size:12px!important;line-height:1.45}
.role-link{padding:12px;border-radius:11px}
.role-link b{font-size:13px}.role-link small{font-size:11px}
.page-heading .muted{max-width:760px}
.empty-state{font-size:13px;line-height:1.6}
body{font-size:14px}
.sidebar .nav-item{font-size:14px}
.profile b{font-size:12px}.profile small{font-size:10px}
.today,.global-search-field input{font-size:13px}
.page-heading h1{font-size:26px}
.table-card th{font-size:11px}.table-card td{font-size:13px}
.search-wrap input,.filter-bar input,.filter-bar select,input,textarea,select{font-size:14px}
.primary-button,.secondary-button,.danger-button,.erp-button{font-size:14px}
.filter-bar label,.form-grid label,.modal-card>label,.form-stack label{font-size:13px}
.report-tile b{font-size:14px}.report-tile small{font-size:13px}
@media(max-width:640px){.page-heading h1{font-size:24px}.table-card td{font-size:13px}.sidebar .nav-item{font-size:14px}.primary-button,.secondary-button,.danger-button,.erp-button{font-size:13px}}

/* Centered, accessible confirmation dialog for destructive and irreversible actions. */
.confirm-backdrop.modal-backdrop{z-index:260;display:grid!important;align-items:center!important;justify-content:center!important;overflow-y:auto;padding:22px!important;background:rgba(22,31,49,.76)!important;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.confirm-backdrop.modal-backdrop[hidden]{display:none!important}
.confirm-dialog{width:min(520px,100%);display:flex;flex-direction:column;align-items:center;gap:0;margin:auto;padding:34px 34px 28px;border:1px solid rgba(232,236,244,.9);border-radius:24px;background:#fff;box-shadow:0 28px 90px rgba(10,18,35,.3);text-align:center;animation:confirm-dialog-in .18s cubic-bezier(.2,.8,.2,1) both}
.confirm-icon{display:grid;place-items:center;width:86px;height:86px;margin-bottom:22px;border-radius:50%;color:#e1342b;background:#fff1f0}
.confirm-icon svg{width:38px;height:38px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.confirm-dialog h2{color:#202b3c;font-size:22px;line-height:1.35;font-weight:750;letter-spacing:-.025em}
.confirm-dialog p{max-width:420px;margin:10px 0 26px;color:#737f93;font-size:15px;line-height:1.7}
.confirm-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:12px;width:100%}
.confirm-actions .secondary-button,.confirm-actions .danger-button{min-height:48px;padding:11px 21px;border-radius:12px;font-size:14px}
.confirm-actions .secondary-button{border-color:#d9e0eb;color:#45536a;background:#fff;box-shadow:0 2px 4px rgba(16,24,40,.04)}
.confirm-actions .secondary-button:hover{border-color:#bfc9d9;background:#f8faff}
.confirm-actions .danger-button{border-color:#ed4037;color:#fff;background:#ed4037;box-shadow:0 7px 16px rgba(237,64,55,.19)}
.confirm-actions .danger-button:hover{border-color:#d92f27;background:#d92f27}
.confirm-actions button:focus-visible{outline:3px solid rgba(70,95,255,.35);outline-offset:3px}
@keyframes confirm-dialog-in{from{opacity:0;transform:translateY(8px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:520px){.confirm-backdrop.modal-backdrop{padding:15px!important}.confirm-dialog{padding:27px 20px 22px;border-radius:20px}.confirm-icon{width:72px;height:72px;margin-bottom:17px}.confirm-icon svg{width:33px;height:33px}.confirm-dialog h2{font-size:19px}.confirm-dialog p{font-size:14px;margin-bottom:22px}.confirm-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}.confirm-actions .secondary-button,.confirm-actions .danger-button{min-height:44px;padding:9px;font-size:13px;white-space:normal}}
@media(prefers-reduced-motion:reduce){.confirm-dialog{animation:none}}

/* Use a quiet neutral focus state for fields instead of the heavy blue ring. */
input:focus,textarea:focus,select:focus{border-color:#aeb8c7!important;box-shadow:none!important;outline:none!important}
input:focus-visible,textarea:focus-visible,select:focus-visible{outline:1px solid #b8c1cf!important;outline-offset:1px}
.date-picker.is-focused .date-picker-control,.date-picker.is-open .date-picker-control{border-color:#aeb8c7!important;box-shadow:none!important}

/* Role creation and permission management. */
.roles-list-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px}
.roles-list-heading h2{margin:0}
.roles-list-heading .primary-button{flex:none;min-height:38px;border-radius:10px;font-size:12px}
.roles-list-heading .primary-button svg,.role-create-modal .primary-button svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.role-protected-note{padding:8px 11px;border:1px solid #e4e7ec;border-radius:9px;color:#667085;background:#f8f9fb;font-size:12px;font-weight:650}
.role-create-modal{gap:18px!important;padding:24px!important;border-radius:17px!important}
.role-create-modal .modal-head{align-items:flex-start}
.role-create-modal .modal-head>div{display:grid;grid-template-columns:42px 1fr;column-gap:12px;align-items:center}
.role-modal-icon{grid-row:span 2;display:grid;place-items:center;width:42px;height:42px;border-radius:13px;color:#465fff;background:#eef2ff}
.role-modal-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.role-create-modal .modal-head h2{font-size:19px}
.role-create-modal .modal-head p{grid-column:2;margin-top:4px;font-size:12px;line-height:1.55}
.role-name-field{display:grid;gap:7px;color:#344054;font-size:13px;font-weight:650}
.role-name-field input{min-height:46px;border-radius:10px;font-size:14px}
.role-create-hint{display:flex;align-items:flex-start;gap:10px;padding:12px 13px;border:1px solid #e4eaff;border-radius:11px;color:#52617a;background:#f6f8ff}
.role-create-hint>span{flex:none;color:#465fff;font-size:17px;line-height:1.25}
.role-create-hint p{font-size:12px;line-height:1.55}
.role-create-modal .modal-actions{padding-top:4px}
.role-create-modal .modal-actions button{min-height:42px;border-radius:10px;font-size:13px}
@media(max-width:640px){.roles-list-heading{align-items:flex-start}.roles-list-heading h2{font-size:14px}.roles-list-heading .primary-button{padding:8px 10px}.role-create-modal{padding:20px!important}.role-create-modal .modal-head>div{grid-template-columns:36px 1fr;column-gap:9px}.role-modal-icon{width:36px;height:36px;border-radius:11px}}
.search-wrap{position:relative}
.search-wrap>span{top:50%!important;left:13px;display:grid;place-items:center;line-height:1;transform:translateY(-50%)}

/* One consistent right-side form drawer across all create/edit/review workflows. */
.modal-backdrop:not(.confirm-backdrop)[hidden]{display:none!important}
.modal-backdrop:not(.confirm-backdrop):not([hidden]){display:flex!important;align-items:stretch!important;justify-content:flex-end!important;overflow:hidden!important;padding:0!important}
.modal-backdrop:not(.confirm-backdrop)>.modal-card,
.modal-backdrop:not(.confirm-backdrop)>.wide-modal{width:min(1040px,78vw)!important;height:100vh!important;height:100dvh!important;min-height:0!important;max-height:100dvh!important;margin:0!important;gap:0!important;overflow-x:hidden!important;overflow-y:auto!important;padding:0!important;border:0!important;border-left:1px solid #e8edf4!important;border-radius:24px 0 0 24px!important;background:#fff!important;box-shadow:-24px 0 70px rgba(10,18,34,.2)!important;overscroll-behavior:contain}
.modal-backdrop:not(.confirm-backdrop)>.modal-card>.modal-head,
.modal-backdrop:not(.confirm-backdrop)>.wide-modal>.modal-head{position:sticky;top:0;z-index:3;flex:none;align-items:center;padding:24px 30px 20px;border-bottom:1px solid #e8edf4;background:rgba(255,255,255,.97);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.modal-backdrop:not(.confirm-backdrop)>.modal-card>.form-grid,
.modal-backdrop:not(.confirm-backdrop)>.wide-modal>.form-grid,
.modal-backdrop:not(.confirm-backdrop)>.modal-card>.count-list,
.modal-backdrop:not(.confirm-backdrop)>.wide-modal>.count-list{flex:none;width:auto;margin:24px 30px 28px}
.modal-backdrop:not(.confirm-backdrop)>.modal-card>.modal-actions,
.modal-backdrop:not(.confirm-backdrop)>.wide-modal>.modal-actions{position:sticky;bottom:0;z-index:3;flex:none;justify-content:flex-end;flex-wrap:wrap;gap:10px;margin-top:auto;padding:17px 30px max(20px,env(safe-area-inset-bottom));border-top:1px solid #e8edf4;background:rgba(255,255,255,.97);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.modal-backdrop:not(.confirm-backdrop)>.role-create-modal{gap:18px!important}
@media(max-width:640px){
  .modal-backdrop:not(.confirm-backdrop)>.modal-card,
  .modal-backdrop:not(.confirm-backdrop)>.wide-modal{width:100vw!important;border-radius:20px 0 0 20px!important}
  .modal-backdrop:not(.confirm-backdrop)>.modal-card>.modal-head,
  .modal-backdrop:not(.confirm-backdrop)>.wide-modal>.modal-head{padding:18px 18px 15px}
  .modal-backdrop:not(.confirm-backdrop)>.modal-card>.form-grid,
  .modal-backdrop:not(.confirm-backdrop)>.wide-modal>.form-grid,
  .modal-backdrop:not(.confirm-backdrop)>.modal-card>.count-list,
  .modal-backdrop:not(.confirm-backdrop)>.wide-modal>.count-list{margin:18px 16px 22px}
  .modal-backdrop:not(.confirm-backdrop)>.modal-card>.modal-actions,
  .modal-backdrop:not(.confirm-backdrop)>.wide-modal>.modal-actions{gap:8px;padding:13px 16px max(16px,env(safe-area-inset-bottom))}
}

@media print{
  @page{size:A4 landscape;margin:12mm}
  body{min-width:0;color:#1c2434;background:#fff!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  .sidebar,.topbar,.report-export-toolbar,.app-footer,.page-footer,.list-toolbar,.filter-bar,.create-button,.table-action{display:none!important}
  .app-shell,.main-content,.page{display:block!important;width:100%!important;min-height:0!important;max-width:none!important;margin:0!important;padding:0!important;background:#fff!important;box-shadow:none!important}
  .page-heading{display:block!important;margin:0 0 8mm!important;padding:0 0 4mm!important;border-bottom:1px solid #d9e0ea}
  .page-heading h1{font-size:20pt!important}
  .page-heading .muted,.page-breadcrumb{color:#59677e!important}
  .report-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:4mm!important;margin-bottom:5mm!important}
  .report-tile,.metric-card,.report-usage-card{break-inside:avoid;box-shadow:none!important;border-color:#d7deea!important}
  .report-tile{padding:4mm!important}
  .report-usage-card{break-before:page}
  .report-usage-card .table-card{overflow:visible!important}
  .report-usage-card table{width:100%!important;min-width:0!important}
  .report-usage-card th,.report-usage-card td{padding:2.5mm!important;font-size:9pt!important;white-space:normal!important}
  a{color:inherit!important;text-decoration:none!important}
}

/* Simplified, task-based navigation */
.nav-list{gap:7px}
.nav-group{display:grid;gap:2px}
.nav-group-title{min-height:29px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:4px 11px;color:#818da4;font-size:10px;font-weight:760;letter-spacing:.055em;list-style:none;cursor:pointer;user-select:none}
.nav-group-title::-webkit-details-marker{display:none}
.nav-group-title svg{width:14px;height:14px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;transition:transform .18s ease}
.nav-group[open]>.nav-group-title svg{transform:rotate(180deg)}
.nav-group-title:hover{color:#d8e0f0}
.nav-group-items{display:grid;gap:3px}
.nav-group .nav-item{min-height:38px}
body.sidebar-collapsed .nav-group-title{justify-content:center;min-height:16px;padding:0;font-size:0}
body.sidebar-collapsed .nav-group-title svg{display:none}
body.sidebar-collapsed .nav-group-title::after{content:"";width:18px;border-top:1px solid #465168}
@media(max-width:960px){.nav-group-title{min-height:28px}.nav-group .nav-item{min-height:42px}}
@media(max-width:960px){body.sidebar-collapsed .nav-group-title{justify-content:space-between;min-height:28px;padding:4px 11px;font-size:10px}body.sidebar-collapsed .nav-group-title svg{display:block}body.sidebar-collapsed .nav-group-title::after{display:none}}

/* Sidebar navigation: clear icon tiles, highlighted open groups, and linked submenus. */
.sidebar .dashboard-nav-item,.sidebar .nav-group-title{min-height:58px;display:flex;align-items:center;gap:12px;padding:7px 9px;border:1px solid transparent;border-radius:15px;color:#c3cee2;background:transparent;font-size:13px;font-weight:620;letter-spacing:0;text-align:left;transition:background .16s,border-color .16s,color .16s}
.sidebar .dashboard-nav-item{width:100%;text-decoration:none}
.sidebar .dashboard-nav-item:hover,.sidebar .nav-group-title:hover{color:#fff;background:rgba(128,151,207,.1)}
.sidebar .dashboard-nav-item.active,.sidebar .nav-group[open]>.nav-group-title{color:#fff;background:linear-gradient(100deg,rgba(70,95,255,.21),rgba(70,95,255,.1));border-color:rgba(126,145,255,.27);box-shadow:inset 3px 0 #8293ff}
.sidebar .dashboard-nav-item .nav-icon,.sidebar .nav-group-icon{width:42px;height:42px;display:grid;place-items:center;flex:0 0 42px;border:1px solid rgba(171,190,225,.2);border-radius:13px;color:#b5c3df;background:rgba(255,255,255,.055);box-shadow:0 2px 5px rgba(5,13,29,.08)}
.sidebar .dashboard-nav-item.active .nav-icon,.sidebar .nav-group[open] .nav-group-icon{color:#aeb9ff;border-color:rgba(126,145,255,.3);background:rgba(83,104,225,.19)}
.sidebar .dashboard-nav-item .nav-icon svg,.sidebar .nav-group-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.sidebar .nav-group-title{list-style:none;cursor:pointer;user-select:none}
.sidebar .nav-group-title::-webkit-details-marker{display:none}
.sidebar .nav-group-title>.nav-group-label{min-width:0;flex:1;line-height:1.4}
.sidebar .nav-group-title>svg{width:17px;height:17px;flex:none;margin-left:auto;fill:none;stroke:#9eacc6;stroke-width:1.8;transition:transform .18s,color .18s}
.sidebar .nav-group[open]>.nav-group-title>svg{transform:rotate(180deg);stroke:#aeb9ff}
.sidebar .nav-group-items{position:relative;display:grid;gap:3px;margin:0 0 9px;padding:4px 0 5px 49px}
.sidebar .nav-group-items::before{position:absolute;top:3px;bottom:7px;left:21px;width:1px;background:#354565;content:""}
.sidebar .nav-group-items .nav-item{min-height:40px;padding:8px 11px;border:1px solid transparent;border-radius:9px;color:#aebbd3;background:transparent;font-size:13px;font-weight:500;line-height:1.4;box-shadow:none}
.sidebar .nav-group-items .nav-icon{display:none}
.sidebar .nav-group-items .nav-item:hover{color:#fff;background:rgba(128,151,207,.1)}
.sidebar .nav-group-items .nav-item.active{color:#fff;background:rgba(80,105,219,.19);border-color:rgba(126,145,255,.16);box-shadow:none;font-weight:680}
body.sidebar-collapsed .sidebar .dashboard-nav-item,body.sidebar-collapsed .sidebar .nav-group-title{justify-content:center;padding:6px}
body.sidebar-collapsed .sidebar .dashboard-nav-item>span:not(.nav-icon),body.sidebar-collapsed .sidebar .nav-group-label,body.sidebar-collapsed .sidebar .nav-group-title>svg,body.sidebar-collapsed .sidebar .nav-group-items{display:none}
body.sidebar-collapsed .sidebar .nav-group-title::after{display:none}
body.sidebar-collapsed .sidebar .nav-group-title .nav-group-icon svg{display:block}
@media(max-width:960px){.sidebar .dashboard-nav-item,.sidebar .nav-group-title{min-height:58px}.sidebar .nav-group-items .nav-item{min-height:42px}}

.inline-form{display:inline}
.sidebar .nav-group-items .nav-item{position:relative;padding-left:34px}
.sidebar .nav-group-items .nav-icon{position:absolute;left:10px;top:50%;width:16px;height:16px;display:grid;place-items:center;transform:translateY(-50%);color:#8798b8;font-size:14px;line-height:1}
.sidebar .nav-group-items .nav-icon svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.sidebar .nav-group-items .nav-item:hover .nav-icon{color:#d5ddff}
.sidebar .nav-group-items .nav-item.active .nav-icon{color:#aeb9ff}

/* Collapsed sidebar groups open their destinations in an accessible flyout. */
.sidebar-nav-flyout{position:fixed;z-index:1200;width:min(260px,calc(100vw - 100px));max-height:calc(100vh - 24px);overflow-y:auto;display:grid;align-content:start;gap:4px;padding:8px;border:1px solid #2c3d5d;border-radius:14px;color:#d5def0;background:linear-gradient(160deg,#18243d,#111b30);box-shadow:0 18px 46px rgba(8,16,32,.34);}
.sidebar-nav-flyout[hidden]{display:none}
.sidebar-nav-flyout .nav-item{min-height:42px;display:flex;align-items:center;gap:10px;padding:8px 10px;border:1px solid transparent;border-radius:9px;color:#bdc9df;font-size:13px;font-weight:550;line-height:1.4;}
body.sidebar-collapsed .sidebar-nav-flyout .nav-item{width:100%;min-width:0;justify-content:flex-start;position:relative;padding:9px 12px;text-align:left;}
.sidebar-nav-flyout .nav-item:hover,.sidebar-nav-flyout .nav-item:focus-visible{color:#fff;background:rgba(128,151,207,.13)}
.sidebar-nav-flyout .nav-item.active{color:#fff;background:rgba(80,105,219,.2);border-color:rgba(126,145,255,.2);font-weight:680}
body.sidebar-collapsed .sidebar-nav-flyout .nav-item>span:not(.nav-icon){display:block;flex:1;min-width:0;text-align:left;overflow-wrap:anywhere}
.sidebar-nav-flyout .nav-icon{width:20px;height:20px;display:grid;place-items:center;flex:0 0 20px;color:#9eafd2;font-size:15px}
.sidebar-nav-flyout .nav-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.sidebar-nav-flyout .nav-count{position:static;min-width:20px;height:20px;margin-left:auto;padding:0 6px;font-size:10px}
@media(hover:hover) and (pointer:fine) and (min-width:961px){body.sidebar-collapsed .sidebar-nav-flyout{animation:sidebar-flyout-enter .14s ease-out both}}
@keyframes sidebar-flyout-enter{from{opacity:0;transform:translateX(-5px)}to{opacity:1;transform:translateX(0)}}
@media(prefers-reduced-motion:reduce){.sidebar-nav-flyout{animation:none!important}}
@media(max-width:480px){.sidebar-nav-flyout{width:min(250px,calc(100vw - 84px));max-height:calc(100dvh - 24px)}}
.inventory-new-lot-fields{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:16px;border:1px solid #dce5f3;border-radius:14px;background:linear-gradient(135deg,#f8faff,#f4f7fc)}
.inventory-new-lot-fields>strong{grid-column:1/-1;color:#28364f;font-size:13px}
.inventory-new-lot-fields>strong small{font-weight:500}
.inventory-new-lot-fields label{display:grid;gap:7px;color:#53627a;font-size:12px;font-weight:650}
.inventory-new-lot-fields input,.inventory-new-lot-fields select{width:100%;min-width:0;min-height:42px;padding:9px 11px;border:1px solid #d5deeb;border-radius:10px;background:#fff;color:#25324a}
@media(max-width:640px){.inventory-new-lot-fields{grid-template-columns:1fr;padding:13px}.inventory-new-lot-fields>strong{grid-column:auto}}
.receipt-lines{display:grid;gap:12px;margin:10px 30px 0}
.receipt-line{position:relative;display:grid;grid-template-columns:minmax(220px,2fr) repeat(4,minmax(120px,1fr));gap:12px;align-items:end;padding:16px 54px 16px 16px;border:1px solid #e0e7f1;border-radius:14px;background:#f9fbff}
.receipt-line label{display:grid;gap:7px;color:#52627a;font-size:12px;font-weight:650}
.receipt-line input,.receipt-line select{width:100%;min-width:0;min-height:42px;padding:9px 11px;border:1px solid #d5deeb;border-radius:10px;background:#fff;color:#25324a}
.receipt-line-remove{position:absolute;right:12px;top:50%;transform:translateY(-50%)}
#receipts-modal>.form-hint{margin:8px 30px 0;color:#73819a;font-size:12px}
#receipts-modal>#receipt-add-line{margin:12px 30px 0}
@media(max-width:900px){.receipt-line{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.receipt-lines{margin:8px 16px 0}.receipt-line{grid-template-columns:1fr;padding:14px 48px 14px 14px}#receipts-modal>.form-hint,#receipts-modal>#receipt-add-line{margin-left:16px;margin-right:16px}}

/* Unified finishing layer for consistent, calm hierarchy across every module. */
:root{
  --canvas:#f4f6fb;
  --line:#e5eaf2;
  --blue:#4659e8;
  --blue-soft:#eef1ff;
  --shadow-card:0 8px 24px rgba(28,42,71,.045),0 1px 2px rgba(28,42,71,.035);
  font-family:Inter,"Noto Sans Armenian","Segoe UI",Arial,sans-serif;
  font-synthesis:none;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
body{color:#202c42;background:var(--canvas)}
.topbar{border-bottom-color:#e6ebf3;box-shadow:0 3px 14px rgba(30,45,72,.025)}
.page{padding-top:36px}
.page-heading{align-items:center;margin-bottom:25px}
.page-heading h1{color:#1e2a40;font-size:clamp(24px,2vw,30px);letter-spacing:-.035em}
.page-heading .muted{max-width:780px;color:#77849b;font-size:14px;line-height:1.65}
.page-breadcrumb{flex:none;color:#8290a7;font-size:12px}
.page-breadcrumb b{color:#35435c;font-weight:700}
.page>.create-button{display:flex;width:fit-content;max-width:100%;margin:0 0 16px auto;white-space:normal;text-align:center}
.page-card,.metric-card{border-color:#e5eaf2;border-radius:16px;box-shadow:var(--shadow-card)}
.metric-card{min-height:102px;padding:19px}
.metric-card strong{color:#1f2b40;font-size:25px;font-variant-numeric:tabular-nums}
.metric-card span:not(.metric-icon){font-size:11px;line-height:1.45}
.report-tile{min-height:138px;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
.report-tile:hover{transform:translateY(-2px);border-color:#cfd7ff;box-shadow:0 14px 30px rgba(45,63,121,.09)}
.table-card{border-radius:16px;box-shadow:var(--shadow-card)}
.table-card table{min-width:760px}
.table-card thead th{position:sticky;top:0;z-index:1;color:#6e7c94;background:#f7f9fd}
.table-card tbody tr:hover{background:#f7f9ff}
.table-card th,.table-card td{line-height:1.5}
.table-card td small{line-height:1.45}
.filter-bar{border-color:#e5eaf2;border-radius:15px;box-shadow:var(--shadow-card)}
.filter-bar label,.form-grid label,.modal-card>label,.form-stack label{line-height:1.45}
input,textarea,select{border-color:#d9e1ed;border-radius:10px;transition:border-color .15s ease,box-shadow .15s ease,background-color .15s ease}
input:focus-visible,textarea:focus-visible,select:focus-visible{outline:0!important;border-color:#7484f0!important;box-shadow:0 0 0 3px rgba(70,89,232,.15)!important}
button,a,.nav-item{ -webkit-tap-highlight-color:transparent }
.primary-button,.secondary-button,.danger-button{min-height:40px;border-radius:10px;font-size:12px;transition:transform .14s ease,background-color .14s ease,border-color .14s ease,box-shadow .14s ease}
.primary-button:hover,.secondary-button:hover,.danger-button:hover{transform:translateY(-1px)}
.primary-button:focus-visible,.secondary-button:focus-visible,.danger-button:focus-visible,.icon-button:focus-visible,.table-action:focus-visible,.nav-item:focus-visible{outline:3px solid rgba(70,89,232,.24);outline-offset:2px}
.badge{min-height:24px;padding:4px 10px;font-size:10px}
.empty-state{line-height:1.6}
@media(max-width:960px){
  .page{padding-top:28px}
  .page-heading{align-items:flex-start}
  .page-heading .muted{font-size:13px}
  .page-breadcrumb{max-width:42%;overflow-wrap:anywhere;text-align:right}
  .metric-card{min-height:92px}
}
@media(max-width:640px){
  .page{padding:22px 14px 36px}
  .page-heading{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;margin-bottom:19px}
  .page-heading h1{font-size:23px}
  .page-heading .muted{font-size:13px}
  .page-breadcrumb{max-width:100%;text-align:left;font-size:11px}
  .report-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .report-tile{min-height:132px;padding:15px}
  .metric-grid{gap:10px}
  .metric-card{min-width:0;padding:13px}
  .filter-bar{padding:12px}
  .filter-bar label{flex:1 1 145px;min-width:0}
  .filter-bar>button,.filter-bar>a{flex:1 1 auto}
  .page-card{border-radius:14px}
  .table-card{border-radius:14px}
}
@media(max-width:390px){
  .report-grid{grid-template-columns:1fr}
  .report-tile{min-height:112px}
  .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .metric-card strong{font-size:21px}
}
@media(prefers-reduced-motion:reduce){.report-tile,.primary-button,.secondary-button,.danger-button{transition:none}}

/* Compact dialogs should fit their content; reserve the full-height drawer for wide workflows. */
.modal-backdrop:not(.confirm-backdrop):has(>.modal-card:not(.wide-modal)):not([hidden]){align-items:center!important;justify-content:center!important;padding:24px!important}
.modal-backdrop:not(.confirm-backdrop)>.modal-card:not(.wide-modal){width:min(560px,calc(100vw - 48px))!important;height:auto!important;min-height:0!important;max-height:min(88dvh,760px)!important;margin:auto!important;gap:16px!important;overflow-x:hidden!important;overflow-y:auto!important;padding:22px!important;border:1px solid #e3e8f0!important;border-radius:10px!important;background:#fff!important;box-shadow:0 20px 64px rgba(10,18,34,.22)!important;animation:compact-dialog-in .18s ease-out both}
.modal-backdrop:not(.confirm-backdrop)>.modal-card:not(.wide-modal)>.modal-head{position:static!important;flex:none!important;padding:0 0 14px!important;border-bottom:1px solid #edf0f5!important;background:#fff!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.modal-backdrop:not(.confirm-backdrop)>.modal-card:not(.wide-modal)>.modal-head h2{font-size:19px;line-height:1.35}
.modal-backdrop:not(.confirm-backdrop)>.modal-card:not(.wide-modal)>.modal-head p{font-size:12px}
.modal-backdrop:not(.confirm-backdrop)>.modal-card:not(.wide-modal)>label{width:100%;margin:0!important}
.modal-backdrop:not(.confirm-backdrop)>.modal-card:not(.wide-modal)>.muted{margin:0;color:#6f7d93;font-size:13px;line-height:1.6}
.modal-backdrop:not(.confirm-backdrop)>.modal-card:not(.wide-modal)>.modal-actions{position:static!important;flex:none!important;justify-content:flex-end;margin:0!important;padding:14px 0 0!important;border-top:1px solid #edf0f5;background:#fff!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.modal-backdrop:not(.confirm-backdrop)>.modal-card:not(.wide-modal) .modal-actions .primary-button,.modal-backdrop:not(.confirm-backdrop)>.modal-card:not(.wide-modal) .modal-actions .secondary-button{min-height:40px;border-radius:7px;padding:9px 14px;font-size:12px}
@keyframes compact-dialog-in{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:640px){
  .modal-backdrop:not(.confirm-backdrop):has(>.modal-card:not(.wide-modal)):not([hidden]){align-items:center!important;justify-content:center!important;padding:12px!important}
  .modal-backdrop:not(.confirm-backdrop)>.modal-card:not(.wide-modal){width:min(560px,calc(100vw - 24px))!important;max-height:calc(100dvh - 24px)!important;padding:18px!important;border-radius:8px!important}
  .modal-backdrop:not(.confirm-backdrop)>.modal-card:not(.wide-modal)>.modal-head{padding-bottom:12px!important}
  .modal-backdrop:not(.confirm-backdrop)>.modal-card:not(.wide-modal)>.modal-actions{flex-wrap:wrap;gap:8px}
  .modal-backdrop:not(.confirm-backdrop)>.modal-card:not(.wide-modal) .modal-actions .primary-button,.modal-backdrop:not(.confirm-backdrop)>.modal-card:not(.wide-modal) .modal-actions .secondary-button{flex:0 1 auto;min-height:40px}
}

/* Persisted notification read state */
.notification-item.is-read{opacity:.68}.notification-item.is-read .notification-item-copy strong{font-weight:550}.notification-item.is-read .notification-tone{box-shadow:none;opacity:.55}
.notification-card.is-read{opacity:.68}.notification-card.is-read .notice-dot{opacity:.5}

/* Management product snapshot */
.management-answer-card{display:grid;gap:18px;margin-bottom:20px}
.management-answer-filters{grid-template-columns:minmax(260px,2fr) repeat(2,minmax(150px,1fr)) auto;align-items:end}
.management-answer-filters .form-actions{display:flex;align-items:end;padding:0}
.management-answer-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.management-answer-summary article{display:grid;gap:7px;min-width:0;padding:14px 16px;border:1px solid var(--line);border-radius:9px;background:#f8faff}
.management-answer-summary small{font-size:11px}
.management-answer-summary strong{overflow-wrap:anywhere;font-size:16px;letter-spacing:-.025em}
.management-answer-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px}
.management-answer-columns>section{display:grid;align-content:start;gap:12px;min-width:0;padding:16px;border:1px solid var(--line);border-radius:10px;background:#fff}
.management-answer-columns h3{font-size:13px}
.management-answer-locations{display:grid;gap:7px}
.management-answer-locations>div{display:flex;justify-content:space-between;gap:12px;padding:10px 12px;border-radius:7px;background:#f6f8fc}
.management-answer-locations span{color:#52627a}
.management-answer-locations b{white-space:nowrap}
@media(max-width:1000px){.management-answer-filters{grid-template-columns:1fr 1fr}.management-answer-filters label:first-of-type{grid-column:1/-1}}
@media(max-width:700px){.management-answer-summary{grid-template-columns:1fr 1fr}.management-answer-columns{grid-template-columns:1fr}}
@media(max-width:420px){.management-answer-filters{grid-template-columns:1fr}.management-answer-filters label:first-of-type{grid-column:auto}.management-answer-summary{grid-template-columns:1fr}}
.dispatch-link{display:inline-flex;align-items:center;margin-top:5px;color:var(--blue);font-size:11px;font-weight:700}.dispatch-link:hover{text-decoration:underline}

/* Products page: align scanning, list search, exports and row actions. */
.product-barcode-search{display:grid;grid-template-columns:minmax(280px,1fr) auto auto;align-items:end;gap:12px;margin:0 0 14px;padding:16px 18px;border:1px solid var(--line);border-radius:15px;background:#fff;box-shadow:var(--shadow-card)}
.product-barcode-search>label{display:grid;min-width:0;gap:7px;margin:0;color:#4b5870;font-size:12px;font-weight:680}
.product-barcode-search input,.product-barcode-search>button{height:48px;min-height:48px}
.product-barcode-search>button{min-width:148px}
.product-barcode-search+.table-card .table-list-tools{display:flex;flex-wrap:wrap;align-items:center;gap:12px;min-height:72px;padding:12px 18px;border-bottom:1px solid var(--line)}
.product-barcode-search+.table-card .table-list-search-wrap{width:min(100%,420px);min-width:min(260px,100%);margin:0}
.product-barcode-search+.table-card .table-list-search-wrap input{height:48px;min-height:48px}
.product-barcode-search+.table-card .table-list-tools>button,.product-barcode-search+.table-card .table-list-tools>.secondary-button{height:42px;min-height:42px}
.product-barcode-search+.table-card .actions-cell{white-space:nowrap}
.product-barcode-search+.table-card .actions-cell .icon-button{width:44px;min-width:44px;height:44px;min-height:44px;margin:0 3px}
.page:has(.product-barcode-search)>.page-heading{align-items:center}
@media(max-width:760px){.product-barcode-search{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:stretch}.product-barcode-search>label{grid-column:1/-1}.product-barcode-search>button{width:100%;min-width:0}.product-barcode-search+.table-card .table-list-tools{align-items:stretch}.product-barcode-search+.table-card .table-list-search-wrap{width:100%;min-width:0}.page:has(.product-barcode-search)>.page-heading{align-items:flex-start}}
@media(max-width:480px){.product-barcode-search{grid-template-columns:1fr;padding:13px}.product-barcode-search>label,.product-barcode-search>button{grid-column:1}.product-barcode-search+.table-card .table-list-tools{padding:12px}.product-barcode-search+.table-card .actions-cell .icon-button{width:40px;min-width:40px;height:40px;min-height:40px}}

/* Category manager controls share consistent dimensions */
.category-manager{padding-inline:18px}
.category-create-form{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 190px;align-items:end;gap:12px;padding:16px}
.category-create-form label{min-width:0;min-height:68px;align-content:end;gap:8px;line-height:1.35}
.category-create-form input,.category-create-form select,.category-create-form>button{width:100%;height:48px;min-height:48px;margin:0}
.category-chip-list{grid-template-columns:1fr;gap:10px;margin-top:14px}
.category-chip{min-height:68px;gap:16px;padding:12px 16px}
.category-chip>span{min-width:0;flex:1;gap:5px;line-height:1.4}
.category-chip>span>b{font-size:14px;line-height:1.4}
.category-chip small{font-size:12px;line-height:1.4}
.category-chip form{flex:none}
.category-chip .danger-link{width:82px;height:42px;min-height:42px;padding:8px 12px;border-radius:10px;font-size:12px}
@media(max-width:680px){.category-create-form{grid-template-columns:minmax(0,1fr);gap:10px}.category-create-form label{min-height:0}.category-chip{min-height:64px;padding:11px 12px}.category-chip>span>b{font-size:13px}}

/* Shared compact toggle switches for checkbox and radio inputs. */
input[type=checkbox],input[type=radio]{appearance:none!important;-webkit-appearance:none!important;position:relative;width:42px!important;min-width:42px!important;height:24px!important;min-height:24px!important;margin:0!important;padding:0!important;flex:none;border:0!important;border-radius:999px!important;background:#cbd2de!important;box-shadow:inset 0 1px 2px #18243b18!important;cursor:pointer;transition:background-color .18s ease,box-shadow .18s ease}
input[type=checkbox]::before,input[type=radio]::before{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #14213b38;transition:transform .18s cubic-bezier(.2,.75,.25,1)}
input[type=checkbox]:checked,input[type=radio]:checked{background:#14a879!important;box-shadow:inset 0 1px 2px #08704c2b!important}
input[type=checkbox]:checked::before,input[type=radio]:checked::before{transform:translateX(18px)}
input[type=checkbox]:hover:not(:disabled),input[type=radio]:hover:not(:disabled){filter:brightness(.97)}
input[type=checkbox]:focus-visible,input[type=radio]:focus-visible{outline:3px solid #4c61e833!important;outline-offset:3px}
input[type=checkbox]:disabled,input[type=radio]:disabled{opacity:.55;cursor:not-allowed}
.check-label{flex-direction:row-reverse;justify-content:space-between}

/* Shared responsive guardrails for the legacy server-rendered pages. */
@media screen{
  html,body{max-width:100%;overflow-x:clip}
  .app-shell,.main-content,.page,.page-card,.table-card,.filter-bar{min-width:0;max-width:100%}
  .main-content{flex:1 1 auto}
  .page-heading,.page-heading-actions,.list-toolbar,.filter-bar,.page-footer,.pagination-controls{min-width:0;flex-wrap:wrap}
  .page-heading>*,.page-heading-actions>*{min-width:0}
  .table-scroll{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-inline:contain}
  .table-card table{max-width:100%}
  .form-grid,.form-grid>*,.form-field,.form-control,.modal-card,.wide-modal{min-width:0;max-width:100%}
  input,select,textarea,button{max-width:100%}
  .table-card td,.table-card th,.page-heading h1,.page-heading .muted{overflow-wrap:anywhere}
}
@media screen and (max-width:760px){
  html,body{width:100%;max-width:100vw;overflow-x:hidden}
  .app-shell{display:block;width:100%;min-width:0;max-width:100vw}
  .main-content{display:block;width:100%;min-width:0;max-width:100%}
  .page{width:100%;min-width:0;max-width:100%;margin-inline:0;padding-inline:14px}
  .page-heading{align-items:flex-start}
  .page-heading-actions{width:100%;justify-content:flex-start}
  .page-heading-actions>button,.page-heading-actions>a{flex:1 1 auto;justify-content:center}
  .list-toolbar,.filter-bar{align-items:stretch}
  .list-toolbar>.search-input,.filter-bar>.search-input{width:100%;max-width:none}
  .pagination,.page-footer{align-items:flex-start;gap:10px}
  .pagination-controls{justify-content:flex-start}
  .modal-backdrop{padding:12px;overflow-y:auto;overscroll-behavior:contain}
  .modal-card:not(.wide-modal){width:100%;max-height:calc(100dvh - 24px)}
  .modal-card:not(.wide-modal) .form-grid{grid-template-columns:minmax(0,1fr)}
  .modal-card:not(.wide-modal) .form-grid>.span-2{grid-column:auto}
  .modal-actions{flex-wrap:wrap}
}
@media screen and (max-width:420px){
  .page{padding-inline:11px}
  .topbar{gap:8px;padding-inline:10px}
  .page-heading h1{font-size:21px;line-height:1.25}
  .page-heading-actions>button,.page-heading-actions>a{flex-basis:100%}
  .modal-backdrop{padding:8px}
  .modal-card:not(.wide-modal){max-height:calc(100dvh - 16px);padding:15px}
  .modal-actions>*{flex:1 1 auto}
}
