:root{font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#f3f4f6}a:hover{color:#747bff}button{background-color:#f9f9f9}}.login-logo{width:210px;height:auto;margin-bottom:1.5rem;display:block;margin-left:auto;margin-right:auto}.login-bg-center{position:fixed;top:0;left:0;width:100vw;height:100vh;display:flex;align-items:center;justify-content:center;background:#f5f7fa;z-index:0}.login-container{max-width:350px;width:100%;padding:2rem 2.5rem;background:#fff;border-radius:12px;box-shadow:0 2px 16px #00000014;display:flex;flex-direction:column;align-items:center}.login-container h2{margin-bottom:1.5rem;color:#1a237e}.login-container form{width:100%;display:flex;flex-direction:column;gap:1rem}.login-container input{padding:.7rem 1rem;border:1px solid #bdbdbd;border-radius:6px;font-size:1rem;outline:none;transition:border .2s}.login-container input:focus{border-color:#1976d2}.login-container button{padding:.7rem 1rem;background:#1976d2;color:#fff;border:none;border-radius:6px;font-size:1rem;cursor:pointer;transition:background .2s}.login-container button:hover{background:#1565c0}.login-container .error{color:#d32f2f;margin-top:1rem;font-size:.98rem}.sidebar{position:fixed;top:90px;left:32px;width:250px;min-width:220px;max-width:340px;max-height:80vh;background:linear-gradient(180deg,#cbd5e1 80%,#94a3b8);color:#1e293b;box-shadow:0 4px 16px #1976d221;border-radius:14px;padding:.4rem 0;display:flex;flex-direction:column;gap:.15rem;z-index:2002;opacity:0;pointer-events:none;transform:translateY(-16px) scale(.98);transition:opacity .22s,transform .22s,width .22s;overflow-y:auto;font-size:.92rem!important}.sidebar.open{opacity:1;pointer-events:auto;transform:translateY(0) scale(1)}.sidebar-header{display:flex;flex-direction:column;align-items:center;gap:.5rem;margin-bottom:1.5rem}.sidebar-logo{width:120px;margin-bottom:.5rem}.sidebar-user{font-size:1.1rem;color:#1976d2;font-weight:600}.sidebar-toggle{position:fixed;top:32px;left:32px;z-index:2100;width:38px;height:38px;background:#1976d2;border:none;border-radius:50%;box-shadow:0 2px 8px #1976d221;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background .16s,box-shadow .16s}.sidebar-toggle.open{background:#1565c0}.sidebar-toggle:hover{background:#1565c0;box-shadow:0 8px 24px #1976d238}.sidebar-toggle-lines{display:flex;flex-direction:column;justify-content:center;align-items:center;width:18px;height:18px;position:relative}.sidebar-toggle-line{width:18px;height:2px;background:#fff;border-radius:2px;transition:transform .3s,opacity .3s;position:absolute;left:0}.sidebar-toggle-line:nth-child(1){top:2px}.sidebar-toggle-line:nth-child(2){top:8px}.sidebar-toggle-line:nth-child(3){top:14px}.sidebar-toggle.open .sidebar-toggle-line:nth-child(1){transform:translateY(6px) rotate(45deg)}.sidebar-toggle.open .sidebar-toggle-line:nth-child(2){opacity:0}.sidebar-toggle.open .sidebar-toggle-line:nth-child(3){transform:translateY(-6px) rotate(-45deg)}.sidebar nav{display:flex;flex-direction:column;gap:.5rem}.sidebar nav button,.sidebar nav a{font-size:.92rem!important;padding:.45rem 1rem}.sidebar nav button{background:none;border:none;text-align:left;font-size:.66rem;color:#222;border-radius:10px;cursor:pointer;transition:background .2s,color .2s,font-size .3s,padding .3s;display:flex;align-items:center;gap:1em;font-weight:500}.sidebar nav button.active,.sidebar nav button:hover{background:#e3f0fc;color:#1976d2}.sidebar nav a.menu-item,.sidebar nav .menu-subitem,.sidebar nav button,.sidebar nav button.sidebar-group-title{color:#1e293b;font-weight:500}.sidebar nav a.menu-item.active,.sidebar nav .menu-subitem.active,.sidebar nav a.menu-item:hover,.sidebar nav .menu-subitem:hover{color:#fff!important;background:#2563eb!important}.sidebar-submenu{margin-left:0;border-left:2px solid #e3eefd;padding-left:8px;margin-bottom:4px}.sidebar-submenu a{color:#1976d2;background:none;font-size:.92rem!important;padding:8px 16px;border-radius:4px;display:flex;align-items:center;gap:8px}.sidebar-submenu a.active,.sidebar-submenu a:hover{background:#1976d2;color:#fff}.sidebar-min-btn{background:none;border:none;color:#1976d2;font-size:1.3rem;cursor:pointer;margin:1rem auto 0;display:block;transition:color .2s}.sidebar-min-btn:hover{color:#0d47a1}.sidebar-backdrop{position:fixed;top:0;left:0;width:100vw;height:100vh;background:#1e2a3c52;z-index:2000;transition:background .2s}.main-content{flex:1;margin-left:0;transition:margin-left .3s cubic-bezier(.4,0,.2,1);min-width:0;width:100%;display:flex;flex-direction:column;align-items:flex-start}.main-content h1{font-size:2rem;color:#1976d2;margin-bottom:1.5rem}.main-placeholder{font-size:1.3rem;color:#888;background:#e3f0fc;padding:2.5rem 2rem;border-radius:10px;min-width:300px;min-height:120px;display:flex;align-items:center;justify-content:center}.menu-emoji{font-size:1.1em;display:inline-block;width:1.5em;text-align:center}.menu-label{display:inline-block}.sidebar-group{margin-bottom:8px}.sidebar-group-title{font-weight:700;color:#1976d2;background:#e3eefd;padding:8px 16px 4px;border-radius:4px 4px 0 0;display:flex;align-items:center;gap:8px;font-size:1.05em;border:none;width:100%;cursor:pointer;transition:background .2s}.sidebar-group-title.open{background:#d0e4fa}.sidebar-group-title:focus{outline:2px solid #1976d2}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a73;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);display:flex;align-items:center;justify-content:center;padding:24px;z-index:1000}.modal-container{width:100%;max-width:820px;background:#fff;border-radius:14px;box-shadow:0 30px 80px #02061740;overflow:hidden;animation:modal-in .22s ease-out}@keyframes modal-in{0%{transform:translateY(8px) scale(.985);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}.modal-container .modal-header{display:flex;justify-content:space-between;align-items:center;gap:.75rem;padding:16px 22px;background:#f8fafc;border-bottom:1px solid #e2e8f0}.modal-container .modal-header h2{margin:0;font-size:1.25rem;font-weight:800;color:#0f172a}.modal-container .modal-close{background:transparent;border:0;font-size:1.6rem;color:#64748b;cursor:pointer;border-radius:8px;padding:2px 8px;transition:background .12s,color .12s,transform .06s}.modal-container .modal-close:hover{background:#e2e8f0;color:#0f172a;transform:translateY(-1px)}.modal-container .modal-body{padding:18px 22px}.modal-container .modal-footer{display:flex!important;justify-content:flex-end!important;align-items:center;gap:.75rem;padding:12px 22px;background:#f8fafc;border-top:1px solid #e2e8f0}.modal-container .modal-form-grid,.modal-container .form-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:28px;row-gap:12px}.modal-container .span-2{grid-column:1 / -1}@media (max-width: 720px){.modal-container .modal-form-grid,.modal-container .form-grid{grid-template-columns:1fr;column-gap:0}.modal-container .span-2{grid-column:auto}}.modal-container .field{display:flex;flex-direction:column}.modal-container .field label{font-size:.9rem;font-weight:600;color:#334155;margin-bottom:6px}.modal-container .field.field-inline{flex-direction:column;align-items:center;gap:6px;text-align:center}.modal-container .field.field-inline label{margin-bottom:0;white-space:normal}.modal-container .field.field-inline input[type=checkbox]{transform:scale(.75);-webkit-transform:scale(.75);transform-origin:center center;-webkit-transform-origin:center center;margin:0 6px 0 0;padding:0;vertical-align:middle;display:inline-block}.modal-container .field input,.modal-container .field select,.modal-container .field textarea,.modal-container .modal-form-grid>label>input,.modal-container .modal-form-grid>label>select,.modal-container .modal-form-grid>label>textarea{width:100%;min-height:38px;border:1px solid #e2e8f0;border-radius:10px;font-size:.95rem;color:#0f172a;background:#fff;outline:none;transition:border-color .12s,box-shadow .12s,background .12s;-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}.modal-container .field textarea{min-height:88px;resize:vertical}.modal-container .field input:focus,.modal-container .field select:focus,.modal-container .field textarea:focus{border-color:#60a5fa;box-shadow:0 0 0 4px #60a5fa38}.modal-container .modal-actions{grid-column:1 / -1;display:flex!important;justify-content:flex-end!important;gap:.75rem;margin-top:6px}.modal-container .btn-primary,.modal-container .btn-secondary,.modal-container .btn-danger,.modal-container .btn-cancel{padding:.55rem 1rem;border-radius:10px;border:1px solid transparent;font-weight:700;font-size:.92rem;cursor:pointer;transition:background .18s,color .18s,border-color .18s,transform .06s}.modal-container .btn-primary{background:#4e7fe7;color:#fff}.modal-container .btn-primary:hover{background:#1d4ed8!important;color:#fff!important;transform:translateY(-1px)}.modal-container .btn-danger,.modal-container .btn-cancel{background:#c15f5f;color:#fff;border:1px solid transparent}.modal-container .btn-danger:hover,.modal-container .btn-cancel:hover{background:#eb1010!important;color:#fff!important;border:1px solid #b91c1c;transform:translateY(-1px)}.modal-container .btn-secondary{background:#f1f5f9;color:#0f172a;border-color:#e2e8f0}.modal-container .btn-secondary:hover{background:#e2e8f0!important;transform:translateY(-1px)}.modal-container .field input,.modal-container .field select,.modal-container .field textarea{padding:.4rem .75rem}.modal-container .modal-header,.modal-container .modal-body,.modal-container .modal-footer,.modal-container .modal-actions{padding-left:26px!important;padding-right:26px!important}.modal-container .modal-form-grid,.modal-container .form-grid{column-gap:32px!important;row-gap:14px!important}.modal-container .field input,.modal-container .field select,.modal-container .field textarea{box-sizing:border-box}.modal-container{max-width:980px}.modal-body .grid{display:grid;gap:16px}.modal-body .grid.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.modal-body .grid .col-span-2{grid-column:span 2}@media (max-width: 900px){.modal-body .grid.grid-2{grid-template-columns:1fr}.modal-body .grid .col-span-2{grid-column:span 1}}.modal-container .field input,.modal-container .field select,.modal-container .field textarea{padding:10px 12px}.modal-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:16px 20px}.modal-container{display:flex;flex-direction:column;max-height:90vh;border-radius:16px;overflow:hidden}.modal-header{padding:16px 24px;border-bottom:1px solid #eef2f7}.modal-body{padding:16px 24px;overflow:auto}.modal-footer{display:flex;justify-content:flex-end;gap:10px;padding:12px 24px 20px;border-top:1px solid #eef2f7;background:#fff}.modal-container .btn-primary,.modal-container .btn-secondary,.modal-container .btn-danger,.modal-container .btn-cancel{margin-bottom:0!important}.docs-modal .docs-added-table th,.docs-modal .docs-added-table td,.docs-modal .docs-existing-table th,.docs-modal .docs-existing-table td{padding:8px 10px;border-bottom:1px solid #f1f5f9;vertical-align:middle}.docs-modal .docs-added-table tbody tr:hover,.docs-modal .docs-existing-table tbody tr:hover{background:#fbfdff}.docs-modal .btn-icon{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:6px;border:0;background:transparent;font-size:14px;cursor:pointer;transition:background .12s,transform .06s;color:#0f172a;text-decoration:none}.docs-modal .btn-icon:hover{background:#0ea5e90f;transform:translateY(-1px)}.docs-modal .btn-icon-small{width:28px;height:28px;font-size:14px;border-radius:6px;border:0;background:transparent;cursor:pointer}.docs-modal .btn-icon-small:hover{background:#0ea5e90f;transform:translateY(-1px)}.docs-modal .btn-icon[title]{position:relative}.docs-modal a.btn-icon{color:inherit}.docs-modal input{min-height:36px;border-radius:8px;display:block;width:100%;box-sizing:border-box;padding:8px 10px}.docs-modal .muted{color:#62748a;padding:12px 6px}.docs-modal .btn-crear{background:#10b981;color:#fff;border-radius:10px;padding:8px 12px;border:0;font-size:.95rem}.docs-modal .btn-crear:hover{background:#059669}.docs-modal .btn-upload{background:linear-gradient(180deg,#4f46e5,#2563eb);color:#fff;border-radius:8px;padding:6px 10px;border:0;font-weight:700;font-size:.95rem}.docs-modal .btn-upload:disabled{opacity:.55;cursor:not-allowed}.docs-modal .btn-upload.btn-cancel{background:#ef4444}.docs-modal .docs-existing-table{width:100%;border-radius:12px;overflow:hidden;box-shadow:0 6px 18px #0206170a}.docs-modal .docs-existing-table thead th{background:linear-gradient(180deg,#f3e8ff,#e9d5ff);font-weight:800;padding:8px 12px;font-size:.95rem}.docs-modal h4{margin:6px 0 8px;font-size:1.05rem}.docs-modal .btn-zip{background:linear-gradient(180deg,#f3e8ff,#e9d5ff);color:#4c1d95;border:0;padding:6px 8px;border-radius:8px;font-weight:700;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}.docs-modal .btn-zip:disabled{opacity:.5;cursor:not-allowed}.docs-modal .btn-zip:hover{transform:translateY(-1px);box-shadow:0 6px 18px #6366f114}.docs-modal .docs-added-table{width:100%;border-radius:12px;overflow:hidden;box-shadow:0 6px 18px #0206170f}.docs-modal .docs-added-table thead th{background:linear-gradient(180deg,#e6f0ff,#d9e9ff);font-weight:800;padding:10px 12px}.docs-modal .docs-added-table td.actions-cell{white-space:nowrap;width:1%;max-width:1%;padding-left:8px;padding-right:8px}.docs-modal .docs-added-table td.actions-cell .btn-icon{margin-left:6px;margin-right:6px;width:30px;height:30px}.docs-modal .docs-added-table th:nth-child(2),.docs-modal .docs-added-table td:nth-child(2){width:auto}.docs-modal td.actions-cell,.docs-modal th.actions-cell,.docs-modal th.fecha-cell,.docs-modal td.fecha-cell{text-align:center;vertical-align:middle}.pedidos-layout{padding:1.5rem;font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Arial,"Apple Color Emoji","Segoe UI Emoji";color:#0f172a;display:flex;flex-direction:column;height:100%}.pedidos-page-title{margin:0 0 1rem;padding-left:64px;font-size:2rem;font-weight:800;color:#e32a0e;line-height:1.2}.pedidos-header{display:flex;gap:.8rem;align-items:center;margin-bottom:1rem;padding-left:64px}.pedidos-filtro{flex:0 0 300px;height:42px;min-height:42px;border-radius:12px;border:1px solid #e2e8f0;padding:0 .9rem;line-height:42px;outline:none;transition:border-color .12s ease,box-shadow .12s ease;box-sizing:border-box}.pedidos-filtro:focus{border-color:#60a5fa;box-shadow:0 0 0 3px #60a5fa40}.pedidos-btn-crear{min-height:42px;border-radius:12px;padding:.5rem .9rem;border:1px solid transparent;background:#2563eb;color:#fff;font-weight:700;box-shadow:0 8px 24px #2563eb40;transition:transform .06s ease,box-shadow .12s ease,background .12s ease}.pedidos-btn-crear:hover{background:#1d4ed8;transform:translateY(-1px);box-shadow:0 12px 30px #2563eb47}.pedidos-tabla-wrapper{flex:1;display:flex;flex-direction:column;background:#fff;border-radius:16px;box-shadow:0 10px 30px #0206170d;min-height:0}.pedidos-tabla-scroll{flex:1;overflow:auto;border-radius:16px}.pedidos-tabla{width:100%;min-width:1150px;border-collapse:separate;border-spacing:0}.pedidos-tabla-empty tbody tr td{padding:56px 12px;font-size:1rem}.pedidos-tabla thead th{position:sticky;top:0;z-index:2;background:#e5e7eb;color:#0f172a;font-weight:700;font-size:.9rem;letter-spacing:.02em;text-align:center;padding:10px 12px;border-top:2px solid #fff;border-bottom:3px solid #222;box-shadow:0 2px 4px #00000012}.pedidos-tabla thead tr{box-shadow:0 2px #222,0 4px #fff}.pedidos-tabla thead th:first-child{border-top-left-radius:12px}.pedidos-tabla thead th:last-child{border-top-right-radius:12px}.pedidos-tabla tbody td{padding:8px 12px;border-bottom:1px solid #919ca7;vertical-align:middle;font-size:.88rem}.pedidos-tabla tbody tr:hover{background:#f8fafc}.pedidos-tabla tbody tr:first-child td{border-top:8px solid #fff}.pedidos-row-cerrado{background:#ffe5e5!important}.pedidos-row-anulado{background:#e0eaff!important}.pedidos-row-entregado{background:#fff7e0!important}.pedidos-row-parcial{background:#ffd9a0!important}.pedidos-row-abierto{background:#e6ffe6!important}.pedidos-cell-input,.pedidos-cell-select{width:100%;padding:.4rem .5rem;border:1px solid transparent;border-radius:8px;background:transparent;font-size:.88rem;outline:none}.pedidos-cell-input:focus,.pedidos-cell-select:focus{background:#fff;border-color:#93c5fd;box-shadow:0 0 0 3px #93c5fd59}.pedidos-cell-select{border:1px solid #bcd;border-radius:6px;background:#f8fbff;padding:6px 12px;font-size:1em;min-width:120px;height:38px;color:#222;outline:none;transition:border .2s}.pedidos-cell-select:focus{border-color:#2563eb}.pedidos-th-acciones{width:90px;text-align:center}.pedidos-accion-btn{min-height:38px;height:38px;display:inline-flex;align-items:center;justify-content:center;padding:0 14px;font-size:1em;box-sizing:border-box}.pedidos-btn-secondary{background:#eee;color:#1976d2;border:1px solid #1976d2;padding:6px 14px;border-radius:4px;cursor:pointer;transition:background .18s}.pedidos-btn-secondary:hover,.pedidos-btn-secondary:focus{background:#dbeafe;color:#1743a3}.pedidos-btn-danger{background:#fff;border:1px solid #e2e8f0;color:#e11d48;border-radius:8px;cursor:pointer;transition:background .12s,border-color .12s,color .12s}.pedidos-btn-danger:hover:not(:disabled){background:#fee2e2;border-color:#fca5a5;color:#be123c}.pedidos-btn-danger:disabled{opacity:.5;cursor:not-allowed}.pedidos-btn-doc{display:inline-flex;align-items:center;gap:6px;background:#2563eb;color:#fff;border:none;border-radius:5px;padding:4px 14px;font-size:.98em;cursor:pointer;transition:background .18s;margin-left:8px}.pedidos-btn-doc:hover,.pedidos-btn-doc:focus{background:#1743a3;color:#fff}.pedidos-btn-doc input[type=file]{display:none}.pedidos-paginacion-wrapper{display:flex;justify-content:space-between;align-items:center;margin-top:14px;gap:1rem}.pedidos-page-nav{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin:14px 4px 8px;flex-wrap:wrap;flex:0 0 auto;position:relative;z-index:1}.pedidos-page-controls{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}.pedidos-page-btn{padding:.5rem .75rem;border-radius:10px;border:1px solid #e2e8f0;background:#fff;color:#0f172a;cursor:pointer;transition:transform .06s ease,box-shadow .12s ease,background .12s ease}.pedidos-page-btn:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 6px 18px #0206170f}.pedidos-page-btn:disabled{opacity:.5;cursor:not-allowed}.pedidos-page-size{min-height:38px;border-radius:12px;border:1px solid #e2e8f0;background:#fff;padding:.4rem .6rem;outline:none;margin-left:auto}.pedidos-page-size:focus{border-color:#60a5fa;box-shadow:0 0 0 3px #60a5fa40}html,body,#root{height:100%;overflow:hidden}@supports (height: 100dvh){html,body,#root{height:100dvh}}.pedidos-estado-abierto{background:#d1fae5;color:#065f46}.pedidos-estado-cerrado{background:#fee2e2;color:#991b1b}.pedidos-estado-anulado{background:#e0e7ef;color:#334155}.pedidos-estado-entregado{background:#fef9c3;color:#92400e}.pedidos-estado-parcial{background:#fde68a;color:#92400e}.pv-euro-wrapper{position:relative;display:inline-flex;align-items:center}.pv-euro-wrapper input[type=number]{padding-right:20px;width:100px}.pv-euro-symbol{position:absolute;right:6px;color:#334155;font-weight:600;pointer-events:none;font-size:.85rem}.pedido-header-right{text-align:right;min-width:220px;max-width:420px;display:flex;flex-direction:column;gap:4px;flex:0 0 auto;padding-right:16px;box-sizing:border-box;word-break:break-word;white-space:normal;font-size:.9rem}@media (max-width: 900px){.clientes-header{flex-wrap:wrap;align-items:flex-start;padding-left:16px}.pedido-header-right{order:2;width:100%;text-align:left;padding-right:0;margin-top:.5rem}.page-title{padding-left:16px;font-size:1.6rem}}.clientes-header .input,.clientes-header select.input,.clientes-header textarea.input{flex:0 0 300px;min-height:42px;border-radius:12px;border:1px solid #e2e8f0;padding:.5rem .9rem;outline:none;background:#fff;box-sizing:border-box;transition:border-color .12s ease,box-shadow .12s ease;font-size:.95rem}.clientes-header .input:focus,.clientes-header select.input:focus,.clientes-header textarea.input:focus{border-color:#60a5fa;box-shadow:0 0 0 3px #60a5fa40}.clientes-header input.input{flex:0 0 450px}.btn-crear{min-height:42px;border-radius:12px;padding:.5rem .9rem;border:1px solid transparent;background:#2563eb;color:#d99c00;font-weight:700;box-shadow:0 8px 24px #2563eb40;transition:transform .06s ease,box-shadow .12s ease,background .12s ease}.btn-crear .icon-plus{width:18px;height:18px;display:inline-block;vertical-align:middle;margin-right:8px;color:#d99c00;flex:0 0 auto}.btn-crear .icon-plus svg{display:block}.clientes-tabla thead th.col-id,.clientes-tabla tbody td.col-id,.clientes-tabla tfoot td.col-id{visibility:hidden;width:1px;min-width:1px;max-width:1px;padding:0;border:0}.btn-crear-secondary{background:#e5e7eb;color:#111;border:1px solid #cbd5e1;box-shadow:none}.btn-crear-secondary:hover{background:#d1d5db;transform:translateY(-1px);box-shadow:0 10px 22px #02061714}.btn-ambar{background:#b45309;color:#fff;box-shadow:0 8px 24px #b4530940}.btn-ambar:hover{background:#92400e;box-shadow:0 12px 30px #92400e47}.pv-detalle-actions{display:flex;justify-content:flex-end;align-items:center;gap:.5rem;flex-wrap:wrap}.clientes-tabla thead th{position:sticky;top:0;z-index:2;background:linear-gradient(90deg,#b7d0ff,#e0eaff);color:#0f172a;font-weight:700;font-size:.82rem;letter-spacing:.02em;text-align:left;padding:10px 6px;border-bottom:1px solid #e2e8f0}.clientes-tabla tbody td{padding:8px 6px;border-bottom:1px solid #eef2f7;vertical-align:middle;font-size:.88rem}.pedido-compra-detalle .clientes-tabla thead th{font-size:.74rem}.pedido-compra-detalle .clientes-tabla tbody td{font-size:.79rem}.pedido-compra-detalle .clientes-tabla tfoot td{font-size:.79rem;padding:8px 6px 8px 0;text-align:left;vertical-align:middle}.pedido-compra-detalle .clientes-tabla tfoot td .total-pill{display:inline-block;padding:6px 10px;border-radius:999px;background:#0206170f;color:#0f172a;font-weight:700;box-shadow:0 6px 18px #0206170a}.pedido-compra-detalle .clientes-tabla tfoot td .total-pill.money-pill{background:#bbf7d0;color:#065f46;box-shadow:0 8px 26px #065f460f}.pedido-compra-detalle .clientes-tabla tfoot td .total-pill.kg-pill{background:#374151;color:#fff;box-shadow:0 8px 26px #37415114}.clientes-tabla tbody td{vertical-align:middle;background-clip:padding-box}.clientes-tabla tbody td{overflow:hidden}.clientes-tabla td[data-tooltip]{position:relative}.clientes-tabla td[data-tooltip]:hover:after{content:attr(data-tooltip);position:absolute;left:50%;transform:translate(-50%);bottom:calc(100% + 10px);background:#0f172af2;color:#fff;padding:8px 10px;border-radius:8px;white-space:pre-line;font-size:.85rem;line-height:1.2;z-index:1200;box-shadow:0 8px 20px #02061759;max-width:320px;text-align:left}.clientes-tabla td[data-tooltip]:hover:before{content:"";position:absolute;left:50%;transform:translate(-50%);bottom:calc(100% + 2px);border:6px solid transparent;border-top-color:#0f172af2;z-index:1200}.pedido-compra-detalle .clientes-tabla tbody tr.pagado td{background-color:#e6fff2!important}.pedido-compra-detalle .clientes-tabla tbody tr.pagado td .btn-icon{background:transparent;border-color:transparent;color:inherit}.clientes-tabla tbody td.acciones{display:table-cell;padding:8px 6px;vertical-align:middle}.btn-icon{width:38px;height:38px;display:inline-flex;align-items:center;justify-content:center;padding:0;border-radius:10px;background:#fff;border:1px solid #eef2f7;font-size:1.05rem;cursor:pointer;transition:transform .06s ease,box-shadow .12s ease,background .12s}.btn-icon:hover{transform:translateY(-2px);box-shadow:0 6px 16px #0206170f}.btn-icon.danger{background:#fff5f5;border-color:#fdecea;color:#b91c1c}.clientes-tabla tbody td.acciones .btn-icon{background:transparent;border-color:transparent;box-shadow:none;width:38px;height:38px;display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;margin:0 .3rem}.clientes-tabla tbody td.acciones .btn-icon[style]{background-clip:padding-box}.clientes-tabla tbody tr td.actions-cell,.clientes-tabla tbody tr td.acciones{vertical-align:middle}.acciones .btn-icon:hover{box-shadow:0 6px 16px #0206170f}.acciones .btn-icon.danger{background:transparent;color:#b91c1c}.clientes-tabla td.acciones{white-space:nowrap;text-align:center}.clientes-tabla td.acciones .btn-icon{display:inline-flex;align-items:center;justify-content:center;margin:0 4.5px;min-width:40px;height:40px;border-radius:10px;padding:0;box-sizing:border-box}.clientes-tabla td.acciones .btn-icon.edit{background:#bfdbfe;color:#1e3a8a;border-color:#1e3a8a14;box-shadow:0 6px 18px #1e3a8a0f}.clientes-tabla td.acciones .btn-icon.arrow{background:#bbf7d0;color:#065f46;border-color:#065f460f;box-shadow:0 6px 18px #065f460f}.clientes-tabla td.acciones .btn-icon.delete{background:#fecaca;color:#7f1d1d;border-color:#7f1d1d0f;box-shadow:0 6px 18px #7f1d1d0f}.clientes-tabla td.acciones .btn-icon.edit,.clientes-tabla td.acciones .btn-icon.arrow,.clientes-tabla td.acciones .btn-icon.delete{background-clip:padding-box}.clientes-tabla tbody td.acciones{position:relative;padding:0}.clientes-tabla tbody td.acciones .acciones-inner{position:absolute;top:0;bottom:0;left:0;right:0;display:flex;align-items:center;justify-content:center;gap:6px;padding:8px 6px;box-sizing:border-box}.clientes-tabla tbody td.acciones .acciones-inner .btn-icon{margin:0 4.5px}.clientes-tabla thead th:last-child,.clientes-tabla thead th.th-acciones{width:160px}.clientes-tabla tbody td.acciones{min-width:160px}.clientes-tabla thead th{background:transparent;color:#0f172a;font-weight:700;font-size:.82rem;letter-spacing:.02em;padding:12px 16px;border-bottom:1px solid #9fbefc}.page-meta{align-self:center;font-size:.95rem;color:#334155;font-weight:600;margin-right:.75rem}.tabla-scroll{flex:1 1 auto;min-height:0;overflow:auto;overflow-x:auto;-webkit-overflow-scrolling:touch}.clientes-layout table tbody tr{transition:background-color .12s ease}.clientes-layout table tbody tr:hover,.clientes-layout table tbody tr:hover td{background-color:#0206170f}.estado-abierto td{background-color:#d1fae5}.estado-entregado td{background-color:#fca5a5}.estado-pendiente td{background-color:#ffb347}.estado-cerrado td,.estado-cancelado td{background-color:#fee2e2}.clientes-layout table tbody tr td{transition:background-color .16s ease}@media (max-width: 640px){.informes-layout{padding:1rem}.informes-layout .page-title,.informes-layout .clientes-header{padding-left:0!important}.informes-layout .page-title{font-size:1.5rem}.informes-layout .clientes-header.informes-tabs{overflow-x:visible;overflow-y:visible;flex-wrap:wrap!important;padding-bottom:0}.informes-layout .clientes-header.informes-tabs .btn-crear{white-space:nowrap;flex:0 0 auto;min-height:38px;padding:.4rem .65rem;font-size:.92rem}.informes-layout .informes-filtros-grid{grid-template-columns:1fr!important;gap:10px!important}.informes-layout .clientes-card{padding:12px!important}.informes-layout .informes-actions{flex-direction:column;align-items:stretch;justify-content:flex-start!important;gap:8px!important}.informes-layout .informes-actions .btn-crear{width:100%}.informes-layout .tabla-wrapper{overflow:auto;-webkit-overflow-scrolling:touch}}@media (max-width: 380px){.informes-layout .clientes-header.informes-tabs{overflow-x:auto;overflow-y:hidden;flex-wrap:nowrap!important;padding-bottom:.25rem;-webkit-overflow-scrolling:touch;gap:6px}.informes-layout .clientes-header.informes-tabs .btn-crear{min-height:36px;padding:.35rem .55rem;font-size:.88rem;border-radius:10px}}@media (max-width: 380px){.informes-layout{padding:.75rem}.informes-layout .page-title{font-size:1.35rem;margin-bottom:.75rem}.informes-layout .clientes-card{padding:10px!important}.informes-layout .informes-filtros-grid{gap:8px!important}.informes-layout .input-label{font-size:.95rem}.informes-layout .input{padding:8px 10px!important;border-radius:10px!important}.informes-layout .informes-actions{gap:8px!important}}.pedido-venta-detalle{padding:1.5rem;font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;color:#0f172a;display:flex;flex-direction:column;height:100%;width:100%;max-width:100%;box-sizing:border-box;overflow:hidden}.pedido-venta-detalle *{box-sizing:border-box}.pedido-venta-detalle .page-title{margin:0 0 1rem;padding-left:64px;font-size:2rem;font-weight:800;color:#1d4ed8;line-height:1.2}.pedido-venta-detalle .kilos-line{display:flex;gap:.6rem;align-items:center}.pedido-venta-detalle .kilo-badge{padding:6px 10px;border-radius:8px;font-weight:700;color:#0f172a;font-size:.95rem;display:inline-flex;align-items:center;gap:.4rem}.pedido-venta-detalle .kilo-netos{background:#cfeeff}.pedido-venta-detalle .kilo-entregados{background:#ffd6d6}.pedido-venta-detalle .kilo-restantes{background:#d7ffd8}.pedido-venta-detalle .pv-detalle-actions{display:flex;gap:.5rem;flex-wrap:wrap;margin-bottom:1rem;align-items:center}.pedido-venta-detalle .btn-crear{display:inline-flex;align-items:center;gap:.4rem;padding:.6rem 1.2rem;font-size:.9rem;font-weight:600;color:#fff;background:linear-gradient(135deg,#2563eb,#1d4ed8);border:none;border-radius:10px;cursor:pointer;white-space:nowrap;transition:all .2s}.pedido-venta-detalle .btn-crear:hover{background:linear-gradient(135deg,#1d4ed8,#1e40af);transform:translateY(-1px)}.pedido-venta-detalle .btn-crear-secondary{background:#64748b}.pedido-venta-detalle .btn-crear.btn-ambar{background:#b45309!important}.pedido-venta-detalle .btn-crear.btn-ambar:hover{background:#92400e!important}.pedido-venta-detalle .tabla-wrapper{flex:1;display:flex;flex-direction:column;background:#fff;border-radius:16px;box-shadow:0 10px 30px #0206170d;min-height:0;min-width:0;max-width:100%;overflow:visible}.pedido-venta-detalle .tabla-scroll{flex:1;overflow-x:auto;overflow-y:visible;border-radius:16px;min-width:0}.pedido-venta-detalle .tabla-scroll::-webkit-scrollbar{height:10px;width:10px}.pedido-venta-detalle .tabla-scroll::-webkit-scrollbar-thumb{background:#94a3b8;border-radius:5px}.pedido-venta-detalle .tabla-scroll::-webkit-scrollbar-track{background:#e2e8f0}.pedido-venta-detalle .pv-table-inner{display:block;width:100%;min-width:0}.pedido-venta-detalle .clientes-tabla{width:100%;min-width:0;max-width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed;font-size:.72rem}.pedido-venta-detalle .clientes-tabla th,.pedido-venta-detalle .clientes-tabla td{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:4px 6px}.pedido-venta-detalle .clientes-tabla th:nth-child(7),.pedido-venta-detalle .clientes-tabla td:nth-child(7),.pedido-venta-detalle .clientes-tabla th:nth-child(17),.pedido-venta-detalle .clientes-tabla td:nth-child(17){white-space:normal!important;word-break:break-word}.pedido-venta-detalle .clientes-tabla th,.pedido-venta-detalle .clientes-tabla td{padding:4px 6px;vertical-align:middle;text-align:center;border-bottom:1px solid #e2e8f0}.pedido-venta-detalle .clientes-tabla thead th{position:sticky;top:0;z-index:2;background:#dbeafe;color:#0f172a;font-weight:700;font-size:.74rem;letter-spacing:.02em;text-align:center;white-space:normal;word-break:break-word;overflow:visible;padding:6px 8px;vertical-align:middle}.pedido-venta-detalle .clientes-tabla thead th:nth-child(7){text-align:left}.pedido-venta-detalle .clientes-tabla thead th:nth-child(17){text-align:center}.pedido-venta-detalle .clientes-tabla thead th:nth-child(16){white-space:nowrap;font-size:.68rem;padding:4px 6px}.pedido-venta-detalle .clientes-tabla tbody td{font-size:.72rem;background:#fff}.pedido-venta-detalle .clientes-tabla tbody tr:hover td{background-color:#f1f5f9!important}.pedido-venta-detalle .clientes-tabla th:nth-child(1),.pedido-venta-detalle .clientes-tabla td:nth-child(1){width:32px;min-width:32px}.pedido-venta-detalle .clientes-tabla th:nth-child(2),.pedido-venta-detalle .clientes-tabla td:nth-child(2){width:28px;min-width:28px}.pedido-venta-detalle .clientes-tabla th:nth-child(3),.pedido-venta-detalle .clientes-tabla td:nth-child(3){min-width:72px}.pedido-venta-detalle .clientes-tabla th:nth-child(4),.pedido-venta-detalle .clientes-tabla td:nth-child(4){min-width:72px}.pedido-venta-detalle .clientes-tabla th:nth-child(5),.pedido-venta-detalle .clientes-tabla td:nth-child(5){min-width:58px}.pedido-venta-detalle .clientes-tabla th:nth-child(6),.pedido-venta-detalle .clientes-tabla td:nth-child(6){min-width:72px;text-align:center}.pedido-venta-detalle .clientes-tabla th:nth-child(7),.pedido-venta-detalle .clientes-tabla td:nth-child(7){min-width:110px;max-width:150px;white-space:normal!important;word-break:break-word;text-align:left}.pedido-venta-detalle .clientes-tabla th:nth-child(8),.pedido-venta-detalle .clientes-tabla td:nth-child(8){min-width:45px}.pedido-venta-detalle .clientes-tabla th:nth-child(9),.pedido-venta-detalle .clientes-tabla td:nth-child(9){min-width:72px}.pedido-venta-detalle .clientes-tabla th:nth-child(10),.pedido-venta-detalle .clientes-tabla td:nth-child(10){min-width:85px}.pedido-venta-detalle .clientes-tabla th:nth-child(11),.pedido-venta-detalle .clientes-tabla td:nth-child(11){min-width:75px}.pedido-venta-detalle .clientes-tabla th:nth-child(12),.pedido-venta-detalle .clientes-tabla td:nth-child(12){min-width:68px}.pedido-venta-detalle .clientes-tabla th:nth-child(13),.pedido-venta-detalle .clientes-tabla td:nth-child(13){min-width:88px}.pedido-venta-detalle .clientes-tabla th:nth-child(14),.pedido-venta-detalle .clientes-tabla td:nth-child(14){min-width:78px}.pedido-venta-detalle .clientes-tabla th:nth-child(15),.pedido-venta-detalle .clientes-tabla td:nth-child(15){min-width:78px}.pedido-venta-detalle .clientes-tabla th:nth-child(16),.pedido-venta-detalle .clientes-tabla td:nth-child(16){min-width:78px}.pedido-venta-detalle .clientes-tabla th:nth-child(17),.pedido-venta-detalle .clientes-tabla td:nth-child(17){min-width:80px;max-width:110px;white-space:normal!important;word-break:break-word;text-align:left}.pedido-venta-detalle .clientes-tabla th:nth-child(18),.pedido-venta-detalle .clientes-tabla td:nth-child(18){min-width:110px;width:110px}.pedido-venta-detalle .clientes-tabla td.acciones{white-space:normal!important;text-align:center;width:110px;min-width:110px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding-top:6px}.pedido-venta-detalle .clientes-tabla td.acciones .btn-group{display:flex;flex-direction:row;gap:2px;margin-bottom:2px}.pedido-venta-detalle .clientes-tabla .btn-icon{display:inline-flex;align-items:center;justify-content:center;width:auto;height:auto;padding:5px;margin:0;border-radius:5px;font-size:1rem!important;line-height:1;cursor:pointer;border:none;background:linear-gradient(180deg,#e5e7eb,#d1d5db)!important;box-shadow:0 1px 2px #0000001f,inset 0 1px #ffffff80;transition:all .15s;overflow:visible}.pedido-venta-detalle .clientes-tabla .btn-icon:hover{transform:scale(1.1);box-shadow:0 2px 4px #0000001f,inset 0 1px #ffffff80}.pedido-venta-detalle .clientes-tabla .btn-icon:active{transform:scale(.95);box-shadow:inset 0 1px 3px #0003}.pedido-venta-detalle .clientes-tabla .btn-icon.btn-facturar{background:linear-gradient(180deg,#a855f7,#9333ea)!important;color:#fff}.pedido-venta-detalle .clientes-tabla .btn-icon.danger{background:linear-gradient(180deg,#ffe4e6,#fecdd3)!important;color:#be123c}.pedido-venta-detalle .clientes-tabla input[type=checkbox]{width:15px;height:15px;margin:0;cursor:pointer}.pedido-venta-detalle .clientes-tabla tbody tr.pagado td{background-color:#dcfce7!important}.pedido-venta-detalle .clientes-tabla tfoot td{font-size:.74rem;padding:4px 6px;font-weight:600;background:#fafafa;overflow:visible;white-space:nowrap;text-align:center}.pedido-venta-detalle .clientes-tabla tfoot .total-pill{display:inline-block;padding:5px 12px;border-radius:999px;font-weight:700}.pedido-venta-detalle .clientes-tabla tfoot .total-pill.kg-pill{background:#374151;color:#fff}.pedido-venta-detalle .clientes-tabla tfoot .total-pill.money-pill{background:#bbf7d0;color:#065f46}.pedido-venta-detalle .clientes-tabla td.obs-cell{overflow:hidden;text-overflow:ellipsis}.pedido-venta-detalle .clientes-tabla th:nth-child(1),.pedido-venta-detalle .clientes-tabla td:nth-child(1){width:40px}.pedido-venta-detalle .clientes-tabla th:nth-child(2),.pedido-venta-detalle .clientes-tabla td:nth-child(2){width:32px}.pedido-venta-detalle .clientes-tabla th:nth-child(3),.pedido-venta-detalle .clientes-tabla td:nth-child(3){width:72px}.pedido-venta-detalle .clientes-tabla th:nth-child(4),.pedido-venta-detalle .clientes-tabla td:nth-child(4){width:72px}.pedido-venta-detalle .clientes-tabla th:nth-child(5),.pedido-venta-detalle .clientes-tabla td:nth-child(5){width:60px}.pedido-venta-detalle .clientes-tabla th:nth-child(6),.pedido-venta-detalle .clientes-tabla td:nth-child(6){width:80px}.pedido-venta-detalle .clientes-tabla th:nth-child(7),.pedido-venta-detalle .clientes-tabla td:nth-child(7){width:28%}.pedido-venta-detalle .clientes-tabla th:nth-child(8),.pedido-venta-detalle .clientes-tabla td:nth-child(8){width:50px}.pedido-venta-detalle .clientes-tabla th:nth-child(9),.pedido-venta-detalle .clientes-tabla td:nth-child(9){width:90px}.pedido-venta-detalle .clientes-tabla th:nth-child(10),.pedido-venta-detalle .clientes-tabla td:nth-child(10){width:90px}.pedido-venta-detalle .clientes-tabla th:nth-child(11),.pedido-venta-detalle .clientes-tabla td:nth-child(11){width:75px}.pedido-venta-detalle .clientes-tabla th:nth-child(12),.pedido-venta-detalle .clientes-tabla td:nth-child(12){width:80px}.pedido-venta-detalle .clientes-tabla th:nth-child(13),.pedido-venta-detalle .clientes-tabla td:nth-child(13){width:90px}.pedido-venta-detalle .clientes-tabla th:nth-child(14),.pedido-venta-detalle .clientes-tabla td:nth-child(14){width:90px}.pedido-venta-detalle .clientes-tabla th:nth-child(15),.pedido-venta-detalle .clientes-tabla td:nth-child(15){width:78px}.pedido-venta-detalle .clientes-tabla th:nth-child(16),.pedido-venta-detalle .clientes-tabla td:nth-child(16){width:78px}.pedido-venta-detalle .clientes-tabla th:nth-child(17),.pedido-venta-detalle .clientes-tabla td:nth-child(17){width:14%}.pedido-venta-detalle .clientes-tabla th:nth-child(18),.pedido-venta-detalle .clientes-tabla td:nth-child(18){width:110px}.pedido-venta-detalle .clientes-tabla a{color:#2563eb;text-decoration:none}.pedido-venta-detalle .clientes-tabla a:hover{text-decoration:underline}.pedido-venta-detalle .muted{color:#94a3b8;font-style:italic}.pedido-venta-detalle .center{text-align:center}.btn-precios-comision{background:#d28519;color:#fff;border-radius:8px;padding:8px 18px;font-weight:600;border:none;transition:background .2s;margin-left:12px}.btn-precios-comision:hover{background:#764709}.clientes-tabla.productos-tabla{width:max-content;table-layout:auto}.clientes-tabla.productos-tabla tbody td:nth-child(1) .cell-input,.clientes-tabla.productos-tabla tbody td:nth-child(2) .cell-input{width:auto}.clientes-layout{padding:1.5rem;font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Arial,"Apple Color Emoji","Segoe UI Emoji";color:#0f172a;display:flex;flex-direction:column;height:100%}.page-title{margin:0 0 1rem;padding-left:64px;font-size:2rem;font-weight:800;color:#1d4ed8;line-height:1.2}.clientes-header{display:flex;gap:.8rem;align-items:center;margin-bottom:1rem;padding-left:64px}.clientes-header input[type=text]{flex:0 0 300px;min-height:42px;border-radius:12px;border:1px solid #e2e8f0;padding:.5rem .9rem;outline:none;transition:border-color .12s ease,box-shadow .12s ease}.clientes-header input[type=text]:focus{border-color:#60a5fa;box-shadow:0 0 0 3px #60a5fa40}.btn-crear{min-height:42px;border-radius:12px;padding:.5rem .9rem;border:1px solid transparent;background:#2563eb;color:#fff;font-weight:700;box-shadow:0 8px 24px #2563eb40;transition:transform .06s ease,box-shadow .12s ease,background .12s ease}.btn-crear:hover{background:#1d4ed8;transform:translateY(-1px);box-shadow:0 12px 30px #2563eb47}.btn-exportar{min-height:42px;border-radius:12px;padding:.5rem .9rem;border:1px solid transparent;background:#16a34a;color:#fff;font-weight:700;box-shadow:0 8px 24px #16a34a40;transition:transform .06s ease,box-shadow .12s ease,background .12s ease}.btn-exportar:hover{background:#15803d;transform:translateY(-1px);box-shadow:0 12px 30px #16a34a47}.tabla-wrapper{flex:1;display:flex;flex-direction:column;background:#fff;border-radius:16px;box-shadow:0 10px 30px #0206170d;min-height:0}.tabla-scroll{flex:1;overflow:auto;border-radius:16px}.clientes-tabla{width:100%;border-collapse:separate;border-spacing:0}.clientes-tabla thead th{position:sticky;top:0;z-index:2;background:linear-gradient(90deg,#b7d0ff,#e0eaff);color:#0f172a;font-weight:700;font-size:.9rem;letter-spacing:.02em;text-align:left;padding:10px 12px;border-bottom:1px solid #e2e8f0}.clientes-tabla tbody td{padding:8px 12px;border-bottom:1px solid #eef2f7;vertical-align:middle;font-size:.88rem}.clientes-tabla tbody tr:hover{background:#f8fafc}.cell-input,.cell-select{width:100%;padding:.4rem .5rem;border:1px solid transparent;border-radius:8px;background:transparent;font-size:.88rem;outline:none}.cell-input:focus,.cell-select:focus{background:#fff;border-color:#93c5fd;box-shadow:0 0 0 3px #93c5fd59}.th-acciones{width:90px;text-align:center}.paginacion-wrapper{display:flex;justify-content:space-between;align-items:center;margin-top:14px;gap:1rem}.page-nav{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}.page-btn{padding:.5rem .75rem;border-radius:10px;border:1px solid #e2e8f0;background:#fff;color:#0f172a;cursor:pointer;transition:transform .06s ease,box-shadow .12s ease,background .12s ease}.page-btn:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 6px 18px #0206170f}.page-btn:disabled{opacity:.5;cursor:not-allowed}.page-num{min-width:36px;height:34px;padding:0 .6rem;border-radius:10px;border:1px solid #e2e8f0;background:#fff;color:#0f172a;font-weight:600;cursor:pointer;transition:background .12s ease,border-color .12s ease,color .12s ease,transform .06s}.page-num:hover:not(.is-active){background:#f8fafc;transform:translateY(-1px)}.page-num.is-active{border-color:#2563eb;background:#2563eb;color:#fff;cursor:default}.page-size{min-height:38px;border-radius:12px;border:1px solid #e2e8f0;background:#fff;padding:.4rem .6rem;outline:none}.page-size:focus{border-color:#60a5fa;box-shadow:0 0 0 3px #60a5fa40}.clientes-tabla thead{position:sticky;top:0;z-index:2;background:linear-gradient(90deg,#cfe0ff,#b7d0ff)}.clientes-tabla thead tr{background:transparent}.clientes-tabla thead th{background:transparent;color:#0f172a;font-weight:700;font-size:.92rem;letter-spacing:.02em;padding:12px 16px;border-bottom:1px solid #9fbefc}.clientes-tabla thead th:first-child{border-top-left-radius:12px}.clientes-tabla thead th:last-child{border-top-right-radius:12px}.page-nav{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin:14px 4px 8px;flex-wrap:wrap}.page-size{min-height:36px;border-radius:10px;border:1px solid #e2e8f0;padding:.4rem .6rem;background:#fff;margin-left:auto}html,body,#root{height:100%}.clientes-layout{display:flex;flex-direction:column;height:100vh}.tabla-wrapper{display:flex;flex-direction:column;flex:1 1 auto;min-height:0}.page-nav{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}.page-controls{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}.page-btn,.page-num{padding:.5rem .8rem}.page-size{margin-left:auto}#root{height:100%}.clientes-layout{height:100%;display:flex;flex-direction:column;overflow:hidden}.tabla-wrapper{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;overflow:hidden}.tabla-scroll{flex:1 1 auto;min-height:0;overflow:auto;border-radius:16px}.page-nav{flex:0 0 auto;position:relative;z-index:1;margin-top:10px}.clientes-header{margin-bottom:.75rem}html,body{height:100vh;overflow:hidden}@supports (height: 100dvh){html,body{height:100dvh}}.main-content{height:100vh;display:flex;flex-direction:column;overflow:hidden;min-height:0}@supports (height: 100dvh){.main-content{height:100dvh}}.clientes-layout,.tabla-wrapper{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;overflow:hidden}.tabla-scroll{flex:1 1 auto;min-height:0;overflow:auto}.page-nav{flex:0 0 auto}@supports not (height: 100dvh){.tabla-scroll{max-height:calc(100vh - 220px)}}.user-mgmt-layout{width:100vw;height:100vh;margin:0;padding:1.5rem 2rem;box-sizing:border-box;display:flex;flex-direction:column;background:#f5f7fa;overflow:hidden}.user-mgmt-header{display:flex;align-items:center;justify-content:space-between;margin:2.5rem auto 1.5rem;width:100%;max-width:1400px;padding:0 2vw 0 0}.user-mgmt-header h1{font-size:2.2rem;color:#26334d;font-weight:700}.user-mgmt-create{background:#1976d2;color:#fff;border:none;border-radius:8px;font-size:1.05rem;font-weight:600;padding:.7rem 1.5rem;cursor:pointer;transition:background .2s}.user-mgmt-create:hover{background:#1256a3}.user-mgmt-table-wrap{flex:1 1 auto;margin:0 auto;width:90vw;max-width:1400px;background:#fff;border-radius:16px;box-shadow:0 2px 12px #1976d212;padding:1.5rem 1.2rem;display:flex;flex-direction:column;overflow-y:auto;overflow-x:hidden}.user-mgmt-pagination-bar{display:flex;justify-content:space-between;align-items:center;margin:1.2rem auto 2rem;width:90vw;max-width:1400px;gap:1.5rem;flex-wrap:wrap}.user-mgmt-pagination-controls{display:flex;align-items:center;gap:.5rem}.user-mgmt-pagination-controls button{background:#e3f0fc;border:none;border-radius:6px;padding:.35rem .8rem;font-size:1rem;color:#1976d2;cursor:pointer;transition:background .2s}.user-mgmt-pagination-controls button:disabled{background:#f0f0f0;color:#aaa;cursor:not-allowed}.user-mgmt-pagination-controls span{font-size:1rem;color:#26334d;margin:0 .5rem}.user-mgmt-rows-select label{font-size:1rem;color:#26334d;font-weight:500}.user-mgmt-rows-select select{margin-left:.3rem;padding:.3rem .7rem;border-radius:6px;border:1px solid #bdbdbd;font-size:1rem}.user-mgmt-page-btn{background:#fafdff;border:1.2px solid #e3f0fc;border-radius:7px;color:#1976d2;font-size:1rem;font-weight:500;margin:0 2px;min-width:2.2em;padding:.32rem .7rem;box-shadow:0 1.5px 2px #e3f0fc inset,0 2px 8px #b3e5fc11;cursor:pointer;transition:background .18s,color .18s,border .18s,box-shadow .18s}.user-mgmt-page-btn:hover:not(:disabled){background:#e3f0fc;color:#1256a3;border:1.5px solid #b3e5fc;box-shadow:0 2px 8px #b3e5fc33}.user-mgmt-page-btn.active,.user-mgmt-page-btn:disabled{background:linear-gradient(90deg,#e3f0fc 70%,#b3e5fc);color:#fff;border:1.5px solid #1976d2;box-shadow:0 4px 16px #b3e5fc33,0 1.5px 2px #e3f0fc inset;cursor:default;pointer-events:none}.user-mgmt-page-ellipsis{display:inline-block;min-width:2em;text-align:center;color:#b0b8c9;font-size:1.1em;font-weight:600;margin:0 2px;-webkit-user-select:none;user-select:none}.modal label{display:flex;flex-direction:column;font-size:1rem;color:#26334d;gap:.3rem}.modal input,.modal select{padding:.6rem 1rem;border:1px solid #bdbdbd;border-radius:6px;font-size:1rem;outline:none;margin-top:.2rem;margin-bottom:.5rem}.modal-actions{display:flex;justify-content:flex-end;gap:1rem;margin-top:1.2rem}.modal-actions button{padding:.7rem 1.5rem;border-radius:8px;border:none;font-size:1rem;font-weight:600;cursor:pointer;background:#e3f0fc;color:#1976d2;transition:background .2s}.modal-actions button.user-mgmt-create{background:#1976d2;color:#fff}.modal-actions button.user-mgmt-create:hover{background:#1256a3}.modal-bg{position:fixed;top:0;left:0;width:100vw;height:100vh;background:#1e2a3c40;z-index:4000;display:flex;align-items:center;justify-content:center}.modal{background:#fff;border-radius:16px;box-shadow:0 8px 32px #1976d22e;padding:2.5rem 2.2rem 2rem;min-width:340px;max-width:95vw;display:flex;flex-direction:column;gap:1.1rem;position:relative}.modal h2{margin-top:0;margin-bottom:1.2rem;color:#1976d2;font-size:1.4rem;font-weight:700}.reset-modal-success{padding:2.5rem 2rem 2rem;text-align:center}.reset-modal-success .reset-modal-icon{font-size:3rem;color:#2ecc40;margin-bottom:.5rem}.reset-modal-success h2{margin:.5rem 0 1.2rem;font-size:1.35rem;color:#1976d2;font-weight:700}.reset-modal-success .reset-modal-box{background:#f8f9fa;border-radius:8px;padding:1rem;margin-bottom:1rem;display:flex;align-items:center;justify-content:center}.reset-modal-success .reset-modal-label{font-weight:700;font-size:1.1rem;margin-right:1rem}.reset-modal-success .reset-modal-pass{font-size:1.2rem;text-align:center;width:180px;margin-right:.5rem;background:#eaf6ff;border:1px solid #b3d8ff;border-radius:5px}.reset-modal-success .reset-modal-copy{background:#00bfff;color:#fff;border:none;border-radius:5px;padding:.3rem .7rem;cursor:pointer}.reset-modal-success .reset-modal-info{background:#fffbe6;border-radius:8px;padding:1rem;margin-bottom:1rem;text-align:left;font-size:.95rem;color:#856404}.reset-modal-success .reset-modal-footer{display:flex;justify-content:center;gap:1rem}.reset-modal-success .reset-modal-btn{background:#007bff;color:#fff;border:none;border-radius:5px;padding:.5rem 1.5rem;cursor:pointer;font-size:1rem}.despachantes-container{padding:24px;background:#fff;border-radius:16px;margin:24px auto;max-width:1200px;box-shadow:0 2px 16px #0001}.despachantes-title{font-size:2.2rem;font-weight:700;margin-bottom:24px;color:#1976d2}.despachantes-actions-bar{display:flex;gap:12px;margin-bottom:18px;align-items:center}.despachantes-actions-bar input[type=text]{flex:1;padding:8px 12px;border-radius:8px;border:1px solid #ddd;font-size:1rem}.despachantes-btn-primary{background:#1976d2;color:#fff;border:none;border-radius:8px;padding:8px 18px;font-weight:700;cursor:pointer;transition:background .2s}.despachantes-btn-primary:hover{background:#125ea2}.despachantes-btn-success{background:#27ae60;color:#fff;border:none;border-radius:8px;padding:8px 18px;font-weight:700;cursor:pointer;transition:background .2s}.despachantes-btn-success:hover{background:#219150}.despachantes-table{width:100%;border-collapse:collapse;margin-bottom:18px}.despachantes-table th,.despachantes-table td{padding:10px 8px;border-bottom:1px solid #eee;text-align:left}.despachantes-table th{background:#e3f0fc;font-weight:700}.despachantes-table tr:nth-child(2n){background:#f8fafc}.despachantes-pagination{display:flex;gap:6px;align-items:center;margin-top:12px}.despachantes-pagination button{border:none;background:#e3f0fc;color:#1976d2;border-radius:6px;padding:4px 10px;cursor:pointer;font-weight:700;transition:background .2s}.despachantes-pagination button.active,.despachantes-pagination button:active{background:#1976d2;color:#fff}.despachantes-pagination button:disabled{opacity:.5;cursor:not-allowed}.despachantes-modal-form input,.despachantes-modal-form select{display:block;width:100%;margin-bottom:10px;padding:7px 10px;border-radius:6px;border:1px solid #ccc;font-size:1rem}.despachantes-modal-footer{display:flex;justify-content:flex-end;gap:10px;margin-top:10px}.facturas-rectificativas{padding:1.5rem;font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;color:#0f172a;display:flex;flex-direction:column;height:100%;width:100%;max-width:100%;box-sizing:border-box;overflow:hidden}.facturas-rectificativas *{box-sizing:border-box}.facturas-rectificativas .page-title{margin:0 0 1rem;padding-left:64px;font-size:2rem;font-weight:800;color:#1d4ed8;line-height:1.2}.facturas-rectificativas .kilos-line{display:flex;gap:.6rem;align-items:center}.facturas-rectificativas .kilo-badge{padding:6px 10px;border-radius:8px;font-weight:700;color:#0f172a;font-size:.95rem;display:inline-flex;align-items:center;gap:.4rem}.facturas-rectificativas .kilo-netos{background:#cfeeff}.facturas-rectificativas .kilo-entregados{background:#ffd6d6}.facturas-rectificativas .kilo-restantes{background:#d7ffd8}.facturas-rectificativas .pv-detalle-actions{display:flex;gap:.5rem;flex-wrap:wrap;margin-bottom:1rem;align-items:center}.facturas-rectificativas .clientes-header,.clientes-header{display:flex;gap:.8rem;align-items:center;margin-bottom:1rem;padding-left:64px}.facturas-rectificativas .clientes-header .input,.clientes-header .input,.facturas-rectificativas .clientes-header input[type=text],.clientes-header input[type=text]{flex:0 0 450px;min-height:42px;border-radius:12px;border:1px solid #e2e8f0;padding:.5rem .9rem;outline:none;transition:border-color .12s ease,box-shadow .12s ease;background:#fff;box-sizing:border-box;font-size:.95rem}.facturas-rectificativas .btn-crear .icon-plus{width:18px;height:18px;display:inline-block;vertical-align:middle;margin-right:8px;color:#d99c00;flex:0 0 auto}.facturas-rectificativas .btn-crear .icon-plus svg{display:block}.facturas-rectificativas .btn-crear .icon-refresh,.clientes-header .btn-crear .icon-refresh{width:18px;height:18px;display:inline-block;vertical-align:middle;margin:0 6px;flex:0 0 auto;color:inherit}.facturas-rectificativas .btn-crear .icon-refresh svg{display:block}.clientes-header .header-actions>button+button{margin-left:.6rem}.facturas-rectificativas .pv-detalle-actions{gap:.4rem;margin-bottom:.6rem}.facturas-rectificativas .btn-crear{display:inline-flex;align-items:center;gap:.4rem;padding:.6rem 1.2rem;font-size:.9rem;font-weight:600;color:#fff;background:linear-gradient(135deg,#2563eb,#1d4ed8);border:none;border-radius:10px;cursor:pointer;white-space:nowrap;transition:all .2s}.facturas-rectificativas .btn-crear:hover{background:linear-gradient(135deg,#1d4ed8,#1e40af);transform:translateY(-1px)}.facturas-rectificativas .btn-crear-secondary{padding:.6rem .9rem;background:linear-gradient(135deg,#06b6d4,#0ea5b7);color:#fff;border:none;border-radius:10px;box-shadow:0 6px 18px #06b6d42e}.facturas-rectificativas .btn-crear-secondary:hover{background:linear-gradient(135deg,#0ea5b7,#0891b2);transform:translateY(-1px)}.facturas-rectificativas .btn-crear.btn-ambar{background:#b45309!important}.facturas-rectificativas .btn-crear.btn-ambar:hover{background:#92400e!important}.facturas-rectificativas .tabla-wrapper{flex:1;display:flex;flex-direction:column;background:#fff;border-radius:16px;box-shadow:0 10px 30px #0206170d;min-height:0;min-width:0;max-width:100%;overflow:visible}.facturas-rectificativas .tabla-scroll{flex:1;overflow-x:auto;overflow-y:visible;border-radius:16px;min-width:0}.facturas-rectificativas .tabla-scroll::-webkit-scrollbar{height:10px;width:10px}.facturas-rectificativas .tabla-scroll::-webkit-scrollbar-thumb{background:#94a3b8;border-radius:5px}.facturas-rectificativas .tabla-scroll::-webkit-scrollbar-track{background:#e2e8f0}.facturas-rectificativas .pv-table-inner{display:block;width:100%;min-width:0}.facturas-rectificativas .clientes-tabla{width:100%;min-width:0;max-width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed;font-size:.72rem}.facturas-rectificativas .clientes-tabla th,.facturas-rectificativas .clientes-tabla td{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:6px 8px}.facturas-rectificativas .clientes-tabla th:nth-child(7),.facturas-rectificativas .clientes-tabla td:nth-child(7),.facturas-rectificativas .clientes-tabla th:nth-child(17),.facturas-rectificativas .clientes-tabla td:nth-child(17){white-space:normal!important;word-break:break-word}.facturas-rectificativas .clientes-tabla th,.facturas-rectificativas .clientes-tabla td{padding:4px 6px;vertical-align:middle;text-align:center;border-bottom:1px solid #e2e8f0}.facturas-rectificativas .clientes-tabla thead th{position:sticky;top:0;z-index:2;background:#dbeafe;color:#0f172a;font-weight:700;font-size:.74rem;letter-spacing:.02em;text-align:center;white-space:normal;word-break:break-word;overflow:visible;padding:8px 10px;vertical-align:middle}.facturas-rectificativas .clientes-tabla thead th:nth-child(7){text-align:left}.facturas-rectificativas .clientes-tabla thead th:nth-child(17){text-align:center}.facturas-rectificativas .clientes-tabla thead th:nth-child(16){white-space:nowrap;font-size:.68rem;padding:4px 6px}.facturas-rectificativas .clientes-tabla tbody td{font-size:.8rem;background:#fff;padding-top:10px;padding-bottom:10px}.facturas-rectificativas .clientes-tabla tbody tr:hover td{background-color:#f1f5f9!important}.facturas-rectificativas .clientes-tabla th:nth-child(1),.facturas-rectificativas .clientes-tabla td:nth-child(1){width:32px;min-width:32px}.facturas-rectificativas .clientes-tabla th:nth-child(2),.facturas-rectificativas .clientes-tabla td:nth-child(2){width:28px;min-width:28px}.facturas-rectificativas .clientes-tabla th:nth-child(3),.facturas-rectificativas .clientes-tabla td:nth-child(3){min-width:72px}.facturas-rectificativas .clientes-tabla th:nth-child(4),.facturas-rectificativas .clientes-tabla td:nth-child(4){min-width:72px}.facturas-rectificativas .clientes-tabla th:nth-child(5),.facturas-rectificativas .clientes-tabla td:nth-child(5){min-width:58px}.facturas-rectificativas .clientes-tabla th:nth-child(6),.facturas-rectificativas .clientes-tabla td:nth-child(6){min-width:72px;text-align:center}.facturas-rectificativas .clientes-tabla th:nth-child(7),.facturas-rectificativas .clientes-tabla td:nth-child(7){min-width:110px;max-width:150px;white-space:normal!important;word-break:break-word;text-align:left}.facturas-rectificativas .clientes-tabla th:nth-child(8),.facturas-rectificativas .clientes-tabla td:nth-child(8){min-width:45px}.facturas-rectificativas .clientes-tabla th:nth-child(9),.facturas-rectificativas .clientes-tabla td:nth-child(9){min-width:72px}.facturas-rectificativas .clientes-tabla th:nth-child(10),.facturas-rectificativas .clientes-tabla td:nth-child(10){min-width:85px}.facturas-rectificativas .clientes-tabla th:nth-child(11),.facturas-rectificativas .clientes-tabla td:nth-child(11){min-width:75px}.facturas-rectificativas .clientes-tabla th:nth-child(12),.facturas-rectificativas .clientes-tabla td:nth-child(12){min-width:68px}.facturas-rectificativas .clientes-tabla th:nth-child(13),.facturas-rectificativas .clientes-tabla td:nth-child(13){min-width:88px}.facturas-rectificativas .clientes-tabla th:nth-child(14),.facturas-rectificativas .clientes-tabla td:nth-child(14){min-width:78px}.facturas-rectificativas .clientes-tabla th:nth-child(15),.facturas-rectificativas .clientes-tabla td:nth-child(15){min-width:78px}.facturas-rectificativas .clientes-tabla th:nth-child(16),.facturas-rectificativas .clientes-tabla td:nth-child(16){min-width:78px}.facturas-rectificativas .clientes-tabla th:nth-child(17),.facturas-rectificativas .clientes-tabla td:nth-child(17){min-width:80px;max-width:110px;white-space:normal!important;word-break:break-word;text-align:left}.facturas-rectificativas .clientes-tabla th:nth-child(18),.facturas-rectificativas .clientes-tabla td:nth-child(18){min-width:110px;width:110px}.facturas-rectificativas .clientes-tabla td.acciones{white-space:normal!important;text-align:center;width:110px;min-width:110px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding-top:6px}.facturas-rectificativas .clientes-tabla td.acciones .btn-group{display:flex;flex-direction:row;gap:2px;margin-bottom:2px}.facturas-rectificativas .clientes-tabla .btn-icon{display:inline-flex;align-items:center;justify-content:center;width:auto;height:auto;padding:5px;margin:0;border-radius:5px;font-size:1rem!important;line-height:1;cursor:pointer;border:none;background:linear-gradient(180deg,#e5e7eb,#d1d5db)!important;box-shadow:0 1px 2px #0000001f,inset 0 1px #ffffff80;transition:all .15s;overflow:visible}.facturas-rectificativas .clientes-tabla .btn-icon:hover{transform:scale(1.1);box-shadow:0 2px 4px #0000001f,inset 0 1px #ffffff80}.facturas-rectificativas .clientes-tabla .btn-icon:active{transform:scale(.95);box-shadow:inset 0 1px 3px #0003}.facturas-rectificativas .clientes-tabla .btn-icon.btn-facturar{background:linear-gradient(180deg,#a855f7,#9333ea)!important;color:#fff}.facturas-rectificativas .clientes-tabla .btn-icon.danger{background:linear-gradient(180deg,#ffe4e6,#fecdd3)!important;color:#be123c}.facturas-rectificativas .clientes-tabla input[type=checkbox]{width:15px;height:15px;margin:0;cursor:pointer}.facturas-rectificativas .clientes-tabla tbody tr.pagado td{background-color:#dcfce7!important}.facturas-rectificativas .clientes-tabla tfoot td{font-size:.74rem;padding:4px 6px;font-weight:600;background:#fafafa;overflow:visible;white-space:nowrap;text-align:center}.facturas-rectificativas .clientes-tabla tfoot .total-pill{display:inline-block;padding:5px 12px;border-radius:999px;font-weight:700}.facturas-rectificativas .clientes-tabla tfoot .total-pill.kg-pill{background:#374151;color:#fff}.facturas-rectificativas .clientes-tabla tfoot .total-pill.money-pill{background:#bbf7d0;color:#065f46}.facturas-rectificativas .clientes-tabla td.obs-cell{overflow:hidden;text-overflow:ellipsis}.facturas-rectificativas .clientes-tabla th:nth-child(1),.facturas-rectificativas .clientes-tabla td:nth-child(1){display:none}.facturas-rectificativas .clientes-tabla th:nth-child(2),.facturas-rectificativas .clientes-tabla td:nth-child(2){width:100px;min-width:80px;text-align:left}.facturas-rectificativas .clientes-tabla th:nth-child(3),.facturas-rectificativas .clientes-tabla td:nth-child(3){width:90px;min-width:70px}.facturas-rectificativas .clientes-tabla th:nth-child(4),.facturas-rectificativas .clientes-tabla td:nth-child(4){width:220px;min-width:140px;text-align:left}.facturas-rectificativas .clientes-tabla th:nth-child(5),.facturas-rectificativas .clientes-tabla td:nth-child(5){width:180px;min-width:120px;text-align:left}.facturas-rectificativas .clientes-tabla th:nth-child(6),.facturas-rectificativas .clientes-tabla td:nth-child(6){width:70px;min-width:50px}.facturas-rectificativas .clientes-tabla th:nth-child(7),.facturas-rectificativas .clientes-tabla td:nth-child(7){width:90px;min-width:70px}.facturas-rectificativas .clientes-tabla th:nth-child(8),.facturas-rectificativas .clientes-tabla td:nth-child(8){width:90px;min-width:70px;text-align:left}.facturas-rectificativas .clientes-tabla th:nth-child(9),.facturas-rectificativas .clientes-tabla td:nth-child(9){width:110px;min-width:80px}.facturas-rectificativas .clientes-tabla th:nth-child(10),.facturas-rectificativas .clientes-tabla td:nth-child(10){width:140px;min-width:100px;text-align:left}.facturas-rectificativas .clientes-tabla th:nth-child(11),.facturas-rectificativas .clientes-tabla td:nth-child(11){width:60px;min-width:50px}.facturas-rectificativas .clientes-tabla thead th:nth-child(11){white-space:nowrap}.facturas-rectificativas .clientes-tabla th:nth-child(12),.facturas-rectificativas .clientes-tabla td:nth-child(12){width:220px;min-width:140px;text-align:left}.facturas-rectificativas .clientes-tabla th:nth-child(13),.facturas-rectificativas .clientes-tabla td:nth-child(13){width:100px;min-width:80px}.facturas-rectificativas .clientes-tabla th:nth-child(14),.facturas-rectificativas .clientes-tabla td:nth-child(14){width:90px;min-width:80px}.facturas-rectificativas .clientes-tabla a{color:#2563eb;text-decoration:none}.facturas-rectificativas .clientes-tabla a:hover{text-decoration:underline}.facturas-rectificativas .muted{color:#94a3b8;font-style:italic}.facturas-rectificativas .center{text-align:center}
