:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#17202a;background:#f4f6f8;font-synthesis:none;text-rendering:optimizeLegibility;--accent: #1f6f78;--accent-strong: #165760;--amber: #d9b44a;--danger: #c65f4a;--ink: #101820;--muted: #647382;--line: #d9e1e8;--surface: #ffffff;--surface-soft: #f8fafb;--shadow-sm: 0 10px 24px rgba(16, 24, 32, .06);--shadow-md: 0 18px 42px rgba(16, 24, 32, .11);--shadow-lg: 0 26px 70px rgba(16, 24, 32, .16);--focus-ring: 0 0 0 3px rgba(31, 111, 120, .14);--ease: cubic-bezier(.2, .8, .2, 1);--ease-spring: cubic-bezier(.16, 1, .3, 1)}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;overflow-x:hidden}body{background:radial-gradient(circle at 18% 10%,rgba(31,111,120,.1),transparent 30%),linear-gradient(180deg,#f8fafb 0,#eef2f5 260px),#eef2f5}button,a,input,select,textarea,.profile-trigger,.profile-chevron,.profile-dropdown,.metric-icon,.action-tile,.action-icon,.metric-card,.wide-panel,.form-layout,.admin-card,.recipe-card,.request-row,.warning-list article,.tag,.quick-stats span{transition:background-color .18s var(--ease),border-color .18s var(--ease),box-shadow .18s var(--ease),color .18s var(--ease),transform .18s var(--ease)}.boot-fallback{min-height:100vh;display:grid;place-items:center;background:#eef2f5}.boot-fallback section{display:grid;gap:8px;min-width:280px;padding:24px;border:1px solid #d9e1e8;border-radius:8px;background:#fff;box-shadow:0 12px 28px #1018200d}.boot-fallback strong{color:#101820;font-size:1.1rem}.boot-fallback span{color:#647382;font-weight:700}button,input,select,textarea{font:inherit}button{cursor:pointer}button:active{transform:translateY(0) scale(.99)}button:disabled{cursor:not-allowed}.login-page{min-height:100vh;display:grid;grid-template-columns:minmax(320px,470px) minmax(360px,1fr);align-items:stretch;background:radial-gradient(circle at 10% 10%,rgba(31,111,120,.12),transparent 32%),#eef2f5}.login-panel{display:flex;flex-direction:column;justify-content:center;gap:26px;padding:48px;animation:slideIn .42s var(--ease) both;background:#fffffff0;border-right:1px solid #d9e1e8;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.brand-mark{width:58px;height:58px;display:inline-flex;align-items:center;justify-content:center;overflow:hidden;color:#fff;background:#fff;border:1px solid rgba(31,111,120,.18);border-radius:8px;box-shadow:0 14px 26px #1f6f783d}.brand-mark img{width:100%;height:100%;object-fit:contain;display:block}.brand-mark.small{width:42px;height:42px}.eyebrow{margin:0 0 8px;color:#1f6f78;font-size:.78rem;font-weight:800;letter-spacing:0;text-transform:uppercase}h1,h2{margin:0;line-height:1.12;color:#101820}h1{max-width:390px;font-size:clamp(2.15rem,5vw,3.8rem)}h2{font-size:1.35rem}.login-form,.work-form{display:grid;gap:16px}.remember-row{display:inline-flex;align-items:center;gap:9px;color:#4f6172;font-size:.9rem;font-weight:800}.remember-row input{width:17px;height:17px;margin:0;accent-color:var(--accent)}label{display:grid;gap:7px;color:#344454;font-size:.92rem;font-weight:700}input,select,textarea{width:100%;border:1px solid #cbd6df;border-radius:6px;padding:12px 13px;color:#17202a;background:#fff;outline:none}input:focus,select:focus,textarea:focus{border-color:var(--accent);box-shadow:var(--focus-ring)}input:hover,select:hover,textarea:hover{border-color:#9fb1bf}select{min-height:44px;appearance:none;background-image:linear-gradient(45deg,transparent 50%,#526272 50%),linear-gradient(135deg,#526272 50%,transparent 50%);background-position:calc(100% - 18px) 18px,calc(100% - 12px) 18px;background-size:6px 6px,6px 6px;background-repeat:no-repeat;padding-right:36px}textarea{min-height:112px;resize:vertical}input:focus,select:focus,textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px #1f6f7829}.login-form button,.work-form button,.panel-header button,.recipe-card button,.warning-list button{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:6px;padding:0 16px;color:#fff;background:linear-gradient(135deg,var(--accent),#2c8a93);font-weight:800;box-shadow:0 12px 24px #1f6f782e}.warning-list button:disabled{cursor:not-allowed;background:#9fb1bf;box-shadow:none;transform:none}.login-form button:hover,.work-form button:hover,.panel-header button:hover,.recipe-card button:hover,.warning-list button:hover,.admin-card button:hover,.account-form button:hover,.access-denied button:hover{background:linear-gradient(135deg,var(--accent-strong),var(--accent));box-shadow:0 16px 30px #1f6f783d;transform:translateY(-1px)}.warning-list button:disabled:hover{background:#9fb1bf;box-shadow:none;transform:none}.login-form button:active,.work-form button:active,.panel-header button:active,.recipe-card button:active,.warning-list button:active,.admin-card button:active,.account-form button:active,.access-denied button:active{transform:translateY(0)}.login-visual{position:relative;display:grid;align-content:center;padding:48px;overflow:hidden;background:linear-gradient(135deg,#101820d6,#10182080),repeating-linear-gradient(90deg,#8194a2 0 12px,#6c7f8d 12px 18px)}.login-visual:before{content:"";position:absolute;inset:0;background:linear-gradient(120deg,transparent 0 34%,rgba(255,255,255,.16) 42%,transparent 52% 100%);transform:translate(-100%);animation:sweep 6s var(--ease) infinite}.summary-strip{width:min(460px,100%);display:flex;justify-content:space-between;align-items:center;margin-bottom:18px;padding:18px 20px;color:#fff;background:#ffffff24;border:1px solid rgba(255,255,255,.22);border-radius:8px;animation:riseIn .52s .12s var(--ease) both;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.summary-strip span{color:#dbe5eb;font-weight:700}.summary-strip strong{font-size:2.2rem}.rack-grid{width:min(460px,100%);display:grid;grid-template-columns:repeat(3,minmax(80px,1fr));gap:12px}.rack-grid span{aspect-ratio:1.65;border-radius:6px;background:#d9b44a;box-shadow:inset 0 -10px #00000026;animation:rackIn .42s var(--ease) both}.rack-grid span:nth-child(2n){animation-delay:40ms}.rack-grid span:nth-child(3n){animation-delay:80ms}.rack-grid span.low{background:#c65f4a}.app-shell{min-height:100vh;display:grid;grid-template-columns:270px minmax(0,1fr)}.sidebar{position:relative;display:flex;flex-direction:column;gap:28px;padding:24px 16px;color:#fff;background:linear-gradient(180deg,rgba(255,255,255,.05),transparent 180px),linear-gradient(180deg,#18232e,#111b24);box-shadow:12px 0 34px #10182014;overflow:hidden}.sidebar:after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(110deg,transparent 0 42%,rgba(255,255,255,.055) 50%,transparent 58% 100%);transform:translate(-110%);animation:sidebarSweep 9s var(--ease) infinite}.sidebar-scrim{display:none}.sidebar-header{display:flex;align-items:center;gap:12px;padding:0 8px}.sidebar-header strong,.sidebar-header span{display:block}.sidebar-header span{color:#aebbc7;font-size:.85rem}nav{display:grid;gap:7px}nav a{position:relative;isolation:isolate;display:flex;align-items:center;gap:10px;min-height:42px;border:0;border-radius:6px;padding:0 12px;color:#d6e0e7;background:transparent;text-align:left;text-decoration:none;font-weight:700;overflow:hidden}nav a:after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#d9b44a2e,#1f6f7833);opacity:0;transform:translate(-18px);transition:opacity .18s var(--ease),transform .22s var(--ease)}nav a:hover,nav a.active{color:#fff;background:#263746;transform:translate(3px)}nav a:hover:after,nav a.active:after{opacity:1;transform:translate(0)}nav a.active:before{content:"";position:absolute;left:-6px;width:4px;height:22px;border-radius:999px;background:var(--amber)}.workspace{min-width:0;display:flex;flex-direction:column}.topbar{position:sticky;top:0;z-index:10;min-height:72px;display:flex;align-items:center;gap:16px;padding:14px 24px;background:#ffffffe0;border-bottom:1px solid #dbe3ea;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);box-shadow:0 8px 26px #1018200a}.page-title{display:inline-flex;align-items:center;gap:9px;min-width:170px;font-weight:900}.search-box{flex:1 1 360px;min-width:220px;min-height:44px;display:flex;align-items:center;gap:8px;max-width:520px;padding:0 12px;border:1px solid #ccd7df;border-radius:6px;background:#f8fafb;box-shadow:inset 0 1px #fffc}.search-box:focus-within{border-color:var(--accent);box-shadow:var(--focus-ring),0 10px 24px #1f6f7814;background:#fff;transform:translateY(-1px)}.search-box input{min-width:0;height:42px;flex:1 1 auto;border:0;padding:0;background:transparent;box-shadow:none}.ghost-button,.icon-button{border:1px solid #ccd7df;border-radius:6px;color:#263746;background:#fff;font-weight:800}.ghost-button:hover,.icon-button:hover{border-color:#afbec9;background:#f8fafb;transform:translateY(-1px)}.ghost-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:0 14px}.profile-menu{position:relative;margin-left:auto}.profile-trigger{min-height:46px;display:inline-flex;align-items:center;gap:10px;border:1px solid #ccd7df;border-radius:999px;padding:4px 12px 4px 5px;color:#263746;background:#fff;box-shadow:0 8px 18px #1018200a}.profile-trigger:hover,.profile-trigger[aria-expanded=true]{border-color:#1f6f784d;background:#f8fafb;box-shadow:0 12px 24px #10182014;transform:translateY(-1px)}.avatar{position:relative;width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;border-radius:999px;color:#fff;background:linear-gradient(135deg,var(--accent),#2c8a93);font-size:.78rem;font-weight:900;box-shadow:0 10px 20px #1f6f782e}.avatar:before{content:"";position:absolute;inset:-5px;border-radius:inherit;border:1px solid rgba(31,111,120,0);transform:scale(.9);transition:border-color .18s var(--ease),transform .18s var(--ease)}.profile-trigger:hover .avatar:before,.profile-trigger[aria-expanded=true] .avatar:before{border-color:#1f6f7847;transform:scale(1)}.avatar-dot{position:absolute;right:0;bottom:0;width:10px;height:10px;border:2px solid #ffffff;border-radius:999px;background:#38a169}.avatar.large{width:44px;height:44px;font-size:.88rem}.profile-copy{display:grid;gap:1px;min-width:0;text-align:left}.profile-copy strong,.profile-dropdown-head strong{color:var(--ink);font-size:.88rem;line-height:1.1;white-space:nowrap}.profile-copy span,.profile-dropdown-head span{color:var(--muted);font-size:.76rem;font-weight:800}.profile-chevron{color:#6b7a88}.profile-trigger[aria-expanded=true] .profile-chevron{color:var(--accent);transform:rotate(180deg)}.profile-dropdown{position:absolute;top:calc(100% + 10px);right:0;z-index:40;width:260px;display:grid;gap:8px;padding:10px;border:1px solid #d9e1e8;border-radius:8px;background:#fffffff5;box-shadow:var(--shadow-md);opacity:0;pointer-events:none;transform:translateY(-6px) scale(.98);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.profile-dropdown.open{opacity:1;pointer-events:auto;transform:translateY(0) scale(1)}.profile-dropdown-head{display:flex;align-items:center;gap:10px;padding:8px;border-radius:8px;background:#f8fafb}.profile-dropdown-head div{min-width:0;display:grid;gap:3px}.profile-dropdown button{min-height:42px;display:flex;align-items:center;gap:9px;border:0;border-radius:7px;padding:0 10px;color:#263746;background:transparent;font-weight:850;text-align:left}.profile-dropdown button:hover{color:var(--accent-strong);background:#eaf4f5}.form-error,.form-message{border-radius:6px;padding:10px 12px;font-weight:800}.form-error{color:#9b3f31;background:#fff1ed}.form-message{margin-top:12px;color:#1f6f78;background:#e1f1f3}.form-message.success{color:#1f6f4a;background:#e8f6ee}.form-message.danger{color:#9b3f31;background:#fff1ed}.login-hint{margin:0;color:#647382;font-size:.85rem;font-weight:700}.icon-button{width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center}.mobile-only,.close-menu{display:none}.content-grid{display:grid;grid-template-columns:repeat(5,minmax(140px,1fr));gap:18px;padding:24px;animation:fadeIn .26s var(--ease) both}.page-stack{display:grid;gap:18px;padding:24px;animation:fadeIn .26s var(--ease) both}.page-intro{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;padding:22px;border:1px solid #d9e1e8;border-radius:8px;background:#fff;box-shadow:var(--shadow-sm);animation:riseIn .36s var(--ease) both}.page-intro h2{max-width:680px}.quick-stats{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.quick-stats span{min-height:34px;display:inline-flex;align-items:center;border:1px solid #d6e1e8;border-radius:999px;padding:0 12px;color:#263746;background:#f8fafb;font-weight:800;white-space:nowrap}.quick-stats span:hover,.tag:hover{border-color:#1f6f7847;background:#e1f1f3;transform:translateY(-1px)}.metric-card,.wide-panel,.form-layout,.admin-card{border:1px solid #d9e1e8;border-radius:8px;background:#fff;box-shadow:var(--shadow-sm)}.wide-panel,.admin-card,.metric-card,.action-tile,.request-row,.warning-list article,.production-plan-card,.order-card,.finance-row,.warehouse-list article{will-change:transform}.metric-card{display:grid;gap:8px;padding:20px;animation:riseIn .34s var(--ease) both}.metric-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.metric-icon{width:38px;height:38px;display:inline-flex;align-items:center;justify-content:center;border-radius:8px;color:var(--accent);background:#e1f1f3}.metric-card:hover .metric-icon{color:#fff;background:var(--accent);transform:translateY(-2px) rotate(-4deg)}.metric-icon.warning{color:#a36500;background:#fff7d8}.metric-icon.danger{color:#c53939;background:#fff0f0}.metric-card.warning:hover .metric-icon.warning{color:#101820;background:#f4c542}.metric-card.danger:hover .metric-icon.danger{color:#fff;background:#c53939}.metric-card:hover,.wide-panel:hover,.form-layout:hover,.admin-card:hover{border-color:#c9d5de;box-shadow:var(--shadow-md);transform:translateY(-2px)}.wide-panel:hover{box-shadow:var(--shadow-lg)}.metric-card.accent{border-color:#1f6f7847;background:linear-gradient(180deg,#fff,#edf8f9)}.metric-card span,.muted,.recipe-card span,.request-row span,.warning-list span{color:#647382}.metric-card strong{font-size:2rem;color:#101820}.metric-card.warning strong{color:#a36500}.metric-card.danger strong{color:#c53939}.dashboard-actions{grid-column:1 / -1;display:grid;grid-template-columns:repeat(4,minmax(160px,1fr));gap:14px;animation:riseIn .36s 40ms var(--ease) both}.metric-card:nth-child(2),.action-tile:nth-child(2){animation-delay:70ms}.metric-card:nth-child(3),.action-tile:nth-child(3){animation-delay:.1s}.metric-card:nth-child(4),.action-tile:nth-child(4){animation-delay:.13s}.metric-card:nth-child(5),.action-tile:nth-child(5){animation-delay:.16s}.action-tile{min-height:86px;display:flex;align-items:center;gap:14px;border:1px solid #d9e1e8;border-radius:8px;padding:16px;color:#17202a;background:linear-gradient(135deg,rgba(31,111,120,.06),transparent),#fff;box-shadow:var(--shadow-sm);text-decoration:none;animation:riseIn .36s var(--ease) both}.action-tile:hover{border-color:#1f6f7852;box-shadow:var(--shadow-md);transform:translateY(-3px)}.action-icon{width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;border-radius:8px;color:var(--accent);background:#e1f1f3}.action-tile:hover .action-icon{color:#fff;background:linear-gradient(135deg,var(--accent),#2c8a93);transform:scale(1.06) rotate(-3deg)}.action-tile.disabled{opacity:.62;cursor:not-allowed;filter:grayscale(.28)}.action-tile.disabled:hover{border-color:#d9e1e8;box-shadow:var(--shadow-sm);transform:none}.action-tile.disabled:hover .action-icon{color:var(--accent);background:#e1f1f3;transform:none}.action-tile span:last-child{display:grid;gap:4px}.action-tile strong{color:var(--ink)}.action-tile small{color:var(--muted);font-size:.84rem;font-weight:750}.wide-panel{grid-column:1 / -1;margin:24px;padding:22px;animation:riseIn .36s 60ms var(--ease) both}.wide-panel.no-margin,.content-grid .wide-panel{margin:0}.panel-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.filter-bar{--filter-control-height: 46px;display:grid;grid-template-columns:repeat(3,minmax(180px,260px));gap:14px;margin-bottom:14px;padding:14px;border:1px solid #dfe6ec;border-radius:8px;background:#f8fafb;animation:riseIn .32s 80ms var(--ease) both}.filter-bar label,.order-filters label,.list-filters label,.history-filters label{min-width:0}.filter-bar input,.filter-bar select,.order-filters input,.order-filters select,.list-filters input,.list-filters select,.history-filters input,.history-filters select{height:var(--filter-control-height);min-height:var(--filter-control-height);min-width:0}.filter-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;color:#647382;font-size:.9rem}.filter-summary strong{color:#263746;font-size:.88rem}.table-wrap{position:relative;width:100%;max-width:100%;overflow-x:auto;background:#fff}table{width:100%;table-layout:fixed;border-collapse:collapse;min-width:820px}.table-wrap>table{border-collapse:separate;border-spacing:0}th,td{box-sizing:border-box;padding:14px 12px;border-bottom:1px solid #e3e9ee;text-align:left;vertical-align:middle}.table-wrap>table th,.table-wrap>table td{overflow:hidden}tbody tr:hover{background:#f2f8f9}th{color:#526272;font-size:.78rem;text-transform:uppercase}.code-cell{color:#1f6f78;font-weight:900}.tag-list{display:flex;flex-wrap:wrap;gap:6px}.tag{display:inline-flex;align-items:center;min-height:28px;border-radius:999px;padding:0 10px;color:#263746;background:#e8eef2;font-size:.82rem;font-weight:800;white-space:nowrap}.stock-list-wrap{position:relative;width:100%;max-width:100%;overflow-x:auto;border:1px solid #dbe7ef;border-radius:8px;background:#fff}.stock-list-table{width:100%;min-width:1280px;table-layout:fixed;border-collapse:separate;border-spacing:0}.stock-list-table th{background:#f8fafb;box-shadow:0 1px #e5ebf0;padding:14px 10px;border-bottom:1px solid #e5ebf0;color:#526272;font-size:.78rem;font-weight:900;text-align:left;text-transform:none;white-space:nowrap}.stock-list-table th,.stock-list-table td{box-sizing:border-box;overflow:hidden}.stock-list-table td{padding:14px 10px;border-bottom:1px solid #edf1f4;vertical-align:middle}.stock-list-table th:nth-child(1),.stock-list-table td:nth-child(1){width:24%}.stock-list-table th:nth-child(2),.stock-list-table td:nth-child(2){width:11%}.stock-list-table th:nth-child(3),.stock-list-table td:nth-child(3){width:16%}.stock-list-table th:nth-child(4),.stock-list-table td:nth-child(4){width:7%}.stock-list-table th:nth-child(5),.stock-list-table td:nth-child(5){width:9%}.stock-list-table th:nth-child(6),.stock-list-table td:nth-child(6){width:10%}.stock-list-table th:nth-child(7),.stock-list-table td:nth-child(7){width:11%}.stock-list-table th:nth-child(8),.stock-list-table td:nth-child(8){width:12%}.stock-list-table tbody tr:hover{background:#fbfcfd}.stock-product-cell{display:flex;align-items:center;gap:12px;min-width:0;width:100%}.stock-product-icon{width:50px;height:50px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;border:1px solid #d9e1e8;border-radius:8px;color:#7a8793;background:#f7f8f9}.stock-product-cell div{display:grid;gap:4px;min-width:0}.stock-product-cell strong{overflow:hidden;color:#101820;text-overflow:ellipsis;white-space:nowrap}.stock-product-cell small,.stock-status-cell small,.component-hint{overflow:hidden;color:#8b98a5;font-weight:750;text-overflow:ellipsis}.category-pill{display:inline-flex;align-items:center;max-width:100%;min-height:26px;border:1px solid #8cc7ff;border-radius:6px;padding:0 9px;color:#1473e6;background:#eaf5ff;font-size:.82rem;font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.stage-pill{width:fit-content;min-height:24px;display:inline-flex;align-items:center;border:1px solid #d6e1e8;border-radius:999px;padding:0 9px;color:#526272;background:#f3f6f8;font-size:.78rem;font-weight:850}.stage-status-InProgress .stage-pill,.stage-pill.stage-status-InProgress{border-color:#1f6f7852;color:#167d89;background:#e5f4f5}.stage-status-Completed .stage-pill,.stage-pill.stage-status-Completed{border-color:#439a3e4d;color:#278a22;background:#effbdf}.stage-status-Cancelled .stage-pill,.stage-pill.stage-status-Cancelled{border-color:#c4483642;color:#c44836;background:#fff1ed}.stock-status-cell{display:grid;gap:5px;min-width:0}.stock-status-cell strong{color:#101820}.stock-dot{position:relative;display:inline-flex;align-items:center;gap:7px;color:#263746;font-size:.88rem;font-weight:750}.stock-dot:before{content:"";width:7px;height:7px;border-radius:999px;background:currentColor}.stock-dot.available{color:#1e9c32}.stock-dot.low{color:#c78300}.stock-dot.empty{color:#e14646}.sale-price{color:#08a928;font-weight:900}.component-view-button{width:132px;max-width:100%;min-height:36px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:6px;padding:0 12px;color:#fff;background:#3b74b8;font-weight:850}.component-view-button:hover{background:#2e63a1;transform:translateY(-1px)}.component-hint{width:132px;max-width:100%;display:block;margin-top:5px;text-align:center;font-size:.78rem;font-style:italic}.stock-actions{display:flex;flex-wrap:nowrap;gap:8px;min-width:0}.stock-action{flex:1 1 0;min-width:66px;min-height:34px;display:inline-flex;align-items:center;justify-content:center;gap:6px;border:0;border-radius:6px;padding:0 10px;color:#fff;font-weight:850}.stock-action.edit{background:#1c8df0}.stock-action.delete{background:#ff5b5f}.stock-action:hover{filter:brightness(.95);transform:translateY(-1px)}.details-backdrop{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:32px;background:#1018207a;-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px);animation:modalFadeIn .18s var(--ease) both}.details-modal{width:min(820px,calc(100vw - 64px));max-height:calc(100vh - 72px);display:grid;grid-template-rows:auto minmax(0,1fr);overflow:hidden;border:1px solid #dce5ec;border-radius:8px;background:#fff;box-shadow:0 24px 70px #10182047;animation:modalRiseIn .19s var(--ease) both}.details-header{min-height:64px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 22px;border-bottom:1px solid #e6edf2}.details-header>div,.details-divider b{display:inline-flex;align-items:center;gap:10px}.details-header svg,.details-divider svg{color:#167d89}.details-header h2{margin:0;color:#101820;font-size:1.05rem}.details-body{overflow:auto;padding:22px}.details-body h3{margin:0 0 14px;color:#101820;font-size:1rem}.details-info-grid{display:grid;grid-template-columns:minmax(140px,.7fr) minmax(180px,1fr) minmax(140px,.7fr) minmax(180px,1fr);overflow:hidden;border:1px solid #e3e9ef;border-radius:8px;background:#fff}.details-info-grid span,.details-info-grid strong{min-height:40px;display:flex;align-items:center;padding:10px 16px;border-right:1px solid #e8edf2;border-bottom:1px solid #e8edf2;font-size:.9rem}.details-info-grid span{color:#5f6f7d;background:#f8fafb;font-weight:750}.details-info-grid strong{color:#263746}.details-info-grid>:nth-last-child(-n+4){border-bottom:0}.details-info-grid>:nth-child(4n){border-right:0}.price-danger{color:#e14646!important}.price-success{color:#08a928!important}.detail-status{display:inline-flex;align-items:center;min-height:24px;border:1px solid #96dd64;border-radius:5px;padding:0 8px;color:#268d20;background:#efffdf;font-size:.8rem;font-weight:850}.detail-status.passive{border-color:#d6dee5;color:#647382;background:#f3f6f8}.details-chip-list{display:flex!important;flex-wrap:wrap;align-items:center;gap:6px;padding:0!important;border:0!important}.details-chip-list em{min-height:26px;display:inline-flex;align-items:center;border-radius:999px;padding:0 9px;color:#263746;background:#e8eef2;font-style:normal;font-size:.8rem;font-weight:850}.details-divider{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:14px;margin:28px 0 18px;color:#263746;font-weight:850}.details-divider>span{height:1px;background:#e7edf2}.details-empty{min-height:180px;display:grid;place-items:center;gap:10px;color:#8b98a5;text-align:center}.details-empty svg{color:#d4dde4}.details-component-list{display:grid;gap:10px}.details-component-list article{display:grid;grid-template-columns:minmax(180px,1fr) auto minmax(160px,.8fr);align-items:center;gap:14px;border:1px solid #e3e9ef;border-radius:8px;padding:14px 16px;background:#fbfcfd}.details-component-list div{display:grid;gap:4px}.details-component-list strong{color:#101820}.details-component-list span,.details-component-list small{color:#647382;font-weight:750}.details-component-list b{color:#167d89;white-space:nowrap}.order-list{display:flex;flex-direction:column;width:100%;max-width:100%;min-width:0;gap:14px}.order-filters{--filter-control-height: 46px;display:grid;grid-template-columns:minmax(170px,1fr) minmax(170px,1fr) minmax(220px,1.2fr) minmax(150px,180px);width:100%;max-width:100%;min-width:0;gap:12px;align-items:end;padding:14px;border:1px solid #dfe6ec;border-radius:8px;background:#f8fafb}.order-filters+.order-list{margin-top:14px}.order-filters button{height:var(--filter-control-height);min-height:var(--filter-control-height);min-width:0;width:100%;display:inline-flex;align-items:center;justify-content:center;align-self:end;border:1px solid #cbd8e3;border-radius:6px;padding:0 14px;line-height:1;color:#263746;background:#fff;font-weight:850;white-space:nowrap}.order-filters button:hover{color:#fff;border-color:var(--accent);background:var(--accent);transform:translateY(-1px)}.order-card{display:block;flex:0 0 auto;width:100%;max-width:100%;min-width:0;min-height:72px;gap:0;border:1px solid #dfe6ec;border-radius:8px;padding:0;overflow:hidden;background:#fbfcfd;animation:riseIn .32s var(--ease) both}.order-card.expanded{background:#fff}.order-card:hover{border-color:#c9d5de;box-shadow:var(--shadow-sm);transform:translateY(-1px)}.order-summary-row{width:100%;max-width:100%;min-width:0;height:72px;min-height:72px;display:grid;grid-template-columns:44px minmax(0,1.45fr) repeat(4,minmax(90px,.75fr)) minmax(180px,auto);align-items:center;gap:12px;border:0;padding:12px 14px;color:#263746;background:#fbfcfd;text-align:left;cursor:default;transition:background .18s var(--ease)}.order-summary-row:hover{background:#f1f7f8}.order-summary-row span{min-width:0}.order-summary-row b{display:block;margin-bottom:4px;color:#647382;font-size:.72rem;text-transform:uppercase}.order-summary-product{display:grid;gap:4px}.order-product-link{display:grid;width:100%;gap:4px;border:0;padding:0;color:inherit;background:transparent;font:inherit;text-align:left;cursor:pointer}.order-product-link:hover strong,.order-product-link:focus-visible strong{color:var(--accent);text-decoration:underline;text-underline-offset:3px}.order-product-link:focus-visible{outline:2px solid rgba(31,111,120,.32);outline-offset:4px;border-radius:6px}.order-summary-product strong{overflow:hidden;color:#101820;font-size:.98rem;text-overflow:ellipsis;white-space:nowrap}.order-summary-product small{color:#647382;font-weight:750}.order-icon{width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;border-radius:8px;color:#1f6f78;background:#e1f1f3}.order-icon.history{color:#1e7d35;background:#e7f8eb}.order-detail-button{width:112px;min-width:112px;height:38px;min-height:38px;display:inline-flex;align-items:center;justify-content:center;justify-self:end;gap:8px;border:0;border-radius:6px;padding:0 14px;color:#fff;background:linear-gradient(135deg,var(--accent),#2c8a93);font-weight:850;white-space:nowrap;box-shadow:0 10px 22px #1f6f7824}.order-detail-button:hover{background:linear-gradient(135deg,var(--accent-strong),#236f77);transform:translateY(-1px)}.order-card-actions{display:inline-flex;align-items:center;justify-content:flex-end;justify-self:end;gap:8px;min-width:0}.order-delete-button{min-width:58px;height:38px;min-height:38px;display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid #f4b4ac;border-radius:6px;padding:0 12px;color:#b3261e;background:#fff0ee;font-weight:850;white-space:nowrap}.order-delete-button:hover:not(:disabled){border-color:#e8897e;background:#ffe4df;transform:translateY(-1px)}.order-delete-button:disabled{cursor:wait;opacity:.7}.order-expanded-panel{display:grid;gap:14px;padding:14px;animation:fadeIn .18s var(--ease) both}.order-note{display:grid;gap:4px}.order-note span,.order-note small{color:#647382;font-weight:750}.order-detail-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));width:100%;max-width:100%;min-width:0;gap:10px}.order-detail-grid span{min-width:0;display:grid;gap:5px;min-height:58px;border:1px solid #e3e9ef;border-radius:8px;padding:10px 12px;color:#263746;background:#fff;font-weight:800}.order-detail-grid b{color:#647382;font-size:.78rem;text-transform:uppercase}.shipment-strip{display:flex;flex-wrap:wrap;gap:8px}.shipment-strip span{min-height:34px;display:inline-flex;align-items:center;gap:6px;border:1px solid #d6e1e8;border-radius:999px;padding:0 12px;color:#263746;background:#fff;font-weight:800}.shipment-strip .remaining{color:#1e7d35;background:#e7f8eb}.shipment-strip .remaining.warn{color:#a36500;background:#fff7d8}.shipment-send-form{display:grid;grid-template-columns:minmax(150px,.8fr) minmax(120px,.55fr) minmax(170px,1fr) minmax(100px,.45fr) minmax(110px,auto);width:100%;max-width:100%;min-width:0;gap:10px;align-items:end;border:1px solid #cfe0e7;border-radius:8px;padding:10px;background:linear-gradient(180deg,#f8fbfc,#fff)}.shipment-send-title{align-self:stretch;display:grid;gap:6px;justify-content:start}.shipment-send-title strong{color:#172331;font-size:15px}.shipment-stock-badge{align-items:center;background:#e7f8eb;border:1px solid #bfe8c7;border-radius:999px;color:#1e7d35;display:inline-flex;font-size:12px;font-weight:850;min-height:28px;padding:0 10px}.shipment-stock-badge.danger{background:#fff3ed;border-color:#ffd2c2;color:#b42318}.shipment-send-form input,.shipment-send-form select{min-height:40px;padding:8px 12px}.shipment-send-form label{min-width:0}.shipment-send-form input,.shipment-send-form select{width:100%}.shipment-send-form button{min-height:40px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:6px;padding:0 14px;color:#fff;background:linear-gradient(135deg,var(--accent),#2c8a93);font-weight:850;white-space:nowrap}.shipment-send-form button:disabled{cursor:not-allowed;background:#d9e8ec;color:#607184;opacity:1;box-shadow:none;transform:none}.daily-outgoing-list{display:grid;gap:10px}.daily-outgoing-card{display:grid;grid-template-columns:44px minmax(220px,1.3fr) minmax(150px,.8fr) minmax(110px,.55fr) auto minmax(180px,.85fr) auto;gap:12px;align-items:center;border:1px solid #dbe7ef;border-radius:8px;padding:12px;background:#fff}.daily-outgoing-card.invoiced{background:#f8fcfa}.daily-outgoing-icon{width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;border-radius:8px;color:#1f6f78;background:#e7f4f6}.daily-outgoing-card.invoiced .daily-outgoing-icon{color:#1e7d35;background:#e7f8eb}.daily-outgoing-main,.daily-outgoing-card>div:not(.daily-outgoing-main),.daily-invoice-field{display:grid;gap:4px;min-width:0}.daily-outgoing-main strong,.daily-outgoing-main small,.daily-outgoing-card b,.daily-outgoing-card span{overflow-wrap:anywhere}.daily-outgoing-main small,.daily-outgoing-card b,.daily-invoice-field{color:#647382;font-weight:750}.daily-outgoing-card b{font-size:.78rem;text-transform:uppercase}.daily-invoice-field input{width:100%;min-height:40px;padding:8px 12px}.daily-invoice-save{min-height:40px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:6px;padding:0 14px;color:#fff;background:linear-gradient(135deg,var(--accent),#2c8a93);font-weight:850;white-space:nowrap}.daily-invoice-save:disabled{cursor:default;color:#1e7d35;background:#e7f8eb}.order-actions{display:flex;justify-content:flex-end}.order-actions button{min-height:38px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:6px;padding:0 14px;color:#fff;background:linear-gradient(135deg,var(--accent),#2c8a93);font-weight:850}.order-modal{width:min(1200px,calc(100vw - 72px));height:min(828px,calc(100vh - 72px));display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden;border:1px solid rgba(217,225,232,.9);border-radius:8px;background:#fff;box-shadow:0 34px 90px #10182047;animation:modalRiseIn .22s var(--ease) both}.order-detail-modal{width:min(1040px,calc(100vw - 72px));max-height:min(820px,calc(100vh - 72px));display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden;border:1px solid rgba(217,225,232,.9);border-radius:8px;background:#fff;box-shadow:0 34px 90px #10182047;animation:modalRiseIn .22s var(--ease) both}.order-detail-modal-body{background:linear-gradient(180deg,#fbfcfd,#f6f9fb)}.order-detail-modal .order-expanded-panel{padding:0}.order-form-grid{display:grid;grid-template-columns:repeat(4,minmax(180px,1fr));gap:14px}.order-form-grid .span-two{grid-column:span 2}.order-form-grid .order-recipe-field{grid-column:1 / -1;min-width:0}.order-form-grid .order-product-field{align-self:start}.order-total-preview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-self:stretch;border:1px solid #d8e6ed;border-radius:8px;padding:10px 12px;background:#f6fbfc}.order-total-preview span{min-width:0;display:grid;gap:4px;color:#101820;font-weight:900}.order-total-preview b{color:#647382;font-size:.72rem;text-transform:uppercase}.order-modal .recipe-component-editor{scroll-margin-top:16px}.order-modal .modal-body{padding-bottom:28px}.order-modal input,.order-modal select,.order-modal textarea{padding:10px 12px}.order-modal textarea{min-height:84px}.shipment-form{display:grid;gap:14px;margin-top:16px;border:1px solid #dfe6ec;border-radius:8px;padding:14px;background:#fff}.shipment-form h3{margin:0;color:#101820;font-size:1rem}.shipment-remaining{min-height:64px;display:grid;align-content:center;gap:4px;border:1px solid #bde8c8;border-radius:8px;padding:10px 12px;color:#1e7d35;background:#e7f8eb;font-weight:850}.shipment-remaining.warn{border-color:#f1d78b;color:#a36500;background:#fff7d8}.shipment-remaining strong{font-size:1.3rem}.modal-backdrop{position:fixed;inset:0;z-index:999;display:grid;place-items:center;padding:36px;background:#1018207a;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);animation:modalFadeIn .18s var(--ease) both}.product-modal{width:min(1200px,calc(100vw - 72px));height:min(828px,calc(100vh - 72px));display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden;border:1px solid rgba(217,225,232,.9);border-radius:8px;background:#fff;box-shadow:0 34px 90px #10182047;animation:modalRiseIn .22s var(--ease) both}.finance-modal{width:min(760px,calc(100vw - 72px));max-height:min(720px,calc(100vh - 72px));display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden;border:1px solid rgba(217,225,232,.9);border-radius:8px;background:#fff;box-shadow:0 34px 90px #10182047;animation:modalRiseIn .22s var(--ease) both}.modal-header,.modal-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 22px;background:#fffffff5}.modal-header{border-bottom:1px solid #e4ebf0}.modal-footer{justify-content:flex-end;border-top:1px solid #e4ebf0}.modal-title{display:flex;align-items:center;gap:12px}.modal-title-icon{width:38px;height:38px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;border-radius:8px;color:#fff;background:linear-gradient(135deg,var(--accent),#2c8a93);box-shadow:0 14px 28px #1f6f7833}.modal-title h2{margin-bottom:4px;font-size:1.08rem}.modal-title p{margin:0;color:#647382;font-size:.9rem;font-weight:700}.modal-body{min-height:0;overflow:auto;padding:18px 20px;background:linear-gradient(135deg,rgba(31,111,120,.04),transparent 38%),#fbfcfd}.modal-alert{display:flex;align-items:center;gap:8px;margin-bottom:14px;border:1px solid #f0cbc2;border-radius:8px;padding:12px 14px;color:#9b3f31;background:#fff1ed;font-weight:800}.product-form-grid{display:grid;grid-template-columns:minmax(320px,1fr) minmax(320px,1fr);align-items:start;gap:16px}.form-column{display:grid;align-content:start;gap:14px}.form-section{display:grid;gap:12px;align-content:start;border:1px solid #dfe6ec;border-radius:8px;padding:14px;background:#fff;box-shadow:var(--shadow-sm)}.form-section h3{display:flex;align-items:center;gap:8px;margin:-14px -14px 0;border-bottom:1px solid #e6edf2;border-radius:8px 8px 0 0;padding:12px 14px;color:#17202a;background:#fbfcfd;font-size:.98rem}.form-section h3 small{color:#647382;font-size:.82rem;font-weight:800}.product-modal input,.product-modal select,.product-modal textarea,.finance-modal input,.finance-modal select,.finance-modal textarea{padding:10px 12px}.product-modal textarea{min-height:84px}.finance-modal textarea{min-height:96px}.form-section label span,.department-picker>div:first-child span{color:#263746}.form-section b,.department-picker b{color:#b4513f}.finance-form-section{box-shadow:none}.finance-form-grid{display:grid;gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}.finance-form-grid .wide-field{grid-column:1 / -1}.form-row{display:grid;gap:12px}.form-row.two{grid-template-columns:repeat(2,minmax(0,1fr))}.department-picker{display:grid;gap:10px}.department-picker>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:12px}.department-picker small{color:#647382;font-weight:800;text-align:right}.department-options{display:flex;flex-wrap:wrap;gap:8px}.department-option{display:inline-flex;align-items:center;min-height:36px;border:1px solid #d6e1e8;border-radius:999px;padding:0 12px;color:#263746;background:#f8fafb;cursor:pointer}.department-option input{width:auto;margin:0;accent-color:var(--accent)}.department-option:has(input:checked){border-color:#1f6f7866;color:#fff;background:linear-gradient(135deg,var(--accent),#2c8a93)}.department-option:has(input:checked) span{color:#fff}.stage-empty{margin:0;border:1px dashed #d6e1e8;border-radius:8px;padding:14px;color:#647382;background:#fbfcfd;font-weight:750}.stage-editor-list{display:grid;gap:10px}.stage-editor-row{display:grid;grid-template-columns:34px minmax(110px,.65fr) minmax(150px,1fr) minmax(120px,.55fr);align-items:end;gap:10px;border:1px solid #e1e8ee;border-radius:8px;padding:10px;background:#fbfcfd}.stage-editor-row label{min-width:0}.stage-order{width:28px;height:28px;align-self:center;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;color:#fff;background:var(--accent);font-weight:900}.order-form-grid .department-picker{grid-column:span 3;border:1px solid #dfe6ec;border-radius:8px;padding:12px 14px;background:#fbfcfd}.order-form-grid .department-picker>div:first-child{justify-content:flex-start}.order-form-grid .department-picker small{margin-left:auto}.switch-row{width:fit-content;display:inline-flex;align-items:center;gap:8px;border:1px solid #d6e1e8;border-radius:999px;padding:8px 12px;background:#f8fafb;cursor:pointer}.switch-row input{width:auto;margin:0;accent-color:var(--accent)}.primary-switch{border-color:#1f6f7859;color:#1f6f78;background:#e1f1f3}.primary-button,.secondary-button{min-height:42px;display:inline-flex;align-items:center;justify-content:center;border-radius:6px;padding:0 16px;font-weight:850}.primary-button{border:0;color:#fff;background:linear-gradient(135deg,var(--accent),#2c8a93);box-shadow:0 12px 24px #1f6f782e}.secondary-button{border:1px solid #ccd7df;color:#263746;background:#fff}.primary-button:hover,.secondary-button:hover{transform:translateY(-1px)}.product-components-divider{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:12px;margin:28px 0 14px;color:#647382;font-weight:900}.product-components-divider:before,.product-components-divider:after{content:"";height:1px;background:#e1e8ee}.product-components-divider small{color:#8b98a5;font-size:.82rem}.product-components-section{margin-bottom:6px}.add-component-button{min-height:42px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px dashed #cbd6df;border-radius:8px;color:#263746;background:#fff;font-weight:850}.add-component-button:hover{border-color:#1f6f7859;color:var(--accent);background:#eaf6f7}.component-empty{margin:8px 0 0;padding:14px;color:#8b98a5;text-align:center;font-weight:750}.component-table{display:grid;gap:8px}.component-table-head,.component-row{display:grid;grid-template-columns:minmax(260px,1fr) minmax(120px,.32fr) minmax(180px,.6fr) 64px;gap:12px;align-items:center}.component-table-head{padding:0 12px;color:#526272;font-size:.78rem;font-weight:900;text-transform:uppercase}.component-row{border:1px solid #e1e8ee;border-radius:8px;padding:10px 12px;background:#fbfcfd}.component-product-search{position:relative}.component-product-results{position:absolute;z-index:35;top:calc(100% + 6px);right:0;left:0;max-height:180px;overflow:auto;border:1px solid #cbd6df;border-radius:8px;padding:6px;background:#fff;box-shadow:var(--shadow-md)}.component-product-results:before{content:"";position:absolute;top:-6px;left:22px;width:10px;height:10px;border-top:1px solid #cbd6df;border-left:1px solid #cbd6df;background:#fff;transform:rotate(45deg)}.component-product-results button{width:100%;min-height:38px;display:flex;align-items:center;border:0;border-radius:6px;padding:0 10px;color:#17202a;background:transparent;font-weight:850;text-align:left}.component-product-results button:hover{color:#1f6f78;background:#eaf6f7}.recipe-component-editor{background:#f8fbfc;border:1px solid #dbe7ef;border-radius:8px;display:grid;gap:12px;min-width:0;padding:14px;overflow:hidden}.recipe-component-toolbar{align-items:center;display:flex;gap:12px;justify-content:space-between}.recipe-component-toolbar div{display:grid;gap:3px;min-width:0}.recipe-component-toolbar small{color:#607184;font-weight:700;overflow-wrap:anywhere}.recipe-add-component-button{align-items:center;background:linear-gradient(135deg,#1f7f88,#2f959c);border:1px solid rgba(31,111,120,.25);border-radius:8px;box-shadow:0 10px 22px #1f6f782e;color:#fff;cursor:pointer;display:inline-flex;gap:8px;justify-content:center;min-height:38px;padding:0 14px;white-space:nowrap}.recipe-add-component-button:hover{background:linear-gradient(135deg,#196b73,#25858d);box-shadow:0 12px 26px #1f6f783d;transform:translateY(-1px)}.recipe-add-component-button:focus-visible{outline:3px solid rgba(31,111,120,.22);outline-offset:2px}.recipe-add-component-button svg{flex:0 0 auto;stroke-width:2.4}.recipe-component-list{display:grid;gap:8px;min-width:0;max-width:100%;overflow:visible}.recipe-component-head,.recipe-component-row{align-items:center;display:grid;gap:10px;grid-template-columns:minmax(180px,1.35fr) minmax(84px,.42fr) minmax(86px,.38fr) minmax(112px,.5fr) minmax(118px,.7fr) 40px;min-width:0}.recipe-component-editor.no-stock-status .recipe-component-head,.recipe-component-editor.no-stock-status .recipe-component-row{grid-template-columns:minmax(180px,1.45fr) minmax(100px,.45fr) minmax(128px,.55fr) minmax(140px,.8fr) 40px}.recipe-component-head{color:#526272;font-size:.76rem;font-weight:900;padding:0 10px;text-transform:uppercase}.recipe-component-row{align-items:start;background:#fff;border:1px solid #e1e8ee;border-radius:8px;padding:10px}.recipe-component-row>*,.recipe-component-row label,.recipe-component-row input,.recipe-component-row .product-combobox{min-width:0}.recipe-component-product,.recipe-component-note{display:grid;gap:6px}.recipe-component-row input{width:100%}.recipe-component-row .product-combobox{z-index:auto}.recipe-component-row .product-combobox.results-inline .product-results{max-height:150px;border-color:#d8e4ec;box-shadow:inset 0 1px #ffffffb8}.recipe-component-row .product-results button strong,.recipe-component-row .product-results button span{min-width:0;overflow-wrap:anywhere}.recipe-component-stock,.recipe-component-required{min-height:42px;display:inline-flex;align-items:center;color:#526272;font-weight:850;min-width:0;overflow-wrap:anywhere}.recipe-component-required{color:#1f6f78}.recipe-component-required.danger{color:#b4513f}.order-component-editor-block{display:grid;gap:10px}.order-component-actions{display:flex;gap:10px;justify-content:flex-end}.production-planning-modal .recipe-component-head{display:none}.production-planning-modal .recipe-component-row{align-items:start;grid-template-columns:minmax(0,1fr) 42px}.production-planning-modal .recipe-component-product{grid-column:1 / 2}.production-planning-modal .remove-component-button{grid-column:2;grid-row:1;align-self:start}.production-planning-modal .recipe-component-quantity,.production-planning-modal .recipe-component-stock,.production-planning-modal .recipe-component-required,.production-planning-modal .recipe-component-note{grid-column:1 / -1}.production-planning-modal .recipe-component-row [data-label]:before{content:attr(data-label);display:block;margin-bottom:5px;color:#607184;font-size:.74rem;font-weight:900;text-transform:uppercase}.production-planning-modal .recipe-component-stock,.production-planning-modal .recipe-component-required{justify-content:space-between;border:1px solid #dbe7ef;border-radius:8px;padding:8px 10px;background:#fbfcfd}@media(max-width:900px){.recipe-component-toolbar{align-items:stretch;flex-direction:column}.recipe-add-component-button{width:100%}.order-modal .recipe-component-head{display:none}.order-modal .recipe-component-row{align-items:start;grid-template-columns:minmax(0,1fr) 42px}.order-modal .recipe-component-product{grid-column:1 / 2}.order-modal .remove-component-button{grid-column:2;grid-row:1;align-self:start}.order-modal .recipe-component-quantity,.order-modal .recipe-component-stock,.order-modal .recipe-component-required,.order-modal .recipe-component-note{grid-column:1 / -1}.order-modal .recipe-component-row [data-label]:before{content:attr(data-label);display:block;margin-bottom:5px;color:#607184;font-size:.74rem;font-weight:900;text-transform:uppercase}.order-modal .recipe-component-stock,.order-modal .recipe-component-required{justify-content:space-between;border:1px solid #dbe7ef;border-radius:8px;padding:8px 10px;background:#fbfcfd}.order-total-preview{grid-template-columns:1fr}}.recipe-summary{background:#f8fbfc;border:1px solid #dbe7ef;border-radius:8px;display:grid;gap:12px;padding:12px 14px}.recipe-summary-header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.recipe-summary-header>div{display:grid;gap:3px}.recipe-summary-header strong{color:#101820;font-size:.98rem}.recipe-summary-header small{color:#647382;font-weight:750}.recipe-summary-header>span{min-height:28px;display:inline-flex;align-items:center;border:1px solid #dbe7ef;border-radius:999px;padding:0 10px;color:#1f6f78;background:#e8f6f8;font-size:.78rem;font-weight:800;white-space:nowrap}.recipe-summary-table{display:grid;min-width:0;overflow:hidden;border:1px solid #dbe7ef;border-radius:8px;background:#fff}.recipe-summary-table-head,.recipe-summary-row{display:grid;grid-template-columns:minmax(220px,1.6fr) minmax(110px,.7fr) minmax(130px,.8fr) minmax(90px,.55fr) minmax(120px,.8fr);gap:10px;align-items:center;min-width:0;padding:10px 12px}.recipe-summary-table-head>*,.recipe-summary-row>*{min-width:0;overflow:hidden;text-overflow:ellipsis}.recipe-summary-table.compact .recipe-summary-table-head,.recipe-summary-table.compact .recipe-summary-row{grid-template-columns:minmax(220px,1.7fr) minmax(120px,.7fr) minmax(150px,.85fr)}.recipe-summary-table-head{color:#647382;background:#f3f7f9;font-size:.78rem;font-weight:900;text-transform:uppercase}.recipe-summary-row{border-top:1px solid #edf2f5;color:#526272;font-weight:780}.recipe-summary-row strong{min-width:0;overflow:hidden;color:#263746;text-overflow:ellipsis;white-space:nowrap}.recipe-stock-ok{color:#1e7d35}.recipe-stock-muted{color:#8a97a5}.recipe-stock-danger{color:#b4513f}.recipe-summary-empty{margin:0;border:1px dashed #d2dde5;border-radius:8px;padding:12px;color:#647382;background:#fff;font-weight:800}@media(max-width:900px){.recipe-summary-header{flex-direction:column}.recipe-summary-table{overflow-x:auto}.recipe-summary-table-head,.recipe-summary-row{min-width:760px}.recipe-summary-table.compact .recipe-summary-table-head,.recipe-summary-table.compact .recipe-summary-row{min-width:520px}.recipe-component-editor.no-stock-status .recipe-component-head{display:none}.recipe-component-editor.no-stock-status .recipe-component-row{grid-template-columns:minmax(0,1fr) 42px}.recipe-component-editor.no-stock-status .recipe-component-product{grid-column:1 / 2}.recipe-component-editor.no-stock-status .remove-component-button{grid-column:2;grid-row:1}.recipe-component-editor.no-stock-status .recipe-component-quantity,.recipe-component-editor.no-stock-status .recipe-component-required,.recipe-component-editor.no-stock-status .recipe-component-note{grid-column:1 / -1}.recipe-component-editor.no-stock-status .recipe-component-row [data-label]:before{content:attr(data-label);display:block;color:#647382;font-size:.72rem;font-weight:900;margin-bottom:5px;text-transform:uppercase}}.remove-component-button{width:38px;height:38px;display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:8px;color:#c44836;background:transparent}.remove-component-button:hover{background:#fff1ed}.admin-hero{background:linear-gradient(135deg,#1f6f781a,#d9b44a14),#fff}.admin-page{min-height:100vh;background:linear-gradient(180deg,#f8fafb 0,#eef2f5 260px),#eef2f5}.admin-topbar{min-height:70px;display:flex;align-items:center;gap:14px;padding:14px 24px;border-bottom:1px solid #dbe3ea;background:#ffffffe6;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.admin-topbar div{flex:1;display:grid;gap:3px}.admin-topbar strong{color:#101820;font-size:1.05rem}.admin-topbar span{color:#647382;font-size:.86rem;font-weight:700}.admin-grid{align-items:stretch;display:grid;grid-template-columns:minmax(260px,.9fr) minmax(260px,.9fr) minmax(440px,1.2fr);gap:18px}.admin-card{display:grid;gap:14px;grid-template-rows:auto auto minmax(0,1fr) auto;min-width:0;padding:20px;animation:riseIn .34s var(--ease) both}.admin-card h3{margin:0 0 6px;color:#101820;font-size:1.05rem}.admin-card p{margin:0;color:#647382;line-height:1.45}.admin-users-card{min-width:0}.admin-card button{min-height:40px;border:0;border-radius:6px;color:#fff;background:linear-gradient(135deg,var(--accent),#2c8a93);font-weight:800}.admin-card-icon{width:42px;height:42px;display:inline-flex;align-items:center;justify-content:center;border-radius:8px;color:#1f6f78;background:#e1f1f3}.admin-list,.admin-user-list{display:grid;gap:8px;min-height:0}.admin-list{max-height:314px;overflow:auto;padding-right:4px}.admin-action-row{display:grid;gap:10px;grid-template-columns:repeat(2,minmax(0,1fr))}.admin-user-list{max-height:314px;overflow:auto;padding-right:4px}.admin-list::-webkit-scrollbar,.admin-user-list::-webkit-scrollbar{width:8px}.admin-list::-webkit-scrollbar-thumb,.admin-user-list::-webkit-scrollbar-thumb{border-radius:999px;background:#b6c7d2}.admin-list::-webkit-scrollbar-track,.admin-user-list::-webkit-scrollbar-track{background:transparent}.admin-list span{min-height:34px;display:inline-flex;align-items:center;border:1px solid #dfe6ec;border-radius:6px;padding:0 10px;color:#263746;background:#f8fafb;font-weight:800}.admin-edit-row{align-items:center;display:grid;gap:7px;grid-template-columns:minmax(0,1fr) 40px}.admin-edit-row input{min-height:38px;border:1px solid #d0dce5;border-radius:6px;color:#172331;font-weight:800;padding:0 12px}.admin-edit-row input:focus{border-color:var(--accent);box-shadow:0 0 0 3px #236f781f;outline:none}.admin-edit-row button{min-height:38px;padding:0;background:#fff2f0;color:#b42318;border:1px solid #ffd0c8;box-shadow:none}.admin-edit-row button:hover{background:#ffe7e2;box-shadow:none;color:#9f1d13}.admin-user-row{align-items:stretch;background:#fff;border:1px solid #dce6ed;border-radius:8px;display:grid;gap:10px;grid-template-columns:minmax(0,1fr);padding:12px}.admin-user-link{display:grid;gap:6px;grid-template-columns:minmax(0,1fr) auto;position:relative;padding-bottom:10px;border-bottom:1px solid #e6edf2;transition:background .16s var(--ease),border-color .16s var(--ease),box-shadow .16s var(--ease),transform .16s var(--ease)}.admin-user-link strong,.admin-user-link span{grid-column:1}.admin-user-link:after{align-self:start;background:#e1f1f3;border-radius:999px;color:#1f6f78;content:"Profil";font-size:12px;font-weight:850;grid-column:2;grid-row:1;padding:6px 10px}.admin-user-link:hover{color:inherit}.admin-user-row:hover{border-color:#1f6f7852;box-shadow:0 10px 20px #1e334714;transform:translateY(-1px)}.admin-user-row strong,.admin-user-link strong{color:#101820}.admin-user-row span,.admin-user-link span,.admin-note span{color:#647382}.admin-user-controls{align-items:stretch;display:grid;gap:8px;grid-template-columns:repeat(auto-fit,minmax(128px,1fr));justify-content:stretch}.admin-user-controls select{min-width:0;width:100%;min-height:40px;padding-block:0;font-weight:750}.admin-user-controls button{display:inline-flex;align-items:center;justify-content:center;gap:6px;width:100%;border:1px solid #b8d8dd;min-height:40px;padding:0 13px;color:var(--accent);background:#e8f4f6;white-space:nowrap}.admin-user-controls button:hover:not(:disabled){color:#fff;border-color:var(--accent);background:var(--accent)}.admin-user-controls .danger-button{border:1px solid #f0b4ad;color:#a52718;background:#fff4f2}.admin-user-controls .danger-button:hover:not(:disabled){color:#fff;border-color:#a52718;background:#a52718}.admin-user-controls button:disabled,.admin-user-controls select:disabled{opacity:.62}.page-access-list{display:grid;gap:12px}.page-access-row{align-items:start;border:1px solid #dfe6ec;border-radius:8px;display:grid;gap:14px;grid-template-columns:minmax(210px,.75fr) minmax(280px,1.2fr) minmax(180px,.55fr);padding:14px;background:#fbfcfd}.page-access-title{align-items:center;display:flex;gap:12px}.page-access-title div,.page-access-options{display:grid;gap:5px}.page-access-title strong{color:#101820}.page-access-title small,.page-access-options>span{color:#647382;font-weight:750}.access-chip-list{display:flex;flex-wrap:wrap;gap:8px}.access-chip-list.compact{align-content:start}.access-chip{align-items:center;border:1px solid #d5e2ea;border-radius:999px;color:#263746;cursor:pointer;display:inline-flex;gap:7px;min-height:34px;padding:0 11px;background:#fff;font-weight:850;-webkit-user-select:none;user-select:none}.access-chip input{accent-color:var(--accent);pointer-events:none}.access-chip.is-active,.access-chip:has(input:checked){border-color:#1f6f7873;color:#fff;background:linear-gradient(135deg,var(--accent),#2c8a93)}.settings-grid{display:grid;grid-template-columns:repeat(3,minmax(180px,1fr));gap:14px}.account-form{display:grid;grid-template-columns:repeat(6,minmax(130px,1fr)) auto;gap:14px;align-items:end}.account-create-panel{display:grid;gap:16px}.account-create-summary{display:flex;align-items:center;gap:12px;color:#647382}.account-create-summary strong,.account-create-summary span{display:block}.account-create-summary strong{color:#101820}.warehouse-form{display:grid;grid-template-columns:minmax(180px,1fr) minmax(160px,.55fr) auto;gap:14px;align-items:end;margin-bottom:16px}.account-form button,.warehouse-form button{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:6px;padding:0 16px;color:#fff;background:linear-gradient(135deg,var(--accent),#2c8a93);font-weight:800;white-space:nowrap}.warehouse-list{display:grid;gap:10px;max-height:360px;overflow:auto;padding-right:4px}.warehouse-list::-webkit-scrollbar{width:8px}.warehouse-list::-webkit-scrollbar-thumb{border-radius:999px;background:#b6c7d2}.warehouse-list::-webkit-scrollbar-track{background:transparent}.warehouse-list article{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;border:1px solid #dfe6ec;border-radius:8px;padding:12px;background:#f8fafb}.warehouse-icon{width:38px;height:38px;display:inline-flex;align-items:center;justify-content:center;border-radius:8px;color:#1f6f78;background:#e1f1f3}.warehouse-list div{display:grid;gap:3px}.warehouse-list strong{color:#101820}.warehouse-list small{color:#647382;font-weight:750}.warehouse-list button{min-height:36px;display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid #ffc9c9;border-radius:6px;padding:0 12px;color:#c53939;background:#fff4f4;font-weight:850}.account-form button:disabled{cursor:progress;opacity:.72}.loading-screen,.loading-state.full-page{min-height:100vh;display:grid;place-content:center;gap:8px;background:#eef3f6;color:#101820;text-align:center}.loading-screen span{color:#647382;font-weight:700}.loading-state{width:100%;min-height:132px;display:grid;place-items:center;align-content:center;gap:8px;border:1px solid #d6e1e7;border-radius:8px;background:#f8fafb;color:#101820;text-align:center}.loading-state.compact{min-height:88px}.loading-state-icon{color:#247d87;animation:loading-spin .9s linear infinite}.loading-state strong{font-size:.98rem}.loading-state span{color:#647382;font-weight:700}@keyframes loading-spin{to{transform:rotate(360deg)}}.warehouse-list button:hover:not(:disabled){color:#fff;background:#c53939;transform:translateY(-1px)}.warehouse-list button:disabled{cursor:not-allowed;opacity:.45}.admin-note{grid-column:1 / -1;display:flex;align-items:center;gap:10px;min-height:46px;border:1px solid #dfe6ec;border-radius:8px;padding:12px;background:#f8fafb}.access-denied{width:min(520px,calc(100% - 32px));display:grid;gap:14px;margin:16vh auto 0;padding:28px;border:1px solid #d9e1e8;border-radius:8px;background:#fff;box-shadow:0 12px 28px #1018200d}.access-denied h1,.access-denied p{margin:0}.access-denied p{color:#647382}.access-denied button{min-height:42px;border:0;border-radius:6px;color:#fff;background:#1f6f78;font-weight:800}.form-layout{display:grid;grid-template-columns:minmax(220px,.75fr) minmax(280px,1fr);gap:28px;margin:24px;padding:28px}.movement-layout,.production-grid{display:grid;grid-template-columns:minmax(620px,1fr) minmax(340px,.34fr);gap:18px}.movement-panel,.movement-preview,.production-summary{border:1px solid #d9e1e8;border-radius:8px;background:#fff;box-shadow:var(--shadow-sm);animation:riseIn .34s var(--ease) both}.movement-panel{display:grid;gap:14px;padding:20px}.movement-product-card{display:grid;grid-template-columns:minmax(280px,1fr) minmax(280px,.7fr);align-items:start;gap:14px;border:1px solid #dfe6ec;border-radius:8px;padding:12px;background:#fbfcfd}.selected-product-info{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.selected-product-info div{display:grid;gap:4px;border-left:1px solid #e1e8ee;padding-left:10px}.movement-product-card span,.movement-summary-box span{color:#647382;font-size:.86rem;font-weight:800}.movement-product-card strong{color:#101820}.movement-product-card small,.char-count{color:#647382;font-weight:750}.stock-blue{color:#1473e6!important}.product-search-label{min-width:0}.product-combobox{position:relative;z-index:30;min-width:0;width:100%}.product-combobox input{width:100%;min-width:0}.product-combobox.results-inline{display:grid;gap:8px;z-index:auto}.product-results{position:absolute;top:calc(100% + 8px);right:0;left:0;z-index:80;max-height:172px;overflow:auto;border:1px solid #cbd6df;border-radius:8px;margin-top:0;padding:5px;background:#fff;box-shadow:0 18px 40px #10182029;transform-origin:top center;animation:dropdownIn .16s var(--ease-spring) both}.product-combobox.results-inline .product-results{position:static;z-index:auto;max-height:168px;margin-top:0;box-shadow:inset 0 1px #ffffffb8,0 12px 26px #10182014;animation:none}.product-results button,.product-no-result{width:100%;display:grid;gap:3px;min-width:0;border:0;border-radius:6px;padding:9px 10px;color:#17202a;background:transparent;text-align:left}.product-results button:hover{background:#eaf6f7;transform:translate(2px)}.product-results button span,.product-no-result{color:#647382;font-size:.84rem;font-weight:750;min-width:0;overflow-wrap:anywhere}.product-results button strong{min-width:0;overflow-wrap:anywhere}.movement-panel h3{margin:0;color:#101820}.movement-type-block{display:grid;gap:10px}.movement-type-block b,.movement-form b{color:#b4513f}.movement-type-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.movement-type{min-height:92px;display:grid;grid-template-columns:36px minmax(0,1fr);align-items:start;gap:10px;border:1px solid #dfe6ec;border-radius:8px;padding:12px;color:#263746;background:#fbfcfd;text-align:left}.movement-type:not(.active){border-color:#dfe6ec;color:#263746;background:linear-gradient(135deg,#fff,#f6fbfc);box-shadow:none}.movement-type:not(.active):hover{border-color:#1f6f7859;color:#1f6f78;background:linear-gradient(135deg,#e7f5f7,#f8fcfd);box-shadow:0 10px 22px #1f6f781f;transform:translateY(-1px)}.movement-type.active{border-color:var(--accent);color:#fff;background:linear-gradient(135deg,var(--accent),#2c8a93);box-shadow:0 14px 28px #1f6f7838;transform:translateY(-1px)}.movement-type-icon{width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;border-radius:8px;color:var(--accent);background:#e1f1f3}.movement-type.active .movement-type-icon{color:var(--accent);background:#fff}.movement-type:not(.active) .movement-type-icon{color:var(--accent);background:#e1f1f3}.movement-type>span:last-child{display:grid;gap:3px;min-width:0}.movement-type strong{color:inherit;line-height:1.15}.movement-type small,.preview-card small,.movement-history small,.impact-row small,.completion-note span{color:#647382;font-weight:750}.movement-type.active small{color:#ffffffdb}.movement-type:not(.active) small{color:#647382}.movement-form{gap:14px}.form-row.three{grid-template-columns:repeat(3,minmax(0,1fr))}.input-with-unit{display:grid;grid-template-columns:1fr auto}.input-with-unit input{border-radius:6px 0 0 6px}.input-with-unit span{display:inline-flex;align-items:center;border:1px solid #cbd6df;border-left:0;border-radius:0 6px 6px 0;padding:0 12px;color:#263746;background:#f8fafb;font-weight:800}.char-count{justify-self:end}.movement-summary-box{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;border:1px solid rgba(31,111,120,.32);border-radius:8px;padding:14px;background:#eef9fb}.movement-summary-box div{display:grid;gap:5px}.movement-summary-box strong{color:#1473e6}.movement-note{border:1px solid #f0dfb6;border-radius:8px;padding:12px 14px;color:#6f5620;background:#fff8e7;font-weight:800;line-height:1.45}.movement-preview,.production-summary{align-content:start;display:grid;gap:12px;padding:16px}.preview-card{display:grid;gap:6px;border:1px solid #dfe6ec;border-radius:8px;padding:14px;background:#fbfcfd}.preview-card.accent-preview{display:flex;align-items:flex-start;gap:12px;border-color:#1f6f7847;background:linear-gradient(135deg,#e1f1f3,#fff)}.preview-card.accent-preview>div{min-width:0;display:grid;gap:4px}.preview-card.warning-preview{border-color:#efd0c8;background:#fff8f6}.preview-card span{color:#647382;font-weight:800}.preview-card strong{overflow-wrap:anywhere;color:#101820;font-size:1.08rem;line-height:1.24}.movement-history,.impact-list{display:grid;gap:10px}.movement-history article,.impact-row,.completion-note{display:flex;align-items:center;gap:14px;border:1px solid #dfe6ec;border-radius:8px;padding:14px;background:#fbfcfd}.movement-history article div,.impact-row div,.completion-note div{flex:1;display:grid;gap:3px}.movement-history b,.impact-row b{color:#1f6f78;font-size:1.05rem}.impact-icon{width:38px;height:38px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;border-radius:8px;color:#1f6f78;background:#e1f1f3}.impact-row.danger{border-color:#efd0c8;background:#fff8f6}.impact-row.danger b,.impact-row.danger span:last-child{color:#b4513f}.completion-note{border-color:#1f6f7847;color:#1f6f78;background:#eaf6f7}.work-form button:disabled{cursor:not-allowed;opacity:.55;box-shadow:none;transform:none}.recipe-card,.request-row,.warning-list article{display:flex;align-items:center;gap:14px;padding:16px;border:1px solid #dfe6ec;border-radius:8px;background:#fbfcfd;animation:riseIn .32s var(--ease) both}.recipe-card:hover,.request-row:hover,.warning-list article:hover{border-color:#c9d5de;box-shadow:var(--shadow-sm);transform:translateY(-1px)}.request-row,.warning-list article,.warehouse-list article,.production-plan-card,.finance-row,.order-card{animation:listItemIn .26s var(--ease) both}.request-row:nth-child(2),.warning-list article:nth-child(2),.warehouse-list article:nth-child(2),.production-plan-card:nth-child(2),.finance-row:nth-child(2),.order-card:nth-child(2){animation-delay:35ms}.request-row:nth-child(3),.warning-list article:nth-child(3),.warehouse-list article:nth-child(3),.production-plan-card:nth-child(3),.finance-row:nth-child(3),.order-card:nth-child(3){animation-delay:70ms}.request-row:nth-child(n+4),.warning-list article:nth-child(n+4),.warehouse-list article:nth-child(n+4),.production-plan-card:nth-child(n+4),.finance-row:nth-child(n+4),.order-card:nth-child(n+4){animation-delay:.1s}.recipe-card div,.request-row div,.warning-list div{flex:1;display:grid;gap:4px}.warning-list{display:grid;gap:12px}.warning-request-form{display:grid;gap:12px;grid-template-columns:minmax(180px,1fr) minmax(150px,.45fr) auto;align-items:end;margin-bottom:16px;padding:14px;border:1px solid #dfe6ec;border-radius:8px;background:#f8fafb}.warning-request-form .wide-field{grid-column:1 / -1}.warning-request-form textarea{min-height:78px}.warning-request-submit{min-height:44px;border:0;border-radius:6px;padding:0 16px;color:#fff;background:linear-gradient(135deg,var(--accent),#2c8a93);font-weight:800}.warning-request-submit:disabled{cursor:not-allowed;background:#9fb1bf}.warning-request-form .product-combobox{z-index:95}.request-list{display:grid;gap:12px}.history-filters{--filter-control-height: 46px;display:grid;grid-template-columns:minmax(260px,1fr) minmax(180px,.35fr) auto;gap:12px;align-items:end;margin-bottom:14px;padding:14px;border:1px solid #dfe6ec;border-radius:8px;background:#f8fafb}.list-filters{--filter-control-height: 46px;display:grid;grid-template-columns:minmax(240px,1fr) minmax(170px,260px);gap:12px;align-items:end;margin-bottom:14px;padding:14px;border:1px solid #dfe6ec;border-radius:8px;background:#f8fafb}.list-filters.single{grid-template-columns:minmax(0,1fr)}.list-filters.compact{padding:10px;margin-bottom:12px}.list-filters select{width:100%;height:var(--filter-control-height);min-height:var(--filter-control-height);border:1px solid #cbd8e3;border-radius:6px;padding:0 12px;color:#263746;background:#fff;font-weight:800}.list-filters select:focus{border-color:var(--accent);box-shadow:0 0 0 3px #1f6f781f;outline:0}.history-search{height:var(--filter-control-height);min-height:var(--filter-control-height);display:flex;align-items:center;gap:10px;border:1px solid #cbd8e3;border-radius:6px;padding:0 12px;background:#fff}.history-search:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px #1f6f781f}.history-search input{min-width:0;height:calc(var(--filter-control-height) - 2px);flex:1 1 auto;width:100%;border:0;padding:0;outline:0;background:transparent;box-shadow:none}.history-filters button{height:var(--filter-control-height);min-height:var(--filter-control-height);display:inline-flex;align-items:center;justify-content:center;align-self:end;border:1px solid #cbd8e3;border-radius:6px;padding:0 14px;line-height:1;color:#263746;background:#fff;font-weight:850;white-space:nowrap}.history-filters button:hover{color:#fff;border-color:var(--accent);background:var(--accent);transform:translateY(-1px)}.warning-list article{border-color:#efd0c8;background:#fff8f6}.status{display:inline-flex;align-items:center;justify-content:center;min-height:30px;border-radius:999px;padding:0 12px;color:#1f6f78;background:#e1f1f3;font-weight:800;white-space:nowrap}.status.pending{color:#a36500;background:#fff7d8}.status.approved{color:#1e7d35;background:#e7f8eb}.status.rejected{color:#c53939;background:#fff0f0}.status.danger{color:#b4513f;background:#fff0ec}.request-actions{flex:0 0 auto!important;display:flex!important;align-items:center;justify-content:flex-end;gap:8px!important}.request-actor{color:#1f6f78;font-size:.9rem;font-weight:900}.request-actions button{min-height:36px;display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid transparent;border-radius:6px;padding:0 12px;font-weight:850}.request-actions .approve{color:#1e7d35;border-color:#bde8c8;background:#ecfbef}.request-actions .approve:hover:not(:disabled){color:#fff;background:#1e7d35}.request-actions .reject{color:#c53939;border-color:#ffc9c9;background:#fff4f4}.request-actions .reject:hover:not(:disabled){color:#fff;background:#c53939}.request-actions button:disabled{cursor:not-allowed;opacity:.45}.empty-state{display:flex;align-items:center;min-height:92px;padding:18px;border:1px dashed #b9c7d2;border-radius:8px;color:#647382;background:#f8fafb;font-weight:700;animation:fadeIn .24s var(--ease) both}.forbidden-page{min-height:min(560px,calc(100vh - 170px));display:grid;place-items:center;padding:28px}.forbidden-panel{width:min(560px,100%);display:grid;gap:18px;justify-items:start;padding:28px;border:1px solid #d7e1e8;border-radius:8px;background:#fff;box-shadow:var(--shadow-sm)}.forbidden-icon{width:58px;height:58px;display:inline-flex;align-items:center;justify-content:center;color:#9b5a00;border-radius:8px;background:#fff2cf}.forbidden-panel h2{margin-bottom:8px}.forbidden-panel p:last-child{margin:0;color:var(--muted);font-weight:700}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes riseIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes modalFadeIn{0%{opacity:0}to{opacity:1}}@keyframes modalRiseIn{0%{opacity:0;transform:translateY(14px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes slideIn{0%{opacity:0;transform:translate(-18px)}to{opacity:1;transform:translate(0)}}@keyframes rackIn{0%{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes sweep{0%,45%{transform:translate(-100%)}75%,to{transform:translate(100%)}}@keyframes sidebarSweep{0%,68%{transform:translate(-110%)}88%,to{transform:translate(110%)}}@keyframes dropdownIn{0%{opacity:0;transform:translateY(-4px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes listItemIn{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:1ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:1ms!important}.sidebar:after{display:none}}@media(max-width:1280px){.admin-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-users-card{grid-column:1 / -1}}@media(max-width:920px){.login-page{grid-template-columns:1fr}.login-visual{min-height:360px}.app-shell{grid-template-columns:1fr}.sidebar{position:fixed;inset:0 auto 0 0;z-index:30;width:min(300px,86vw);transform:translate(-100%);transition:transform .18s ease}.sidebar.open{transform:translate(0)}.sidebar-scrim{position:fixed;inset:0;z-index:24;display:block;border:0;padding:0;background:#10182000;opacity:0;pointer-events:none;transform:none;transition:opacity .18s var(--ease),background-color .18s var(--ease)}.sidebar-scrim.open{background:#10182047;opacity:1;pointer-events:auto}.mobile-only{display:inline-flex}.close-menu{margin-left:auto}.topbar{flex-wrap:wrap}.page-title{min-width:0}.search-box{order:5;flex-basis:100%;max-width:none}.profile-menu{margin-left:0}.content-grid{grid-template-columns:repeat(2,minmax(140px,1fr))}.dashboard-actions{grid-template-columns:repeat(2,minmax(160px,1fr))}.form-layout,.movement-layout,.production-grid,.movement-type-grid,.movement-product-card,.movement-summary-box,.selected-product-info,.form-row.three{grid-template-columns:1fr}.selected-product-info div{border-left:0;border-top:1px solid #e1e8ee;padding-top:10px;padding-left:0}.filter-bar,.list-filters{grid-template-columns:1fr}.order-detail-grid,.order-form-grid,.daily-outgoing-card,.shipment-send-form,.order-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.order-form-grid .department-picker{grid-column:1 / -1}.order-summary-row{grid-template-columns:44px minmax(0,1fr) minmax(90px,.55fr) minmax(160px,auto)}.order-summary-row>span:nth-of-type(4),.order-summary-row>span:nth-of-type(5){display:none}.product-form-grid,.component-table-head,.component-row,.recipe-component-head,.recipe-component-row{grid-template-columns:1fr}.details-info-grid{grid-template-columns:minmax(130px,.7fr) minmax(160px,1fr)}.details-info-grid>:nth-last-child(-n+4){border-bottom:1px solid #e8edf2}.details-info-grid>:nth-last-child(-n+2){border-bottom:0}.details-info-grid>:nth-child(4n){border-right:1px solid #e8edf2}.details-info-grid>:nth-child(2n){border-right:0}.details-component-list article{grid-template-columns:1fr}.admin-grid,.settings-grid,.account-form,.warehouse-form,.list-filters,.history-filters,.page-access-row,.admin-user-row{grid-template-columns:1fr}.admin-user-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));justify-content:stretch}.admin-user-controls select,.admin-user-controls button{width:100%}.page-intro{align-items:flex-start;flex-direction:column}.quick-stats{justify-content:flex-start}}@media(max-width:560px){.login-panel,.login-visual{padding:28px 20px}.content-grid,.page-stack,.wide-panel,.form-layout{margin:14px;padding:16px}.content-grid,.dashboard-actions,.admin-user-link,.admin-user-controls{grid-template-columns:1fr}.admin-user-link:after{justify-self:start;grid-column:1;grid-row:auto}.modal-backdrop,.details-backdrop{padding:12px}.details-modal{width:calc(100vw - 24px);max-height:calc(100vh - 24px)}.details-header,.details-body{padding:14px}.details-info-grid{grid-template-columns:1fr}.details-info-grid span,.details-info-grid strong,.details-info-grid>:nth-last-child(-n+2),.details-info-grid>:nth-child(2n),.details-info-grid>:nth-child(4n){border-right:0;border-bottom:1px solid #e8edf2}.details-info-grid>:last-child{border-bottom:0}.product-modal,.finance-modal{width:calc(100vw - 24px);max-height:calc(100vh - 24px)}.order-modal,.order-detail-modal{width:calc(100vw - 24px);height:calc(100vh - 24px)}.order-detail-grid,.order-form-grid,.shipment-send-form,.order-filters{grid-template-columns:1fr}.order-summary-row{grid-template-columns:40px minmax(0,1fr) minmax(100px,auto);height:auto;min-height:64px;padding:10px 12px}.order-card-actions{width:100%;flex-direction:column}.order-detail-button,.order-delete-button{width:100%;min-width:0}.order-summary-row>span:not(.order-icon):not(.order-summary-product){display:none}.order-form-grid .span-two{grid-column:auto}.order-form-grid .department-picker{grid-column:1 / -1}.order-card-main,.order-actions{align-items:flex-start;flex-direction:column}.modal-header,.modal-footer,.modal-body{padding:14px}.modal-title p{display:none}.form-row.two,.finance-form-grid{grid-template-columns:1fr}.department-picker>div:first-child{align-items:flex-start;flex-direction:column}.panel-header,.filter-summary,.recipe-card,.request-row,.warehouse-list article,.warning-list article,.movement-history article,.impact-row,.completion-note{align-items:flex-start;flex-direction:column}.profile-trigger{width:46px;padding:4px}.profile-copy,.profile-chevron{display:none}.profile-dropdown{right:-54px}}.field-hint{color:#5b6b7c;display:block;font-size:12px;font-weight:700;margin-top:6px}.field-hint.danger{color:#b42318}.warehouse-stock-grid{display:grid;gap:10px;grid-template-columns:repeat(4,minmax(0,1fr));margin:12px 0 22px}.warehouse-stock-card{background:#f8fbfc;border:1px solid #dbe7ef;border-radius:8px;display:grid;gap:4px;padding:12px}.warehouse-stock-card span,.warehouse-stock-card small{color:#607184;font-weight:700}.warehouse-stock-card strong{color:#14707a;font-size:20px}.warehouse-stock-card.empty strong{color:#b42318}.production-allocation-box,.production-stage-box{background:#f8fbfc;border:1px solid #dbe7ef;border-radius:8px;display:grid;gap:12px;padding:14px}.allocation-header{align-items:center;display:flex;justify-content:space-between;gap:12px}.allocation-header div{display:grid;gap:3px}.allocation-header small{color:#607184;font-weight:700}.allocation-header button,.allocation-row button{align-items:center;display:inline-flex;gap:8px}.allocation-row{align-items:end;display:grid;gap:10px;grid-template-columns:1fr 180px 44px}.allocation-row button{height:44px;justify-content:center;padding:0}.production-stage-editor-row{grid-template-columns:34px minmax(95px,.7fr) minmax(150px,1fr) minmax(120px,.75fr) minmax(120px,.65fr) 44px}.production-stage-editor-row button{height:42px;justify-content:center;padding:0}.production-target-list{background:#f8fbfc;border:1px solid #dbe7ef;border-radius:8px;display:grid;gap:8px;padding:14px}.production-target-list span{color:#607184;font-weight:700}.production-warning{align-items:center;background:#fff7d8;border:1px solid #ffe08a;border-radius:8px;color:#8a5a00;display:flex;gap:10px;font-weight:850;padding:12px 14px}.production-plan-list{display:grid;gap:12px}.production-planning-modal{width:min(1200px,calc(100vw - 72px));height:min(828px,calc(100vh - 72px))}.production-planning-body{background:linear-gradient(180deg,#fbfcfd,#f6f9fb)}.production-planning-grid{align-items:start;grid-template-columns:minmax(420px,1fr) minmax(420px,1fr)}.production-planning-modal .wide-panel,.production-planning-modal .production-summary,.production-planning-modal .production-impact-section{box-shadow:none;margin:0}.production-planning-modal .wide-panel:hover{transform:none}.production-planning-modal .panel-header{border-bottom:1px solid #e4ebf0;margin:-24px -24px 16px;padding:16px 24px}.production-planning-modal .panel-header button{display:none}.production-planning-modal .work-form{gap:14px}.production-planning-modal .production-summary{display:grid;gap:14px}.production-planning-modal .production-impact-section{margin-top:16px}.production-table-wrap{position:relative;width:100%;max-width:100%;overflow-x:auto;padding-bottom:2px;background:#fff}.production-plan-table{width:100%;min-width:980px;table-layout:fixed;border-collapse:separate;border-spacing:0 8px}.production-plan-table th{background:#f8fafb;box-shadow:0 1px #e5ebf0;color:#526272;font-size:.76rem;font-weight:900;padding:0 12px 4px;text-align:left;text-transform:uppercase;white-space:nowrap}.production-plan-table th:nth-child(1),.production-plan-table tbody tr:not(.production-plan-detail-row)>td:nth-child(1){width:14%}.production-plan-table th:nth-child(2),.production-plan-table tbody tr:not(.production-plan-detail-row)>td:nth-child(2){width:18%}.production-plan-table th:nth-child(3),.production-plan-table tbody tr:not(.production-plan-detail-row)>td:nth-child(3){width:10%}.production-plan-table th:nth-child(4),.production-plan-table tbody tr:not(.production-plan-detail-row)>td:nth-child(4){width:16%}.production-plan-table th:nth-child(5),.production-plan-table tbody tr:not(.production-plan-detail-row)>td:nth-child(5){width:18%}.production-plan-table th:nth-child(6),.production-plan-table tbody tr:not(.production-plan-detail-row)>td:nth-child(6){width:10%}.production-plan-table th:nth-child(7),.production-plan-table tbody tr:not(.production-plan-detail-row)>td:nth-child(7){width:14%}.production-plan-table td{background:#fff;border-bottom:1px solid #dbe7ef;border-top:1px solid #dbe7ef;color:#263545;font-weight:750;overflow:hidden;padding:12px;vertical-align:middle}.production-plan-table td:first-child{border-left:1px solid #dbe7ef;border-radius:8px 0 0 8px}.production-plan-table td:last-child{border-right:1px solid #dbe7ef;border-radius:0 8px 8px 0}.production-plan-table td strong,.production-plan-table td small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.production-plan-table td small{color:#607184;margin-top:3px}.production-table-toggle,.production-table-complete{align-items:center;border-radius:8px;cursor:pointer;display:inline-flex;gap:8px;justify-content:center;min-height:36px;max-width:100%;white-space:nowrap}.production-table-toggle span{min-width:0;overflow:hidden;text-overflow:ellipsis}.production-table-toggle{background:#eef6f8;border:1px solid #cfe2e6;color:#1f6f78;padding:0 10px}.production-table-toggle svg{transition:transform .16s var(--ease)}.production-table-toggle[aria-expanded=true] svg{transform:rotate(180deg)}.production-table-complete{background:#1f7f88;border:0;color:#fff;padding:0 12px}.production-table-complete:hover{background:#196b73}.production-plan-detail-row td,.production-plan-detail-row td:first-child,.production-plan-detail-row td:last-child{border:1px solid #dbe7ef;border-radius:8px;padding:0}.production-plan-detail-row .production-plan-details{border-top:0}.production-plan-card{background:#fff;border:1px solid #dbe7ef;border-radius:8px;display:grid;overflow:hidden}.production-plan-card.completed{background:#f7fbf8}.production-plan-card>div,.production-plan-impact,.production-plan-targets,.production-stage-list,.production-plan-actions,.production-plan-toggle,.production-plan-details,.production-stage-detail-list{display:grid;gap:5px}.production-stage-list{align-content:center}.production-stage-list.compact{align-items:center;display:flex;flex-wrap:wrap;justify-content:flex-end}.production-plan-toggle{align-items:center;background:#fff;border:0;color:inherit;cursor:pointer;gap:14px;grid-template-columns:minmax(220px,1fr) minmax(260px,1.2fr) 36px;padding:14px;text-align:left;width:100%}.production-plan-toggle:hover{background:#fbfcfd}.production-toggle-icon{align-items:center;border:1px solid #dbe7ef;border-radius:999px;color:#236f78;display:inline-flex;height:32px;justify-content:center;justify-self:end;transition:transform .16s var(--ease);width:32px}.production-plan-toggle[aria-expanded=true] .production-toggle-icon{transform:rotate(180deg)}.production-plan-details{border-top:1px solid #e7edf2;padding:14px}.production-plan-meta{display:grid;gap:12px;grid-template-columns:minmax(240px,1fr) minmax(220px,.8fr)}.production-stage-detail-list{gap:10px}.production-stage-detail{align-items:end;background:#fbfcfd;border:1px solid #e1e8ee;border-radius:8px;display:grid;gap:10px;grid-template-columns:34px minmax(100px,.7fr) minmax(130px,1fr) minmax(120px,.75fr) minmax(130px,.75fr) minmax(120px,.65fr);padding:10px}.production-stage-detail .stage-note-field{grid-column:2 / -1}.production-plan-card strong{color:#172331}.production-plan-card span,.production-plan-card small,.production-plan-impact span{color:#607184;font-weight:750}.production-plan-impact b{color:#b42318}.production-plan-targets span{background:#eef6f8;border-radius:999px;color:#236f78;padding:6px 10px}.production-plan-actions{justify-items:stretch}.production-plan-actions button{align-items:center;border:0;border-radius:8px;box-shadow:0 10px 22px #236f782e;color:#fff;cursor:pointer;display:inline-flex;gap:8px;justify-content:center;min-height:40px;padding:0 14px;transition:transform .16s var(--ease),box-shadow .16s var(--ease),background .16s var(--ease);white-space:nowrap}.production-complete-button{background:linear-gradient(135deg,var(--accent),#2c8a93);font-weight:850}.production-next-button{background:linear-gradient(135deg,#526272,#34495a);font-weight:850}.production-complete-button:hover{box-shadow:0 14px 28px #236f783d;transform:translateY(-1px)}.production-complete-button:active{transform:translateY(0)}@media(max-width:900px){.warehouse-stock-grid,.allocation-row,.production-plan-card{grid-template-columns:1fr}}.finance-hero{background:linear-gradient(135deg,#fff,#f3fbfa 55%,#fffaf0)}.finance-metric-grid{display:grid;gap:14px;grid-template-columns:repeat(4,minmax(160px,1fr))}.finance-metric{align-items:center;background:#fff;border:1px solid #d9e1e8;border-radius:8px;box-shadow:var(--shadow-sm);display:grid;gap:14px;grid-template-columns:46px 1fr;padding:18px}.finance-metric-icon{align-items:center;background:#e1f1f3;border-radius:8px;color:#1f6f78;display:inline-flex;height:46px;justify-content:center;width:46px}.finance-metric div,.finance-row>div{display:grid;gap:3px}.finance-metric span,.budget-row span,.finance-row span,.finance-row small{color:#607184;font-weight:750}.finance-metric strong{color:#101820;font-size:24px}.finance-metric small{color:#1f6f78;font-weight:850}.finance-metric.warning .finance-metric-icon{background:#fff7d8;color:#9a6700}.finance-metric.danger .finance-metric-icon{background:#fff1ed;color:#b42318}.finance-metric.success .finance-metric-icon{background:#e7f8eb;color:#1e7d35}.finance-main-grid{display:grid;gap:18px;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.cashflow-chart,.budget-list,.finance-list{display:grid;gap:12px}.cashflow-row{align-items:center;display:grid;gap:12px;grid-template-columns:72px 1fr}.cashflow-row>span{color:#34495a;font-weight:850}.cashflow-bars{display:grid;gap:7px}.cashflow-bar{align-items:center;border-radius:999px;color:#fff;display:inline-flex;font-size:12px;font-weight:850;min-height:28px;min-width:96px;padding:0 12px}.cashflow-bar.income{background:linear-gradient(135deg,var(--accent),#2c8a93)}.cashflow-bar.expense{background:#8ea0ad}.budget-row{display:grid;gap:9px}.budget-row>div:first-child{align-items:center;display:flex;justify-content:space-between;gap:12px}.budget-row strong,.finance-row strong{color:#101820}.budget-row b{color:#1f6f78}.budget-track{background:#eef3f6;border-radius:999px;height:12px;overflow:hidden}.budget-track span{background:linear-gradient(135deg,var(--accent),#2c8a93);display:block;height:100%}.finance-row{align-items:center;border:1px solid #dfe6ec;border-radius:8px;display:grid;gap:12px;grid-template-columns:42px minmax(160px,1fr) minmax(110px,.45fr) minmax(110px,.45fr) auto;padding:12px}.finance-row-icon{align-items:center;border-radius:8px;display:inline-flex;height:42px;justify-content:center;width:42px}.finance-row-icon.income{background:#e7f8eb;color:#1e7d35}.finance-row-icon.expense{background:#fff1ed;color:#b42318}.finance-row b{color:#172331}.finance-action-grid{display:grid;gap:12px;grid-template-columns:repeat(3,minmax(160px,1fr))}.finance-action-grid button{align-items:center;background:#f8fafb;border:1px solid #d6e1e8;border-radius:8px;color:#263746;display:inline-flex;gap:10px;justify-content:center;min-height:46px;font-weight:850}.finance-action-grid button:hover{background:#e1f1f3;border-color:#1f6f7847;color:#1f6f78}.partner-hero{background:linear-gradient(135deg,#fff,#f4fbfb 56%,#fff8ea)}.partner-company-modal{width:min(860px,calc(100vw - 72px));max-height:min(760px,calc(100vh - 72px));display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden;border:1px solid rgba(217,225,232,.9);border-radius:8px;background:#fff;box-shadow:0 34px 90px #10182047;animation:modalRiseIn .22s var(--ease) both}.partner-detail-modal{width:min(1180px,calc(100vw - 72px));height:min(820px,calc(100vh - 72px));display:grid;grid-template-rows:auto minmax(0,1fr);overflow:hidden;border:1px solid rgba(217,225,232,.9);border-radius:8px;background:#fff;box-shadow:0 34px 90px #10182047;animation:modalRiseIn .22s var(--ease) both}.partner-company-modal textarea{min-height:88px}.partner-table-wrap{position:relative;width:100%;overflow-x:auto;background:#fff}.partner-table{width:100%;min-width:1040px;table-layout:fixed;border-collapse:separate;border-spacing:0}.partner-table th{background:#f8fafb;box-shadow:0 1px #e5ebf0;color:#526272;font-size:.78rem;font-weight:900;text-align:left;text-transform:uppercase;white-space:nowrap}.partner-table th:nth-child(1),.partner-table td:nth-child(1){width:26%}.partner-table th:nth-child(2),.partner-table td:nth-child(2){width:11%}.partner-table th:nth-child(3),.partner-table td:nth-child(3){width:20%}.partner-table th:nth-child(4),.partner-table td:nth-child(4){width:17%}.partner-table th:nth-child(5),.partner-table td:nth-child(5){width:10%}.partner-table th:nth-child(6),.partner-table td:nth-child(6){width:16%}.partner-table th,.partner-table td{border-bottom:1px solid #e1e8ee;overflow:hidden;padding:14px 12px;vertical-align:middle}.partner-table tbody tr:hover{background:#fbfcfd}.partner-company-cell,.partner-contact-cell{display:flex;align-items:center;gap:12px;min-width:0}.partner-contact-cell{align-items:flex-start;flex-direction:column;gap:3px}.partner-company-cell div,.partner-contact-cell{min-width:0}.partner-company-cell strong,.partner-contact-cell strong{overflow:hidden;color:#101820;text-overflow:ellipsis;white-space:nowrap}.partner-company-cell small,.partner-contact-cell small{overflow:hidden;color:#607184;font-weight:750;text-overflow:ellipsis;white-space:nowrap}.partner-table-actions{display:flex;min-width:0;flex-wrap:nowrap;justify-content:flex-end;gap:8px}.partner-table-actions button{flex:1 1 0;min-width:0;min-height:36px;display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid #ccd7df;border-radius:8px;padding:0 10px;color:#263746;background:#fff;font-weight:850;white-space:nowrap}.partner-table-actions button:hover{border-color:#1f6f7852;color:var(--accent);background:#eaf6f7;transform:translateY(-1px)}.partner-table-actions button.danger{border-color:#ffd2c2;color:#b42318;background:#fff4f0}.partner-table-actions button.danger:hover{background:#ffe8e1}.partner-detail-summary{display:grid;gap:10px;grid-template-columns:repeat(4,minmax(140px,1fr));margin-bottom:14px}.partner-detail-summary span{display:grid;gap:4px;border:1px solid #dfe6ec;border-radius:8px;padding:12px;color:#263746;background:#fff;font-weight:800}.partner-detail-summary b{color:#607184;font-size:.78rem;text-transform:uppercase}.partner-layout{display:grid;gap:18px;grid-template-columns:minmax(300px,.38fr) minmax(0,1fr);align-items:start}.partner-list-panel{position:sticky;top:96px;align-self:start}.partner-detail-stack,.partner-company-list,.partner-company-form,.partner-code-form,.partner-code-list,.partner-order-history{display:grid;gap:12px}.partner-company-card{width:100%;min-height:76px;display:grid;align-items:center;grid-template-columns:42px minmax(0,1fr) auto;gap:12px;border:1px solid #dbe4eb;border-radius:8px;padding:12px;color:inherit;background:#fff;text-align:left}.partner-company-card:hover,.partner-company-card.active{border-color:#1f6f785c;background:#f4fbfb;box-shadow:0 12px 26px #10182014;transform:translateY(-1px)}.partner-company-card.active{box-shadow:inset 4px 0 0 var(--accent),0 12px 26px #10182014}.partner-company-icon,.partner-code-icon,.partner-order-icon{width:38px;height:38px;display:inline-flex;align-items:center;justify-content:center;border-radius:8px;color:var(--accent);background:#e1f1f3}.partner-company-card span:nth-child(2),.partner-code-row div,.partner-order-history article div,.partner-architecture-note div{min-width:0;display:grid;gap:4px}.partner-company-card strong,.partner-code-row strong,.partner-order-history strong,.partner-architecture-note strong{color:#101820}.partner-company-card small,.partner-code-row small,.partner-order-history small,.partner-architecture-note span,.partner-empty-lock{color:#607184;font-weight:750}.partner-company-card em{justify-self:end;font-style:normal}.partner-company-form textarea{min-height:88px}.partner-active-switch,.partner-default-switch{align-self:end;min-height:44px}.partner-code-grid{display:grid;gap:12px;grid-template-columns:minmax(240px,1.2fr) minmax(170px,.8fr) minmax(200px,1fr) minmax(150px,.64fr)}.partner-product-field,.partner-code-note{grid-column:span 2}.partner-code-actions{display:flex;justify-content:flex-end;gap:10px}.partner-code-row{display:grid;align-items:center;grid-template-columns:42px minmax(180px,1fr) minmax(180px,.9fr) minmax(110px,.45fr) auto;gap:12px;border:1px solid #dfe6ec;border-radius:8px;padding:12px;background:#fff}.partner-code-row b,.partner-order-history b{color:#172331}.partner-default-badge{min-height:30px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #d6e1e8;border-radius:999px;padding:0 10px;color:#526272;background:#f8fafb;font-weight:850;white-space:nowrap}.partner-default-badge.active{border-color:#bfe8c7;color:#1e7d35;background:#e7f8eb}.partner-row-actions{display:inline-flex;justify-content:flex-end;gap:8px}.partner-row-actions button{width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #ccd7df;border-radius:8px;color:#263746;background:#fff}.partner-row-actions button:hover{border-color:#1f6f7852;color:var(--accent);background:#eaf6f7}.partner-row-actions button.danger{border-color:#ffd2c2;color:#b42318;background:#fff4f0}.partner-row-actions button.danger:hover{background:#ffe8e1}.partner-disabled-panel{opacity:.78}.partner-empty-lock{min-height:132px;display:grid;place-items:center;align-content:center;gap:10px;border:1px dashed #d6e1e8;border-radius:8px;background:#fbfcfd;text-align:center}.partner-empty-lock svg{color:var(--accent)}.partner-order-history article{display:grid;align-items:center;grid-template-columns:38px minmax(180px,1fr) minmax(120px,.48fr) minmax(90px,.35fr) auto;gap:12px;border:1px solid #dfe6ec;border-radius:8px;padding:12px;background:#fff}.partner-order-history article>span:not(.partner-order-icon),.partner-order-history article em{white-space:nowrap}.partner-order-history em{font-style:normal}.partner-architecture-note{display:grid;align-items:center;grid-template-columns:42px minmax(0,1fr);gap:12px;background:#fbfcfd}.partner-architecture-note>svg{width:42px;height:42px;padding:10px;border-radius:8px;color:var(--accent);background:#e1f1f3}.profile-hero{background:linear-gradient(135deg,#fff,#f3fbfa 56%,#fff8e8)}.profile-grid{display:grid;gap:18px;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)}.profile-identity{align-items:center;display:grid;gap:14px;grid-template-columns:58px 1fr;margin-bottom:18px}.profile-avatar-large{align-items:center;background:#e1f1f3;border-radius:8px;color:#1f6f78;display:inline-flex;height:58px;justify-content:center;width:58px}.profile-identity div,.profile-timeline article div{display:grid;gap:4px}.profile-identity strong,.profile-timeline strong{color:#101820;font-size:16px}.profile-identity span,.profile-identity small,.profile-info-list span,.profile-timeline span,.profile-timeline small,.profile-empty,.profile-security-note{color:#607184;font-weight:750}.profile-info-list,.profile-edit-form,.profile-password-form,.profile-timeline{display:grid;gap:12px}.profile-info-list span{align-items:center;background:#f8fafb;border:1px solid #dfe6ec;border-radius:8px;display:flex;gap:12px;justify-content:space-between;padding:12px}.profile-info-list b{color:#263746}.profile-edit-form button,.profile-password-form button{align-items:center;background:linear-gradient(135deg,var(--accent),#2c8a93);border:0;border-radius:8px;color:#fff;cursor:pointer;display:inline-flex;font-weight:850;gap:8px;justify-content:center;min-height:42px;padding:0 14px}.profile-edit-form{border-top:1px solid #e3e9ee;padding-top:14px}.profile-edit-form button:disabled{cursor:progress;opacity:.72}.profile-check-row{align-items:center;background:#f8fafb;border:1px solid #dfe6ec;border-radius:8px;display:flex;gap:10px;padding:12px}.profile-check-row input{accent-color:var(--accent);height:16px;width:16px}.profile-check-row span{color:#34495a;font-weight:800}.profile-security-note{align-items:center;background:#f8fafb;border:1px solid #dfe6ec;border-radius:8px;display:flex;gap:10px;padding:14px}.profile-timeline article{align-items:start;border:1px solid #dfe6ec;border-radius:8px;display:grid;gap:12px;grid-template-columns:36px 1fr;padding:12px}.profile-timeline svg{background:#e1f1f3;border-radius:8px;color:#1f6f78;height:36px;padding:9px;width:36px}.profile-empty{background:#f8fafb;border:1px dashed #d6e1e8;border-radius:8px;padding:16px}.admin-user-link{color:inherit;text-decoration:none}@media(max-width:900px){.finance-metric-grid,.finance-main-grid,.finance-action-grid,.profile-grid,.warning-request-form,.finance-row,.partner-layout,.partner-code-grid,.partner-code-row,.partner-order-history article,.partner-detail-summary{grid-template-columns:1fr}.partner-list-panel{position:static}.partner-product-field,.partner-code-note{grid-column:auto}.partner-row-actions,.partner-code-actions{justify-content:stretch}.partner-row-actions button,.partner-code-actions button{width:100%}.partner-company-modal,.partner-detail-modal{width:calc(100vw - 24px);height:calc(100vh - 24px);max-height:calc(100vh - 24px)}}html,#root{width:100%;min-height:100%;overflow-x:hidden}img,video,canvas,svg{max-width:100%}.workspace,.topbar,.page-stack,.page-intro,.content-grid,.wide-panel,.metric-card,.action-tile,.form-layout,.form-section,.modal-title,.panel-header,.filter-summary,.filter-bar,.list-filters,.history-filters,.movement-layout,.movement-panel,.movement-preview,.production-grid,.production-summary,.admin-page,.admin-grid,.admin-card,.admin-user-row,.admin-user-link,.admin-user-controls,.page-access-row,.warehouse-list article,.account-form,.warehouse-form,.product-form-grid,.order-form-grid,.order-summary-row,.order-detail-grid,.shipment-send-form,.request-row,.warning-list article,.warning-request-form,.finance-main-grid,.finance-row,.finance-metric,.profile-grid,.profile-identity,.profile-info-list span,.profile-timeline article,.partner-layout,.partner-code-grid,.partner-code-row,.partner-order-history article,.partner-company-card,.partner-detail-summary{min-width:0}.workspace,.page-stack,.wide-panel,.orders-list-panel,.order-list,.order-card,.order-expanded-panel{max-width:100%}.workspace,.page-stack{overflow-x:clip}.stock-list-wrap,.table-wrap,.partner-table-wrap,.component-table,.admin-list,.admin-user-list,.warehouse-list,.modal-body,.details-body{-webkit-overflow-scrolling:touch}.stock-product-cell div,.stock-product-cell strong,.stock-product-cell small,.order-summary-product,.order-summary-product strong,.order-summary-product small,.partner-company-card strong,.partner-company-card small,.partner-code-row strong,.partner-code-row small,.partner-order-history strong,.partner-order-history small,.profile-info-list b,.profile-info-list span,.profile-timeline strong,.profile-timeline small,.admin-user-link strong,.admin-user-link span,.page-access-title strong,.page-access-title small,.finance-row strong,.finance-row span,.movement-history strong,.movement-history small{overflow-wrap:anywhere}@media(max-width:1180px){.content-grid{grid-template-columns:repeat(3,minmax(160px,1fr))}.dashboard-actions,.finance-metric-grid,.settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.account-form{grid-template-columns:repeat(3,minmax(0,1fr))}.account-form button{grid-column:1 / -1}.warehouse-form{grid-template-columns:minmax(0,1fr) minmax(150px,.5fr) auto}.product-form-grid,.finance-main-grid,.profile-grid{grid-template-columns:1fr}.order-form-grid,.order-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.order-form-grid .department-picker{grid-column:1 / -1}.movement-layout,.production-grid{grid-template-columns:minmax(0,1fr)}.movement-preview,.production-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){body{background:#eef2f5}.login-page{grid-template-columns:1fr}.login-panel,.login-visual{min-width:0;padding:28px 18px}.login-visual{display:none}h1{font-size:2.15rem}h2{font-size:1.12rem}.topbar,.admin-topbar{gap:10px;padding:12px 14px}.topbar{align-items:stretch}.admin-topbar{flex-wrap:wrap}.admin-topbar div{flex-basis:100%;order:3}.page-title{flex:1 1 auto}.content-grid,.page-stack{gap:14px;padding:14px}.content-grid{grid-template-columns:1fr}.wide-panel,.form-layout{margin:14px;padding:16px}.wide-panel.no-margin{margin:0}.page-intro,.admin-hero,.finance-hero,.profile-hero,.partner-hero{align-items:flex-start;flex-direction:column;padding:16px}.quick-stats{justify-content:flex-start;width:100%}.quick-stats span{flex:1 1 130px;justify-content:center}.panel-header,.filter-summary,.budget-row>div:first-child,.allocation-header,.account-create-summary,.profile-info-list span,.profile-security-note,.profile-check-row{align-items:flex-start;flex-direction:column}.filter-bar,.list-filters,.history-filters,.dashboard-actions,.finance-metric-grid,.finance-main-grid,.finance-action-grid,.settings-grid,.account-form,.warehouse-form,.warning-request-form,.order-filters,.order-detail-grid,.order-form-grid,.daily-outgoing-card,.shipment-send-form,.movement-product-card,.selected-product-info,.movement-type-grid,.movement-summary-box,.movement-preview,.form-row.two,.form-row.three,.finance-form-grid,.profile-grid,.profile-identity,.partner-layout,.partner-code-grid,.partner-code-row,.partner-detail-summary,.partner-order-history article,.production-plan-meta,.production-plan-toggle,.production-stage-detail,.stage-editor-row,.production-stage-editor-row,.allocation-row,.page-access-row,.admin-grid,.admin-action-row,.admin-user-controls,.component-table-head,.component-row,.recipe-component-head,.recipe-component-row,.details-component-list article{grid-template-columns:1fr}.account-form button,.warehouse-form button,.warning-request-submit,.history-filters button,.partner-code-actions button,.order-filters button,.daily-invoice-save,.shipment-send-form button,.production-stage-editor-row button,.allocation-row button{width:100%}.order-form-grid .span-two,.order-form-grid .department-picker,.warning-request-form .wide-field,.finance-form-grid .wide-field,.partner-product-field,.partner-code-note,.production-stage-detail .stage-note-field{grid-column:auto}.request-row,.warning-list article,.recipe-card,.warehouse-list article,.finance-row,.movement-history article,.impact-row,.completion-note,.order-card-main,.order-actions,.partner-table-actions,.partner-row-actions,.partner-code-actions{align-items:stretch;flex-direction:column}.request-actions,.order-actions,.partner-table-actions,.partner-row-actions,.partner-code-actions{width:100%;flex-direction:column;justify-content:stretch}.request-actions button,.order-actions button,.partner-table-actions button,.partner-row-actions button{width:100%}.order-summary-row{grid-template-columns:40px minmax(0,1fr) minmax(100px,auto);height:auto;gap:10px;padding:10px 12px}.order-card-actions{width:100%;flex-direction:column}.order-detail-button,.order-delete-button{width:100%;min-width:0}.order-summary-row>span:not(.order-icon):not(.order-summary-product),.order-summary-row>b{display:none}.finance-row{text-align:left}.finance-row-icon,.partner-company-icon,.partner-code-icon,.partner-order-icon,.profile-avatar-large,.admin-card-icon,.warehouse-icon{justify-self:start}.production-stage-list.compact{justify-content:flex-start}.production-toggle-icon,.partner-company-card em{justify-self:start}.stock-actions{min-width:0}.stock-action{flex:1 1 120px}.modal-backdrop,.details-backdrop{padding:10px}.product-modal,.order-modal,.order-detail-modal,.finance-modal,.partner-company-modal,.partner-detail-modal,.details-modal{width:calc(100vw - 20px);height:calc(100vh - 20px);max-height:calc(100vh - 20px)}.finance-modal,.partner-company-modal,.details-modal{height:auto}.modal-header,.modal-footer,.details-header{align-items:stretch;flex-direction:column;padding:12px}.modal-footer{display:grid;grid-template-columns:1fr}.modal-footer button,.details-header .icon-button{width:100%}.modal-body,.details-body{padding:12px}}@media(max-width:460px){input,select,textarea{padding:10px 11px}.ghost-button,.primary-button,.secondary-button,.icon-button,.work-form button,.admin-card button{min-width:0}.page-stack,.content-grid{padding:10px}.wide-panel,.form-layout,.metric-card,.action-tile,.admin-card,.movement-panel,.movement-preview,.production-summary,.form-section,.page-intro{padding:12px}.quick-stats span,.status,.tag,.category-pill,.stage-pill,.access-chip,.department-option{width:100%;justify-content:center;white-space:normal;text-align:center}.profile-dropdown{right:0;width:min(260px,calc(100vw - 20px))}.search-box{flex-basis:100%}.admin-topbar .ghost-button{flex:1 1 140px}.cashflow-row{grid-template-columns:1fr}.cashflow-bar{width:100%!important}}.pagination-controls{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:14px;padding:12px 14px;border:1px solid var(--border);border-radius:8px;background:#ffffffb8}.pagination-range{color:var(--muted);font-size:.9rem;font-weight:700}.pagination-actions{display:inline-flex;align-items:center;gap:10px}.pagination-actions strong{min-width:110px;color:var(--text);font-size:.9rem;text-align:center}.pagination-actions button{min-height:38px;padding:0 16px;border:1px solid var(--border);border-radius:8px;background:#fff;color:var(--text);font-weight:800;cursor:pointer}.pagination-actions button:not(:disabled):hover{border-color:var(--brand);color:var(--brand)}.pagination-actions button:disabled{cursor:not-allowed;opacity:.45}@media(max-width:760px){.pagination-controls{align-items:stretch;flex-direction:column}.pagination-actions{display:grid;grid-template-columns:1fr auto 1fr;width:100%}}.order-list,.daily-outgoing-list,.request-list,.warning-list,.warehouse-list,.admin-list,.admin-user-list,.page-access-list,.movement-history,.impact-list,.production-plan-list,.finance-list,.budget-list,.partner-company-list,.partner-code-list,.partner-order-history,.details-component-list,.profile-timeline{max-height:clamp(260px,48vh,620px);overflow-y:auto;overscroll-behavior:contain;padding-right:6px;scroll-behavior:smooth;scroll-snap-type:y proximity;scrollbar-gutter:stable}.orders-list-panel{display:flex;width:100%;max-width:100%;min-height:0;max-height:clamp(380px,52vh,640px);overflow:hidden;flex-direction:column}.orders-list-panel.daily-outgoing-panel{max-height:clamp(280px,38vh,480px)}.orders-list-panel>.order-list,.orders-list-panel>.daily-outgoing-list{min-height:0;max-height:none;flex:1 1 auto}.orders-list-panel>:not(.order-list):not(.daily-outgoing-list){flex:0 0 auto}.order-list>*,.daily-outgoing-list>*,.request-list>*,.warning-list>*,.warehouse-list>*,.admin-list>*,.admin-user-list>*,.page-access-list>*,.movement-history>*,.impact-list>*,.production-plan-list>*,.finance-list>*,.budget-list>*,.partner-company-list>*,.partner-code-list>*,.partner-order-history>*,.details-component-list>*,.profile-timeline>*{scroll-snap-align:start}.stock-list-wrap,.table-wrap,.partner-table-wrap,.production-table-wrap{max-height:clamp(300px,56vh,680px);overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.stock-list-table th,.partner-table th,.production-plan-table th,.table-wrap>table th{position:sticky;top:0;z-index:2;background:#f8fafb;box-shadow:0 1px #e5ebf0;white-space:nowrap}.order-list::-webkit-scrollbar,.daily-outgoing-list::-webkit-scrollbar,.request-list::-webkit-scrollbar,.warning-list::-webkit-scrollbar,.warehouse-list::-webkit-scrollbar,.admin-list::-webkit-scrollbar,.admin-user-list::-webkit-scrollbar,.page-access-list::-webkit-scrollbar,.movement-history::-webkit-scrollbar,.impact-list::-webkit-scrollbar,.production-plan-list::-webkit-scrollbar,.finance-list::-webkit-scrollbar,.budget-list::-webkit-scrollbar,.partner-company-list::-webkit-scrollbar,.partner-code-list::-webkit-scrollbar,.partner-order-history::-webkit-scrollbar,.details-component-list::-webkit-scrollbar,.profile-timeline::-webkit-scrollbar,.stock-list-wrap::-webkit-scrollbar,.table-wrap::-webkit-scrollbar,.partner-table-wrap::-webkit-scrollbar,.production-table-wrap::-webkit-scrollbar{width:10px;height:10px}.order-list::-webkit-scrollbar-thumb,.daily-outgoing-list::-webkit-scrollbar-thumb,.request-list::-webkit-scrollbar-thumb,.warning-list::-webkit-scrollbar-thumb,.warehouse-list::-webkit-scrollbar-thumb,.admin-list::-webkit-scrollbar-thumb,.admin-user-list::-webkit-scrollbar-thumb,.page-access-list::-webkit-scrollbar-thumb,.movement-history::-webkit-scrollbar-thumb,.impact-list::-webkit-scrollbar-thumb,.production-plan-list::-webkit-scrollbar-thumb,.finance-list::-webkit-scrollbar-thumb,.budget-list::-webkit-scrollbar-thumb,.partner-company-list::-webkit-scrollbar-thumb,.partner-code-list::-webkit-scrollbar-thumb,.partner-order-history::-webkit-scrollbar-thumb,.details-component-list::-webkit-scrollbar-thumb,.profile-timeline::-webkit-scrollbar-thumb,.stock-list-wrap::-webkit-scrollbar-thumb,.table-wrap::-webkit-scrollbar-thumb,.partner-table-wrap::-webkit-scrollbar-thumb,.production-table-wrap::-webkit-scrollbar-thumb{border:2px solid transparent;border-radius:999px;background:#9fb4bf;background-clip:padding-box}.order-list::-webkit-scrollbar-thumb:hover,.daily-outgoing-list::-webkit-scrollbar-thumb:hover,.request-list::-webkit-scrollbar-thumb:hover,.warning-list::-webkit-scrollbar-thumb:hover,.warehouse-list::-webkit-scrollbar-thumb:hover,.admin-list::-webkit-scrollbar-thumb:hover,.admin-user-list::-webkit-scrollbar-thumb:hover,.page-access-list::-webkit-scrollbar-thumb:hover,.movement-history::-webkit-scrollbar-thumb:hover,.impact-list::-webkit-scrollbar-thumb:hover,.production-plan-list::-webkit-scrollbar-thumb:hover,.finance-list::-webkit-scrollbar-thumb:hover,.budget-list::-webkit-scrollbar-thumb:hover,.partner-company-list::-webkit-scrollbar-thumb:hover,.partner-code-list::-webkit-scrollbar-thumb:hover,.partner-order-history::-webkit-scrollbar-thumb:hover,.details-component-list::-webkit-scrollbar-thumb:hover,.profile-timeline::-webkit-scrollbar-thumb:hover,.stock-list-wrap::-webkit-scrollbar-thumb:hover,.table-wrap::-webkit-scrollbar-thumb:hover,.partner-table-wrap::-webkit-scrollbar-thumb:hover,.production-table-wrap::-webkit-scrollbar-thumb:hover{background:#6f8795;background-clip:padding-box}@media(max-width:760px){.orders-list-panel,.orders-list-panel.daily-outgoing-panel{max-height:min(66vh,560px)}.order-list,.daily-outgoing-list,.request-list,.warning-list,.warehouse-list,.admin-list,.admin-user-list,.page-access-list,.movement-history,.impact-list,.production-plan-list,.finance-list,.budget-list,.partner-company-list,.partner-code-list,.partner-order-history,.details-component-list,.profile-timeline,.stock-list-wrap,.table-wrap,.partner-table-wrap,.production-table-wrap{max-height:min(58vh,560px)}}
