:root{color:#20302f;font-synthesis:none;--petrol:#0b4a46;--petrol-2:#176b63;--petrol-soft:#e5f1ee;--ivory:#f7f4ec;--paper:#fff;--ink:#20302f;--muted:#667775;--line:#dbe3df;--brass:#b08d45;--danger:#a93832;--shadow:0 8px 24px #18363212;background:#f7f4ec;font-family:Inter,Segoe UI,Arial,sans-serif}*{box-sizing:border-box}html,body,#root{min-width:320px;min-height:100%;margin:0}body{background:radial-gradient(circle at 90% 0,#e5efeb 0,transparent 27rem),var(--ivory)}button,input,select,textarea{font:inherit}button,a,select{touch-action:manipulation}.app-shell{grid-template-columns:248px minmax(0,1fr);min-height:100vh;display:grid}.sidebar{color:#dce9e6;z-index:5;background:linear-gradient(165deg,#0d504b,#083a38 68%,#062e2c);flex-direction:column;height:100vh;padding:28px 18px;display:flex;position:sticky;top:0;box-shadow:8px 0 24px #072a2714}.brand{align-items:center;gap:12px;padding:0 8px 30px;display:flex}.brand-mark{color:#ecdcae;letter-spacing:.04em;border:1px solid #dcc690bf;border-radius:12px;flex:none;place-items:center;width:40px;height:40px;font-family:Georgia,serif;font-weight:700;display:grid;transform:rotate(0)}.brand h1{color:#fff;letter-spacing:.02em;margin:0;font-family:Georgia,Times New Roman,serif;font-size:20px;font-weight:600}.brand p{color:#aac3bf;letter-spacing:.12em;text-transform:uppercase;margin:2px 0 0;font-size:12px}.sidebar nav{gap:5px;display:grid}.sidebar nav button,.bottom-nav button{color:inherit;cursor:pointer;background:0 0;border:0}.sidebar nav button{text-align:left;border-radius:13px;align-items:center;gap:12px;width:100%;min-height:46px;padding:10px 12px;font-size:14px;display:flex}.sidebar nav button:hover{background:#ffffff14}.sidebar nav button.active{color:#fff;background:#ffffff24;box-shadow:inset 3px 0 #c8ad69}.sidebar .ui-icon{flex:none}.sidebar-foot{color:#9bb7b2;border-top:1px solid #ffffff1f;margin-top:auto;padding:18px 12px 4px;line-height:1.5}.app-content{width:min(1420px,100%);min-width:0;margin:0 auto;padding:34px clamp(22px,3vw,48px) 56px}.page-header{justify-content:space-between;align-items:end;margin-bottom:4px;display:flex}.page-header h2{color:#153c39;letter-spacing:-.02em;margin:2px 0 0;font-family:Georgia,Times New Roman,serif;font-size:clamp(28px,3vw,38px);font-weight:600}.mobile-topbar,.bottom-nav{display:none}.card{border:1px solid var(--line);min-width:0;box-shadow:var(--shadow);background:#fffffff5;border-radius:16px;margin-top:18px;padding:20px}.card h3{color:#193d3a;margin-top:0}.helper,.empty{color:var(--muted)}.form{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;display:grid}.form h3{grid-column:1/-1}.form label{gap:6px;display:grid}.form input,.form select,.card>input,.card textarea,input,select,textarea{max-width:100%;color:var(--ink);background:#fff;border:1px solid #c8d5d1;border-radius:11px;outline:none;padding:11px 12px}.form input:focus,.form select:focus,input:focus,select:focus,textarea:focus{border-color:var(--petrol-2);box-shadow:0 0 0 3px #176b631f}button,.actions button,.actions a,.card>button,.upload{color:#29433f;cursor:pointer;background:#fff;border:1px solid #c4d1cd;border-radius:11px;min-height:40px;padding:9px 14px;font-weight:650;text-decoration:none;transition:background .15s,border-color .15s,transform 80ms}.form>button,.actions button:not(.secondary):not(.danger),.actions a,.card>button,.upload{background:var(--petrol-2);border-color:var(--petrol-2);color:#fff}.form>button{grid-column:1/-1;justify-self:start}.form button:hover,.actions button:hover,.card>button:hover,.upload:hover{filter:brightness(.96)}button:active{transform:translateY(1px)}button:disabled{opacity:.48;cursor:not-allowed}.actions{flex-wrap:wrap;align-items:center;gap:9px;margin-top:12px;display:flex}.danger{color:var(--danger)!important;background:#fff!important;border-color:#dfb7b4!important}.secondary{color:#29433f!important;background:#fff!important;border-color:#c4d1cd!important}.notice{z-index:100;color:#174b45;background:#edf7f4;border:1px solid #a7c9c2;border-radius:13px;align-items:center;gap:16px;max-width:min(430px,100vw - 32px);padding:13px 14px;display:flex;position:fixed;top:20px;right:24px;box-shadow:0 14px 35px #0f38332e}.notice button{min-height:30px;color:inherit;background:0 0;border:0;padding:1px 8px;font-size:22px}.upload{align-items:center;display:inline-flex}table{border-collapse:collapse;text-align:left;width:100%}th,td{vertical-align:top;border-bottom:1px solid #e8eeeb;padding:11px 10px}th{color:#687875;letter-spacing:.04em;text-transform:uppercase;font-size:11px}tbody tr:last-child td{border-bottom:0}td input{width:100%}.ui-icon{display:block}.bottom-nav{display:none}@media (width<=1099px) and (width>=768px){.app-shell{grid-template-columns:78px minmax(0,1fr)}.sidebar{padding:24px 12px}.brand{justify-content:center;padding:0 0 28px}.brand>div{display:none}.sidebar nav button{justify-content:center;padding:10px}.sidebar nav button span,.sidebar-foot{display:none}.sidebar nav button.active{box-shadow:inset 0 -3px #c8ad69}.app-content{padding:30px 24px 50px}.form{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=767px){body{background:var(--ivory)}.app-shell{padding:66px 0 78px;display:block}.sidebar{display:none}.mobile-topbar{z-index:30;color:#fff;background:linear-gradient(120deg,#0d504b,#083c39);grid-template-columns:auto auto 1fr;align-items:center;gap:9px;height:58px;padding:8px 14px;display:grid;position:fixed;inset:0 0 auto;box-shadow:0 4px 16px #072d2929}.mobile-topbar .brand-mark{border-radius:10px;width:36px;height:36px;font-size:12px}.mobile-topbar>b{font-family:Georgia,serif}.mobile-topbar>span:last-child{color:#c8d8d5;white-space:nowrap;text-overflow:ellipsis;justify-self:end;font-size:12px;overflow:hidden}.app-content{width:100%;padding:12px 12px 24px}.page-header{display:none}.bottom-nav{z-index:40;height:68px;padding:5px max(8px,env(safe-area-inset-right)) max(5px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:#fffffff5;border-top:1px solid #d7e0dd;grid-template-columns:repeat(4,1fr);display:grid;position:fixed;inset:auto 0 0;box-shadow:0 -7px 24px #163c3714}.bottom-nav button{color:#6c7b78;border-radius:12px;flex-direction:column;justify-content:center;align-items:center;gap:3px;min-width:0;font-size:10px;display:flex}.bottom-nav button.active{background:var(--petrol-soft);color:var(--petrol)}.bottom-nav button span{text-overflow:ellipsis;max-width:100%;overflow:hidden}.card{border-radius:14px;margin-top:12px;padding:15px;box-shadow:0 4px 18px #1836320e}.form{grid-template-columns:1fr}.form>button{justify-self:stretch;width:100%}.notice{width:auto;top:68px;left:12px;right:12px}.actions>*{flex:135px;justify-content:center;align-items:center;display:flex}.card:has(>table){overflow-x:auto}table{font-size:13px}th,td{padding:9px 7px}}.brand-mark{color:#ead9a8;background:#ffffff09;padding:7px;box-shadow:inset 0 0 0 1px #ead9a814}.brand-mark svg{width:100%;height:100%;display:block;overflow:visible}.brand-mark svg g{stroke-width:2.55px}.brand-mark-core{fill:var(--petrol);stroke:currentColor;stroke-width:2px}.brand-wordmark{min-width:0}.brand-wordmark h1{letter-spacing:.1em}.brand-wordmark p{letter-spacing:.095em;max-width:145px;font-size:9px;line-height:1.35}.mobile-topbar .brand-mark{color:#ead9a8;padding:6px}@media (width<=1099px) and (width>=768px){.sidebar .brand-wordmark{display:none}}.view-tabs,.source-tabs{gap:8px;margin:0 0 18px;display:flex}.view-tabs button,.source-tabs button{color:#345;cursor:pointer;background:#eaf0f6;border:0;border-radius:6px;padding:8px 10px}.view-tabs .selected,.source-tabs .selected{color:#fff;background:#1769aa}.orders-toolbar{justify-content:space-between;align-items:center;margin:0 0 16px;display:flex}.orders-toolbar h3{margin:0}.orders-toolbar p{color:#718093;margin:4px 0 0}.orders-toolbar button,.new-order-dialog .actions button{color:#fff;cursor:pointer;background:#1666b5;border:0;border-radius:7px;padding:10px 14px;font-weight:700}.kanban-board{grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:16px;width:100%;display:grid}.kanban-column{background:#f7f9fb;border:1px solid #dce5ed;border-radius:10px;min-height:240px;padding:10px;width:auto!important;margin:0!important}.kanban-column>h3{border-radius:7px;justify-content:space-between;align-items:center;margin:0 0 10px;padding:9px 10px;font-size:15px;display:flex}.kanban-column>h3 span{background:#fff;border-radius:20px;padding:3px 7px;font-size:12px}.received>h3{color:#174c78;background:#dceeff}.preparing>h3{color:#775800;background:#fff0c4}.ready>h3{color:#17623b;background:#d9f5e2}.column-empty{color:#8291a0;text-align:center;padding:35px 8px}.order-card{background:#fff;border:1px solid #dce5ed;border-radius:8px;margin:10px 0;padding:12px;box-shadow:0 1px 2px #182c4010}.order-top{color:#607080;justify-content:space-between;gap:8px;font-size:12px;display:flex}.order-card h4{margin:8px 0 3px;font-size:16px}.order-total{color:#1769aa;margin:0 0 8px;font-weight:700}.items{margin:10px 0;padding:0;list-style:none}.items li{border-bottom:1px solid #eef2f6;align-items:flex-start;gap:6px;padding:7px 0;font-size:13px;display:flex}.items li>b{color:#1666b5;min-width:34px}.item-description{overflow-wrap:anywhere;flex:1;min-width:0}.state{text-transform:capitalize;background:#eef2f6;border-radius:12px;padding:3px 6px;font-size:11px;display:inline-block}.mark{flex-wrap:wrap;align-items:center;gap:3px;display:flex}.mark button{cursor:pointer;background:#fff;border:1px solid #d0d7de;border-radius:4px;margin:0;padding:3px 5px;font-size:11px}.mark.preparado button:first-child{color:#116329;background:#d9f7e5}.mark.faltante button:nth-child(2){color:#a51d1d;background:#ffe1e1}.mark.fabricacion button:nth-child(3){color:#745900;background:#fff4bf}.card-controls,.minor-actions{flex-wrap:wrap;gap:6px;margin-top:10px;display:flex}.minor-actions{width:100%}.card-controls select,.card-controls button,.card-controls a{padding:6px 8px;font-size:12px}.card-controls a{color:#17623b;background:#e5f4eb;border-radius:5px;text-decoration:none}.archive-button{font-weight:700;color:#17623b!important;background:#e7f4eb!important;border:1px solid #9ed2af!important}.warning,.success{border-radius:6px;padding:8px 9px;font-size:12px}.warning{color:#745900;background:#fff4bf}.success{color:#116329;background:#d9f7e5}.danger{color:#b42318!important;background:#fff!important;border:1px solid #f3b4b4!important}.editor{border:2px solid #9fc7ed}.editor select{border:1px solid #d6dee8;border-radius:5px;max-width:180px;padding:7px}.editor table input{min-width:90px}.previous-list{gap:7px;display:grid}.previous-row{text-align:left;color:#243444;background:#fff;border:1px solid #dce5ed;justify-content:space-between;align-items:center;width:100%;display:flex}.previous-row span{flex-direction:column;gap:3px;display:flex}.previous-row small{color:#718093}.summary-backdrop{z-index:10;background:#15202b77;justify-content:center;align-items:center;padding:20px;display:flex;position:fixed;inset:0}.order-summary,.new-order-dialog,.confirm-dialog{background:#fff;border-radius:10px;width:100%;max-width:900px;max-height:90vh;padding:24px;position:relative;overflow:auto}.new-order-dialog{max-width:760px}.confirm-dialog{max-width:460px}.confirm-dialog h3{margin:0 0 10px}.confirm-dialog p{color:#435365;line-height:1.5}.confirm-dialog .actions{justify-content:flex-end;margin-top:20px}.confirm-dialog button{cursor:pointer;border-radius:7px;padding:10px 13px;font-weight:700}.confirm-dialog .secondary{color:#34495e;background:#fff;border:1px solid #b9c7d4}.confirm-dialog .archive-confirm{color:#fff;background:#237a46;border:1px solid #237a46}.order-summary h3,.new-order-dialog h3{margin:0 0 8px}.close-summary{position:absolute;top:18px;right:18px}.new-order-details{grid-template-columns:1fr 1fr;gap:12px;display:grid}.new-order-details label{gap:6px;font-size:13px;font-weight:600;display:grid}.new-order-details select,.new-order-dialog textarea{width:100%;font:inherit;border:1px solid #cbd5e1;border-radius:6px;padding:10px}.new-order-dialog textarea{resize:vertical;min-height:190px;margin:14px 0;display:block}.file-source{background:#f8fbfd;border:1px dashed #a8bdcf;border-radius:8px;margin:14px 0;padding:18px}.file-source p{margin-top:0}.upload{color:#fff;cursor:pointer;background:#1666b5;border-radius:7px;padding:10px 13px;font-weight:600;display:inline-block}.upload input{display:none}.file-name{color:#35536c;margin:12px 0 0!important}.order-preview{border:1px solid #d5e0e9;border-radius:7px;max-width:100%;max-height:260px;margin:14px 0;display:block}.summary-totals{flex-direction:column;align-items:flex-end;gap:6px;margin-top:16px;display:flex}.summary-totals span{gap:22px;display:flex}.summary-totals strong{border-top:1px solid #cfdbe6;padding-top:8px;font-size:18px}.empty{color:#718093}@media (width<=1050px){.kanban-board{grid-template-columns:1fr}.kanban-column{min-height:auto}.items li{flex-wrap:wrap}}@media (width<=600px){.orders-toolbar{flex-direction:column;align-items:flex-start;gap:10px}.new-order-details{grid-template-columns:1fr}.source-tabs{flex-wrap:wrap}}.confirm-dialog .delete-confirm{color:#fff;background:#b42318;border:1px solid #b42318}.stock-note{color:#526274;background:#eef2f6;border-radius:6px;padding:7px 9px;font-size:12px}.bulk-add{background:#f5faff;border:1px solid #b8d2ea;border-radius:8px;margin:14px 0;padding:14px}.bulk-add p{color:#526b80;margin:5px 0 10px;font-size:13px}.bulk-add textarea{resize:vertical;width:100%;min-height:105px;font:inherit;box-sizing:border-box;border:1px solid #b9c9d8;border-radius:6px;padding:9px;display:block}.bulk-add button{color:#fff;cursor:pointer;background:#1666b5;border:0;border-radius:6px;margin-top:9px;padding:8px 12px;font-weight:700}.bulk-add button:disabled{opacity:.55;cursor:default}.order-slot>.editor{background:#fff;margin:8px 0 14px;padding:12px;overflow-x:auto}.order-slot>.editor h3{margin:0 0 10px}.order-slot>.editor table{min-width:640px}.order-slot>.editor .bulk-add{min-width:0}.order-slot>.editor .actions{min-width:300px}.coverage{border-radius:8px;margin:10px 0 14px;padding:11px 13px;font-size:13px}.coverage.complete{color:#17623b;background:#e4f7eb}.coverage.pending{color:#725900;background:#fff4cf}.coverage details{margin-top:8px}.coverage details p{border-left:2px solid;margin:5px 0;padding-left:10px}.interpretation-table{border-collapse:collapse;width:100%}.interpretation-table th,.interpretation-table td{vertical-align:top;text-align:left;border-bottom:1px solid #e7edf2;padding:8px}.interpretation-table input{box-sizing:border-box;max-width:100%}.product-code,.match-reason,.inference{margin-top:4px;display:block}.inference{color:#48677f}.match-reason{color:#9a6710}.raw-fragment{white-space:pre-wrap;min-width:150px;display:block}.candidate-list{gap:4px;max-height:220px;margin-top:7px;display:grid;overflow:auto}.candidate-list button{text-align:left;color:#173a57;cursor:pointer;background:#f5faff;border:1px solid #9fc7ed;border-radius:5px;padding:6px}.state.inferido{color:#765a00;background:#fff1bd}.state.requiere_aclaracion,.state.incompleto{color:#9f251a;background:#ffe0dc}.state.reconocido,.state.confirmado{color:#17623b;background:#dcf5e5}.interpretation-review>button:disabled,.editor .actions button:disabled{opacity:.45;cursor:not-allowed}.editor-catalog{background:#f8fbfe;border:1px solid #a8c8e2;border-radius:7px;min-width:240px;margin-top:8px;padding:7px}.editor-catalog summary{cursor:pointer;color:#175b91;font-weight:700}.editor-catalog label{gap:4px;margin-top:8px;font-size:12px;font-weight:700;display:grid}.editor-catalog select{width:100%;font:inherit;background:#fff;border:1px solid #9fb7ca;border-radius:6px;padding:8px}.current-product{border-radius:6px;gap:3px;padding:8px 9px;display:grid}.current-product.missing{color:#9f251a;background:#fff0ed}.current-product small{font-size:12px}.suggestion-title{color:#52677a;margin-top:8px;font-weight:700;display:block}.assistant-dialog{background:#fff;border-radius:12px;width:min(760px,100%);max-height:90vh;padding:24px;position:relative;overflow:auto}.assistant-dialog h3{margin:0 0 16px}.assistant-chat{flex-direction:column;gap:10px;min-height:260px;max-height:430px;padding:4px;display:flex;overflow:auto}.chat-message{color:#23384b;background:#eef3f7;border-radius:10px;max-width:82%;padding:10px 13px}.chat-message.usuario{color:#174c78;background:#dceeff;align-self:flex-end}.chat-message p{white-space:pre-wrap;margin:0}.chat-message button{text-align:left;cursor:pointer;background:#fff;border:1px solid #91bde3;border-radius:7px;flex-direction:column;width:100%;margin-top:8px;padding:8px;display:flex}.chat-message small{color:#6e7d8c;margin-top:3px}.assistant-input{border-top:1px solid #e4ebf1;gap:9px;padding-top:14px;display:grid}.assistant-input input,.assistant-input textarea{width:100%;font:inherit;border:1px solid #cbd5e1;border-radius:7px;padding:10px}.assistant-input textarea{resize:vertical;min-height:100px}.assistant-input button{color:#fff;cursor:pointer;background:#1666b5;border:0;border-radius:7px;justify-self:end;padding:10px 14px;font-weight:700}.assistant-input button:disabled{opacity:.6}.assistant-file{color:#516779;font-size:13px}.full-catalog{background:#fff;border:1px solid #aac9e4;border-radius:7px;margin-top:8px;padding:8px}.full-catalog summary{cursor:pointer;color:#175b91;font-weight:700}.full-catalog select{background:#fff;border:1px solid #9fb7ca;border-radius:6px;width:100%;margin-top:8px;padding:9px}.catalog-button{font-weight:700}.full-catalog{background:#fff;border:1px solid #79add8;border-radius:8px;gap:9px;margin-top:8px;padding:11px;display:grid}.full-catalog>b{color:#175b91}.full-catalog label{gap:4px;font-size:13px;font-weight:700;display:grid}.full-catalog select{width:100%;font:inherit;background:#fff;border:1px solid #9fb7ca;border-radius:6px;margin-top:0;padding:9px}.full-catalog button{margin-top:0}.stock-page{margin-top:22px}.stock-summary{grid-template-columns:repeat(6,1fr);gap:10px;display:grid}.stock-summary-card{background:#fff;border:1px solid #e2e8f0;border-left:5px solid #3b82f6;border-radius:10px;padding:15px}.stock-summary-card b{font-size:25px;display:block}.stock-summary-card span{color:#64748b;font-size:12px}.stock-summary-card.unknown{border-left-color:#94a3b8}.stock-summary-card.low{border-left-color:#f59e0b}.stock-summary-card.out{border-left-color:#dc2626}.stock-tabs{gap:8px;margin:20px 0;display:flex}.stock-tabs button{cursor:pointer;background:#fff;border:1px solid #cbd5e1;border-radius:8px;padding:9px 14px}.stock-tabs button.selected{color:#fff;background:#1666b5;border-color:#1666b5}.stock-toolbar{gap:10px;display:flex}.stock-toolbar input{flex:1}.stock-toolbar input,.stock-toolbar select,.stock-form input,.stock-form select,.stock-dialog input,.stock-dialog select{font:inherit;border:1px solid #cbd5e1;border-radius:7px;padding:10px}.stock-legend{color:#64748b;align-items:center;gap:7px;margin:12px 0;font-size:13px;display:flex}.stock-legend i,.stock-table td:first-child>i{border-radius:50%;width:11px;height:11px;display:inline-block}.stock-legend .unknown,.stock-table i.sin_contar{background:#94a3b8}.stock-legend .normal,.stock-table i.normal{background:#22c55e}.stock-legend .low,.stock-table i.bajo{background:#f59e0b}.stock-legend .out,.stock-table i.agotado{background:#dc2626}.stock-table-wrap{padding:0;overflow-x:auto}.stock-table{min-width:1050px}.stock-table td:first-child>i{margin-right:7px}.stock-table td:first-child small{color:#64748b;text-transform:capitalize;margin:4px 0 0 18px;display:block}.stock-table td button{cursor:pointer;background:#fff;border:1px solid #b8c7d9;border-radius:6px;padding:7px 10px}.uncontrolled>div{border-top:1px solid #e5e7eb;grid-template-columns:120px 1fr 180px;padding:9px;display:grid}.stock-split{grid-template-columns:minmax(280px,380px) 1fr;gap:18px;display:grid}.stock-form{flex-direction:column;align-self:start;gap:10px;display:flex}.stock-form button{color:#fff;background:#1666b5;border:0;border-radius:7px;padding:10px;font-weight:600}.location-row{border-bottom:1px solid #edf2f7;justify-content:space-between;padding:11px;display:flex}.location-row span{color:#64748b;text-transform:capitalize}.material-row{text-align:left;cursor:pointer;background:#fff;border:0;border-bottom:1px solid #e5e7eb;justify-content:space-between;width:100%;padding:13px;display:flex}.material-row:hover{background:#f8fafc}.material-row.unknown{border-left:5px solid #94a3b8}.material-row.low{border-left:5px solid #f59e0b}.material-row span:last-child{text-align:right}.material-row small{color:#64748b;margin-top:4px;display:block}.negative{color:#b91c1c;font-weight:700}.positive{color:#15803d;font-weight:700}.stock-dialog-bg{z-index:50;background:#0f172a99;place-items:center;padding:20px;display:grid;position:fixed;inset:0}.stock-dialog{background:#fff;border-radius:13px;width:min(620px,100%);max-height:90vh;padding:24px;position:relative;overflow:auto;box-shadow:0 20px 50px #0004}.stock-dialog h3{margin-top:0;padding-right:70px}.stock-dialog label{flex-direction:column;gap:5px;margin:12px 0;font-size:13px;font-weight:600;display:flex}.dialog-close{color:#475569;cursor:pointer;background:0 0;border:0;position:absolute;top:18px;right:18px}.dialog-grid{grid-template-columns:1fr 1fr;gap:10px;display:grid}.dialog-actions{justify-content:flex-end;gap:9px;margin-top:20px;display:flex}.dialog-actions button{cursor:pointer;background:#fff;border:1px solid #cbd5e1;border-radius:7px;padding:10px 14px}.dialog-actions button:last-child{color:#fff;background:#1666b5;border-color:#1666b5;font-weight:600}@media (width<=1000px){.stock-summary{grid-template-columns:repeat(3,1fr)}.stock-split{grid-template-columns:1fr}}@media (width<=700px){.stock-summary{grid-template-columns:repeat(2,1fr)}.stock-toolbar{flex-direction:column}.dialog-grid{grid-template-columns:1fr}}.stock-table{min-width:880px;font-size:13px}.stock-table th,.stock-table td{padding:9px 8px}.stock-table td:first-child{min-width:210px}.billing-page{gap:16px;display:grid}.arca-status{border-left:6px solid #c58b12;justify-content:space-between;align-items:center;display:flex}.arca-status.ready{border-left-color:#1f8a55}.arca-status.produccion{border-left-color:#a32626}.arca-status h3{margin:4px 0}.arca-status>strong{color:#8a5b00;background:#fff4d9;border-radius:999px;padding:8px 12px}.arca-status.ready>strong{color:#12633d;background:#e2f5eb}.arca-status.produccion>strong{color:#8d1f1f;background:#fde7e7}.eyebrow{text-transform:uppercase;letter-spacing:.08em;color:#66778a;font-size:11px;font-weight:700}.billing-grid{grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px;margin:14px 0;display:grid}.billing-grid span{color:#607080;border:1px solid #dbe4ed;border-radius:8px;padding:11px}.billing-grid b{color:#172b3f;margin-top:4px;display:block}.billing-form h3,.billing-help h3{margin-top:0}.billing-fields{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin:16px 0;display:grid}.billing-fields label{color:#33475b;gap:5px;font-size:13px;font-weight:700;display:grid}.billing-fields input,.billing-fields select{box-sizing:border-box;width:100%}.billing-fields .billing-check{align-items:center;gap:8px;padding-top:22px;display:flex}.billing-fields .billing-check input{width:auto}.environment-choice{flex-wrap:wrap;gap:10px;margin:14px 0;display:flex}.environment-choice label{border:1px solid #cfdbe7;border-radius:8px;align-items:center;gap:7px;padding:10px 12px;font-weight:700;display:flex}.production-warning{color:#711d1d;background:#fff0f0;border:1px solid #d56a6a;border-radius:8px;gap:10px;margin:12px 0;padding:12px;display:grid}.production-warning label{align-items:center;gap:8px;font-weight:700;display:flex}.production-verified{color:#165f3a;background:#e8f6ee;border:1px solid #70ad8d;border-radius:8px;padding:10px 12px}.billing-help .actions{flex-wrap:wrap;margin:12px 0}.billing-help .upload{align-items:center;display:inline-flex}.certificate-paste{background:#f4f8fb;border:1px solid #dbe4ed;border-radius:8px;gap:8px;margin:14px 0;padding:12px;display:grid}.certificate-paste textarea{box-sizing:border-box;resize:vertical;width:100%;min-height:110px;font-family:monospace}.certificate-paste button{justify-self:start}.billing-page button:disabled,.billing-help .upload.disabled{opacity:.45;cursor:not-allowed}.billing-history table{width:100%}.invoice-state{color:#7c5300;text-transform:capitalize;background:#fff1d5;border-radius:999px;padding:4px 8px;display:inline-block}.invoice-state.autorizado{color:#12633d;background:#e1f5e9}.invoice-state.rechazado,.invoice-state.error_comunicacion{color:#9a2525;background:#fde7e7}.invoice-environment{color:#526475;background:#eef2f6;border-radius:999px;padding:4px 8px;font-weight:700;display:inline-block}.billing-missing{background:#fff6df;border:1px solid #efd494;border-radius:8px;margin-bottom:14px;padding:12px}.billing-missing ul{margin-bottom:0}.billing-help ol{line-height:1.7}.invoice-dialog{width:min(560px,100vw - 28px)}.invoice-dialog .invoice-summary{background:#eef5fb;border-radius:8px;margin:12px 0;padding:12px}.invoice-dialog .invoice-warning{background:#fff3d6;border:1px solid #eccb7a;border-radius:8px;padding:10px}.invoice-dialog select{width:100%}.invoice-dialog .fiscal-confirm{color:#fff;background:#17365d}.invoice-dialog .fiscal-confirm:disabled{opacity:.45}.view-tabs,.source-tabs,.stock-tabs{background:#edf2ef;border:1px solid #d7e1dd;border-radius:13px;gap:4px;width:max-content;max-width:100%;padding:4px;overflow:auto}.view-tabs button,.source-tabs button{color:#526662;white-space:nowrap;background:0 0;border-radius:10px;min-height:38px;padding:8px 14px}.view-tabs .selected,.source-tabs .selected{color:#0b4a46;background:#fff;box-shadow:0 2px 8px #163c3514}.orders-toolbar{padding:4px 2px}.orders-toolbar button,.new-order-dialog .actions button,.bulk-add button{background:#176b63;border-radius:12px;min-height:42px}.kanban-board{gap:14px}.kanban-column{background:#f2f3ed;border-color:#d8e2de;border-radius:16px;padding:10px}.kanban-column>h3{color:#27443f;border-radius:11px;padding:10px 12px;background:0 0!important}.kanban-column>h3 span{background:#fff;border:1px solid #dce4e1}.received{border-top:3px solid #739995}.preparing{border-top:3px solid #b08d45}.ready{border-top:3px solid #3b8062}.order-card{border-color:#dce4e1;border-radius:14px;padding:14px;box-shadow:0 5px 18px #153f380c}.order-card h4{color:#193d39;font-size:17px}.order-total{color:#176b63}.items li{border-color:#edf0ee;align-items:center;min-height:44px}.items li>b{color:#176b63}.mark{flex-wrap:nowrap}.mark button{color:#687875;border-color:#d4ddda;border-radius:10px;place-items:center;width:34px;height:34px;padding:0;display:grid}.mark.preparado button:first-child{color:#17623b;background:#dff2e8;border-color:#acd6bf}.mark.faltante button:nth-child(2){color:#9d302a;background:#f9e7e5;border-color:#e5b9b5}.mark.fabricacion button:nth-child(3){color:#795e1e;background:#f7efd6;border-color:#e4d299}.items-toggle{color:#176b63;cursor:pointer;background:0 0;border:0;width:100%;min-height:36px;font-weight:750}.card-controls{align-items:stretch}.card-controls>button,.card-controls>select,.card-controls>a{border-radius:10px;min-height:40px;padding:8px 10px}.card-controls>button:first-of-type{color:#fff;background:#176b63;border-color:#176b63;font-weight:700}.minor-actions{border-top:1px solid #edf0ee;padding-top:4px}.warning,.success,.stock-note{border:1px solid #0000;border-radius:10px}.warning{color:#66501d;background:#faf2dc;border-color:#ead9aa}.success{color:#1d5c42;background:#e6f3ed;border-color:#bad9ca}.summary-backdrop,.stock-dialog-bg{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#092f2d8a}.order-summary,.new-order-dialog,.confirm-dialog,.assistant-dialog{border:1px solid #dce4e1;border-radius:18px;box-shadow:0 25px 70px #062b2838}.editor{background:#fbfdfc;border:1px solid #78aaa4}.editor-catalog{background:#f5faf8;border-color:#b7d1cc}.editor-catalog summary{color:#176b63}.candidate-list button{color:#174b45;background:#f4faf8;border-color:#a9ccc5}.current-product.selected{color:#17623b;background:#e9f5ef}.previous-row{border-color:#dce4e1;border-radius:11px;min-height:54px}.previous-row:hover{background:#f3faf8;border-color:#6ba59e}.stock-summary{gap:12px}.stock-summary-card{border:1px solid #dbe4e0;border-top:3px solid #176b63;border-radius:14px;box-shadow:0 5px 18px #153f380b}.stock-summary-card b{color:#173f3b}.stock-summary-card.unknown{border-top-color:#94a3a0}.stock-summary-card.low{border-top-color:#b08d45}.stock-summary-card.out{border-top-color:#a93832}.stock-tabs button{background:0 0;border:0;border-radius:10px;min-height:40px}.stock-tabs button.selected{color:#fff;background:#176b63}.stock-toolbar input,.stock-toolbar select,.stock-form input,.stock-form select,.stock-dialog input,.stock-dialog select{border-color:#c8d5d1;border-radius:11px;min-height:42px}.stock-table-wrap{border-radius:15px}.stock-table td button{color:#176b63;border-radius:10px;min-height:38px}.stock-table tr.sin_contar{background:#fafaf8}.stock-table tr.bajo{background:#fdf9ec}.stock-table tr.agotado{background:#fdf4f3}.stock-form button,.dialog-actions button:last-child{background:#176b63;border-color:#176b63;border-radius:11px}.material-row{min-height:62px}.stock-dialog{border:1px solid #dce4e1;border-radius:18px}.dialog-actions button{border-radius:11px;min-height:42px}.arca-status{border-top:3px solid #b08d45;border-left:0}.arca-status.ready,.arca-status.produccion{border-top-color:#176b63;border-left:0}.arca-status>strong,.arca-status.produccion>strong{color:#174b45;background:#e7f2ef}.billing-grid span{background:#fbfcfb;border-color:#dce4e1;border-radius:12px}.billing-grid b{color:#173f3b}.billing-fields input,.billing-fields select{border-color:#c8d5d1;border-radius:11px;min-height:42px}.environment-choice label{border-color:#d2deda;border-radius:12px;min-height:44px}.production-warning{color:#66501d;background:#faf4e5;border-color:#ead9aa;border-radius:12px;gap:8px;padding:11px 13px}.production-warning label,.production-warning p{margin:0}.production-verified{color:#185d41;background:#eaf5ef;border-color:#b5d6c7;border-radius:12px}.certificate-paste{background:#f7faf8;border-color:#dce4e1;border-radius:12px}.invoice-environment.produccion{color:#174b45;background:#e7f2ef}.billing-history{overflow:auto}.assistant-dialog{border-radius:18px}.assistant-chat{background:#f7f8f5;border:1px solid #e1e7e4;border-radius:14px;padding:8px}.chat-message{color:#29413e;background:#fff;border:1px solid #e0e7e4;border-radius:14px 14px 14px 5px}.chat-message.usuario{color:#174b45;background:#dcedea;border:0;border-radius:14px 14px 5px}.chat-message button{border-color:#acd0c9;border-radius:11px;min-height:44px}.assistant-input{border-color:#dce4e1}.assistant-input input,.assistant-input textarea{border-color:#c8d5d1;border-radius:11px;min-height:42px}.assistant-input button{background:#176b63;border-radius:11px;min-height:42px}.full-catalog{border-color:#acd0c9;border-radius:12px}.full-catalog>b,.full-catalog summary{color:#176b63}.full-catalog select{border-color:#b8cfca;border-radius:10px;min-height:42px}.app-content>.card{overflow-x:auto}.app-content>.card:has(th:nth-child(7)) td button{border-radius:10px;min-height:38px}.more-backdrop{display:none}@media (width<=1099px){.kanban-board{grid-template-columns:1fr}.kanban-column{min-height:auto}.order-card{max-width:none}.items li{flex-wrap:nowrap}}@media (width<=767px){.view-tabs{width:100%}.view-tabs button{flex:1}.orders-toolbar{align-items:stretch}.orders-toolbar button{width:100%}.kanban-board{display:block}.kanban-column{margin-bottom:14px!important}.order-card{padding:12px}.items li{grid-template-columns:34px minmax(0,1fr);gap:2px 6px;display:grid}.items .mark{grid-column:2;justify-content:flex-end}.mark button{width:38px;height:38px}.card-controls{grid-template-columns:1fr 1fr;display:grid}.card-controls>select,.card-controls>.minor-actions{grid-column:1/-1}.minor-actions{grid-template-columns:1fr 1fr;display:grid}.order-summary,.new-order-dialog,.confirm-dialog{max-height:calc(100vh - 24px);padding:18px}.order-summary table,.interpretation-table{min-width:680px}.order-summary,.interpretation-review,.order-slot>.editor{overflow:auto}.new-order-details{grid-template-columns:1fr}.source-tabs{width:100%}.source-tabs button{flex:1}.summary-backdrop{padding:10px}.stock-page{margin-top:0}.stock-summary{scroll-snap-type:x mandatory;padding-bottom:4px;display:flex;overflow:auto}.stock-summary-card{scroll-snap-align:start;min-width:130px}.stock-tabs{width:100%;overflow:auto}.stock-tabs button{white-space:nowrap}.stock-table-wrap{box-shadow:none;background:0 0;border:0;padding:0;overflow:visible}.stock-table{min-width:0;display:block}.stock-table thead{display:none}.stock-table tbody{gap:10px;display:grid}.stock-table tr{border:1px solid #dce4e1;border-radius:14px;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:13px;display:grid;box-shadow:0 4px 16px #153f3809;background:#fff!important}.stock-table td{border:0;padding:0;display:block}.stock-table td:first-child{grid-column:1/-1;min-width:0;font-size:14px}.stock-table td:first-child small{margin-left:18px}.stock-table td:nth-child(2):before{content:"Físico"}.stock-table td:nth-child(3):before{content:"Comprometido"}.stock-table td:nth-child(4):before{content:"Disponible"}.stock-table td:nth-child(5):before{content:"Mín. / objetivo"}.stock-table td:nth-child(6),.stock-table td:nth-child(7){grid-column:1/-1}.stock-table td:nth-child(n+2):nth-child(-n+5):before{color:#778783;text-transform:uppercase;letter-spacing:.05em;font-size:10px;display:block}.stock-table td:last-child{grid-column:1/-1}.stock-table td:last-child button{width:100%}.stock-split{grid-template-columns:1fr}.uncontrolled>div{grid-template-columns:1fr;gap:4px}.stock-dialog-bg{padding:8px}.stock-dialog{max-height:calc(100vh - 18px);padding:18px}.arca-status{gap:10px;display:grid}.arca-status>strong{justify-self:start}.billing-grid{grid-template-columns:1fr 1fr}.billing-fields{grid-template-columns:1fr}.billing-history table{min-width:720px}.billing-help ol{padding-left:20px}.assistant-dialog{border-radius:16px;flex-direction:column;width:100%;height:calc(100vh - 16px);max-height:none;padding:14px;display:flex}.assistant-chat{flex:1;max-height:none}.chat-message{max-width:92%}.assistant-input textarea{min-height:76px}.assistant-input button{width:100%}:is(.app-content>.card:has(th:nth-child(7))>table,.app-content>.card:has(th:nth-child(4):last-child)>table){display:block}:is(.app-content>.card:has(th:nth-child(7)) thead,.app-content>.card:has(th:nth-child(4):last-child) thead){display:none}:is(.app-content>.card:has(th:nth-child(7)) tbody,.app-content>.card:has(th:nth-child(4):last-child) tbody){gap:10px;display:grid}:is(.app-content>.card:has(th:nth-child(7)) tr,.app-content>.card:has(th:nth-child(4):last-child) tr){border:1px solid #dce4e1;border-radius:13px;grid-template-columns:1fr 1fr;gap:8px;padding:13px;display:grid}:is(.app-content>.card:has(th:nth-child(7)) td,.app-content>.card:has(th:nth-child(4):last-child) td){border:0;padding:0}:is(.app-content>.card:has(th:nth-child(7)) td:first-child,.app-content>.card:has(th:nth-child(7)) td:last-child,.app-content>.card:has(th:nth-child(4):last-child) td:nth-child(2)){grid-column:1/-1}.app-content>.card:has(th:nth-child(7)) td:nth-child(2):before{content:"Contacto"}.app-content>.card:has(th:nth-child(7)) td:nth-child(3):before{content:"Facturación"}.app-content>.card:has(th:nth-child(7)) td:nth-child(4):before{content:"Entrega"}.app-content>.card:has(th:nth-child(7)) td:nth-child(5):before{content:"Descuento"}.app-content>.card:has(th:nth-child(7)) td:nth-child(6):before{content:"Boletas"}.app-content>.card:has(th:nth-child(7)) td:nth-child(n+2):nth-child(-n+6):before{color:#778783;text-transform:uppercase;margin-bottom:2px;font-size:10px;display:block}.app-content>.card:has(th:nth-child(7)) td:last-child button{width:100%}.more-backdrop{z-index:35;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#092f2d6b;align-items:flex-end;padding:12px 12px 78px;display:flex;position:fixed;inset:0}.more-sheet{background:#fff;border:1px solid #dce4e1;border-radius:18px;gap:8px;width:100%;padding:16px;display:grid;box-shadow:0 20px 55px #062b2847}.more-sheet>b{color:#193d39;padding:3px 5px 8px}.more-sheet button{color:#174b45;text-align:left;background:#f1f6f4;border:0;border-radius:12px;align-items:center;gap:12px;min-height:50px;padding:10px 13px;display:flex}.more-sheet button:hover{background:#e5f1ee}}.account-dialog{background:#fff;border:1px solid #dce4e1;border-radius:18px;width:min(620px,100%);max-height:90vh;padding:25px;position:relative;overflow:auto;box-shadow:0 25px 70px #062b2838}.account-dialog h3{color:#153c39;margin:5px 0 0;font:600 28px Georgia,serif}.account-dialog h4{margin:24px 0 10px}.session-list{gap:8px;display:grid}.session-row{background:#fafcfb;border:1px solid #dce4e1;border-radius:12px;justify-content:space-between;align-items:center;gap:12px;padding:13px;display:flex}.session-row span{gap:5px;display:grid}.session-row small{color:#6d7c79;line-height:1.4}.account-password-toggle{margin-top:18px}.account-password{background:#f4f8f6;border-radius:13px;gap:12px;margin-top:12px;padding:15px;display:grid}.account-password label{gap:5px;font-size:13px;font-weight:700;display:grid}.account-password button{color:#fff;background:#176b63;border-color:#176b63}@media (width<=600px){.account-dialog{max-height:calc(100vh - 20px);padding:20px 15px}.session-row{flex-direction:column;align-items:stretch}.session-row button{width:100%}}.account-button{color:#dce9e6;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:12px;align-items:center;gap:10px;width:100%;min-width:0;padding:8px;display:flex}.account-button:hover{background:#ffffff14}.account-button>span{color:#ecdcae;border:1px solid #dcc690b3;border-radius:50%;flex:none;place-items:center;width:34px;height:34px;font-weight:800;display:grid}.account-button small{color:#a9c0bc;text-overflow:ellipsis;min-width:0;font-size:10px;display:grid;overflow:hidden}.account-button b{color:#fff;text-overflow:ellipsis;font-size:12px;overflow:hidden}.account-button small{white-space:nowrap}@media (width<=1099px) and (width>=768px){.account-button{justify-content:center;padding:0}.account-button small{display:none}}@media (width<=767px){.view-tabs button,.source-tabs button,.orders-toolbar button{min-height:44px}}.auth-page{background:radial-gradient(circle at 80% 5%,#266e65 0,#0000 28rem),linear-gradient(145deg,#073b38,#0b504a 60%,#07332f);place-items:center;min-height:100vh;padding:24px;display:grid}.auth-panel{background:#f9f7f0;border:1px solid #ffffff38;border-radius:24px;width:min(460px,100%);padding:32px;box-shadow:0 30px 90px #021d1b6b}.auth-brand{align-items:center;gap:12px;margin-bottom:34px;display:flex}.auth-brand .brand-mark{background:#0b4a46}.auth-brand h1{color:#153c39;margin:0;font:600 23px Georgia,serif}.auth-brand p{color:#7c8a87;letter-spacing:.14em;text-transform:uppercase;margin:3px 0;font-size:11px}.auth-copy h2{color:#153c39;margin:4px 0 8px;font:600 34px Georgia,serif}.auth-copy>p{color:#667775;margin:0 0 22px;line-height:1.55}.auth-form{gap:14px;display:grid}.auth-form label{color:#29433f;gap:6px;font-size:13px;font-weight:700;display:grid}.auth-form input{width:100%;min-height:46px}.auth-form button{color:#fff;background:#176b63;border:0;min-height:48px;margin-top:4px;font-weight:750}.auth-form small{color:#687875;line-height:1.4}.auth-error{color:#8f2e28;background:#fbebea;border:1px solid #e3bbb7;border-radius:10px;margin:0;padding:10px 12px}.auth-security{color:#788682;text-align:center;border-top:1px solid #dce4e1;margin:24px 0 0;padding-top:16px;font-size:11px}.auth-loading{color:#fff;background:#0b4a46;place-content:center;justify-items:center;gap:12px;min-height:100vh;display:grid}.auth-loading .brand-mark{width:52px;height:52px}.auth-loading p{color:#d9e7e3}@media (width<=540px){.auth-page{align-items:stretch;padding:12px}.auth-panel{border-radius:18px;flex-direction:column;justify-content:center;padding:24px;display:flex}.auth-copy h2{font-size:30px}}.auth-brand .brand-mark{color:#ead9a8;border-color:#c9aa62;border-radius:14px;width:48px;height:48px;padding:8px}.auth-brand .brand-wordmark h1{letter-spacing:.12em;font-size:25px}.auth-brand .brand-wordmark p{letter-spacing:.11em;max-width:none;margin-top:4px;font-size:9px}.auth-loading .brand-mark{color:#ead9a8;border-color:#ead9a8bf;padding:9px}
