*{box-sizing:border-box}body{margin:0;background:#eff2f6;color:#0f172a;font-family:Plus Jakarta Sans,system-ui,sans-serif}button{font-family:inherit;cursor:pointer}.inp{width:100%;height:44px;padding:0 12px;border:1px solid #cfd6df;border-radius:10px;background:#fff;font:inherit;font-size:14px;color:#0f172a}.inp::placeholder{color:#64748b}.inp:focus,.chip-select:focus,.btn:focus-visible,.stat:focus-visible,.tab:focus-visible,.pill:focus-visible,.icon-btn:focus-visible{outline:none;box-shadow:0 0 0 3px #67e8f9;border-color:#06b6d4}textarea.inp{height:auto;min-height:84px;padding:10px 12px;resize:vertical;line-height:1.45}.inp[readonly]{background:#f1f5f9;color:#334155;font-weight:700}.lbl{font-size:12px;font-weight:700;color:#475569;letter-spacing:.02em}.fld{display:flex;flex-direction:column;gap:6px;min-width:0}.g{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(200px,100%),1fr));gap:14px 16px}.full{grid-column:1/-1}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:44px;padding:0 18px;border:0;border-radius:10px;font-size:14px;font-weight:700}.btn-white{background:#fff;color:#00697c}.btn-white:hover{background:#ecfeff}.btn-green{background:#007a53;color:#fff}.btn-green:hover{background:#006443}.btn-teal{background:#00697c;color:#fff}.btn-teal:hover{background:#005666}.btn-ghost{background:#fff;color:#334155;border:1px solid #cfd6df}.btn-ghost:hover{background:#f1f5f9}.btn-danger{background:#b91c1c;color:#fff}.btn:disabled{opacity:.6;cursor:default}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}@media(max-width:960px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}}.stat{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:16px 20px;border:0;border-radius:14px;background:#fff;text-align:left;min-height:84px}.stat:hover{background:#fafcfd}.stat-label{font-size:13px;font-weight:700;letter-spacing:.03em;text-transform:uppercase}.stat-count{font-size:28px;line-height:1;font-weight:800;color:#0f172a}.tab{height:42px;padding:0 20px;border:0;border-radius:999px;background:transparent;color:#334155;font-size:14px;font-weight:700}.tab:hover{background:#e2e8f0}.tab[aria-selected=true]{background:#00697c;color:#fff}table{border-collapse:separate;border-spacing:0;width:100%;table-layout:fixed}.row{cursor:pointer}.num{padding:0;border:0;background:transparent;font-size:15px;font-weight:800;color:#00697c;text-decoration:underline;min-height:28px}.num:focus-visible{outline:none;box-shadow:0 0 0 3px #67e8f9;border-radius:4px}@media(max-width:760px){.hide-sm{display:none}}th{padding:12px 14px;background:#f6f8fa;color:#334155;font-size:13px;font-weight:700;text-align:left;white-space:nowrap}th:first-child{border-radius:10px 0 0 10px}th:last-child{border-radius:0 10px 10px 0}td{padding:14px;border-bottom:1px solid #eef1f5;font-size:14px;vertical-align:middle}tbody tr:hover td{background:#fafcfd}.chip-select{height:34px;padding:0 10px;border:1px solid transparent;border-radius:999px;font:inherit;font-size:12px;font-weight:700;cursor:pointer;width:100%}.icon-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:44px;height:44px;padding:0 10px;border:0;border-radius:10px;background:transparent;color:#334155;font-size:13px;font-weight:700}.icon-btn:hover{background:#e8eef4}.pill{height:40px;padding:0 14px;border:1px solid #cfd6df;border-radius:999px;font-size:13px;font-weight:600;background:#fff;color:#334155}.pill[aria-pressed=true]{background:#00697c;color:#fff;border-color:#00697c}.sect{margin:0 0 12px;padding-bottom:8px;border-bottom:1px solid #e2e8f0;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#00697c}.seg{display:inline-flex;gap:4px;padding:4px;border-radius:999px;background:#eef2f6}.seg button{height:36px;padding:0 14px;border:0;border-radius:999px;background:transparent;color:#334155;font-size:13px;font-weight:700}.seg button[aria-pressed=true]{background:#fff;color:#00697c;box-shadow:0 1px 3px #0f172a26}.scroll-x{overflow-x:auto}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}.app-root{min-height:940px;display:flex;flex-direction:column}.app-header{background:linear-gradient(135deg,#00829a,#006e7b);color:#fff;box-shadow:0 2px 10px #00505f40}.app-header-inner{max-width:1280px;margin:0 auto;padding:20px 24px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px}.app-title{margin:0;font-size:30px;line-height:1.15;font-weight:800;letter-spacing:-.01em}.app-subtitle{margin:0;font-size:14px;font-weight:500}.app-header-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px}.user-chip{display:inline-flex;align-items:center;gap:10px;padding:0 12px 0 4px;height:44px;border-radius:999px;background:#ffffff29;font-size:13px;font-weight:600}.user-avatar{width:36px;height:36px;border-radius:50%;background:#fff;color:#00697c;display:inline-flex;align-items:center;justify-content:center;font-weight:800;font-size:14px;overflow:hidden}.user-avatar img{width:100%;height:100%;object-fit:cover}.app-main{width:100%;max-width:1280px;margin:0 auto;padding:20px 24px 48px;display:flex;flex-direction:column;gap:20px;flex:1 1 auto}.tabs{display:flex;flex-wrap:wrap;gap:6px}.stack{display:flex;flex-direction:column;gap:20px}.card{background:#fff;border-radius:14px;box-shadow:0 1px 2px #0f172a0f}.sample-banner{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-radius:12px;background:#fff7e6;border:1px solid #f3d9a4;color:#7a4a00;font-size:14px;font-weight:600}.error-banner{padding:12px 16px;border-radius:12px;background:#fee2e2;border:1px solid #fca5a5;color:#991b1b;font-size:14px;font-weight:600}.filters{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px;padding:16px}.search-wrap{position:relative;display:block}.search-icon{position:absolute;left:12px;top:13px}.table-card{padding:12px}.cell-sub{font-size:12px;color:#475569;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cell-ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.urgent-tag{margin-top:4px;display:inline-block;padding:2px 6px;border-radius:999px;background:#fee2e2;color:#991b1b;font-size:10px;font-weight:800;text-transform:uppercase}.balance{font-size:12px;font-weight:600;color:#92400e}.delivery-hint{font-size:12px;font-weight:800}.empty{display:flex;flex-direction:column;align-items:center;gap:14px;padding:56px 16px 48px;text-align:center}.empty h2{margin:0;font-size:20px;font-weight:800}.empty p{margin:0;max-width:460px;font-size:14px;line-height:1.5;color:#475569}.empty-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}.no-matches{padding:40px 16px;text-align:center;font-size:14px;font-weight:600;color:#475569}.chart-card{display:flex;flex-direction:column;gap:20px;padding:24px}.chart-head{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:12px}.chart-head h2{margin:0;font-size:20px;font-weight:800}.chart-head p{margin:4px 0 0;font-size:14px;color:#475569}.kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(200px,100%),1fr));gap:12px}.kpi{display:flex;flex-direction:column;gap:4px;padding:14px 16px;border-radius:12px;background:#f6f8fa}.kpi-label{font-size:12px;font-weight:700;color:#475569;letter-spacing:.02em;text-transform:uppercase}.kpi-value{font-size:24px;font-weight:800;line-height:1.1}.kpi-sub{font-size:12px;color:#475569}.legend{display:flex;flex-wrap:wrap;gap:18px;font-size:13px;font-weight:600;color:#334155}.legend-item{display:inline-flex;align-items:center;gap:8px}.legend-swatch{width:14px;height:14px;border-radius:4px}.chart-note{margin:0;font-size:14px;color:#475569}.flow{min-width:560px;display:flex;gap:10px}.flow-axis{position:relative;width:28px;height:220px;flex:0 0 28px}.flow-axis span{position:absolute;right:0;transform:translateY(50%);font-size:12px;color:#475569}.flow-body{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:6px}.flow-plot{position:relative;height:220px}.flow-grid{position:absolute;left:0;right:0;border-top:1px solid #e5eaf0}.flow-bars{position:absolute;inset:0;display:flex;align-items:flex-end;gap:4px}.flow-day{flex:1 1 0;min-width:0;height:100%;display:flex;align-items:flex-end;justify-content:center;gap:2px}.flow-bar{position:relative;width:38%;max-width:22px;border-radius:4px 4px 0 0}.flow-bar-in{background:#d97706}.flow-bar-out{background:#0e7490}.flow-bar span{position:absolute;left:50%;bottom:100%;transform:translate(-50%);font-size:11px;font-weight:700;color:#334155}.flow-labels{display:flex;gap:4px}.flow-label{flex:1 1 0;min-width:0;text-align:center;font-size:12px;line-height:1.25;color:#334155;font-weight:600}.flow-label-sub{font-size:11px;font-weight:500;color:#475569}.cmp-rows{display:flex;flex-direction:column;gap:14px}.cmp-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px 20px}.cmp-name{flex:1 1 180px;min-width:0}.cmp-name-label{font-size:14px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cmp-name-sub{font-size:12px;color:#475569}.cmp-bars{flex:4 1 280px;min-width:0;display:flex;flex-direction:column;gap:4px}.cmp-bar-line{display:flex;align-items:center;gap:8px}.cmp-bar{height:14px;min-width:3px;border-radius:0 4px 4px 0}.cmp-bar-text{font-size:12px;font-weight:600;color:#334155;white-space:nowrap}.cmp-bar-text-real{font-weight:700;color:#0f172a}.cmp-badge-wrap{flex:0 0 150px;display:flex;justify-content:flex-end}.cmp-badge{padding:4px 12px;border-radius:999px;font-size:12px;font-weight:800;white-space:nowrap}.overlay{position:fixed;inset:0;display:flex;justify-content:center;padding:16px;background:#0f172a8c}.overlay-center{align-items:center;z-index:70}.overlay-top{align-items:flex-start;padding:24px 16px;overflow-y:auto;z-index:50}.dialog{width:100%;background:#fff;border-radius:16px;box-shadow:0 24px 60px #0f172a59;display:flex;flex-direction:column}.dialog-sm{max-width:440px;padding:24px;gap:14px}.dialog-sm h2{margin:0;font-size:20px;font-weight:800}.dialog-sm p{margin:0;font-size:14px;line-height:1.5;color:#334155}.dialog-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;padding-top:6px}.modal{max-width:880px;overflow:hidden}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 24px;background:linear-gradient(135deg,#00829a,#006e7b);color:#fff}.modal-head h2{margin:0;font-size:22px;font-weight:800}.modal-head p{margin:2px 0 0;font-size:13px;font-weight:500}.modal-close{width:44px;height:44px;border:0;border-radius:10px;background:#ffffff2e;color:#fff;display:inline-flex;align-items:center;justify-content:center}.modal-body{border:0;margin:0;min-width:0;display:flex;flex-direction:column;gap:24px;padding:24px}.modal-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:16px 24px;border-top:1px solid #e2e8f0;background:#f8fafc}.modal-error{font-size:14px;font-weight:700;color:#b91c1c}.modal-feedback{display:flex;flex-direction:column;gap:4px}.save-status{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:700;color:#00697c}.save-status-success{color:#007a53}.spinner{width:18px;height:18px;border:2.5px solid #cfd6df;border-top-color:#00697c;border-radius:50%;animation:spin .8s linear infinite}.save-success-icon{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background:#007a53;color:#fff}.save-success-icon svg{width:16px;height:16px}@keyframes spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.spinner{animation:none}}.modal-actions{display:flex;gap:10px}.pills{display:flex;flex-wrap:wrap;gap:8px}.items{display:flex;flex-direction:column;gap:14px;margin-top:14px}.item-card{padding:14px 16px 16px;border:1px solid #cfd6df;border-radius:12px;background:#f8fafc}.item-card-title{margin:0 0 12px;font-size:13px;font-weight:800;color:#0f172a}.item-card-foot{display:flex;justify-content:flex-end;margin-top:12px}.items-add{align-self:flex-start}.slip-wrap{position:fixed;inset:0;z-index:60;background:#e5e9ef;overflow-y:auto;padding:24px 16px}.slip-toolbar{max-width:800px;margin:0 auto 16px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px}.slip{max-width:800px;margin:0 auto;padding:32px;background:#fff;color:#000;border-radius:8px;box-shadow:0 8px 30px #0f172a26;display:flex;flex-direction:column;gap:20px}.slip-printed{margin-bottom:-12px;font-size:11px;color:#555;text-align:right}.slip-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding-bottom:16px;border-bottom:3px solid #00697c}.slip-identity{display:flex;align-items:center;gap:14px}.slip-logo{display:block;width:62px;height:auto}.slip-brand{font-size:24px;font-weight:800;letter-spacing:-.01em}.slip-kind{font-size:14px;font-weight:600;color:#333}.slip-number{padding:8px 18px;border:2px solid #000;border-radius:8px;font-size:26px;font-weight:800}.slip-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 28px}.slip-pair{display:flex;flex-direction:column;gap:2px;padding:8px 0;border-bottom:1px solid #ccc}.slip-label{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#444}.slip-value{font-size:15px;font-weight:600}.slip-block{display:flex;flex-direction:column;gap:6px}.slip-box{padding:12px;border:1px solid #888;border-radius:6px;font-size:15px;line-height:1.5;white-space:pre-line}.slip-items{display:flex;flex-direction:column}.slip-section-title{margin:0 0 4px;font-size:13px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#00697c}.slip-item{display:flex;flex-direction:column;gap:14px;padding:10px 0;border-top:1px solid #bbb;break-inside:avoid;page-break-inside:avoid}.slip-item:last-child{border-bottom:1px solid #bbb}.slip-item-title{margin:0;font-size:14px;font-weight:800}.slip-item-row{display:grid;gap:6px 20px}.slip-item-row-specs{grid-template-columns:repeat(4,minmax(0,1fr))}.slip-item-row-amounts{grid-template-columns:repeat(3,minmax(0,1fr))}.slip-field{display:flex;flex-direction:column;gap:2px;min-width:0}.slip-field .slip-value{font-size:14px;overflow-wrap:anywhere}.slip-item-desc .slip-value{font-weight:500;line-height:1.45;white-space:pre-wrap}.slip-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 28px}.slip-box-obs{min-height:56px}.slip-signatures{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;padding-top:36px}.slip-signature{border-top:1px solid #000;padding-top:6px;font-size:12px;font-weight:600;text-align:center}.slip-conditions{padding-top:12px;border-top:1px solid #ccc;font-size:10.5px;line-height:1.45;color:#222;break-inside:avoid;page-break-inside:avoid}.slip-conditions-title{margin:0 0 6px;font-size:11.5px;font-weight:800}.slip-conditions ol{margin:0 0 6px;padding-left:18px}.slip-conditions p{margin:0}@media(max-width:560px){.slip{padding:20px 16px}.slip-item-row-specs{grid-template-columns:repeat(2,minmax(0,1fr))}}.login-main{flex:1 1 auto;display:flex;align-items:center;justify-content:center;padding:40px 16px}.login-card{width:100%;max-width:420px;padding:32px;display:flex;flex-direction:column;gap:18px;text-align:center}.login-card h2{margin:0;font-size:22px;font-weight:800}.login-card p{margin:0;font-size:14px;line-height:1.5;color:#475569}.login-error{font-size:13px;font-weight:700;color:#b91c1c}.loading{flex:1 1 auto;display:flex;align-items:center;justify-content:center;padding:40px;font-size:14px;font-weight:600;color:#475569}@media print{.no-print{display:none!important}body{background:#fff}.app-root{min-height:0!important}.slip-wrap{position:static!important;background:#fff!important;padding:0!important;overflow:visible!important}.slip{box-shadow:none!important;padding:0!important;max-width:none!important;border-radius:0!important}.slip-item-row-specs{grid-template-columns:repeat(4,minmax(0,1fr))}.slip-totals,.slip-signatures{break-inside:avoid;page-break-inside:avoid}}.lists{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(340px,100%),1fr));gap:20px;align-items:start}.catalog-card{display:flex;flex-direction:column;gap:12px;padding:16px}.catalog-card h2{margin:0;font-size:16px}.catalog-add{display:flex;flex-wrap:wrap;gap:8px}.catalog-add .inp{flex:1 1 140px}.catalog-color{flex:0 1 140px}.catalog-error{margin:0;color:#991b1b;font-size:13px;font-weight:600}.catalog-list{display:flex;flex-direction:column;gap:6px;margin:0;padding:0;list-style:none}.catalog-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:8px 10px;border:1px solid #e2e8f0;border-radius:10px}.catalog-row.is-hidden{background:#f8fafc;color:#94a3b8}.catalog-swatch{flex:0 0 auto;width:14px;height:14px;border-radius:50%}.catalog-label{flex:1 1 120px;min-width:0;font-weight:600;overflow-wrap:anywhere}.catalog-edit{display:flex;flex:1 1 200px;flex-wrap:wrap;gap:6px}.catalog-edit .inp{flex:1 1 120px}.catalog-badge{padding:2px 8px;border-radius:999px;background:#e2e8f0;color:#475569;font-size:11px;font-weight:700}.catalog-actions{display:flex;flex-wrap:wrap;gap:4px;margin-left:auto}.btn-sm{height:32px;padding:0 10px;font-size:12px}.catalog-delete:not(:disabled){color:#b91c1c}.combo{position:relative}.combo-list{position:absolute;z-index:20;top:calc(100% + 4px);left:0;right:0;margin:0;padding:4px;list-style:none;max-height:280px;overflow-y:auto;background:#fff;border:1px solid #cbd5e1;border-radius:10px;box-shadow:0 10px 24px #0f172a1f}.combo-option{display:flex;flex-direction:column;gap:2px;padding:8px 10px;border-radius:8px;cursor:pointer}.combo-option:hover,.combo-option[aria-selected=true]{background:#f1f5f9}.combo-name{font-size:14px;font-weight:600;color:#0f172a}.combo-sub{font-size:12px;color:#475569}.clients-message{margin:0;font-size:14px;font-weight:600;color:#166534}
