:root{font-synthesis:none;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{min-width:320px;min-height:100vh;margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer}.erp{--bg:#f5f7fb;--surface:#fff;--surface-soft:#f8fafc;--surface-hover:#f5f8fc;--text:#162741;--muted:#73839a;--line:#e1e8f0;--line-strong:#d6e0eb;--blue:#246ec8;--blue-soft:#e9f2ff;--green:#087b61;--green-soft:#e4f7f0;--amber:#a76105;--amber-soft:#fff3da;--red:#bb4040;--red-soft:#ffe8e8;--shadow:0 12px 32px #12253f0f;background:var(--bg);min-height:100vh;color:var(--text)}.erp.dark{--bg:#15191e;--surface:#1b2026;--surface-soft:#20262d;--surface-hover:#232a32;--text:#e7edf6;--muted:#9aa9bd;--line:#2d3540;--line-strong:#3a4552;--blue:#70a9ff;--blue-soft:#1a365b;--green:#44d4a6;--green-soft:#173b33;--amber:#ffb457;--amber-soft:#472e0e;--red:#ff8383;--red-soft:#4b2428;--shadow:0 12px 32px #0000002e}.sidebar{z-index:3;background:var(--surface);border-right:1px solid var(--line);flex-direction:column;width:244px;padding:20px 12px 14px;display:flex;position:fixed;inset:0 auto 0 0}.brand{color:var(--text);letter-spacing:.1em;align-items:center;gap:10px;padding:0 10px 25px;display:flex}.brand b{font-size:15px}.brand small{color:var(--muted);letter-spacing:.14em;margin-top:3px;font-size:8px;display:block}.brand-mark{color:#fff;letter-spacing:0;background:linear-gradient(145deg,#236ec9,#2f9e9b);border-radius:9px;place-items:center;width:31px;height:31px;font-size:17px;font-weight:800;display:grid;box-shadow:0 7px 17px #2d78c33d}.nav-caption{color:var(--muted);letter-spacing:.12em;margin:4px 11px 8px;font-size:10px;font-weight:800}nav{gap:2px;display:grid}.nav-parent,.nav-child{width:100%;color:var(--muted);text-align:left;background:0 0;border:0;border-radius:7px;justify-content:space-between;padding:9px 11px;font-size:12px;display:flex}.nav-parent:hover,.nav-child:hover{background:var(--surface-hover);color:var(--text)}.nav-parent.expanded{background:var(--blue-soft);color:var(--blue);font-weight:800}.nav-child{width:calc(100% - 10px);margin-left:10px;padding:7px 11px;font-size:11px}.nav-child.active{background:var(--blue-soft);color:var(--blue);font-weight:800}.nav-parent.muted{margin-top:2px}.environment{border:1px solid var(--line);background:var(--surface-soft);color:var(--muted);border-radius:8px;gap:2px;margin-top:auto;padding:10px 11px;font-size:10px;display:grid}.environment b{color:var(--blue);letter-spacing:.06em;font-size:10px}.environment small{font-size:9px}.content{min-height:100vh;margin-left:244px;padding:0 28px 32px}.topbar{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;height:66px;display:flex}.company-context{color:var(--muted);align-items:center;gap:8px;font-size:12px;display:flex}.company-context b{color:var(--text)}.company-context button{color:var(--muted);background:0 0;border:0}.company-icon{background:var(--blue-soft);width:22px;height:22px;color:var(--blue);border-radius:6px;place-items:center;font-size:10px;font-weight:800;display:grid}.top-controls{align-items:center;gap:7px;display:flex}.top-controls button{border:1px solid var(--line);background:var(--surface);min-width:34px;height:32px;color:var(--muted);border-radius:7px;font-size:10px}.top-controls .avatar{color:#fff;background:#284869;border:0;border-radius:50%;width:32px;font-weight:800}.page-title,.form-title{justify-content:space-between;align-items:end;gap:20px;padding:27px 0 19px;display:flex}.breadcrumb{color:var(--muted);margin:0 0 5px;font-size:11px}.breadcrumb span{color:var(--line-strong);padding:0 6px}h1{color:var(--text);letter-spacing:-.03em;margin:0;font-size:23px}.form-title>div>p:last-child{color:var(--muted);margin:6px 0 0;font-size:11px}.page-actions{gap:8px;display:flex}.primary,.outline{border:1px solid #0000;border-radius:6px;padding:8px 12px;font-size:11px;font-weight:750}.primary{background:var(--blue);color:#fff;box-shadow:0 5px 12px #246ec838}.outline{border-color:var(--line-strong);background:var(--surface);color:var(--text)}.notice{background:var(--green-soft);color:var(--green);border:1px solid #a7ded0;border-radius:7px;justify-content:space-between;align-items:center;margin-top:15px;padding:10px 12px;font-size:11px;display:flex}.notice button{color:inherit;background:0 0;border:0;font-size:18px}.kpis{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:14px;display:grid}.kpis article{border:1px solid var(--line);background:var(--surface);min-height:98px;box-shadow:var(--shadow);border-radius:8px;padding:15px;position:relative}.kpis p{color:var(--muted);margin:0;font-size:11px}.kpis strong{color:var(--text);letter-spacing:-.04em;margin:7px 0 3px;font-size:21px;display:block}.kpis small{color:var(--muted);font-size:9px}.kpi-icon{border-radius:6px;place-items:center;width:29px;height:29px;font-size:13px;font-weight:800;display:grid;position:absolute;top:14px;right:14px}.blue{color:var(--blue);background:var(--blue-soft)}.green{color:var(--green);background:var(--green-soft)}.amber{color:var(--amber);background:var(--amber-soft)}.red{color:var(--red);background:var(--red-soft)}.table-card,.form-card{border:1px solid var(--line);background:var(--surface);box-shadow:var(--shadow);border-radius:8px;overflow:hidden}.toolbar{border-bottom:1px solid var(--line);align-items:center;gap:7px;padding:12px;display:flex}.search{flex:1;min-width:240px;display:flex}.search input,.toolbar select{border:1px solid var(--line-strong);background:var(--surface);height:34px;color:var(--text);outline-color:var(--blue);border-radius:6px;padding:0 9px;font-size:11px}.search input{border-radius:6px 0 0 6px;width:100%}.search button{border:1px solid var(--line-strong);background:var(--surface-soft);width:35px;color:var(--blue);border-left:0;border-radius:0 6px 6px 0}.toolbar select{min-width:108px;max-width:144px}.toolbar .sort{min-width:118px}.refresh{border:1px solid var(--line-strong);background:var(--surface);width:34px;height:34px;color:var(--muted);border-radius:6px;place-items:center;display:grid}.table-scroll{overflow-x:auto}table{border-collapse:collapse;width:100%;min-width:1250px}th{background:var(--surface-soft);color:var(--muted);letter-spacing:.06em;text-align:left;text-transform:uppercase;white-space:nowrap;padding:10px 12px;font-size:9px;font-weight:800}td{border-top:1px solid var(--line);color:var(--muted);white-space:nowrap;padding:10px 12px;font-size:11px}tbody tr:hover{background:var(--surface-hover)}.product-cell{align-items:center;gap:9px;min-width:260px;display:flex}.product-cell b{max-width:245px;color:var(--text);text-overflow:ellipsis;font-size:11px;display:block;overflow:hidden}.product-cell small,.sub-value{color:var(--muted);margin-top:3px;font-size:9px;display:block}.product-avatar{background:var(--blue-soft);width:29px;height:29px;color:var(--blue);border-radius:6px;flex:0 0 29px;place-items:center;font-size:9px;font-weight:800;display:grid}.dash{color:var(--muted)}.quantity b{color:var(--text);font-size:11px;display:block}.quantity small{color:var(--muted);margin-top:2px;font-size:9px;display:block}.pill{border-radius:4px;padding:3px 6px;font-size:9px;font-weight:800;display:inline-block}.pill.active{color:var(--green);background:var(--green-soft)}.pill.inactive{color:var(--amber);background:var(--amber-soft)}.dots{border:1px solid var(--line);background:var(--surface);width:28px;height:25px;color:var(--muted);border-radius:6px;font-weight:800}.empty{color:var(--muted);text-align:center;padding:44px 15px}.empty b,.empty span{display:block}.empty span{margin-top:4px;font-size:10px}.table-footer{border-top:1px solid var(--line);color:var(--muted);justify-content:space-between;align-items:center;padding:11px 13px;font-size:10px;display:flex}.table-footer div{align-items:center;gap:8px;display:flex}.table-footer button{border:1px solid var(--line);background:var(--surface);width:26px;height:26px;color:var(--text);border-radius:5px;place-items:center;display:grid}.table-footer button:disabled{opacity:.4;cursor:default}.table-footer b{color:var(--blue)}.form-title{align-items:center}.product-form{gap:12px;display:grid}.form-card{padding:20px}.form-card h2{color:var(--text);margin:0 0 18px;font-size:15px}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;display:grid}.form-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.form-grid .wide{grid-column:1/-1}.form-grid label{color:var(--text);gap:6px;font-size:10px;font-weight:750;display:grid}.form-grid em{color:var(--red);font-style:normal}.form-grid input,.form-grid textarea,.form-grid select{border:1px solid var(--line-strong);outline-color:var(--blue);width:100%;color:var(--text);background:var(--surface);resize:vertical;border-radius:6px;padding:9px 10px}.form-note{border-top:1px solid var(--line);color:var(--muted);margin:18px 0 0;padding-top:13px;font-size:10px;line-height:1.55}@media (width<=1150px){.toolbar{flex-wrap:wrap}.search{min-width:100%}.toolbar select{flex:1}.kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=820px){.sidebar{width:100%;height:auto;position:static}.sidebar nav,.environment{display:none}.brand{padding-bottom:0}.content{margin-left:0;padding:0 16px 24px}.page-title,.form-title{flex-direction:column;align-items:start}.page-actions{width:100%}.page-actions button{flex:1}.form-grid.three{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=520px){.kpis,.form-grid,.form-grid.three{grid-template-columns:1fr}.form-grid .wide{grid-column:auto}.topbar{height:58px}.content{padding:0 12px 20px}.kpis article{min-height:90px}.toolbar select{min-width:0}.table-footer{flex-direction:column;align-items:flex-start;gap:10px}}.dream-form-layout{grid-template-columns:minmax(0,1fr) 308px;align-items:start;gap:12px;display:grid}.form-main,.form-side{gap:12px;display:grid}.form-page{max-width:none}.photo-card{padding-bottom:16px}.image-drop{border:1px dashed var(--line-strong);background:var(--surface-soft);min-height:178px;color:var(--muted);text-align:center;cursor:pointer;border-radius:6px;place-content:center;gap:9px;display:grid;overflow:hidden}.image-drop:hover{border-color:var(--blue);color:var(--blue)}.image-drop b{border:1px solid;border-radius:50%;place-self:center;place-items:center;width:32px;height:32px;font-size:20px;font-weight:400;display:grid}.image-drop span{font-size:11px}.image-drop small{font-size:9px}.image-drop.has-image{min-height:178px;display:block}.image-drop img{object-fit:cover;width:100%;height:178px;display:block}.file-input{opacity:0;pointer-events:none;width:1px;height:1px;position:absolute}.remove-image{border:1px solid var(--line-strong);background:var(--surface);width:100%;color:var(--muted);border-radius:6px;margin-top:10px;padding:7px 9px;font-size:10px;font-weight:700}.status-field{color:var(--text);gap:7px;font-size:10px;font-weight:750;display:grid}.status-field select{border:1px solid var(--line-strong);outline-color:var(--blue);width:100%;color:var(--text);background:var(--surface);border-radius:6px;padding:9px 10px}.form-grid input:disabled{cursor:not-allowed;color:var(--muted);background:var(--surface-soft)}.product-image{object-fit:cover;background:var(--surface-soft);border-radius:6px;flex:0 0 29px;width:29px;height:29px}.erp.dark .topbar{box-shadow:0 4px 14px #00000029}.erp.dark .form-card{box-shadow:none}@media (width<=980px){.dream-form-layout{grid-template-columns:1fr}.form-side{grid-template-columns:repeat(2,minmax(0,1fr))}.photo-card{grid-column:1/-1}}@media (width<=520px){.form-side{grid-template-columns:1fr}.photo-card{grid-column:auto}}.action-cell{position:relative}.action-menu{z-index:8;border:1px solid var(--line-strong);background:var(--surface);border-radius:7px;min-width:124px;padding:5px;display:grid;position:absolute;top:38px;right:10px;box-shadow:0 14px 30px #00000038}.action-menu button{color:var(--text);text-align:left;background:0 0;border:0;border-radius:5px;padding:8px 9px;font-size:10px}.action-menu button:hover{background:var(--surface-hover)}.action-menu .danger{color:var(--red)}.overlay{z-index:20;background:#050a1194;place-items:center;padding:20px;display:grid;position:fixed;inset:0}.detail-modal,.confirm-modal{border:1px solid var(--line-strong);background:var(--surface);width:min(460px,100%);color:var(--text);border-radius:9px;padding:22px;position:relative;box-shadow:0 28px 70px #0000005c}.detail-modal>p{color:var(--blue);letter-spacing:.08em;margin:0 0 8px;font-size:10px;font-weight:800}.detail-modal h2,.confirm-modal h2{margin:0 0 16px;font-size:18px}.detail-modal img{object-fit:cover;border-radius:8px;width:76px;height:76px;margin-bottom:13px;display:block}.detail-modal dl{grid-template-columns:repeat(2,1fr);gap:11px;margin:0 0 18px;display:grid}.detail-modal dl div{background:var(--surface-soft);border-radius:6px;padding:8px}.detail-modal dt{color:var(--muted);font-size:9px}.detail-modal dd{margin:4px 0 0;font-size:11px}.modal-close{color:var(--muted);background:0 0;border:0;font-size:20px;position:absolute;top:9px;right:11px}.confirm-modal p{color:var(--muted);margin:0 0 20px;font-size:11px;line-height:1.6}.confirm-modal>div{justify-content:flex-end;gap:8px;display:flex}.danger-button{background:var(--red);color:#fff;border:0;border-radius:6px;padding:8px 11px;font-size:11px;font-weight:750}.page-title{padding-bottom:17px}.page-actions{gap:10px}.action-button{justify-content:center;align-items:center;gap:7px;height:34px;min-height:34px;padding:0 12px;font-size:12px;font-weight:650;line-height:1;display:inline-flex}.action-button svg{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.35px;width:14px;height:14px}.action-button:first-child{min-width:80px}.action-button:nth-child(2){min-width:118px}.action-button:last-child{min-width:109px}.button-caret{color:inherit;margin-left:1px;font-size:12px}.kpis{gap:12px;margin-bottom:16px}.kpis article{min-height:96px;box-shadow:none;border-radius:7px;padding:14px 15px}.kpis strong{margin:6px 0 3px;font-size:20px}.kpi-icon{border-radius:6px;width:28px;height:28px;font-size:12px;top:13px;right:13px}.erp.dark .action-button.outline{color:#d7dce4;background:#1c2024;border-color:#30363d}.erp.dark .action-button.primary{color:#f3f7ff;box-shadow:none;background:#294466;border-color:#294466}.erp.dark .action-button.primary:hover{background:#315277}.erp.dark .kpis article{background:#1d2125;border-color:#30363d}.erp.dark .kpis p,.erp.dark .kpis small{color:#98a2b2}.erp.dark .kpis strong{color:#ecf0f6}.export-wrap{position:relative}.action-button.export-trigger{min-width:119px}.action-button .chevron{stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.65px;width:13px;height:13px;margin-left:0}.action-button.export-trigger.is-open{color:#fff;background:#0b928a;border-color:#0b928a}.export-menu{z-index:30;border:1px solid var(--line-strong);background:var(--surface);border-radius:6px;width:242px;position:absolute;top:39px;right:0;overflow:hidden;box-shadow:0 15px 30px #00000038}.export-menu button{width:100%;height:43px;color:var(--text);text-align:left;background:0 0;border:0;align-items:center;gap:9px;padding:0 13px;font-size:12px;display:flex}.export-menu button:hover{background:var(--surface-hover);color:var(--blue)}.menu-export-icon{width:15px;color:var(--muted);place-items:center;font-size:15px;display:grid}.erp.dark .export-menu{background:#1d2125;border-color:#2d333a}.erp.dark .export-menu button{color:#c9d1dc}.erp.dark .export-menu button:hover{color:#fff;background:#252b31}.erp.dark .menu-export-icon{color:#93a0b1}
