:root{color:#1f2937;font-synthesis:none;text-rendering:auto;-webkit-font-smoothing:auto;-moz-osx-font-smoothing:auto;--color-primario:#1f4e78;--color-primario-hover:#173b5c;--color-secundario:#e8eef4;--color-exito:#15803d;--color-advertencia:#b45309;--color-peligro:#b91c1c;--texto-principal:#1f2937;--texto-secundario:#64748b;--fondo:#f4f6f8;--panel:#fff;--borde:#dbe2e8;--borde-fuerte:#c5ced8;--sombra:0 1px 2px #0f172a0d, 0 6px 18px #0f172a0f;--radio:10px;background:#f4f6f8;font-family:Segoe UI Variable Text,Segoe UI,Tahoma,Arial,sans-serif;font-size:16px}*{box-sizing:border-box}html{background:var(--fondo);min-width:320px;min-height:100%}body{min-width:320px;min-height:100vh;color:var(--texto-principal);background:linear-gradient(#eef3f7 0,#f7f8fa 220px,#f4f6f8 100%);margin:0}#root{width:100%;min-height:100vh}h1,h2,h3,h4{color:#172033;line-height:1.2}h1{letter-spacing:-.025em;font-size:2rem;font-weight:700}h2{font-size:1.3rem;font-weight:700}h3{font-size:1.05rem}p{line-height:1.55}small{color:var(--texto-secundario)}hr{background:var(--borde);border:0;height:1px}label{color:#334155;margin-bottom:4px;font-size:.9rem;font-weight:600;display:inline-block}input,select,textarea{font:inherit;color:var(--texto-principal);border:1px solid var(--borde-fuerte);background:#fff;border-radius:8px;outline:none;transition:border-color .15s,box-shadow .15s,background .15s}input:hover,select:hover,textarea:hover{border-color:#94a3b8}input:focus,select:focus,textarea:focus{border-color:var(--color-primario);box-shadow:0 0 0 3px #1f4e7821}input:disabled,select:disabled,textarea:disabled{color:#94a3b8;cursor:not-allowed;background:#eef2f6}textarea{resize:vertical}button{font:inherit;color:#fff;background:var(--color-primario);border:1px solid var(--color-primario);cursor:pointer;border-radius:8px;padding:9px 14px;font-weight:600;transition:background .15s,border-color .15s,transform .1s,box-shadow .15s}button:hover:not(:disabled){background:var(--color-primario-hover);border-color:var(--color-primario-hover);box-shadow:0 3px 10px #1f4e7826}button:active:not(:disabled){transform:translateY(1px)}button:focus-visible{outline-offset:2px;outline:3px solid #1f4e7833}button:disabled{opacity:.5;cursor:not-allowed}button:first-letter{text-transform:none}table{background:var(--panel);border-spacing:0;border-radius:var(--radio);width:100%;box-shadow:var(--sombra);overflow:hidden}thead{background:#edf2f7}th{color:#334155;letter-spacing:.015em;font-size:.82rem;font-weight:700}th,td{vertical-align:middle}tbody tr{transition:background .12s}tbody tr:hover{background:#f8fafc}tbody tr:last-child td{border-bottom:0}section{min-width:0}strong{font-weight:700}::selection{color:#fff;background:var(--color-primario)}::-webkit-scrollbar{width:10px;height:10px}::-webkit-scrollbar-track{background:#eef2f6}::-webkit-scrollbar-thumb{background:#c0cad5;border:2px solid #eef2f6;border-radius:20px}::-webkit-scrollbar-thumb:hover{background:#94a3b8}.estado-activo,.estado-pagado,.estado-confirmado{color:var(--color-exito);font-weight:700}.estado-inactivo,.estado-anulado{color:var(--color-peligro);font-weight:700}.estado-pendiente,.estado-stock-bajo{color:var(--color-advertencia);font-weight:700}body,input,select,textarea,button,table{font-family:Segoe UI Variable Text,Segoe UI,Tahoma,Arial,sans-serif}body{font-weight:400}table{font-variant-numeric:tabular-nums}.pos-badge{white-space:nowrap;border:1px solid #0000;border-radius:999px;align-items:center;gap:6px;min-height:24px;padding:4px 9px;font-size:11px;font-weight:700;line-height:1;display:inline-flex}.pos-badge-dot{background:currentColor;border-radius:50%;flex:0 0 6px;width:6px;height:6px}.pos-badge-success{color:#166534;background:#dcfce7;border-color:#bbf7d0}.pos-badge-warning{color:#92400e;background:#fef3c7;border-color:#fde68a}.pos-badge-danger{color:#991b1b;background:#fee2e2;border-color:#fecaca}.pos-badge-info{color:#1e40af;background:#dbeafe;border-color:#bfdbfe}.pos-badge-violet{color:#6d28d9;background:#ede9fe;border-color:#ddd6fe}.pos-badge-cyan{color:#0e7490;background:#cffafe;border-color:#a5f3fc}.pos-badge-neutral{color:#475569;background:#f1f5f9;border-color:#e2e8f0}.pos-btn-icon{justify-content:center;align-items:center;gap:6px;display:inline-flex}.pos-btn-compact{min-height:34px;padding:7px 10px;font-size:12px}.pos-btn-secondary{color:#334155;box-shadow:none;background:#fff;border-color:#cbd5e1}.pos-btn-secondary:hover:not(:disabled){color:#172033;background:#f8fafc;border-color:#94a3b8;box-shadow:0 2px 7px #0f172a14}.pos-btn-info{color:#fff;background:#2563eb;border-color:#1d4ed8}.pos-btn-info:hover:not(:disabled){background:#1d4ed8;border-color:#1e40af}.pos-btn-violet{color:#fff;background:#7c3aed;border-color:#6d28d9}.pos-btn-violet:hover:not(:disabled){background:#6d28d9;border-color:#5b21b6}.pos-btn-cyan{color:#fff;background:#0891b2;border-color:#0e7490}.pos-btn-cyan:hover:not(:disabled){background:#0e7490;border-color:#155e75}.pos-btn-success{color:#fff;background:#15803d;border-color:#166534}.pos-btn-success:hover:not(:disabled){background:#166534;border-color:#14532d}.pos-btn-danger-soft{color:#b91c1c;box-shadow:none;background:#fff;border-color:#fecaca}.pos-btn-danger-soft:hover:not(:disabled){color:#991b1b;background:#fef2f2;border-color:#fca5a5;box-shadow:0 2px 7px #b91c1c14}.pos-fase5-caja{--f5:#047857;--f5-dark:#065f46;--f5-soft:#ecfdf5;--f5-border:#a7f3d0;--f5-ring:#04785724}.pos-fase5-ventas{--f5:#15803d;--f5-dark:#166534;--f5-soft:#f0fdf4;--f5-border:#bbf7d0;--f5-ring:#15803d24}.pos-fase5-deudas{--f5:#b45309;--f5-dark:#92400e;--f5-soft:#fffbeb;--f5-border:#fde68a;--f5-ring:#b4530924}.pos-fase5-reportes{--f5:#4f46e5;--f5-dark:#4338ca;--f5-soft:#eef2ff;--f5-border:#c7d2fe;--f5-ring:#4f46e524}.pos-fase5-caja,.pos-fase5-ventas,.pos-fase5-deudas,.pos-fase5-reportes{font-variant-numeric:tabular-nums;accent-color:var(--f5)}.pos-fase5-caja>div:first-child,.pos-fase5-deudas>div:first-child,.pos-fase5-reportes>div:first-child,.pos-fase5-ventas>header{border-bottom:3px solid var(--f5-border);margin-bottom:14px!important;padding-bottom:10px!important}.pos-fase5-caja>div:first-child h1,.pos-fase5-deudas>div:first-child h1,.pos-fase5-reportes>div:first-child h1,.pos-fase5-ventas>header h1{align-items:center;gap:9px;display:inline-flex;color:var(--f5-dark)!important}.pos-fase5-caja>div:first-child h1:before{content:"▣"}.pos-fase5-ventas>header h1:before{content:"▤"}.pos-fase5-deudas>div:first-child h1:before{content:"↺"}.pos-fase5-reportes>div:first-child h1:before{content:"▥"}.pos-fase5-caja>div:first-child h1:before,.pos-fase5-ventas>header h1:before,.pos-fase5-deudas>div:first-child h1:before,.pos-fase5-reportes>div:first-child h1:before{border:1px solid var(--f5-border);width:30px;height:30px;color:var(--f5);background:var(--f5-soft);border-radius:8px;flex:0 0 30px;place-items:center;font-family:Segoe UI Symbol,Segoe UI,sans-serif;font-size:15px;font-weight:700;line-height:1;display:inline-grid}.pos-fase5-caja section,.pos-fase5-ventas section,.pos-fase5-deudas section,.pos-fase5-reportes section{box-shadow:0 1px 2px #0f172a06,0 4px 14px #0f172a09}.pos-fase5-caja table,.pos-fase5-ventas table,.pos-fase5-deudas table,.pos-fase5-reportes table{border-top:3px solid var(--f5-border)}.pos-fase5-caja thead,.pos-fase5-ventas thead,.pos-fase5-deudas thead,.pos-fase5-reportes thead{background:var(--f5-soft)!important}.pos-fase5-caja th,.pos-fase5-ventas th,.pos-fase5-deudas th,.pos-fase5-reportes th{color:var(--f5-dark)!important}.pos-fase5-caja .pos-registros-scroll,.pos-fase5-ventas .pos-registros-scroll,.pos-fase5-deudas .pos-registros-scroll,.pos-fase5-reportes .pos-registros-scroll{border-color:var(--f5-border)}.pos-fase5-caja input:focus,.pos-fase5-caja select:focus,.pos-fase5-caja textarea:focus,.pos-fase5-ventas input:focus,.pos-fase5-ventas select:focus,.pos-fase5-ventas textarea:focus,.pos-fase5-deudas input:focus,.pos-fase5-deudas select:focus,.pos-fase5-deudas textarea:focus,.pos-fase5-reportes input:focus,.pos-fase5-reportes select:focus,.pos-fase5-reportes textarea:focus{border-color:var(--f5)!important;box-shadow:0 0 0 3px var(--f5-ring)!important}.pos-fase5-caja .pos-badge,.pos-fase5-ventas .pos-badge,.pos-fase5-deudas .pos-badge,.pos-fase5-reportes .pos-badge{box-shadow:0 1px 2px #0f172a0a}.pos-fase5-reportes hr{background:var(--f5-border)}@media (width<=700px){.pos-fase5-caja>div:first-child,.pos-fase5-deudas>div:first-child,.pos-fase5-reportes>div:first-child,.pos-fase5-ventas>header{padding-bottom:12px!important}}.pos-registros-scroll{overscroll-behavior:contain;scrollbar-gutter:stable;background:var(--panel);border:1px solid var(--borde);border-radius:var(--radio);width:100%;max-height:clamp(320px,58vh,680px);box-shadow:var(--sombra);font-family:Segoe UI,Tahoma,Arial,sans-serif;position:relative;overflow:auto}.pos-registros-scroll>table{box-shadow:none;border-radius:0;margin:0;overflow:visible}.pos-registros-scroll thead th{z-index:5;box-shadow:0 1px 0 var(--borde-fuerte);background:#edf2f7;position:sticky;top:0}.pos-registros-scroll tbody tr:last-child td{border-bottom:0}.pos-registros-scroll-cards{align-content:start;gap:10px;padding:10px;display:grid}.pos-registros-scroll-cards>*{min-width:0}.pos-registros-cargando{z-index:4;color:var(--texto-secundario);border-top:1px solid var(--borde);text-align:center;background:#fffffff5;padding:8px 12px;font-size:.82rem;font-weight:700;position:sticky;bottom:0}@media (height<=700px){.pos-registros-scroll{max-height:52vh}}@media (width<=700px){.pos-registros-scroll{max-height:56vh}}@media print{body{background:#fff}button{display:none!important}input,select,textarea{box-shadow:none;border:0}table{box-shadow:none}}@media (width<=900px){body{font-size:15px}h1{font-size:1.65rem}h2{font-size:1.2rem}table{font-size:.9rem}}@media (width<=700px){#root>div{padding:18px!important}header{flex-direction:column!important;align-items:flex-start!important}section>div{max-width:100%}input,select,textarea,button{min-height:42px}table{min-width:700px;display:table}div:has(>table){overflow-x:auto}}@media (width<=480px){#root>div{padding:14px!important}h1{font-size:1.45rem}button{width:100%;margin-right:0!important}}@media (width<=700px){#root>.pos-app-shell{padding:0!important}.pos-app-topbar{flex-direction:row!important;align-items:center!important;gap:8px!important;min-height:56px!important;padding:7px 10px!important}.pos-app-topbar-main{width:100%;min-width:0;gap:8px!important}.pos-app-topbar-main>button{min-width:max-content;min-height:40px;width:auto!important;padding:8px 11px!important}.pos-app-route{flex:1;min-width:0;overflow:hidden;flex-wrap:nowrap!important}.pos-app-route>*{min-width:0}.pos-app-route strong{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.pos-app-route>span:first-child,.pos-app-route>span:nth-child(2){display:none}.pos-app-session-status{display:none!important}.pos-app-content{width:100%;min-width:0;overflow-x:hidden}.pos-dashboard{width:100%;padding:12px!important}.pos-dashboard-welcome{flex-direction:column!important;align-items:stretch!important;gap:10px!important;margin-bottom:16px!important}.pos-dashboard-welcome>button{width:100%!important}.pos-dashboard-cards{grid-template-columns:minmax(0,1fr)!important;gap:10px!important;margin-bottom:16px!important}.pos-dashboard-cards>button{width:100%!important;min-height:104px!important;padding:14px!important}.pos-dashboard-grid{grid-template-columns:minmax(0,1fr)!important;gap:12px!important}.pos-dashboard-grid button{width:100%!important}}@media (width<=480px){#root>.pos-app-shell{padding:0!important}.pos-app-topbar button{width:auto!important}}.pos-public-btn{cursor:pointer;border:1px solid #cbd5e1;border-radius:9px;justify-content:center;align-items:center;gap:6px;min-height:36px;padding:8px 13px;font-family:Segoe UI Variable Text,Segoe UI,Tahoma,Arial,sans-serif;font-size:12px;font-weight:700;line-height:1.1;transition:background-color .12s,border-color .12s,color .12s,box-shadow .12s,transform 50ms;display:inline-flex}.pos-public-btn:active:not(:disabled){transform:translateY(1px)}.pos-public-btn:disabled{cursor:not-allowed;opacity:.55}.pos-public-btn:focus-visible{box-shadow:0 0 0 3px color-mix(in srgb, var(--cat-primary,#0f766e) 22%, transparent);outline:none}.pos-public-primary{color:#fff;background:var(--cat-primary,#0f766e);border-color:var(--cat-primary,#0f766e);box-shadow:0 2px 7px color-mix(in srgb, var(--cat-primary,#0f766e) 18%, transparent)}.pos-public-primary:hover:not(:disabled){filter:brightness(.94)}.pos-public-secondary{color:var(--cat-primary,#0f766e);background:#fff;border-color:#cbd5e1}.pos-public-secondary:hover:not(:disabled){border-color:var(--cat-primary,#0f766e);background:#f8fafc}.pos-public-info{color:#1d4ed8;background:#eff6ff;border-color:#bfdbfe}.pos-public-info:hover:not(:disabled){color:#1e40af;background:#dbeafe;border-color:#93c5fd}.pos-public-success{color:#166534;background:#f0fdf4;border-color:#bbf7d0}.pos-public-success:hover:not(:disabled){color:#14532d;background:#dcfce7;border-color:#86efac}.pos-public-danger{color:#b91c1c;background:#fff;border-color:#fecaca}.pos-public-danger:hover:not(:disabled){color:#991b1b;background:#fef2f2;border-color:#fca5a5}.pos-public-chip{color:#475569;background:#f8fafc;border-color:#cbd5e1}.pos-public-chip:hover:not(:disabled){color:var(--cat-primary,#0f766e);border-color:var(--cat-primary,#0f766e);background:#fff}.pos-public-qty{color:#334155;background:#fff;border-color:#cbd5e1;width:34px;min-width:34px;height:34px;min-height:34px;padding:0;font-size:17px;font-weight:700}.pos-public-qty:hover:not(:disabled){color:var(--cat-primary,#0f766e);border-color:var(--cat-primary,#0f766e);background:#f8fafc}.pos-public-icon{color:#475569;background:#fff;border-color:#cbd5e1;width:36px;min-width:36px;height:36px;min-height:36px;padding:0;font-size:18px}.pos-public-icon:hover:not(:disabled){color:#b91c1c;background:#fef2f2;border-color:#fecaca}@media (width<=700px){.pos-public-btn:not(.pos-public-qty):not(.pos-public-icon){min-height:38px}}
