@import"https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap";:root{--w-barcode: 160px;--font-sans: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji"}html,body{font-family:var(--font-sans)}button,input,select,textarea,label,table,th,td{font-family:inherit}.logo{display:block;margin:1rem auto;max-width:250px}.form-container{max-width:1000px;margin:auto;background:#f8faff;padding:1.5rem;border-radius:10px;box-shadow:0 3px 10px #0000001a}.form-container2{max-width:700px;margin:auto;background:#f8faff;padding:1.5rem;border-radius:10px;box-shadow:0 3px 10px #0000001a}.form-container3{max-width:1000px;margin:auto;background:#f8faff;padding:1.5rem;border-radius:10px;box-shadow:0 3px 10px #0000001a}.form-container4{max-width:1300px;margin:auto;background:#f8faff;padding:1.5rem;border-radius:10px;box-shadow:0 3px 10px #0000001a}label{display:block;margin-bottom:.5rem;font-weight:700}input[type=text],input[type=number],input:not([type]){width:100%;padding:.4rem;margin-top:.2rem;border:1px solid #ccc;border-radius:6px}input.invalid{border-color:#ef4444;background:#fff1f2}.error-msg{color:#b91c1c;font-size:.78rem}.suggestions{list-style:none;padding:0;margin:.5rem 0;border:1px solid #ccc;border-radius:6px;background:#fff}.suggestions li{padding:.5rem;cursor:pointer}.suggestions li:hover{background:#eef6ff}.suggestions.suggestions-prod{max-height:12rem;overflow-y:auto}.suggestions .muted{opacity:.7;padding:6px 8px;font-style:italic}.obs-textarea{width:100%;padding:.6rem;border:1px solid #ccc;border-radius:6px;resize:vertical;margin-bottom:.8rem}.products-header{display:grid;grid-template-columns:40px var(--w-barcode) 1fr 60px 140px var(--w-iva) 90px var(--w-del);column-gap:12px;align-items:center;font-weight:700;color:#1f2937;margin:.2rem 0 .4rem}.product-row{display:grid;grid-template-columns:40px var(--w-barcode) 1fr 60px 140px var(--w-iva) 90px var(--w-del);grid-template-rows:auto auto;column-gap:12px;row-gap:.2rem;align-items:center;margin:.2rem 0 .4rem}.head-num{text-align:center}.head-desc{padding-left:6px}.head-cant,.head-price{text-align:right;padding-right:6px}.head-iva{text-align:left}.head-total{text-align:right;padding-right:6px}.item-num{display:inline-flex;width:30px;height:30px;align-items:center;justify-content:center;border-radius:8px;background:#bfdbfe;font-weight:700;margin-bottom:1rem}.col{margin-right:15px;display:flex;flex-direction:column}.col-narrow input{text-align:right}.chk{margin-left:20px;white-space:nowrap;align-self:center}.line-total{align-self:center;text-align:right;font-weight:600}.totals{margin-top:.8rem;border:1px solid #e5e7eb;background:#fff;border-radius:8px;padding:.8rem}.totals>div{display:flex;justify-content:space-between;padding:.2rem 0}.totals .grand{margin-top:.2rem;padding-top:.4rem;border-top:1px dashed #e5e7eb;font-size:1.1rem}.form-error{margin-top:.6rem;background:#fef2f2;color:#991b1b;border:1px solid #fecaca;padding:.5rem .8rem;border-radius:6px;font-weight:600}.buttons-row{display:flex;gap:.6rem;margin-top:.8rem;flex-wrap:wrap}.primary-btn{background-color:#f7c948;color:#000;border:none;padding:.6rem 1.2rem;border-radius:6px;cursor:pointer;font-weight:700;transition:background .3s}.delete-btn{height:30px;border-radius:8px;cursor:pointer;font-weight:700;background-color:#bfdbfe}.delete-btn:hover:not(:disabled){background-color:#cd857e}.delete-btn:disabled{background:#ddd;cursor:not-allowed}.primary-btn:hover:not(:disabled){background-color:#facc15}.primary-btn:disabled{background:#ddd;cursor:not-allowed}.secondary-btn{background:#bfdbfe;border:none;padding:.6rem 1.2rem;border-radius:6px;cursor:pointer;font-weight:700;transition:background .3s}.secondary-btn:hover:not(:disabled){background:#93c5fd}.secondary-btn:disabled{background:#ddd;cursor:not-allowed}.danger-btn{background-color:#fee2e2;color:#991b1b;border:none;padding:.6rem 1.2rem;border-radius:6px;cursor:pointer;font-weight:solid;transition:background .3s}.danger-btn:hover:not(:disabled){background:#f05}.danger-btn:disabled{background:#ddd;cursor:not-allowed}.third-btn{background-color:#fff;color:#000;border:none;padding:.6rem 1.2rem;border-radius:6px;cursor:pointer;font-weight:solid;transition:background .3s}.secondary-btn.small{padding:.3rem .8rem;font-size:.85rem;margin:.3rem 0 .6rem}.actions{display:flex;gap:1rem;margin-top:1rem;flex-wrap:wrap}.link-pdf{color:#2563eb;text-decoration:none;font-weight:700}.link-pdf:hover{text-decoration:underline}.suggestion-btn{display:block;width:100%;text-align:left;padding:.5rem;border:none;background:transparent;cursor:pointer;font:inherit}.suggestion-btn:hover,.suggestion-btn:focus{background:#eef6ff;outline:2px solid transparent;outline-offset:2px}:root{--w-iva: 80px;--w-del: 30px}.err-chequeo{grid-row:2;grid-column:8;align-self:start;font-size:12px;line-height:1.1;color:#b91c1c}.product-row .err{grid-row:2;align-self:start;font-size:12px;line-height:1.1;color:#b91c1c}.product-row .err-desc{grid-column:3}.product-row .err-cant{grid-column:4}.product-row .err-price{grid-column:5}.product-row .err-iva{grid-column:6}.product-row .err-total{grid-column:7}.product-row .err-del{grid-column:8}.chk{justify-self:center}.product-row>*{grid-row:1}.product-row .item-num,.product-row .chk,.product-row .line-total,.product-row .col{margin:5px;display:flex;flex-direction:column}.product-row .col-narrow input{margin-left:0}.product-row .col :is(input,select,textarea){width:100%;min-width:0;margin:0}.head-barcode{text-align:left;padding-left:6px}.err-barcode{grid-column:3}.suggestions-prod.compact li{margin:0}.suggestions-prod.compact .suggestion-btn{font-size:12px;padding-block:2px;padding-inline:10px;line-height:1.1}.suggestions-prod.compact .truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.suggestions-prod.compact .muted{font-size:13px}:root{--ui-primary:#f7c948;--ui-primary-hover:#facc15;--ui-secondary:#bfdbfe;--ui-border:#e5e7eb;--ui-text:#111827;--ui-muted:#64748b}.ferca-dialog-host{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:transparent;color:var(--ui-text);overflow:hidden}.ferca-dialog-host::backdrop{background:transparent}.ui-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:10px 16px;border:1px solid transparent;border-radius:8px;cursor:pointer;font:inherit;font-size:13px;font-weight:700;line-height:1.35;text-decoration:none}.ui-button-primary{background:var(--ui-primary);color:#111827}.ui-button-primary:hover:not(:disabled){background:var(--ui-primary-hover)}.ui-button-secondary{background:var(--ui-secondary);color:#111827}.ui-button-secondary:hover:not(:disabled){background:#93c5fd}.ui-button-danger{background:#fee2e2;border-color:#fecaca;color:#991b1b}.ui-button-danger:hover:not(:disabled){background:#fecaca}.ui-button:disabled{background:#e5e7eb;color:#6b7280;cursor:not-allowed}.ui-button:focus-visible,.ferca-dialog-host :is(button,input,select,textarea,a):focus-visible{outline:3px solid #a88500;outline-offset:3px}.ferca-dialog-host :is(input,select,textarea)[aria-invalid=true]{border:2px solid #b91c1c}.ferca-dialog-host fieldset{border:0;padding:0;margin:0;min-width:0}.ferca-dialog-host .ui-field-error{color:#991b1b;font-size:12px;margin:6px 0}.ui-table-region{max-width:100%;overflow:auto}.ui-table-region:focus-visible{outline:3px solid #a88500;outline-offset:2px}.ui-table-region th{text-align:left}.ui-table-region :is(th,td).numeric{text-align:right;font-variant-numeric:tabular-nums}.ferca-dialog-host :is(.manual-modal,.detail-modal,.modal){max-height:calc(100dvh - 36px);overflow:auto;box-sizing:border-box}.ferca-dialog-host .modal-actions{position:sticky;bottom:-1px;background:#fff;padding:14px 0;z-index:1}@media(max-width:600px){.ui-button{min-height:44px}}.mobile-backdrop.svelte-129hoe0{display:none}.sidebar.svelte-129hoe0{position:sticky;top:0;height:100dvh;width:240px;background:#fff;color:#1f2937;border-right:1px solid #e5e7eb;padding:12px;transition:width .2s ease;display:flex;flex-direction:column;font-family:inherit;overflow:hidden;z-index:50}.sidebar.collapsed.svelte-129hoe0{width:68px}.header.svelte-129hoe0{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px;flex:0 0 auto}.brand.svelte-129hoe0{display:flex;align-items:center;gap:10px;min-width:0}.header-actions.svelte-129hoe0{display:flex;align-items:center;gap:8px;flex-shrink:0}.logo.svelte-129hoe0{font-weight:1000;letter-spacing:.4px;font-size:20px}.ferca-logo.svelte-129hoe0{display:block;margin:0;max-width:70px;height:auto;flex-shrink:0}.collapse-btn.svelte-129hoe0,.mobile-close-btn.svelte-129hoe0{background:#fef08a;border:1px solid #fde047;border-radius:8px;padding:4px 8px;cursor:pointer;font-family:inherit}.collapse-btn.svelte-129hoe0:hover,.mobile-close-btn.svelte-129hoe0:hover{background:#fde047}.collapse-btn.svelte-129hoe0:focus-visible,.mobile-close-btn.svelte-129hoe0:focus-visible{outline:none;box-shadow:0 0 0 2px #c7d2fe}.mobile-close-btn.svelte-129hoe0{display:none}.menu.svelte-129hoe0{list-style:none;padding:0 4px 0 0;margin:0;display:flex;flex-direction:column;gap:4px;flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden}.menu.svelte-129hoe0::-webkit-scrollbar{width:8px}.menu.svelte-129hoe0::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:999px}.menu.svelte-129hoe0::-webkit-scrollbar-track{background:transparent}.menu.svelte-129hoe0 a:where(.svelte-129hoe0){display:flex;align-items:center;gap:8px;padding:8px 10px;border-radius:8px;text-decoration:none;color:inherit}.menu.svelte-129hoe0 a:where(.svelte-129hoe0):hover{background:#f1f5f9}.menu.svelte-129hoe0 a.selected:where(.svelte-129hoe0){background:#dbeafe;border:1px solid #bfdbfe}.group.svelte-129hoe0 .parent:where(.svelte-129hoe0){display:flex;align-items:center;gap:8px;padding:8px 10px;font-weight:800;border-radius:8px;cursor:pointer;-webkit-user-select:none;user-select:none}.parent.svelte-129hoe0:hover{background:#f1f5f9}.parent.svelte-129hoe0:focus-visible{outline:none;box-shadow:0 0 0 2px #c7d2fe}.submenu.svelte-129hoe0{list-style:none;margin:0 0 4px 28px;padding:0;display:flex;flex-direction:column;gap:2px}.submenu.svelte-129hoe0 .bullet:where(.svelte-129hoe0){display:inline-block;width:10px;text-align:center;color:#94a3b8}.label.svelte-129hoe0{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.logout.svelte-129hoe0{margin-top:10px;flex:0 0 auto}.btn-logout.svelte-129hoe0{width:100%;border:1px solid #e5e7eb;background:#fff;border-radius:10px;padding:6px 8px;cursor:pointer;display:flex;align-items:center;gap:6px;justify-content:center;font-size:12px;line-height:1;font-family:inherit}.btn-logout.svelte-129hoe0:hover{background:#fee2e2;border-color:#fecaca}.sidebar.collapsed.svelte-129hoe0 .label:where(.svelte-129hoe0){display:none}.sidebar.collapsed.svelte-129hoe0 .submenu:where(.svelte-129hoe0){display:none}.sidebar.collapsed.svelte-129hoe0 .logo:where(.svelte-129hoe0){display:none}.chev.svelte-129hoe0{margin-left:auto;display:inline-flex;transition:transform .2s ease}.chev.rot.svelte-129hoe0{transform:rotate(90deg)}@media(max-width:900px){.mobile-backdrop.svelte-129hoe0{position:fixed;inset:0;display:block;background:#0f172a66;border:0;padding:0;margin:0;opacity:0;pointer-events:none;transition:opacity .2s ease;z-index:39}.mobile-backdrop.visible.svelte-129hoe0{opacity:1;pointer-events:auto}.sidebar.svelte-129hoe0{position:fixed;top:0;left:0;width:min(86vw,320px);max-width:320px;height:100dvh;border-right:1px solid #e5e7eb;border-bottom:none;border-radius:0 16px 16px 0;box-shadow:0 18px 50px #0f172a33;transform:translate(-105%);transition:transform .22s ease;overflow:hidden;padding-bottom:max(12px,env(safe-area-inset-bottom))}.sidebar.mobile-open.svelte-129hoe0{transform:translate(0)}.menu.svelte-129hoe0{max-height:none;overflow-y:auto;padding-right:0}.collapse-btn.svelte-129hoe0{display:none}.mobile-close-btn.svelte-129hoe0{display:inline-flex;align-items:center;justify-content:center}.sidebar.collapsed.svelte-129hoe0{width:min(86vw,320px)}.sidebar.collapsed.svelte-129hoe0 .label:where(.svelte-129hoe0),.sidebar.collapsed.svelte-129hoe0 .logo:where(.svelte-129hoe0),.sidebar.collapsed.svelte-129hoe0 .submenu:where(.svelte-129hoe0){display:initial}.sidebar.collapsed.svelte-129hoe0 .submenu:where(.svelte-129hoe0){display:flex}}.app-shell.svelte-12qhfyh{display:flex;min-height:100dvh;background:#fafafa}main.svelte-12qhfyh{flex:1;min-width:0;padding:16px;transition:margin-left .2s ease}.standalone-public.svelte-12qhfyh{box-sizing:border-box;width:100%;min-height:100dvh;padding:16px;background:#fafafa}.mobile-toolbar.svelte-12qhfyh{display:none}.mobile-menu-btn.svelte-12qhfyh{border:1px solid #d1d5db;background:#fff;color:#111827;border-radius:10px;padding:10px 12px;font:inherit;font-weight:700;box-shadow:0 1px 2px #0f172a0f}.mobile-menu-btn.svelte-12qhfyh:active{transform:translateY(1px)}@media(max-width:900px){.app-shell.svelte-12qhfyh{display:block}main.svelte-12qhfyh{padding:12px}.standalone-public.svelte-12qhfyh{padding:12px}.mobile-toolbar.svelte-12qhfyh{display:flex;justify-content:flex-start;margin-bottom:12px;position:sticky;top:0;z-index:20;background:#fafafa;padding:4px 0 8px}}
