:root {
    --navy: #073f73;
    --blue: #0a5f9d;
    --blue-soft: #eaf5fc;
    --green: #4eaa69;
    --green-soft: #eaf7ee;
    --orange: #ef9b27;
    --orange-soft: #fff5e5;
    --ink: #18364f;
    --muted: #6d7f8e;
    --line: #e5edf2;
    --paper: #ffffff;
    --surface: #f5f8fa;
    --shadow: 0 18px 50px rgba(17, 56, 86, .10);
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body { margin: 0; min-height: 100%; color: var(--ink); background: var(--surface); font-family: "Segoe UI", Tahoma, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }

/* Authentication */
.auth-page { background: var(--paper); }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(390px, 47%) 1fr; }
.auth-brand { position: relative; display: flex; min-height: 100vh; overflow: hidden; isolation: isolate; color: #fff; background: linear-gradient(142deg, #073f73 0%, #07538c 50%, #0b6ca5 100%); padding: clamp(30px, 5vw, 72px); }
.auth-brand::before { content: ""; position: absolute; z-index: -1; width: 620px; height: 620px; left: -250px; bottom: -270px; border: 1px solid rgba(255,255,255,.11); border-radius: 50%; box-shadow: 0 0 0 58px rgba(255,255,255,.025), 0 0 0 150px rgba(255,255,255,.018); }
.auth-brand::after { content: ""; position: absolute; z-index: -1; width: 380px; height: 380px; top: -150px; right: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(114,196,133,.33), rgba(114,196,133,0) 68%); }
.auth-language { position: absolute; top: 34px; inset-inline-end: 38px; }
.language-switch { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,.9); padding: 9px 13px; border: 1px solid rgba(255,255,255,.25); border-radius: 10px; font-size: 13px; font-weight: 600; transition: .2s ease; }
.language-switch:hover { color: #fff; background: rgba(255,255,255,.13); }
.globe-icon { font-size: 18px; line-height: 12px; }
.brand-content { display: flex; align-self: center; flex-direction: column; max-width: 560px; margin: 12px auto 3vh; }
.auth-logo { width: min(510px, 100%); height: auto; padding: 9px 11px; object-fit: contain; border-radius: 10px; background: #fff; box-shadow: 0 12px 32px rgba(0,23,50,.22); }
.brand-copy { max-width: 510px; margin-top: 54px; }
.eyebrow, .overline { display: block; color: var(--blue); letter-spacing: .15em; font-size: 11px; line-height: 1.4; font-weight: 800; }
.brand-copy .eyebrow { color: #a9e2b5; }
.brand-copy h1 { max-width: 480px; margin: 14px 0 12px; color: #fff; font-size: clamp(29px, 3vw, 44px); line-height: 1.25; font-weight: 700; }
.brand-copy p { max-width: 440px; margin: 0; color: rgba(255,255,255,.77); font-size: 16px; line-height: 1.9; }
.brand-footer { position: absolute; inset-inline-start: clamp(30px, 5vw, 72px); bottom: 38px; display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.68); font-size: 13px; }
.lock-icon { color: #94dca4; font-size: 21px; }
.brand-orbit { position: absolute; z-index: -1; width: 17px; height: 17px; border-radius: 50%; background: #72be84; box-shadow: 0 0 0 8px rgba(114,190,132,.1); }
.orbit-one { top: 29%; left: 16%; animation: float 7s ease-in-out infinite; }
.orbit-two { top: 63%; right: 16%; width: 10px; height: 10px; background: #f0a024; animation: float 5s ease-in-out -2s infinite; }
@keyframes float { 50% { transform: translateY(-13px); } }

.auth-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 50px 32px 28px; background: radial-gradient(circle at 90% 5%, rgba(223,244,254,.7), transparent 31%), #fff; }
.auth-card { width: min(100%, 420px); }
.auth-card-heading { margin-bottom: 29px; }
.auth-card-heading .overline { margin-bottom: 10px; }
.auth-card h2 { margin: 0 0 10px; color: #163957; font-size: 29px; letter-spacing: -.02em; }
.auth-card-heading p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.login-form { display: grid; gap: 9px; }
.login-form label { color: #355269; font-size: 13px; font-weight: 700; margin-top: 7px; }
.input-wrap { position: relative; }
.input-wrap > span { position: absolute; top: 50%; inset-inline-start: 15px; transform: translateY(-50%); color: #7d94a7; font-size: 15px; }
.input-wrap input { width: 100%; height: 51px; padding-inline: 42px 16px; color: var(--ink); border: 1px solid #d6e1e8; border-radius: 9px; outline: none; background: #fff; transition: border .2s, box-shadow .2s; direction: ltr; text-align: start; }
.input-wrap input::placeholder { color: #a2b1bd; }
.input-wrap input:focus { border-color: #1680bd; box-shadow: 0 0 0 4px rgba(22,128,189,.12); }
.password-toggle { position: absolute; top: 50%; inset-inline-end: 11px; transform: translateY(-50%); width: 28px; height: 28px; border: 0; border-radius: 5px; color: #7590a3; background: transparent; cursor: pointer; }
.password-toggle:hover { background: #edf5f8; }
.form-options { display: flex; align-items: center; justify-content: space-between; margin: 5px 0 10px; color: var(--muted); font-size: 12px; }
.form-options > a { color: #0871b1; font-weight: 700; }
.form-options > a:hover { color: var(--navy); }
.check-label { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.check-label input { position: absolute; opacity: 0; }
.check-label span { position: relative; width: 16px; height: 16px; border: 1px solid #bdcbd5; border-radius: 4px; background: #fff; }
.check-label input:checked + span { border-color: var(--blue); background: var(--blue); }
.check-label input:checked + span::after { content: "✓"; position: absolute; top: -3px; inset-inline-start: 2px; color: #fff; font-size: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 51px; border: 0; border-radius: 9px; cursor: pointer; font-size: 14px; font-weight: 800; transition: transform .2s, box-shadow .2s, background .2s; }
.button-primary { gap: 12px; color: #fff; background: linear-gradient(110deg, #07528b, #0872b1); box-shadow: 0 10px 20px rgba(5,82,139,.18); }
.button-primary b { font-size: 18px; transition: transform .2s; }
[dir="rtl"] .button-primary b { transform: rotate(180deg); }
.button-primary:hover { background: linear-gradient(110deg, #064779, #09669e); box-shadow: 0 13px 24px rgba(5,82,139,.25); transform: translateY(-1px); }
.button-primary:hover b { transform: translateX(-4px); }
[dir="rtl"] .button-primary:hover b { transform: translateX(4px) rotate(180deg); }
.button:disabled { cursor: wait; opacity: .78; transform: none; }
.auth-support { display: flex; align-items: center; gap: 8px; margin: 27px 0 0; color: #8193a1; font-size: 12px; line-height: 1.6; }
.auth-support span { display: inline-grid; place-items: center; flex: 0 0 18px; width: 18px; height: 18px; color: #0a70ad; border: 1px solid #9fcbdf; border-radius: 50%; font-weight: 800; }
.mobile-logo, .mobile-copyright { display: none; }

.alert { display: flex; align-items: center; gap: 9px; margin: 0 0 20px; padding: 12px 14px; border-radius: 9px; font-size: 13px; line-height: 1.5; }
.alert > span { display: inline-grid; place-items: center; flex: 0 0 19px; width: 19px; height: 19px; border-radius: 50%; font-weight: 800; }
.alert-error { color: #a13e3e; border: 1px solid #f2cccc; background: #fff6f6; }
.alert-error > span { color: #fff; background: #d85f5f; }
.alert-success { color: #276d42; border: 1px solid #bee4ca; background: #f0fbf3; }
.alert-success > span { color: #fff; background: #48a269; }
.alert-warning { color: #916314; border: 1px solid #f2dbac; background: #fff9ec; }
.alert-warning > span { color: #fff; background: #e9a133; }

/* App shell */
.app-page { background: #f5f8fa; }
.app-layout { min-height: 100vh; display: flex; }
.sidebar { position: fixed; z-index: 20; inset: 0 auto 0 0; display: flex; flex-direction: column; width: 250px; padding: 23px 14px 18px; color: #d9e8f2; background: #073f70; box-shadow: 3px 0 12px rgba(7,42,70,.08); }
[dir="rtl"] .sidebar { inset: 0 0 0 auto; }
.sidebar-logo { display: block; margin: 2px 10px 36px; padding: 5px; border-radius: 6px; background: #fff; }
.sidebar-logo img { display: block; width: 100%; height: 50px; object-fit: contain; }
.sidebar-nav { display: grid; gap: 6px; }
.nav-item { display: flex; align-items: center; min-height: 45px; gap: 13px; padding: 0 14px; color: #c5d7e3; border-radius: 8px; font-size: 14px; font-weight: 600; transition: .2s ease; }
.nav-item i { width: 17px; color: #a9c6d9; font-style: normal; font-size: 18px; text-align: center; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.075); }
.nav-item.active { color: #fff; background: linear-gradient(90deg, rgba(31,140,201,.9), rgba(24,115,177,.88)); box-shadow: 0 7px 17px rgba(0,19,42,.16); }
.nav-item.active i { color: #8fd694; }
.sidebar-bottom { display: grid; gap: 5px; margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); }
.logout-link { color: #f3c4c4; }
.logout-link i { color: #e89999; }
.content-area { width: calc(100% - 250px); min-height: 100vh; margin-left: 250px; }
[dir="rtl"] .content-area { margin-right: 250px; margin-left: 0; }
.topbar { display: flex; align-items: center; justify-content: flex-end; height: 78px; padding: 0 clamp(24px, 4vw, 56px); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.82); }
.topbar-actions { display: flex; align-items: center; gap: 19px; }
.app-language { color: #527085; border-color: #dae5eb; background: #fff; }
.app-language:hover { color: var(--blue); border-color: #b9d6e6; background: #f7fcff; }
.notification-button { position: relative; width: 36px; height: 36px; color: #426176; border: 0; border-radius: 50%; background: transparent; cursor: pointer; font-size: 21px; }
.notification-button:hover { background: #e9f3f8; }
.notification-button b { position: absolute; top: 7px; inset-inline-end: 7px; width: 6px; height: 6px; border: 1px solid #fff; border-radius: 50%; background: #ef9926; }
.user-menu { display: flex; align-items: center; gap: 9px; padding-inline-start: 3px; }
.avatar { display: grid; place-items: center; width: 37px; height: 37px; color: #fff; border: 2px solid #e7f4fb; border-radius: 50%; background: linear-gradient(135deg, #1a82bc, #0d547f); font-size: 12px; font-weight: 800; }
.user-meta { display: grid; gap: 2px; }
.user-meta strong { color: #26445a; font-size: 12px; }
.user-meta small { color: #8598a6; font-size: 10px; }
.menu-button, .topbar-mobile-logo { display: none; }
.dashboard-main { max-width: 1550px; margin: 0 auto; padding: 35px clamp(24px, 4vw, 56px) 52px; }
.dashboard-main > .alert { margin-bottom: 24px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 27px; }
.page-heading .overline { margin: 0 0 7px; color: #80a0b4; letter-spacing: .06em; font-size: 11px; }
.page-heading h1 { margin: 0 0 7px; color: #183c58; font-size: clamp(24px, 2.5vw, 31px); letter-spacing: -.025em; }
.page-heading p:not(.overline) { margin: 0; color: #7f929f; font-size: 13px; }
.date-control { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 12px; color: #536f83; border: 1px solid #dbe6ec; border-radius: 8px; background: #fff; cursor: pointer; font-size: 12px; font-weight: 700; }
.date-control span { color: var(--blue); font-size: 16px; }.date-control b { margin-inline-start: 5px; color: #7891a2; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; margin-bottom: 20px; }
.stat-card { display: flex; align-items: flex-start; gap: 14px; min-height: 132px; padding: 20px; border: 1px solid #e4ecf1; border-radius: 12px; background: #fff; box-shadow: 0 4px 13px rgba(20,57,80,.025); }
.stat-icon { display: grid; place-items: center; flex: 0 0 43px; width: 43px; height: 43px; border-radius: 10px; font-size: 21px; font-weight: 700; }.stat-card.blue .stat-icon { color: #1786bf; background: var(--blue-soft); }.stat-card.green .stat-icon { color: #3e9d5a; background: var(--green-soft); }.stat-card.navy .stat-icon { color: #376b93; background: #edf3f8; }.stat-card.orange .stat-icon { color: #df8a18; background: var(--orange-soft); }
.stat-card p { margin: 0 0 6px; color: #718697; font-size: 12px; font-weight: 700; }.stat-card strong { display: block; margin-bottom: 7px; color: #1d405a; font-size: 25px; line-height: 1; letter-spacing: -.025em; }.stat-card small { color: #8a9ca9; font-size: 10px; }.stat-card small span { color: #8a9ca9; }.trend-positive { color: #329c59 !important; font-weight: 800; }.trend-warning { color: #d78a1d !important; font-weight: 800; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(310px, .75fr); gap: 20px; margin-bottom: 20px; }.panel { border: 1px solid #e3ebf0; border-radius: 12px; background: #fff; box-shadow: 0 4px 14px rgba(20,57,80,.025); }.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 21px 21px 0; }.panel-heading h2 { margin: 0 0 5px; color: #21445f; font-size: 15px; }.panel-heading p { margin: 0; color: #8c9da9; font-size: 11px; }.panel-heading a { color: #1671ab; font-size: 12px; font-weight: 800; }.panel-heading a b { display: inline-block; margin-inline-start: 4px; font-size: 15px; transition: transform .2s; }[dir="rtl"] .panel-heading a b { transform: rotate(180deg); }.panel-heading a:hover b { transform: translateX(-3px); }[dir="rtl"] .panel-heading a:hover b { transform: translateX(3px) rotate(180deg); }.more-button { padding: 0 3px; color: #88a0af; border: 0; background: transparent; cursor: pointer; font-size: 16px; letter-spacing: 1px; }
.operations-panel { min-height: 300px; }.chart-summary { display: flex; align-items: center; justify-content: space-between; margin: 13px 21px 0; }.chart-summary strong { color: #1f4662; font-size: 26px; letter-spacing: -.035em; }.chart-summary strong span { font-size: 15px; }.chart-summary p { margin: 2px 0 0; color: #8799a7; font-size: 11px; }.chart-summary > span { align-self: flex-start; padding: 5px 8px; border-radius: 6px; background: #eff9f1; font-size: 11px; }.bar-chart { display: flex; align-items: flex-end; justify-content: space-between; height: 162px; margin: 12px 22px 15px; padding-top: 19px; border-bottom: 1px solid #edf1f4; background: repeating-linear-gradient(to bottom, transparent 0, transparent 40px, #edf3f5 41px); }.bar-column { position: relative; display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: flex-end; align-self: stretch; gap: 6px; }.bar-column i { width: min(25px, 48%); min-height: 8px; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, #31a06e, #62ba78); transition: height .7s ease; }.bar-column:nth-child(6) i { background: linear-gradient(180deg, #1477b2, #33a1d2); }.bar-column small { color: #91a1ad; font-size: 10px; }.chart-tip { position: absolute; top: calc(100% - var(--chart-height)); display: none; }
.inventory-panel { min-height: 300px; }.donut-wrap { display: grid; place-items: center; margin: 22px auto 10px; }.donut-chart { display: grid; place-items: center; width: 128px; height: 128px; border-radius: 50%; background: conic-gradient(#1681ba 0 46%, #55ab6b 46% 82%, #efa02b 82% 100%); }.donut-chart::before { content: ""; grid-area: 1/1; width: 92px; height: 92px; border-radius: 50%; background: #fff; }.donut-chart > div { display: grid; grid-area: 1/1; place-items: center; z-index: 1; }.donut-chart strong { color: #24465f; font-size: 22px; }.donut-chart small { color: #8093a1; font-size: 10px; }.legend-list { display: grid; gap: 8px; margin: 0 23px; }.legend-list p { display: flex; align-items: center; margin: 0; color: #748897; font-size: 11px; }.legend-list strong { margin-inline-start: auto; color: #456176; }.legend-dot { width: 8px; height: 8px; margin-inline-end: 7px; border-radius: 50%; }.blue-dot { background: #1681ba; }.green-dot { background: #55ab6b; }.orange-dot { background: #efa02b; }
.lower-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.45fr); gap: 20px; }.activity-panel, .batch-panel { min-height: 225px; }.activity-list { display: grid; gap: 15px; padding: 20px 21px 22px; }.activity-row { display: flex; align-items: center; gap: 11px; }.activity-icon { display: grid; place-items: center; flex: 0 0 31px; width: 31px; height: 31px; color: #3b9d5c; border-radius: 8px; background: #e9f7ed; font-weight: 800; }.activity-row strong { display: block; color: #416074; font-size: 11px; font-weight: 700; }.activity-row small { display: block; margin-top: 3px; color: #98a7b2; font-size: 10px; }.empty-state { display: grid; place-items: center; min-height: 138px; padding: 20px; color: #8a9ba7; text-align: center; }.empty-state span { display: grid; place-items: center; width: 37px; height: 37px; margin-bottom: 7px; color: #4a9e65; border-radius: 50%; background: #edf8f0; font-size: 19px; }.empty-state p { max-width: 285px; margin: 0; font-size: 12px; line-height: 1.6; }.table-wrap { overflow-x: auto; padding: 16px 21px 21px; }table { width: 100%; border-collapse: collapse; white-space: nowrap; }th { padding: 0 6px 9px; color: #90a0ac; border-bottom: 1px solid #ebf0f3; text-align: start; font-size: 10px; font-weight: 700; }td { padding: 12px 6px 0; color: #637a8c; font-size: 11px; }td strong { color: #3b5a70; }.status-pill { display: inline-block; padding: 4px 7px; color: #398557; border-radius: 5px; background: #ecf8ee; font-size: 10px; font-weight: 700; }.status-pill.urgent { color: #c77920; background: #fff3df; }
.sidebar-overlay { display: none; }

@media (max-width: 1100px) { .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.lower-grid { grid-template-columns: 1fr; } }
@media (max-width: 820px) { .sidebar { transform: translateX(-100%); transition: transform .25s ease; }.sidebar-open .sidebar { transform: translateX(0); }[dir="rtl"] .sidebar { transform: translateX(100%); }[dir="rtl"] .sidebar-open .sidebar { transform: translateX(0); }.sidebar-overlay { position: fixed; z-index: 15; inset: 0; background: rgba(4,32,53,.38); }.sidebar-open .sidebar-overlay { display: block; }.content-area, [dir="rtl"] .content-area { width: 100%; margin: 0; }.topbar { justify-content: space-between; height: 68px; padding: 0 19px; }.menu-button { display: grid; place-items: center; width: 35px; height: 35px; color: #3d6076; border: 0; border-radius: 7px; background: #edf5f8; cursor: pointer; font-size: 20px; }.topbar-mobile-logo { display: block; width: 128px; height: 34px; }.topbar-mobile-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }.user-meta, .notification-button { display: none; }.topbar-actions { gap: 8px; }.app-language { padding: 7px 9px; font-size: 11px; }.dashboard-main { padding: 28px 20px 38px; }.dashboard-grid { grid-template-columns: 1fr; } }
@media (max-width: 680px) { .auth-shell { display: block; }.auth-brand { display: none; }.auth-panel { min-height: 100vh; padding: 29px 22px; background: radial-gradient(circle at 100% 0, #dff1fb, transparent 35%), #fff; }.mobile-logo { display: block; width: 235px; margin: 0 auto 50px; padding: 4px; border-radius: 6px; background: #fff; }.mobile-logo img { display: block; width: 100%; height: auto; }.mobile-copyright { display: block; margin: 34px 0 0; color: #93a3ad; text-align: center; font-size: 11px; }.auth-card h2 { font-size: 27px; }.stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }.stat-card { min-height: 118px; flex-direction: column; gap: 8px; padding: 14px; }.stat-icon { width: 37px; height: 37px; font-size: 18px; }.stat-card strong { font-size: 22px; }.stat-card small span { display: none; }.page-heading { align-items: flex-start; flex-direction: column; margin-bottom: 21px; }.date-control { min-height: 34px; }.panel-heading { padding: 18px 17px 0; }.bar-chart { margin-inline: 17px; }.chart-summary { margin-inline: 17px; }.legend-list { margin-inline: 18px; }.activity-list { padding-inline: 17px; }.table-wrap { padding-inline: 12px; }.dashboard-main > .alert { font-size: 12px; } }
@media (max-width: 390px) { .stat-card { padding: 12px; }.stat-card p { font-size: 11px; }.topbar-actions .app-language span { display: none; } }

/* Departments, warehouses, and internal transfers */
.module-main { max-width: 1580px; }
.module-heading { margin-bottom: 22px; }
.page-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.small-button { min-height: 39px; padding: 0 14px; font-size: 12px; }
.button-secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 39px; padding: 0 14px; color: #176797; border: 1px solid #cfe0e9; border-radius: 8px; background: #fff; font-size: 12px; font-weight: 800; transition: .2s ease; }
.button-secondary:hover { color: #075482; border-color: #9ac5da; background: #f2f9fc; }
.module-stat-grid { display: grid; grid-template-columns: minmax(170px, .55fr) minmax(170px, .55fr) minmax(290px, 1fr); gap: 15px; margin-bottom: 20px; }
.compact-stat { display: flex; align-items: center; gap: 12px; min-height: 92px; padding: 17px 19px; border: 1px solid #e3ebf0; border-radius: 11px; background: #fff; box-shadow: 0 4px 14px rgba(20,57,80,.025); }
.compact-stat.wide { gap: 13px; }.compact-icon { display: grid; place-items: center; flex: 0 0 39px; width: 39px; height: 39px; border-radius: 10px; font-size: 19px; font-weight: 700; }.blue-icon { color: #1681ba; background: #e8f4fb; }.green-icon { color: #419e5b; background: #eaf7ed; }.orange-icon { color: #d88718; background: #fff3df; }.compact-stat small { display: block; margin-bottom: 4px; color: #8093a1; font-size: 11px; font-weight: 700; }.compact-stat strong { display: block; color: #24465f; font-size: 22px; line-height: 1.1; }.compact-stat.wide strong { font-size: 13px; }.compact-stat a { margin-inline-start: auto; color: #1671ab; font-size: 11px; font-weight: 800; white-space: nowrap; }
.management-layout { display: grid; grid-template-columns: minmax(320px, .7fr) minmax(0, 1.3fr); gap: 20px; align-items: start; }.forms-stack, .records-stack { display: grid; gap: 20px; }.form-panel { overflow: hidden; }.form-panel .panel-heading { padding-bottom: 17px; border-bottom: 1px solid #edf1f4; }.entity-form { display: grid; gap: 15px; padding: 18px 21px 21px; }.entity-form > label, .form-grid > label, .filter-form label { display: grid; gap: 7px; color: #527084; font-size: 11px; font-weight: 800; }.form-grid { display: grid; gap: 13px; }.form-grid.two-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }.entity-form input, .entity-form select, .entity-form textarea, .filter-form select { width: 100%; min-height: 39px; padding: 0 11px; color: #31536a; border: 1px solid #d9e4e9; border-radius: 7px; outline: none; background: #fff; font-size: 12px; transition: border .2s, box-shadow .2s; }.entity-form textarea { min-height: 62px; padding-top: 9px; resize: vertical; }.entity-form input:focus, .entity-form select:focus, .entity-form textarea:focus, .filter-form select:focus { border-color: #1680bd; box-shadow: 0 0 0 3px rgba(22,128,189,.10); }.form-submit { justify-self: start; min-height: 39px; padding: 0 16px; font-size: 12px; }.data-panel { overflow: hidden; }.data-panel .panel-heading { padding-bottom: 17px; }.data-table { min-width: 560px; }.data-table th { padding: 0 8px 10px; }.data-table td { vertical-align: middle; padding: 12px 8px; border-bottom: 1px solid #edf2f4; }.data-table tbody tr:last-child td { border-bottom: 0; }.data-table td small { display: block; max-width: 200px; margin-top: 3px; overflow: hidden; color: #91a1ad; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }.code-pill { display: inline-block; padding: 4px 7px; color: #3f677f; border-radius: 5px; background: #eff5f8; font-family: "SFMono-Regular", Consolas, monospace; font-size: 10px; font-weight: 700; direction: ltr; }.inactive-pill { color: #7c8b94; background: #eff2f3; }.edit-link { display: inline-grid; place-items: center; width: 27px; height: 27px; color: #1877ad; border-radius: 6px; background: #edf7fb; font-size: 16px; }.edit-link:hover { color: #fff; background: #1681ba; }.filter-panel { margin-bottom: 18px; }.filter-form { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px; padding: 16px 20px; }.filter-form label { width: min(100%, 245px); }.filter-form .button { min-height: 39px; }.balance-summary { grid-template-columns: minmax(190px, .55fr) minmax(190px, .55fr); max-width: 560px; }.inventory-table-panel { min-height: 230px; }.record-count { display: grid; place-items: center; min-width: 28px; height: 25px; padding: 0 7px; color: #2877a4; border-radius: 6px; background: #edf7fb; font-size: 11px; font-weight: 800; }.quantity-cell { color: #278a51 !important; font-weight: 800; direction: ltr; text-align: start; }.transfer-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(270px, .65fr); gap: 20px; margin-bottom: 20px; }.transfer-form-panel .panel-heading { padding-bottom: 17px; border-bottom: 1px solid #edf1f4; }.transfer-form { padding-top: 20px; }.available-strip { display: flex; align-items: center; justify-content: space-between; padding: 11px 12px; color: #668093; border: 1px dashed #b9d5e3; border-radius: 8px; background: #f5fbfe; font-size: 11px; font-weight: 700; }.available-strip strong { color: #237aa9; direction: ltr; }.transfer-help { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 254px; padding: 27px; color: #fff; border: 0; background: linear-gradient(150deg, #0a5086, #0871a9); box-shadow: 0 12px 27px rgba(5,82,139,.14); }.transfer-help .help-icon { display: grid; place-items: center; width: 39px; height: 39px; margin-bottom: 16px; color: #1e8452; border-radius: 11px; background: #bcecc7; font-weight: 900; }.transfer-help h2 { margin: 0 0 9px; font-size: 19px; }.transfer-help p { margin: 0; color: rgba(255,255,255,.8); font-size: 12px; line-height: 1.8; }.transfer-help a { margin-top: 18px; color: #fff; font-size: 12px; font-weight: 800; }.transfer-history { min-height: 230px; }
@media (max-width: 1080px) { .management-layout { grid-template-columns: 1fr; }.forms-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }.transfer-layout { grid-template-columns: 1fr; }.transfer-help { min-height: 190px; } }
@media (max-width: 820px) { .module-stat-grid { grid-template-columns: 1fr 1fr; }.compact-stat.wide { grid-column: 1 / -1; }.module-heading { align-items: stretch; }.page-actions { width: 100%; }.page-actions .button { flex: 1; }.management-layout { gap: 15px; }.records-stack, .forms-stack { gap: 15px; } }
@media (max-width: 560px) { .module-stat-grid, .balance-summary { grid-template-columns: 1fr; }.compact-stat.wide { grid-column: auto; }.compact-stat { min-height: 76px; }.forms-stack { grid-template-columns: 1fr; }.form-grid.two-cols { grid-template-columns: 1fr; }.entity-form { padding: 16px; }.filter-form { display: grid; grid-template-columns: 1fr; padding: 14px 16px; }.filter-form label { width: 100%; }.filter-form .button { width: 100%; }.transfer-help { padding: 23px; }.data-table { min-width: 610px; } }

.row-actions { display: flex; align-items: center; gap: 5px; }.delete-action { display: inline; margin: 0; }.delete-action button { display: inline-grid; place-items: center; width: 27px; height: 27px; padding: 0; color: #c55353; border: 0; border-radius: 6px; background: #fff0f0; cursor: pointer; font-size: 18px; line-height: 1; }.delete-action button:hover { color: #fff; background: #d75d5d; }.auto-destination { display: flex; align-items: center; min-height: 39px; padding: 0 11px; color: #477086; border: 1px dashed #b9d5e3; border-radius: 7px; background: #f5fbfe; font-size: 12px; }.waste-summary { grid-template-columns: minmax(280px, 1.1fr) minmax(160px, .45fr) minmax(160px, .45fr); }.waste-summary .wide { grid-column: auto; }.waste-quantity { color: #c77b19 !important; font-weight: 800; direction: ltr; }.waste-departments-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin: 20px 0; }.waste-department-card { min-height: 148px; padding: 18px; }.waste-department-card h2 { margin: 15px 0 4px; color: #3e5c70; font-size: 13px; }.waste-department-card p { min-height: 18px; margin: 0 0 10px; color: #8a9ba6; font-size: 10px; }.waste-department-card strong { display: block; color: #c77b19; font-size: 20px; direction: ltr; }.waste-department-card small { color: #9b7f50; font-size: 10px; }.rejection-help { background: linear-gradient(150deg, #935c15, #d78d22); }.rejection-help .help-icon { color: #a45e08; background: #ffe3a8; }
.product-records-stack { gap: 20px; }.component-count { display: inline-flex; align-items: center; gap: 4px; padding: 4px 7px; color: #7a5a18; border-radius: 5px; background: #fff5dc; font-size: 10px; font-weight: 800; white-space: nowrap; }.modal-open { overflow: hidden; }.modal-backdrop { position: fixed; z-index: 100; inset: 0; display: none; align-items: center; justify-content: center; padding: 26px; background: rgba(20, 46, 65, .52); backdrop-filter: blur(4px); }.modal-backdrop.is-open { display: flex; }.modal-dialog { width: min(100%, 790px); max-height: min(88vh, 860px); overflow: auto; border: 1px solid rgba(255,255,255,.72); border-radius: 16px; background: #fff; box-shadow: 0 25px 75px rgba(11, 43, 65, .28); }.product-modal-dialog { width: min(100%, 960px); }.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 24px 27px 19px; border-bottom: 1px solid #e8eff3; background: linear-gradient(125deg, #f2fbff, #fff); }.modal-header h2 { margin: 4px 0 7px; color: #31546b; font-size: 22px; }.modal-header p { max-width: 660px; margin: 0; color: #7190a2; font-size: 12px; line-height: 1.7; }.modal-close { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; padding: 0; color: #567286; border: 0; border-radius: 9px; background: #edf5f8; cursor: pointer; font-size: 22px; line-height: 1; }.modal-close:hover { color: #fff; background: #2c82b4; }.modal-form { gap: 19px; padding: 23px 27px 27px; }.modal-section { display: grid; gap: 14px; padding: 18px; border: 1px solid #e5eef2; border-radius: 11px; background: #fcfeff; }.modal-section h3 { margin: 0; color: #3a5c72; font-size: 14px; }.modal-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }.modal-section-heading p { max-width: 600px; margin: 5px 0 0; color: #7d96a5; font-size: 11px; line-height: 1.65; }.distribution-list { display: grid; gap: 10px; }.distribution-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(130px, .42fr) 31px; align-items: end; gap: 10px; padding: 11px; border: 1px solid #e7eef2; border-radius: 9px; background: #fff; }.remove-distribution { display: grid; place-items: center; width: 31px; height: 39px; padding: 0; color: #b85b5b; border: 0; border-radius: 7px; background: #fff0f0; cursor: pointer; font-size: 19px; }.remove-distribution:hover { color: #fff; background: #d46565; }.component-section { background: linear-gradient(135deg, #fbfdff, #f7fcf9); }.component-grid { display: flex; flex-wrap: wrap; gap: 8px; }.component-chip { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 5px 9px; color: #4c6c62; border: 1px solid #d8ede0; border-radius: 7px; background: #f3fbf5; font-size: 11px; font-weight: 700; }.component-chip b { display: grid; place-items: center; width: 14px; height: 14px; color: #fff; border-radius: 50%; background: #53a86d; font-size: 9px; }.component-empty { margin: 0; color: #899da8; font-size: 11px; line-height: 1.6; }.component-empty:empty { display: none; }.modal-stock-note { margin: 0; padding: 12px 14px; color: #4c7892; border: 1px dashed #b9d5e3; border-radius: 8px; background: #f5fbfe; font-size: 11px; font-weight: 700; }.modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding-top: 1px; }
.component-selector-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }.component-selector { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 10px 11px; color: #59736a; border: 1px solid #d8e8df; border-radius: 8px; background: #fff; cursor: pointer; font-size: 11px; font-weight: 800; transition: .18s ease; }.component-selector:hover { border-color: #95cdaa; background: #f7fcf8; }.entity-form .component-selector input { width: 16px; min-width: 16px; min-height: 16px; margin: 0; padding: 0; accent-color: #339d5e; }.component-selector:has(input:checked) { color: #276d42; border-color: #79bd92; background: #edf9f0; box-shadow: inset 0 0 0 1px rgba(71,164,99,.10); }.component-details-grid { display: grid; gap: 10px; }.component-detail-card { display: grid; gap: 12px; padding: 15px; border: 1px solid #cce5d4; border-radius: 9px; background: #f7fcf8; }.component-detail-card[hidden] { display: none; }.component-detail-card h4 { margin: 0; color: #397552; font-size: 12px; }.component-detail-card .form-grid { padding: 0; }
@media (max-width: 680px) { .modal-backdrop { align-items: flex-start; padding: 12px; overflow-y: auto; }.modal-dialog { max-height: none; margin: 0 auto; }.modal-header { padding: 20px 18px 16px; }.modal-header h2 { font-size: 19px; }.modal-form { padding: 17px; }.modal-section { padding: 14px; }.modal-section-heading { align-items: stretch; flex-direction: column; }.distribution-row { grid-template-columns: minmax(0, 1fr) 31px; }.distribution-row label:first-child { grid-column: 1 / -1; }.modal-footer { flex-direction: column-reverse; }.modal-footer .button { width: 100%; } }
@media (max-width: 680px) { .component-selector-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) { .waste-summary { grid-template-columns: 1fr 1fr; }.waste-summary .wide { grid-column: 1 / -1; }.waste-departments-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .waste-summary, .waste-departments-grid { grid-template-columns: 1fr; }.waste-summary .wide { grid-column: auto; } }

.filter-form input { width: 100%; min-height: 39px; padding: 0 11px; color: #31536a; border: 1px solid #d9e4e9; border-radius: 7px; outline: none; background: #fff; font-size: 12px; transition: border .2s, box-shadow .2s; }.filter-form input:focus { border-color: #1680bd; box-shadow: 0 0 0 3px rgba(22,128,189,.10); }.department-filter-panel .panel-heading { align-items: center; padding-bottom: 8px; }.department-filter-panel .panel-heading > a { color: #1877ad; font-size: 11px; font-weight: 800; }.department-filter-form label { width: min(100%, 220px); }.department-filter-form { gap: 11px; }
@media (max-width: 820px) { .department-filter-form label { width: calc(50% - 6px); } }
@media (max-width: 560px) { .department-filter-form label { width: 100%; } }
