.pos-terminal-login-page{background:var(--canvas);min-height:100dvh;color:var(--text);place-items:center;padding:24px;display:grid}.pos-terminal-login-panel{border:1px solid var(--border);background:var(--surface);border-radius:8px;gap:20px;width:min(440px,100%);padding:26px;display:grid;box-shadow:0 20px 55px #0f172a24}.pos-terminal-login-panel>header{align-items:center;gap:13px;display:flex}.pos-terminal-mark{background:var(--accent);color:#fff;border-radius:7px;place-items:center;width:46px;height:46px;font-size:22px;font-weight:900;display:grid}.pos-terminal-login-panel header small{color:var(--accent);letter-spacing:.08em;font-size:10px;font-weight:900}.pos-terminal-login-panel h1{letter-spacing:0;margin:2px 0 0;font-size:27px}.pos-terminal-location{border:1px solid var(--border);background:var(--subtle);border-radius:6px;gap:3px;padding:14px;display:grid}.pos-terminal-location strong{font-size:16px}.pos-terminal-location span{color:var(--text-soft);font-size:13px}.pos-terminal-location small{color:var(--muted);font-size:11px}.pos-terminal-login-panel form{gap:13px;display:grid}.pos-terminal-login-panel form label{gap:5px;display:grid}.pos-terminal-login-panel form label span{color:var(--muted);text-transform:uppercase;font-size:10px;font-weight:800}.pos-terminal-login-panel form input{border:1px solid var(--border-strong);background:var(--surface);width:100%;height:42px;color:var(--text);font:inherit;border-radius:6px}.pos-terminal-login-panel form>.button{min-height:43px}.pos-terminal-login-panel>footer{border-top:1px solid var(--border);justify-content:space-between;gap:10px;padding-top:4px;display:flex}.pos-terminal-login-panel>footer button{color:var(--muted);background:0 0;border:0;font-weight:800}.pos-terminal-login-panel>footer button.danger{color:#b42318}:root{--canvas:#f8fafc;--surface:#fff;--surface-elevated:#fff;--subtle:#f1f5f9;--text:#0f172a;--text-strong:#172033;--text-soft:#334155;--muted:#64748b;--border:#e2e8f0;--border-strong:#cbd5e1;--accent:#f97316;--shadow:0 8px 24px #0f172a0d;color:var(--text);background:var(--canvas);font-synthesis:none;text-rendering:optimizelegibility;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}:root[data-theme=dark]{--canvas:#111417;--surface:#1a1e22;--surface-elevated:#20252a;--subtle:#242a30;--text:#f3f4f6;--text-strong:#f8fafc;--text-soft:#d1d5db;--muted:#9ca3af;--border:#343b43;--border-strong:#4b5563;--shadow:0 10px 28px #00000047}.payroll-accounting{background:var(--canvas);min-height:24px;color:var(--muted);white-space:nowrap;border:1px solid #d9e2ec;border-radius:6px;align-items:center;padding:2px 8px;font-size:12px;font-weight:700;display:inline-flex}.payroll-accounting.posted{color:#176b3a;background:#ecf8f1;border-color:#b7dfc7}button.payroll-accounting.posted{cursor:pointer;font-family:inherit}button.payroll-accounting.posted:hover{background:#dff4e8;border-color:#77b991}.employee-payroll-concepts-page{gap:12px}.payroll-concept-summary{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;display:grid}.payroll-concept-summary article{background:var(--surface);border:1px solid #e2e8f0;border-radius:8px;gap:3px;min-height:82px;padding:13px 15px;display:grid}.payroll-concept-summary small{color:var(--muted);font-size:12px}.payroll-concept-summary strong{color:var(--text);font-size:21px}.payroll-concept-summary span{color:var(--muted);font-size:11px}.payroll-concept-filter-bar{grid-template-columns:minmax(230px,1.5fr) minmax(180px,1.1fr) 120px 135px 138px 138px auto auto;align-items:end;gap:8px;padding:11px;display:grid}.payroll-concept-filter-bar .field{gap:4px;min-width:0}.payroll-concept-filter-bar .field span{font-size:11px}.payroll-concept-filter-bar input,.payroll-concept-filter-bar select,.payroll-concept-filter-bar .button{min-width:0;height:36px}.payroll-concept-directory{overflow:visible}.payroll-concept-directory table{min-width:1120px}.payroll-concept-directory td small{color:var(--muted);margin-top:3px;display:block}.payroll-concept-type,.payroll-concept-status{white-space:nowrap;border-radius:6px;align-items:center;min-height:24px;padding:3px 8px;font-size:11px;font-weight:700;display:inline-flex}.payroll-concept-type.bono{color:#14743a;background:#e8f7ee}.payroll-concept-type.deduccion{color:#a53b11;background:#fff0e8}.payroll-concept-status.pendiente{color:#8a5b00;background:#fff6d9}.payroll-concept-status.aprobado{color:#145b92;background:#e6f3ff}.payroll-concept-status.aplicado{color:#14743a;background:#e8f7ee}.payroll-concept-status.anulado{color:#666;background:#f1f1f1}.employee-payroll-concept-dialog{background:var(--surface);width:min(860px,100vw - 28px);max-width:860px;max-height:calc(100vh - 32px);color:var(--text);border:0;border-radius:8px;margin:auto;padding:0;box-shadow:0 20px 70px #0f172a47}.employee-payroll-concept-dialog::backdrop{background:#0f172a7a}.employee-payroll-concept-dialog form{grid-template-rows:auto minmax(0,1fr) auto;max-height:calc(100vh - 32px);display:grid}.employee-payroll-concept-dialog header,.employee-payroll-concept-dialog footer{background:var(--surface);border-bottom:1px solid #e2e8f0;justify-content:space-between;align-items:center;gap:12px;padding:14px 18px;display:flex}.employee-payroll-concept-dialog footer{border-top:1px solid var(--border);border-bottom:0;justify-content:flex-end}.employee-payroll-concept-dialog header h2{margin:0;font-size:19px}.employee-payroll-concept-dialog header p{color:var(--muted);margin:3px 0 0;font-size:12px}.employee-payroll-concept-dialog header>button{background:var(--surface);border:1px solid #e2e8f0;border-radius:6px;width:34px;height:34px;font-size:18px}.payroll-concept-dialog-body{padding:16px 18px;overflow:auto}.payroll-concept-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px 13px;display:grid}.payroll-concept-form-grid .concept-wide{grid-column:1/-1}.payroll-concept-preview{background:#f8fbfa;border:1px solid #e2e8f0;border-left:4px solid #18864b;border-radius:7px;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:14px;padding:11px;display:grid}.payroll-concept-preview.deduccion{background:#fffaf7;border-left-color:#d85c22}.payroll-concept-preview div{gap:2px;display:grid}.payroll-concept-preview small{color:var(--muted);font-size:11px}.payroll-concept-preview strong{font-size:15px}.payroll-concept-cancel-dialog{width:min(560px,100vw - 28px)}@media (width<=1180px){.payroll-concept-filter-bar{grid-template-columns:repeat(4,minmax(0,1fr))}.concept-search{grid-column:span 2}.payroll-concept-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=700px){.payroll-concept-filter-bar{grid-template-columns:1fr 1fr}.concept-search{grid-column:1/-1}.payroll-concept-summary{grid-template-columns:1fr 1fr}.payroll-concept-form-grid{grid-template-columns:1fr}.payroll-concept-form-grid .concept-wide{grid-column:auto}.payroll-concept-preview{grid-template-columns:1fr}.employee-payroll-concept-dialog{width:calc(100vw - 16px);max-height:calc(100vh - 16px)}.employee-payroll-concept-dialog form{max-height:calc(100vh - 16px)}}@media (width<=440px){.payroll-concept-filter-bar,.payroll-concept-summary{grid-template-columns:1fr}.concept-search{grid-column:auto}}*{box-sizing:border-box}body{background:var(--canvas);min-width:320px;min-height:100vh;color:var(--text);margin:0;overflow-x:hidden}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}.app-shell{grid-template-columns:220px minmax(0,1fr);width:100%;max-width:100vw;height:100dvh;min-height:100vh;display:grid;overflow:hidden}.sidebar{color:#fff;background:#171b1f;flex-direction:column;height:100vh;padding:18px 12px;display:flex;position:sticky;top:0;overflow:hidden}.brand-mark{border-bottom:1px solid #32383e;align-items:center;gap:10px;padding:0 6px 18px;display:flex}.brand-symbol{background:#f97316;border-radius:7px;place-items:center;width:38px;height:38px;font-size:19px;font-weight:800;display:grid}.nixx-brand-logo.brand-symbol{object-fit:cover;background:#151515;border:1px solid #ffffff1f;flex:0 0 38px;display:block}.brand-mark strong,.brand-mark small{display:block}.brand-mark small{color:#aeb7c0;margin-top:2px;font-size:11px}.sidebar-nav{scrollbar-color:#4b5563 transparent;scrollbar-width:thin;gap:5px;min-height:0;margin-top:18px;padding-right:3px;display:grid;overflow-y:auto}.nav-item{color:#cbd5e1;text-align:left;background:0 0;border:0;border-radius:6px;min-height:38px;padding:0 12px}.nav-item.active{color:#fff;background:#f97316;font-weight:700}.nav-item:disabled{opacity:.5}.nav-group{gap:4px;display:grid}.nav-group-heading{border-radius:6px;grid-template-columns:minmax(0,1fr) 34px;display:grid;overflow:hidden}.nav-group-heading button{color:#cbd5e1;background:0 0;border:0;min-height:38px}.nav-group-overview{text-align:left;text-overflow:ellipsis;white-space:nowrap;padding:0 4px 0 12px;overflow:hidden}.nav-group-toggle{place-items:center;padding:0;display:grid}.nav-group-toggle span{color:#f97316;font-size:20px;font-weight:800;line-height:1}.nav-group.active>.nav-group-heading .nav-group-toggle{background:#fff3eb}.nav-group.active>.nav-group-heading .nav-group-toggle span{color:#f97316}.nav-group-heading:hover{background:#252b31}.nav-group.active>.nav-group-heading{background:#f97316}.nav-group.active>.nav-group-heading button{color:#fff;font-weight:700}.nav-submenu{border-left:1px solid #3f4851;gap:2px;margin-left:10px;padding:2px 0 4px 8px;display:grid}.nav-subitem{color:#aeb7c0;text-align:left;text-overflow:ellipsis;white-space:nowrap;background:0 0;border:0;border-radius:5px;min-height:32px;padding:0 9px;font-size:12px;overflow:hidden}.nav-subitem:hover{color:#fff;background:#252b31}.nav-subitem.active{color:#c2410c;background:#fff7ed;font-weight:800}.sidebar-footer{border-top:1px solid #32383e;gap:3px;margin-top:auto;padding:14px 6px 0;display:grid}.sidebar-footer small{color:#aeb7c0}.logout-button{color:#e5e7eb;text-align:left;background:0 0;border:1px solid #4b5563;border-radius:6px;min-height:34px;margin-top:8px;padding:0 10px}.logout-button:hover{color:#fdba74;border-color:#fb923c}.app-content{min-width:0;height:100dvh;overflow:hidden auto}.topbar{background:var(--surface);border-bottom:1px solid #e2e8f0;justify-content:space-between;align-items:center;gap:16px;min-height:60px;padding:0 22px;display:flex}.topbar-identity{align-items:baseline;gap:10px;display:flex}.topbar span{color:var(--muted);font-size:13px}.topbar-controls{align-items:end;gap:10px;display:flex}.context-selector{align-items:end;gap:6px;display:flex}.context-selector label{color:var(--muted);text-transform:uppercase;gap:2px;font-size:9px;font-weight:700;display:grid}.context-selector select{background:var(--surface);width:150px;min-height:31px;color:var(--text-strong);text-transform:none;border:1px solid #cbd5e1;border-radius:6px;padding:0 8px;font-size:12px}.context-selector label:nth-child(2) select,.context-selector label:nth-child(3) select{width:130px}.context-state{align-self:center;font-weight:700;color:#c2410c!important;font-size:11px!important}.context-error{z-index:70;background:#fee2e2;border-radius:7px;max-width:320px;padding:9px 11px;position:fixed;top:68px;right:18px;color:#991b1b!important}.readonly-indicator{background:#fff7ed;border:1px solid #fed7aa;border-radius:999px;padding:4px 9px;font-weight:700;color:#9a3412!important}.page-content{width:min(1500px,100%);margin:0 auto;padding:20px}.page-header{justify-content:space-between;align-items:center;gap:16px;margin-bottom:15px;display:flex}.page-header h1{margin:0;font-size:27px}.page-header p{color:var(--muted);margin:4px 0 0}.page-actions{gap:8px;display:flex}.surface{background:var(--surface);border:1px solid #e2e8f0;border-radius:8px;padding:14px;box-shadow:0 8px 24px #0f172a0d}.button{border:1px solid #0000;border-radius:7px;min-height:36px;padding:0 13px;font-weight:700}.button.primary{color:#fff;background:#f97316}.button.primary:hover{background:#ea580c}.button.secondary{border-color:var(--border-strong);background:var(--surface);color:var(--text-strong)}.button.danger:hover{background:#b91c1c}.button.danger.subtle{background:var(--surface);color:#b91c1c}.filter-bar{grid-template-columns:minmax(250px,1fr) 150px 170px 120px auto auto;align-items:end;gap:8px;display:grid}.field{color:var(--text-soft);gap:4px;font-size:12px;font-weight:700;display:grid}.field input,.field select{background:var(--surface);width:100%;min-height:36px;color:var(--text);border:1px solid #cbd5e1;border-radius:7px;padding:0 10px}.checkbox-field{min-height:36px;color:var(--text-soft);white-space:nowrap;align-items:center;gap:7px;font-size:12px;font-weight:700;display:flex}.checkbox-field input{width:16px;height:16px;margin:0}.more-filters{border-top:1px solid #e2e8f0;margin:10px 0;padding-top:8px}.more-filters summary{color:#c2410c;cursor:pointer;font-size:13px;font-weight:700}.warehouse-filter{width:min(360px,100%);margin-top:8px}.notice,.error-message{border-radius:7px;margin:8px 0;padding:9px 11px;font-size:13px}.notice{color:#9a3412;background:#fff7ed}.error-message{color:#991b1b;background:#fee2e2}.success-message{color:#166534;background:#dcfce7;border-radius:7px;margin:8px 0;padding:9px 11px;font-size:13px;font-weight:700}.table-status{min-height:34px;color:var(--muted);justify-content:space-between;align-items:center;gap:12px;font-size:13px;display:flex}.table-scroll{border:1px solid #e2e8f0;border-radius:7px;overflow-x:auto}.table-scroll table{border-collapse:collapse;width:100%;min-width:1180px}.table-scroll.compact table{min-width:720px}th,td{text-align:left;vertical-align:middle;border-bottom:1px solid #e2e8f0;padding:8px 9px;font-size:13px}th{background:var(--subtle);color:var(--text-soft);text-transform:uppercase;font-size:11px}tbody tr:last-child td{border-bottom:0}td small{color:var(--muted);margin-top:2px;display:block}.number{text-align:right;font-variant-numeric:tabular-nums}.muted{color:var(--muted)}.status-badge{border-radius:999px;padding:3px 8px;font-size:11px;font-weight:700;display:inline-flex}.status-badge.activo{color:#166534;background:#dcfce7}.status-badge.inactivo{color:#991b1b;background:#fee2e2}.chip-list{white-space:nowrap;align-items:center;gap:4px;max-width:240px;display:flex;overflow:hidden}.product-chip{color:#9a3412;text-overflow:ellipsis;white-space:nowrap;background:#fff7ed;border:1px solid #fed7aa;border-radius:999px;max-width:84px;padding:2px 6px;font-size:10px;font-weight:700;display:inline-block;overflow:hidden}.product-chip.blue{color:#1d4ed8;background:#eff6ff;border-color:#bfdbfe}.product-chip.more{border-color:var(--border-strong);background:var(--canvas);color:var(--muted)}.product-list-identity{grid-template-columns:34px minmax(0,1fr);align-items:center;gap:8px;min-width:0;display:grid}.product-thumb{object-fit:cover;color:#c2410c;background:#fff7ed;border:1px solid #e2e8f0;border-radius:6px;width:34px;height:34px}.product-thumb.placeholder{place-items:center;font-size:13px;font-weight:900;display:grid}.action-trigger{background:var(--surface);border:1px solid #cbd5e1;border-radius:7px;place-items:center;width:34px;min-height:34px;font-size:20px;display:grid}.action-menu{z-index:50;background:var(--surface);border:1px solid #e2e8f0;border-radius:8px;min-width:190px;display:grid;position:fixed;overflow:hidden;box-shadow:0 18px 40px #0f172a2e}.action-menu button{background:var(--surface);text-align:left;border:0;min-height:36px;padding:0 12px}.action-menu button:hover:not(:disabled){color:#c2410c;background:#fff7ed}.pagination{color:var(--muted);justify-content:flex-end;align-items:center;gap:8px;margin-top:10px;font-size:13px;display:flex}.detail-dialog{border:0;border-radius:8px;width:min(960px,100% - 28px);max-height:calc(100vh - 36px);padding:0;overflow:auto;box-shadow:0 24px 80px #0f172a40}.detail-dialog::backdrop{background:#0f172a7a}.dialog-header{z-index:2;background:var(--surface);border-bottom:1px solid #e2e8f0;justify-content:space-between;align-items:center;gap:12px;padding:14px 16px;display:flex;position:sticky;top:0}.dialog-header h2,.dialog-header p{margin:0}.dialog-header p{color:var(--muted);margin-top:3px}.dialog-body{padding:16px}.loading-state{color:var(--muted);text-align:center;padding:30px}.summary-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;display:grid}.summary-item{border:1px solid #e2e8f0;border-radius:7px;min-height:66px;padding:10px}.summary-item small{color:var(--muted);margin-bottom:5px;font-weight:700;display:block}.summary-item strong{font-size:16px}.product-detail-photo{margin-bottom:10px}.product-detail-photo img{object-fit:cover;background:var(--canvas);border:1px solid #e2e8f0;border-radius:7px;width:min(180px,100%);height:132px;display:block}.product-photo-preview{align-content:end;display:grid}.product-photo-preview img{object-fit:cover;background:var(--canvas);border:1px solid #e2e8f0;border-radius:7px;width:100%;max-width:170px;height:98px}.detail-section{margin-top:16px}.detail-section h3{color:#c2410c;margin:0 0 8px;font-size:15px}.client-filters{grid-template-columns:minmax(210px,1.35fr) minmax(120px,.8fr) minmax(120px,.8fr) 120px 125px 120px auto auto auto;align-items:end}.client-balance-filter{white-space:nowrap;align-self:center;margin-top:20px}.supplier-filters{grid-template-columns:minmax(280px,1fr) 160px auto auto}.clients-table table{min-width:1120px}.client-name-link{color:var(--text);font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;padding:0;font-weight:800}.client-name-link:hover{color:#ea580c;text-decoration:underline}.client-name-link:focus-visible{outline-offset:2px;border-radius:3px;outline:2px solid #f97316}.suppliers-table table{min-width:900px}.secondary-checkbox{margin-top:8px}.type-badge{color:#3730a3;background:#eef2ff;border-radius:999px;padding:3px 8px;font-size:11px;font-weight:700;display:inline-flex}.client-dialog{border:0;border-radius:8px;width:min(1040px,100% - 28px);max-height:calc(100vh - 32px);padding:0;overflow:hidden;box-shadow:0 24px 80px #0f172a47}.client-dialog::backdrop{background:#0f172a80}.client-dialog>form{grid-template-rows:auto minmax(0,1fr) auto;max-height:calc(100vh - 32px);display:grid}.client-dialog header,.client-dialog footer{background:var(--surface);justify-content:space-between;align-items:center;gap:12px;padding:14px 16px;display:flex}.client-dialog header{border-bottom:1px solid #e2e8f0}.client-dialog footer{border-top:1px solid #e2e8f0;justify-content:flex-end}.client-dialog header h2,.client-dialog header p{margin:0}.client-dialog header p{color:var(--muted);margin-top:3px;font-size:13px}.client-dialog header>button{background:var(--surface);border:1px solid #e2e8f0;border-radius:7px;width:34px;min-height:34px}.client-dialog-body{background:var(--canvas);padding:14px 16px;overflow:auto}.client-dialog-body section{background:var(--surface);border:1px solid #e2e8f0;border-radius:8px;margin-bottom:12px;padding:13px}.client-profile-dialog{background:var(--surface);width:min(1380px,100vw - 28px);height:min(850px,100dvh - 28px);max-height:calc(100dvh - 28px);color:var(--text);border:0;border-radius:8px;margin:auto;padding:0;box-shadow:0 24px 80px #0f172a4d}.client-profile-dialog::backdrop{background:#0f172a94}.client-profile-dialog[open]{grid-template-rows:auto minmax(0,1fr) auto;display:grid}.client-profile-dialog>header,.client-profile-dialog>footer{border-bottom:1px solid var(--border);background:var(--surface);justify-content:space-between;align-items:center;gap:14px;padding:13px 17px;display:flex}.client-profile-dialog>header small{color:#ea580c;font-size:9px;font-weight:900}.client-profile-dialog h2,.client-profile-dialog p{margin:0}.client-profile-dialog h2{margin-top:2px;font-size:20px}.client-profile-dialog p{color:var(--muted);margin-top:3px;font-size:11px}.client-profile-dialog>header>button{border:1px solid var(--border);background:var(--surface);width:34px;height:34px;color:var(--text);border-radius:6px;place-items:center;font-size:21px;display:grid}.client-profile-dialog>footer{border-top:1px solid var(--border);border-bottom:0}.client-profile-dialog>footer span{color:var(--muted);font-size:11px}.client-profile-body{background:var(--canvas);min-height:0;padding:13px 17px;overflow:auto}.client-profile-summary{grid-template-columns:repeat(5,minmax(130px,1fr));gap:7px;margin-bottom:8px;display:grid}.client-profile-summary>div{border:1px solid var(--border);background:var(--surface);border-radius:6px;gap:3px;padding:9px 11px;display:grid}.client-profile-summary small{color:var(--muted);text-transform:uppercase;font-size:9px}.client-profile-summary strong{font-size:16px}.client-profile-summary>div>span{color:var(--muted);font-size:9px}.client-profile-summary .pending{color:#c2410c;background:#fff7ed;border-color:#fed7aa}.client-profile-reconciliation{border:1px solid var(--border);border-radius:6px;justify-content:space-between;align-items:center;gap:12px;margin:0 0 11px;padding:8px 11px;font-size:10px;display:flex}.client-profile-reconciliation span{color:inherit}.client-profile-reconciliation.success{color:#166534;background:#f0fdf4;border-color:#bbf7d0}.client-profile-reconciliation.warning{color:#9a3412;background:#fff7ed;border-color:#fed7aa}html[data-theme=dark] .client-profile-summary .pending,html[data-theme=dark] .client-profile-reconciliation.warning{color:#fdba74;background:#2f2514}html[data-theme=dark] .client-profile-reconciliation.success{color:#86efac;background:#132d22}.client-profile-dialog .status-badge.warning{color:#9a3412;background:#ffedd5}.client-profile-dialog .status-badge.neutral{background:var(--surface-soft);color:var(--muted)}.client-profile-commercial{border:1px solid var(--border);background:var(--surface);border-radius:6px;margin:0 0 11px}.client-profile-commercial summary{cursor:pointer;justify-content:space-between;align-items:center;gap:12px;min-height:38px;padding:0 12px;font-size:11px;font-weight:800;display:flex}.client-profile-commercial summary small{color:var(--muted);font-size:10px}.client-profile-commercial-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:0 10px 10px;display:grid}.client-profile-commercial-grid>section{border:1px solid var(--border);background:var(--canvas);border-radius:6px;padding:10px}.client-profile-commercial-grid h3{color:#c2410c;margin:0 0 7px;font-size:11px}.client-profile-commercial-grid dl{gap:5px;margin:0;display:grid}.client-profile-commercial-grid dl>div{border-bottom:1px solid color-mix(in srgb,var(--border) 70%,transparent);justify-content:space-between;gap:10px;padding-bottom:4px;display:flex}.client-profile-commercial-grid dt{color:var(--muted);font-size:9px}.client-profile-commercial-grid dd{text-align:right;overflow-wrap:anywhere;margin:0;font-size:10px;font-weight:700}.client-credit-progress{background:var(--subtle);border-radius:4px;height:6px;margin-top:8px;overflow:hidden}.client-credit-progress span{border-radius:inherit;background:#f97316;height:100%;display:block}.client-profile-commercial-grid section>small{color:var(--muted);margin-top:5px;font-size:9px;display:block}.client-profile-tabs{border-bottom:1px solid var(--border);gap:3px;display:flex;overflow-x:auto}.client-profile-tabs button{min-height:35px;color:var(--muted);white-space:nowrap;background:0 0;border:0;border-bottom:2px solid #0000;align-items:center;gap:6px;padding:0 11px;font-size:11px;font-weight:800;display:flex}.client-profile-tabs button.active{color:#c2410c;border-bottom-color:#f97316}.client-profile-tabs span{background:var(--subtle);border-radius:10px;place-items:center;min-width:19px;height:19px;font-size:9px;display:grid}.client-profile-content{padding-top:10px}.client-profile-content table{min-width:1040px}.client-profile-content th,.client-profile-content td{padding:8px 9px}.client-profile-content td small{color:var(--muted);margin-top:2px;font-size:9px;display:block}.client-profile-document-link{color:#0369a1;font-weight:800;text-decoration:none}.client-profile-document-link:hover{text-decoration:underline}.client-invoice-aging{max-width:210px;color:var(--muted);font-size:10px;line-height:1.3;display:inline-block}.client-invoice-aging.overdue{color:#dc2626;font-weight:800}.client-profile-invoice-balance{border-top:1px solid var(--border);justify-content:flex-end;align-items:center;gap:10px;padding:9px 10px;font-size:10px;display:flex}.client-profile-invoice-balance strong{font-size:13px}.client-profile-invoice-balance small{color:var(--muted)}.client-movement{background:var(--subtle);text-transform:uppercase;border-radius:4px;padding:3px 6px;font-size:9px;font-weight:900;display:inline-flex}.client-movement.factura{color:#1d4ed8;background:#eff6ff}.client-movement.pago{color:#15803d;background:#f0fdf4}.client-movement.devolucion{color:#c2410c;background:#fff7ed}.client-movement.cotizacion{color:#6d28d9;background:#f5f3ff}.client-profile-content .credit{color:#15803d;font-weight:800}.client-profile-empty{border:1px dashed var(--border);background:var(--surface);text-align:center;border-radius:7px;place-content:center;gap:5px;min-height:210px;display:grid}.client-profile-empty strong{font-size:15px}.client-profile-empty span{max-width:520px;color:var(--muted);font-size:12px}@media (width<=760px){.client-profile-dialog{border-radius:0;width:100vw;height:100dvh;max-height:100dvh}.client-profile-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.client-profile-summary>div:last-child{grid-column:1/-1}.client-profile-commercial-grid{grid-template-columns:1fr}.client-profile-commercial summary{flex-direction:column;align-items:flex-start;padding:8px 10px}.client-profile-invoice-balance{flex-direction:column;align-items:flex-end}}.client-dialog-body h3{color:#c2410c;margin:0 0 10px;font-size:15px}.client-form-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px 12px;display:grid}.client-form-grid .span-two{grid-column:span 2}.client-form-grid .field textarea{background:var(--surface);width:100%;min-height:72px;color:var(--text);resize:vertical;border:1px solid #cbd5e1;border-radius:7px;padding:8px 10px}.client-switch{align-items:center;gap:8px;margin-bottom:10px;font-size:13px;font-weight:700;display:inline-flex}.entity-dialog{width:min(760px,100% - 28px)}.entity-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.home-global-search{z-index:8;background:var(--surface);border:1px solid #d8e0e8;border-radius:7px;margin-bottom:12px;padding:12px;position:relative;box-shadow:0 6px 20px #0f172a0d}.home-search-heading{justify-content:space-between;align-items:center;gap:12px;margin-bottom:8px;display:flex}.home-search-heading>div{gap:2px;display:grid}.home-search-heading strong{font-size:14px}.home-search-heading span{color:var(--muted);font-size:11px}.home-search-heading kbd{background:var(--canvas);color:var(--muted);border:1px solid #cbd5e1;border-bottom-width:2px;border-radius:5px;padding:3px 7px;font:700 10px/1.2 inherit}.home-search-control{align-items:center;display:flex;position:relative}.home-search-control>input{background:var(--surface);width:100%;height:42px;color:var(--text);border:1px solid #b8c5d1;border-radius:6px;outline:none;padding:0 86px 0 13px;font-size:14px}.home-search-control>input:focus{border-color:#f97316;box-shadow:0 0 0 3px #f9731621}.home-search-control>button{z-index:2;background:var(--subtle);height:29px;color:var(--muted);cursor:pointer;border:0;border-radius:5px;padding:0 9px;font-size:11px;font-weight:700;position:absolute;right:7px}.home-search-control>button:hover{color:var(--text);background:#e2e8f0}.home-search-results{z-index:40;background:var(--surface);border:1px solid #cbd5e1;border-radius:7px;max-height:min(470px,100vh - 220px);position:absolute;top:calc(100% + 6px);left:0;right:0;overflow:auto;box-shadow:0 18px 45px #0f172a33}.home-search-state,.home-search-warning{color:var(--muted);padding:13px;font-size:12px}.home-search-warning{color:#9a3412;background:#fff7ed;border-top:1px solid #fed7aa}.home-search-group+.home-search-group{border-top:1px solid #e2e8f0}.home-search-group h3{color:var(--muted);letter-spacing:0;text-transform:uppercase;margin:0;padding:8px 11px 5px;font-size:10px}.home-search-result{background:var(--surface);width:100%;min-height:48px;color:var(--text);cursor:pointer;text-align:left;border:0;justify-content:space-between;align-items:center;gap:12px;padding:7px 11px;display:flex}.home-search-result:hover,.home-search-result.active{background:#fff7ed}.home-search-result>span{gap:2px;min-width:0;display:grid}.home-search-result strong,.home-search-result small{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.home-search-result strong{font-size:13px}.home-search-result small{color:var(--muted);font-size:11px}.home-search-result b{color:#c2410c;flex:none;font-size:10px}@media (width<=700px){.home-global-search{padding:10px}.home-search-heading kbd{display:none}.home-search-control>input{height:40px;font-size:13px}.home-search-results{max-height:min(420px,100dvh - 190px)}}.home-dashboard{gap:10px;display:grid;position:relative}.home-dashboard-heading{justify-content:space-between;align-items:center;gap:12px;display:flex}.home-dashboard-heading h2,.home-dashboard-heading p{margin:0}.home-dashboard-heading h2{color:var(--text-strong);font-size:17px}.home-dashboard-heading p{color:var(--muted);margin-top:2px;font-size:11px}.home-dashboard-heading .button{min-height:34px;padding:0 12px}.home-dashboard-loading{color:#9a3412;font-size:10px;font-weight:700;position:absolute;top:4px;right:178px}.home-widget-grid{grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch;gap:9px;display:grid}.home-widget{background:var(--surface);border:1px solid #dce3eb;border-radius:7px;flex-direction:column;min-width:0;min-height:132px;display:flex;overflow:hidden;box-shadow:0 5px 16px #0f172a09}.home-widget>header{justify-content:space-between;align-items:flex-start;gap:8px;min-height:48px;padding:10px 11px 7px;display:flex}.home-widget>header>div{min-width:0}.home-widget header small,.home-widget header strong{display:block}.home-widget header small{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:10px;overflow:hidden}.home-widget header strong{color:var(--text-strong);font-size:13px}.home-widget>header>button,.home-widget-manager>header>button{color:#94a3b8;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:5px;flex:0 0 25px;place-items:center;width:25px;height:25px;font-size:10px;font-weight:800;display:grid}.home-widget>header>button:hover,.home-widget-manager>header>button:hover{color:#c2410c;background:#fff7ed;border-color:#fed7aa}.metric-widget>header{align-items:center}.metric-widget>header small{text-transform:uppercase;font-weight:800}.metric-widget>header strong{margin-top:3px;font-size:22px}.metric-widget>p{color:var(--muted);flex:1;margin:0;padding:0 11px 8px;font-size:10px}.home-widget-link{background:var(--surface);color:#c2410c;cursor:pointer;text-align:left;border:0;border-top:1px solid #edf0f4;min-height:31px;padding:0 11px;font-size:10px;font-weight:800}.home-widget-link:hover{background:#fff7ed}.list-widget,.comparison-widget{grid-column:span 2;min-height:224px}.home-widget-list{flex:1;display:grid}.home-widget-list>div{border-top:1px solid #f0f2f5;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;min-height:33px;padding:5px 11px;display:grid}.home-widget-list span,.home-widget-list b,.home-widget-list small{text-overflow:ellipsis;white-space:nowrap;min-width:0;display:block;overflow:hidden}.home-widget-list b{color:var(--text-soft);font-size:10px}.home-widget-list small{color:#94a3b8;margin-top:1px;font-size:9px}.home-widget-list>div>strong{color:var(--text-strong);white-space:nowrap;font-size:11px}.home-widget-empty{color:var(--muted);margin:auto;font-size:11px}.comparison-values{flex:1;grid-template-columns:1fr 1fr auto;align-items:center;gap:10px;padding:12px;display:grid}.comparison-values span{gap:4px;display:grid}.comparison-values small{color:var(--muted);font-size:10px}.comparison-values strong{color:var(--text-strong);font-size:18px}.comparison-values>b{border-radius:6px;padding:7px 9px;font-size:12px}.comparison-values>b.positive{color:#168447;background:#eaf8ef}.comparison-values>b.negative{color:#c53b2e;background:#fff0ee}.home-dashboard-empty{background:var(--canvas);min-height:180px;color:var(--muted);border:1px dashed #cbd5e1;border-radius:7px;align-content:center;place-items:center;gap:5px;display:grid}.home-dashboard-empty strong{color:var(--text-soft);font-size:14px}.home-dashboard-empty span{font-size:11px}.home-dashboard-empty .button{margin-top:8px}.home-widget-backdrop{z-index:90}.home-widget-manager{background:var(--surface);border:1px solid #dbe3ec;border-radius:8px;width:min(650px,100vw - 28px);max-height:min(720px,100vh - 28px);overflow:hidden;box-shadow:0 24px 70px #0f172a3d}.home-widget-manager>header{border-bottom:1px solid #e2e8f0;justify-content:space-between;align-items:flex-start;padding:14px 16px;display:flex}.home-widget-manager h2,.home-widget-manager p{margin:0}.home-widget-manager h2{color:var(--text-strong);font-size:18px}.home-widget-manager p{color:var(--muted);margin-top:3px;font-size:11px}.home-widget-options{grid-template-columns:1fr 1fr;gap:8px;max-height:min(520px,100vh - 190px);padding:12px 16px;display:grid;overflow:auto}.home-widget-options label{cursor:pointer;border:1px solid #dce3eb;border-radius:6px;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:9px;min-width:0;min-height:68px;padding:10px;display:grid}.home-widget-options label:has(input:checked){background:#fff7ed;border-color:#fdba74}.home-widget-options input{accent-color:#f97316;width:16px;height:16px;margin:1px 0 0}.home-widget-options span,.home-widget-options strong,.home-widget-options small{min-width:0;display:block}.home-widget-options strong{color:var(--text-strong);font-size:12px}.home-widget-options small{color:var(--muted);margin-top:3px;font-size:10px;line-height:1.35}.home-widget-manager>footer{border-top:1px solid #e2e8f0;justify-content:space-between;gap:8px;padding:11px 16px;display:flex}@media (width<=1180px){.home-widget-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=700px){.home-dashboard-heading{flex-direction:column;align-items:stretch}.home-dashboard-loading{position:static}.home-widget-grid{grid-template-columns:1fr}.list-widget,.comparison-widget{grid-column:auto}.home-widget-options{grid-template-columns:1fr}.home-widget-manager>footer{flex-direction:column-reverse;align-items:stretch}.comparison-values{grid-template-columns:1fr 1fr}.comparison-values>b{text-align:center;grid-column:1/-1}}.session-loading,.module-loading{min-height:100vh;color:var(--muted);place-items:center;font-weight:700;display:grid}.module-load-error{background:var(--canvas);min-height:100vh;color:var(--text);place-items:center;padding:24px;display:grid}.module-load-error>section{border:1px solid var(--border);background:var(--surface);width:min(440px,100%);box-shadow:var(--shadow);text-align:center;border-radius:8px;padding:28px}.module-load-error>section>span{color:#c2410c;background:#fff1e8;border-radius:50%;place-items:center;width:42px;height:42px;margin:0 auto 14px;font-size:22px;font-weight:900;display:grid}.module-load-error h1{margin:0;font-size:22px}.module-load-error p{color:var(--muted);margin:8px 0 18px}.login-page{background:var(--subtle);place-items:center;min-height:100vh;padding:20px;display:grid}.login-panel{background:var(--surface);border:1px solid #dbe3eb;border-radius:8px;width:min(430px,100%);padding:22px;box-shadow:0 22px 60px #0f172a21}.login-panel.registration-panel{width:min(720px,100%)}.auth-link{color:#155eef;cursor:pointer;text-align:center;background:0 0;border:0;width:100%;padding:12px 4px 0}.auth-link:hover{text-decoration:underline}.auth-link-row{grid-template-columns:1fr 1fr;gap:8px;display:grid}.auth-register-link{color:#c2410c;font-weight:700}.auth-flow-panel{width:min(500px,100%)}.success-message{color:#166534;background:#edf8f0;border:1px solid #a7d7b6;border-radius:6px;padding:10px 12px}.active-company{gap:1px;min-width:150px;display:grid}.active-company small{color:var(--muted);text-transform:uppercase;font-size:10px}.active-company strong{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.sidebar-profile-action{color:#cbd5e1;cursor:pointer;text-align:left;background:0 0;border:0;padding:5px 0}.sidebar-profile-action:hover{color:#fff}.platform-page{background:var(--subtle);min-height:100vh;padding:22px}.platform-header{justify-content:space-between;align-items:flex-start;gap:20px;max-width:1280px;margin:0 auto 18px;display:flex}.platform-header h1{margin:3px 0;font-size:28px}.platform-header p{color:var(--muted);margin:0}.eyebrow{color:#155eef;text-transform:uppercase;font-size:12px;font-weight:700}.platform-layout{grid-template-columns:minmax(0,1.4fr) minmax(340px,.6fr);gap:16px;max-width:1280px;margin:0 auto;display:grid}.platform-company-list,.support-access-form{padding:16px}.platform-company-table{gap:5px;display:grid}.platform-company-row{background:var(--surface);text-align:left;cursor:pointer;border:1px solid #dce3ea;border-radius:6px;justify-content:space-between;align-items:center;gap:12px;width:100%;padding:10px 12px;display:flex}.platform-company-row:hover,.platform-company-row.active{background:#f2f7ff;border-color:#4b8df8}.platform-company-row span:first-child{gap:2px;display:grid}.platform-company-row small{color:var(--muted)}.support-access-form{align-content:start;gap:12px;display:grid}.support-access-form .section-heading p{color:var(--muted);margin:3px 0 0;font-size:12px}.platform-subscription-form{grid-template-columns:140px 130px minmax(220px,290px) minmax(240px,1fr) auto;align-items:end;gap:10px;max-width:1280px;margin:16px auto 0;padding:16px;display:grid}.platform-subscription-form .section-heading{grid-column:1/-1}.platform-subscription-form .section-heading p{color:var(--muted);margin:3px 0 0;font-size:12px}.platform-subscription-plan-summary{border:1px solid var(--line);background:var(--subtle);border-radius:6px;align-self:stretch;gap:2px;padding:8px 10px;display:grid}.platform-subscription-plan-summary strong{color:var(--text-strong);font-size:12px}.platform-subscription-plan-summary span,.platform-subscription-plan-summary small{color:var(--muted);font-size:11px}.platform-subscription-reason{grid-column:1/-2}.platform-audit{max-width:1280px;margin:16px auto 0;padding:16px}.platform-audit table{min-width:900px}.platform-audit th,.platform-audit td{padding:8px 10px;font-size:12px}.platform-audit-actions{align-items:center;gap:8px;display:flex}.platform-audit-count{color:var(--muted);margin:0 0 8px;font-size:12px}.platform-business-type-requests{max-width:1280px;margin:16px auto 0;padding:16px}.platform-business-type-requests table{min-width:900px}.platform-business-type-requests th,.platform-business-type-requests td{padding:8px 10px;font-size:12px}.platform-company-heading{align-items:flex-start;gap:10px}.platform-company-actions{flex-wrap:wrap;justify-content:flex-end;gap:6px;display:flex}.platform-company-modal{border:1px solid var(--line);background:var(--surface);border-radius:8px;flex-direction:column;width:min(720px,100vw - 28px);max-height:calc(100vh - 28px);display:flex;overflow:hidden;box-shadow:0 20px 50px #0f172a33}.platform-company-modal>header,.platform-company-modal>footer{border-color:var(--line);flex:none;justify-content:space-between;align-items:center;gap:12px;padding:14px 16px;display:flex}.platform-company-modal>header{border-bottom:1px solid var(--line)}.platform-company-modal>footer{border-top:1px solid var(--line);justify-content:flex-end}.platform-company-modal h2,.platform-company-modal p{margin:0}.platform-company-modal header p{color:var(--muted);margin-top:3px;font-size:11px}.platform-company-modal .modal-body{min-height:0;padding:16px;overflow-y:auto}.platform-company-edit-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.platform-company-edit-grid .full{grid-column:1/-1}.platform-company-delete-body{gap:12px;display:grid}.platform-company-modal.danger{border-top:3px solid #dc2626}.platform-site-modal,.platform-modules-modal{width:min(1120px,100vw - 28px)}.platform-site-editor,.platform-module-template-body{gap:16px;display:grid}.platform-site-editor section{border-bottom:1px solid var(--line);gap:10px;padding-bottom:14px;display:grid}.platform-site-editor h3,.platform-module-template-body h3{margin:0;font-size:14px}.platform-site-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.platform-site-grid .full{grid-column:1/-1}.platform-site-repeat-list{gap:7px;display:grid}.platform-site-module-row{grid-template-columns:70px minmax(160px,.65fr) minmax(240px,1.35fr) auto;align-items:center;gap:7px;display:grid}.platform-site-faq-row{grid-template-columns:minmax(180px,.7fr) minmax(280px,1.3fr) auto;align-items:center;gap:7px;display:grid}.platform-site-repeat-list :is(input,textarea),.platform-module-table select{border:1px solid var(--line);background:var(--surface);min-width:0;color:var(--text);font:inherit;border-radius:5px;padding:8px 9px}.compact-check{align-self:end;align-items:center;gap:8px;min-height:36px;display:flex}.platform-template-summary{background:var(--subtle);border-left:3px solid #f97316;gap:2px;padding:10px 12px;display:grid}.platform-template-summary span,.platform-template-summary small{color:var(--muted);font-size:11px}.platform-module-table{min-width:820px}.platform-module-table th,.platform-module-table td{padding:8px 10px;font-size:12px}.platform-module-table td:first-child,.platform-module-table td:last-child{gap:2px;display:grid}.platform-module-table td small{color:var(--muted);font-size:10px}.platform-plans-modal{width:min(1240px,100vw - 28px)}.platform-plan-catalog,.platform-plan-editor{gap:14px;display:grid}.platform-plan-error{margin:10px 16px 0}.platform-plan-toolbar{justify-content:space-between}.platform-plan-toolbar .field{min-width:min(420px,100%)}.platform-plan-table{min-width:1050px}.platform-plan-table th,.platform-plan-table td{vertical-align:middle;padding:8px 10px;font-size:12px}.platform-plan-table td:first-child,.platform-plan-table td:nth-child(2){gap:2px;display:grid}.platform-plan-table td small{color:var(--muted);font-size:10px;line-height:1.4}.platform-plan-fields{border-bottom:1px solid var(--line);gap:10px;padding-bottom:14px;display:grid}.platform-plan-fields h3{margin:0;font-size:14px}.platform-plan-form-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;display:grid}.platform-plan-form-grid.compact{grid-template-columns:repeat(3,minmax(0,220px))}.platform-plan-form-grid .full{grid-column:1/-1}.platform-plan-modules .section-heading{align-items:end}.platform-plan-modules .section-heading p{color:var(--muted);margin:2px 0 0;font-size:11px}.platform-plan-modules .section-heading input{border:1px solid var(--line);background:var(--surface);width:min(300px,100%);min-height:36px;color:var(--text);border-radius:5px;padding:7px 9px}.platform-plan-module-grid{border:1px solid var(--line);border-radius:6px;grid-template-columns:repeat(3,minmax(0,1fr));display:grid;overflow:hidden}.platform-plan-module{border-right:1px solid var(--line);border-bottom:1px solid var(--line);cursor:pointer;align-items:flex-start;gap:8px;min-width:0;padding:9px 10px;display:flex}.platform-plan-module:nth-child(3n){border-right:0}.platform-plan-module span{gap:2px;min-width:0;display:grid}.platform-plan-module strong{font-size:12px}.platform-plan-module small{color:var(--muted);overflow-wrap:anywhere;font-size:10px}.platform-plan-module.disabled{cursor:not-allowed;opacity:.65}.platform-database-modal{width:min(920px,100vw - 28px)}.platform-database-body{gap:14px;display:grid}.platform-database-status{border:1px solid var(--line);background:var(--surface-subtle,var(--surface));border-radius:6px;grid-template-columns:repeat(4,minmax(0,1fr));display:grid}.platform-database-status>div{border-right:1px solid var(--line);gap:3px;min-width:0;padding:10px 12px;display:grid}.platform-database-status>div:last-child{border-right:0}.platform-database-status span{color:var(--muted);font-size:11px}.platform-database-status strong{overflow-wrap:anywhere;font-size:13px}.platform-database-warning{background:color-mix(in srgb, #f97316 9%, var(--surface));color:var(--text);border-left:3px solid #f97316;padding:10px 12px;font-size:12px;line-height:1.45}.platform-database-cancel{border-top:1px solid var(--line);grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;align-items:end;gap:10px;padding-top:12px;display:grid}.platform-database-cancel h3{grid-column:1/-1;margin:0;font-size:14px}.platform-database-history{border-top:1px solid var(--line);gap:8px;padding-top:12px;display:grid}.platform-database-history h3{margin:0;font-size:14px}.support-mode-banner{z-index:50;border-bottom:1px solid;justify-content:space-between;align-items:center;gap:14px;min-height:48px;padding:7px 18px;display:flex;position:sticky;top:0}.support-mode-banner.readonly{color:#704c00;background:#fff6d8;border-color:#f0c36b}.support-mode-banner.operational{color:#991b1b;background:#fff0f0;border-color:#f09a9a}.support-mode-banner div{gap:1px;display:grid}.support-mode-banner span{font-size:12px}.support-mode-banner button{color:inherit;cursor:pointer;background:0 0;border:1px solid;border-radius:5px;padding:6px 10px}.password-dialog{width:min(520px,100vw - 28px)}.password-dialog>header{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.password-dialog h2,.password-dialog p{margin:0}.password-dialog p{color:var(--muted);font-size:12px}.password-dialog footer{justify-content:flex-end;gap:8px;display:flex}@media (width<=800px){.platform-page{padding:12px}.platform-layout,.platform-subscription-form{grid-template-columns:1fr}.platform-subscription-form .section-heading,.platform-subscription-reason{grid-column:auto}.platform-header,.platform-company-heading,.platform-company-modal>header{flex-direction:column;align-items:stretch}.platform-company-actions{justify-content:flex-start}.platform-company-edit-grid{grid-template-columns:1fr}.platform-company-edit-grid .full{grid-column:auto}.platform-database-status{grid-template-columns:repeat(2,minmax(0,1fr))}.platform-database-status>div:nth-child(2){border-right:0}.platform-database-status>div:nth-child(-n+2){border-bottom:1px solid var(--line)}.platform-database-cancel,.platform-site-grid,.platform-site-module-row,.platform-site-faq-row{grid-template-columns:1fr}.platform-site-grid .full{grid-column:auto}.platform-plan-form-grid,.platform-plan-form-grid.compact,.platform-plan-module-grid{grid-template-columns:1fr 1fr}.platform-plan-module:nth-child(3n){border-right:1px solid var(--line)}.platform-plan-module:nth-child(2n){border-right:0}.support-mode-banner{align-items:flex-start;padding:8px 12px}}@media (width<=520px){.platform-database-status{grid-template-columns:1fr}.platform-database-status>div{border-right:0;border-bottom:1px solid var(--line)}.platform-database-status>div:last-child{border-bottom:0}.platform-plan-form-grid,.platform-plan-form-grid.compact,.platform-plan-module-grid{grid-template-columns:1fr}.platform-plan-module,.platform-plan-module:nth-child(2n),.platform-plan-module:nth-child(3n){border-right:0}}.login-brand{border-bottom:1px solid #e2e8f0;align-items:center;gap:10px;padding-bottom:16px;display:flex}.login-brand .nixx-brand-logo{box-shadow:0 4px 12px #0f172a2e}.login-brand strong,.login-brand small{display:block}.login-brand small{color:var(--muted);margin-top:2px;font-size:11px}.login-heading{margin:20px 0 16px}.login-heading h1{margin:0;font-size:24px}.login-heading p{color:var(--muted);margin:5px 0 0;font-size:13px}.login-form{gap:12px;display:grid}.registration-form{grid-template-columns:1fr 1fr}.registration-form .registration-wide{grid-column:1/-1}.registration-form .field>small{color:var(--muted);font-size:10px;font-weight:500}.login-form .field input{min-height:42px}.login-submit{min-height:42px;margin-top:2px}.login-note{color:var(--muted);border-top:1px solid #e2e8f0;margin:16px 0 0;padding-top:12px;font-size:11px;line-height:1.5}@media (width<=620px){.login-page{align-items:start;padding:10px}.login-panel{padding:16px}.registration-form{grid-template-columns:1fr}.registration-form .registration-wide{grid-column:auto}.auth-link-row{grid-template-columns:1fr;gap:0}}.employee-breadcrumb{color:var(--muted);align-items:center;gap:7px;margin-bottom:10px;font-size:12px;display:flex}.employee-breadcrumb button{color:#c2410c;background:0 0;border:0;padding:0;font-weight:700}.employees-page .page-header{margin-bottom:10px}.employees-page .page-header h1{font-size:24px}.employee-filter-bar{grid-template-columns:minmax(250px,1.5fr) minmax(135px,.7fr) minmax(135px,.7fr) 125px 145px auto auto;align-items:end;gap:7px;margin-bottom:10px;padding:10px;display:grid}.employee-filter-bar .field{gap:3px;min-width:0}.employee-filter-bar .field input,.employee-filter-bar .field select{height:34px;min-height:34px;font-size:12px}.employee-filter-bar .button{white-space:nowrap;min-height:34px}.employee-list-surface{padding:10px}.employees-table table{table-layout:fixed;width:calc(100% - 10px);min-width:900px}.employees-table th:first-child{width:70px}.employees-table th:nth-child(2){width:170px}.employees-table th:nth-child(3),.employees-table th:nth-child(4){width:100px}.employees-table th:nth-child(5){width:90px}.employees-table th:nth-child(6){width:80px}.employees-table th:nth-child(7){width:110px}.employees-table th:nth-child(8){width:65px}.employees-table th:nth-child(9){text-align:center;width:45px}.employees-table td{text-overflow:ellipsis;white-space:nowrap;padding-top:6px;padding-bottom:6px;overflow:hidden}.employees-table td:last-child{text-align:center;overflow:visible}.employee-name-button{width:100%;min-width:0;color:var(--text-strong);text-align:left;background:0 0;border:0;align-items:center;gap:8px;padding:0;display:flex}.employee-name-button>span:last-child{min-width:0}.employee-name-button strong,.employee-name-button small{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.employee-name-button:hover strong{color:#c2410c}.employee-avatar{color:#1d4ed8;background:#eff6ff;border:1px solid #dbe3eb;border-radius:50%;flex:none;place-items:center;font-weight:800;display:grid;overflow:hidden}.employee-avatar img{object-fit:cover;width:100%;height:100%}.employee-avatar.small{width:31px;height:31px;font-size:10px}.employee-avatar.large{width:76px;height:76px;font-size:21px}.employee-email{color:var(--muted)}.employee-status{text-transform:capitalize;border-radius:999px;align-items:center;padding:3px 8px;font-size:10px;font-weight:800;display:inline-flex}.employee-status.activo{color:#166534;background:#dcfce7}.employee-status.inactivo,.employee-status.retirado{color:#991b1b;background:#fee2e2}.employee-status.suspendido{color:#92400e;background:#fef3c7}.employee-table-empty{color:var(--muted);text-align:center!important;padding:34px!important}.employee-records-page{gap:10px;width:min(1600px,100%);padding-top:14px;display:grid}.employee-records-page .employee-breadcrumb,.employee-records-page .page-header{margin-bottom:0}.employee-records-page .page-header h1{font-size:24px}.employee-record-filter-bar{grid-template-columns:minmax(250px,1.6fr) minmax(135px,.75fr) minmax(135px,.75fr) 122px 145px auto auto;align-items:end;gap:7px;padding:10px;display:grid}.employee-record-filter-bar .field{gap:3px;min-width:0}.employee-record-filter-bar .field input,.employee-record-filter-bar .field select{height:34px;min-height:34px;font-size:12px}.employee-record-filter-bar .button{white-space:nowrap;min-height:34px}.employee-record-list{min-width:0;padding:10px}.employee-records-table table{table-layout:fixed;width:100%;min-width:860px}.employee-records-table th:first-child{width:70px}.employee-records-table th:nth-child(2){width:180px}.employee-records-table th:nth-child(3),.employee-records-table th:nth-child(4){width:105px}.employee-records-table th:nth-child(5){width:85px}.employee-records-table th:nth-child(6){width:90px}.employee-records-table th:nth-child(7){width:105px}.employee-records-table th:nth-child(8){width:72px}.employee-records-table th:nth-child(9){text-align:center;width:50px}.employee-records-table td{text-overflow:ellipsis;white-space:nowrap;padding-top:6px;padding-bottom:6px;overflow:hidden}.employee-records-table td:last-child{text-align:center;overflow:visible}.employee-records-table .action-trigger{margin-inline:auto}@media (width<=1180px){.employee-record-filter-bar{grid-template-columns:minmax(230px,1.4fr) repeat(3,minmax(120px,1fr))}.employee-record-filter-bar .field:nth-child(5){grid-column:1/2}}@media (width<=760px){.employee-records-page{padding-top:10px}.employee-records-page .page-header{flex-direction:column;align-items:stretch}.employee-record-filter-bar{grid-template-columns:repeat(2,minmax(0,1fr))}.employee-record-filter-bar .record-search{grid-column:1/-1}.employee-record-filter-bar .field:nth-child(5){grid-column:auto}}@media (width<=480px){.employee-record-filter-bar{grid-template-columns:1fr}.employee-record-filter-bar .record-search{grid-column:auto}}.employee-profile-page{width:min(1600px,100%);padding-top:14px}.employee-profile-header{justify-content:space-between;align-items:center;gap:18px;padding:13px 16px;display:flex}.employee-profile-identity{align-items:center;gap:14px;min-width:0;display:flex}.employee-profile-name{align-items:center;gap:9px;display:flex}.employee-profile-name h1{margin:0;font-size:23px}.employee-profile-identity p{color:var(--muted);margin:4px 0 0;font-size:13px;font-weight:700}.employee-inline-meta{color:var(--muted);flex-wrap:wrap;gap:6px 18px;margin-top:8px;font-size:11px;display:flex}.employee-stat-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-top:9px;display:grid}.employee-stat-grid>div{background:var(--surface);border:1px solid #e2e8f0;border-radius:7px;min-height:76px;padding:10px 12px}.employee-stat-grid small,.employee-stat-grid strong,.employee-stat-grid span{display:block}.employee-stat-grid small{color:var(--muted);text-transform:uppercase;font-size:10px;font-weight:800}.employee-stat-grid strong{color:var(--text-strong);margin-top:5px;font-size:16px}.employee-stat-grid span{color:var(--muted);margin-top:3px;font-size:10px}.employee-tabs{background:var(--surface);scrollbar-width:thin;border:1px solid #e2e8f0;border-radius:7px 7px 0 0;gap:2px;margin-top:9px;padding:0 8px;display:flex;overflow-x:auto}.employee-tabs button{min-height:42px;color:var(--muted);white-space:nowrap;background:0 0;border:0;border-bottom:2px solid #0000;flex:none;padding:0 11px;font-size:11px;font-weight:700}.employee-tabs button.active{color:#c2410c;border-bottom-color:#f97316}.employee-tab-content{background:var(--canvas);border:1px solid #e2e8f0;border-top:0;border-radius:0 0 7px 7px;min-height:390px;padding:10px}.employee-overview-grid{grid-template-columns:1.35fr 1fr .7fr 1fr;gap:8px;display:grid}.employee-panel{background:var(--surface);border:1px solid #e2e8f0;border-radius:7px;min-width:0;padding:12px}.employee-panel h3{color:var(--text-strong);margin:0 0 10px;font-size:13px}.employee-panel p{color:var(--muted);font-size:11px}.employee-two-column{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;display:grid}.employee-info-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px;margin:0;display:grid}.employee-info-grid>div{border-bottom:1px solid #f1f5f9;min-width:0;padding:7px 0}.employee-info-grid dt{color:var(--muted);text-transform:uppercase;font-size:9px;font-weight:800}.employee-info-grid dd{overflow-wrap:anywhere;color:var(--text-strong);margin:3px 0 0;font-size:12px;font-weight:650}.employee-big-number{color:#1d4ed8;text-align:center;margin-top:18px;font-size:32px;font-weight:800}.employee-panel .employee-big-number+p{text-align:center;margin:2px 0}.employee-timeline{gap:10px;margin:0;padding:0;list-style:none;display:grid}.employee-timeline li{border-left:2px solid #bfdbfe;gap:2px;padding-left:12px;display:grid;position:relative}.employee-timeline time{color:var(--muted);font-size:9px}.employee-timeline strong{font-size:11px}.employee-timeline span{color:var(--muted);font-size:10px}.employee-timeline.full{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 18px}.employee-empty-state{min-height:120px;color:var(--muted);text-align:center;place-items:center;padding:18px;font-size:12px;display:grid}.employee-subtable{border:1px solid #e2e8f0;border-radius:6px;overflow-x:auto}.employee-subtable table{border-collapse:collapse;width:100%;min-width:820px}.employee-subtable th,.employee-subtable td{padding:7px 8px;font-size:11px}.employee-list-row{border-bottom:1px solid #f1f5f9;justify-content:space-between;align-items:center;gap:14px;padding:9px 0;display:flex}.employee-list-row:last-child{border-bottom:0}.employee-list-row>div{min-width:0}.employee-list-row strong,.employee-list-row span{display:block}.employee-list-row strong{color:var(--text-strong);text-overflow:ellipsis;white-space:nowrap;font-size:11px;overflow:hidden}.employee-list-row span{color:var(--muted);margin-top:2px;font-size:10px}.employee-documents-layout{grid-template-columns:minmax(0,1.45fr) minmax(280px,.55fr)}.employee-panel-heading{justify-content:space-between;align-items:center;gap:12px;margin-bottom:8px;display:flex}.employee-panel-heading h3{margin-bottom:2px}.employee-panel-heading p{margin:0}.employee-assets-panel{min-width:0}.employee-asset-list{gap:7px;display:grid}.employee-asset-row{background:var(--surface);border:1px solid #e2e8f0;border-radius:7px;justify-content:space-between;align-items:center;gap:10px;padding:9px;display:flex}.employee-asset-main{min-width:0}.employee-asset-main strong,.employee-asset-main span,.employee-asset-main small{display:block}.employee-asset-main strong{color:var(--text-strong);text-overflow:ellipsis;white-space:nowrap;font-size:12px;overflow:hidden}.employee-asset-main span,.employee-asset-main small,.employee-asset-state small{color:var(--muted);margin-top:2px;font-size:10px}.employee-asset-state{text-align:right;flex:none;justify-items:end;gap:5px;display:grid}.employee-asset-state .button{min-height:30px;padding:5px 8px;font-size:10px}.employee-asset-dialog{width:min(720px,100% - 24px)}.employee-asset-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.employee-asset-form-grid .full{grid-column:1/-1}.employee-document-list{border-top:1px solid #e2e8f0}.employee-document-row{border-bottom:1px solid #eef2f7;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:10px;min-height:60px;padding:8px 0;display:grid}.employee-document-row:last-child{border-bottom:0}.employee-document-icon{color:#c2410c;background:#fff7ed;border:1px solid #fed7aa;border-radius:6px;place-items:center;width:34px;height:34px;font-size:9px;font-weight:900;display:grid}.employee-document-main{min-width:0}.employee-document-main strong,.employee-document-main span,.employee-document-main small{display:block}.employee-document-main strong{color:var(--text-strong);text-overflow:ellipsis;white-space:nowrap;font-size:12px;overflow:hidden}.employee-document-main span{color:var(--muted);margin-top:2px;font-size:10px}.employee-document-main small{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;margin-top:3px;overflow:hidden}.employee-document-actions{align-items:center;gap:6px;display:flex}.employee-document-actions .button{min-height:32px;padding:0 9px;font-size:11px}.employee-document-reference{color:#94a3b8;white-space:nowrap;font-size:10px}.employee-document-dialog input[type=file]{min-height:42px;padding:7px}.employee-document-help{color:var(--muted);margin:-5px 0 0;font-size:11px}.employee-form-page{width:min(1500px,100%);padding-top:14px}.employee-form-page form{padding-bottom:76px}.employee-form-header{justify-content:space-between;align-items:center;gap:16px;margin-bottom:10px;display:flex}.employee-form-header h1{margin:0;font-size:24px}.employee-form-header p{color:var(--muted);margin:4px 0 0;font-size:13px}.employee-form-section{margin-bottom:9px;padding:12px 14px}.employee-form-section h2{color:#c2410c;margin:0 0 10px;font-size:14px}.employee-form-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;display:grid}.employee-form-grid .field{min-width:0}.employee-form-grid .field input,.employee-form-grid .field select,.employee-form-grid .field textarea{background:var(--surface);width:100%;min-height:36px;color:var(--text-strong);border:1px solid #cbd5e1;border-radius:7px;padding:7px 10px}.employee-form-grid .field textarea{resize:vertical}.employee-form-wide{grid-column:span 2}.employee-form-check{min-height:36px;color:var(--text-soft);align-self:end;align-items:center;gap:8px;font-size:12px;font-weight:700;display:flex}.employee-form-check input{width:17px;height:17px;margin:0}.form-permission-note{color:#92400e;margin:9px 0 0;font-size:11px}.employee-form-actions{z-index:20;justify-content:flex-end;gap:8px;margin:0;padding:10px 12px;display:flex;position:fixed;bottom:12px;left:240px;right:20px;box-shadow:0 -8px 24px #0f172a1f}.employee-confirm-dialog{border:0;border-radius:8px;width:min(520px,100% - 24px);padding:0;box-shadow:0 24px 80px #0f172a47}.employee-confirm-dialog::backdrop{background:#0f172a7a}.employee-confirm-dialog header,.employee-confirm-dialog footer{border-bottom:1px solid #e2e8f0;justify-content:space-between;align-items:center;gap:10px;padding:12px 14px;display:flex}.employee-confirm-dialog header h2{margin:0;font-size:18px}.employee-confirm-dialog header button{background:0 0;border:0;place-items:center;width:32px;height:32px;font-size:24px;display:grid}.employee-confirm-dialog footer{border-top:1px solid #e2e8f0;border-bottom:0;justify-content:flex-end}.employee-confirm-body{padding:14px}.employee-confirm-body>p{color:var(--muted);margin:0 0 12px;font-size:13px;line-height:1.5}.employee-confirm-body textarea{resize:vertical;border:1px solid #cbd5e1;border-radius:7px;width:100%;padding:8px}.attendance-page{width:min(1600px,100%)}.attendance-summary{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-bottom:9px;display:grid}.attendance-summary>div{background:var(--surface);border:1px solid #e2e8f0;border-radius:7px;min-height:72px;padding:10px 12px}.attendance-summary small,.attendance-summary strong,.attendance-summary span{display:block}.attendance-summary small{color:var(--muted);text-transform:uppercase;font-size:10px;font-weight:800}.attendance-summary strong{color:var(--text-strong);margin-top:4px;font-size:20px}.attendance-summary span{color:var(--muted);margin-top:2px;font-size:10px}.attendance-filter-bar{grid-template-columns:minmax(210px,1.2fr) minmax(170px,1fr) 145px 140px 140px auto auto;align-items:end;gap:7px;margin-bottom:9px;padding:10px;display:grid}.attendance-filter-bar .field{gap:3px;min-width:0}.attendance-filter-bar .field input,.attendance-filter-bar .field select{height:34px;min-height:34px;font-size:12px}.attendance-filter-bar .button{white-space:nowrap;min-height:34px}.attendance-list{padding:10px}.attendance-table table{table-layout:fixed;min-width:1020px}.attendance-table th:first-child{width:80px}.attendance-table th:nth-child(2){width:180px}.attendance-table th:nth-child(n+3):nth-child(-n+6){width:70px}.attendance-table th:nth-child(7),.attendance-table th:nth-child(8){width:65px}.attendance-table th:nth-child(9){width:115px}.attendance-table th:nth-child(10){width:76px}.attendance-table td{padding-top:6px;padding-bottom:6px}.attendance-status{border-radius:999px;padding:3px 7px;font-size:10px;font-weight:800;display:inline-flex}.attendance-status.presente{color:#166534;background:#dcfce7}.attendance-status.tarde{color:#92400e;background:#fef3c7}.attendance-status.salida_temprana{color:#991b1b;background:#fee2e2}.attendance-dialog{border:0;border-radius:8px;width:min(620px,100% - 24px);max-height:calc(100vh - 28px);padding:0;overflow:auto;box-shadow:0 24px 80px #0f172a47}.attendance-dialog::backdrop{background:#0f172a80}.attendance-dialog header,.attendance-dialog footer{border-bottom:1px solid #e2e8f0;justify-content:space-between;align-items:center;gap:10px;padding:12px 14px;display:flex}.attendance-dialog header h2{margin:0;font-size:19px}.attendance-dialog header p{color:var(--muted);margin:3px 0 0;font-size:11px}.attendance-dialog header>button{background:0 0;border:0;place-items:center;width:32px;height:32px;font-size:24px;display:grid}.attendance-dialog footer{border-top:1px solid #e2e8f0;border-bottom:0;justify-content:flex-end}.attendance-dialog-body{gap:13px;padding:14px;display:grid}.attendance-dialog-body textarea{resize:vertical;border:1px solid #cbd5e1;border-radius:7px;width:100%;padding:8px}.attendance-action-list{border:0;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:0;padding:0;display:grid}.attendance-action-list legend{color:var(--text-soft);grid-column:1/-1;margin-bottom:4px;font-size:12px;font-weight:800}.attendance-action-list label{cursor:pointer;border:1px solid #cbd5e1;border-radius:7px;align-items:center;gap:9px;min-width:0;padding:10px;display:flex}.attendance-action-list label.selected{background:#fff7ed;border-color:#f97316}.attendance-action-list input{width:16px;height:16px;margin:0}.attendance-action-list strong,.attendance-action-list small{display:block}.attendance-action-list strong{font-size:12px}.attendance-action-list small{color:var(--muted);margin-top:2px;font-size:10px}.kiosk-page{background:var(--subtle);min-height:100vh;color:var(--text-strong)}.kiosk-top{background:var(--surface);border-bottom:1px solid #dbe3eb;justify-content:space-between;align-items:center;gap:16px;min-height:68px;padding:10px 22px;display:flex}.kiosk-top>div{align-items:center;gap:10px;display:flex}.kiosk-top strong,.kiosk-top small{display:block}.kiosk-top small{color:var(--muted);margin-top:2px;font-size:11px}.kiosk-workspace{align-content:center;place-items:center;gap:18px;min-height:calc(100vh - 68px);padding:20px;display:grid}.kiosk-clock{text-align:center}.kiosk-clock p{color:var(--muted);text-transform:capitalize;margin:0;font-size:17px}.kiosk-clock strong{font-variant-numeric:tabular-nums;letter-spacing:0;margin-top:5px;font-size:48px;display:block}.kiosk-panel{background:var(--surface);border:1px solid #dbe3eb;border-radius:8px;width:min(640px,100%);padding:18px;box-shadow:0 18px 50px #0f172a1f}.kiosk-camera{aspect-ratio:4/3;background:#111827;border:1px solid #cbd5e1;border-radius:7px;width:min(240px,100%);margin:0 auto 12px;position:relative;overflow:hidden}.kiosk-camera video{object-fit:cover;width:100%;height:100%;display:block}.kiosk-camera span{color:#fff;text-align:center;background:#0f172ac7;border-radius:5px;padding:5px 7px;font-size:10px;font-weight:700;position:absolute;bottom:6px;left:6px;right:6px}.kiosk-evidence-state{justify-content:center;gap:6px;min-height:0;margin:-3px 0 9px;display:flex}.kiosk-evidence-state span{color:#075985;background:#e0f2fe;border-radius:999px;padding:3px 8px;font-size:10px;font-weight:800}.kiosk-panel>label{color:var(--text-soft);gap:5px;margin-bottom:12px;font-size:12px;font-weight:800;display:grid}.kiosk-panel input{width:100%;min-height:48px;color:var(--text-strong);border:1px solid #cbd5e1;border-radius:7px;padding:0 13px;font-size:17px}.kiosk-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:15px;display:grid}.kiosk-actions button{color:#9a3412;background:#fff7ed;border:1px solid #fed7aa;border-radius:7px;min-height:54px;font-size:14px;font-weight:800}.kiosk-actions button:hover:not(:disabled){color:#fff;background:#f97316;border-color:#f97316}.kiosk-feedback{text-align:center;border-radius:7px;gap:4px;margin-top:14px;padding:13px;display:grid}.kiosk-feedback.success{color:#166534;background:#dcfce7}.kiosk-feedback.error{color:#991b1b;background:#fee2e2}.kiosk-feedback strong{font-size:16px}.kiosk-feedback span,.kiosk-feedback b,.kiosk-feedback small{display:block}.kiosk-feedback span{font-size:12px}.kiosk-feedback b{font-size:15px}.kiosk-feedback-evidence{justify-content:center;gap:8px;margin-top:3px;display:flex}.kiosk-feedback-evidence small{background:#fff9;border-radius:999px;padding:2px 7px}.employee-confirm-body .field{margin-bottom:10px}.employee-confirm-body .field input{border:1px solid #cbd5e1;border-radius:7px;min-height:38px;padding:0 10px}.kiosk-admin-page{width:min(1500px,100%)}.kiosk-config-form{margin-bottom:10px;padding:11px}.kiosk-config-toggles{grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin-top:7px;display:grid}.kiosk-config-toggles .checkbox-field{border:1px solid #e2e8f0;border-radius:7px;padding:0 9px}.kiosk-config-numbers{grid-template-columns:repeat(3,minmax(0,1fr)) auto;align-items:end;gap:8px;margin-top:8px;display:grid}.kiosk-config-numbers input{min-height:34px}.kiosk-attempts{padding:10px}.kiosk-attempt-filters{grid-template-columns:145px 145px minmax(190px,1fr) 175px auto;align-items:end;gap:7px;margin-bottom:8px;display:grid}.kiosk-attempt-filters input,.kiosk-attempt-filters select{min-height:34px}.kiosk-attempt-table table{min-width:960px}.kiosk-result{background:var(--subtle);color:var(--muted);text-transform:capitalize;border-radius:999px;padding:3px 7px;font-size:10px;font-weight:800;display:inline-flex}.kiosk-result.exitoso{color:#166534;background:#dcfce7}.kiosk-result.pin_incorrecto,.kiosk-result.bloqueado{color:#991b1b;background:#fee2e2}.evidence-button{color:#1d4ed8;background:#eff6ff;border:1px solid #bfdbfe;border-radius:6px;align-items:center;gap:4px;min-height:30px;padding:0 6px;font-size:10px;font-weight:800;display:inline-flex}.evidence-button span:empty{display:none}.evidence-button small{color:#1e40af;background:#dbeafe;border-radius:999px;place-items:center;min-width:18px;height:18px;margin:0;display:grid}.attendance-evidence-dialog{width:min(980px,100vw - 32px);max-width:980px}.attendance-evidence-dialog>form{max-height:min(760px,100vh - 32px)}.attendance-evidence-dialog header small{color:var(--muted);margin-top:2px;display:block}.attendance-evidence-body{padding:14px;overflow:auto}.attendance-evidence-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.attendance-evidence-card{background:var(--surface);border:1px solid #e2e8f0;border-radius:7px;min-width:0;padding:11px}.attendance-evidence-card>div:first-child{justify-content:space-between;align-items:center;gap:8px;display:flex}.attendance-evidence-card>div:first-child span{color:var(--muted);font-size:11px}.attendance-evidence-card dl{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:10px 0 0;display:grid}.attendance-evidence-card dl div{background:var(--canvas);border-radius:6px;min-width:0;padding:7px}.attendance-evidence-card dt{color:var(--muted);text-transform:uppercase;font-size:9px;font-weight:800}.attendance-evidence-card dd{color:var(--text-strong);text-overflow:ellipsis;white-space:nowrap;margin:2px 0 0;font-size:11px;font-weight:700;overflow:hidden}.attendance-evidence-card img{object-fit:contain;background:#111827;border-radius:6px;width:100%;max-height:280px;margin-top:10px;display:block}.attendance-row-actions{justify-content:flex-end;align-items:center;gap:5px;display:flex}.attendance-row-actions .action-trigger{background:var(--surface);width:30px;height:30px;color:var(--text-soft);border:1px solid #cbd5e1;border-radius:6px;place-items:center;font-size:18px;display:grid}.attendance-correction-dialog{width:min(760px,100% - 24px)}.correction-warning{color:#9a3412;background:#fff7ed;border-left:3px solid #f97316;margin:0;padding:8px 10px;font-size:11px}.correction-time-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;display:grid}.attendance-history-dialog{width:min(900px,100vw - 32px);max-width:900px}.attendance-history-dialog>form{max-height:min(760px,100vh - 32px)}.attendance-history-body{gap:9px;padding:14px;display:grid;overflow:auto}.attendance-history-card{background:var(--surface);border:1px solid #e2e8f0;border-radius:7px;padding:10px}.attendance-history-card>div:first-child{justify-content:space-between;align-items:center;gap:8px;display:flex}.attendance-history-card>div:first-child span{color:var(--muted);font-size:10px}.attendance-history-card>p{color:var(--text-soft);margin:7px 0;font-size:12px}.attendance-history-card dl{grid-template-columns:2fr 2fr 1fr;gap:7px;margin:0;display:grid}.attendance-history-card dl div{background:var(--canvas);border-radius:6px;min-width:0;padding:7px}.attendance-history-card dt{color:var(--muted);text-transform:uppercase;font-size:9px;font-weight:800}.attendance-history-card dd{text-overflow:ellipsis;white-space:nowrap;margin:2px 0 0;font-size:11px;font-weight:700;overflow:hidden}.leave-page{width:min(1600px,100%)}.leave-tabs{border-bottom:1px solid #dbe3eb;gap:4px;margin-bottom:9px;display:flex}.leave-tabs button{min-height:36px;color:var(--muted);background:0 0;border:0;border-bottom:2px solid #0000;padding:0 12px;font-size:12px;font-weight:800}.leave-tabs button.active{color:#c2410c;border-bottom-color:#f97316}.leave-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.leave-filter-bar{grid-template-columns:minmax(210px,1.35fr) minmax(170px,1fr) minmax(135px,.7fr) 145px 145px auto auto;align-items:end;gap:7px;margin-bottom:9px;padding:10px;display:grid}.leave-filter-bar .field{gap:3px;min-width:0}.leave-filter-bar .field input,.leave-filter-bar .field select{height:34px;min-height:34px;font-size:12px}.leave-filter-bar .button{white-space:nowrap;min-height:34px}.leave-list{padding:10px}.leave-table table{table-layout:fixed;min-width:1000px}.leave-table th:first-child{width:185px}.leave-table th:nth-child(2){width:125px}.leave-table th:nth-child(3),.leave-table th:nth-child(4){width:92px}.leave-table th:nth-child(5),.leave-table th:nth-child(6){width:86px}.leave-table th:nth-child(7){width:100px}.leave-table th:nth-child(8){text-align:center;width:70px}.leave-table td{text-overflow:ellipsis;white-space:nowrap;padding-top:6px;padding-bottom:6px;overflow:hidden}.leave-table td strong,.leave-table td small{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.leave-table td small{color:var(--muted);margin-top:2px;font-size:10px}.leave-table td:last-child{text-align:center;overflow:visible}.leave-status{border-radius:999px;padding:3px 8px;font-size:10px;font-weight:800;display:inline-flex}.leave-status.solicitado,.leave-status.solicitada{color:#92400e;background:#fef3c7}.leave-status.aprobado,.leave-status.aprobada{color:#166534;background:#dcfce7}.leave-status.rechazado,.leave-status.rechazada{color:#991b1b;background:#fee2e2}.leave-status.cancelado,.leave-status.cancelada{color:var(--muted);background:#e2e8f0}.leave-date-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;display:grid}.leave-request-dialog{width:min(680px,100% - 24px)}.loan-page{width:min(1600px,100%)}.loan-summary{grid-template-columns:repeat(4,minmax(0,1fr))}.loan-filter-bar{grid-template-columns:minmax(210px,1.3fr) minmax(165px,1fr) 125px 120px 135px 135px auto auto;align-items:end;gap:7px;margin-bottom:9px;padding:10px;display:grid}.loan-filter-bar .field{gap:3px;min-width:0}.loan-filter-bar input,.loan-filter-bar select{height:34px;min-height:34px;font-size:12px}.loan-filter-bar .button{white-space:nowrap;min-height:34px}.loan-list{padding:10px}.loan-table table{table-layout:fixed;min-width:1180px}.loan-table th:first-child{width:180px}.loan-table th:nth-child(2){width:90px}.loan-table th:nth-child(3){width:85px}.loan-table th:nth-child(n+4):nth-child(-n+8){width:95px}.loan-table th:nth-child(9){width:85px}.loan-table th:nth-child(10){text-align:center;width:68px}.loan-table td{text-overflow:ellipsis;white-space:nowrap;padding-top:6px;padding-bottom:6px;overflow:hidden}.loan-table td strong,.loan-table td small{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.loan-table td small{color:var(--muted);margin-top:2px;font-size:10px}.loan-table td:last-child{text-align:center;overflow:visible}.loan-status{border-radius:999px;padding:3px 8px;font-size:10px;font-weight:800;display:inline-flex}.loan-status.activo{color:#92400e;background:#fef3c7}.loan-status.pagado{color:#166534;background:#dcfce7}.loan-status.anulado{color:#991b1b;background:#fee2e2}.loan-dialog{width:min(720px,100% - 24px)}.loan-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;display:grid}.loan-calculation,.loan-balance{background:#fff7ed;border:1px solid #fed7aa;border-radius:7px;justify-content:space-between;align-items:center;gap:10px;padding:10px 12px;display:flex}.loan-calculation span,.loan-balance span{color:#9a3412;font-size:11px;font-weight:800}.loan-calculation strong,.loan-balance strong{color:#c2410c;font-size:18px}.loan-payment-dialog{width:min(540px,100% - 24px)}.loan-history-dialog{width:min(980px,100vw - 24px)}.loan-history-body{max-height:520px;padding:14px;overflow:auto}.loan-history-body table{border-collapse:collapse;width:100%;min-width:780px}.loan-history-body th,.loan-history-body td{text-align:left;border-bottom:1px solid #e2e8f0;padding:8px;font-size:11px}.employee-account-dialog{width:min(1080px,100vw - 24px)}.employee-account-shell{grid-template-rows:auto minmax(0,1fr) auto;max-height:min(820px,100vh - 24px);display:grid}.employee-account-body{min-height:0;padding:14px;overflow:auto}.employee-account-summary{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:12px;display:grid}.employee-account-summary article{border:1px solid var(--line);border-radius:7px;padding:10px}.employee-account-summary small,.employee-account-summary strong{display:block}.employee-account-summary small{color:var(--muted);text-transform:uppercase;font-size:10px;font-weight:800}.employee-account-summary strong{margin-top:4px;font-size:18px}.employee-account-table table{width:100%;min-width:850px}.commission-page{width:min(1600px,100%)}.commission-tabs{border-bottom:1px solid #dbe3eb;gap:4px;margin-bottom:9px;display:flex}.commission-tabs button{min-height:36px;color:var(--muted);background:0 0;border:0;border-bottom:2px solid #0000;padding:0 12px;font-size:12px;font-weight:800}.commission-tabs button.active{color:#c2410c;border-bottom-color:#f97316}.commission-summary{grid-template-columns:repeat(4,minmax(0,1fr))}.commission-filter-bar{grid-template-columns:minmax(150px,1.25fr) minmax(125px,.9fr) 102px 102px 116px 116px auto auto;align-items:end;gap:6px;margin-bottom:9px;padding:10px;display:grid}.commission-filter-bar .field{gap:3px;min-width:0}.commission-filter-bar input,.commission-filter-bar select{height:34px;min-height:34px;font-size:12px}.commission-filter-bar .button{white-space:nowrap;min-height:34px}.commission-list{padding:10px}.commission-table table{table-layout:fixed;min-width:1100px}.commission-table td{text-overflow:ellipsis;white-space:nowrap;padding-top:6px;padding-bottom:6px;overflow:hidden}.commission-table td strong,.commission-table td small{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.commission-table td small{color:var(--muted);margin-top:2px;font-size:10px}.commission-table td:last-child{text-align:center;overflow:visible}.commission-status{border-radius:999px;padding:3px 8px;font-size:10px;font-weight:800;display:inline-flex}.commission-status.pendiente{color:#92400e;background:#fef3c7}.commission-status.aprobada,.commission-status.pagada,.commission-status.activo{color:#166534;background:#dcfce7}.commission-status.anulada,.commission-status.inactivo{color:#991b1b;background:#fee2e2}.commission-dialog{width:min(760px,100% - 24px)}.commission-dialog-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;display:grid}.commission-wide{grid-column:1/-1}.commission-calculation{background:#fff7ed;border:1px solid #fed7aa;border-radius:7px;grid-template-columns:1fr auto;align-items:center;gap:3px 10px;padding:10px 12px;display:grid}.commission-calculation span{color:#9a3412;font-size:11px;font-weight:800}.commission-calculation strong{color:#c2410c;font-size:20px}.commission-calculation small{color:#9a3412;grid-column:1/-1;font-size:10px}@media (width<=1080px){.filter-bar,.client-filters,.supplier-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.topbar{align-items:flex-start;padding-top:9px;padding-bottom:9px}.topbar-controls{align-items:flex-end}.context-selector{flex-wrap:wrap;justify-content:flex-end}.employee-filter-bar{grid-template-columns:repeat(3,minmax(0,1fr))}.employee-overview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.employee-stat-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.employee-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.attendance-filter-bar,.attendance-summary,.leave-filter-bar,.loan-filter-bar{grid-template-columns:repeat(3,minmax(0,1fr))}.loan-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.commission-filter-bar{grid-template-columns:repeat(3,minmax(0,1fr))}.commission-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.kiosk-config-toggles{grid-template-columns:repeat(3,minmax(0,1fr))}.kiosk-config-numbers,.kiosk-attempt-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.attendance-evidence-grid{grid-template-columns:1fr}}@media (width<=760px){.app-shell{grid-template-columns:minmax(0,1fr);height:auto;min-height:100vh;overflow:visible}.sidebar,.app-content,.topbar{width:100%;min-width:0}.sidebar{height:auto;padding:10px;position:static}.app-content{height:auto;overflow:visible}.brand-mark{border:0;padding-bottom:8px}.sidebar-nav{margin-top:0;display:flex;overflow-x:auto}.nav-item{flex:none}.nav-group{flex:none;align-items:center;display:flex}.nav-group-heading{flex:0 0 190px}.nav-submenu{border-left:0;margin-left:0;padding:0;display:flex}.nav-subitem{flex:none;min-height:38px}.sidebar-footer{display:none}.topbar{padding:9px 12px;display:grid}.topbar-identity span{display:none}.topbar-controls{grid-template-columns:minmax(0,1fr) auto;align-items:end;display:grid}.context-selector{grid-template-columns:repeat(3,minmax(0,1fr));width:100%;display:grid}.context-selector select,.context-selector label:nth-child(2) select,.context-selector label:nth-child(3) select{width:100%;min-width:0}.page-content{padding:12px}.page-header,.page-actions{align-items:stretch;display:grid}.filter-bar,.client-filters,.supplier-filters,.summary-grid,.entity-summary,.employee-filter-bar,.employee-two-column,.employee-overview-grid,.employee-stat-grid,.employee-asset-form-grid{grid-template-columns:1fr}.employee-asset-form-grid .full{grid-column:auto}.employee-asset-row{flex-direction:column;align-items:flex-start}.employee-asset-state{text-align:left;justify-items:start;width:100%}.employee-document-row{grid-template-columns:34px minmax(0,1fr)}.employee-document-actions{grid-column:1/-1;justify-content:flex-end}.employee-profile-header{align-items:flex-start}.employee-profile-header,.employee-profile-identity{display:grid}.employee-profile-header .button{width:100%}.employee-info-grid,.employee-timeline.full{grid-template-columns:1fr}.employee-form-header{display:grid}.employee-form-grid{grid-template-columns:1fr}.employee-form-wide{grid-column:auto}.employee-form-actions{display:grid;bottom:8px;left:12px;right:12px}.employee-form-page{width:100%;min-width:0;max-width:100vw;margin:0;overflow-x:hidden}.kiosk-camera{width:190px}.attendance-evidence-dialog{width:calc(100vw - 16px)}.correction-time-grid,.attendance-history-card dl,.attendance-evidence-card dl{grid-template-columns:1fr}.employee-form-page form,.employee-form-section,.employee-form-grid,.employee-form-grid>*{min-width:0}.employee-form-grid input,.employee-form-grid select,.employee-form-grid textarea{min-width:0;max-width:100%}.attendance-filter-bar,.attendance-summary,.attendance-action-list,.leave-filter-bar,.leave-summary,.leave-date-grid,.loan-filter-bar,.loan-summary,.loan-form-grid,.employee-account-summary,.commission-filter-bar,.commission-summary,.commission-dialog-grid{grid-template-columns:1fr}.commission-wide{grid-column:auto}.kiosk-top{align-items:stretch;padding:9px 12px}.kiosk-top,.kiosk-top>div{display:grid}.kiosk-top>div{grid-template-columns:auto 1fr;align-items:center}.kiosk-workspace{align-content:start;gap:12px;padding:16px 12px}.kiosk-clock strong{font-size:38px}.kiosk-clock p{font-size:14px}.kiosk-panel{padding:13px}.kiosk-actions,.kiosk-config-toggles,.kiosk-config-numbers,.kiosk-attempt-filters{grid-template-columns:1fr}}.payroll-page{gap:14px;display:grid}.payroll-summary{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;display:grid}.payroll-summary>div,.payroll-detail-summary>div{border:1px solid var(--border);background:var(--surface);border-radius:6px;gap:3px;padding:12px 14px;display:grid}.payroll-summary small,.payroll-detail-summary small{color:var(--muted);text-transform:uppercase;font-size:11px}.payroll-summary strong,.payroll-detail-summary strong{font-size:20px}.payroll-summary span{color:var(--muted);font-size:12px}.payroll-filter-bar{grid-template-columns:minmax(170px,1.4fr) 130px 125px 128px 128px auto auto;align-items:end;gap:8px;padding:12px;display:grid}.payroll-filter-bar .field{min-width:0}.payroll-filter-bar .field span{font-size:11px}.payroll-filter-bar input,.payroll-filter-bar select{height:36px}.payroll-list{min-width:0}.payroll-list .table-scroll table{table-layout:fixed;min-width:940px}.payroll-list th,.payroll-list td{padding:9px 8px;font-size:12px}.payroll-list th:first-child{width:112px}.payroll-list th:nth-child(2){width:104px}.payroll-list th:nth-child(3){width:82px}.payroll-list th:nth-child(4){width:70px}.payroll-list th:nth-child(5),.payroll-list th:nth-child(6),.payroll-list th:nth-child(7){width:104px}.payroll-list th:nth-child(8){width:92px}.payroll-list th:nth-child(9){width:78px}.payroll-list th:nth-child(10){width:54px}.payroll-list td{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.payroll-list td:nth-child(2),.payroll-list td:nth-child(8){white-space:normal}.payroll-list td small,.payroll-detail-table td small{color:var(--muted);margin-top:2px;font-size:11px;display:block}.payroll-status{text-transform:capitalize;border-radius:999px;align-items:center;padding:4px 8px;font-size:11px;display:inline-flex}.payroll-status.borrador{color:#805a00;background:#fff4d6}.payroll-status.aprobada{color:#1456a0;background:#e8f1ff}.payroll-status.pagada{color:#176b37;background:#e4f7eb}.payroll-status.anulada{color:#a72f25;background:#fee9e7}.payroll-locked-row{background:#fffaf3}.payroll-period-lock{color:#805a00;text-overflow:ellipsis;white-space:nowrap;background:#fff4d6;border:1px solid #f0c98b;border-radius:4px;align-items:center;width:fit-content;max-width:100%;min-height:19px;margin-top:4px;padding:2px 6px;font-size:9px;font-weight:800;line-height:1.2;display:inline-flex;overflow:hidden}.payroll-lock-warning{color:#805a00;background:#fff8e8;border:1px solid #f0c98b;border-radius:6px;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px;padding:9px 11px;font-size:12px;display:flex}.payroll-lock-warning strong{white-space:nowrap}.payroll-lock-warning span{color:#6b4a0b;text-align:right}.payroll-form-dialog{width:min(720px,100vw - 28px)}.payroll-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.payroll-wide{grid-column:1/-1}.payroll-rule-note,.payroll-payment-note{color:#8a4310;background:#fff7ed;border:1px solid #fed7aa;border-radius:6px;padding:9px 11px;font-size:12px}.payroll-protected-values{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:12px;display:grid}.payroll-protected-values span{border:1px solid var(--border);color:var(--muted);border-radius:6px;gap:4px;padding:10px;font-size:11px;display:grid}.payroll-protected-values strong{color:var(--text);font-size:15px}.payroll-detail-dialog{width:calc(100vw - 32px);max-width:1500px;height:calc(100vh - 32px);max-height:none}.payroll-detail-dialog>form{grid-template-rows:auto minmax(0,1fr) auto;height:100%;display:grid}.payroll-detail-body{padding:14px 16px;overflow:auto}.payroll-detail-summary{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-bottom:12px;display:grid}.payroll-detail-table{border:1px solid var(--border);border-radius:6px}.payroll-detail-table table{min-width:1500px}.payroll-detail-table th,.payroll-detail-table td{padding:8px 9px;font-size:12px}.payroll-detail-actions{flex-wrap:wrap;justify-content:flex-end;gap:8px;display:flex}.payroll-row-actions{gap:5px;display:flex}.payroll-row-actions .action-trigger{width:auto;min-width:74px;padding:5px 8px}.payroll-payment-link{color:#1456a0;min-width:0;font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;gap:1px;padding:0;font-weight:700;display:grid}.payroll-payment-link small{max-width:100%;color:var(--muted);text-overflow:ellipsis;font-weight:400;overflow:hidden}.payroll-payment-dialog{background:var(--surface);width:min(780px,100vw - 28px);max-height:calc(100vh - 28px);color:var(--text-strong);border:0;border-radius:8px;margin:auto;padding:0;box-shadow:0 24px 80px #0f172a47}.payroll-payment-dialog::backdrop{background:#0f172a8f}.payroll-payment-dialog>form{grid-template-rows:auto minmax(0,1fr) auto;max-height:calc(100vh - 28px);display:grid}.payroll-payment-dialog>form>header,.payroll-payment-dialog>form>footer{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;padding:13px 18px;display:flex}.payroll-payment-dialog h2,.payroll-payment-dialog header p{margin:0}.payroll-payment-dialog h2{margin-top:2px;font-size:20px}.payroll-payment-dialog header p{color:var(--muted);font-size:12px}.payroll-payment-dialog .eyebrow{color:#1456a0;text-transform:uppercase;font-size:10px;font-weight:800}.payroll-payment-dialog header>button{border:1px solid var(--border);background:var(--surface);border-radius:6px;width:34px;height:34px;font-size:18px}.payroll-payment-dialog>form>footer{border-top:1px solid var(--border);border-bottom:0;justify-content:flex-end}.payroll-payment-body{padding:14px 18px;overflow:auto}.payroll-payment-hero{background:#f1f7ff;border:1px solid #b8d4f2;border-radius:7px;justify-content:space-between;align-items:center;gap:16px;padding:14px 16px;display:flex}.payroll-payment-hero>div{gap:2px;display:grid}.payroll-payment-hero small{color:var(--muted);text-transform:uppercase;font-size:10px}.payroll-payment-hero strong{color:#123f73;font-size:25px}.payroll-payment-hero span{color:var(--muted);font-size:11px}.payment-source{border-radius:6px;align-items:center;min-height:30px;padding:4px 10px;font-size:11px;font-weight:800;display:inline-flex}.payment-source.banco{color:#1456a0;background:#e8f1ff}.payment-source.caja{color:#176b3a;background:#e8f7ee}.payroll-payment-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:10px;display:grid}.payroll-payment-grid>div{border:1px solid var(--border);border-radius:6px;gap:2px;min-width:0;padding:10px 11px;display:grid}.payroll-payment-grid small{color:var(--muted);text-transform:uppercase;font-size:10px}.payroll-payment-grid strong,.payroll-payment-grid span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.payroll-payment-grid strong{font-size:13px}.payroll-payment-grid span{color:var(--muted);font-size:11px}.payroll-payment-description,.payroll-bank-trace,.payroll-physical-cash-note{border:1px solid var(--border);border-radius:6px;margin-top:10px;padding:10px 12px;font-size:12px}.payroll-payment-description p,.payroll-bank-trace p,.payroll-physical-cash-note{margin-block:4px}.cash-page,.receivables-page{gap:14px;display:grid}.cash-summary{border:1px solid var(--border);background:var(--surface);box-shadow:var(--shadow);border-radius:7px;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;display:grid;overflow:hidden}.cash-summary>div{border-right:1px solid var(--border);gap:4px;min-height:86px;padding:14px 16px;display:grid}.cash-summary>div:last-child{border-right:0}.cash-summary small{color:var(--muted);text-transform:uppercase;font-size:11px;font-weight:700}.cash-summary strong{color:var(--text);font-size:22px}.cash-summary span{color:var(--muted);font-size:12px}.cash-summary strong.positive{color:#168447}.cash-summary strong.negative{color:#c53b2e}.cash-summary .cash-closed-state{grid-column:1/-1;min-height:76px}.cash-filter-bar{grid-template-columns:minmax(210px,1.5fr) repeat(4,minmax(130px,1fr)) auto auto;align-items:end;gap:8px;padding-bottom:14px;display:grid}.cash-filter-bar .field{min-width:0}.cash-filter-bar .field span{font-size:11px}.cash-filter-bar input,.cash-filter-bar select{height:36px;padding:6px 9px;font-size:13px}.cash-filter-bar .button{white-space:nowrap;height:36px}.refund-section{border-top:3px solid #d66a00}.count-badge{color:#a94700;background:#fff1e5;border-radius:13px;justify-content:center;align-items:center;min-width:30px;height:26px;padding:0 8px;font-weight:800;display:inline-flex}.cash-dialog{width:min(620px,100vw - 32px)}.payment-history-dialog{width:min(820px,100vw - 32px)}.payment-history-dialog>div{flex-direction:column;max-height:min(80vh,700px);display:flex}.payment-history-dialog .dialog-body{overflow:auto}.cash-page td small,.receivables-page td small{color:var(--muted);margin-top:3px;font-size:11px;display:block}@media (width<=1200px){.cash-filter-bar{grid-template-columns:repeat(4,minmax(130px,1fr))}.cash-filter-bar .search{grid-column:span 2}}@media (width<=800px){.cash-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.cash-summary>div:nth-child(2){border-right:0}.cash-summary>div:nth-child(-n+2){border-bottom:1px solid var(--border)}.cash-filter-bar{grid-template-columns:repeat(2,minmax(0,1fr))}.cash-filter-bar .search{grid-column:1/-1}}@media (width<=520px){.cash-summary,.cash-filter-bar{grid-template-columns:1fr}.cash-summary>div{border-right:0;border-bottom:1px solid var(--border)}.cash-summary>div:last-child{border-bottom:0}.cash-filter-bar .search{grid-column:auto}}.payroll-payment-description small{color:var(--muted);font-size:10px}.payroll-bank-trace header{justify-content:space-between;gap:10px;display:flex}.payroll-bank-trace header span{color:#176b3a;font-size:11px;font-weight:800}.payroll-bank-trace>div{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:8px;display:grid}.payroll-bank-trace>div span{color:var(--muted);gap:2px;font-size:10px;display:grid}.payroll-bank-trace>div b{color:var(--text-strong);text-overflow:ellipsis;white-space:nowrap;font-size:12px;overflow:hidden}.payroll-audit-dialog{background:var(--surface);width:min(860px,100vw - 28px);max-height:calc(100vh - 28px);color:var(--text-strong);border:0;border-radius:8px;margin:auto;padding:0;box-shadow:0 24px 80px #0f172a47}.payroll-audit-dialog::backdrop{background:#0f172a8f}.payroll-audit-dialog>form{grid-template-rows:auto minmax(0,1fr) auto;max-height:calc(100vh - 28px);display:grid}.payroll-audit-dialog>form>header,.payroll-audit-actions{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;padding:13px 18px;display:flex}.payroll-audit-dialog h2,.payroll-audit-dialog header p{margin:0}.payroll-audit-dialog h2{margin-top:2px;font-size:20px}.payroll-audit-dialog header p{color:var(--muted);font-size:12px}.payroll-audit-dialog .eyebrow{color:#6d28d9;text-transform:uppercase;font-size:10px;font-weight:800}.payroll-audit-dialog>form>header>button{border:1px solid var(--border);background:var(--surface);border-radius:6px;width:34px;height:34px;font-size:18px}.payroll-audit-actions{border-top:1px solid var(--border);border-bottom:0;justify-content:flex-end}.payroll-audit-body{padding:14px 18px;overflow:auto}.payroll-audit-summary{grid-template-columns:1.6fr 1fr 1fr .6fr;gap:8px;display:grid}.payroll-audit-summary>div{border:1px solid var(--border);background:var(--canvas);border-radius:6px;gap:2px;padding:9px 11px;display:grid}.payroll-audit-summary small{color:var(--muted);text-transform:uppercase;font-size:10px}.payroll-audit-summary strong{font-size:13px}.payroll-audit-timeline{gap:0;margin:15px 0 0;padding:0;list-style:none;display:grid}.payroll-audit-timeline>li{grid-template-columns:18px minmax(0,1fr);gap:10px;padding-bottom:10px;display:grid;position:relative}.payroll-audit-timeline>li:not(:last-child):before{content:"";background:#dbe4ee;width:2px;position:absolute;top:15px;bottom:-2px;left:6px}.audit-dot{z-index:1;background:#64748b;border:3px solid #fff;border-radius:50%;width:14px;height:14px;margin-top:12px;box-shadow:0 0 0 2px #cbd5e1}.audit-dot.aprobar,.audit-dot.pagar{background:#168448;box-shadow:0 0 0 2px #a7d8ba}.audit-dot.anular{background:#c0372b;box-shadow:0 0 0 2px #efb2ad}.payroll-audit-timeline article{border:1px solid var(--border);background:var(--surface);border-radius:6px;padding:10px 12px}.payroll-audit-timeline article>header{justify-content:space-between;gap:12px;display:flex}.payroll-audit-timeline article>header div{gap:2px;display:grid}.payroll-audit-timeline article>header small,.payroll-audit-timeline article>header b{color:var(--muted);font-size:10px}.payroll-audit-timeline article>p{color:var(--muted);margin:7px 0 0;font-size:12px}.payroll-audit-timeline article>footer{color:var(--muted);flex-wrap:wrap;gap:4px 14px;margin-top:8px;font-size:10px;display:flex}.payroll-audit-timeline article>footer b{color:var(--text-soft)}.audit-status-change{align-items:center;gap:6px;display:flex}.audit-status-change span{color:var(--text-soft);background:#eef2f7;border-radius:4px;padding:2px 6px;font-size:10px;font-weight:700}.audit-status-change i{font-style:normal}.payroll-report-dialog{background:var(--surface);width:min(1420px,100vw - 24px);max-height:calc(100vh - 24px);color:var(--text-strong);border:0;border-radius:8px;margin:auto;padding:0;box-shadow:0 24px 80px #0f172a47}.payroll-report-dialog::backdrop{background:#0f172a8f}.payroll-report-dialog>form{grid-template-rows:auto minmax(0,1fr) auto;max-height:calc(100vh - 24px);display:grid}.payroll-report-toolbar,.payroll-report-actions{border-bottom:1px solid var(--border);background:var(--surface);justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;display:flex}.payroll-report-toolbar h2,.payroll-report-toolbar p{margin:0}.payroll-report-toolbar h2{margin-top:2px;font-size:20px}.payroll-report-toolbar p{color:var(--muted);font-size:12px}.payroll-report-toolbar .eyebrow{color:#b45309;text-transform:uppercase;font-size:10px;font-weight:800}.payroll-report-toolbar>button{border:1px solid var(--border);background:var(--surface);border-radius:6px;width:34px;height:34px;font-size:18px}.payroll-report-actions{border-top:1px solid var(--border);border-bottom:0;justify-content:flex-end}.payroll-report-sheet{background:var(--surface);padding:18px 20px;overflow:auto}.payroll-report-company{border-bottom:2px solid #17385f;justify-content:space-between;gap:20px;padding-bottom:11px;display:flex}.payroll-report-company>div{gap:2px;display:grid}.payroll-report-company>div:last-child{text-align:right;justify-items:end}.payroll-report-company strong{font-size:21px}.payroll-report-company b{color:var(--text-strong);font-size:17px}.payroll-report-company span{font-size:12px}.payroll-report-company small{color:var(--muted);font-size:10px}.payroll-report-meta,.payroll-report-summary{grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;margin-top:10px;display:grid}.payroll-report-meta>div,.payroll-report-summary>div{border:1px solid var(--border);background:var(--canvas);border-radius:5px;gap:2px;min-width:0;padding:8px 9px;display:grid}.payroll-report-meta small,.payroll-report-summary small{color:var(--muted);text-transform:uppercase;font-size:9px}.payroll-report-meta strong,.payroll-report-summary strong{text-overflow:ellipsis;white-space:nowrap;font-size:12px;overflow:hidden}.payroll-report-summary strong{font-size:15px}.payroll-report-summary .net{color:#126834;background:#edf9f2;border-color:#8fcaa9}.payroll-report-table{border:1px solid var(--border);border-radius:6px;margin-top:11px;overflow:auto}.payroll-report-table table{border-collapse:collapse;width:100%;min-width:1180px}.payroll-report-table th,.payroll-report-table td{text-align:left;border-bottom:1px solid #edf0f4;padding:7px 8px;font-size:10px}.payroll-report-table th{color:#fff;text-transform:uppercase;background:#17385f;font-size:9px}.payroll-report-table td strong,.payroll-report-table td small{display:block}.payroll-report-table td small{color:var(--muted);margin-top:2px}.payroll-report-table .number{text-align:right;white-space:nowrap}.payroll-report-table tfoot th{color:var(--text-strong);background:#eef3f8;border-bottom:0;font-size:10px}.payroll-report-note{border:1px solid var(--border);border-radius:5px;margin-top:10px;padding:8px 10px;font-size:11px}.payroll-report-note p{margin:3px 0 0}.payroll-accounting-dialog{background:var(--surface);width:min(980px,100vw - 28px);max-height:calc(100vh - 28px);color:var(--text-strong);border:0;border-radius:8px;margin:auto;padding:0;box-shadow:0 24px 80px #0f172a47}.payroll-accounting-dialog::backdrop{background:#0f172a8f}.payroll-accounting-dialog>form{grid-template-rows:auto auto auto auto minmax(0,1fr) auto;max-height:calc(100vh - 28px);display:grid}.payroll-accounting-header,.payroll-accounting-actions{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;padding:13px 18px;display:flex}.payroll-accounting-header h2,.payroll-accounting-header p{margin:0}.payroll-accounting-header h2{margin-top:2px;font-size:20px}.payroll-accounting-header p{color:var(--muted);font-size:12px}.payroll-accounting-header .eyebrow{color:#b45309;text-transform:uppercase;font-size:10px;font-weight:800}.payroll-accounting-header>button{border:1px solid var(--border);background:var(--surface);border-radius:6px;width:34px;height:34px;font-size:18px}.payroll-accounting-meta{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:12px 18px 0;display:grid}.payroll-accounting-meta>div{border:1px solid var(--border);background:var(--canvas);border-radius:6px;gap:2px;min-width:0;padding:9px 11px;display:grid}.payroll-accounting-meta small,.payroll-accounting-summary small{color:var(--muted);text-transform:uppercase;font-size:10px}.payroll-accounting-meta strong{text-overflow:ellipsis;white-space:nowrap;font-size:13px;overflow:hidden}.payroll-accounting-summary{grid-template-columns:repeat(3,minmax(0,1fr)) auto;align-items:stretch;gap:8px;padding:10px 18px;display:grid}.payroll-accounting-summary>div{border:1px solid var(--border);border-radius:6px;gap:2px;padding:10px 12px;display:grid}.payroll-accounting-summary strong{font-size:18px}.accounting-balance{border:1px solid;border-radius:6px;justify-content:center;align-items:center;min-width:128px;padding:0 14px;font-size:12px;font-weight:800;display:inline-flex}.accounting-balance.unbalanced{color:#a72f25;background:#fff0ee;border-color:#efb2ad}.payroll-accounting-description{color:var(--muted);flex-wrap:wrap;gap:6px 20px;padding:0 18px 10px;font-size:12px;display:flex}.payroll-accounting-description p{margin:0}.payroll-accounting-description small{color:var(--muted);flex-basis:100%}.payroll-accounting-table{border:1px solid var(--border);border-radius:6px;margin:0 18px;overflow:auto}.payroll-accounting-table table{border-collapse:collapse;width:100%;min-width:720px}.payroll-accounting-table th,.payroll-accounting-table td{text-align:left;border-bottom:1px solid #edf0f4;padding:8px 10px;font-size:12px}.payroll-accounting-table th{background:var(--subtle);color:var(--muted);text-transform:uppercase;font-size:10px}.payroll-accounting-table td strong,.payroll-accounting-table td small{display:block}.payroll-accounting-table td small{color:var(--muted);margin-top:2px}.payroll-accounting-table .number{text-align:right;white-space:nowrap}.payroll-accounting-table tfoot th{background:var(--canvas);color:var(--text-strong);border-bottom:0;font-size:12px}.payroll-accounting-actions{border-top:1px solid var(--border);border-bottom:0;justify-content:flex-end;margin-top:12px}.payroll-payslip-dialog{background:var(--surface);width:min(1080px,100vw - 28px);max-height:calc(100vh - 28px);color:var(--text-strong);border:0;border-radius:8px;margin:auto;padding:0;box-shadow:0 24px 80px #0f172a47}.payroll-payslip-dialog::backdrop{background:#0f172a8f}.payroll-payslip-dialog>form{grid-template-rows:auto minmax(0,1fr) auto;max-height:calc(100vh - 28px);display:grid}.payslip-toolbar,.payslip-actions{border-bottom:1px solid var(--border);background:var(--surface);justify-content:space-between;align-items:center;gap:12px;padding:13px 18px;display:flex}.payslip-toolbar h2,.payslip-toolbar p{margin:0}.payslip-toolbar h2{font-size:19px}.payslip-toolbar p{color:var(--muted);margin-top:2px;font-size:12px}.payslip-toolbar>button{border:1px solid var(--border);background:var(--surface);border-radius:6px;width:34px;height:34px;font-size:18px}.payslip-actions{border-top:1px solid var(--border);border-bottom:0;justify-content:flex-end}.payroll-payslip{background:var(--surface);padding:22px 26px;overflow:auto}.payslip-company{border-bottom:2px solid #17385f;justify-content:space-between;gap:24px;padding-bottom:13px;display:flex}.payslip-company>div{gap:3px;display:grid}.payslip-company>div:last-child{text-align:right;justify-items:end}.payslip-company strong{font-size:22px}.payslip-company b{color:var(--text-strong);font-size:16px}.payslip-company span{font-size:13px}.payslip-company small{color:var(--muted);font-size:11px}.payslip-meta,.payslip-employee,.payslip-attendance{gap:8px;margin-top:12px;display:grid}.payslip-meta{grid-template-columns:1.7fr repeat(3,1fr)}.payslip-employee{border:1px solid var(--border);background:var(--canvas);border-radius:6px;grid-template-columns:1.4fr repeat(3,1fr);padding:11px}.payslip-attendance{grid-template-columns:repeat(4,1fr)}.payslip-meta>div,.payslip-employee>div,.payslip-attendance>div{gap:2px;min-width:0;display:grid}.payslip-meta small,.payslip-employee small,.payslip-attendance small{color:var(--muted);text-transform:uppercase;font-size:10px}.payslip-meta strong,.payslip-employee strong,.payslip-attendance strong{text-overflow:ellipsis;white-space:nowrap;font-size:13px;overflow:hidden}.payslip-employee span{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:11px;overflow:hidden}.payslip-columns{grid-template-columns:1fr 1fr;gap:12px;margin-top:15px;display:grid}.payslip-lines{border:1px solid var(--border);border-radius:6px;overflow:hidden}.payslip-lines h3{border-bottom:1px solid var(--border);background:var(--subtle);color:var(--text-strong);margin:0;padding:9px 11px;font-size:13px}.payslip-lines table{border-collapse:collapse;width:100%}.payslip-lines th,.payslip-lines td{text-align:left;border-bottom:1px solid #edf0f4;padding:7px 9px;font-size:11px}.payslip-lines th:last-child,.payslip-lines td:last-child{text-align:right;white-space:nowrap}.payslip-lines th{color:var(--muted);text-transform:uppercase;font-size:10px}.payslip-lines td:nth-child(2){color:var(--muted)}.payslip-lines .negative{color:#a72f25}.payslip-totals{grid-template-columns:repeat(3,1fr);gap:8px;margin-top:13px;display:grid}.payslip-totals>div{border:1px solid var(--border);border-radius:6px;gap:2px;padding:9px 11px;display:grid}.payslip-totals small{color:var(--muted);text-transform:uppercase;font-size:10px}.payslip-totals strong{font-size:16px}.payslip-totals .net{color:#126834;background:#edf9f2;border-color:#8fcaa9}.payslip-notes{border:1px solid var(--border);border-radius:6px;margin-top:11px;padding:9px 11px;font-size:11px}.payslip-notes p{margin:3px 0}.payslip-signatures{grid-template-columns:1fr 1fr;gap:90px;margin:42px 50px 4px;display:grid}.payslip-signatures div{text-align:center;gap:6px;display:grid}.payslip-signatures span{border-top:1px solid #475569}.payslip-signatures b{font-size:11px}.payslip-error{margin:12px 18px}@media (width<=900px){.payroll-summary,.payroll-filter-bar{grid-template-columns:repeat(2,minmax(0,1fr))}.payroll-filter-bar .button{width:100%}.payroll-detail-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=560px){.payroll-summary,.payroll-filter-bar,.payroll-form-grid,.payroll-protected-values{grid-template-columns:1fr}.payroll-wide{grid-column:auto}.payroll-detail-dialog{width:calc(100vw - 12px);height:calc(100vh - 12px)}.payroll-detail-summary{grid-template-columns:1fr 1fr}.payroll-detail-actions .button{flex:140px}.payroll-page .page-actions{width:100%;display:grid}.payroll-payment-dialog{width:calc(100vw - 12px);max-height:calc(100vh - 12px)}.payroll-payment-grid,.payroll-bank-trace>div{grid-template-columns:1fr 1fr}.payroll-audit-dialog{width:calc(100vw - 12px);max-height:calc(100vh - 12px)}.payroll-audit-summary{grid-template-columns:1fr 1fr}.payroll-report-dialog{width:calc(100vw - 8px);max-height:calc(100vh - 8px)}.payroll-report-meta,.payroll-report-summary{grid-template-columns:1fr 1fr}.payroll-report-company{display:grid}.payroll-report-company>div:last-child{text-align:left;justify-items:start}.payroll-accounting-dialog{width:calc(100vw - 12px);max-height:calc(100vh - 12px)}.payroll-accounting-dialog>form{max-height:calc(100vh - 12px)}.payroll-accounting-meta,.payroll-accounting-summary{grid-template-columns:1fr 1fr}.accounting-balance{min-height:42px}.payroll-payslip-dialog{width:calc(100vw - 12px);max-height:calc(100vh - 12px)}.payroll-payslip-dialog>form{max-height:calc(100vh - 12px)}.payroll-payslip{padding:15px 12px}.payslip-company,.payslip-columns{grid-template-columns:1fr;display:grid}.payslip-company>div:last-child{text-align:left;justify-items:start}.payslip-meta,.payslip-employee,.payslip-attendance{grid-template-columns:1fr 1fr}.payslip-totals{grid-template-columns:1fr}.payslip-signatures{gap:28px;margin-inline:8px}}@media print{body *{visibility:hidden!important}.payroll-detail-dialog,.payroll-detail-dialog *{visibility:visible!important}.payroll-detail-dialog{width:100%;height:auto;box-shadow:none;border:0;position:absolute;inset:0}.payroll-detail-dialog header button,.payroll-detail-dialog footer{display:none!important}.payroll-detail-body,.payroll-detail-table{overflow:visible}.payroll-detail-table table{min-width:0;font-size:9px}body.printing-payroll-payslip .payroll-detail-dialog,body.printing-payroll-payslip .payroll-detail-dialog *{visibility:hidden!important}body.printing-payroll-payslip .payroll-payslip-dialog,body.printing-payroll-payslip .payroll-payslip-dialog *{visibility:visible!important}body.printing-payroll-payslip .payroll-payslip-dialog{width:100%;max-width:none;max-height:none;box-shadow:none;border:0;margin:0;display:block;position:absolute;inset:0}body.printing-payroll-payslip .payroll-payslip-dialog>form{max-height:none;display:block}body.printing-payroll-payslip .payslip-toolbar,body.printing-payroll-payslip .payslip-actions{display:none!important}body.printing-payroll-payslip .payroll-payslip{padding:0;overflow:visible}body.printing-payroll-payslip .payslip-company,body.printing-payroll-payslip .payslip-employee,body.printing-payroll-payslip .payslip-attendance,body.printing-payroll-payslip .payslip-columns,body.printing-payroll-payslip .payslip-totals{break-inside:avoid}body.printing-payroll-payslip .payslip-lines th,body.printing-payroll-payslip .payslip-lines td{padding:5px 7px;font-size:9px}body.printing-payroll-payslip .payslip-signatures{margin-top:30px}body.printing-payroll-report .payroll-detail-dialog,body.printing-payroll-report .payroll-detail-dialog *{visibility:hidden!important}body.printing-payroll-report .payroll-report-dialog,body.printing-payroll-report .payroll-report-dialog *{visibility:visible!important}body.printing-payroll-report .payroll-report-dialog{width:100%;max-width:none;max-height:none;box-shadow:none;border:0;margin:0;display:block;position:absolute;inset:0}body.printing-payroll-report .payroll-report-dialog>form{max-height:none;display:block}body.printing-payroll-report .payroll-report-toolbar,body.printing-payroll-report .payroll-report-actions{display:none!important}body.printing-payroll-report .payroll-report-sheet,.printing-payroll-report .payroll-report-table{padding:0;overflow:visible}body.printing-payroll-report .payroll-report-table table{min-width:0}body.printing-payroll-report .payroll-report-table th,body.printing-payroll-report .payroll-report-table td{padding:4px 5px;font-size:7px}body.printing-payroll-report .payroll-report-company,body.printing-payroll-report .payroll-report-meta,body.printing-payroll-report .payroll-report-summary{break-inside:avoid}.supplier-financial-dialog{border:0;border-radius:8px;width:min(1180px,100vw - 28px);max-width:none;max-height:calc(100vh - 28px);padding:0;overflow:hidden;box-shadow:0 28px 80px #0f172a47}.supplier-financial-dialog::backdrop{background:#0f172a75}.supplier-financial-shell{background:var(--surface);grid-template-rows:auto minmax(0,1fr) auto;max-height:calc(100vh - 28px);display:grid}.supplier-financial-shell>header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:16px;padding:15px 18px;display:flex}.supplier-financial-shell>header small{color:#ea580c;font-size:10px;font-weight:800}.supplier-financial-shell>header h2{margin:2px 0;font-size:22px}.supplier-financial-shell>header p{color:var(--muted);margin:0;font-size:12px}.supplier-financial-body{min-height:0;padding:14px 18px;overflow:auto}.supplier-financial-summary{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:12px;display:grid}.supplier-financial-summary.statement-summary{grid-template-columns:repeat(5,minmax(0,1fr))}.supplier-financial-summary article{border:1px solid var(--border);background:var(--canvas);border-radius:6px;gap:3px;min-height:68px;padding:10px 12px;display:grid}.supplier-financial-summary small{color:var(--muted);text-transform:uppercase;font-size:10px;font-weight:700}.supplier-financial-summary strong{font-size:18px}.supplier-financial-table{border:1px solid var(--border);border-radius:6px;max-height:calc(100vh - 245px)}.supplier-financial-table table{min-width:980px}.supplier-financial-table th{z-index:1;background:var(--canvas);position:sticky;top:0}.supplier-financial-shell>footer{border-top:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;padding:10px 18px;display:flex}.supplier-financial-shell>footer span{color:var(--muted);font-size:12px}.positive-value{color:#15803d}.negative-value{color:#dc2626}.financial-movement{color:#c2410c;background:#fff7ed;border-radius:999px;align-items:center;min-height:22px;padding:2px 8px;font-size:11px;font-weight:800;display:inline-flex}.financial-movement.pago{color:#15803d;background:#ecfdf5}.financial-status{color:#1d4ed8;text-transform:capitalize;background:#eff6ff;border-radius:999px;align-items:center;min-height:22px;padding:2px 8px;font-size:10px;font-weight:800;display:inline-flex}.financial-status.pagada,.financial-status.registrada,.financial-status.registrado{color:#15803d;background:#ecfdf5}.financial-status.pendiente,.financial-status.abonada{color:#c2410c;background:#fff7ed}.financial-status.anulada{color:#dc2626;background:#fef2f2}.product-stock-dialog{border:0;border-radius:8px;width:min(1260px,100vw - 28px);max-width:none;max-height:calc(100vh - 28px);padding:0;overflow:hidden;box-shadow:0 28px 80px #0f172a47}.product-stock-dialog::backdrop{background:#0f172a75}.product-stock-shell{background:var(--surface);grid-template-rows:auto minmax(0,1fr) auto;max-height:calc(100vh - 28px);display:grid}.product-stock-shell>header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:16px;padding:14px 18px;display:flex}.product-stock-shell>header small{color:#ea580c;font-size:10px;font-weight:800}.product-stock-shell>header h2{margin:2px 0;font-size:22px}.product-stock-shell>header p{color:var(--muted);margin:0;font-size:12px}.product-stock-body{min-height:0;padding:14px 18px;overflow:auto}.product-stock-summary{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-bottom:12px;display:grid}.product-stock-summary article{border:1px solid var(--border);background:var(--canvas);border-radius:6px;gap:2px;min-height:67px;padding:9px 11px;display:grid}.product-stock-summary small{color:var(--muted);text-transform:uppercase;font-size:10px;font-weight:700}.product-stock-summary strong{font-size:18px}.product-stock-summary span{color:var(--muted);font-size:10px}.product-stock-table{border:1px solid var(--border);border-radius:6px;max-height:calc(100vh - 242px)}.product-stock-table table{min-width:1120px}.product-stock-table th{z-index:1;background:var(--canvas);position:sticky;top:0}.product-stock-shell>footer{border-top:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;padding:10px 18px;display:flex}.product-stock-shell>footer span{color:var(--muted);font-size:12px}@media (width<=760px){.supplier-financial-dialog{width:calc(100vw - 12px);max-height:calc(100vh - 12px)}.supplier-financial-shell{max-height:calc(100vh - 12px)}.supplier-financial-summary,.supplier-financial-summary.statement-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.supplier-financial-shell>header,.supplier-financial-body,.supplier-financial-shell>footer{padding-left:11px;padding-right:11px}.product-stock-dialog{width:calc(100vw - 12px);max-height:calc(100vh - 12px)}.product-stock-shell{max-height:calc(100vh - 12px)}.product-stock-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.product-stock-shell>header,.product-stock-body,.product-stock-shell>footer{padding-left:11px;padding-right:11px}}}.payroll-period-page{gap:10px;width:min(1500px,100%);display:grid}.payroll-period-filters{grid-template-columns:minmax(190px,1.4fr) minmax(112px,.65fr) repeat(2,minmax(130px,.75fr)) auto auto;align-items:end;gap:7px;padding:10px;display:grid}.payroll-period-filters .field{gap:3px;min-width:0}.payroll-period-filters .field span{font-size:10px}.payroll-period-filters input,.payroll-period-filters select,.payroll-period-filters .button{min-width:0;height:34px;min-height:34px;font-size:12px}.payroll-period-summary{grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;display:grid}.payroll-period-summary>div{border:1px solid var(--border);background:var(--surface);border-radius:6px;gap:2px;min-width:0;padding:9px 10px;display:grid}.payroll-period-summary>div.closed{color:#176b37;background:#edf9f2;border-color:#9bcfb1}.payroll-period-summary>div.reopened{color:#7a3a92;background:#f8f0fc;border-color:#d7bee8}.payroll-period-summary small{color:var(--muted);text-transform:uppercase;font-size:9px}.payroll-period-summary strong{text-overflow:ellipsis;white-space:nowrap;font-size:15px;overflow:hidden}.payroll-period-list{min-width:0;overflow:visible}.payroll-period-list table{table-layout:fixed;min-width:1120px}.payroll-period-list th,.payroll-period-list td{padding:7px 8px;font-size:11px}.payroll-period-list td{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.payroll-period-list td small,.payroll-period-list td strong{text-overflow:ellipsis;display:block;overflow:hidden}.payroll-period-list td small{color:var(--muted);margin-top:2px;font-size:9px}.payroll-period-list td.number{text-align:right}.payroll-period-status{text-transform:capitalize;border-radius:999px;align-items:center;min-height:22px;padding:2px 7px;font-size:10px;font-weight:700;display:inline-flex}.payroll-period-status.cerrado{color:#176b37;background:#e5f6ec}.payroll-period-status.reabierto{color:#7a3a92;background:#f3e8f8}.payroll-period-close-dialog{width:min(980px,100vw - 24px)}.payroll-period-reopen-dialog{width:min(600px,100vw - 24px)}.payroll-period-history-dialog{width:min(760px,100vw - 24px)}.payroll-period-book-dialog{width:min(1280px,100vw - 24px);height:min(820px,100vh - 24px);max-height:calc(100vh - 24px)}.payroll-period-book-dialog>form{grid-template-rows:auto minmax(0,1fr) auto;height:100%;display:grid}.payroll-period-book-dialog>form>footer{border-top:1px solid var(--border)}.payroll-period-book-sheet{gap:9px;min-height:0;padding:12px 14px;display:grid;overflow:auto}.payroll-period-book-company{border:1px solid var(--border);background:var(--canvas);border-radius:7px;justify-content:space-between;align-items:flex-start;gap:16px;padding:10px 12px;display:flex}.payroll-period-book-company strong,.payroll-period-book-company span,.payroll-period-book-company small,.payroll-period-book-company b{display:block}.payroll-period-book-company strong{font-size:16px}.payroll-period-book-company span{color:var(--muted);margin-top:2px;font-size:11px}.payroll-period-book-company small{color:var(--muted);margin-top:2px;font-size:10px}.payroll-period-book-company>div:last-child{text-align:right}.payroll-period-book-summary{border:1px solid var(--border);border-radius:7px;grid-template-columns:repeat(8,minmax(0,1fr));display:grid;overflow:hidden}.payroll-period-book-summary>div{border-right:1px solid var(--border);background:var(--surface);gap:2px;min-width:0;padding:8px 9px;display:grid}.payroll-period-book-summary>div:last-child{border-right:0}.payroll-period-book-summary>div.net{color:#176b37;background:#edf9f2}.payroll-period-book-summary small{color:var(--muted);text-overflow:ellipsis;text-transform:uppercase;white-space:nowrap;font-size:9px;overflow:hidden}.payroll-period-book-summary strong{text-overflow:ellipsis;white-space:nowrap;font-size:14px;overflow:hidden}.payroll-period-book-tabs{margin-top:0}.payroll-period-book-list{min-width:0}.payroll-period-book-list table{table-layout:fixed;min-width:1160px}.payroll-period-book-list th,.payroll-period-book-list td{padding:6px 7px;font-size:11px}.payroll-period-book-list td{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.payroll-period-book-list td small,.payroll-period-book-list td strong{text-overflow:ellipsis;display:block;overflow:hidden}.payroll-period-book-list td small{color:var(--muted);margin-top:2px;font-size:9px}.payroll-period-book-observation{color:#7c2d12;background:#fff7ed;border-left:3px solid #f97316;margin:0;padding:8px 10px;font-size:11px}.payroll-period-date-grid{grid-template-columns:repeat(2,minmax(0,1fr)) auto;align-items:end;gap:8px;display:grid}.payroll-period-date-grid .button{min-height:38px}.payroll-period-validation{border:1px solid;border-radius:7px;gap:9px;padding:10px;display:grid}.payroll-period-validation.eligible{background:#f5fbf7;border-color:#9bcfb1}.payroll-period-validation.blocked{background:#fff7f6;border-color:#efb1aa}.payroll-period-validation-head{justify-content:space-between;align-items:center;gap:12px;display:flex}.payroll-period-validation-head>div{gap:2px;display:grid}.payroll-period-validation-head small{color:var(--muted);font-size:10px}.payroll-period-validation-summary{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;display:grid}.payroll-period-validation-summary span{border:1px solid var(--border);background:var(--surface);border-radius:5px;justify-content:space-between;gap:5px;padding:6px 8px;font-size:10px;display:flex}.payroll-period-validation ul{color:#b42318;margin:0;padding-left:18px;font-size:11px}.payroll-period-candidate-table{border:1px solid var(--border);background:var(--surface);border-radius:5px;max-height:230px}.payroll-period-candidate-table table{min-width:760px}.payroll-period-candidate-table th,.payroll-period-candidate-table td{padding:6px;font-size:10px}.payroll-period-help{color:var(--text-soft);background:#eff6ff;border-left:3px solid #60a5fa;margin:0;padding:8px 10px;font-size:11px}.payroll-period-history-body{gap:8px;max-height:min(620px,70vh);padding:14px;display:grid;overflow:auto}.payroll-period-history-event{gap:5px;display:grid}.payroll-period-history-event>div{justify-content:space-between;align-items:center;gap:10px;display:flex}.payroll-period-history-event p,.payroll-period-history-event small{margin:0}.payroll-period-history-event small{color:var(--muted);font-size:10px}.payroll-period-reopen-detail{background:#faf5ff;border-left:3px solid #a855f7;padding:7px 9px;font-size:11px}@media (width<=980px){.payroll-period-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.payroll-period-search{grid-column:span 2}.payroll-period-summary{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (width<=640px){.payroll-period-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.payroll-period-search{grid-column:1/-1}.payroll-period-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.payroll-period-summary>div:last-child{grid-column:1/-1}.payroll-period-page .page-actions{width:100%;display:grid}.payroll-period-date-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.payroll-period-date-grid .button{grid-column:1/-1}.payroll-period-validation-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.payroll-period-book-dialog{border-radius:0;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0}.payroll-period-book-company{display:grid}.payroll-period-book-company>div:last-child{text-align:left}.payroll-period-book-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.payroll-period-book-summary>div:nth-child(2n){border-right:0}}.payroll-history-page{gap:10px;width:min(1680px,100%);display:grid}.payroll-history-filters{grid-template-columns:minmax(140px,1.35fr) minmax(150px,1.25fr) repeat(5,minmax(88px,.72fr)) auto auto;align-items:end;gap:7px;padding:10px;display:grid}.payroll-history-filters .field{gap:3px;min-width:0}.payroll-history-filters .field span{font-size:10px}.payroll-history-filters input,.payroll-history-filters select,.payroll-history-filters .button{min-width:0;height:34px;min-height:34px;font-size:12px}.payroll-history-summary{grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;display:grid}.payroll-history-summary>div{border:1px solid var(--border);background:var(--surface);border-radius:6px;gap:2px;min-width:0;padding:9px 11px;display:grid}.payroll-history-summary>div.net{background:#edf9f2;border-color:#9bcfb1}.payroll-history-summary small{color:var(--muted);text-transform:uppercase;font-size:10px}.payroll-history-summary strong{text-overflow:ellipsis;white-space:nowrap;font-size:16px;overflow:hidden}.payroll-history-summary span{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:10px;overflow:hidden}.payroll-history-comparison{grid-template-columns:repeat(3,minmax(0,1fr));padding:0;display:grid;overflow:hidden}.payroll-history-comparison>div{border-right:1px solid var(--border);grid-template-columns:minmax(0,1fr) auto;gap:2px 12px;padding:9px 12px;display:grid}.payroll-history-comparison>div:last-child{border-right:0}.payroll-history-comparison small{color:var(--muted);text-transform:uppercase;grid-column:1/-1;font-size:10px}.payroll-history-comparison strong{text-overflow:ellipsis;white-space:nowrap;font-size:12px;overflow:hidden}.payroll-history-comparison b{text-align:right;font-size:13px}.payroll-history-comparison .positive b,.payroll-history-comparison .positive strong{color:#176b37}.payroll-history-comparison .negative b,.payroll-history-comparison .negative strong{color:#b42318}.payroll-history-tabs{border-bottom:1px solid var(--border);gap:3px;display:flex}.payroll-history-tabs button{min-height:34px;color:var(--muted);cursor:pointer;background:0 0;border:0;border-bottom:2px solid #0000;padding:6px 14px;font-weight:700}.payroll-history-tabs button.active{border-bottom-color:var(--primary);color:var(--primary)}.payroll-history-list{min-width:0;overflow:visible}.payroll-history-list table{table-layout:fixed;min-width:1380px}.payroll-history-list th,.payroll-history-list td{padding:7px 8px;font-size:11px}.payroll-history-list td{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.payroll-history-list td small,.payroll-history-list td strong{text-overflow:ellipsis;display:block;overflow:hidden}.payroll-history-list td small{color:var(--muted);margin-top:2px;font-size:9px}.payroll-history-list td.number{text-align:right}.payroll-history-list .button.compact{width:auto;height:28px;min-height:28px;padding:4px 9px;font-size:11px}@media (width<=1180px){.payroll-history-filters{grid-template-columns:repeat(4,minmax(0,1fr))}.payroll-history-filters .history-search{grid-column:span 2}.payroll-history-summary{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (width<=700px){.payroll-history-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.payroll-history-filters .history-search{grid-column:1/-1}.payroll-history-summary,.payroll-history-comparison{grid-template-columns:1fr}.payroll-history-comparison>div{border-right:0;border-bottom:1px solid var(--border)}.payroll-history-comparison>div:last-child{border-bottom:0}.payroll-history-page .page-actions{width:100%;display:grid}}@media print{body.printing-payroll-history *{visibility:hidden!important}body.printing-payroll-history .payroll-history-page,body.printing-payroll-history .payroll-history-page *{visibility:visible!important}body.printing-payroll-history .payroll-history-page{width:100%;max-width:none;padding:0;position:absolute;inset:0}body.printing-payroll-history .page-actions,body.printing-payroll-history .employee-breadcrumb,body.printing-payroll-history .payroll-history-filters,body.printing-payroll-history .payroll-history-tabs,body.printing-payroll-history .pagination,body.printing-payroll-history .payroll-history-list .button{display:none!important}body.printing-payroll-history .payroll-history-summary{grid-template-columns:repeat(6,minmax(0,1fr))}body.printing-payroll-history .payroll-history-comparison{grid-template-columns:repeat(3,minmax(0,1fr))}body.printing-payroll-history .payroll-history-list .table-scroll{overflow:visible}body.printing-payroll-history .payroll-history-list table{table-layout:auto;min-width:0}body.printing-payroll-history .payroll-history-list th,body.printing-payroll-history .payroll-history-list td{padding:4px;font-size:7px}body.printing-payroll-period-book *{visibility:hidden!important}body.printing-payroll-period-book .payroll-period-book-dialog,body.printing-payroll-period-book .payroll-period-book-dialog *{visibility:visible!important}body.printing-payroll-period-book .payroll-period-book-dialog{width:100%;max-width:none;height:auto;max-height:none;box-shadow:none;border:0;margin:0;display:block;position:absolute;inset:0}body.printing-payroll-period-book .payroll-period-book-dialog>form{height:auto;max-height:none;display:block}body.printing-payroll-period-book .payroll-period-book-dialog>form>header,body.printing-payroll-period-book .payroll-period-book-dialog>form>footer,body.printing-payroll-period-book .payroll-period-book-tabs{display:none!important}body.printing-payroll-period-book .payroll-period-book-sheet{padding:0;overflow:visible}body.printing-payroll-period-book .payroll-period-book-summary{grid-template-columns:repeat(8,minmax(0,1fr))}body.printing-payroll-period-book .payroll-period-book-list .table-scroll{overflow:visible}body.printing-payroll-period-book .payroll-period-book-list table{table-layout:auto;min-width:0}body.printing-payroll-period-book .payroll-period-book-list th,body.printing-payroll-period-book .payroll-period-book-list td{padding:4px;font-size:7px}body.printing-payroll-period-book .payroll-period-book-company,body.printing-payroll-period-book .payroll-period-book-summary{break-inside:avoid}}.payroll-reconciliation-page{gap:10px;width:min(1700px,100%);display:grid}.payroll-reconciliation-filters{grid-template-columns:minmax(150px,1.25fr) repeat(4,minmax(96px,.72fr)) repeat(2,minmax(108px,.7fr)) auto auto;align-items:end;gap:7px;padding:10px;display:grid}.payroll-reconciliation-filters .field{gap:3px;min-width:0}.payroll-reconciliation-filters .field span{font-size:10px}.payroll-reconciliation-filters input,.payroll-reconciliation-filters select,.payroll-reconciliation-filters .button{min-width:0;height:34px;min-height:34px;font-size:12px}.payroll-reconciliation-summary{grid-template-columns:repeat(9,minmax(0,1fr));gap:7px;display:grid}.payroll-reconciliation-summary>div{border:1px solid var(--border);background:var(--surface);border-radius:6px;gap:2px;min-width:0;padding:9px 10px;display:grid}.payroll-reconciliation-summary>div.correct{color:#176b37;background:#edf9f2;border-color:#9bcfb1}.payroll-reconciliation-summary>div.pending{color:#9a5b06;background:#fff8e8;border-color:#f0c98b}.payroll-reconciliation-summary>div.inconsistent{color:#b42318;background:#fff1ef;border-color:#efb1aa}.payroll-reconciliation-summary>div.closed{color:#175ea8;background:#eef5ff;border-color:#a9c8f0}.payroll-reconciliation-summary>div.reopened{color:#7a3a92;background:#f8f0fc;border-color:#d7bee8}.payroll-reconciliation-summary small{color:var(--muted);text-transform:uppercase;font-size:9px}.payroll-reconciliation-summary strong{text-overflow:ellipsis;white-space:nowrap;font-size:15px;overflow:hidden}.payroll-reconciliation-list{min-width:0;overflow:visible}.payroll-reconciliation-list table{table-layout:fixed;min-width:1540px}.payroll-reconciliation-list th,.payroll-reconciliation-list td{padding:7px 8px;font-size:11px}.payroll-reconciliation-list td{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.payroll-reconciliation-list td small,.payroll-reconciliation-list td strong{text-overflow:ellipsis;display:block;overflow:hidden}.payroll-reconciliation-list td small{color:var(--muted);margin-top:2px;font-size:9px}.payroll-reconciliation-list .payroll-period-lock{display:inline-flex}.payroll-reconciliation-list td.number{text-align:right}.reconciliation-status{background:var(--subtle);color:#475467;text-transform:uppercase;border-radius:5px;align-items:center;min-height:22px;padding:3px 7px;font-size:9px;font-weight:800;display:inline-flex}.reconciliation-status.correcta{color:#176b37;background:#e7f6ed}.reconciliation-status.pendiente{color:#925b05;background:#fff2cf}.reconciliation-status.inconsistente{color:#b42318;background:#fee9e7}.reconciliation-status.no_aplica{background:var(--subtle);color:var(--muted)}.reconciliation-closure-status{min-height:22px;color:var(--muted);text-transform:uppercase;background:#f2f4f7;border-radius:5px;align-items:center;padding:3px 7px;font-size:9px;font-weight:800;display:inline-flex}.reconciliation-closure-status.conciliada{color:#175ea8;background:#eaf2ff}.reconciliation-closure-status.reabierta{color:#7a3a92;background:#f8eefa}.payroll-reconciliation-command-dialog{width:min(600px,100vw - 24px)}.reconciliation-command-note,.reconciliation-command-warning{color:#245681;background:#f2f7fd;border:1px solid #bad2ee;border-radius:5px;margin:0 0 12px;padding:9px 10px;font-size:12px}.reconciliation-command-warning{color:#8a4d08;background:#fff8ed;border-color:#ecc8a0}.reconciliation-command-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-bottom:12px;display:grid}.reconciliation-command-summary>div{border:1px solid var(--border);background:var(--surface);border-radius:5px;gap:2px;padding:8px;display:grid}.reconciliation-command-summary small{color:var(--muted);text-transform:uppercase;font-size:9px}.reconciliation-command-summary strong{font-size:14px}.payroll-reconciliation-history-dialog{width:min(760px,100vw - 24px)}.reconciliation-history-body{gap:8px;max-height:min(65vh,620px);padding:12px 16px;display:grid;overflow:auto}.reconciliation-history-event{border:1px solid var(--border);background:var(--surface);border-radius:6px;gap:8px;padding:10px;display:grid}.reconciliation-history-head{justify-content:space-between;align-items:flex-start;gap:10px;display:flex}.reconciliation-history-head>div{align-items:center;gap:7px;display:flex}.reconciliation-history-head small{color:var(--muted)}.reconciliation-history-values{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;display:grid}.reconciliation-history-values span{background:#f7f8fa;justify-content:space-between;gap:8px;padding:6px 8px;font-size:11px;display:flex}.reconciliation-history-event p{color:#475467;margin:0;font-size:11px}.reconciliation-reopen-detail{background:#fbf6fc;border-left:3px solid #9b59b6;padding:7px 8px}.reconciliation-issues{color:#475467}.reconciliation-actions{gap:3px;display:flex}.reconciliation-actions button{border:1px solid var(--border);background:var(--surface);min-height:27px;color:var(--text-soft);cursor:pointer;border-radius:4px;padding:3px 6px;font-size:9px;font-weight:700}.reconciliation-actions button:hover:not(:disabled){border-color:var(--primary);color:var(--primary)}.reconciliation-actions button:disabled{cursor:not-allowed;opacity:.42}@media (width<=1180px){.payroll-reconciliation-filters{grid-template-columns:repeat(4,minmax(0,1fr))}.payroll-reconciliation-filters .reconciliation-search{grid-column:span 2}.payroll-reconciliation-summary{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (width<=700px){.payroll-reconciliation-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.payroll-reconciliation-filters .reconciliation-search{grid-column:1/-1}.payroll-reconciliation-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.payroll-reconciliation-page .page-actions{width:100%;display:grid}}@media print{body.printing-payroll-reconciliation *{visibility:hidden!important}body.printing-payroll-reconciliation .payroll-reconciliation-page,body.printing-payroll-reconciliation .payroll-reconciliation-page *{visibility:visible!important}body.printing-payroll-reconciliation .payroll-reconciliation-page{width:100%;max-width:none;padding:0;position:absolute;inset:0}body.printing-payroll-reconciliation .page-actions,body.printing-payroll-reconciliation .employee-breadcrumb,body.printing-payroll-reconciliation .payroll-reconciliation-filters,body.printing-payroll-reconciliation .pagination,body.printing-payroll-reconciliation .reconciliation-actions{display:none!important}body.printing-payroll-reconciliation .payroll-reconciliation-summary{grid-template-columns:repeat(9,minmax(0,1fr))}body.printing-payroll-reconciliation .payroll-reconciliation-list .table-scroll{overflow:visible}body.printing-payroll-reconciliation .payroll-reconciliation-list table{table-layout:auto;min-width:0}body.printing-payroll-reconciliation .payroll-reconciliation-list th,body.printing-payroll-reconciliation .payroll-reconciliation-list td{padding:4px;font-size:7px}}.employee-salary-page{gap:10px;width:min(1640px,100%);padding-top:14px;display:grid}.employee-salary-page .employee-breadcrumb,.employee-salary-page .page-header{margin-bottom:0}.employee-salary-page .page-header h1{font-size:24px}.employee-salary-summary{background:var(--surface);border:1px solid #dbe3ec;border-radius:8px;grid-template-columns:repeat(4,minmax(0,1fr));display:grid;overflow:hidden}.employee-salary-summary article{border-right:1px solid #e2e8f0;align-content:center;gap:2px;min-height:72px;padding:10px 14px;display:grid}.employee-salary-summary article:last-child{border-right:0}.employee-salary-summary small,.employee-salary-summary span{color:var(--muted);font-size:10px}.employee-salary-summary strong{color:var(--text-strong);text-overflow:ellipsis;white-space:nowrap;font-size:20px;overflow:hidden}.employee-salary-filter-bar{grid-template-columns:minmax(260px,1.5fr) minmax(220px,1fr) 150px 150px auto auto;align-items:end;gap:7px;padding:10px;display:grid}.employee-salary-filter-bar .field{gap:3px;min-width:0}.employee-salary-filter-bar .field>span{font-size:11px}.employee-salary-filter-bar input,.employee-salary-filter-bar select,.employee-salary-filter-bar .button{height:34px;min-height:34px;font-size:12px}.employee-salary-directory{min-width:0;padding:10px}.employee-salary-directory table{table-layout:fixed;min-width:1290px}.employee-salary-directory th:first-child{width:190px}.employee-salary-directory th:nth-child(2){width:105px}.employee-salary-directory th:nth-child(3),.employee-salary-directory th:nth-child(4),.employee-salary-directory th:nth-child(5){width:125px}.employee-salary-directory th:nth-child(6){width:90px}.employee-salary-directory th:nth-child(7){width:230px}.employee-salary-directory th:nth-child(8){width:150px}.employee-salary-directory th:nth-child(9){text-align:center;width:62px}.employee-salary-directory td{text-overflow:ellipsis;white-space:nowrap;padding-top:7px;padding-bottom:7px;overflow:hidden}.employee-salary-directory td strong,.employee-salary-directory td small{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.employee-salary-directory td small{color:var(--muted);margin-top:2px;font-size:10px}.employee-salary-directory td:last-child{text-align:center;overflow:visible}.salary-positive,.salary-change-preview .positive{color:#15803d!important}.salary-negative,.salary-change-preview .negative{color:#c2410c!important}.employee-salary-dialog{border:1px solid #dbe3ec;border-radius:8px;width:min(860px,100vw - 28px);max-height:calc(100dvh - 28px);padding:0;overflow:hidden}.employee-salary-dialog::backdrop{background:#0f172a7a}.employee-salary-dialog form{grid-template-rows:auto minmax(0,1fr) auto;max-height:calc(100dvh - 28px);display:grid}.employee-salary-dialog form>header,.employee-salary-dialog form>footer{justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;display:flex}.employee-salary-dialog form>header{border-bottom:1px solid #e2e8f0}.employee-salary-dialog form>footer{border-top:1px solid #e2e8f0;justify-content:flex-end}.employee-salary-dialog h2,.employee-salary-dialog p{margin:0}.employee-salary-dialog header p{color:var(--muted);margin-top:3px;font-size:12px}.employee-salary-dialog header>button{cursor:pointer;background:0 0;border:0;width:34px;height:34px;font-size:19px}.employee-salary-dialog-body{min-height:0;padding:14px 16px;overflow:auto}.salary-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.salary-form-grid .salary-wide{grid-column:1/-1}.salary-change-preview{border:1px solid #dbe3ec;border-radius:6px;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:12px;display:grid;overflow:hidden}.salary-change-preview>div{background:var(--canvas);border-right:1px solid #e2e8f0;align-content:center;gap:3px;min-height:64px;padding:9px 12px;display:grid}.salary-change-preview>div:last-child{border-right:0}.salary-change-preview small{color:var(--muted);font-size:10px}.salary-change-preview strong{font-size:17px}@media (width<=1120px){.employee-salary-filter-bar{grid-template-columns:repeat(4,minmax(0,1fr))}.employee-salary-filter-bar .salary-search{grid-column:span 2}}@media (width<=720px){.employee-salary-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.employee-salary-summary article:nth-child(2){border-right:0}.employee-salary-summary article:nth-child(-n+2){border-bottom:1px solid #e2e8f0}.employee-salary-filter-bar,.salary-form-grid,.salary-change-preview{grid-template-columns:1fr}.employee-salary-filter-bar .salary-search,.salary-form-grid .salary-wide{grid-column:auto}.salary-change-preview>div{border-bottom:1px solid #e2e8f0;border-right:0}.salary-change-preview>div:last-child{border-bottom:0}.employee-salary-dialog{border-radius:0;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0}.employee-salary-dialog form{max-height:100dvh}}.employee-configuration-page{gap:14px;display:grid}.employee-configuration-tabs{background:var(--surface);border:1px solid #dbe3ec;border-radius:8px;grid-template-columns:repeat(4,minmax(0,1fr));display:grid;overflow:hidden}.employee-configuration-tabs button{background:var(--surface);min-height:58px;color:var(--text-soft);text-align:left;border:0;border-right:1px solid #e5eaf0;gap:2px;padding:9px 14px;display:grid}.employee-configuration-tabs button:last-child{border-right:0}.employee-configuration-tabs button:hover{background:var(--canvas)}.employee-configuration-tabs button.active{color:#9a3412;background:#fff7ed;box-shadow:inset 0 -3px #ea580c}.employee-configuration-tabs strong{font-size:13px}.employee-configuration-tabs span{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:11px;overflow:hidden}.employee-configuration-summary{background:var(--surface);border:1px solid #e2e8f0;border-radius:8px;grid-template-columns:repeat(4,minmax(0,1fr));display:grid}.employee-configuration-summary>div{border-right:1px solid #e2e8f0;gap:2px;min-height:72px;padding:10px 14px;display:grid}.employee-configuration-summary>div:last-child{border-right:0}.employee-configuration-summary small,.employee-configuration-summary span{color:var(--muted);font-size:11px}.employee-configuration-summary strong{color:var(--text-strong);font-size:22px}.employee-configuration-filter-bar{grid-template-columns:minmax(240px,1fr) minmax(150px,190px) auto auto;align-items:end;gap:8px;padding:10px;display:grid}.employee-configuration-filter-bar:has(.config-search+.field+.field){grid-template-columns:minmax(220px,1fr) minmax(140px,170px) minmax(140px,170px) auto auto}.employee-configuration-filter-bar .field{gap:3px}.employee-configuration-filter-bar .field>span{font-size:11px}.employee-configuration-filter-bar input,.employee-configuration-filter-bar select,.employee-configuration-filter-bar .button{min-height:36px}.employee-configuration-list{min-width:0;padding:0;overflow:hidden}.employee-configuration-list .table-scroll table{table-layout:fixed;min-width:880px}.employee-configuration-list th:first-child{width:210px}.employee-configuration-list th:nth-child(2){width:250px}.employee-configuration-list th:nth-child(3){width:135px}.employee-configuration-list th:nth-child(4){width:105px}.employee-configuration-list th:nth-child(5){width:80px}.employee-configuration-list th:nth-child(6){width:70px}.employee-configuration-list td strong,.employee-configuration-list td small{display:block}.employee-configuration-list td small{max-width:360px;color:var(--muted);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.employee-configuration-dialog{width:min(780px,100vw - 28px);max-height:calc(100vh - 28px)}.employee-configuration-dialog form{max-height:calc(100vh - 28px)}.employee-configuration-dialog-body{gap:14px;min-height:0;padding:16px;display:grid;overflow-y:auto}.employee-configuration-form-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;display:grid}.employee-configuration-form-grid .config-name{grid-column:span 2}.employee-configuration-form-grid .config-description{grid-column:1/-1}.schedule-editor{border-top:1px solid #e2e8f0;gap:10px;padding-top:12px;display:grid}.schedule-editor h3{margin:0;font-size:14px}.work-day-selector{flex-wrap:wrap;gap:6px;display:flex}.work-day-selector label{position:relative}.work-day-selector input{opacity:0;pointer-events:none;position:absolute}.work-day-selector span{background:var(--surface);text-transform:capitalize;border:1px solid #cbd5e1;border-radius:6px;place-items:center;width:46px;min-height:32px;font-size:11px;display:grid}.work-day-selector input:checked+span{color:#9a3412;background:#fff7ed;border-color:#f97316;font-weight:700}.work-day-selector input:focus-visible+span{outline-offset:2px;outline:2px solid #2563eb}.schedule-time-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;display:grid}.employee-configuration-status-dialog{width:min(470px,100vw - 28px)}.employee-organization-page{width:min(1500px,100%)}.employee-organization-page .employee-configuration-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.employee-organization-page .employee-configuration-tabs button:nth-child(2){border-right:0}.employee-organization-page .employee-configuration-filter-bar{grid-template-columns:minmax(260px,1fr) minmax(150px,190px) auto auto}.employee-organization-page .employee-configuration-list table{min-width:820px}@media (width<=720px){.employee-organization-page .employee-configuration-filter-bar{grid-template-columns:repeat(2,minmax(0,1fr))}.employee-organization-page .employee-configuration-filter-bar .config-search{grid-column:1/-1}}@media (width<=520px){.employee-organization-page .employee-configuration-tabs,.employee-organization-page .employee-configuration-filter-bar{grid-template-columns:1fr}.employee-organization-page .employee-configuration-filter-bar .config-search{grid-column:auto}}.employee-schedules-page{width:min(1500px,100%)}.employee-schedules-page .employee-configuration-filter-bar{grid-template-columns:minmax(260px,1fr) minmax(150px,190px) auto auto}.employee-schedules-page .employee-configuration-list table{min-width:860px}.employee-schedules-page .employee-configuration-list th:nth-child(2){width:300px}@media (width<=720px){.employee-schedules-page .employee-configuration-filter-bar{grid-template-columns:repeat(2,minmax(0,1fr))}.employee-schedules-page .employee-configuration-filter-bar .config-search{grid-column:1/-1}}@media (width<=520px){.employee-schedules-page .employee-configuration-filter-bar{grid-template-columns:1fr}.employee-schedules-page .employee-configuration-filter-bar .config-search{grid-column:auto}}.employee-assets-page{gap:10px;width:min(1600px,100%);padding-top:14px;display:grid}.employee-assets-page .employee-breadcrumb,.employee-assets-page .page-header{margin-bottom:0}.employee-assets-page .page-header h1{font-size:24px}.employee-asset-summary{background:var(--surface);border:1px solid #dbe3ec;border-radius:8px;grid-template-columns:repeat(4,minmax(0,1fr));display:grid;overflow:hidden}.employee-asset-summary article{border-right:1px solid #e2e8f0;gap:2px;min-height:72px;padding:10px 14px;display:grid}.employee-asset-summary article:last-child{border-right:0}.employee-asset-summary small,.employee-asset-summary span{color:var(--muted);font-size:10px}.employee-asset-summary strong{color:var(--text-strong);font-size:21px}.employee-asset-filter-bar{grid-template-columns:minmax(250px,1.6fr) minmax(135px,.7fr) 150px 150px auto auto;align-items:end;gap:7px;padding:10px;display:grid}.employee-asset-filter-bar .field{gap:3px;min-width:0}.employee-asset-filter-bar .field>span{font-size:11px}.employee-asset-filter-bar input,.employee-asset-filter-bar select,.employee-asset-filter-bar .button{height:34px;min-height:34px;font-size:12px}.employee-asset-directory{min-width:0;padding:10px}.employee-asset-table table{table-layout:fixed;width:100%;min-width:880px}.employee-asset-table th:first-child{width:145px}.employee-asset-table th:nth-child(2){width:165px}.employee-asset-table th:nth-child(3){width:90px}.employee-asset-table th:nth-child(4){width:115px}.employee-asset-table th:nth-child(5){width:120px}.employee-asset-table th:nth-child(6){width:75px}.employee-asset-table th:nth-child(7){width:140px}.employee-asset-table th:nth-child(8){text-align:center;width:45px}.employee-asset-table td{text-overflow:ellipsis;white-space:nowrap;padding-top:7px;padding-bottom:7px;overflow:hidden}.employee-asset-table td strong,.employee-asset-table td small{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.employee-asset-table td small{color:var(--muted);margin-top:2px;font-size:10px}.employee-asset-table td:last-child{text-align:center;overflow:visible}.employee-asset-table .action-trigger{margin-inline:auto}.asset-status{text-transform:capitalize;border-radius:999px;padding:3px 8px;font-size:10px;font-weight:800;display:inline-flex}.asset-status.asignado{color:#166534;background:#dcfce7}.asset-status.devuelto{background:var(--subtle);color:var(--muted)}.employee-asset-target-dialog{width:min(620px,100vw - 28px)}.employee-asset-target-dialog form{max-height:calc(100vh - 28px)}@media (width<=1100px){.employee-asset-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.employee-asset-summary article:nth-child(2){border-right:0}.employee-asset-summary article:nth-child(-n+2){border-bottom:1px solid #e2e8f0}.employee-asset-filter-bar{grid-template-columns:repeat(3,minmax(0,1fr))}.employee-asset-filter-bar .asset-search{grid-column:span 2}}@media (width<=700px){.employee-asset-filter-bar{grid-template-columns:repeat(2,minmax(0,1fr))}.employee-asset-filter-bar .asset-search{grid-column:1/-1}.employee-assets-page .page-header{flex-direction:column;align-items:stretch}}@media (width<=460px){.employee-asset-summary,.employee-asset-filter-bar{grid-template-columns:1fr}.employee-asset-summary article{border-bottom:1px solid #e2e8f0;border-right:0}.employee-asset-summary article:last-child{border-bottom:0}.employee-asset-filter-bar .asset-search{grid-column:auto}}.employee-history-page{gap:10px;width:min(1600px,100%);padding-top:14px;display:grid}.employee-history-page .employee-breadcrumb,.employee-history-page .page-header{margin-bottom:0}.employee-history-page .page-header h1{font-size:24px}.employee-history-summary{background:var(--surface);border:1px solid #dbe3ec;border-radius:8px;grid-template-columns:repeat(4,minmax(0,1fr));display:grid;overflow:hidden}.employee-history-summary article{border-right:1px solid #e2e8f0;gap:2px;min-height:72px;padding:10px 14px;display:grid}.employee-history-summary article:last-child{border-right:0}.employee-history-summary small,.employee-history-summary span{color:var(--muted);font-size:10px}.employee-history-summary strong{color:var(--text-strong);font-size:21px}.employee-history-filter-bar{grid-template-columns:minmax(260px,1.5fr) minmax(190px,.9fr) 150px 150px auto auto;align-items:end;gap:7px;padding:10px;display:grid}.employee-history-filter-bar .field{gap:3px;min-width:0}.employee-history-filter-bar .field>span{font-size:11px}.employee-history-filter-bar input,.employee-history-filter-bar select,.employee-history-filter-bar .button{height:34px;min-height:34px;font-size:12px}.employee-history-directory{min-width:0;padding:10px}.employee-history-table table{table-layout:fixed;width:100%;min-width:1080px}.employee-history-table th:first-child{width:135px}.employee-history-table th:nth-child(2){width:180px}.employee-history-table th:nth-child(3){width:165px}.employee-history-table th:nth-child(4){width:155px}.employee-history-table th:nth-child(5){width:280px}.employee-history-table th:nth-child(6){width:145px}.employee-history-table th:nth-child(7){text-align:center;width:55px}.employee-history-table td{text-overflow:ellipsis;white-space:nowrap;padding-top:7px;padding-bottom:7px;overflow:hidden}.employee-history-table td strong,.employee-history-table td small{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.employee-history-table td small{color:var(--muted);margin-top:2px;font-size:10px}.employee-history-table td:last-child{text-align:center;overflow:visible}.history-event-badge{color:#9a3412;text-overflow:ellipsis;white-space:nowrap;background:#fff7ed;border:1px solid #fed7aa;border-radius:999px;max-width:100%;padding:3px 8px;font-size:10px;font-weight:800;display:inline-flex;overflow:hidden}.employee-history-detail-dialog{border:1px solid #dbe3ec;border-radius:8px;width:min(940px,100vw - 28px);max-height:calc(100dvh - 28px);padding:0;overflow:hidden}.employee-history-detail-dialog::backdrop{background:#0f172a7a}.employee-history-detail-dialog form{grid-template-rows:auto minmax(0,1fr) auto;max-height:calc(100dvh - 28px);display:grid}.employee-history-detail-dialog form>header,.employee-history-detail-dialog form>footer{border-bottom:1px solid #e2e8f0;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;display:flex}.employee-history-detail-dialog form>footer{border-top:1px solid #e2e8f0;border-bottom:0;justify-content:flex-end}.employee-history-detail-dialog h2{margin:0;font-size:18px}.employee-history-detail-dialog header small{color:var(--muted)}.employee-history-detail-dialog header button{cursor:pointer;background:0 0;border:0;width:32px;height:32px;font-size:18px}.employee-history-detail-body{padding:14px 16px;overflow:auto}.employee-history-detail-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;display:grid}.employee-history-detail-summary>div{background:var(--canvas);border:1px solid #e2e8f0;border-radius:6px;gap:3px;min-width:0;padding:9px 10px;display:grid}.employee-history-detail-summary small{color:var(--muted);font-size:10px}.employee-history-detail-summary strong{overflow-wrap:anywhere;font-size:12px}.employee-history-description{background:#fff7ed;border-left:3px solid #f97316;margin:10px 0;padding:9px 11px;font-size:12px}.employee-history-change-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;display:grid}.employee-history-change-grid article{border:1px solid #e2e8f0;border-radius:6px;min-width:0;overflow:hidden}.employee-history-change-grid article>header{background:var(--canvas);border-bottom:1px solid #e2e8f0;padding:8px 10px;font-size:11px;font-weight:800}.employee-history-change-grid pre{background:var(--surface);min-height:150px;max-height:320px;color:var(--text-strong);white-space:pre-wrap;word-break:break-word;margin:0;padding:10px;font:11px/1.45 Consolas,monospace;overflow:auto}@media (width<=1100px){.employee-history-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.employee-history-summary article:nth-child(2){border-right:0}.employee-history-summary article:nth-child(-n+2){border-bottom:1px solid #e2e8f0}.employee-history-filter-bar{grid-template-columns:repeat(3,minmax(0,1fr))}.employee-history-filter-bar .history-search{grid-column:span 2}}@media (width<=700px){.employee-history-filter-bar{grid-template-columns:repeat(2,minmax(0,1fr))}.employee-history-filter-bar .history-search{grid-column:1/-1}.employee-history-detail-summary,.employee-history-change-grid{grid-template-columns:1fr}}@media (width<=460px){.employee-history-summary,.employee-history-filter-bar{grid-template-columns:1fr}.employee-history-summary article{border-bottom:1px solid #e2e8f0;border-right:0}.employee-history-summary article:last-child{border-bottom:0}.employee-history-filter-bar .history-search{grid-column:auto}.employee-history-detail-dialog{border-radius:0;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0}}.employee-documents-page{gap:10px;width:min(1600px,100%);padding-top:14px;display:grid}.employee-documents-page .employee-breadcrumb,.employee-documents-page .page-header{margin-bottom:0}.employee-documents-page .page-header h1{font-size:24px}.employee-document-summary{background:var(--surface);border:1px solid #dbe3ec;border-radius:8px;grid-template-columns:repeat(3,minmax(0,1fr));display:grid;overflow:hidden}.employee-document-summary article{border-right:1px solid #e2e8f0;gap:2px;min-height:72px;padding:10px 14px;display:grid}.employee-document-summary article:last-child{border-right:0}.employee-document-summary small,.employee-document-summary span{color:var(--muted);font-size:10px}.employee-document-summary strong{color:var(--text-strong);font-size:21px}.employee-document-filter-bar{grid-template-columns:minmax(230px,1.5fr) minmax(130px,.7fr) minmax(135px,.7fr) 140px 140px auto auto;align-items:end;gap:7px;padding:10px;display:grid}.employee-document-filter-bar .field{gap:3px;min-width:0}.employee-document-filter-bar .field>span{font-size:11px}.employee-document-filter-bar input,.employee-document-filter-bar select,.employee-document-filter-bar .button{height:34px;min-height:34px;font-size:12px}.employee-document-directory{min-width:0;padding:10px}.employee-document-table table{table-layout:fixed;width:100%;min-width:900px}.employee-document-table th:first-child{width:150px}.employee-document-table th:nth-child(2){width:145px}.employee-document-table th:nth-child(3){width:80px}.employee-document-table th:nth-child(4){width:100px}.employee-document-table th:nth-child(5){width:60px}.employee-document-table th:nth-child(6){width:85px}.employee-document-table th:nth-child(7){width:140px}.employee-document-table th:nth-child(8){text-align:center;width:45px}.employee-document-table td{text-overflow:ellipsis;white-space:nowrap;padding-top:7px;padding-bottom:7px;overflow:hidden}.employee-document-table td strong,.employee-document-table td small{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.employee-document-table td small{color:var(--muted);margin-top:2px;font-size:10px}.employee-document-table td:last-child{text-align:center;overflow:visible}.employee-document-table .action-trigger{margin-inline:auto}.document-availability{border-radius:999px;padding:3px 8px;font-size:10px;font-weight:800;display:inline-flex}.document-availability.available{color:#166534;background:#dcfce7}.document-availability.reference{background:var(--subtle);color:var(--muted)}.employee-document-target-dialog{width:min(560px,100vw - 28px)}.employee-document-target-dialog form{max-height:calc(100vh - 28px)}@media (width<=1100px){.employee-document-filter-bar{grid-template-columns:repeat(3,minmax(0,1fr))}.employee-document-filter-bar .document-search{grid-column:span 2}}@media (width<=700px){.employee-document-summary{grid-template-columns:1fr}.employee-document-summary article{border-bottom:1px solid #e2e8f0;border-right:0;min-height:60px}.employee-document-summary article:last-child{border-bottom:0}.employee-document-filter-bar{grid-template-columns:repeat(2,minmax(0,1fr))}.employee-document-filter-bar .document-search{grid-column:1/-1}.employee-documents-page .page-header{flex-direction:column;align-items:stretch}}@media (width<=460px){.employee-document-filter-bar{grid-template-columns:1fr}.employee-document-filter-bar .document-search{grid-column:auto}}.employee-dashboard-page{gap:12px;width:min(1600px,100%);padding-top:14px;display:grid;position:relative}.employee-dashboard-page .employee-breadcrumb,.employee-dashboard-page .page-header{margin-bottom:0}.employee-dashboard-page .page-header h1{font-size:25px}.employee-dashboard-metrics{background:var(--surface);border:1px solid #dbe3ec;border-radius:8px;grid-template-columns:repeat(4,minmax(0,1fr));display:grid;overflow:hidden;box-shadow:0 7px 20px #0f172a0a}.employee-dashboard-metrics article{border-right:1px solid #e2e8f0;align-items:center;gap:11px;min-width:0;min-height:88px;padding:12px 14px;display:flex}.employee-dashboard-metrics article:last-child{border-right:0}.employee-dashboard-metrics article>div{min-width:0}.employee-dashboard-metrics small,.employee-dashboard-metrics strong,.employee-dashboard-metrics p{margin:0;display:block}.employee-dashboard-metrics small{color:var(--muted);text-overflow:ellipsis;text-transform:uppercase;white-space:nowrap;font-size:10px;font-weight:800;overflow:hidden}.employee-dashboard-metrics strong{color:var(--text-strong);margin-top:3px;font-size:24px}.employee-dashboard-metrics p{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;margin-top:1px;font-size:11px;overflow:hidden}.metric-token{border-radius:7px;flex:0 0 38px;place-items:center;width:38px;height:38px;font-size:10px;font-weight:900;display:grid}.metric-token.blue{color:#1d4ed8;background:#dbeafe}.metric-token.green{color:#15803d;background:#dcfce7}.metric-token.amber{color:#b45309;background:#fef3c7}.metric-token.violet{color:#6d28d9;background:#ede9fe}.employee-dashboard-attendance{padding:0;overflow:hidden}.employee-dashboard-attendance>header,.dashboard-window>header{border-bottom:1px solid #e2e8f0;justify-content:space-between;align-items:center;gap:12px;min-height:48px;padding:8px 12px;display:flex}.employee-dashboard-attendance header strong,.employee-dashboard-attendance header small,.dashboard-window header strong,.dashboard-window header small{display:block}.employee-dashboard-attendance header strong,.dashboard-window header strong{color:var(--text-strong);font-size:13px}.employee-dashboard-attendance header small,.dashboard-window header small{color:var(--muted);margin-top:2px;font-size:10px}.employee-dashboard-attendance header button,.dashboard-window header button{background:var(--surface);min-height:29px;color:var(--text-soft);border:1px solid #cbd5e1;border-radius:6px;padding:0 9px;font-size:10px;font-weight:700}.employee-dashboard-attendance header button:hover,.dashboard-window header button:hover{color:#c2410c;border-color:#fb923c}.attendance-strip{grid-template-columns:repeat(6,minmax(0,1fr));display:grid}.attendance-strip>div{border-right:1px solid #e2e8f0;min-width:0;min-height:64px;padding:10px 12px}.attendance-strip>div:last-child{border-right:0}.attendance-strip small,.attendance-strip strong{display:block}.attendance-strip small{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:10px;overflow:hidden}.attendance-strip strong{color:var(--text-strong);margin-top:4px;font-size:18px}.employee-dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.dashboard-window{min-width:0;min-height:260px;padding:0;overflow:hidden}.dashboard-window header>span{background:var(--subtle);color:var(--muted);white-space:nowrap;border-radius:999px;padding:4px 8px;font-size:10px;font-weight:700}.department-list{gap:12px;padding:13px;display:grid}.department-list>div>div:first-child{color:var(--text-soft);justify-content:space-between;align-items:center;gap:10px;font-size:11px;display:flex}.department-list strong{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.department-list span{color:var(--muted);font-variant-numeric:tabular-nums}.department-track{background:#e2e8f0;border-radius:999px;height:5px;margin-top:5px;overflow:hidden}.department-track i{border-radius:inherit;background:#2563eb;height:100%;display:block}.dashboard-list{display:grid}.dashboard-list-row{border-bottom:1px solid #edf0f4;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:9px;min-width:0;min-height:51px;padding:7px 12px;display:grid}.dashboard-list-row:last-child{border-bottom:0}.dashboard-list-row>div{min-width:0}.dashboard-list-row strong,.dashboard-list-row small{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.dashboard-list-row strong{color:var(--text-strong);font-size:11px}.dashboard-list-row small{color:var(--muted);margin-top:2px;font-size:10px}.dashboard-list-row>b{color:#c2410c;white-space:nowrap;font-size:10px}.event-token,.employee-mini-avatar{border-radius:50%;flex:none;place-items:center;width:29px;height:29px;font-size:9px;font-weight:900;display:grid}.event-token.vacation{color:#1d4ed8;background:#dbeafe}.event-token.permission{color:#b45309;background:#fef3c7}.event-token.training{color:#15803d;background:#dcfce7}.employee-mini-avatar{color:#4338ca;background:#e0e7ff}.employee-status.aprobada,.employee-status.aprobado,.employee-status.tomada{color:#166534;background:#dcfce7}.employee-status.asignada,.employee-status.en_progreso{color:#1d4ed8;background:#dbeafe}.dashboard-timeline{padding:9px 13px;display:grid}.dashboard-timeline>div{grid-template-columns:12px minmax(0,1fr);gap:7px;min-height:50px;display:grid}.dashboard-timeline i{background:#f97316;border:2px solid #fff;border-radius:50%;width:8px;height:8px;margin-top:5px;position:relative;box-shadow:0 0 0 1px #fdba74}.dashboard-timeline i:after{content:"";background:#e2e8f0;width:1px;height:38px;position:absolute;top:8px;left:2px}.dashboard-timeline>div:last-of-type i:after{display:none}.dashboard-timeline strong,.dashboard-timeline small,.dashboard-timeline time{display:block}.dashboard-timeline strong{color:var(--text-strong);font-size:11px}.dashboard-timeline small{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;margin-top:1px;font-size:10px;overflow:hidden}.dashboard-timeline time{color:#94a3b8;margin-top:2px;font-size:9px}.dashboard-empty{color:var(--muted);text-align:center;margin:0;padding:32px 14px;font-size:11px}.employee-dashboard-shortcuts{justify-content:space-between;align-items:center;gap:18px;padding:10px 12px;display:flex}.employee-dashboard-shortcuts>div strong,.employee-dashboard-shortcuts>div small{display:block}.employee-dashboard-shortcuts>div strong{font-size:12px}.employee-dashboard-shortcuts>div small{color:var(--muted);margin-top:2px;font-size:10px}.employee-dashboard-shortcuts nav{flex-wrap:wrap;justify-content:flex-end;gap:6px;display:flex}.employee-dashboard-shortcuts button{background:var(--surface);min-height:32px;color:var(--text-soft);border:1px solid #cbd5e1;border-radius:6px;padding:0 10px;font-size:10px;font-weight:700}.employee-dashboard-shortcuts button:hover{color:#c2410c;border-color:#f97316}.dashboard-loading{color:#9a3412;background:#fff7ed;border:1px solid #fed7aa;border-radius:6px;padding:6px 9px;font-size:10px;font-weight:700;position:absolute;top:12px;right:20px}@media (width<=1050px){.employee-dashboard-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.employee-dashboard-metrics article:nth-child(2){border-right:0}.employee-dashboard-metrics article:nth-child(-n+2){border-bottom:1px solid #e2e8f0}.attendance-strip{grid-template-columns:repeat(3,minmax(0,1fr))}.attendance-strip>div:nth-child(3){border-right:0}.attendance-strip>div:nth-child(-n+3){border-bottom:1px solid #e2e8f0}}@media (width<=720px){.employee-dashboard-page .page-header,.employee-dashboard-shortcuts{flex-direction:column;align-items:stretch}.employee-dashboard-page .page-actions{grid-template-columns:1fr 1fr;display:grid}.employee-dashboard-grid{grid-template-columns:1fr}.employee-dashboard-shortcuts nav{grid-template-columns:repeat(2,minmax(0,1fr));display:grid}}@media (width<=520px){.employee-dashboard-metrics,.attendance-strip{grid-template-columns:1fr 1fr}.employee-dashboard-metrics article{border-bottom:1px solid #e2e8f0}.employee-dashboard-metrics article:nth-child(2n){border-right:0}.employee-dashboard-metrics article:nth-last-child(-n+2){border-bottom:0}.attendance-strip>div{border-bottom:1px solid #e2e8f0}.attendance-strip>div:nth-child(2n){border-right:0}.attendance-strip>div:nth-last-child(-n+2){border-bottom:0}}@media (width<=900px){.employee-configuration-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.employee-configuration-tabs button:nth-child(2){border-right:0}.employee-configuration-tabs button:nth-child(-n+2){border-bottom:1px solid #e5eaf0}.employee-configuration-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.employee-configuration-summary>div:nth-child(2){border-right:0}.employee-configuration-summary>div:nth-child(-n+2){border-bottom:1px solid #e2e8f0}:is(.employee-configuration-filter-bar,.employee-configuration-filter-bar:has(.config-search+.field+.field)){grid-template-columns:repeat(2,minmax(0,1fr))}.employee-configuration-filter-bar .config-search{grid-column:1/-1}.schedule-time-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=560px){:is(.employee-configuration-tabs,.employee-configuration-summary,.employee-configuration-filter-bar,.employee-configuration-filter-bar:has(.config-search+.field+.field),.employee-configuration-form-grid,.schedule-time-grid){grid-template-columns:1fr}.employee-configuration-tabs button{border-bottom:1px solid #e5eaf0;border-right:0}.employee-configuration-tabs button:last-child{border-bottom:0}.employee-configuration-summary>div{border-bottom:1px solid #e2e8f0;border-right:0}.employee-configuration-summary>div:last-child{border-bottom:0}.employee-configuration-filter-bar .config-search,.employee-configuration-form-grid .config-name,.employee-configuration-form-grid .config-description{grid-column:auto}}.employee-forms-page{width:min(1500px,100%)}.employee-form-summary{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:10px;display:grid}.employee-form-summary>div{background:var(--surface);border:1px solid #dfe5ee;border-radius:6px;gap:2px;min-height:76px;padding:10px 12px;display:grid}.employee-form-summary small,.employee-form-summary span{color:var(--muted);font-size:12px}.employee-form-summary strong{color:var(--text-strong);font-size:22px}.employee-form-filter-bar{grid-template-columns:minmax(260px,1.6fr) minmax(160px,.7fr) minmax(140px,.6fr) auto auto;align-items:end;gap:8px;margin-bottom:10px;padding:10px;display:grid}.employee-form-filter-bar .field{min-width:0}.employee-form-list{overflow:visible}.employee-form-list table{min-width:880px}.employee-form-list td:first-child{max-width:420px}.employee-form-list td:first-child small{text-overflow:ellipsis;white-space:nowrap;color:var(--muted);max-width:420px;display:block;overflow:hidden}.employee-form-template-dialog{width:min(1180px,100vw - 32px);max-width:1180px;height:min(780px,100vh - 32px);max-height:calc(100vh - 32px)}.employee-form-template-dialog>form{grid-template-rows:auto minmax(0,1fr) auto;height:100%;display:grid}.employee-form-template-body{padding:14px 16px;overflow:auto}.employee-form-template-meta{grid-template-columns:minmax(240px,1.4fr) minmax(170px,.7fr) minmax(140px,.55fr);align-items:end;gap:10px;display:grid}.employee-form-template-meta .form-description{grid-column:1/-1}.employee-form-fields{border-top:1px solid #e4e7ec;margin-top:14px;padding-top:12px}.employee-form-fields-header{justify-content:space-between;align-items:center;gap:12px;margin-bottom:8px;display:flex}.employee-form-fields-header h3{margin:0;font-size:16px}.employee-form-fields-header span{color:var(--muted);font-size:12px}.employee-form-field-list{gap:7px;display:grid}.employee-form-field-row{background:#f9fafb;border:1px solid #e4e7ec;border-radius:6px;grid-template-columns:30px minmax(180px,1.2fr) minmax(130px,.65fr) minmax(200px,1fr) 105px 104px;align-items:end;gap:7px;padding:8px;display:grid}.employee-form-field-row .field span{font-size:11px}.field-order{width:28px;height:34px;color:var(--text-soft);background:#eef2f7;border-radius:5px;place-items:center;font-weight:700;display:grid}.field-options-placeholder{min-height:34px}.checkbox-field.compact{white-space:nowrap;align-items:center;height:34px;margin-bottom:0}.employee-form-field-actions{grid-template-columns:repeat(3,32px);gap:4px;display:grid}.employee-form-field-actions button{background:var(--surface);cursor:pointer;border:1px solid #d0d5dd;border-radius:5px;width:32px;height:34px}.employee-form-field-actions button:last-child{color:#b42318}.employee-form-field-actions button:disabled{opacity:.4;cursor:default}.employee-form-status-dialog{width:min(520px,100vw - 28px)}@media (width<=900px){.employee-form-summary,.employee-form-filter-bar{grid-template-columns:repeat(2,minmax(0,1fr))}.employee-form-filter-bar .form-search{grid-column:1/-1}.employee-form-template-meta{grid-template-columns:repeat(2,minmax(0,1fr))}.employee-form-field-row{grid-template-columns:30px minmax(150px,1fr) minmax(120px,.7fr) 105px 104px}.employee-form-field-row .field-options,.employee-form-field-row .field-options-placeholder{grid-column:2/-1}}@media (width<=600px){.employee-form-summary,.employee-form-filter-bar,.employee-form-template-meta{grid-template-columns:1fr}.employee-form-filter-bar .form-search,.employee-form-template-meta .form-description{grid-column:auto}.employee-form-template-dialog{border-radius:0;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0}.employee-form-field-row{grid-template-columns:28px minmax(0,1fr)}.employee-form-field-row>*{grid-column:2}.employee-form-field-row .field-order{grid-area:1/1}.employee-form-field-row .field-options,.employee-form-field-row .field-options-placeholder{grid-column:2}.employee-form-fields-header{align-items:flex-start}}.employee-form-submissions-page{width:min(1500px,100%)}.employee-form-submission-filter-bar{grid-template-columns:minmax(220px,1.3fr) minmax(170px,.85fr) minmax(170px,.85fr) minmax(125px,.55fr) auto auto;align-items:end;gap:8px;margin-bottom:10px;padding:10px;display:grid}.employee-form-submission-filter-bar .field{min-width:0}.employee-form-submissions-page .employee-form-list table{min-width:1060px}.employee-form-submissions-page .employee-form-list td small{color:var(--muted);margin-top:2px;font-size:11px;display:block}.employee-status.asignado{color:#1456a0;background:#e8f1ff}.employee-status.borrador{color:#805a00;background:#fff4d6}.employee-status.completado{color:#176b37;background:#e4f7eb}.employee-status.anulado{color:#a72f25;background:#fee9e7}.employee-form-assignment-dialog{width:min(780px,100vw - 28px)}.employee-form-assignment-body{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:14px 16px;display:grid}.employee-form-assignment-body .assignment-observation,.employee-form-assignment-body .error-message{grid-column:1/-1}.employee-form-response-dialog{width:min(1100px,100vw - 32px);height:min(760px,100vh - 32px);max-height:calc(100vh - 32px)}.employee-form-response-dialog>form{grid-template-rows:auto minmax(0,1fr) auto;height:100%;display:grid}.employee-form-response-body{padding:14px 16px;overflow:auto}.employee-form-assignment-note{color:#8a4310;background:#fff7ed;border:1px solid #fed7aa;border-radius:6px;margin:0 0 12px;padding:9px 11px;font-size:12px}.employee-form-response-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.employee-form-response-grid .response-field{min-width:0}.employee-form-response-grid .response-field.wide{grid-column:1/-1}.employee-form-response-grid input:disabled,.employee-form-response-grid select:disabled,.employee-form-response-grid textarea:disabled{color:var(--text-soft);background:var(--canvas);opacity:1}@media (width<=980px){.employee-form-submission-filter-bar{grid-template-columns:repeat(2,minmax(0,1fr))}.employee-form-submission-filter-bar .submission-search{grid-column:1/-1}}@media (width<=600px){.employee-form-submission-filter-bar,.employee-form-assignment-body,.employee-form-response-grid{grid-template-columns:1fr}.employee-form-submission-filter-bar .submission-search,.employee-form-assignment-body .assignment-observation,.employee-form-assignment-body .error-message,.employee-form-response-grid .response-field.wide{grid-column:auto}.employee-form-response-dialog{border-radius:0;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0}}.employee-evaluations-page{width:min(1500px,100%)}.employee-evaluation-filter-bar{grid-template-columns:minmax(130px,1.15fr) minmax(105px,.8fr) minmax(105px,.8fr) minmax(90px,.6fr) minmax(105px,.65fr) minmax(105px,.65fr) auto auto;align-items:end;gap:8px;margin-bottom:10px;padding:10px;display:grid}.employee-evaluation-filter-bar .field{min-width:0}.employee-evaluation-list{overflow:visible}.employee-evaluation-list table{min-width:940px}.employee-evaluation-list td small{color:var(--muted);margin-top:2px;font-size:11px;display:block}.employee-status.vencido{color:#b42318;background:#fee4e2}.employee-evaluation-detail-dialog{grid-template-rows:auto minmax(0,1fr) auto;width:min(1040px,100vw - 32px);height:min(720px,100vh - 32px);max-height:calc(100vh - 32px);display:none}.employee-evaluation-detail-dialog[open]{display:grid}.employee-evaluation-detail-body{padding:14px 16px;overflow:auto}.employee-evaluation-detail-summary{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:12px;display:grid}.employee-evaluation-detail-summary>div,.employee-profile-evaluation-summary>div{background:var(--canvas);border:1px solid #dfe5ee;border-radius:6px;gap:3px;padding:9px 11px;display:grid}.employee-evaluation-detail-summary small,.employee-profile-evaluation-summary small{color:var(--muted);font-size:11px}.employee-evaluation-answer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.employee-evaluation-answer-grid article{background:var(--surface);border:1px solid #e4e7ec;border-radius:6px;gap:5px;min-height:68px;padding:10px;display:grid}.employee-evaluation-answer-grid small{color:var(--muted)}.employee-profile-evaluations{width:100%}.employee-profile-evaluation-summary{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:10px 0;display:grid}.employee-profile-evaluation-summary strong{font-size:20px}.button.compact{min-height:30px;padding:5px 9px;font-size:12px}@media (width<=1100px){.employee-evaluation-filter-bar{grid-template-columns:repeat(4,minmax(0,1fr))}.employee-evaluation-filter-bar .evaluation-search{grid-column:span 2}}@media (width<=700px){.employee-evaluation-filter-bar{grid-template-columns:1fr}.employee-evaluation-filter-bar .evaluation-search{grid-column:auto}.employee-evaluation-detail-summary,.employee-profile-evaluation-summary,.employee-evaluation-answer-grid{grid-template-columns:1fr}.employee-evaluation-detail-dialog{border-radius:0;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0}}.employee-training-page{width:min(1500px,100%)}.employee-training-tabs{border-bottom:1px solid var(--border);gap:4px;margin:0 0 10px;display:flex}.employee-training-tabs button{min-height:38px;color:var(--muted);cursor:pointer;background:0 0;border:0;border-bottom:2px solid #0000;padding:7px 14px;font-weight:700}.employee-training-tabs button.active{border-bottom-color:var(--primary);color:var(--primary)}.employee-training-filter-bar{grid-template-columns:minmax(180px,1.25fr) minmax(125px,.85fr) minmax(125px,.85fr) minmax(105px,.65fr) 112px 112px auto auto;align-items:end;gap:8px;margin-bottom:10px;padding:10px;display:grid}.employee-training-course-filter{grid-template-columns:minmax(260px,1fr) 150px auto auto;align-items:end;gap:8px;margin-bottom:10px;padding:10px;display:grid}.employee-training-filter-bar .field,.employee-training-course-filter .field{min-width:0}.training-course-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.employee-training-list{overflow:visible}.employee-training-list table{min-width:1020px}.employee-training-list td small,.employee-profile-training td small{color:var(--muted);margin-top:2px;font-size:11px;display:block}.training-progress{background:#f2f4f7;border:1px solid #dfe5ee;border-radius:5px;width:96px;height:22px;position:relative;overflow:hidden}.training-progress span{background:#d1fadf;max-width:100%;position:absolute;inset:0 auto 0 0}.training-progress strong{z-index:1;place-items:center;height:100%;font-size:11px;display:grid;position:relative}.employee-status.asignada{color:#1456a0;background:#e8f1ff}.employee-status.en_progreso{color:#805a00;background:#fff4d6}.employee-status.completada{color:#176b37;background:#e4f7eb}.employee-training-dialog{width:min(860px,100vw - 28px)}.employee-training-form-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:14px 16px;display:grid;overflow:auto}.employee-training-form-grid .training-wide{grid-column:span 2}.employee-training-form-grid .training-full{grid-column:1/-1}.employee-training-detail-dialog{width:min(920px,100vw - 28px)}.employee-training-detail-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;padding:14px 16px;display:grid;overflow:auto}.employee-training-detail-grid>div{border:1px solid var(--border);background:var(--canvas);border-radius:6px;gap:3px;min-width:0;padding:10px;display:grid}.employee-training-detail-grid small{color:var(--muted)}.employee-training-detail-grid span{overflow-wrap:anywhere;color:var(--muted);font-size:12px}.training-detail-note{border-left:3px solid var(--primary);background:#fff7ed;grid-column:1/-1;margin:0;padding:10px}.employee-profile-training{width:100%}@media (width<=1120px){.employee-training-filter-bar{grid-template-columns:repeat(4,minmax(0,1fr))}.employee-training-filter-bar .training-search{grid-column:span 2}}@media (width<=760px){.employee-training-filter-bar,.employee-training-course-filter,.employee-training-form-grid,.employee-training-detail-grid{grid-template-columns:1fr}.employee-training-filter-bar .training-search,.employee-training-form-grid .training-wide,.employee-training-form-grid .training-full,.training-detail-note{grid-column:auto}.training-course-summary{grid-template-columns:1fr}.employee-training-dialog,.employee-training-detail-dialog{border-radius:0;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0}}.employee-reports-page{width:min(1600px,100%)}.employee-report-filter-bar{grid-template-columns:minmax(220px,1.45fr) minmax(130px,.8fr) minmax(130px,.8fr) 112px 116px 116px auto auto;align-items:end;gap:7px;margin-bottom:10px;padding:10px;display:grid}.employee-report-filter-bar .field{gap:3px;min-width:0}.employee-report-filter-bar .field span{font-size:10px}.employee-report-filter-bar input,.employee-report-filter-bar select,.employee-report-filter-bar .button{height:34px;min-height:34px;font-size:12px}.employee-report-sections{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-bottom:10px;display:grid}.report-summary-group{min-width:0;padding:11px}.report-summary-group>header{align-items:center;gap:8px;margin-bottom:8px;display:flex}.report-summary-group>header>span{color:#c2410c;background:#fff1e8;border-radius:6px;place-items:center;width:28px;height:28px;font-size:11px;font-weight:800;display:grid}.report-summary-group header strong,.report-summary-group header small{display:block}.report-summary-group header strong{font-size:14px}.report-summary-group header small{color:var(--muted);margin-top:1px;font-size:10px}.report-metrics{border:1px solid var(--border);border-radius:6px;grid-template-columns:repeat(4,minmax(0,1fr));display:grid;overflow:hidden}.report-metrics>div{border-right:1px solid var(--border);background:var(--canvas);align-content:center;gap:2px;min-width:0;min-height:52px;padding:7px 9px;display:grid}.report-metrics>div:last-child{border-right:0}.report-metrics small{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:10px;overflow:hidden}.report-metrics strong{text-overflow:ellipsis;white-space:nowrap;font-size:16px;overflow:hidden}.report-metrics.financial{grid-template-columns:repeat(3,minmax(0,1fr))}.report-metrics.financial strong{font-size:14px}.employee-report-list{min-width:0;padding:10px;overflow:visible}.employee-report-list table{table-layout:fixed;min-width:1240px}.employee-report-list th,.employee-report-list td{padding:7px 8px;font-size:12px}.employee-report-list th:first-child,.employee-report-list th:nth-child(2){width:180px}.employee-report-list th:nth-child(3){width:100px}.employee-report-list th:nth-child(4){width:84px}.employee-report-list th:nth-child(n+5){width:135px}.employee-report-list td strong,.employee-report-list td small{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.employee-report-list td small{color:var(--muted);font-size:10px}@media (width<=1250px){.employee-report-filter-bar{grid-template-columns:repeat(4,minmax(0,1fr))}.employee-report-filter-bar .report-search{grid-column:span 2}}@media (width<=880px){.employee-report-sections{grid-template-columns:1fr}.employee-report-filter-bar{grid-template-columns:repeat(2,minmax(0,1fr))}.employee-report-filter-bar .report-search{grid-column:1/-1}}@media (width<=560px){.employee-report-filter-bar{grid-template-columns:1fr}.employee-report-filter-bar .report-search{grid-column:auto}.report-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.report-metrics>div:nth-child(2){border-right:0}.report-metrics>div:nth-child(-n+2){border-bottom:1px solid var(--border)}.report-metrics.financial{grid-template-columns:1fr}.report-metrics.financial>div{border-right:0;border-bottom:1px solid var(--border)}.report-metrics.financial>div:last-child{border-bottom:0}}@media print{body *{visibility:hidden!important}.employee-reports-page,.employee-reports-page *{visibility:visible!important}.employee-reports-page{width:100%;max-width:none;padding:0;position:absolute;inset:0}.employee-reports-page .page-actions,.employee-report-filter-bar,.employee-reports-page .pagination,.employee-reports-page .employee-breadcrumb{display:none!important}.employee-report-sections{grid-template-columns:repeat(2,minmax(0,1fr))}.employee-report-list,.report-summary-group{border-color:var(--border-strong);box-shadow:none}.employee-report-list .table-scroll{overflow:visible}.employee-report-list table{table-layout:auto;min-width:0}.employee-report-list th,.employee-report-list td{padding:4px;font-size:8px}}.security-page{position:relative}.security-tabs{border-bottom:1px solid #dbe2ea;gap:4px;margin:0 0 14px;display:flex}.security-tabs button{color:var(--muted);cursor:pointer;background:0 0;border:0;padding:10px 14px;font-weight:700}.security-tabs button.active{color:#e85d04;border-bottom:2px solid #e85d04}.security-tabs span{background:#edf1f5;border-radius:10px;place-items:center;min-width:22px;height:20px;margin-left:6px;font-size:11px;display:inline-grid}.security-filters{grid-template-columns:minmax(260px,2fr) minmax(180px,1fr) minmax(140px,.7fr) auto;align-items:end;gap:10px;margin-bottom:14px;display:grid}.security-filters .button{height:36px}.security-page table td small,.security-page table td strong{display:block}.security-page table td small{color:var(--muted);margin-top:3px}.security-dialog{border:0;border-radius:8px;width:min(1120px,100vw - 48px);max-width:none;height:min(760px,100vh - 48px);max-height:none;padding:0;overflow:hidden}.security-dialog>form{grid-template-rows:auto 1fr auto;height:100%;display:grid}.security-dialog>form>header,.security-password-dialog>form>header{border-bottom:1px solid #e2e7ed;justify-content:space-between;align-items:flex-start;padding:18px 22px;display:flex}.security-dialog h2,.security-password-dialog h2{margin:0}.security-dialog header p,.security-password-dialog header p{color:var(--muted);margin:4px 0 0}.security-dialog header>button,.security-password-dialog header>button{background:var(--subtle);cursor:pointer;border:0;border-radius:6px;width:34px;height:34px}.security-dialog-body{padding:18px 22px;overflow:auto}.security-dialog-body>section{border:1px solid #e1e6eb;border-radius:6px;margin-bottom:14px;padding:16px}.security-dialog-body h3{margin:0 0 12px;font-size:15px}.security-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.security-form-grid .span-two{grid-column:span 2}.security-assignment-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.security-toggle-fieldset{border:1px solid #dfe5eb;border-radius:6px;min-width:0;padding:10px}.security-toggle-fieldset legend{padding:0 6px;font-size:12px;font-weight:800}.security-toggle-list{flex-wrap:wrap;gap:6px;max-height:112px;display:flex;overflow:auto}.security-toggle-list label{background:var(--subtle);border-radius:4px;align-items:center;gap:6px;padding:5px 8px;font-size:12px;display:flex}.security-dialog>form>footer,.security-password-dialog>form>footer{border-top:1px solid #e2e7ed;justify-content:flex-end;align-items:center;gap:10px;padding:14px 22px;display:flex}.security-selection-count{color:var(--muted);margin-right:auto}.security-permission-search{margin:14px 0}.security-permission-groups{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.security-permission-groups section{border:1px solid #e1e6eb;border-radius:6px;overflow:hidden}.security-permission-groups section>header{background:#f5f7f9;justify-content:space-between;align-items:center;padding:8px 10px;display:flex}.security-permission-groups section>header button{color:#d75100;cursor:pointer;background:0 0;border:0;font-size:11px}.security-permission-groups section>label{border-top:1px solid #edf0f3;align-items:flex-start;gap:8px;padding:7px 10px;display:flex}.security-permission-groups label span,.security-permission-groups label strong,.security-permission-groups label small{display:block}.security-permission-groups label strong{font-size:11px}.security-permission-groups label small{color:#728094;margin-top:2px}.security-password-dialog{border:0;border-radius:8px;width:min(480px,100vw - 32px);padding:0}.security-password-dialog>form>div{gap:12px;padding:18px 22px;display:grid}.permission-directory{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;display:grid}.permission-directory article{background:var(--surface);border:1px solid #e1e6eb;border-radius:6px;padding:12px}.permission-directory h3{text-transform:capitalize;margin:0 0 8px}.permission-directory article>div{border-top:1px solid #edf0f3;padding:7px 0}.permission-directory strong,.permission-directory span{display:block}.permission-directory strong{font-size:11px}.permission-directory span{color:var(--muted);margin-top:2px;font-size:12px}.loading-overlay{z-index:2;background:#ffffffad;place-items:center;font-weight:700;display:grid;position:absolute;inset:110px 0 0}@media (width<=900px){.security-filters{grid-template-columns:1fr 1fr}.security-assignment-grid,.security-permission-groups,.permission-directory{grid-template-columns:1fr}.security-dialog{width:calc(100vw - 20px);height:calc(100vh - 20px)}.security-form-grid{grid-template-columns:1fr}.security-form-grid .span-two{grid-column:auto}}.inventory-receipts-page{width:min(1600px,100%)}.inventory-receipts-page .purchase-order-filters{grid-template-columns:minmax(210px,1.35fr) repeat(5,minmax(120px,.72fr)) auto auto}.receipt-dialog{width:min(1240px,100vw - 32px);height:min(820px,100vh - 32px);max-height:calc(100vh - 32px)}.receipt-dialog>form{height:100%}.receipt-dialog .purchase-order-dialog-body{min-height:0;overflow:auto}.receipt-dialog table{min-width:980px}.table-number-input{text-align:right;width:112px;min-height:34px;padding:6px 8px}.order-status.registrada{color:#176b37;background:#e4f7eb}.muted-text{color:var(--muted);font-size:12px}.cancel-receipt-dialog{border:0;border-radius:8px;width:min(560px,100vw - 32px);padding:0;overflow:hidden}.cancel-receipt-dialog::backdrop{background:#0a16268c}.cancel-receipt-dialog>form{grid-template-rows:auto minmax(0,1fr) auto;display:grid}.cancel-receipt-dialog header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:flex-start;gap:16px;padding:18px 20px;display:flex}.cancel-receipt-dialog h2{margin:2px 0 0}.cancel-receipt-dialog header p{color:var(--muted);margin:5px 0 0}.cancel-receipt-dialog header>button{cursor:pointer;background:#f3f4f6;border:0;border-radius:6px;width:34px;height:34px}.cancel-receipt-body{gap:14px;padding:18px 20px;display:grid}.cancel-receipt-dialog footer{border-top:1px solid var(--border);justify-content:flex-end;gap:9px;padding:14px 20px;display:flex}.receipt-hint{color:#7c2d12;background:#fff7ed;border-left:3px solid #f97316;margin:12px 0 0;padding:9px 11px;font-size:13px}.customer-payments-dialog{width:min(1040px,100vw - 32px)}.customer-payments-dialog table{min-width:850px}.customer-payments-dialog .dialog-body{gap:14px;max-height:min(68vh,620px);display:grid;overflow:auto}.payment-cancel-panel{background:#fffaf5;border:1px solid #fed7aa;border-radius:6px;gap:12px;padding:14px;display:grid}.payment-cancel-panel h3,.payment-cancel-panel p{margin:0}.payment-cancel-panel .compact-actions{justify-content:flex-end;gap:8px;display:flex}.credit-receipt-dialog{border:0;border-radius:8px;width:min(620px,100vw - 28px);max-height:calc(100vh - 28px);padding:0;overflow:hidden}.credit-receipt-dialog::backdrop{background:#0a162694}.credit-receipt-shell{background:var(--surface);grid-template-rows:auto minmax(0,1fr) auto;max-height:calc(100vh - 28px);display:grid}.credit-receipt-toolbar,.credit-receipt-actions{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;padding:14px 18px;display:flex}.credit-receipt-toolbar h2{margin:2px 0 0}.credit-receipt-toolbar>button{cursor:pointer;border:0;border-radius:6px;width:34px;height:34px}.credit-receipt-actions{border-top:1px solid var(--border);border-bottom:0;justify-content:flex-end}.credit-receipt-print{color:#111827;background:var(--surface);padding:22px 26px;position:relative;overflow:auto}.credit-receipt-company{text-align:center;border-bottom:1px dashed #9ca3af;padding-bottom:12px}.credit-receipt-company h1{margin:0 0 4px;font-size:22px}.credit-receipt-company p{margin:2px 0;font-size:12px}.credit-receipt-title{justify-content:space-between;align-items:center;gap:16px;padding:14px 0;font-size:15px;display:flex}.credit-receipt-title span{color:#ea580c;font-size:18px;font-weight:800}.credit-receipt-void{color:#dc2626;opacity:.82;border:3px solid #dc2626;padding:6px 12px;font-size:24px;font-weight:900;position:absolute;top:118px;right:34px;transform:rotate(-10deg)}.credit-receipt-data{border:1px solid #e5e7eb;grid-template-columns:repeat(2,minmax(0,1fr));margin:0;display:grid}.credit-receipt-data div{border-bottom:1px solid #e5e7eb;padding:9px 11px}.credit-receipt-data div:nth-child(odd){border-right:1px solid #e5e7eb}.credit-receipt-data dt{color:#6b7280;text-transform:uppercase;font-size:11px}.credit-receipt-data dd{margin:3px 0 0;font-size:13px;font-weight:700}.credit-receipt-amount{background:#fff7ed;border:1px solid #fed7aa;justify-content:space-between;align-items:center;margin-top:14px;padding:12px 14px;display:flex}.credit-receipt-amount span{font-size:12px;font-weight:700}.credit-receipt-amount strong{color:#ea580c;font-size:23px}.credit-receipt-note,.credit-receipt-slogan{margin:12px 0 0;font-size:12px}.credit-receipt-signatures{text-align:center;grid-template-columns:1fr 1fr;gap:42px;margin-top:42px;display:grid}.credit-receipt-signatures span{border-top:1px solid #374151;display:block}.credit-receipt-signatures p{margin:6px 0 0;font-size:12px}.credit-receipt-slogan{text-align:center;color:#6b7280}.warning-message{color:#7a2e0e;background:#fffaeb;border-left:3px solid #f79009;padding:10px 12px;font-size:12px}@media (width<=1120px){.inventory-receipts-page .purchase-order-filters{grid-template-columns:repeat(4,minmax(0,1fr))}.inventory-receipts-page .purchase-order-filters .search{grid-column:span 2}}@media (width<=720px){.inventory-receipts-page .purchase-order-filters{grid-template-columns:1fr}.inventory-receipts-page .purchase-order-filters .search{grid-column:auto}.receipt-dialog{border-radius:0;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0}.credit-receipt-data{grid-template-columns:1fr}.credit-receipt-data div:nth-child(odd){border-right:0}}@media print{body.printing-credit-receipt *{visibility:hidden!important}body.printing-credit-receipt .credit-receipt-dialog,body.printing-credit-receipt .credit-receipt-dialog *{visibility:visible!important}body.printing-credit-receipt .credit-receipt-dialog{border:0;width:100%;max-height:none;margin:0;display:block;position:absolute;inset:0}body.printing-credit-receipt .credit-receipt-shell{max-height:none;display:block}body.printing-credit-receipt .credit-receipt-toolbar,body.printing-credit-receipt .credit-receipt-actions{display:none!important}body.printing-credit-receipt .credit-receipt-print{padding:8mm;overflow:visible}}.organization-page{position:relative}.organization-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:12px;display:grid}.organization-summary article{background:var(--surface);border:1px solid #e1e6eb;border-radius:6px;justify-content:space-between;align-items:center;min-height:64px;padding:12px 16px;display:flex}.organization-summary span{color:var(--muted);font-size:12px;font-weight:700}.organization-summary strong{color:var(--text-strong);font-size:23px}.organization-tabs{border-bottom:1px solid #dbe2ea;gap:4px;margin-bottom:12px;display:flex}.organization-tabs button{color:var(--muted);cursor:pointer;background:0 0;border:0;padding:9px 14px;font-weight:700}.organization-tabs button.active{color:#e85d04;border-bottom:2px solid #e85d04}.organization-filters{flex-wrap:nowrap;align-items:end;gap:8px;margin-bottom:12px;display:flex}.organization-filters .field:first-child{flex:2 320px}.organization-filters .field{flex:180px;min-width:0}.organization-filters .button{flex:none;height:36px}.organization-table .table-card-heading{border-bottom:1px solid #e4e8ed;justify-content:space-between;align-items:center;padding:12px 14px;display:flex}.organization-table .table-card-heading strong,.organization-table .table-card-heading span,.organization-table td strong,.organization-table td small{display:block}.organization-table .table-card-heading span,.organization-table td small{color:var(--muted);margin-top:3px;font-size:12px}.organization-status{text-transform:capitalize;border-radius:999px;align-items:center;padding:4px 8px;font-size:11px;font-weight:800;display:inline-flex}.organization-status.activa{color:#19703a;background:#e3f5e9}.organization-status.inactiva{background:var(--subtle);color:#637083}.organization-dialog{border:0;border-radius:8px;width:min(820px,100vw - 40px);max-width:none;padding:0;overflow:hidden}.organization-dialog::backdrop{background:#0a162680}.organization-dialog>form{grid-template-rows:auto 1fr auto;max-height:calc(100vh - 40px);display:grid}.organization-dialog>form>header{border-bottom:1px solid #e2e7ed;justify-content:space-between;align-items:flex-start;padding:18px 22px;display:flex}.organization-dialog h2{margin:0}.organization-dialog header p{color:var(--muted);margin:4px 0 0}.organization-dialog header>button{background:var(--subtle);cursor:pointer;border:0;border-radius:6px;width:34px;height:34px}.organization-dialog-body{padding:20px 22px;overflow:auto}.organization-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;display:grid}.organization-form-grid .span-two{grid-column:span 2}.organization-dialog>form>footer{border-top:1px solid #e2e7ed;justify-content:flex-end;gap:10px;padding:14px 22px;display:flex}@media (width<=900px){.organization-summary{grid-template-columns:1fr 1fr 1fr}.organization-filters{grid-template-columns:1fr 1fr;align-items:end;display:grid}.organization-dialog{width:calc(100vw - 20px)}.organization-form-grid{grid-template-columns:1fr}.organization-form-grid .span-two{grid-column:auto}}@media (width<=560px){.organization-summary,.organization-filters{grid-template-columns:1fr}.organization-tabs{overflow-x:auto}.organization-tabs button{white-space:nowrap}}.audit-page,.general-configuration-page{width:min(1600px,100%);position:relative}.audit-filters{grid-template-columns:minmax(240px,1.7fr) repeat(3,minmax(125px,.8fr)) repeat(2,135px) auto;align-items:end;gap:8px;margin-bottom:12px;padding:10px;display:grid}.audit-filters .field{gap:3px;min-width:0}.audit-filters .field span{font-size:10px}.audit-filters input,.audit-filters select,.audit-filters .button{height:34px;min-height:34px;font-size:12px}.audit-table .table-card-heading{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;padding:12px 14px;display:flex}.audit-table .table-card-heading strong,.audit-table .table-card-heading span,.audit-table td strong,.audit-table td small{display:block}.audit-table .table-card-heading span,.audit-table td small{color:var(--muted);margin-top:2px;font-size:10px}.audit-table table{min-width:1120px}.audit-table th:first-child{width:145px}.audit-table th:nth-child(2){width:140px}.audit-table th:nth-child(3),.audit-table th:nth-child(4){width:105px}.audit-table th:nth-child(5){width:160px}.audit-table th:nth-child(6){width:125px}.audit-table th:nth-child(7){width:190px}.audit-table th:last-child{width:70px}.audit-module,.audit-action{color:var(--text-soft);text-transform:capitalize;background:#eef3f8;border-radius:4px;padding:3px 7px;font-size:10px;font-weight:800;display:inline-flex}.audit-action{color:#b54708;background:#fff1e8}.audit-pagination{border-top:1px solid var(--border);justify-content:flex-end;align-items:center;gap:8px;padding:10px 14px;display:flex}.audit-pagination span{color:var(--muted);margin-right:auto;font-size:12px}.audit-pagination select{border:1px solid var(--border);background:var(--surface);border-radius:5px;height:30px}.audit-detail-dialog{background:var(--surface);border:0;border-radius:8px;width:min(1100px,100vw - 40px);max-width:none;height:min(760px,100dvh - 40px);max-height:none;margin:auto;padding:0;overflow:hidden}.audit-detail-dialog::backdrop,.general-configuration-dialog::backdrop{background:#0a162685}.audit-detail-dialog>header,.audit-detail-dialog>footer,.general-configuration-dialog>form>header,.general-configuration-dialog>form>footer{border-bottom:1px solid var(--border);justify-content:space-between;align-items:flex-start;gap:12px;padding:16px 20px;display:flex}.audit-detail-dialog>header h2,.general-configuration-dialog h2{margin:0}.audit-detail-dialog>header p,.general-configuration-dialog header p{color:var(--muted);margin:3px 0 0}.audit-detail-dialog>header>button,.general-configuration-dialog header>button{background:var(--subtle);cursor:pointer;border:0;border-radius:6px;width:34px;height:34px}.audit-detail-dialog{grid-template-rows:auto minmax(0,1fr) auto}.audit-detail-dialog[open]{display:grid}.audit-detail-body{padding:16px 20px;overflow:auto}.audit-detail-meta{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:12px;display:grid}.audit-detail-meta>div{border:1px solid var(--border);background:var(--canvas);border-radius:6px;gap:3px;min-width:0;padding:9px 11px;display:grid}.audit-detail-meta small{color:var(--muted)}.audit-detail-meta strong{overflow-wrap:anywhere;font-size:12px}.audit-detail-meta .span-two{grid-column:1/-1}.audit-change-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.audit-change-grid article{border:1px solid var(--border);border-radius:6px;min-width:0;overflow:hidden}.audit-change-grid h3{border-bottom:1px solid var(--border);background:var(--canvas);margin:0;padding:9px 11px;font-size:13px}.audit-change-grid pre{color:#e2e8f0;white-space:pre-wrap;background:#101827;min-height:220px;max-height:330px;margin:0;padding:12px;font-size:11px;overflow:auto}.audit-detail-dialog>footer{border-top:1px solid var(--border);border-bottom:0;justify-content:flex-end}.general-configuration-hero{border:1px solid var(--border);background:var(--surface);border-radius:7px;align-items:center;gap:14px;margin-bottom:12px;padding:14px 16px;display:flex}.configuration-monogram{color:#fff;background:#172033;border-radius:7px;place-items:center;width:52px;height:52px;font-size:18px;font-weight:900;display:grid}.general-configuration-hero h2{margin:0;font-size:20px}.general-configuration-hero p{color:var(--muted);margin:2px 0 5px}.general-configuration-hero>small{color:var(--muted);margin-left:auto}.general-configuration-sections{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.general-configuration-sections article{border:1px solid var(--border);background:var(--surface);border-radius:7px;min-width:0;padding:14px}.general-configuration-sections article>header{border-bottom:1px solid var(--border);align-items:center;gap:9px;padding-bottom:10px;display:flex}.general-configuration-sections article>header>span{color:#c2410c;background:#fff1e8;border-radius:6px;place-items:center;width:30px;height:30px;font-size:11px;font-weight:900;display:grid}.general-configuration-sections header strong,.general-configuration-sections header small{display:block}.general-configuration-sections header small{color:var(--muted);margin-top:1px;font-size:10px}.general-configuration-sections dl{margin:0}.general-configuration-sections dl>div{border-bottom:1px solid #eef1f4;grid-template-columns:130px minmax(0,1fr);gap:10px;padding:9px 2px;display:grid}.general-configuration-sections dl>div:last-child{border-bottom:0}.general-configuration-sections dt{color:var(--muted);font-size:11px}.general-configuration-sections dd{overflow-wrap:anywhere;margin:0;font-size:12px;font-weight:700}.theme-preference-card{align-content:start;gap:12px;display:grid}.theme-preference-control{justify-content:space-between;align-items:center;gap:14px;display:flex}.theme-preference-control strong,.theme-preference-control small{display:block}.theme-preference-control small{color:var(--muted);margin-top:3px;font-size:10px}.theme-switch{cursor:pointer;align-items:center;display:inline-flex}.theme-switch input{opacity:0;width:1px;height:1px;position:absolute;overflow:hidden}.theme-switch-track{border:1px solid var(--border-strong);background:var(--subtle);border-radius:999px;width:46px;height:25px;transition:background .18s,border-color .18s;display:block;position:relative}.theme-switch-track>span{background:var(--surface);border-radius:50%;width:17px;height:17px;transition:transform .18s;position:absolute;top:3px;left:3px;box-shadow:0 2px 5px #0f172a3d}.theme-switch input:checked+.theme-switch-track{background:#f97316;border-color:#f97316}.theme-switch input:checked+.theme-switch-track>span{transform:translate(21px)}.theme-switch input:focus-visible+.theme-switch-track{outline-offset:2px;outline:3px solid #f9731640}.theme-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;display:grid}.theme-options button{border:1px solid var(--border);background:var(--surface);min-height:42px;color:var(--text);border-radius:6px;align-items:center;gap:8px;padding:7px 9px;font-size:11px;font-weight:800;display:flex}.theme-options button.active{border-color:#f97316;box-shadow:inset 0 0 0 1px #f97316}.theme-swatch{border:1px solid var(--border-strong);border-radius:4px;width:28px;height:20px;display:block}.theme-swatch.light{background:linear-gradient(90deg,#f8fafc 0 62%,#fff 62%)}.theme-swatch.dark{background:linear-gradient(90deg,#111417 0 62%,#20252a 62%)}.theme-preference-card>p{color:var(--muted);margin:0;font-size:10px}.general-configuration-dialog{border:0;border-radius:8px;width:min(1000px,100vw - 40px);max-width:none;height:min(780px,100dvh - 40px);max-height:none;margin:auto;padding:0;overflow:hidden}.general-configuration-dialog>form{grid-template-rows:auto minmax(0,1fr) auto;height:100%;display:grid}.general-configuration-form{padding:16px 20px;overflow:auto}.general-configuration-form>section{border:1px solid var(--border);border-radius:6px;margin-bottom:12px;padding:14px}.general-configuration-form h3{margin:0 0 11px;font-size:14px}.general-configuration-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;display:grid}.general-configuration-grid .span-two{grid-column:span 2}.general-configuration-dialog>form>footer{border-top:1px solid var(--border);border-bottom:0;justify-content:flex-end}@media (width<=1150px){.audit-filters{grid-template-columns:repeat(4,minmax(0,1fr))}.audit-filters .audit-search{grid-column:span 2}}@media (width<=760px){.audit-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.audit-filters .audit-search{grid-column:1/-1}.audit-change-grid,.general-configuration-sections{grid-template-columns:1fr}.general-configuration-grid{grid-template-columns:1fr 1fr}.general-configuration-grid .span-two{grid-column:1/-1}.general-configuration-hero{align-items:flex-start}.general-configuration-hero>small{margin-left:0}}@media (width<=520px){.audit-filters,.audit-detail-meta,.general-configuration-grid{grid-template-columns:1fr}.audit-filters .audit-search,.audit-detail-meta .span-two,.general-configuration-grid .span-two{grid-column:auto}.audit-detail-dialog,.general-configuration-dialog{border-radius:0;width:100vw;height:100dvh;max-height:100dvh}.general-configuration-hero{flex-wrap:wrap}}.contract-workspace,.benefits-layout{grid-template-columns:minmax(380px,.9fr) minmax(480px,1.1fr);align-items:start;gap:12px;display:grid}.contract-editor,.contract-preview,.benefits-inputs,.benefits-result,.saved-contracts{padding:16px}.contract-editor h2,.saved-contracts h2,.benefits-inputs h2{margin:0 0 14px;font-size:16px}.contract-fields,.benefits-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:10px;display:grid}.contract-fields .field:first-child{grid-column:1/-1}.contract-help,.legal-note{color:#9a3412;background:#fff7ed;border-radius:5px;padding:9px 10px;font-size:11px;line-height:1.5}.contract-body{resize:vertical;border:1px solid var(--border);border-radius:6px;width:100%;min-height:480px;padding:14px;font:12px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace}.contract-preview{min-height:650px}.contract-preview>header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:start;padding-bottom:12px;display:flex}.contract-preview h2{margin:2px 0 0}.contract-preview pre{min-height:520px;color:var(--text-strong);white-space:pre-wrap;margin:0;padding:32px 28px;font:14px/1.8 Georgia,serif;overflow:auto}.saved-contracts{margin-top:12px}.saved-contracts>button{border:0;border-top:1px solid var(--border);background:var(--surface);text-align:left;cursor:pointer;justify-content:space-between;align-items:center;width:100%;padding:10px;display:flex}.saved-contracts span,.saved-contracts strong,.saved-contracts small{display:block}.saved-contracts small,.saved-contracts>button>span:last-child{color:var(--muted);margin-top:2px;font-size:11px}.benefit-check{align-items:start;gap:9px;margin:16px 0;display:flex}.benefit-check span,.benefit-check strong,.benefit-check small{display:block}.benefit-check small{color:var(--muted);margin-top:3px}.benefits-result>header{border-bottom:1px solid var(--border);padding-bottom:14px}.benefits-result h2{margin:3px 0}.benefits-result>header span{color:var(--muted)}.benefit-lines article{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:20px;padding:18px 2px;display:flex}.benefit-lines article strong,.benefit-lines article small{display:block}.benefit-lines article small{color:var(--muted);margin-top:4px}.benefit-lines article b{white-space:nowrap;font-size:18px}.benefit-lines article.disabled{opacity:.45}.benefits-result>footer{color:#fff;background:#172033;justify-content:space-between;align-items:center;margin:20px -16px -16px;padding:18px 16px;display:flex}.benefits-result>footer strong{font-size:26px}.legal-note{margin-bottom:0}.benefits-page .benefits-layout{margin-top:4px}@media (width<=1000px){.contract-workspace,.benefits-layout{grid-template-columns:1fr}.contract-preview{min-height:0}}@media (width<=560px){.contract-fields,.benefits-grid{grid-template-columns:1fr}.contract-fields .field:first-child{grid-column:auto}.contract-preview pre{padding:20px 5px}}@media print{.contract-workspace>:not(.contract-preview),.benefits-layout>:not(.benefits-result){display:none!important}.contract-preview,.benefits-result{width:100%;box-shadow:none;border:0;position:static}.contract-preview button{display:none!important}}@media (width<=760px){.client-form-grid{grid-template-columns:1fr}.client-form-grid .span-two{grid-column:auto}.client-dialog{border-radius:0;width:100vw;height:100dvh;max-height:100dvh}.client-dialog>form{max-height:100dvh}}.product-filters{grid-template-columns:minmax(240px,1fr) 150px 150px 160px 120px auto auto auto;align-items:end}.product-low-stock{white-space:nowrap;align-self:center;margin-top:20px}.products-table table{min-width:1120px}.product-dialog{border:0;border-radius:8px;width:min(1240px,100% - 24px);max-height:calc(100dvh - 24px);padding:0;overflow:hidden;box-shadow:0 24px 80px #0f172a47}.product-dialog::backdrop{background:#0f172a80}.product-dialog>form{grid-template-rows:auto minmax(0,1fr) auto;max-height:calc(100dvh - 24px);display:grid}.product-dialog header,.product-dialog footer{background:var(--surface);justify-content:space-between;align-items:center;gap:12px;padding:13px 16px;display:flex}.product-dialog header{border-bottom:1px solid #e2e8f0}.product-dialog footer{border-top:1px solid #e2e8f0;justify-content:flex-end}.product-dialog header h2,.product-dialog header p,.section-heading h3,.section-heading p{margin:0}.product-dialog header p,.section-heading p{color:var(--muted);margin-top:3px;font-size:12px}.product-dialog header>button{background:var(--surface);border:1px solid #e2e8f0;border-radius:7px;width:34px;min-height:34px}.product-dialog-body{background:var(--canvas);padding:13px 15px;overflow:auto}.product-dialog-body>section{background:var(--surface);border:1px solid #e2e8f0;border-radius:8px;margin-bottom:11px;padding:12px}.product-dialog-body>section>h3,.section-heading h3{color:#c2410c;font-size:15px}.product-form-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 11px;display:grid}.product-form-grid .span-two{grid-column:span 2}.product-form-grid .product-photo-field{grid-column:1/span 2}.readonly-field input{background:var(--subtle);color:var(--muted)}.readonly-field small{color:var(--muted);font-size:10px}.reference-cost-field .button{width:max-content;margin-top:5px}.reference-cost-dialog{background:var(--surface);width:min(560px,100vw - 28px);color:var(--text);border:0;border-radius:8px;margin:auto;padding:0;box-shadow:0 24px 80px #0f172a4d}.reference-cost-dialog::backdrop{background:#0f172a8c}.reference-cost-dialog>form{grid-template-rows:auto minmax(0,1fr) auto;display:grid}.reference-cost-dialog header,.reference-cost-dialog footer{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;padding:13px 16px;display:flex}.reference-cost-dialog footer{border-top:1px solid var(--border);border-bottom:0;justify-content:flex-end}.reference-cost-dialog header h2,.reference-cost-dialog header p{margin:0}.reference-cost-dialog header p{color:var(--muted);margin-top:3px;font-size:12px}.reference-cost-dialog header>button{border:1px solid var(--border);background:var(--surface);width:34px;height:34px;color:var(--text);border-radius:7px}.reference-cost-body{gap:12px;padding:16px;display:grid}.reference-cost-body textarea{border:1px solid var(--border-strong);background:var(--surface);width:100%;color:var(--text);resize:vertical;border-radius:7px;padding:9px}.reference-cost-summary{border:1px solid var(--border);background:var(--subtle);border-radius:7px;justify-content:space-between;align-items:center;padding:10px 12px;display:flex}.reference-cost-summary span{color:var(--muted);font-size:12px;font-weight:700}.reference-cost-summary strong{font-size:18px}.reference-cost-note{color:#9a3412;background:#fff7ed;border-left:3px solid #f97316;gap:3px;padding:8px 10px;font-size:11px;display:grid}.section-heading{justify-content:space-between;align-items:center;gap:12px;margin-bottom:9px;display:flex}.product-editor-list{gap:7px;display:grid}.presentation-editor-row,.variant-editor-row,.barcode-editor-row{border-top:1px solid #eef2f7;align-items:end;gap:7px;padding-top:8px;display:grid}.presentation-editor-row{grid-template-columns:minmax(160px,1.4fr) minmax(125px,1fr) 105px 125px 115px 115px}.variant-editor-row{grid-template-columns:170px minmax(220px,1fr) auto auto}.barcode-editor-row{grid-template-columns:minmax(170px,1fr) minmax(150px,1fr) minmax(150px,1fr) minmax(190px,1.2fr) auto auto}.compact-check{white-space:nowrap;align-items:center;gap:6px;min-height:34px;font-size:11px;font-weight:700;display:inline-flex}.empty-inline{color:var(--muted);margin:6px 0;font-size:12px}.button.small{min-height:32px;padding:0 10px}.button.danger{background:var(--surface);color:#b91c1c;border-color:#fecaca}@media (width<=1050px){.product-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.product-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.presentation-editor-row{grid-template-columns:repeat(3,minmax(0,1fr))}.variant-editor-row,.barcode-editor-row{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=700px){.product-filters,.product-form-grid,.presentation-editor-row,.variant-editor-row,.barcode-editor-row{grid-template-columns:1fr}.product-form-grid .span-two{grid-column:auto}.product-dialog{border-radius:0;width:100vw;height:100dvh;max-height:100dvh}.product-dialog>form{max-height:100dvh}.section-heading{flex-direction:column;align-items:stretch}}.product-catalog-dialog,.product-route-price-dialog{background:var(--surface);border:0;border-radius:8px;width:min(1080px,100vw - 28px);max-height:calc(100dvh - 28px);margin:auto;padding:0;overflow:hidden;box-shadow:0 24px 80px #0f172a4d}.product-catalog-dialog::backdrop,.product-route-price-dialog::backdrop{background:#0f172a85}.product-catalog-dialog>form,.product-catalog-dialog>.dialog-shell,.product-route-price-dialog>.dialog-shell{grid-template-rows:auto minmax(0,1fr) auto;max-height:calc(100dvh - 28px);display:grid}.product-catalog-dialog header,.product-catalog-dialog footer,.product-route-price-dialog header,.product-route-price-dialog footer{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;padding:14px 17px;display:flex}.product-catalog-dialog footer,.product-route-price-dialog footer{border-top:1px solid var(--border);border-bottom:0;justify-content:flex-end}.product-catalog-dialog h2,.product-catalog-dialog p,.product-route-price-dialog h2,.product-route-price-dialog p{margin:0}.product-catalog-dialog header p,.product-route-price-dialog header p{color:var(--muted);margin-top:3px;font-size:12px}.product-catalog-dialog header>button,.product-route-price-dialog header>button{border:1px solid var(--border);background:var(--surface);border-radius:6px;width:34px;height:34px}.product-catalog-body,.route-price-body{background:var(--canvas);padding:14px 17px;overflow:auto}.product-brand-form{border:1px solid var(--border);background:var(--surface);border-radius:7px;grid-template-columns:180px minmax(240px,1fr) 130px auto auto;align-items:end;gap:8px;margin-bottom:12px;padding:12px;display:grid}.catalog-tabs{border-bottom:1px solid var(--border);gap:4px;margin-bottom:10px;display:flex}.catalog-tabs button{color:var(--muted);background:0 0;border:0;border-bottom:2px solid #0000;padding:8px 12px;font-weight:700}.catalog-tabs button.active{border-bottom-color:var(--primary);color:var(--primary)}.product-master-form{border:1px solid var(--border);background:var(--surface);border-radius:7px;grid-template-columns:minmax(220px,1fr) minmax(210px,1fr) 130px auto auto;align-items:end;gap:8px;margin-bottom:12px;padding:12px;display:grid}.product-master-form.units{grid-template-columns:minmax(210px,1fr) 130px minmax(180px,1fr) 130px auto auto}.product-catalog-dialog table{min-width:720px}.product-route-price-dialog{width:min(1240px,100vw - 28px)}.product-route-price-dialog table{min-width:1050px}.product-route-price-dialog td input{text-align:right;width:125px}.product-route-price-dialog .price-invalid{background:#fef2f2;border-color:#dc2626}.route-price-filter{width:280px;margin-bottom:10px}@media (width<=800px){.product-brand-form,.product-master-form,.product-master-form.units{grid-template-columns:1fr 1fr}.product-brand-form .fluid,.product-master-form .fluid{grid-column:1/-1}.product-catalog-dialog,.product-route-price-dialog{border-radius:0;width:100vw;max-height:100dvh}.product-catalog-dialog>form,.product-catalog-dialog>.dialog-shell,.product-route-price-dialog>.dialog-shell{max-height:100dvh}}.product-history-dialog{background:var(--surface);border:0;border-radius:8px;width:min(1120px,100vw - 28px);max-height:calc(100dvh - 28px);margin:auto;padding:0;overflow:hidden;box-shadow:0 24px 80px #0f172a4d}.product-history-dialog::backdrop{background:#0f172a85}.product-history-dialog>.dialog-shell{grid-template-rows:auto minmax(0,1fr) auto;max-height:calc(100dvh - 28px);display:grid}.product-history-dialog header,.product-history-dialog footer{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;padding:14px 17px;display:flex}.product-history-dialog footer{border-top:1px solid var(--border);border-bottom:0}.product-history-dialog h2,.product-history-dialog p{margin:0}.product-history-dialog header p,.product-history-dialog footer span{color:var(--muted);font-size:12px}.product-history-body{background:var(--canvas);padding:14px 17px;overflow:auto}.product-history-dialog table{min-width:900px}.product-history-dialog code{font-size:11px}@media (width<=800px){.product-history-dialog{border-radius:0;width:100vw;max-height:100dvh}.product-history-dialog>.dialog-shell{max-height:100dvh}}.product-commercial-dialog{background:var(--surface);border:0;border-radius:8px;width:min(1500px,100vw - 28px);max-width:none;height:min(860px,100dvh - 28px);max-height:none;margin:auto;padding:0;overflow:hidden;box-shadow:0 24px 80px #0f172a4d}.product-commercial-dialog::backdrop{background:#0f172a85}.product-commercial-dialog>form{grid-template-rows:auto minmax(0,1fr) auto;height:100%;display:grid}.product-commercial-dialog header,.product-commercial-dialog footer{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:14px;padding:13px 17px;display:flex}.product-commercial-dialog header h2,.product-commercial-dialog header p{margin:0}.product-commercial-dialog header small{color:#c2410c;font-size:10px;font-weight:900}.product-commercial-dialog header p{color:var(--muted);margin-top:3px;font-size:12px}.product-commercial-dialog .dialog-close{border:1px solid var(--border);background:var(--surface);cursor:pointer;border-radius:6px;height:34px;padding:0 12px}.product-commercial-body{background:var(--canvas);align-content:start;gap:13px;padding:13px 16px;display:grid;overflow:auto}.product-commercial-body>section{border:1px solid var(--border);background:var(--surface);border-radius:7px;min-width:0;padding:12px}.product-commercial-body .section-heading{margin-bottom:9px}.product-commercial-body .section-heading p{color:var(--muted);margin:3px 0 0;font-size:11px}.commercial-rule-cards{gap:10px;display:grid}.commercial-rule-card{border:1px solid var(--border);background:var(--surface);border-radius:6px;gap:10px;padding:12px;display:grid}.commercial-rule-card>header{border-bottom:1px solid var(--border);padding:0 0 8px}.commercial-rule-card>header span{color:var(--muted);font-size:11px}.commercial-rule-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;display:grid}.commercial-rule-grid .field span{font-size:10px}.commercial-rule-grid .field input,.commercial-rule-grid .field select{height:34px;font-size:12px}.commercial-rule-grid select[multiple]{height:84px}.commercial-rule-grid .span-two{grid-column:span 2}.commercial-check{align-items:center;gap:8px;min-height:34px;font-size:12px;display:flex}.commercial-check input{width:17px;height:17px}.commercial-rule-card>.compact{justify-self:end;min-height:32px;padding:0 10px}.promotion-multi-select{border:1px solid var(--border);background:var(--subtle);border-radius:6px;gap:7px;min-width:0;margin:0;padding:8px;display:grid}.promotion-multi-select legend{color:var(--text-soft);padding:0 4px;font-size:10px;font-weight:800}.promotion-multi-summary,.promotion-multi-actions{justify-content:space-between;align-items:center;gap:6px;display:flex}.promotion-multi-summary strong{font-size:11px}.promotion-multi-select button{border:1px solid var(--border);background:var(--surface);min-height:27px;color:var(--text);cursor:pointer;border-radius:5px;padding:3px 7px;font-size:10px}.promotion-multi-select button:disabled{cursor:not-allowed;opacity:.5}.promotion-multi-select>input{border:1px solid var(--border-strong);background:var(--surface);width:100%;height:32px;color:var(--text);border-radius:5px;padding:0 8px;font-size:11px}.promotion-multi-actions{justify-content:flex-start}.promotion-multi-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:2px;max-height:132px;display:grid;overflow:auto}.promotion-multi-options label{background:var(--surface);border-radius:4px;align-items:center;gap:6px;min-width:0;padding:5px 6px;font-size:11px;display:flex}.promotion-multi-options label:hover{background:color-mix(in srgb,var(--accent) 8%,var(--surface))}.promotion-multi-options input{flex:none;width:15px;height:15px}.promotion-multi-options span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.promotion-multi-options p,.promotion-multi-select small{color:var(--muted);margin:0;font-size:10px}.product-commercial-dialog footer{border-top:1px solid var(--border);border-bottom:0;justify-content:space-between}.product-commercial-dialog footer>span{max-width:760px;color:var(--muted);font-size:11px}.product-commercial-dialog footer>div{gap:8px;display:flex}@media (width<=1000px){.commercial-rule-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=800px){.product-commercial-dialog{border-radius:0;width:100vw;height:100dvh;max-height:100dvh}.product-commercial-dialog footer{flex-direction:column;align-items:stretch}.product-commercial-dialog footer>div{justify-content:flex-end}.commercial-rule-grid{grid-template-columns:1fr}.commercial-rule-grid .span-two{grid-column:auto}}.product-name-with-promotion{align-items:center;gap:6px;display:inline-flex}.promotion-star{color:#b77900;cursor:pointer;background:#fff4cc;border:0;border-radius:5px;place-items:center;width:25px;height:25px;padding:0;font-size:17px;line-height:1;display:inline-grid}.promotion-star:hover{color:#8a5800;background:#ffe69a}.product-promotion-dialog{background:var(--surface);border:0;border-radius:8px;width:min(1060px,100vw - 28px);max-height:calc(100dvh - 28px);margin:auto;padding:0;overflow:hidden;box-shadow:0 24px 80px #0f172a4d}.product-promotion-dialog::backdrop{background:#0f172a85}.product-promotion-dialog>.dialog-shell{grid-template-rows:auto minmax(0,1fr) auto;max-height:calc(100dvh - 28px);display:grid}.product-promotion-dialog header,.product-promotion-dialog footer{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;padding:13px 16px;display:flex}.product-promotion-dialog footer{border-top:1px solid var(--border);border-bottom:0}.product-promotion-dialog h2,.product-promotion-dialog p{margin:0}.product-promotion-dialog header p,.product-promotion-dialog footer span{color:var(--muted);font-size:12px}.promotion-eyebrow{color:#a16207;text-transform:uppercase;font-size:11px;font-weight:800}.promotion-detail-body{background:var(--canvas);padding:14px 16px;overflow:auto}.promotion-detail-body h3{margin:2px 0 8px;font-size:14px}.promotion-detail-body section+section{margin-top:16px}.promotion-card-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.promotion-card{background:#fffdf4;border:1px solid #f0c65c;border-radius:6px;gap:4px;padding:11px;display:grid}.promotion-card.bonus{background:#f3fbf6;border-color:#8bc9a5}.promotion-card span{font-size:12px}.promotion-card small{color:var(--muted);font-size:11px}.promotion-detail-link{color:#b45309;text-align:left;cursor:pointer;background:0 0;border:0;height:24px;padding:0;font-size:11px;font-weight:800}.promotion-report-filters{grid-template-columns:minmax(260px,1.6fr) 160px 150px minmax(160px,1fr) auto auto;align-items:end;gap:8px;display:grid}.promotion-report-summary{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:10px 0;display:grid}.promotion-report-summary>div{border:1px solid var(--border);background:var(--surface);border-radius:6px;gap:3px;padding:11px 13px;display:grid}.promotion-report-summary small{color:var(--muted);text-transform:uppercase;font-size:10px}.promotion-report-summary strong{font-size:20px}.promotion-type{text-transform:uppercase;border-radius:4px;padding:3px 7px;font-size:10px;font-weight:800;display:inline-block}.promotion-type.descuento{color:#8a5800;background:#fff0c7}.promotion-type.bonificacion{color:#126834;background:#dcf6e7}@media (width<=900px){.promotion-report-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.promotion-report-filters .fluid{grid-column:1/-1}}@media (width<=650px){.product-promotion-dialog{border-radius:0;width:100vw;height:100dvh;max-height:100dvh}.product-promotion-dialog>.dialog-shell{max-height:100dvh}.promotion-card-grid,.promotion-report-summary,.promotion-report-filters{grid-template-columns:1fr}.promotion-report-filters .fluid{grid-column:auto}}.product-combos-dialog,.product-combo-editor-dialog{background:var(--surface);border:0;border-radius:8px;width:min(1500px,100vw - 28px);max-width:none;height:min(880px,100dvh - 28px);max-height:none;margin:auto;padding:0;overflow:hidden;box-shadow:0 24px 80px #0f172a4d}.product-combos-dialog::backdrop,.product-combo-editor-dialog::backdrop{background:#0f172a85}.combo-list-shell,.product-combo-editor-dialog>form{grid-template-rows:auto minmax(0,1fr) auto;height:100%;display:grid}.product-combos-dialog header,.product-combo-editor-dialog header,.product-combo-editor-dialog footer{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:14px;padding:13px 17px;display:flex}.product-combos-dialog header h2,.product-combos-dialog header p,.product-combo-editor-dialog header h2,.product-combo-editor-dialog header p{margin:0}.product-combos-dialog header small,.product-combo-editor-dialog header small{color:#c2410c;font-size:10px;font-weight:900}.product-combos-dialog header p,.product-combo-editor-dialog header p{color:var(--muted);margin-top:3px;font-size:12px}.dialog-header-actions{align-items:center;gap:8px;display:flex}.product-combos-dialog .dialog-close,.product-combo-editor-dialog .dialog-close{border:1px solid var(--border);background:var(--surface);cursor:pointer;border-radius:6px;height:34px;padding:0 12px}.combo-list-body,.combo-editor-body{min-height:0;padding:14px 17px;overflow:auto}.combo-list-body{align-content:start;gap:12px;display:grid}.compact-filter-bar{border:1px solid var(--border);background:var(--canvas);border-radius:7px;grid-template-columns:minmax(260px,1fr) 180px auto auto;align-items:end;gap:8px;padding:10px;display:grid}.compact-filter-bar .field{gap:3px}.compact-filter-bar input,.compact-filter-bar select{height:34px}.combo-list-table{min-width:1240px}.combo-list-table td small,.combo-detail-table td small,.positive-value small,.negative-value small{color:var(--muted);margin-top:2px;font-size:10px;display:block}.positive-value{font-weight:700}.negative-value{color:#dc2626;font-weight:700}.inline-actions{white-space:nowrap;gap:5px;display:flex}.combo-editor-body{align-content:start;gap:12px;display:grid}.combo-editor-body>section{border:1px solid var(--border);background:var(--surface);border-radius:7px;padding:12px}.combo-general-grid{grid-template-columns:180px minmax(300px,1fr) 160px;gap:9px;display:grid}.combo-general-grid .full{grid-column:1/-1}.combo-general-grid input,.combo-general-grid select,.combo-line-grid input,.combo-line-grid select,.combo-price-summary input{height:36px}.combo-line-grid{grid-template-columns:minmax(260px,1.6fr) minmax(170px,1fr) minmax(160px,1fr) 110px 150px auto;align-items:end;gap:8px;display:grid}.combo-add-line{height:36px}.field.readonly input{background:var(--canvas);font-weight:700}.combo-detail-table{min-width:1120px}.combo-price-summary{grid-template-columns:180px 180px repeat(3,minmax(150px,1fr));align-items:end;gap:9px;display:grid!important}.combo-price-summary>div{border:1px solid var(--border);background:var(--canvas);border-radius:6px;gap:3px;min-height:58px;padding:8px 10px;display:grid}.combo-price-summary small{color:var(--muted);text-transform:uppercase;font-size:10px;font-weight:800}.combo-price-summary strong{font-size:16px}.combo-price-summary span{font-size:10px}.summary-positive{color:#15803d;background:#f0fdf4!important}.summary-negative{color:#dc2626;background:#fef2f2!important}.combo-cost-warning{color:#9a3412;background:#fff7ed;border:1px solid #fdba74;border-radius:6px;padding:9px 11px;font-size:12px;font-weight:700}.product-combo-editor-dialog footer{border-top:1px solid var(--border);border-bottom:0}.product-combo-editor-dialog footer>span{color:var(--muted);font-size:11px}.product-combo-editor-dialog footer>div{gap:8px;display:flex}@media (width<=1050px){.combo-line-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.combo-general-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.combo-price-summary{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (width<=760px){.product-combos-dialog,.product-combo-editor-dialog{border-radius:0;width:100vw;height:100dvh;max-height:100dvh}.product-combos-dialog header,.product-combo-editor-dialog header{align-items:flex-start}.dialog-header-actions{flex-wrap:wrap;justify-content:flex-end}.compact-filter-bar,.combo-general-grid,.combo-line-grid,.combo-price-summary{grid-template-columns:1fr}.combo-general-grid .full{grid-column:auto}.product-combo-editor-dialog footer{flex-direction:column;align-items:stretch}.product-combo-editor-dialog footer>div{justify-content:flex-end}}.product-combo-availability-dialog{background:var(--surface);border:0;border-radius:8px;width:min(1320px,100vw - 32px);max-width:none;height:min(790px,100dvh - 32px);max-height:none;margin:auto;padding:0;overflow:hidden;box-shadow:0 24px 80px #0f172a57}.product-combo-availability-dialog::backdrop{background:#0f172a8c}.combo-availability-shell{grid-template-rows:auto minmax(0,1fr) auto;height:100%;display:grid}.product-combo-availability-dialog header,.product-combo-availability-dialog footer{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;padding:13px 17px;display:flex}.product-combo-availability-dialog header h2,.product-combo-availability-dialog header p{margin:0}.product-combo-availability-dialog header small{color:#c2410c;font-size:10px;font-weight:900}.product-combo-availability-dialog header p{color:var(--muted);margin-top:3px;font-size:12px}.product-combo-availability-dialog .dialog-close{border:1px solid var(--border);background:var(--surface);cursor:pointer;border-radius:6px;height:34px;padding:0 12px}.combo-availability-body{align-content:start;gap:12px;min-height:0;padding:14px 17px;display:grid;overflow:auto}.combo-availability-filters{border:1px solid var(--border);background:var(--canvas);border-radius:7px;grid-template-columns:minmax(300px,1fr) 190px auto;align-items:end;gap:8px;padding:10px;display:grid}.combo-availability-filters input,.combo-availability-filters select{height:36px}.combo-availability-result{grid-template-columns:repeat(6,minmax(130px,1fr));gap:8px;display:grid}.combo-availability-result>div{border:1px solid var(--border);background:var(--canvas);border-radius:6px;gap:3px;padding:10px;display:grid}.combo-availability-result small{color:var(--muted);text-transform:uppercase;font-size:9px;font-weight:900}.combo-availability-result strong{font-size:15px}.combo-availability-result.sellable>div:first-child{color:#15803d;background:#f0fdf4;border-color:#86efac}.combo-availability-result.blocked>div:first-child{color:#b91c1c;background:#fef2f2;border-color:#fca5a5}.combo-availability-issues{color:#9a3412;background:#fff7ed;border:1px solid #fdba74;border-radius:6px;margin:0;padding:10px 28px;font-size:12px}.combo-availability-table{min-width:1080px}.combo-availability-table td small{color:var(--muted);font-size:10px;display:block}.product-combo-availability-dialog footer{border-top:1px solid var(--border);border-bottom:0}.product-combo-availability-dialog footer span{color:var(--muted);font-size:11px}@media (width<=900px){.combo-availability-result{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (width<=680px){.product-combo-availability-dialog{border-radius:0;width:100vw;height:100dvh;max-height:100dvh}.combo-availability-filters,.combo-availability-result{grid-template-columns:1fr}.product-combo-availability-dialog footer{flex-direction:column;align-items:stretch}}.purchase-order-filters{grid-template-columns:minmax(230px,1.5fr) minmax(180px,1fr) 135px 135px 155px auto auto;align-items:end;gap:8px;margin-bottom:12px;display:grid}.purchase-order-filters .field{min-width:0}.purchase-orders-table table{min-width:850px}.purchase-orders-table td strong,.purchase-orders-table td small{display:block}.purchase-orders-table td small{color:var(--muted);margin-top:2px}.order-status{border-radius:999px;padding:4px 8px;font-size:11px;font-weight:800;display:inline-flex}.order-status.pendiente{color:#8a5600;background:#fff3cd}.order-status.aprobada{color:#1d4ed8;background:#dbeafe}.order-status.recibida_parcial{color:#6d28d9;background:#ede9fe}.order-status.recibida_completa{color:#166534;background:#dcfce7}.order-status.anulada{color:#b91c1c;background:#fee2e2}.order-status.abonada,.order-status.credito{color:#9a3412;background:#ffedd5}.order-status.pagada,.order-status.contado{color:#166534;background:#dcfce7}.purchase-order-dialog{background:var(--surface);border:0;border-radius:8px;width:min(1320px,100vw - 28px);max-width:none;height:min(850px,100dvh - 28px);max-height:none;margin:auto;padding:0;overflow:hidden;box-shadow:0 24px 80px #0f172a4d}.purchase-order-dialog::backdrop{background:#0f172a85}.purchase-order-dialog>form{grid-template-rows:auto minmax(0,1fr) auto;height:100%;display:grid}.purchase-order-dialog>form>header,.purchase-order-dialog>form>footer{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;padding:14px 18px;display:flex}.purchase-order-dialog header h2,.purchase-order-dialog header p{margin:0}.purchase-order-dialog header p{color:var(--muted);margin-top:3px;font-size:12px}.dialog-eyebrow{color:#d75100;font-size:10px;font-weight:900}.purchase-order-dialog header>button{border:1px solid var(--border);background:var(--surface);cursor:pointer;border-radius:6px;width:34px;height:34px}.purchase-order-dialog-body{background:var(--canvas);padding:13px 16px;overflow:auto}.purchase-order-dialog-body>section{border:1px solid var(--border);background:var(--surface);border-radius:7px;margin-bottom:10px;padding:12px}.purchase-order-dialog-body h3{color:#c2410c;margin:0 0 9px;font-size:14px}.purchase-order-header-grid{grid-template-columns:180px 160px repeat(2,minmax(180px,1fr));gap:9px;display:grid}.purchase-order-header-grid .span-two{grid-column:span 2}.purchase-order-header-grid .full{grid-column:1/-1}.purchase-order-add-grid{grid-template-columns:minmax(250px,1.6fr) minmax(180px,1fr) 110px 145px auto;align-items:end;gap:8px;display:grid}.purchase-order-add-grid .button{height:36px}.purchase-order-detail .section-heading strong{color:#d75100;font-size:18px}.purchase-order-detail table{min-width:950px}.purchase-order-detail td strong,.purchase-order-detail td small{display:block}.purchase-order-detail td small{color:var(--muted);margin-top:2px}.inline-error{color:#b91c1c;margin:7px 0 0;font-size:12px}.purchase-order-dialog>form>footer{border-top:1px solid var(--border);border-bottom:0;justify-content:flex-end}.purchase-order-total{color:var(--muted);margin-right:auto}.purchase-order-total strong{color:#d75100;margin-left:8px;font-size:20px}.purchase-product-add-grid{grid-template-columns:minmax(240px,1.7fr) minmax(150px,1fr) minmax(150px,1fr) 110px minmax(170px,1fr) auto}.cost-field span{justify-content:space-between;align-items:center;display:flex}.cost-field span small{color:var(--muted);font-size:10px;font-weight:600}.cost-higher{color:#b42318!important;background:#fff1f0!important;border-color:#f04438!important}.cost-lower{color:#027a48!important;background:#ecfdf3!important;border-color:#12b76a!important}.cost-equal{background:var(--canvas)!important;border-color:#98a2b3!important}.purchase-cost{flex-direction:column;gap:1px;display:inline-flex!important}.purchase-cost small{font-size:10px;font-weight:700}.purchase-cost.higher{color:#d92d20}.purchase-cost.lower{color:#039855}.purchase-cost.equal{color:#475467}.purchase-cost.new{color:#175cd3}.variant-badge{color:#3538cd;text-overflow:ellipsis;white-space:nowrap;background:#eef4ff;border:1px solid #c7d7fe;border-radius:4px;max-width:150px;padding:2px 6px;font-size:11px;font-weight:700;display:inline-block;overflow:hidden}.muted-value{color:#98a2b3;font-size:12px}.purchase-totals{justify-content:flex-end;align-items:end;gap:10px;margin-top:10px;display:flex}.purchase-totals .field{width:145px}.purchase-totals>strong{color:#c2410c;text-align:right;background:#fff7ed;border:1px solid #fed7aa;border-radius:6px;min-width:220px;padding:10px 12px;font-size:18px}.compact-form-dialog{border:0;border-radius:8px;width:min(780px,100vw - 28px);max-width:none;margin:auto;padding:0;box-shadow:0 24px 80px #0f172a4d}.compact-form-dialog::backdrop{background:#0f172a85}.compact-form-dialog>form>header,.compact-form-dialog>form>footer{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;padding:14px 17px;display:flex}.compact-form-dialog header h2,.compact-form-dialog header p{margin:0}.compact-form-dialog header p{color:var(--muted);margin-top:3px;font-size:12px}.compact-form-dialog header>button{border:1px solid var(--border);background:var(--surface);border-radius:6px;width:34px;height:34px}.compact-form-dialog .dialog-body{background:var(--canvas);padding:14px 17px}.compact-form-dialog>form>footer{border-top:1px solid var(--border);border-bottom:0;justify-content:flex-end}.payment-summary{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:12px;display:grid}.payment-summary span{border:1px solid var(--border);background:var(--surface);color:var(--muted);border-radius:6px;padding:9px;font-size:11px}.payment-summary strong{color:var(--text);margin-top:3px;font-size:13px;display:block}.quick-cash-payment-dialog{width:min(700px,100vw - 28px)}.quick-payment-invoice{grid-template-columns:.8fr 1.5fr 1fr 1fr;gap:8px;margin-bottom:12px;display:grid}.quick-payment-invoice>span{border:1px solid var(--border);background:var(--surface);border-radius:6px;min-width:0;padding:9px 10px}.quick-payment-invoice small,.quick-payment-invoice strong{display:block}.quick-payment-invoice small{color:var(--muted);text-transform:uppercase;margin-bottom:3px;font-size:10px}.quick-payment-invoice strong{color:var(--text);text-overflow:ellipsis;white-space:nowrap;font-size:13px;overflow:hidden}.quick-payment-amounts{grid-template-columns:1fr 1fr 1fr;align-items:end;gap:9px;display:grid}.quick-payment-amounts>label{border:1px solid var(--border);background:var(--surface);border-radius:6px;min-height:68px;padding:9px 11px}.quick-payment-amounts>label>span{color:var(--muted);margin-bottom:6px;font-size:11px;font-weight:700;display:block}.quick-payment-amounts>label>strong{color:var(--text);font-size:21px;display:block}.quick-payment-amounts .field input{height:34px;font-size:18px;font-weight:800}.quick-payment-change{color:#15803d!important}.quick-payment-print{border:1px solid var(--border);background:var(--surface);cursor:pointer;border-radius:6px;align-items:center;gap:10px;margin-top:12px;padding:10px 12px;display:flex}.quick-payment-print input{width:18px;height:18px;accent-color:var(--accent)}.quick-payment-print span,.quick-payment-print strong,.quick-payment-print small{display:block}.quick-payment-print strong{color:var(--text);font-size:13px}.quick-payment-print small{color:var(--muted);margin-top:2px;font-size:10px}.quick-payment-print:focus-within{outline:2px solid color-mix(in srgb,var(--accent) 42%,transparent);outline-offset:1px}.quick-payment-print-frame{opacity:0;pointer-events:none;border:0;width:80mm;height:1px;position:fixed;top:0;left:-10000px}.inline-actions{justify-content:center;align-items:center;gap:6px;display:flex}.supplier-payments-dialog{width:min(900px,100vw - 28px)}.supplier-payments-dialog .dialog-shell{grid-template-rows:auto minmax(0,1fr) auto;max-height:calc(100dvh - 32px);display:grid}.supplier-payments-dialog .dialog-shell>header,.supplier-payments-dialog .dialog-shell>footer{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;padding:14px 17px;display:flex}.supplier-payments-dialog .dialog-shell>footer{border-top:1px solid var(--border);border-bottom:0;justify-content:flex-end}.supplier-payments-dialog .dialog-body{overflow:auto}.supplier-payments-dialog td small{color:var(--muted);margin-top:3px;display:block}.payment-cancel-panel{background:var(--surface);border:1px solid #fecaca;border-radius:7px;margin-top:12px;padding:12px}.payment-cancel-panel h3{color:#b91c1c;margin:0 0 4px}.payment-cancel-panel>p{color:var(--muted);margin:0 0 10px}.payment-cancel-panel .compact-actions{justify-content:flex-end;gap:8px;margin-top:10px;display:flex}@media (width<=1100px){.purchase-order-filters{grid-template-columns:repeat(4,minmax(0,1fr))}.purchase-order-filters .search{grid-column:span 2}.purchase-order-header-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.purchase-order-add-grid,.purchase-product-add-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (width<=700px){.purchase-order-filters,.purchase-order-header-grid,.purchase-order-add-grid,.compact-form-grid,.payment-summary,.quick-payment-invoice,.quick-payment-amounts{grid-template-columns:1fr}.purchase-order-filters .search,.purchase-order-header-grid .span-two,.purchase-order-header-grid .full,.compact-form-grid .full{grid-column:auto}.purchase-order-dialog{border-radius:0;width:100vw;height:100dvh;max-height:100dvh}.purchase-order-dialog>form>footer{flex-wrap:wrap}.purchase-order-total{width:100%}.purchase-totals{flex-direction:column;align-items:stretch}.purchase-totals .field,.purchase-totals>strong{width:100%;min-width:0}.compact-form-dialog{border-radius:0;width:100vw;min-height:100dvh}}.contract-filter-bar{grid-template-columns:minmax(260px,1.5fr) minmax(210px,1fr) 150px auto auto;align-items:end;gap:8px;margin-bottom:12px;padding:10px;display:grid}.contract-filter-bar .field{min-width:0}.employee-contracts-page table{min-width:1050px}.employee-contracts-page td strong,.employee-contracts-page td small{display:block}.employee-contracts-page td small{color:var(--muted);margin-top:2px;font-size:10px}.contract-editor-dialog,.contract-preview-dialog{background:var(--surface);border:0;border-radius:8px;width:min(1380px,100vw - 26px);max-width:none;height:min(880px,100dvh - 26px);max-height:none;margin:auto;padding:0;overflow:hidden;box-shadow:0 24px 80px #0f172a4d}.contract-editor-dialog::backdrop,.contract-preview-dialog::backdrop{background:#0f172a8c}.contract-editor-dialog>form,.contract-preview-dialog{grid-template-rows:auto minmax(0,1fr) auto}.contract-editor-dialog[open],.contract-preview-dialog[open]{display:grid}.contract-editor-dialog header,.contract-editor-dialog footer,.contract-preview-dialog>header,.contract-preview-dialog>footer{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;padding:13px 17px;display:flex}.contract-editor-dialog header h2,.contract-editor-dialog header p,.contract-preview-dialog header h2,.contract-preview-dialog header p{margin:0}.contract-editor-dialog header p,.contract-preview-dialog header p{color:var(--muted);margin-top:2px;font-size:11px}.contract-editor-dialog header>button,.contract-preview-dialog header>button{border:1px solid var(--border);background:var(--surface);border-radius:6px;width:34px;height:34px}.contract-editor-body{background:var(--canvas);padding:13px 16px;overflow:auto}.contract-fields{border:1px solid var(--border);background:var(--surface);border-radius:7px;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:9px;padding:11px;display:grid}.contract-fields .span-two{grid-column:span 2}.contract-employee-strip{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-bottom:9px;display:grid}.contract-employee-strip span{background:var(--surface);border:1px solid #dbe5ef;border-radius:6px;padding:8px 10px}.contract-employee-strip small,.contract-employee-strip strong{display:block}.contract-employee-strip small{color:var(--muted);font-size:10px}.contract-employee-strip strong{margin-top:2px;font-size:12px}.contract-editor-grid{grid-template-columns:1fr 1fr;gap:9px;min-height:450px;display:grid}.contract-editor-grid>div{border:1px solid var(--border);background:var(--surface);border-radius:7px;grid-template-rows:auto auto minmax(0,1fr);min-width:0;padding:11px;display:grid}.contract-editor-grid h3{color:#c2410c;margin:0 0 7px;font-size:14px}.contract-tokens{flex-wrap:wrap;gap:4px;margin-bottom:7px;display:flex}.contract-tokens button{color:#9a3412;cursor:pointer;background:#fff7ed;border:1px solid #fed7aa;border-radius:4px;padding:4px 6px;font-size:10px}.contract-editor-grid textarea{resize:vertical;border:1px solid var(--border);border-radius:6px;width:100%;min-height:360px;padding:11px;font:12px/1.55 Consolas,monospace}.contract-live-preview{background:var(--surface);border:1px solid #e5e7eb;min-height:360px;padding:20px;overflow:auto}.contract-live-preview h4{text-align:center}.contract-live-preview pre,.contract-paper pre{white-space:pre-wrap;font:13px/1.65 Arial,sans-serif}.contract-editor-dialog footer,.contract-preview-dialog>footer{border-top:1px solid var(--border);border-bottom:0;justify-content:flex-end}.contract-editor-dialog footer>span{color:var(--muted);margin-right:auto;font-size:11px}.contract-paper{border:1px solid #e5e7eb;width:min(800px,100% - 32px);margin:16px auto;padding:34px 46px;overflow:auto;box-shadow:0 5px 18px #0f172a14}.contract-paper h1,.contract-paper>small{text-align:center}.contract-paper>small{color:var(--muted);display:block}.benefits-layout{grid-template-columns:minmax(620px,1.4fr) minmax(360px,.8fr);gap:11px;display:grid}.benefits-form,.benefit-result{min-width:0;overflow:hidden}.benefits-form>header,.benefit-result>header{border-bottom:1px solid var(--border);padding:13px 15px}.benefits-form h2,.benefits-form p,.benefit-result h2,.benefit-result p{margin:0}.benefits-form header p,.benefit-result header p{color:var(--muted);margin-top:2px;font-size:11px}.benefits-form-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:12px 15px;display:grid}.benefits-form-grid .span-two{grid-column:span 2}.benefits-form-grid .field small{color:var(--muted);font-size:9px}.benefit-employee{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:0 15px 12px;display:grid}.benefit-employee span{background:var(--canvas);border:1px solid #dbe5ef;border-radius:6px;padding:8px}.benefit-employee small,.benefit-employee strong{display:block}.benefit-employee small{color:var(--muted);font-size:9px}.benefit-employee strong{margin-top:2px;font-size:11px}.other-balances{border:1px solid var(--border);border-radius:7px;margin:0 15px 12px;padding:11px}.other-balance-row{border-top:1px solid #eef2f7;grid-template-columns:minmax(200px,1fr) 160px auto;align-items:end;gap:7px;padding-top:7px;display:grid}.other-total{text-align:right;margin-top:8px;display:block}.benefits-form>footer{border-top:1px solid var(--border);justify-content:flex-end;gap:8px;padding:12px 15px;display:flex}.benefit-total{background:#fff7ed;border:1px solid #fed7aa;border-radius:7px;gap:3px;margin:13px 15px;padding:16px;display:grid}.benefit-total small,.benefit-total span{color:#9a3412}.benefit-total strong{color:#c2410c;font-size:27px}.benefit-result dl{margin:0 15px}.benefit-result dl>div{border-bottom:1px solid #eef2f7;justify-content:space-between;gap:12px;padding:9px 2px;display:flex}.benefit-result dt{color:var(--muted);font-size:11px}.benefit-result dd{margin:0;font-size:12px;font-weight:800}.benefit-others-detail,.benefit-notice,.benefit-empty{border:1px solid var(--border);border-radius:6px;margin:12px 15px;padding:11px}.benefit-others-detail h3{margin:0 0 7px;font-size:13px}.benefit-others-detail p{justify-content:space-between;margin:5px 0;display:flex}.benefit-notice{color:#854d0e;background:#fffbeb;border-color:#fde68a;font-size:11px}.benefit-empty{min-height:240px;color:var(--muted);text-align:center;place-items:center;display:grid}.benefit-history{margin-top:12px;overflow:hidden}.benefit-history>header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:10px;padding:12px 15px;display:flex}.benefit-history h2,.benefit-history p{margin:0}.benefit-history p{color:var(--muted);margin-top:2px;font-size:11px}.benefit-history td small{color:var(--muted);margin-top:2px;font-size:10px;display:block}.benefit-reconciliation-dialog{width:min(1380px,100vw - 24px);height:min(850px,100dvh - 24px);max-height:none}.benefit-reconciliation-dialog>form{height:100%}.benefit-reconciliation-body{background:var(--canvas);min-height:0;padding:11px;overflow:auto}.benefit-reconciliation-filters{border:1px solid var(--border);background:var(--surface);border-radius:6px;grid-template-columns:minmax(210px,1.35fr) repeat(5,minmax(105px,.7fr)) auto auto;align-items:end;gap:7px;padding:10px;display:grid}.benefit-reconciliation-filters .field{gap:3px;min-width:0}.benefit-reconciliation-filters .field span{font-size:10px}.benefit-reconciliation-filters input,.benefit-reconciliation-filters select,.benefit-reconciliation-filters .button{height:34px;min-height:34px;font-size:11px}.benefit-reconciliation-summary{grid-template-columns:repeat(8,minmax(0,1fr));gap:7px;margin-top:9px;display:grid}.benefit-reconciliation-summary>div{border:1px solid var(--border);background:var(--surface);border-radius:6px;gap:2px;min-width:0;padding:8px 9px;display:grid}.benefit-reconciliation-summary small{color:var(--muted);text-transform:uppercase;font-size:9px}.benefit-reconciliation-summary strong{text-overflow:ellipsis;white-space:nowrap;font-size:14px;overflow:hidden}.benefit-reconciliation-summary .correct{color:#176b37;background:#edf9f2;border-color:#9bcfb1}.benefit-reconciliation-summary .pending{color:#9a5b06;background:#fff8e8;border-color:#f0c98b}.benefit-reconciliation-summary .inconsistent{color:#b42318;background:#fff1ef;border-color:#efb1aa}.benefit-reconciliation-summary .reversed{background:var(--subtle);color:var(--muted);border-color:#b9c4d4}.benefit-reconciliation-list{border:1px solid var(--border);background:var(--surface);border-radius:6px;margin-top:9px}.benefit-reconciliation-list table{min-width:1120px}.benefit-reconciliation-list th,.benefit-reconciliation-list td{padding:7px 8px;font-size:11px}.benefit-reconciliation-list td small,.benefit-reconciliation-list td strong{display:block}.benefit-reconciliation-list td small{color:var(--muted);margin-top:2px;font-size:9px}.benefit-reconciliation-list td.number{text-align:right}.benefit-reconciliation-status{text-transform:uppercase;border-radius:999px;padding:3px 7px;font-size:9px;font-weight:900;display:inline-flex}.benefit-reconciliation-status.correcto{color:#166534;background:#dcfce7}.benefit-reconciliation-status.pendiente{color:#92400e;background:#fef3c7}.benefit-reconciliation-status.inconsistente{color:#991b1b;background:#fee2e2}.benefit-reconciliation-status.revertido{color:var(--muted);background:#e2e8f0}.contract-editor-dialog>form{grid-template-rows:auto minmax(0,1fr) auto;height:100%;min-height:0;display:grid;overflow:hidden}.contract-editor-body{overscroll-behavior:contain;min-height:0;overflow:hidden auto}.benefit-employee{grid-template-columns:repeat(auto-fit,minmax(125px,1fr))}@media (width<=1100px){.contract-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.benefits-layout{grid-template-columns:1fr}.contract-filter-bar{grid-template-columns:repeat(3,minmax(0,1fr))}.contract-filter-bar .search{grid-column:span 2}.benefit-reconciliation-filters{grid-template-columns:repeat(4,minmax(0,1fr))}.benefit-reconciliation-filters .reconciliation-search{grid-column:span 2}.benefit-reconciliation-summary{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (width<=760px){.contract-filter-bar,.contract-fields,.contract-employee-strip,.contract-editor-grid,.benefits-form-grid,.benefit-employee{grid-template-columns:1fr}.contract-filter-bar .search,.contract-fields .span-two,.benefits-form-grid .span-two{grid-column:auto}.contract-editor-dialog,.contract-preview-dialog{border-radius:0;width:100vw;height:100dvh;max-height:100dvh}.contract-editor-dialog footer{flex-wrap:wrap}.contract-editor-dialog footer>span{width:100%}.other-balance-row{grid-template-columns:1fr}.contract-paper{width:calc(100% - 20px);padding:20px}.benefit-reconciliation-dialog{border-radius:0;width:100vw;height:100dvh;max-height:100dvh}.benefit-reconciliation-filters,.benefit-reconciliation-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.benefit-reconciliation-filters .reconciliation-search{grid-column:1/-1}}@media print{.app-shell>.sidebar,.app-shell>.topbar,.employee-benefits-page .employee-breadcrumb,.employee-benefits-page>.page-header,.employee-benefits-page .benefits-form{display:none!important}.employee-benefits-page,.benefits-layout,.benefit-result{width:100%!important;display:block!important}.benefit-result{box-shadow:none!important;border:0!important}body.printing-benefit-reconciliation *{visibility:hidden!important}body.printing-benefit-reconciliation .benefit-reconciliation-dialog,body.printing-benefit-reconciliation .benefit-reconciliation-dialog *{visibility:visible!important}body.printing-benefit-reconciliation .benefit-reconciliation-dialog{width:100%;height:auto;max-height:none;position:absolute;inset:0}.printing-benefit-reconciliation .benefit-reconciliation-dialog>form>header button,.printing-benefit-reconciliation .benefit-reconciliation-dialog>form>footer,.printing-benefit-reconciliation .benefit-reconciliation-filters,.printing-benefit-reconciliation .pagination{display:none!important}.printing-benefit-reconciliation .benefit-reconciliation-body{padding:0;overflow:visible}.printing-benefit-reconciliation .benefit-reconciliation-list .table-scroll{overflow:visible}.printing-benefit-reconciliation .benefit-reconciliation-list table{min-width:0}.printing-benefit-reconciliation .benefit-reconciliation-list th,.printing-benefit-reconciliation .benefit-reconciliation-list td{padding:4px;font-size:8px}}.billing-workspace{background:var(--subtle);width:100%;max-width:1800px;margin:0 auto;padding:12px}.billing-workspace>form{gap:8px;display:grid}.billing-toolbar{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;padding:2px 0 8px;display:flex}.billing-toolbar h1,.billing-toolbar small{margin:0}.billing-toolbar h1{font-size:23px}.billing-toolbar small,.billing-section-title{color:#c2410c;font-size:10px;font-weight:900}.billing-toolbar-actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:7px;display:flex}.billing-toolbar-actions .button{height:35px;min-height:35px}.billing-panel{border:1px solid var(--border);background:var(--surface);border-radius:7px;min-width:0;padding:9px 11px;box-shadow:0 4px 13px #0f172a09}.billing-section-title{text-transform:uppercase;align-items:center;gap:6px;margin-bottom:7px;display:flex}.billing-section-title>span{color:#ea580c;background:#fff7ed;border-radius:5px;place-items:center;width:21px;height:21px;font-size:12px;display:grid}.invoice-header-grid{grid-template-columns:85px 120px 135px 125px 75px 135px 135px minmax(155px,1fr) minmax(150px,1fr) minmax(165px,1.1fr);gap:7px;display:grid}.billing-workspace .field{gap:3px;min-width:0;font-size:10px}.billing-workspace .field input,.billing-workspace .field select{height:34px;min-height:34px;padding:0 8px;font-size:12px}.billing-workspace .field input[readonly]{background:var(--canvas)}.billing-client-row{grid-template-columns:minmax(560px,1.05fr) minmax(510px,.95fr);gap:8px;display:grid}.client-smart-grid{grid-template-columns:minmax(260px,1.5fr) repeat(3,minmax(130px,.8fr));align-items:end;gap:7px;display:grid}.client-mode{border-radius:999px;margin-top:6px;padding:2px 7px;font-size:9px;font-weight:900;display:inline-flex}.client-mode.registered{color:#166534;background:#dcfce7}.client-mode.eventual{color:#9a3412;background:#fff7ed}.credit-strip{grid-template-columns:repeat(4,minmax(110px,1fr));gap:7px;display:grid}.credit-strip>div{border:1px solid var(--border);background:var(--canvas);text-align:center;border-radius:6px;align-content:center;gap:2px;min-height:49px;padding:6px 9px;display:grid}.credit-strip small{color:var(--muted);font-size:9px}.credit-strip strong{font-size:13px}.product-entry-grid{grid-template-columns:minmax(260px,1.6fr) minmax(145px,.9fr) minmax(130px,.8fr) 120px 90px 115px 100px 85px 125px 105px;align-items:end;gap:7px;display:grid}.line-total{text-align:right;background:#fff7ed;border:1px solid #fed7aa;border-radius:6px;align-content:center;height:34px;padding:3px 9px;display:grid}.line-total small{color:#9a3412;text-transform:uppercase;font-size:8px}.line-total strong{color:#ea580c;font-size:14px}.add-line{height:34px;min-height:34px;padding:0 9px}.billing-detail-table th,.billing-detail-table td{padding:6px 7px}.icon-remove{background:var(--surface);color:#dc2626;border:1px solid #fecaca;border-radius:5px;width:29px;height:29px;font-weight:900}.detail-footer{color:var(--muted);justify-content:space-between;padding:7px 3px 0;font-size:11px;display:flex}.billing-bottom-row{grid-template-columns:minmax(360px,.75fr) minmax(620px,1.25fr);gap:8px;display:grid}.notes-panel{color:#c2410c;text-transform:uppercase;gap:5px;font-size:10px;font-weight:900;display:grid}.notes-panel textarea{resize:vertical;border:1px solid var(--border);width:100%;min-height:50px;color:var(--text);text-transform:none;border-radius:6px;padding:8px;font-size:12px}.invoice-summary-horizontal{grid-template-columns:repeat(4,minmax(130px,1fr));gap:7px;display:grid}.invoice-summary-horizontal>div{border-right:1px solid var(--border);text-align:right;align-content:center;gap:2px;padding:6px 10px;display:grid}.invoice-summary-horizontal>div:last-child{border:0}.invoice-summary-horizontal small{color:var(--muted);text-transform:uppercase;font-size:9px}.invoice-summary-horizontal strong{font-size:15px}.invoice-summary-horizontal .grand-total{color:#ea580c;background:#fff7ed;border-radius:6px;border:1px solid #fed7aa!important}.billing-preview,.invoice-detail-dialog{background:var(--surface);border:0;border-radius:8px;width:min(1040px,100vw - 28px);max-height:calc(100dvh - 32px);margin:auto;padding:0;box-shadow:0 24px 80px #0f172a4d}.billing-preview::backdrop,.invoice-detail-dialog::backdrop{background:#0f172a8c}.billing-preview>header,.billing-preview>footer,.invoice-detail-dialog>header,.invoice-detail-dialog>footer{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;padding:13px 16px;display:flex}.billing-preview h2,.billing-preview p,.invoice-detail-dialog h2,.invoice-detail-dialog p{margin:0}.billing-preview header small,.invoice-detail-dialog header small{color:#c2410c;font-size:9px;font-weight:900}.billing-preview header button,.invoice-detail-dialog header button{border:1px solid var(--border);background:var(--surface);border-radius:6px;width:34px;height:34px}.billing-preview-body,.invoice-detail-body{padding:16px;overflow:auto}.billing-preview footer,.invoice-detail-dialog footer{border-top:1px solid var(--border);border-bottom:0;justify-content:flex-end}.preview-total{color:#ea580c;text-align:right;margin-top:12px;font-size:22px;display:block}.invoice-filter-bar{grid-template-columns:minmax(250px,1.5fr) 135px 145px 140px 140px auto auto;align-items:end;gap:8px;margin-bottom:10px;display:grid}.invoices-table table{min-width:1250px}.invoice-detail-dialog{height:min(760px,100dvh - 32px)}.invoice-detail-dialog[open]{grid-template-rows:auto minmax(0,1fr) auto;display:grid}.invoice-detail-summary{grid-template-columns:repeat(6,minmax(120px,1fr));gap:7px;margin-bottom:12px;display:grid}.invoice-detail-summary>div{border:1px solid var(--border);background:var(--canvas);border-radius:6px;gap:3px;padding:8px;display:grid}.invoice-detail-summary small{color:var(--muted);text-transform:uppercase;font-size:9px}.invoice-observations{border:1px solid var(--border);background:var(--canvas);border-radius:6px;padding:9px}.sales-action-dialog{z-index:1600;background:var(--surface);border:0;border-radius:8px;width:min(650px,100vw - 28px);max-height:calc(100dvh - 32px);margin:auto;padding:0;position:fixed;inset:0;box-shadow:0 0 0 100vmax #0f172a94,0 24px 80px #0f172a59}.sales-action-dialog>form{grid-template-rows:auto minmax(0,1fr) auto;max-height:calc(100dvh - 32px);display:grid}.sales-action-dialog header,.sales-action-dialog footer{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;padding:13px 16px;display:flex}.sales-action-dialog header h2,.sales-action-dialog header p{margin:0}.sales-action-dialog header small{color:#c2410c;font-size:9px;font-weight:900}.sales-action-dialog footer{border-top:1px solid var(--border);border-bottom:0;justify-content:flex-end}.sales-action-body{gap:12px;padding:16px;display:grid;overflow:auto}.sales-action-body>p{color:var(--muted);margin:0}.sales-action-body textarea{resize:vertical;min-height:92px}.return-dialog{width:min(980px,100vw - 28px)}.return-dialog table{min-width:760px}.return-quantity{width:120px;min-height:34px}.return-warning{background:#fff7ed;border:1px solid #fed7aa;border-radius:6px;padding:9px;font-size:12px;color:#9a3412!important}.order-status.devolucion_parcial{color:#92400e;background:#fef3c7}.order-status.devuelta,.order-status.anulada{color:#991b1b;background:#fee2e2}.invoice-history-block{gap:5px;margin-top:12px;display:grid}.invoice-history-block h3{margin:0 0 3px;font-size:13px}.invoice-history-block>div{border:1px solid var(--border);background:var(--canvas);border-radius:5px;grid-template-columns:150px 170px minmax(180px,1fr) 170px;align-items:center;gap:8px;padding:7px 9px;font-size:11px;display:grid}.product-selection-dialog{outline:0;grid-template-rows:auto minmax(0,1fr) auto;width:min(880px,100vw - 28px);max-height:min(720px,100dvh - 32px);display:grid}.product-selection-dialog>header,.product-selection-dialog>footer{background:var(--surface)}.product-selection-dialog>header>button{border:1px solid var(--border);background:var(--surface);cursor:pointer;border-radius:6px;place-items:center;width:34px;height:34px;display:grid}.product-selection-body{background:var(--canvas);min-height:250px}.product-selection-options{gap:7px;display:grid}.availability-choice{border:1px solid var(--border);background:var(--surface);width:100%;color:var(--text-soft);cursor:pointer;text-align:left;border-radius:7px;grid-template-columns:18px minmax(180px,1fr) 100px 100px 105px;align-items:center;gap:10px;padding:10px 12px;display:grid}.availability-choice-indicator{background:#94a3b8;border-radius:50%;width:10px;height:10px;box-shadow:0 0 0 3px #e2e8f0}.availability-choice-name{min-width:0}.availability-choice-name strong,.availability-choice-name small,.availability-choice-stock small,.availability-choice-stock strong{display:block}.availability-choice-name strong{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.availability-choice-name small,.availability-choice-stock small{color:var(--muted);margin-top:2px;font-size:9px}.availability-choice-stock{text-align:right}.availability-choice-status{white-space:nowrap;border-radius:999px;justify-self:end;padding:4px 8px;font-size:9px;font-weight:900}.availability-choice.available{border-color:#bbf7d0}.availability-choice.available .availability-choice-indicator{background:#22c55e;box-shadow:0 0 0 3px #dcfce7}.availability-choice.available .availability-choice-status{color:#166534;background:#dcfce7}.availability-choice.unavailable{color:#991b1b;opacity:1;cursor:not-allowed;background:#fff7f7;border-color:#fecaca}.availability-choice.unavailable .availability-choice-indicator{background:#ef4444;box-shadow:0 0 0 3px #fee2e2}.availability-choice.unavailable .availability-choice-status{color:#991b1b;background:#fee2e2}.availability-choice.active{outline-offset:1px;outline:2px solid #f97316;box-shadow:0 5px 14px #f973161f}.selection-availability-summary{color:var(--muted);margin-right:auto;font-size:11px}@media (width<=700px){.product-selection-dialog{border-radius:0;width:100vw;height:100dvh;max-height:100dvh}.availability-choice{grid-template-columns:16px minmax(120px,1fr) 72px 72px;gap:7px;padding:9px}.availability-choice-status{grid-column:2/-1;justify-self:start}.product-selection-dialog>footer{flex-wrap:wrap}.selection-availability-summary{width:100%}}@media (width<=1450px){.invoice-header-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.product-entry-grid{grid-template-columns:minmax(240px,1.5fr) repeat(4,minmax(100px,1fr))}.billing-client-row{grid-template-columns:1fr}.product-entry-grid .add-line{grid-column:5}.client-smart-grid{grid-template-columns:2fr repeat(3,1fr)}}@media (width<=900px){.billing-toolbar{flex-direction:column;align-items:flex-start}.billing-toolbar-actions{justify-content:flex-start}.invoice-header-grid,.client-smart-grid,.credit-strip,.product-entry-grid,.billing-bottom-row,.invoice-summary-horizontal,.invoice-detail-summary,.invoice-filter-bar{grid-template-columns:repeat(2,minmax(0,1fr))}.product-entry-grid .product-search,.invoice-filter-bar .search{grid-column:1/-1}.product-entry-grid .add-line{grid-column:auto}.billing-bottom-row{grid-template-columns:1fr}}@media (width<=560px){.billing-workspace{padding:7px}.invoice-header-grid,.client-smart-grid,.credit-strip,.product-entry-grid,.invoice-summary-horizontal,.invoice-detail-summary,.invoice-filter-bar{grid-template-columns:1fr}.product-entry-grid .product-search,.invoice-filter-bar .search{grid-column:auto}.billing-toolbar-actions .button{flex:auto}.billing-preview,.invoice-detail-dialog,.sales-action-dialog{border-radius:0;width:100vw;height:100dvh;max-height:100dvh}.invoice-history-block>div{grid-template-columns:1fr}}.billing-workspace{overflow-x:hidden}.billing-toolbar{flex-wrap:wrap}.billing-toolbar-actions{min-width:0;max-width:100%}.billing-toolbar-actions .button{white-space:nowrap;padding-inline:10px}.invoice-header-grid{grid-template-columns:80px 120px 135px 125px 75px 140px minmax(145px,1fr) minmax(175px,1.2fr)}.product-entry-grid{grid-template-columns:minmax(230px,1.65fr) minmax(125px,.9fr) minmax(115px,.8fr) 112px 82px 108px 92px 116px 92px}.price-with-tax{position:relative}.price-with-tax .tax-hint{z-index:2;background:var(--subtle);color:var(--muted);border-radius:999px;padding:1px 5px;font-size:8px;font-weight:800;line-height:1.4;position:absolute;bottom:-15px;right:4px}.price-with-tax .tax-hint.active{color:#c2410c;background:#ffedd5}.product-entry-panel{padding-bottom:19px}.tax-badge{background:var(--subtle);min-height:20px;color:var(--muted);white-space:nowrap;border-radius:999px;align-items:center;padding:2px 6px;font-size:9px;font-weight:800;display:inline-flex}.tax-badge.active{color:#c2410c;background:#ffedd5}.promotion-preview{position:relative}.promotion-preview small{z-index:2;color:#047857;background:#ecfdf5;border-radius:999px;padding:1px 5px;font-size:8px;font-weight:800;line-height:1.4;position:absolute;bottom:-15px;right:4px}.promotion-label{color:#047857;margin-top:2px;font-size:9px;font-weight:800;display:block}.bonus-line{background:#f0fdf4}.bonus-line td{border-color:#dcfce7}.automatic-tag{color:#166534;text-transform:uppercase;white-space:nowrap;background:#dcfce7;border-radius:999px;align-items:center;min-height:22px;padding:2px 6px;font-size:8px;font-weight:900;display:inline-flex}.detail-footer{flex-wrap:wrap;gap:8px 18px}.invoice-summary-horizontal{grid-template-columns:repeat(5,minmax(105px,1fr))}.preview-totals{justify-content:flex-end;align-items:flex-end;gap:24px;margin-top:12px;display:flex}.preview-total{margin-top:0}@media (width<=1450px){.invoice-header-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.product-entry-grid{grid-template-columns:minmax(230px,1.5fr) repeat(4,minmax(100px,1fr))}.product-entry-grid .add-line{grid-column:auto}}@media (width<=1100px){.billing-toolbar{align-items:flex-start}.billing-toolbar-actions{flex:100%;justify-content:flex-start}.billing-toolbar-actions .button{flex:120px}.invoice-summary-horizontal{grid-template-columns:repeat(3,minmax(105px,1fr))}}@media (width<=900px){.invoice-header-grid,.product-entry-grid,.invoice-summary-horizontal{grid-template-columns:repeat(2,minmax(0,1fr))}.product-entry-grid .product-search{grid-column:1/-1}.price-with-tax .tax-hint,.promotion-preview small{width:max-content;margin-top:2px;position:static}.product-entry-panel{padding-bottom:9px}}@media (width<=560px){.invoice-header-grid,.product-entry-grid,.invoice-summary-horizontal{grid-template-columns:1fr}.product-entry-grid .product-search{grid-column:auto}.preview-totals{flex-direction:column;align-items:flex-end;gap:6px}}.table-inline-actions{white-space:nowrap;justify-content:center;align-items:center;gap:4px;display:flex}.icon-edit{color:#c2410c;background:#fff7ed;border:1px solid #fed7aa;border-radius:5px;height:29px;padding:0 8px;font-size:10px;font-weight:800}.billing-focus .app-content{height:100dvh;overflow:hidden}.billing-focus .app-content>div{height:100%;min-height:0}.billing-workspace{background:var(--subtle);max-width:none;min-height:calc(100dvh - 72px);padding:8px}.billing-focus .billing-workspace{background:var(--subtle);height:100%;min-height:0;padding:8px;overflow:hidden}.billing-workspace>form{gap:9px}.billing-focus .billing-workspace>form{background:var(--surface);border:1px solid #d8dee8;border-radius:10px;flex-direction:column;gap:0;height:100%;min-height:0;padding:10px;display:flex;overflow:hidden;box-shadow:0 6px 18px #0f172a0d}.billing-toolbar{background:var(--surface);border:1px solid #d8dee8;border-radius:8px;grid-template-columns:minmax(170px,.5fr) minmax(560px,1.75fr) minmax(280px,.75fr);align-items:center;gap:8px;min-height:68px;padding:7px 10px;display:grid}.billing-focus .billing-toolbar{z-index:12;background:var(--surface);border:0;border-radius:0;flex:none;margin:0 0 8px;padding:4px 4px 10px;position:sticky;top:0}.classic-billing-title{align-items:center;gap:12px;min-width:0;display:flex}.classic-billing-symbol{color:#fff;background:#ff5b0b;border-radius:9px;flex:0 0 42px;place-items:center;width:42px;height:42px;font-size:20px;font-weight:900;display:grid}.classic-billing-title h1{letter-spacing:0;text-overflow:ellipsis;white-space:nowrap;font-size:27px;overflow:hidden}.classic-billing-title small{display:none}.billing-toolbar-center{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;min-width:0;display:grid}.classic-condition-switch{white-space:nowrap;flex:none;justify-content:flex-start;align-items:center;gap:14px;padding:0;display:flex}.classic-condition-switch label{cursor:pointer;align-items:center;gap:7px;font-size:13px;font-weight:800;display:inline-flex}.classic-condition-switch input{accent-color:#ff5b0b;width:17px;height:17px;margin:0}.billing-toolbar-actions{flex-wrap:nowrap;justify-content:flex-start;gap:5px;min-width:0;display:flex}.billing-toolbar-actions .button{border-radius:7px;height:36px;min-height:36px;padding-inline:10px;font-size:11px;font-weight:800}.billing-toolbar-actions .billing-icon-action{flex:0 0 36px;place-items:center;width:36px;min-width:36px;padding:0;display:grid}.billing-toolbar-icon{font-size:17px;line-height:1;display:block}.billing-toolbar-actions .button.primary{background:#ff5b0b;min-width:108px}.billing-toolbar-actions .active-flow-action{color:#c2410c;background:#fff7ed;border-color:#fb923c}.billing-flow-dialog{width:min(900px,100vw - 28px)}.billing-flow-dialog>form{max-height:calc(100dvh - 32px)}.delivery-flow-dialog>form{height:min(660px,100dvh - 32px)}.billing-flow-dialog header button{border:1px solid var(--border);background:var(--surface);width:34px;height:34px;color:var(--text);cursor:pointer;border-radius:6px;place-items:center;display:grid}.billing-flow-dialog-body{background:var(--canvas);min-height:0}.billing-flow-dialog .delivery-intent-panel{box-shadow:none;background:0 0;border:0;padding:0}.billing-flow-dialog .preparation-draft-control{background:var(--surface);width:100%;margin:0}.preparation-flow-dialog{width:min(760px,100vw - 28px)}.classic-document-area{grid-template-columns:minmax(0,1fr);gap:9px;display:grid}.billing-focus .classic-document-area{flex:none;margin-bottom:8px}.billing-focus .product-entry-panel{flex:none}.classic-document-main{background:var(--surface);border:1px solid #d8dee8;border-radius:8px;display:block;overflow:hidden}.classic-document-main .billing-panel{box-shadow:none;border:0;border-radius:0;padding:6px 9px}.classic-document-main .invoice-header-panel{border-bottom:1px solid #e2e7ee}.classic-document-main .billing-section-title,.credit-panel>.billing-section-title{display:none}.invoice-header-grid{grid-template-columns:90px 150px 145px 90px 140px minmax(150px,1fr) minmax(180px,1.1fr);gap:8px}.classic-document-main .invoice-header-grid{grid-template-columns:minmax(75px,.6fr) minmax(125px,.95fr) minmax(125px,.9fr) minmax(80px,.65fr) minmax(120px,.85fr) minmax(150px,1.05fr) minmax(170px,1.2fr)}.classic-document-main .invoice-header-grid.with-principal-trigger{grid-template-columns:42px minmax(75px,.6fr) minmax(125px,.95fr) minmax(125px,.9fr) minmax(80px,.65fr) minmax(120px,.85fr) minmax(150px,1.05fr) minmax(170px,1.2fr)}.billing-principal-trigger{color:#c2410c;cursor:pointer;background:#fff7ed;border:1px solid #fdba74;border-radius:6px;align-self:end;place-items:center;width:42px;height:32px;font-size:18px;display:grid}.billing-principal-trigger:hover,.billing-principal-trigger:focus-visible{background:#ffedd5;border-color:#f97316;outline:2px solid #f9731629}.billing-principal-trigger:disabled{cursor:not-allowed;filter:grayscale();opacity:.45}.invoice-header-grid .condition-field{display:none}.client-smart-grid{grid-template-columns:minmax(250px,1.5fr) minmax(180px,1fr) 140px 160px;gap:8px}.classic-document-main .client-smart-grid{grid-template-columns:minmax(300px,1.8fr) minmax(200px,1.2fr) minmax(140px,.8fr) minmax(170px,1fr)}.classic-document-main .field input,.classic-document-main .field select{height:32px;min-height:32px}.client-mode{margin-top:5px}.credit-panel{box-shadow:none;background:0 0;border:0;padding:0}.billing-toolbar-credit{min-width:0}.billing-toolbar-credit .credit-strip{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;height:auto}.credit-strip>div{text-align:left;border-radius:7px;grid-template-columns:22px minmax(0,1fr);align-content:center;align-items:center;min-height:48px;padding:5px 7px}.credit-strip>div:before{border:1px solid;border-radius:5px;grid-row:1/3;place-items:center;width:18px;height:18px;font-size:8px;font-weight:900;display:grid}.credit-strip>div:first-child{color:#2563eb;background:#eff6ff;border-color:#bfdbfe}.credit-strip>div:first-child:before{content:"L"}.credit-strip>div:nth-child(2){color:#dc2626;background:#fff1f2;border-color:#fecaca}.credit-strip>div:nth-child(2):before{content:"$"}.credit-strip>div:nth-child(3){color:#15803d;background:#f0fdf4;border-color:#bbf7d0}.credit-strip>div:nth-child(3):before{content:"✓"}.credit-strip>div:nth-child(4){color:#ea580c;background:#fff7ed;border-color:#fed7aa}.credit-strip>div:nth-child(4):before{content:"C"}.credit-strip small{color:#111827;font-size:11px;font-weight:800}.credit-strip strong{text-align:right;font-size:13px}.billing-toolbar-credit .credit-strip>div:nth-child(3):before{content:"OK"}.billing-toolbar-credit .credit-strip small{text-overflow:ellipsis;white-space:nowrap;font-size:9px;overflow:hidden}.billing-toolbar-credit .credit-strip strong{text-align:left;text-overflow:ellipsis;white-space:nowrap;font-size:11px;overflow:hidden}.product-entry-panel{z-index:20;border-color:var(--border);box-shadow:none;padding:0 0 6px;position:relative;overflow:visible}.product-entry-panel>.billing-section-title{background:var(--surface);color:#c2410c;border-bottom:1px solid #ff7a32;margin:0;padding:8px 10px}.billing-focus .product-entry-panel{background:var(--surface);border:1px solid #d8dee8;border-bottom:0;border-radius:8px 8px 0 0;margin:0;padding:0;overflow:visible}.billing-focus .product-entry-panel>.billing-section-title{display:none}.product-entry-grid{grid-template-columns:minmax(160px,1.45fr) 68px minmax(100px,.85fr) minmax(96px,.8fr) minmax(86px,.72fr) 84px 86px 56px 92px 74px;align-items:stretch;gap:0;min-width:0}.product-entry-grid .product-search{z-index:30;position:relative}.product-entry-grid>.field{background:var(--surface);border-right:1px solid #f1c8ad;grid-template-rows:33px minmax(52px,auto);gap:0;padding:0 7px 6px;display:grid}.product-entry-grid>.field>span:first-child,.classic-add-cell>span,.line-total>small{color:#fff;text-overflow:ellipsis;text-transform:uppercase;white-space:nowrap;background:#ff8438;border-bottom:1px solid #f26c24;align-items:center;min-width:0;min-height:33px;margin:0 -7px 6px;padding:0 8px;font-size:10px;font-weight:900;display:flex;overflow:hidden;box-shadow:0 3px 8px #ea580c1f}.product-entry-grid>.field input,.product-entry-grid>.field select,.product-entry-grid .selection-trigger{align-self:center;width:100%;height:38px;min-height:38px;margin:0;font-size:12px}.product-entry-grid .product-search-picker{align-self:center}.selection-trigger{background:var(--surface);min-width:0;color:var(--text-soft);cursor:pointer;text-align:left;border:1px solid #d8dee8;border-radius:6px;justify-content:space-between;align-items:center;gap:6px;padding:0 8px;display:flex;overflow:hidden}.selection-trigger>span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.selection-trigger>b{color:#ea580c;font-size:18px}.selection-trigger.selected{color:#7c2d12;background:#fffaf7;border-color:#fdba74}.selection-trigger:disabled{background:var(--canvas);color:#94a3b8;cursor:not-allowed}.selection-trigger:focus-visible{outline-offset:1px;outline:2px solid #fb923c}.product-entry-grid .promotion-detail-link{align-self:start;margin-top:2px}.price-with-tax .tax-hint{align-self:start;width:max-content;max-width:100%;margin-top:2px;position:static}.promotion-preview{justify-items:center}.promotion-preview>span:first-child{justify-self:stretch;width:calc(100% + 14px)}.promotion-status-star{background:var(--canvas);color:#9ca3af;cursor:default;border:1px solid #d1d5db;border-radius:7px;align-self:center;place-items:center;width:38px;height:38px;min-height:38px;padding:0;font-size:22px;line-height:1;display:grid}.promotion-status-star.active{color:#f97316;cursor:pointer;background:#fff7ed;border-color:#fdba74}.promotion-status-star.active:hover,.promotion-status-star.active:focus-visible{color:#ea580c;background:#ffedd5;border-color:#f97316;outline:none;box-shadow:0 0 0 2px #f973162e}.promotion-status-star:disabled{opacity:1}.line-total{background:#fff7ed;border:0;border-right:1px solid #f1c8ad;border-radius:0;grid-template-rows:33px 1fr;align-content:stretch;height:auto;min-height:91px;padding:0 8px 6px;display:grid}.line-total>small{margin:0 -8px 6px}.line-total>strong{align-self:center;font-size:15px}.classic-add-cell{background:#fff7ed;grid-template-rows:33px 1fr;min-height:91px;padding:0 7px 6px;display:grid}.classic-add-cell>span{justify-content:center;margin:0 -7px 6px}.classic-add-cell .add-line{border-radius:7px;place-self:center;width:38px;height:38px;min-height:38px;padding:0;font-size:20px}.classic-add-cell .apply-line{width:100%;padding:0 7px;font-size:10px}.product-entry-panel .inline-error{margin:6px 9px 0}.invoice-detail-panel{border-color:var(--border);min-height:330px;box-shadow:none;padding:0;overflow:hidden}.billing-focus .invoice-detail-panel{z-index:1;border-top:0;border-radius:0 0 8px 8px;flex:auto;grid-template-rows:minmax(0,1fr);min-height:110px;display:grid;position:relative}.invoice-detail-panel>.billing-section-title{display:none}.billing-detail-table{min-height:285px;overflow:auto}.billing-focus .billing-detail-table{overscroll-behavior:contain;scrollbar-gutter:stable;height:100%;min-height:0}.billing-detail-table table{min-width:1160px}.billing-detail-table.with-profit table{min-width:1280px}.billing-detail-table thead th{z-index:2;color:#9a3412;text-transform:uppercase;background:linear-gradient(#fff 0%,#fff8f3 100%);border-color:#f1d6c5;padding:9px 8px;font-size:10px;position:sticky;top:0;box-shadow:inset 0 -1px #f973161f,0 3px 9px #f973160f}.billing-detail-table tbody td{background:var(--surface);height:39px;padding:6px 8px}.profit-cell,.profit-total{font-variant-numeric:tabular-nums}.profit-cell.positive,.profit-total.positive{color:#027a48}.profit-cell.negative,.profit-total.negative{color:#dc2626}.billing-detail-table tbody tr:nth-child(2n) td{background:var(--subtle)}.billing-detail-table tbody tr:first-child:last-child td{vertical-align:top;height:245px;color:var(--muted);text-align:center}.detail-footer{background:var(--canvas);min-height:34px;color:var(--text-soft);border-top:1px solid #dfe5ed;align-items:center;padding:7px 10px}.billing-bottom-row{grid-template-columns:minmax(320px,1fr) minmax(620px,auto)}.billing-focus .billing-bottom-row{z-index:11;background:var(--surface);border:1px solid #d8dee8;border-radius:8px;flex:none;gap:0;margin-top:8px;position:sticky;bottom:0;overflow:hidden}.billing-focus .billing-bottom-row>.billing-panel{box-shadow:none;background:0 0;border:0;border-radius:0}.billing-focus .notes-panel{border-right:1px solid #e2e7ee}.notes-panel{box-shadow:none}.invoice-summary-horizontal{box-shadow:none;grid-template-columns:repeat(4,minmax(135px,1fr)) 180px;padding:7px}.invoice-summary-horizontal.with-profit{grid-template-columns:repeat(5,minmax(115px,1fr)) 180px}.invoice-summary-horizontal>div{background:var(--surface);border-radius:6px;min-height:52px;border:1px solid #d8dee8!important}.invoice-summary-horizontal .grand-total{color:#ff5b0b;background:#fff2e8}.invoice-summary-horizontal .grand-total strong{font-size:24px}.billing-principal-dialog{background:var(--surface);width:min(720px,100vw - 28px);max-height:calc(100dvh - 28px);color:var(--text);border:0;border-radius:8px;margin:auto;padding:0;overflow:hidden;box-shadow:0 24px 80px #0f172a4d}.billing-principal-dialog::backdrop{background:#0f172a8c}.billing-principal-dialog[open]{grid-template-rows:auto minmax(0,1fr) auto;display:grid}.billing-principal-dialog header,.billing-principal-dialog footer{border-bottom:1px solid var(--border);background:var(--surface);justify-content:space-between;align-items:center;gap:12px;padding:12px 14px;display:flex}.billing-principal-dialog footer{border-top:1px solid var(--border);border-bottom:0;justify-content:flex-end}.billing-principal-dialog h2,.billing-principal-dialog header small{margin:0}.billing-principal-dialog h2{font-size:18px}.billing-principal-dialog header small{color:#c2410c;font-size:9px;font-weight:900}.billing-principal-dialog header>button{border:1px solid var(--border);background:var(--surface);width:33px;height:33px;color:var(--text);border-radius:6px;place-items:center;font-size:17px;display:grid}.billing-principal-dialog-body{min-height:0;padding:13px 14px;overflow:auto}.billing-principal-dialog-body>p{color:var(--muted);margin:0 0 10px;font-size:11px}.billing-principal-list{gap:6px;display:grid}.billing-principal-list>button{border:1px solid var(--border);background:var(--surface);min-height:59px;color:var(--text);text-align:left;border-radius:6px;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:9px;padding:8px;display:grid}.billing-principal-list>button:hover{background:#fffaf7;border-color:#fdba74}.billing-principal-list>button>span:nth-child(2){gap:2px;min-width:0;display:grid}.billing-principal-list strong,.billing-principal-list small{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.billing-principal-list small{color:var(--muted);font-size:9px}.billing-principal-list em{background:var(--subtle);color:var(--text-soft);white-space:nowrap;border-radius:999px;padding:4px 7px;font-size:9px;font-style:normal;font-weight:900}.billing-principal-icon{background:#fff7ed;border-radius:6px;place-items:center;width:34px;height:34px;font-size:18px;display:grid}@media (width<=1360px){.billing-toolbar{grid-template-columns:minmax(180px,.55fr) minmax(390px,1.45fr) minmax(270px,.8fr)}.billing-toolbar-center{gap:8px}.billing-toolbar-actions .button{padding-inline:8px}.classic-print-action{display:none}}@media (width<=1050px){.billing-toolbar{grid-template-columns:auto minmax(0,1fr)}.billing-toolbar-center{justify-content:flex-end}.billing-toolbar-credit{grid-column:1/-1}.billing-toolbar-credit .credit-strip{grid-template-columns:repeat(3,minmax(0,1fr))}.classic-document-main .invoice-header-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.classic-document-main .invoice-header-grid.with-principal-trigger{grid-template-columns:42px repeat(3,minmax(0,1fr))}.classic-document-main .client-smart-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.classic-document-main .client-smart-grid .client-smart{grid-column:1/-1}.billing-bottom-row{grid-template-columns:1fr}.invoice-summary-horizontal{grid-template-columns:repeat(5,minmax(105px,1fr))}.invoice-summary-horizontal.with-profit{grid-template-columns:repeat(3,minmax(105px,1fr))}}@media (width<=900px){.product-entry-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.product-entry-grid .product-search{grid-column:1/-1}}@media (width<=700px){.billing-workspace{padding:5px}.billing-toolbar{grid-template-columns:1fr}.billing-toolbar-center{grid-template-columns:1fr;justify-content:stretch;display:grid}.classic-condition-switch{grid-row:1;justify-content:flex-start;padding:4px 0}.billing-toolbar-actions{grid-column:auto;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;display:grid}.billing-toolbar-actions .billing-icon-action{width:100%;min-width:0}.billing-toolbar-credit{grid-column:auto}.classic-billing-title h1{font-size:22px}.invoice-header-grid,.client-smart-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.client-smart-grid .client-smart{grid-column:1/-1}.classic-document-main .invoice-header-grid.with-principal-trigger{grid-template-columns:42px minmax(0,1fr)}.product-entry-grid{grid-template-columns:1fr}.product-entry-grid .product-search{grid-column:auto}.billing-toolbar-credit .credit-strip{grid-template-columns:repeat(3,minmax(0,1fr))}.invoice-summary-horizontal,.invoice-summary-horizontal.with-profit{grid-template-columns:repeat(2,minmax(0,1fr))}.invoice-summary-horizontal .grand-total{grid-column:1/-1}.billing-focus .app-content,.billing-focus .billing-workspace,.billing-focus .app-content>div,.billing-focus .billing-workspace>form{height:auto;overflow:visible}.billing-focus .invoice-detail-panel{min-height:330px}}@media (width<=440px){.invoice-header-grid,.client-smart-grid,.billing-toolbar-credit .credit-strip,.invoice-summary-horizontal,.invoice-summary-horizontal.with-profit{grid-template-columns:1fr}.classic-document-main .invoice-header-grid.with-principal-trigger{grid-template-columns:42px minmax(0,1fr)}.client-smart-grid .client-smart,.invoice-summary-horizontal .grand-total{grid-column:auto}.billing-principal-dialog{width:calc(100vw - 12px);max-height:calc(100dvh - 12px)}}@media print{.app-shell>.sidebar,.topbar,.billing-toolbar-actions,.product-entry-panel,.notes-panel,.icon-remove,.icon-edit,.invoices-page>.page-header,.invoice-filter-bar,.pagination{display:none!important}.app-shell{display:block}.billing-workspace,.page-content{width:100%;max-width:none;padding:0}.billing-panel,.surface{box-shadow:none}.billing-preview[open]{width:100%;height:auto;box-shadow:none;position:static}.billing-preview>header,.billing-preview>footer{display:none}}.inventory-kardex-page{gap:10px;display:grid}.kardex-filter-bar{grid-template-columns:minmax(210px,1.35fr) minmax(130px,.8fr) minmax(125px,.75fr) minmax(145px,.8fr) 128px 128px minmax(170px,1fr) auto auto;align-items:end;gap:7px;padding:10px;display:grid}.kardex-filter-bar .field{min-width:0}.kardex-filter-bar .field input,.kardex-filter-bar .field select{height:34px;min-height:34px;font-size:11px}.kardex-filter-bar :disabled{cursor:not-allowed;opacity:.58}.kardex-summary-strip{border:1px solid var(--border);background:var(--surface);border-radius:7px;grid-template-columns:minmax(210px,1.35fr) repeat(4,minmax(145px,1fr));display:grid;overflow:hidden}.kardex-summary-strip>div{border-right:1px solid var(--border);align-content:center;gap:2px;min-width:0;padding:9px 13px;display:grid}.kardex-summary-strip>div:last-child{border-right:0}.kardex-summary-strip small,.kardex-summary-strip span{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:9px;overflow:hidden}.kardex-summary-strip strong{text-overflow:ellipsis;white-space:nowrap;font-size:15px;overflow:hidden}.kardex-summary-strip .entry strong,.entry-value{color:#15803d}.kardex-summary-strip .exit strong,.exit-value{color:#dc2626}.kardex-summary-strip .danger strong{color:#b91c1c}.kardex-table-card th,.kardex-table-card td{padding:6px 7px}.kardex-table-card td strong,.kardex-table-card td small{display:block}.kardex-table-card td small{color:var(--muted);margin-top:2px;font-size:9px}.kardex-table-card td.number{text-align:right;font-variant-numeric:tabular-nums}.kardex-type,.variant-badge{max-width:150px;color:var(--text-soft);text-overflow:ellipsis;white-space:nowrap;background:#eef2f7;border-radius:999px;align-items:center;padding:3px 6px;font-size:9px;font-weight:800;display:inline-flex;overflow:hidden}.kardex-type-icon{flex:0 0 14px;place-items:center;margin-right:3px;font-size:10px;display:inline-grid}.kardex-type.entry{color:#166534;background:#dcfce7}.kardex-type.exit{color:#991b1b;background:#fee2e2}.kardex-type.transfer{color:#1d4ed8;background:#dbeafe}.kardex-type.neutral{color:#4b5563;background:#f3f4f6}.kardex-type.return{color:#92400e;background:#fef3c7}.kardex-type.bonus{color:#c2410c;background:#ffedd5}.variant-badge{color:#9a3412;background:#fff7ed}.kardex-document-link{color:var(--accent);font-weight:800;text-decoration:none}.kardex-document-link:hover{text-decoration:underline}.kardex-negative-cell{background:#fff1f2}.kardex-negative-balance{color:#b91c1c;justify-content:flex-end;align-items:center;gap:5px;font-weight:900;display:inline-flex!important}.kardex-negative-balance>span{color:#fff;background:#b91c1c;border-radius:50%;place-items:center;width:17px;height:17px;font-size:10px;display:inline-grid}.kardex-more-filters{border-top:1px solid var(--border);grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:0 10px 10px;display:grid}.kardex-more-filters .field{min-width:0}.kardex-more-filters select{height:34px}.kardex-tabs{border-bottom:1px solid var(--border);background:var(--surface);display:flex;overflow:auto}.kardex-tabs button{color:var(--muted);cursor:pointer;background:0 0;border:0;border-bottom:2px solid #0000;flex:none;padding:9px 14px;font-weight:800}.kardex-tabs button.active{border-bottom-color:var(--accent);color:var(--accent)}.kardex-context-table{padding:12px}.kardex-context-table h2{margin:0 0 10px;font-size:15px}.kardex-context-table table{min-width:700px}.kardex-audit-list{gap:6px;display:grid}.kardex-audit-list>div{border:1px solid var(--border);background:var(--surface-soft);grid-template-columns:1fr 1fr auto;gap:8px;padding:8px;display:grid}html[data-theme=dark] .kardex-negative-cell{background:#2c171b}@media (width<=1350px){.kardex-filter-bar{grid-template-columns:repeat(4,minmax(0,1fr))}.kardex-filter-bar .search{grid-column:span 2}}@media (width<=760px){.kardex-filter-bar,.kardex-summary-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.kardex-filter-bar .search{grid-column:1/-1}.kardex-more-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=480px){.kardex-filter-bar,.kardex-summary-strip{grid-template-columns:1fr}.kardex-filter-bar .search{grid-column:auto}.kardex-more-filters{grid-template-columns:1fr}}@media print{:is(.inventory-kardex-page .page-header-actions,.inventory-kardex-page .surface:has(.kardex-filter-bar),.inventory-kardex-page .kardex-tabs,.inventory-kardex-page .pagination){display:none!important}.inventory-kardex-page .table-scroll{overflow:visible}.inventory-kardex-page .kardex-table-card table{min-width:0;font-size:8px}}.cash-advanced-dialog{width:min(920px,100vw - 28px);max-height:calc(100vh - 28px)}.group-payment-table{max-height:230px}.group-payment-table table{min-width:560px}.group-payment-table input{text-align:right;width:130px;height:32px}.cash-denomination-grid{border:1px solid var(--border);background:var(--canvas);border-radius:6px;grid-template-columns:repeat(4,minmax(105px,1fr));gap:6px;padding:8px;display:grid}.denomination-field input{text-align:right;height:32px;min-height:32px}.cash-operations-page,.cash-report-page{gap:10px;display:grid}.cash-operations-page .surface,.cash-report-page .surface{overflow:visible}.cash-operations-page table{min-width:1080px}.cash-report-page table{min-width:1180px}.reconciliation-form{padding:10px}.reconciliation-form .compact-filter-bar{grid-template-columns:minmax(190px,1.2fr) 135px 135px minmax(150px,.8fr) minmax(170px,1fr) auto;align-items:end;gap:7px;display:grid}.report-summary{grid-template-columns:repeat(4,minmax(150px,1fr))}.grouped-collection-detail{gap:10px;display:grid}.grouped-collection-detail table{min-width:680px}.closing-detail-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;display:grid}.closing-detail-grid>div{border:1px solid var(--border);border-radius:6px;padding:10px}.closing-detail-grid h3{margin:0 0 7px;font-size:12px}.closing-detail-grid dl{gap:5px;margin:0;display:grid}.closing-detail-grid dl>div{border-bottom:1px solid #eef2f7;justify-content:space-between;gap:8px;padding-bottom:4px;display:flex}.closing-detail-grid dt,.closing-detail-grid dd{margin:0;font-size:10px}.closing-detail-grid dd{font-weight:800}.field-help{color:var(--muted);margin:7px 0 0;font-size:10px}@media (width<=1050px){.cash-denomination-grid{grid-template-columns:repeat(3,minmax(100px,1fr))}.reconciliation-form .compact-filter-bar{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (width<=650px){.cash-denomination-grid,.reconciliation-form .compact-filter-bar,.report-summary,.closing-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=420px){.cash-denomination-grid,.reconciliation-form .compact-filter-bar,.report-summary{grid-template-columns:1fr}}@media print{.cash-report-page>.page-header .page-actions,.cash-report-page .cash-filter-bar,.cash-report-page .topbar,.cash-closings-page>.surface:not(.cash-closing-print),.cash-closings-page>.page-header .page-actions,.close-detail-action{display:none!important}.cash-report-page,.cash-closings-page{padding:0}.cash-report-page .surface,.cash-closing-print{box-shadow:none;border:0}}.cash-closing-breakdown{border:1px solid var(--border-color,#d8dee8);padding:12px}.cash-closing-breakdown h3{margin:0 0 8px;font-size:14px}.cash-closing-breakdown>small{color:var(--text-muted,#667085);margin-top:8px;display:block}.cash-closing-breakdown-grid{grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:6px;display:grid}.cash-closing-breakdown-grid>span{border-bottom:1px solid var(--border-color,#e4e7ec);justify-content:space-between;align-items:center;gap:8px;min-width:0;padding:6px 2px;font-size:12px;display:flex}.cash-closing-breakdown-grid>span strong{white-space:nowrap}.cash-closing-breakdown-grid>span small{color:var(--text-muted,#667085)}.cash-report-breakdown{padding-top:14px}.cash-report-breakdown .section-heading{margin-bottom:6px}.cash-closing-dialog{background:var(--surface);width:min(1080px,100vw - 28px);max-width:none;height:min(900px,100dvh - 28px);max-height:none;color:var(--text);overflow:hidden}.cash-closing-dialog .cash-closing-shell{grid-template-rows:auto minmax(0,1fr) auto;height:100%;display:grid}.cash-closing-dialog .cash-closing-header{background:var(--surface);grid-template-columns:42px minmax(0,1fr) 36px;align-items:center;padding:14px 18px;display:grid}.cash-closing-title-icon{color:#e85d04;background:#fff1e7;border-radius:7px;place-items:center;width:38px;height:38px;font-size:20px;font-weight:900;display:grid}.cash-closing-dialog .cash-closing-header h2{font-size:22px;line-height:1.1}.cash-closing-dialog .cash-closing-header>button{color:var(--text);cursor:pointer;place-items:center;font-size:20px;display:grid}.cash-closing-dialog .cash-closing-body{background:var(--canvas);gap:12px;min-height:0;padding:14px 18px;display:grid;overflow:auto}.cash-closing-metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;display:grid}.cash-closing-metrics article{border:1px solid var(--border);background:var(--surface);border-radius:7px;align-items:center;gap:10px;min-width:0;min-height:74px;padding:11px 13px;display:flex}.cash-closing-metrics article>div{gap:3px;min-width:0;display:grid}.cash-closing-metrics small{color:var(--muted);font-size:11px}.cash-closing-metrics strong{color:var(--text);font-variant-numeric:tabular-nums;text-overflow:ellipsis;white-space:nowrap;font-size:18px;overflow:hidden}.cash-metric-icon{color:#e85d04;background:#fff1e7;border-radius:7px;flex:0 0 34px;place-items:center;width:34px;height:34px;font-size:18px;font-weight:900;display:grid}.cash-metric-icon.income{color:#16a34a;background:#e8f7ed}.cash-metric-icon.outflow{color:#dc2626;background:#fff0f0}.cash-metric-icon.expected{color:#d97706;background:#fff6df}.cash-closing-composition{border:1px solid var(--border);border-left:3px solid var(--accent);background:var(--surface);border-radius:7px;padding:13px 14px}.cash-closing-composition h3{margin-bottom:10px;font-size:15px}.cash-closing-composition .cash-closing-breakdown-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:0}.cash-closing-composition .cash-closing-breakdown-grid>span{border-right:1px solid var(--border);border-bottom:0;align-content:center;gap:5px;min-height:54px;padding:7px 12px;display:grid}.cash-closing-composition .cash-closing-breakdown-grid>span:last-child{border-right:0}.cash-closing-composition .cash-closing-breakdown-grid strong{font-size:14px}.cash-closing-composition>small{border-top:1px solid var(--border);align-items:center;gap:7px;padding-top:9px;display:flex}.cash-closing-composition>small>span{color:#2563eb;border:1px solid #60a5fa;border-radius:50%;place-items:center;width:18px;height:18px;font-weight:900;display:grid}.cash-closing-empty{color:var(--muted);grid-column:1/-1}.cash-closing-warning{color:#9a3412;background:#fff7ed;border:1px solid #fdba74;border-radius:6px;margin:0;padding:9px 11px;font-size:11px;font-weight:700}.cash-closing-workspace{grid-template-columns:minmax(0,1.85fr) minmax(280px,.85fr);align-items:start;gap:12px;display:grid}.cash-count-panel,.cash-closing-side>section{border:1px solid var(--border);background:var(--surface);border-radius:7px;overflow:hidden}.cash-count-panel>header{border-bottom:1px solid var(--border);align-items:center;gap:10px;padding:12px 14px;display:flex}.cash-count-panel>header>span{color:#e85d04;background:#fff1e7;border-radius:6px;place-items:center;width:30px;height:30px;font-weight:900;display:grid}.cash-count-panel h3,.cash-count-panel p{margin:0}.cash-count-panel h3{font-size:16px}.cash-count-panel p{color:var(--muted);margin-top:2px;font-size:10px}.cash-closing-dialog .cash-denomination-grid{background:0 0;border:0;border-radius:0;padding:0;display:block}.cash-denomination-table table{border-collapse:collapse;width:100%}.cash-denomination-table th,.cash-denomination-table td{border-bottom:1px solid var(--border);text-align:left;height:44px;padding:7px 14px}.cash-denomination-table thead th{z-index:1;background:var(--subtle);color:var(--muted);text-transform:uppercase;font-size:10px;position:sticky;top:0}.cash-denomination-table th:nth-child(2),.cash-denomination-table td:nth-child(2){text-align:center;width:155px}.cash-denomination-table th:last-child,.cash-denomination-table td:last-child{text-align:right;font-variant-numeric:tabular-nums;width:150px}.cash-denomination-table .denomination-group th{background:var(--canvas);height:34px;color:var(--text);text-transform:uppercase;font-size:11px}.cash-denomination-table input{border:1px solid var(--border);background:var(--surface);width:100%;height:31px;min-height:31px;color:var(--text);text-align:center;border-radius:6px;font-weight:800}.cash-denomination-table tfoot th{background:var(--subtle);height:48px;color:var(--text);border-bottom:0;font-size:13px}.cash-denomination-table tfoot th:last-child{color:var(--accent);font-size:16px}.cash-manual-count{margin:14px}.cash-closing-side{gap:12px;display:grid}.cash-closing-result{padding:14px}.cash-closing-result h3{border-bottom:1px solid var(--border);margin:0 0 9px;padding-bottom:9px;font-size:16px}.cash-closing-result dl{gap:0;margin:0;display:grid}.cash-closing-result dl>div{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:10px;min-height:49px;display:flex}.cash-closing-result dl>div:last-child{border-bottom:0}.cash-closing-result dt,.cash-closing-result dd{margin:0}.cash-closing-result dt{color:var(--muted);font-size:11px}.cash-closing-result dd{font-variant-numeric:tabular-nums;font-size:14px;font-weight:900}.cash-closing-result.shortage dl>div:nth-child(3) dd,.cash-closing-result.shortage dl>div:nth-child(4) dd{color:#dc2626}.cash-closing-result.surplus dl>div:nth-child(3) dd,.cash-closing-result.surplus dl>div:nth-child(4) dd,.cash-closing-result.balanced dl>div:nth-child(3) dd{color:#16a34a}.cash-closing-side>.field{min-width:0}.cash-closing-side>.field input,.cash-closing-side>.field textarea{width:100%}.cash-closing-side>.field small{color:var(--muted);margin-top:4px;font-size:9px}.cash-counted-total[readonly]{background:var(--subtle);color:var(--text);font-weight:800}.cash-difference-output{border:1px solid var(--border);background:var(--surface);font-variant-numeric:tabular-nums;border-radius:6px;align-items:center;min-height:42px;padding:0 11px;font-size:16px;font-weight:900;display:flex}.cash-difference-output.shortage{color:#dc2626;border-color:#ef4444}.cash-difference-output.surplus,.cash-difference-output.balanced{color:#15803d;border-color:#22c55e}.cash-closing-observation textarea{resize:vertical;min-height:100px}.cash-closing-dialog .cash-closing-shell>footer{background:var(--surface);padding:12px 18px}.cash-closing-dialog .cash-closing-shell>footer .button{min-width:130px}.cash-closing-dialog .cash-closing-shell>footer .primary{min-width:185px}html[data-theme=dark] .cash-closing-title-icon{color:#fb923c;background:#3a2418}html[data-theme=dark] .cash-closing-warning{color:#fdba74;background:#2b1d16;border-color:#9a3412}html[data-theme=dark] .cash-difference-output.shortage{background:#2b191c}html[data-theme=dark] .cash-difference-output.surplus,html[data-theme=dark] .cash-difference-output.balanced{background:#14271d}@media (width<=900px){.cash-closing-metrics,.cash-closing-composition .cash-closing-breakdown-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cash-closing-composition .cash-closing-breakdown-grid>span:nth-child(2n){border-right:0}.cash-closing-workspace{grid-template-columns:1fr}.cash-closing-side{grid-template-columns:repeat(2,minmax(0,1fr))}.cash-closing-result{grid-column:1/-1}}@media (width<=600px){.cash-closing-dialog{border-radius:0;width:100vw;height:100dvh;max-height:100dvh}.cash-closing-dialog .cash-closing-header{grid-template-columns:34px minmax(0,1fr) 34px;padding:11px 12px}.cash-closing-title-icon{width:30px;height:30px}.cash-closing-dialog .cash-closing-header h2{font-size:18px}.cash-closing-dialog .cash-closing-header p{display:none}.cash-closing-dialog .cash-closing-body{padding:10px}.cash-closing-metrics{gap:6px}.cash-closing-metrics article{min-height:62px;padding:8px}.cash-metric-icon{flex-basis:28px;width:28px;height:28px;font-size:14px}.cash-closing-metrics strong{font-size:13px}.cash-closing-composition .cash-closing-breakdown-grid{grid-template-columns:1fr}.cash-closing-composition .cash-closing-breakdown-grid>span{border-right:0;border-bottom:1px solid var(--border)}.cash-closing-side{grid-template-columns:1fr}.cash-closing-result{grid-column:auto}.cash-denomination-table th,.cash-denomination-table td{padding:6px 8px}.cash-denomination-table th:nth-child(2),.cash-denomination-table td:nth-child(2){width:95px}.cash-denomination-table th:last-child,.cash-denomination-table td:last-child{width:105px}.cash-closing-dialog .cash-closing-shell>footer{padding:9px 10px}.cash-closing-dialog .cash-closing-shell>footer .button{flex:1;min-width:0}.cash-closing-dialog .cash-closing-shell>footer .primary{min-width:0}}.cash-control-tabs{border:1px solid var(--border);background:var(--surface);border-radius:7px;gap:6px;margin:0 0 10px;padding:5px;display:flex;overflow-x:auto}.cash-control-tabs button{white-space:nowrap;min-height:34px;color:var(--muted);cursor:pointer;background:0 0;border:1px solid #0000;border-radius:5px;padding:0 12px;font-weight:700}.cash-control-tabs button:hover{background:var(--canvas);color:var(--text)}.cash-control-tabs button.active{color:#c2410c;background:#fff7ed;border-color:#fed7aa}.cash-control-page .surface{margin-bottom:10px}.cash-control-page table{min-width:1050px}.cash-control-page td small{color:var(--muted);margin-top:3px;font-size:10px;display:block}.cash-control-dialog{background:var(--surface);border:0;border-radius:8px;width:min(900px,100vw - 28px);max-height:calc(100dvh - 28px);margin:auto;padding:0;overflow:hidden;box-shadow:0 24px 80px #0f172a4d}.cash-control-dialog::backdrop{background:#0f172a80}.cash-control-dialog .dialog-shell{grid-template-rows:auto minmax(0,1fr) auto;max-height:calc(100dvh - 28px);display:grid}.cash-control-dialog header,.cash-control-dialog footer{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;padding:13px 16px;display:flex}.cash-control-dialog footer{border-top:1px solid var(--border);border-bottom:0;justify-content:flex-end}.cash-control-dialog header h2,.cash-control-dialog header p{margin:0}.cash-control-dialog header p{color:var(--muted);margin-top:3px;font-size:12px}.cash-control-dialog header>button{border:1px solid var(--border);background:var(--surface);cursor:pointer;border-radius:5px;width:32px;height:32px}.cash-control-dialog .dialog-body{padding:14px 16px;overflow:auto}.cash-control-form{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;display:grid}.cash-control-form .fluid{grid-column:1/-1}.cash-control-action-dialog{width:min(640px,100vw - 28px)}.cash-control-action-form{grid-template-columns:minmax(210px,.8fr) minmax(260px,1.2fr);align-items:end;gap:10px;display:grid}.cash-control-action-form .fluid{grid-column:1/-1}.action-context{border:1px solid var(--border);background:var(--canvas);border-radius:6px;align-content:center;gap:3px;min-height:68px;padding:9px 11px;display:grid}.action-context small{color:var(--muted);text-transform:uppercase;font-size:9px;font-weight:800}.action-context strong{font-size:15px}.action-context span{color:var(--muted);font-size:11px}@media (width<=850px){.cash-control-form,.cash-control-page .cash-filter-bar{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=600px){.cash-control-dialog{border-radius:0;width:100vw;max-height:100dvh}.cash-control-dialog .dialog-shell{max-height:100dvh}.cash-control-form,.cash-control-action-form,.cash-control-page .cash-filter-bar{grid-template-columns:1fr}.cash-control-form .fluid,.cash-control-action-form .fluid{grid-column:auto}}.cash-governance-page .governance-content{min-height:240px}.governance-dashboard{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;display:grid}.governance-dashboard>div{border:1px solid var(--border);background:var(--surface);border-radius:7px;gap:3px;min-height:92px;padding:13px;display:grid}.governance-dashboard small{color:var(--muted);text-transform:uppercase;font-size:11px;font-weight:700}.governance-dashboard strong{font-size:24px}.governance-dashboard span{color:var(--muted);font-size:12px}.cash-governance-page .section-toolbar{justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px;display:flex}.cash-governance-page .section-toolbar h2,.cash-governance-page .section-toolbar p{margin:0}.cash-governance-page .section-toolbar p{color:var(--muted);margin-top:3px;font-size:12px}.cash-governance-page .section-toolbar>div:last-child{gap:6px;display:flex}.cash-governance-form{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;display:grid}.cash-governance-form .fluid{grid-column:1/-1}.cash-governance-form .checkbox-field{align-self:end;align-items:center;gap:8px;min-height:36px;display:flex}.cash-governance-form .checkbox-field input{width:17px;height:17px}.cash-governance-page .status-badge.critica{color:#b91c1c;background:#fee2e2}.cash-governance-page .status-badge.advertencia{color:#c2410c;background:#ffedd5}@media (width<=850px){.governance-dashboard{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=600px){.governance-dashboard,.cash-governance-form{grid-template-columns:1fr}.cash-governance-form .fluid{grid-column:auto}.cash-governance-page .section-toolbar{flex-direction:column;align-items:stretch}}.benefit-document-dialog,.benefit-report-dialog{background:var(--surface);border:0;border-radius:8px;width:min(1040px,100vw - 28px);max-height:calc(100dvh - 28px);margin:auto;padding:0;overflow:hidden;box-shadow:0 24px 80px #0f172a4d}.benefit-document-dialog::backdrop,.benefit-report-dialog::backdrop{background:#0f172a8c}.benefit-document-dialog>form,.benefit-report-dialog>form{grid-template-rows:auto auto auto minmax(0,1fr) auto;max-height:calc(100dvh - 28px);display:grid;overflow:hidden}.benefit-dialog-header,.benefit-dialog-actions,.benefit-document-dialog>form>footer{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;display:flex}.benefit-dialog-header h2,.benefit-dialog-header p{margin:0}.benefit-dialog-header span{color:#ea580c;text-transform:uppercase;font-size:10px;font-weight:800}.benefit-dialog-header p{color:var(--muted);margin-top:3px;font-size:11px}.benefit-dialog-header>button{border:1px solid var(--border);background:var(--surface);cursor:pointer;border-radius:5px;width:31px;height:31px}.benefit-document-meta,.benefit-accounting-summary,.benefit-report-summary{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;padding:10px 16px;display:grid}.benefit-document-meta>div,.benefit-accounting-summary>div,.benefit-report-summary>div{border:1px solid var(--border);background:var(--canvas);border-radius:6px;gap:2px;min-width:0;padding:9px 11px;display:grid}.benefit-document-meta small,.benefit-accounting-summary small,.benefit-report-summary small{color:var(--muted);text-transform:uppercase;font-size:9px;font-weight:800}.benefit-document-meta strong,.benefit-accounting-summary strong,.benefit-report-summary strong{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.benefit-accounting-summary{grid-template-columns:repeat(3,minmax(0,1fr)) auto;align-items:center}.benefit-reversal-note{color:#9a3412;background:#fff7ed;border-radius:5px;margin:0 16px 10px;padding:8px 10px}.benefit-document-dialog .table-scroll,.benefit-report-dialog .table-scroll{border:1px solid var(--border);border-radius:6px;margin:0 16px 12px;overflow:auto}.benefit-document-dialog table,.benefit-report-dialog table{min-width:760px}.benefit-dialog-actions,.benefit-document-dialog>form>footer{border-top:1px solid var(--border);border-bottom:0;justify-content:flex-end}.benefit-dialog-actions>span{color:var(--muted);margin-right:auto;font-size:11px}.benefit-report-dialog .compact-filter-bar{grid-template-columns:minmax(210px,1.2fr) 150px 135px 135px auto;gap:7px;padding:10px 16px;display:grid}.benefit-report-dialog .compact-filter-bar input,.benefit-report-dialog .compact-filter-bar select{min-width:0;height:34px}.benefit-voucher-print{padding:16px 22px;overflow:auto}.benefit-voucher-print>header{border-bottom:2px solid #1e293b;justify-content:space-between;gap:20px;padding-bottom:12px;display:flex}.benefit-voucher-print>header div{gap:2px;display:grid}.benefit-voucher-print>header div:last-child{text-align:right}.benefit-voucher-print>header small{color:var(--muted)}.benefit-voucher-breakdown{border-collapse:collapse;width:100%;margin:12px 0}.benefit-voucher-breakdown th,.benefit-voucher-breakdown td{border-bottom:1px solid var(--border);padding:8px}.benefit-voucher-breakdown th:last-child,.benefit-voucher-breakdown td:last-child{text-align:right}.benefit-voucher-breakdown tfoot th{font-size:16px}.benefit-voucher-references{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 20px;display:grid}.benefit-voucher-references p{border-bottom:1px solid #eef2f7;margin:0;padding:5px 0}.benefit-voucher-signatures{text-align:center;grid-template-columns:repeat(2,1fr);gap:70px;margin-top:50px;display:grid}.benefit-voucher-signatures span{border-top:1px solid #334155;display:block}.benefit-voucher-signatures b{padding-top:5px;display:block}@media (width<=720px){.benefit-document-dialog,.benefit-report-dialog{border-radius:0;width:100vw;max-height:100dvh}.benefit-document-dialog>form,.benefit-report-dialog>form{max-height:100dvh}.benefit-document-meta,.benefit-report-summary,.benefit-accounting-summary,.benefit-report-dialog .compact-filter-bar{grid-template-columns:repeat(2,minmax(0,1fr))}}@media print{body.printing-benefit-voucher .app-shell>:not(.main-content),body.printing-benefit-voucher .main-content>:not(.page-content),body.printing-benefit-voucher .employee-benefits-page>:not(.benefit-voucher-dialog),body.printing-benefit-voucher .benefit-voucher-dialog .benefit-dialog-header,body.printing-benefit-voucher .benefit-voucher-dialog .benefit-dialog-actions,body.printing-benefit-report .app-shell>:not(.main-content),body.printing-benefit-report .main-content>:not(.page-content),body.printing-benefit-report .employee-benefits-page>:not(.benefit-report-dialog),body.printing-benefit-report .benefit-report-dialog .benefit-dialog-header,body.printing-benefit-report .benefit-report-dialog .compact-filter-bar,body.printing-benefit-report .benefit-report-dialog .benefit-dialog-actions{display:none!important}body.printing-benefit-voucher .benefit-voucher-dialog,body.printing-benefit-report .benefit-report-dialog{width:100%;max-height:none;box-shadow:none;border:0;display:block;position:static}body.printing-benefit-voucher .benefit-voucher-dialog>form,body.printing-benefit-report .benefit-report-dialog>form{max-height:none;display:block}body.printing-benefit-voucher .benefit-voucher-print,body.printing-benefit-report .table-scroll{padding:0;overflow:visible}body.printing-benefit-report .benefit-report-summary{grid-template-columns:repeat(4,1fr)}}.purchase-detail-dialog{background:var(--surface);border:0;border-radius:8px;width:min(1180px,100vw - 28px);max-height:calc(100dvh - 28px);margin:auto;padding:0;overflow:hidden;box-shadow:0 24px 80px #0f172a4d}.purchase-detail-dialog::backdrop{background:#0f172a8c}.purchase-detail-shell{grid-template-rows:auto minmax(0,1fr) auto;max-height:calc(100dvh - 28px);display:grid}.purchase-detail-shell>header,.purchase-detail-shell>footer{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;display:flex}.purchase-detail-shell>header h2,.purchase-detail-shell>header p{margin:0}.purchase-detail-shell>header small{color:#ea580c;font-size:10px;font-weight:800}.purchase-detail-shell>header p{color:var(--muted);margin-top:3px;font-size:11px}.purchase-detail-shell>footer{border-top:1px solid var(--border);border-bottom:0}.purchase-detail-shell>footer>div{gap:7px;display:flex}.purchase-detail-body{padding:14px 16px;overflow:auto}.purchase-detail-summary{grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;margin-bottom:9px;display:grid}.purchase-detail-summary article,.purchase-detail-document>div{border:1px solid var(--border);background:var(--canvas);border-radius:6px;align-content:center;gap:2px;min-width:0;padding:8px 10px;display:grid}.purchase-detail-summary small,.purchase-detail-document small,.purchase-detail-notes small{color:var(--muted);text-transform:uppercase;font-size:9px;font-weight:800}.purchase-detail-summary strong,.purchase-detail-summary span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.purchase-detail-summary span{color:var(--muted);font-size:10px}.purchase-detail-document{grid-template-columns:repeat(4,minmax(130px,1fr));gap:7px;margin-bottom:10px;display:grid}.purchase-detail-document>div{text-align:right}.purchase-detail-document strong{font-size:15px}.purchase-detail-document>div:last-child{color:#c2410c;background:#fff7ed;border-color:#fed7aa}.purchase-detail-table{border:1px solid var(--border);border-radius:6px}.purchase-detail-table table{min-width:1050px}.purchase-detail-table th,.purchase-detail-table td{padding:7px}.purchase-detail-notes{border:1px solid var(--border);background:var(--canvas);border-radius:6px;margin-top:10px;padding:9px 11px}.purchase-detail-notes p{white-space:pre-wrap;margin:4px 0 0}.purchase-detail-attachments{border:1px solid var(--border);background:var(--canvas);border-radius:6px;margin-bottom:10px}.purchase-detail-attachments>header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:10px;padding:9px 11px;display:flex}.purchase-detail-attachments>header>div{gap:2px;display:grid}.purchase-detail-attachments small{color:var(--muted);font-size:10px}.purchase-attachment-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:9px;display:grid}.purchase-attachment-list article{border:1px solid var(--border);background:var(--surface);border-radius:5px;justify-content:space-between;align-items:center;gap:8px;min-width:0;padding:8px;display:flex}.purchase-attachment-list article>div:first-child{gap:2px;min-width:0;display:grid}.purchase-attachment-list article>div:last-child{gap:4px;display:flex}.purchase-attachment-list strong{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.purchase-attachment-empty{color:var(--muted);margin:0;padding:12px}@media (width<=900px){.purchase-detail-summary{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (width<=600px){.purchase-detail-dialog{border-radius:0;width:100vw;max-height:100dvh}.purchase-detail-shell{max-height:100dvh}.purchase-detail-summary,.purchase-detail-document{grid-template-columns:repeat(2,minmax(0,1fr))}}@media print{body.printing-purchase-detail .app-shell>:not(.main-content),body.printing-purchase-detail .main-content>:not(.page-content),body.printing-purchase-detail .purchases-page>:not(.purchase-detail-dialog),body.printing-purchase-detail .purchase-detail-shell>header,body.printing-purchase-detail .purchase-detail-shell>footer{display:none!important}body.printing-purchase-detail .purchase-detail-dialog{width:100%;max-height:none;box-shadow:none;border:0;display:block;position:static}body.printing-purchase-detail .purchase-detail-shell{max-height:none;display:block}body.printing-purchase-detail .purchase-detail-body{padding:0;overflow:visible}body.printing-purchase-detail .purchase-detail-table{overflow:visible}body.printing-purchase-detail .purchase-detail-table table{min-width:0}body.printing-purchase-detail .purchase-detail-table th,body.printing-purchase-detail .purchase-detail-table td{padding:4px;font-size:9px}}.mixed-variant-dialog{width:min(720px,100vw - 28px)}.mixed-allocation-total{color:#9a3412;background:#fff7ed;border:1px solid #fed7aa;border-radius:6px;justify-content:space-between;align-items:center;margin-top:9px;padding:9px 11px;display:flex}.mixed-allocation-total.complete{color:#166534;background:#f0fdf4;border-color:#bbf7d0}.promotion-choice-dialog{width:min(620px,100vw - 28px)}.promotion-choice-list{gap:8px;display:grid}.promotion-choice-option{border:1px solid var(--border);background:var(--surface);width:100%;color:var(--text);text-align:left;cursor:pointer;border-radius:6px;gap:3px;padding:12px 14px;display:grid}.promotion-choice-option:hover,.promotion-choice-option:focus-visible{background:#fff7ed;border-color:#fb923c;outline:0}.promotion-choice-option.selected{border-color:#f97316;box-shadow:0 0 0 2px #f973161f}.promotion-choice-option strong{font-size:13px}.promotion-choice-option span{color:var(--muted);font-size:11px}[data-theme=dark] .promotion-choice-option:hover,[data-theme=dark] .promotion-choice-option:focus-visible{background:#2a211d}.return-variant-grid{border:1px solid var(--border);background:var(--canvas);border-radius:5px;gap:4px;margin-top:7px;padding:6px;display:grid}.return-variant-grid label{grid-template-columns:minmax(130px,1fr) 100px;align-items:center;gap:7px;font-size:10px;display:grid}.return-variant-grid span,.return-variant-grid small{display:block}.return-variant-grid small{color:var(--muted);font-size:8px}.return-variant-grid input{text-align:right;width:100%;height:29px}.invoice-print-format{align-items:center;gap:6px;margin-right:auto;font-size:10px;font-weight:800;display:flex}.invoice-print-format select{border:1px solid var(--border);background:var(--surface);border-radius:5px;min-width:145px;height:34px;padding:0 7px}.invoice-print-sheet{background:var(--surface);color:#111;font-family:Arial,sans-serif;display:none}.invoice-print-header{text-align:center;border-bottom:1px dashed #334155;padding-bottom:8px}.invoice-print-header h1{letter-spacing:0;margin:0;font-size:22px}.invoice-print-header p{margin:2px 0;font-size:10px}.invoice-print-meta{grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;margin:8px 0;display:grid}.invoice-print-meta>div{border:1px solid #cbd5e1;gap:1px;padding:5px;display:grid}.invoice-print-meta span{text-transform:uppercase;font-size:8px}.invoice-print-meta strong{font-size:10px}.invoice-print-client{border-block:1px dashed #64748b;padding:6px 0}.invoice-print-client p{margin:2px 0;font-size:10px}.invoice-print-lines{border-collapse:collapse;width:100%;margin-top:7px}.invoice-print-lines th,.invoice-print-lines td{vertical-align:top;text-align:right;border-bottom:1px dashed #94a3b8;padding:5px 4px;font-size:9px}.invoice-print-lines th:first-child,.invoice-print-lines td:first-child{text-align:left}.invoice-print-lines td strong,.invoice-print-lines td small{display:block}.invoice-print-lines td small{margin-top:2px;font-size:8px}.notes-panel-heading{justify-content:space-between;align-items:center;gap:8px;display:flex}.notes-panel-heading>span{color:#c2410c;text-transform:uppercase;font-size:10px;font-weight:900}.notes-panel .observation-row-button{color:#c2410c;text-transform:none;height:30px;min-height:30px;padding:0 10px;font-size:10px}.notes-panel>small{color:var(--muted);text-transform:none;font-size:9px;font-weight:600}.billing-focus .notes-panel{padding:5px 8px}.billing-focus .notes-panel textarea{resize:none;height:34px;min-height:34px;padding:5px 7px}.billing-focus .notes-panel-heading{min-height:28px}.billing-focus .notes-panel .observation-row-button{height:27px;min-height:27px}.billing-focus .invoice-summary-horizontal{padding:4px}.billing-focus .invoice-summary-horizontal>div{min-height:44px;padding:4px 8px}.billing-focus .invoice-summary-horizontal .grand-total strong{font-size:21px}.observation-detail-line td{color:#7c2d12;background:#fffaf5;border-color:#fed7aa}.observation-detail-line td[colspan]{text-align:left}.observation-detail-line td[colspan]>span{color:#c2410c;text-transform:uppercase;background:#ffedd5;border-radius:4px;margin-right:8px;padding:2px 6px;font-size:9px;font-weight:900;display:inline-flex}.observation-detail-line td[colspan]>strong{font-weight:700}.invoice-print-observation-line td{border-top:1px dashed #94a3b8;border-bottom:1px dashed #94a3b8;font-style:italic;text-align:left!important;padding:6px 2px!important}.invoice-print-summary{width:min(320px,100%);margin:8px 0 0 auto}.invoice-print-summary p{justify-content:space-between;gap:14px;margin:0;padding:3px 0;font-size:10px;display:flex}.invoice-print-summary .invoice-print-total{border-block:2px solid #111;font-size:14px}.invoice-print-summary .invoice-print-payment-status{text-transform:uppercase;border-top:1px dashed #64748b;margin-top:4px;font-size:11px}.invoice-print-summary .invoice-print-payment-status.pendiente strong{color:#b45309}.invoice-print-summary .invoice-print-payment-status.abonada strong{color:#1d4ed8}.invoice-print-summary .invoice-print-payment-status.pagada strong{color:#15803d}.invoice-print-summary .invoice-print-payment-status.anulada strong{color:#b91c1c}.invoice-print-compact-receipt{border-top:1px dashed #64748b;margin-top:10px;padding-top:7px;font-size:9px}.invoice-print-compact-receipt>strong{text-align:center;margin-bottom:4px;font-size:10px;display:block}.invoice-print-compact-receipt p{justify-content:space-between;gap:10px;margin:2px 0;display:flex}.invoice-print-compact-receipt b{text-align:right}.invoice-print-observation{border:1px dashed #64748b;margin:8px 0;padding:6px;font-size:9px}.invoice-print-signatures{text-align:center;grid-template-columns:repeat(2,1fr);gap:35px;margin:34px 10px 12px;display:grid}.invoice-print-signatures span{border-top:1px solid #111;padding-top:4px;font-size:9px}.invoice-print-footer{text-align:center;white-space:pre-line;font-size:9px}.invoice-print-footer span,.invoice-print-footer small{display:block}.invoice-print-footer small{color:#64748b;margin-top:3px;font-size:8px}@page invoice-ticket-80{size:80mm 297mm;margin:0}@page invoice-ticket-58{size:58mm 297mm;margin:3mm}@media print{body.printing-invoice{background:var(--surface)!important;width:80mm!important;margin:0!important}body.printing-invoice>:not(.invoice-print-sheet){display:none!important}body.printing-invoice>.invoice-print-sheet{box-sizing:border-box!important;margin:0 auto!important;padding:5mm!important;display:block!important}body.printing-invoice>.invoice-print-sheet,body.printing-invoice>.invoice-print-sheet *{visibility:visible!important}body.printing-invoice>.invoice-print-carta{width:210mm;min-height:0}body.printing-invoice>.invoice-print-media_carta{width:140mm;min-height:0}body.printing-invoice>.invoice-print-ticket_80{page:invoice-ticket-80;width:70mm;max-width:70mm;margin:0 auto!important;padding:0!important}body.printing-invoice>.invoice-print-ticket_58{page:invoice-ticket-58;width:52mm;max-width:52mm;padding:0!important}body.printing-invoice>.invoice-print-ticket_80 .invoice-print-meta,body.printing-invoice>.invoice-print-ticket_58 .invoice-print-meta{grid-template-columns:repeat(2,minmax(0,1fr))}body.printing-invoice>.invoice-print-ticket_80 .invoice-print-meta>div,body.printing-invoice>.invoice-print-ticket_58 .invoice-print-meta>div{border:0;padding:2px 0}body.printing-invoice>.invoice-print-ticket_80 .invoice-print-lines th,body.printing-invoice>.invoice-print-ticket_80 .invoice-print-lines td,body.printing-invoice>.invoice-print-ticket_58 .invoice-print-lines th,body.printing-invoice>.invoice-print-ticket_58 .invoice-print-lines td{padding:3px 1px;font-size:8px}body.printing-invoice>.invoice-print-ticket_58 .invoice-print-header h1{font-size:17px}body.printing-invoice>.invoice-print-ticket_58 .invoice-print-lines th:nth-child(3),body.printing-invoice>.invoice-print-ticket_58 .invoice-print-lines td:nth-child(3){display:none}body.printing-invoice>.invoice-print-ticket_80 .invoice-print-signatures,body.printing-invoice>.invoice-print-ticket_58 .invoice-print-signatures{gap:18px;margin-top:28px}body.printing-billing-preview{width:80mm!important;margin:0!important}body.printing-billing-preview *{visibility:hidden!important}body.printing-billing-preview .billing-preview,body.printing-billing-preview .billing-preview *{visibility:visible!important}body.printing-billing-preview .billing-preview{page:invoice-ticket-80;width:70mm!important;max-width:70mm!important;height:auto!important;max-height:none!important;box-shadow:none!important;border:0!important;margin:0 auto!important;display:block!important;position:static!important;transform:none!important}body.printing-billing-preview .billing-preview>header,body.printing-billing-preview .billing-preview>footer{display:none!important}body.printing-billing-preview .billing-preview-body{padding:0!important}body.printing-billing-preview .billing-preview-body table{table-layout:fixed;font-size:8px;width:100%!important;min-width:0!important}body.printing-billing-preview .billing-preview-body th,body.printing-billing-preview .billing-preview-body td{overflow-wrap:anywhere;padding:3px 1px!important}body.printing-billing-preview .billing-preview-body,body.printing-billing-preview .billing-preview-body .table-scroll{overflow:visible!important}}.inventory-stock-page,.inventory-documents-page,.inventory-reconciliation-page{width:min(1680px,100%)}.inventory-filter-bar{grid-template-columns:minmax(230px,1.5fr) repeat(4,minmax(130px,.8fr)) auto auto;align-items:end;gap:7px;display:grid}.inventory-filter-bar .field{min-width:0}.inventory-filter-bar input,.inventory-filter-bar select,.inventory-filter-bar .button{height:34px;min-height:34px;font-size:11px}.inventory-check{min-height:34px;color:var(--text);white-space:nowrap;align-items:center;gap:7px;font-size:11px;font-weight:700;display:flex}.inventory-check input{width:16px;height:16px;min-height:0}.receipt-help-text{color:var(--muted);grid-column:1/-1;margin:4px 0 0;font-size:11px;line-height:1.35}.inventory-summary-strip{border:1px solid var(--border);background:var(--surface);border-radius:7px;grid-template-columns:repeat(5,minmax(130px,1fr));display:grid;overflow:hidden}.inventory-summary-strip>div{border-right:1px solid var(--border);gap:2px;padding:9px 12px;display:grid}.inventory-summary-strip>div:last-child{border-right:0}.inventory-summary-strip small{color:var(--muted);text-transform:uppercase;font-size:9px;font-weight:800}.inventory-summary-strip strong{font-size:17px}.inventory-summary-strip .entry strong{color:#15803d}.inventory-summary-strip .exit strong{color:#dc2626}.inventory-summary-strip .warning strong{color:#b45309}.inventory-stock-page td strong,.inventory-stock-page td small,.inventory-reconciliation-page td strong,.inventory-reconciliation-page td small{display:block}.inventory-stock-page td small,.inventory-reconciliation-page td small{color:var(--muted);margin-top:2px;font-size:9px}.inventory-stock-page table{min-width:1120px}.inventory-reconciliation-page table{min-width:1320px}.table-inline-actions{white-space:nowrap;align-items:center;gap:5px;display:flex}.reconciliation-status{text-transform:capitalize;border-radius:999px;padding:3px 6px;font-size:9px;font-weight:800;display:inline-flex}.reconciliation-status.correcto{color:#166534;background:#dcfce7}.reconciliation-status.diferencia_costos{color:#92400e;background:#fef3c7}.reconciliation-status.requiere_ajuste{color:#991b1b;background:#fee2e2}.modal-backdrop{z-index:1200;background:#0f172a8c;place-items:center;padding:14px;display:grid;position:fixed;inset:0}.inventory-operation-modal{background:var(--surface);border:0;border-radius:8px;grid-template-rows:auto minmax(0,1fr) auto;width:min(1320px,100vw - 28px);max-width:none;height:min(850px,100dvh - 28px);display:grid;overflow:hidden;box-shadow:0 24px 80px #0f172a4d}.inventory-operation-modal>header,.inventory-operation-modal>footer{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;padding:13px 17px;display:flex}.inventory-operation-modal>header h2,.inventory-operation-modal>header p{margin:0}.inventory-operation-modal>header p{color:var(--muted);margin-top:3px;font-size:11px}.inventory-operation-modal>.modal-body{background:var(--canvas);min-height:0;padding:13px 16px;overflow:auto}.inventory-operation-modal>footer{border-top:1px solid var(--border);border-bottom:0;justify-content:flex-end}.inventory-document-fields{border:1px solid var(--border);background:var(--surface);border-radius:7px;grid-template-columns:150px repeat(2,minmax(190px,1fr)) minmax(240px,1.2fr);gap:8px;margin-bottom:10px;padding:11px;display:grid}.inventory-document-fields .wide{min-width:0}.inventory-line-editor{border:1px solid var(--border);background:var(--surface);border-radius:7px;margin-bottom:10px;padding:11px}.inventory-line-editor h3{color:#c2410c;margin:0 0 9px;font-size:14px}.inventory-line-controls{grid-template-columns:minmax(250px,1.5fr) minmax(160px,1fr) minmax(150px,.9fr) 100px 120px auto;align-items:end;gap:7px;margin-bottom:9px;display:grid}.inventory-line-controls .field,.inventory-line-controls .wide{min-width:0}.inventory-line-editor table{min-width:880px}.inventory-line-editor td strong,.inventory-line-editor td small{display:block}.inventory-line-editor td small{color:var(--muted);margin-top:2px;font-size:9px}.inventory-operation-modal textarea{min-height:64px}@media (width<=1200px){.inventory-filter-bar{grid-template-columns:repeat(4,minmax(0,1fr))}.inventory-filter-bar .search{grid-column:span 2}.inventory-document-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.inventory-line-controls{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (width<=720px){.inventory-filter-bar,.inventory-summary-strip,.inventory-document-fields,.inventory-line-controls{grid-template-columns:1fr}.inventory-filter-bar .search{grid-column:auto}.inventory-operation-modal{border-radius:0;width:100vw;height:100dvh}.modal-backdrop{padding:0}}.accounting-page{gap:10px;width:min(1720px,100%);display:grid}.accounting-filter-bar{grid-template-columns:minmax(260px,1.5fr) repeat(3,minmax(135px,.75fr)) auto auto;align-items:end;gap:7px;display:grid}.accounting-filter-bar .field{min-width:0}.accounting-filter-bar input,.accounting-filter-bar select,.accounting-filter-bar .button{height:34px;min-height:34px;font-size:11px}.accounting-summary-strip{border:1px solid var(--border);background:var(--surface);border-radius:7px;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));display:grid;overflow:hidden}.accounting-summary-strip>div{border-right:1px solid var(--border);gap:2px;padding:10px 12px;display:grid}.accounting-summary-strip>div:last-child{border-right:0}.accounting-summary-strip small{color:var(--muted);text-transform:uppercase;font-size:9px;font-weight:800}.accounting-summary-strip strong{font-size:17px}.accounting-summary-strip .success strong{color:#15803d}.accounting-summary-strip .warning strong{color:#dc2626}.accounting-module-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;display:grid}.accounting-module-card{text-align:left;border:1px solid var(--border);background:var(--surface);min-height:126px;color:var(--text);cursor:pointer;border-radius:7px;align-content:start;gap:6px;padding:15px;display:grid}.accounting-module-card:hover{border-color:#fb923c;transform:translateY(-1px);box-shadow:0 8px 24px #0f172a14}.accounting-module-card span{font-size:15px;font-weight:800}.accounting-module-card p{min-height:34px;color:var(--muted);margin:0;font-size:11px}.accounting-module-card strong{color:#c2410c;font-size:13px}.accounting-tabs{border:1px solid var(--border);background:var(--surface);border-radius:7px;gap:5px;padding:5px;display:flex;overflow-x:auto}.accounting-tabs button{white-space:nowrap;min-height:34px;color:var(--muted);cursor:pointer;background:0 0;border:1px solid #0000;border-radius:5px;padding:0 12px;font-weight:750}.accounting-tabs button.active{color:#c2410c;background:#fff7ed;border-color:#fed7aa}.accounting-page table{min-width:920px}.accounting-page td small{color:var(--muted);margin-top:2px;font-size:9px;display:block}.accounting-dialog{background:var(--surface);border:0;border-radius:8px;grid-template-rows:auto minmax(0,1fr) auto;width:min(980px,100vw - 28px);max-height:calc(100dvh - 28px);display:grid;overflow:hidden;box-shadow:0 24px 80px #0f172a59}.accounting-dialog.small{width:min(680px,100vw - 28px)}.accounting-entry-dialog,.accounting-statement-dialog{width:min(1320px,100vw - 28px)}.accounting-dialog>header,.accounting-dialog>footer{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;padding:13px 16px;display:flex}.accounting-dialog>header h2,.accounting-dialog>header p{margin:0}.accounting-dialog>header p{color:var(--muted);margin-top:3px;font-size:11px}.accounting-dialog>header>button{border:1px solid var(--border);background:var(--surface);cursor:pointer;border-radius:5px;width:32px;height:32px}.accounting-dialog>.dialog-body{background:var(--canvas);min-height:0;padding:14px 16px;overflow:auto}.accounting-dialog>footer{border-top:1px solid var(--border);border-bottom:0;justify-content:flex-end}.accounting-dialog.read-only .dialog-body input,.accounting-dialog.read-only .dialog-body select,.accounting-dialog.read-only .dialog-body textarea,.accounting-dialog.read-only .dialog-body button{pointer-events:none;background:var(--subtle);color:var(--muted)}.accounting-form{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;display:grid}.accounting-form .wide{grid-column:span 2}.accounting-form .fluid{grid-column:1/-1}.accounting-check{align-items:center;gap:7px;min-height:36px;font-size:11px;font-weight:700;display:flex}.accounting-check input{width:17px;height:17px}.accounting-entry-header{grid-template-columns:140px minmax(240px,1.5fr) minmax(160px,.8fr) 160px;gap:8px;margin-bottom:10px;display:grid}.accounting-lines-table{min-width:1040px}.accounting-lines-table select,.accounting-lines-table input{width:100%;min-height:32px}.accounting-lines-table th:nth-last-child(-n+3),.accounting-lines-table td:nth-last-child(-n+3){width:120px}.accounting-balance{color:#991b1b;background:#fef2f2;border:1px solid #fecaca;border-radius:6px;justify-content:flex-end;gap:20px;margin-top:10px;padding:10px;display:flex}.accounting-balance.balanced{color:#166534;background:#f0fdf4;border-color:#bbf7d0}.accounting-balance span{text-align:right;gap:2px;display:grid}.accounting-balance strong{font-size:15px}.accounting-report-page .section-toolbar h2,.accounting-report-page .section-toolbar p{margin:0}.accounting-report-page .section-toolbar p{color:var(--muted);margin-top:3px;font-size:11px}.accounting-statement-dialog .accounting-summary-strip{margin-bottom:10px}.banks-page table{min-width:1180px}.expense-filter-bar{grid-template-columns:minmax(230px,1.5fr) repeat(4,minmax(120px,.75fr)) auto auto auto;align-items:end;gap:7px;display:grid}.expense-filter-bar .field{min-width:0}.expense-filter-bar input,.expense-filter-bar select,.expense-filter-bar .button{height:34px;min-height:34px;font-size:11px}.expense-more-filters{border-top:1px solid var(--border);grid-column:1/-1;grid-template-columns:repeat(4,minmax(150px,1fr));gap:7px;padding-top:8px;display:grid}.expense-list table{min-width:1420px}.expense-summary strong{font-size:15px}.expense-dialog{width:min(1040px,100vw - 28px)}.expense-source-balance{border:1px solid var(--border);background:var(--subtle);border-radius:6px;grid-column:1/-1;justify-content:space-between;align-items:center;padding:10px 12px;display:flex}.expense-source-balance span{color:var(--muted);font-size:11px;font-weight:700}.expense-source-balance strong{font-size:17px}.expense-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.expense-detail-grid>div{border:1px solid var(--border);background:var(--surface);border-radius:6px;gap:3px;min-height:58px;padding:9px 10px;display:grid}.expense-detail-grid small{color:var(--muted);text-transform:uppercase;font-size:9px;font-weight:800}.expense-detail-grid .wide{grid-column:1/-1}@media (width<=1150px){.expense-filter-bar{grid-template-columns:repeat(4,minmax(0,1fr))}.expense-more-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=650px){.expense-filter-bar,.expense-more-filters,.expense-detail-grid{grid-template-columns:1fr}.expense-detail-grid .wide{grid-column:auto}}@media (width<=1000px){.accounting-module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.accounting-filter-bar{grid-template-columns:repeat(3,minmax(0,1fr))}.accounting-entry-header{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=650px){.accounting-module-grid,.accounting-filter-bar,.accounting-form,.accounting-entry-header{grid-template-columns:1fr}.accounting-form .wide,.accounting-form .fluid{grid-column:auto}.accounting-dialog{border-radius:0;width:100vw;max-height:100dvh}.accounting-balance{flex-direction:column;justify-content:stretch}.accounting-balance span{text-align:left}}@media print{.accounting-report-page>.page-header .page-actions,.accounting-report-page>.accounting-tabs,.accounting-report-page>.surface:first-of-type,.accounting-statement-dialog>header,.accounting-statement-dialog>footer{display:none!important}.accounting-report-page{padding:0}.accounting-report-page>.surface,.accounting-statement-dialog{box-shadow:none;border:0}}.branch-transfers-page{gap:10px;width:min(1720px,100%);display:grid}.branch-transfer-filters{grid-template-columns:minmax(180px,1.6fr) minmax(160px,1.2fr) minmax(130px,1fr) 145px 145px auto auto auto;align-items:center;gap:8px;display:grid}.branch-transfer-filters input,.branch-transfer-filters select{min-width:0;height:36px}.compact-check{white-space:nowrap;align-items:center;gap:6px;font-size:11px;font-weight:700;display:flex}.compact-check input{width:16px;height:16px}.branch-transfer-modal,.branch-transfer-detail{background:var(--surface);border:0;border-radius:8px;grid-template-rows:auto minmax(0,1fr) auto;width:min(1480px,100vw - 36px);max-width:none;height:min(900px,100dvh - 32px);display:grid;overflow:hidden;box-shadow:0 24px 80px #0f172a4d}.branch-transfer-modal>header,.branch-transfer-modal>footer,.branch-transfer-detail>header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;padding:13px 17px;display:flex}.branch-transfer-modal>header h2,.branch-transfer-modal>header p,.branch-transfer-detail>header h2,.branch-transfer-detail>header p{margin:0}.branch-transfer-modal>header p,.branch-transfer-detail>header p{color:var(--muted);margin-top:3px;font-size:11px}.branch-transfer-modal>.modal-body,.branch-transfer-detail>.modal-body{background:var(--canvas);min-height:0;padding:13px 16px;overflow:auto}.branch-transfer-modal>footer{border-top:1px solid var(--border);border-bottom:0;justify-content:flex-end}.branch-document-fields{border:1px solid var(--border);background:var(--surface);border-radius:7px;grid-template-columns:1.4fr 1.2fr 150px 150px;gap:8px;padding:10px;display:grid}.branch-transfer-modal .branch-document-fields{grid-template-columns:1.25fr 1fr 1.2fr 135px 135px}.branch-document-fields.secondary{grid-template-columns:1fr 1fr 2fr;margin-top:10px}.branch-destination-note{background:#eff6ff;border:1px solid #bfdbfe;border-radius:6px;align-items:center;gap:12px;margin:8px 0;padding:8px 11px;font-size:11px;display:flex}.branch-destination-note strong{color:#1d4ed8}.branch-line-editor{border:1px solid var(--border);background:var(--surface);border-radius:7px;margin:9px 0;padding:10px}.branch-line-editor h3{color:#c2410c;margin:0 0 8px;font-size:14px}.branch-line-grid{grid-template-columns:minmax(220px,2fr) minmax(130px,1fr) minmax(130px,1fr) 105px 95px 105px 110px auto;align-items:end;gap:7px;display:grid}.branch-line-grid .field{min-width:0;margin:0}.branch-line-grid .field span{font-size:9px}.branch-line-grid input,.branch-line-grid select{height:34px}.branch-transfer-modal table,.branch-transfer-detail table{min-width:1050px}.branch-transfer-modal textarea{min-height:54px}.branch-transfer-summary{border:1px solid var(--border);background:var(--surface);border-top:0;justify-content:flex-end;gap:28px;padding:9px 12px;font-size:11px;display:flex}.branch-transfer-summary strong{margin-left:6px;font-size:15px}.branch-detail-summary{grid-template-columns:repeat(6,minmax(120px,1fr));gap:7px;margin-bottom:9px;display:grid}.branch-detail-summary>div{border:1px solid var(--border);background:var(--surface);border-radius:6px;padding:8px 10px}.branch-detail-summary span{color:var(--muted);margin-bottom:2px;font-size:9px;display:block}.branch-detail-summary strong{font-size:14px}.branch-internal-note{background:#fff7ed;border-left:3px solid #f97316;padding:8px 11px;font-size:11px}.modal-backdrop.nested{z-index:1300}.branch-payment-modal{background:var(--surface);border-radius:8px;grid-template-rows:auto minmax(0,1fr) auto;width:min(560px,100vw - 28px);max-height:calc(100dvh - 28px);display:grid;overflow:hidden}.branch-payment-modal>header,.branch-payment-modal>footer{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;padding:12px 15px;display:flex}.branch-payment-modal>.modal-body{padding:14px;overflow:auto}.branch-payment-modal>footer{border-top:1px solid var(--border);border-bottom:0;justify-content:flex-end;gap:8px}@media (width<=1200px){.branch-transfer-filters,.branch-line-grid{grid-template-columns:repeat(4,minmax(130px,1fr))}.branch-line-grid .product{grid-column:span 2}.branch-detail-summary{grid-template-columns:repeat(3,1fr)}}@media (width<=760px){.branch-transfer-filters,.branch-document-fields,.branch-document-fields.secondary,.branch-line-grid{grid-template-columns:1fr}.branch-line-grid .product{grid-column:auto}.branch-detail-summary{grid-template-columns:repeat(2,1fr)}.branch-transfer-summary{flex-direction:column;align-items:flex-end;gap:4px}.branch-transfer-modal,.branch-transfer-detail{border-radius:0;width:100vw;height:100dvh}}.product-search-picker{width:100%;min-width:0;position:relative}.product-search-picker>input{width:100%}.product-search-options{z-index:1600;border:1px solid var(--border);background:var(--surface);border-radius:7px;width:max(100%,430px);max-width:min(620px,100vw - 32px);max-height:320px;position:absolute;top:calc(100% + 4px);left:0;overflow:hidden auto;box-shadow:0 16px 38px #0f172a38}.product-search-option{border:0;border-bottom:1px solid var(--border);background:var(--surface);width:100%;min-height:46px;color:var(--text);cursor:pointer;text-align:left;justify-content:space-between;align-items:center;gap:12px;padding:7px 10px;display:flex}.product-search-option:last-child{border-bottom:0}.product-search-option:hover,.product-search-option.active{background:var(--subtle);box-shadow:inset 3px 0 #f97316}.product-search-option span{min-width:0}.product-search-option strong,.product-search-option small{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.product-search-option strong{font-size:12px}.product-search-option small{color:var(--muted);margin-top:2px;font-size:10px}.product-search-option>b{color:#c2410c;font-size:9px}.product-search-empty{color:var(--muted);text-align:center;padding:14px;font-size:11px}@media (width<=760px){.product-search-options{width:100%;max-width:100%}}.reports-hub-page,.report-viewer-page{gap:12px;width:min(1720px,100%);min-width:0;display:grid}.report-viewer-page>*{min-width:0;max-width:100%}.report-section{border:1px solid var(--border);background:var(--surface);border-radius:8px;gap:10px;padding:14px;display:grid;box-shadow:0 1px 3px #0f172a0a}.report-section>header{align-items:center;gap:10px;display:flex}.report-section>header>span{color:#c2410c;background:#fff7ed;border-radius:6px;place-items:center;width:30px;height:30px;font-weight:800;display:grid}.report-section h2,.report-section p{margin:0}.report-section h2{font-size:16px}.report-section p{color:var(--muted);margin-top:2px;font-size:11px}.report-card-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;display:grid}.report-card{border:1px solid var(--border);background:var(--surface);min-height:108px;color:var(--text);text-align:left;cursor:pointer;border-radius:7px;grid-template-rows:1fr auto;grid-template-columns:36px 1fr;gap:7px 10px;padding:12px;display:grid}.report-card:hover{border-color:#fb923c;transform:translateY(-1px);box-shadow:0 6px 18px #ea580c1a}.report-card-icon{background:var(--subtle);width:36px;height:36px;color:var(--text);border-radius:6px;place-items:center;font-size:10px;font-weight:900;display:grid}.report-card strong,.report-card small{display:block}.report-card strong{font-size:13px}.report-card small{color:var(--muted);margin-top:4px;font-size:10px;line-height:1.35}.report-card-action{color:#c2410c;grid-column:2;font-size:10px;font-weight:800}.report-link-row{flex-wrap:wrap;gap:8px;display:flex}.report-filter-surface{padding:10px}.compact-report-filters{align-items:end;gap:7px;display:flex;overflow-x:auto}.compact-report-filters .field{flex:1;min-width:128px;margin:0}.compact-report-filters .field.search{flex:1.5;min-width:210px}.compact-report-filters .field span{font-size:9px}.compact-report-filters input,.compact-report-filters select{min-width:0;height:34px}.compact-filter-actions{flex:none;gap:6px;display:flex}.compact-filter-actions .button{height:34px}.report-check{border:1px solid var(--border);border-radius:6px;align-items:center;gap:6px;min-width:max-content;height:34px;padding:0 9px;font-size:10px;font-weight:700;display:flex}.report-check input{width:15px;height:15px}.report-summary-strip{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:7px;display:grid}.report-summary-strip article{border:1px solid var(--border);background:var(--surface);border-radius:7px;padding:9px 11px}.report-summary-strip span,.report-summary-strip strong{display:block}.report-summary-strip span{color:var(--muted);text-transform:uppercase;font-size:9px}.report-summary-strip strong{margin-top:3px;font-size:15px}.report-results{min-width:0;max-width:100%;min-height:260px;overflow:hidden}.report-results .report-table-scroll{width:100%;max-width:100%;overflow:auto}.report-results th{white-space:nowrap}.report-results td.number{text-align:right;font-variant-numeric:tabular-nums}.report-results .table-status strong{color:#c2410c}.report-results-rentabilidad-item table{table-layout:fixed;width:100%;min-width:900px}.report-results-rentabilidad-item :is(th,td){text-overflow:ellipsis;overflow:hidden}.report-results-rentabilidad-item :is(.report-column-producto,.report-column-variante,.report-column-presentacion){overflow-wrap:anywhere;white-space:normal}.report-results-rentabilidad-item .report-column-codigo{width:78px}.report-results-rentabilidad-item .report-column-producto{width:19%}.report-results-rentabilidad-item :is(.report-column-variante,.report-column-presentacion){width:105px}.report-results-rentabilidad-item :is(.report-column-cantidad_vendida,.report-column-margen){width:82px}.report-results-rentabilidad-item :is(.report-column-precio_promedio,.report-column-descuento,.report-column-total_vendido,.report-column-costo_total,.report-column-utilidad){white-space:nowrap;width:102px}.report-print-context{display:none}@media (width<=1050px){.report-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.compact-report-filters{flex-wrap:wrap;overflow:visible}.compact-report-filters .field{flex:180px}}@media (width<=650px){.report-card-grid{grid-template-columns:1fr}.report-section{padding:10px}.compact-report-filters .field,.compact-report-filters .field.search{flex-basis:100%;min-width:100%}.compact-filter-actions{width:100%}.compact-filter-actions .button{flex:1}.report-results-rentabilidad-item table{min-width:820px}}@media print{.report-viewer-page>.page-header .page-actions,.report-filter-surface,.report-results .pagination,.sidebar,.topbar{display:none!important}.report-print-context{border-bottom:1px solid #111;gap:2px;padding:8px 0;display:grid}.report-print-context strong{font-size:16px}.report-print-context small{font-size:9px}.report-viewer-page{width:100%;padding:0}.report-viewer-page>.surface{box-shadow:none;border:0}.report-results table{min-width:0;font-size:8px}}.crm-page{gap:11px;display:grid}.crm-summary-strip{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;display:grid}.crm-summary-strip article{border:1px solid var(--border);background:var(--surface);border-radius:7px;padding:11px 13px;box-shadow:0 2px 7px #0f172a0a}.crm-summary-strip span,.crm-summary-strip strong{display:block}.crm-summary-strip span{color:var(--muted);text-transform:uppercase;font-size:9px}.crm-summary-strip strong{margin-top:4px;font-size:18px}.crm-shortcuts{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;display:grid}.crm-shortcuts button{text-align:left;border:1px solid var(--border);background:var(--surface);min-height:78px;color:var(--text);cursor:pointer;border-radius:7px;gap:5px;padding:12px;display:grid}.crm-shortcuts button:hover{border-color:#fb923c;transform:translateY(-1px);box-shadow:0 5px 16px #0f172a14}.crm-shortcuts strong{font-size:13px}.crm-shortcuts span{color:var(--muted);font-size:10px;line-height:1.35}.crm-table-section{overflow:hidden}.crm-table-section>header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;padding:11px 14px;display:flex}.crm-table-section>header h2,.crm-table-section>header small{margin:0}.crm-table-section>header h2{font-size:14px}.crm-table-section>header small{color:var(--muted)}.crm-table-section .table-status{border-bottom:1px solid var(--border);padding:9px 12px;font-size:10px}.crm-table-section table{min-width:980px}.crm-filter-bar{grid-template-columns:minmax(260px,1fr) 165px auto auto;align-items:end;gap:7px;padding:10px;display:grid}.crm-filter-bar.visits{grid-template-columns:minmax(220px,1fr) 160px 130px 135px 135px auto}.crm-filter-bar.reports{grid-template-columns:145px 145px minmax(180px,1fr) auto}.crm-filter-bar .field{margin:0}.crm-filter-bar input,.crm-filter-bar select{height:34px}.crm-filter-bar .field span{font-size:9px}.crm-modal{background:var(--surface);border-radius:8px;grid-template-rows:auto minmax(0,1fr) auto;width:min(1040px,100vw - 28px);max-height:calc(100dvh - 28px);display:grid;overflow:hidden;box-shadow:0 24px 80px #0f172a4d}.crm-modal>header,.crm-modal>footer{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:10px;padding:12px 16px;display:flex}.crm-modal>header h2,.crm-modal>header p{margin:0}.crm-modal>header p{color:var(--muted);margin-top:3px;font-size:10px}.crm-modal>.modal-body{background:var(--canvas);min-height:0;padding:13px 16px;overflow:auto}.crm-modal>footer{border-top:1px solid var(--border);border-bottom:0;justify-content:flex-end}.crm-form-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;display:grid}.crm-form-grid .wide{grid-column:span 2}.crm-form-grid .full{grid-column:1/-1}.crm-form-grid textarea{min-height:70px}.route-assignment-modal{height:min(760px,100dvh - 28px)}.route-assignment-modal>footer{justify-content:space-between}.crm-client-picker{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;display:grid}.crm-client-picker>label{border:1px solid var(--border);background:var(--surface);border-radius:6px;align-items:center;gap:9px;padding:9px;display:flex}.crm-client-picker input{width:16px;height:16px}.crm-client-picker span,.crm-client-picker strong,.crm-client-picker small{display:block}.crm-client-picker small{color:var(--muted);margin-top:2px;font-size:9px}.crm-field-list{border:1px solid var(--border);background:var(--surface);border-radius:7px;margin-top:12px}.crm-field-list>header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;padding:9px 11px;display:flex}.crm-field-list h3{margin:0;font-size:12px}.crm-field-row{border-bottom:1px solid #edf0f3;grid-template-columns:minmax(240px,1fr) 160px 115px auto;gap:7px;padding:7px 10px;display:grid}.crm-field-row:last-child{border-bottom:0}.crm-field-row input,.crm-field-row select{height:34px}.crm-required{align-items:center;gap:6px;font-size:10px;display:flex}.crm-required input{width:15px;height:15px}.crm-field-options{background:#fff7ed;border:1px solid #fed7aa;border-radius:6px;grid-column:1/-1;padding:8px 10px}.crm-field-options textarea{resize:vertical;min-height:78px}.crm-field-options small{color:#9a3412;font-size:10px}html[data-theme=dark] .crm-field-options{background:#2b1d16;border-color:#9a3412}html[data-theme=dark] .crm-field-options small{color:#fdba74}.visit-modal{width:min(1160px,100vw - 28px);height:min(880px,100dvh - 28px)}.crm-dynamic-form{border:1px solid var(--border);background:var(--surface);border-radius:7px;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:12px;padding:12px;display:grid}.crm-dynamic-form h3{grid-column:1/-1;margin:0;font-size:13px}.crm-dynamic-form .full{grid-column:1/-1}.gps-capture{background:#f0fdf4;border:1px solid #bbf7d0;border-radius:7px;justify-content:space-between;align-items:center;gap:10px;margin-top:10px;padding:10px;display:flex}.gps-capture strong,.gps-capture span{display:block}.gps-capture span{color:#166534;margin-top:3px;font-size:10px}.visit-detail-modal{height:min(790px,100dvh - 28px)}.crm-detail-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;display:grid}.crm-detail-grid article{border:1px solid var(--border);background:var(--surface);border-radius:6px;padding:10px}.crm-detail-grid span,.crm-detail-grid strong{display:block}.crm-detail-grid span{color:var(--muted);font-size:9px}.crm-detail-grid strong{margin-top:3px;font-size:12px}.crm-detail-block{margin-top:9px;padding:11px}.crm-detail-block h3{margin:0 0 7px;font-size:12px}.crm-detail-block p{margin:5px 0;font-size:11px}.crm-prospect-label{color:#9a3412;background:#ffedd5;border-radius:4px;width:max-content;margin-top:3px;padding:2px 6px;font-size:9px;font-weight:800;display:block}.crm-prospect-detail{background:#fff7ed;border-color:#fed7aa}.gps-links{gap:14px;display:flex}.gps-links a{color:#c2410c;font-weight:700}.status-badge.pendiente{color:#9a3412;background:#ffedd5}@media (width<=1050px){.crm-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}.crm-filter-bar,.crm-filter-bar.visits{grid-template-columns:repeat(3,minmax(0,1fr))}.crm-form-grid,.crm-dynamic-form,.crm-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=680px){.crm-shortcuts,.crm-client-picker,.crm-filter-bar,.crm-filter-bar.visits,.crm-filter-bar.reports,.crm-form-grid,.crm-dynamic-form,.crm-detail-grid{grid-template-columns:1fr}.crm-form-grid .wide,.crm-form-grid .full,.crm-dynamic-form h3,.crm-dynamic-form .full{grid-column:auto}.crm-modal{border-radius:0;width:100vw;height:100dvh;max-height:100dvh}.modal-backdrop{padding:0}.crm-field-row{grid-template-columns:1fr 1fr}.crm-field-options{grid-column:1/-1}.gps-capture{flex-direction:column;align-items:stretch}}@media print{.crm-report-page .page-header .page-actions,.crm-report-page>.surface:first-of-type,.crm-report-page .sidebar,.crm-report-page .topbar{display:none!important}.crm-report-page{width:100%;padding:0}.crm-report-page .surface{box-shadow:none;border:0}.crm-report-page table{min-width:0;font-size:9px}}.advanced-configuration-page{gap:14px;display:grid}.advanced-config-tabs{border-bottom:1px solid var(--border);align-items:center;gap:6px;padding:0 2px;display:flex;overflow-x:auto}.advanced-config-tabs button{color:var(--muted);font:inherit;white-space:nowrap;background:0 0;border:0;border-bottom:2px solid #0000;padding:10px 14px;font-weight:700}.advanced-config-tabs button.active{color:var(--accent);border-bottom-color:var(--accent)}.advanced-config-metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;display:grid}.advanced-config-metrics article{border:1px solid var(--border);background:var(--surface);border-radius:6px;gap:3px;padding:14px;display:grid}.advanced-config-metrics span,.advanced-config-metrics small{color:var(--muted)}.advanced-config-metrics strong{font-size:24px}.advanced-config-overview{padding:16px}.advanced-config-overview>header,.advanced-config-section>header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:12px;padding-bottom:12px;display:flex}.advanced-config-overview h2,.advanced-config-section h2{margin:0;font-size:18px}.advanced-config-overview p,.advanced-config-section p{color:var(--muted);margin:4px 0 0}.advanced-config-overview dl{background:var(--border);grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;margin:0;display:grid}.advanced-config-overview dl div{background:var(--surface);padding:11px}.advanced-config-overview dt{color:var(--muted);font-size:12px;font-weight:700}.advanced-config-overview dd{margin:4px 0 0;font-weight:700}.advanced-config-links{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;display:grid}.advanced-config-links button{text-align:left;background:var(--surface);border:1px solid var(--border);color:inherit;border-radius:6px;gap:5px;padding:13px;display:grid}.advanced-config-links button:hover{border-color:var(--accent)}.advanced-config-links span{color:var(--muted);font-size:12px}.advanced-config-section{padding:16px}.advanced-config-section table{border-collapse:collapse;width:100%}.advanced-config-section th,.advanced-config-section td{border-bottom:1px solid var(--border);text-align:left;vertical-align:middle;padding:10px}.advanced-config-section th{color:var(--muted);text-transform:uppercase;font-size:12px}.advanced-endpoint{text-overflow:ellipsis;white-space:nowrap;max-width:330px;overflow:hidden}.advanced-configuration-dialog{width:min(760px,100vw - 32px);max-height:calc(100vh - 32px);color:var(--text);background:var(--surface);border:0;border-radius:7px;padding:0}.advanced-configuration-dialog::backdrop{background:#0f172a94}.advanced-configuration-dialog form{grid-template-rows:auto minmax(0,1fr) auto;max-height:calc(100vh - 32px);display:grid}.advanced-configuration-dialog header,.advanced-configuration-dialog footer{border-bottom:1px solid var(--border);justify-content:space-between;align-items:flex-start;gap:12px;padding:15px 18px;display:flex}.advanced-configuration-dialog footer{border-bottom:0;border-top:1px solid var(--border);justify-content:flex-end}.advanced-configuration-dialog header h2{margin:0;font-size:20px}.advanced-configuration-dialog header p{color:var(--muted);margin:4px 0 0}.advanced-configuration-dialog header>button{background:0 0;border:0;font-size:20px}.advanced-dialog-body{padding:18px;overflow:auto}.advanced-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.advanced-form-grid .span-two{grid-column:1/-1}.advanced-form-note{background:var(--subtle);border-left:3px solid var(--accent);margin:0;padding:10px}.advanced-toggle-grid{flex-wrap:wrap;gap:14px;margin-top:14px;display:flex}.advanced-toggle-grid label,.advanced-check{align-items:center;gap:7px;font-size:13px;font-weight:700;display:flex}.advanced-form-grid textarea{resize:vertical}.button.compact{min-height:32px;padding:5px 9px}.empty-cell{color:var(--muted);text-align:center!important;padding:28px!important}@media (width<=900px){.advanced-config-metrics,.advanced-config-links,.advanced-config-overview dl{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=600px){.advanced-config-metrics,.advanced-config-links,.advanced-config-overview dl,.advanced-form-grid{grid-template-columns:1fr}.advanced-form-grid .span-two{grid-column:auto}.advanced-configuration-dialog{border-radius:0;width:100vw;max-height:100vh}.advanced-configuration-dialog form{max-height:100vh}}.prefactures-page{gap:10px;display:grid}.prefacture-filter-bar{grid-template-columns:minmax(210px,1.4fr) repeat(3,minmax(130px,.8fr)) 128px 128px auto auto;align-items:end;gap:7px;padding:10px;display:grid}.prefacture-filter-bar input,.prefacture-filter-bar select{height:34px;min-height:34px;font-size:11px}.prefacture-table-card{overflow:visible}.prefacture-table-card table{min-width:1300px}.prefacture-table-card td small{color:var(--muted);margin-top:2px;font-size:9px;display:block}.prefacture-table-card td.number{text-align:right}.prefacture-table-card .selection-cell{text-align:center;width:38px}.prefacture-table-card .selection-cell input{width:16px;height:16px}.prefacture-legend{gap:5px;display:flex}.missing-value{color:#dc2626;font-weight:800}.status-badge.lista,.status-badge.disponible,.status-badge.facturada{color:#166534;background:#dcfce7}.status-badge.recibida{color:#1d4ed8;background:#dbeafe}.status-badge.con_faltantes,.status-badge.parcial,.status-badge.facturada_parcial{color:#c2410c;background:#ffedd5}.status-badge.faltante,.status-badge.invalida,.status-badge.rechazada{color:#b91c1c;background:#fee2e2}.status-badge.procesando{color:#4338ca;background:#e0e7ff}.prefacture-detail-dialog{background:var(--surface);border:0;border-radius:8px;width:min(1240px,100vw - 24px);max-height:calc(100dvh - 24px);margin:auto;padding:0;overflow:hidden;box-shadow:0 24px 80px #0f172a52}.prefacture-detail-dialog::backdrop{background:#0f172a8c}.prefacture-detail-dialog .dialog-shell{grid-template-rows:auto minmax(0,1fr) auto;max-height:calc(100dvh - 24px);display:grid}.prefacture-detail-dialog header,.prefacture-detail-dialog footer{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;display:flex}.prefacture-detail-dialog footer{border-top:1px solid var(--border);border-bottom:0;justify-content:flex-end}.prefacture-detail-dialog header h2,.prefacture-detail-dialog header p{margin:0}.prefacture-detail-dialog header small{color:#ea580c;font-size:9px;font-weight:900}.prefacture-detail-dialog header p{color:var(--muted);margin-top:2px;font-size:11px}.prefacture-detail-dialog header>button{border:1px solid var(--border);background:var(--surface);cursor:pointer;border-radius:5px;width:32px;height:32px}.prefacture-detail-dialog .dialog-body{padding:12px 16px;overflow:auto}.prefacture-summary{grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;margin-bottom:10px;display:grid}.prefacture-summary>div{border:1px solid var(--border);background:var(--canvas);border-radius:6px;gap:2px;min-width:0;padding:8px 10px;display:grid}.prefacture-summary>div.warning{background:#fff7ed;border-color:#fed7aa}.prefacture-summary small{color:var(--muted);text-transform:uppercase;font-size:8px;font-weight:800}.prefacture-summary strong{text-overflow:ellipsis;white-space:nowrap;font-size:12px;overflow:hidden}.prefacture-detail-table{border:1px solid var(--border);border-radius:6px}.prefacture-detail-table table{min-width:1180px}.prefacture-detail-table th,.prefacture-detail-table td{padding:6px}.prefacture-detail-table tr.missing-line{background:#fff7ed}.prefacture-detail-table td small{color:#b45309;max-width:180px;margin-top:2px;font-size:9px;display:block}.missing-report{background:#fff7ed;border-left:3px solid #f97316;margin-top:9px;padding:9px 11px}.missing-report h3,.missing-report p{margin:0}.missing-report p{color:#9a3412;margin-top:3px;font-size:10px}.prefacture-detail-dialog{--surface:#171d24;--canvas:#202832;--subtle:#28323e;--border:#3b4755;--text:#f8fafc;--muted:#aeb9c7;color:var(--text)}.prefacture-detail-dialog .dialog-body,.prefacture-detail-dialog :is(table,thead,tbody,tr,td){background:var(--surface);color:var(--text)}.prefacture-detail-dialog th{background:var(--subtle);color:var(--text)}.prefacture-bulk-actions{border-left:3px solid #f97316;justify-content:space-between;align-items:center;gap:10px;padding:8px 10px;display:flex}.prefacture-bulk-actions>span{color:var(--muted);font-size:11px}.prefacture-bulk-actions>span strong{color:var(--text);font-size:14px}.prefacture-bulk-actions>div{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:6px;display:flex}.prefacture-bulk-actions .button{height:34px;min-height:34px}.prefacture-bulk-missing-dialog{z-index:4400;color:#f8fafc;background:#171d24;border:0;border-radius:8px;width:min(1380px,100vw - 24px);height:calc(100dvh - 24px);margin:auto;padding:0;position:fixed;inset:0;overflow:hidden;box-shadow:0 24px 90px #0f172a80}.prefacture-bulk-missing-dialog::backdrop{background:#0f172aad}.prefacture-bulk-missing-shell{grid-template-rows:auto minmax(0,1fr) auto;height:100%;display:grid}.prefacture-bulk-missing-shell>header,.prefacture-bulk-missing-shell>footer{border-bottom:1px solid #3b4755;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;display:flex}.prefacture-bulk-missing-shell>header h2,.prefacture-bulk-missing-shell>header p{margin:0}.prefacture-bulk-missing-shell>header p{color:#aeb9c7;margin-top:3px;font-size:10px}.prefacture-bulk-missing-shell>header small{color:#fb923c;font-size:9px;font-weight:900}.prefacture-bulk-missing-shell>header button{color:#f8fafc;background:#202832;border:1px solid #3b4755;border-radius:5px;place-items:center;width:32px;height:32px;display:grid}.prefacture-bulk-missing-shell>footer{border-top:1px solid #3b4755;border-bottom:0;justify-content:flex-end}.prefacture-bulk-missing-shell>footer>span{color:#aeb9c7;margin-right:auto}.prefacture-bulk-missing-body{background:#202832;min-height:0;padding:14px 16px;overflow:auto}.prefacture-missing-document{break-inside:avoid;background:#171d24;border:1px solid #3b4755;border-radius:6px;margin-bottom:12px;overflow:hidden}.prefacture-missing-document>header{border-bottom:1px solid #3b4755;justify-content:space-between;align-items:center;gap:12px;padding:8px 10px;display:flex}.prefacture-missing-document>header div,.prefacture-missing-document>header strong,.prefacture-missing-document>header span,.prefacture-missing-document>header small{display:block}.prefacture-missing-document>header span,.prefacture-missing-document>header small{color:#aeb9c7;margin-top:2px;font-size:9px}.prefacture-missing-document>header>div:last-child{text-align:right}.prefacture-missing-document table{color:#f8fafc;background:#171d24;min-width:940px}.prefacture-missing-document th{color:#f8fafc;background:#28323e}.prefacture-missing-document th,.prefacture-missing-document td{border-color:#3b4755}@media (width<=900px){.prefacture-filter-bar{grid-template-columns:repeat(2,minmax(0,1fr))}.prefacture-filter-bar .search{grid-column:1/-1}.prefacture-summary{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (width<=560px){.prefacture-filter-bar,.prefacture-summary{grid-template-columns:1fr}.prefacture-filter-bar .search{grid-column:auto}.prefacture-detail-dialog{border-radius:0;width:100vw;max-height:100dvh}.prefacture-detail-dialog .dialog-shell{max-height:100dvh}}.prefacture-warehouse-selector{border:1px solid var(--border);background:var(--canvas);border-radius:6px;gap:3px;min-width:0;padding:7px 9px;display:grid}.prefacture-warehouse-selector select{border:1px solid var(--border);background:var(--surface);width:100%;min-width:0;height:30px;color:var(--text);border-radius:5px;padding:3px 6px;font-size:11px}@media print{body.printing-prefacture-missing .app-shell>.sidebar,body.printing-prefacture-missing .topbar,body.printing-prefacture-missing .prefactures-page>:not(.prefacture-detail-dialog),body.printing-prefacture-missing .prefacture-detail-dialog>*>header,body.printing-prefacture-missing .prefacture-detail-dialog>*>footer{display:none!important}body.printing-prefacture-missing .app-shell{display:block}body.printing-prefacture-missing .prefacture-detail-dialog{width:100%;max-height:none;box-shadow:none;--surface:#fff;--canvas:#fff;--subtle:#f8fafc;--border:#dbe3ec;--text:#172033;--muted:#475569;border:0;display:block;position:static}body.printing-prefacture-missing .prefacture-detail-dialog .dialog-shell{max-height:none;display:block}body.printing-prefacture-missing .prefacture-detail-dialog .dialog-body{padding:0;overflow:visible}body.printing-prefacture-missing .prefacture-detail-table{overflow:visible}body.printing-prefacture-bulk-missing *{visibility:hidden!important}body.printing-prefacture-bulk-missing .prefacture-bulk-missing-dialog,body.printing-prefacture-bulk-missing .prefacture-bulk-missing-dialog *{visibility:visible!important}body.printing-prefacture-bulk-missing .prefacture-bulk-missing-dialog{color:#172033!important;width:100%!important;height:auto!important;box-shadow:none!important;background:#fff!important;border:0!important;border-radius:0!important;margin:0!important;display:block!important;position:absolute!important;inset:0!important}body.printing-prefacture-bulk-missing .prefacture-bulk-missing-shell{display:block!important}body.printing-prefacture-bulk-missing .prefacture-bulk-missing-shell>header,body.printing-prefacture-bulk-missing .prefacture-bulk-missing-shell>footer{display:none!important}body.printing-prefacture-bulk-missing .prefacture-bulk-missing-body{background:#fff!important;padding:0!important;overflow:visible!important}body.printing-prefacture-bulk-missing .prefacture-missing-document{color:#172033!important;background:#fff!important;border-color:#cbd5e1!important}body.printing-prefacture-bulk-missing .prefacture-missing-document>header,body.printing-prefacture-bulk-missing .prefacture-missing-document table,body.printing-prefacture-bulk-missing .prefacture-missing-document thead,body.printing-prefacture-bulk-missing .prefacture-missing-document tbody,body.printing-prefacture-bulk-missing .prefacture-missing-document tr,body.printing-prefacture-bulk-missing .prefacture-missing-document td{color:#172033!important;background:#fff!important}body.printing-prefacture-bulk-missing .prefacture-missing-document th{color:#9a3412!important;background:#fff7ed!important}body.printing-prefacture-bulk-missing .prefacture-missing-document table{font-size:9px;width:100%!important;min-width:0!important}}.invoice-groups-page{gap:10px;width:min(1720px,100%);display:grid}.invoice-group-filter-bar{grid-template-columns:minmax(230px,1.4fr) repeat(5,minmax(125px,.75fr)) auto auto;align-items:end;gap:7px;padding:10px;display:grid}.invoice-group-filter-bar .field{min-width:0;margin:0}.invoice-group-filter-bar input,.invoice-group-filter-bar select,.invoice-group-filter-bar .button{height:34px;min-height:34px;font-size:11px}.invoice-groups-page table{min-width:1240px}.invoice-groups-page td small{color:var(--muted);margin-top:2px;font-size:9px;display:block}.invoice-group-dialog,.invoice-group-detail-dialog{z-index:4100;background:var(--surface);color:var(--text);border:0;border-radius:8px;margin:auto;padding:0;position:fixed;inset:0;overflow:hidden;box-shadow:0 24px 90px #0f172a61}.invoice-group-dialog::backdrop,.invoice-group-detail-dialog::backdrop{background:#0f172a9e}.prefacture-batch-dialog{width:min(820px,100vw - 28px);height:min(720px,100dvh - 28px)}.prefacture-batch-list{border:1px solid var(--border);border-radius:6px;max-height:210px;margin-bottom:12px;display:grid;overflow:auto}.prefacture-batch-list>div{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;padding:8px 10px;display:flex}.prefacture-batch-list>div:last-child{border-bottom:0}.prefacture-batch-list span,.prefacture-batch-list strong,.prefacture-batch-list small{display:block}.prefacture-batch-list small{color:var(--muted);margin-top:2px;font-size:9px}.prefacture-batch-list>div>span:last-child{text-align:right}.prefacture-group-choice{margin-top:10px}.prefacture-group-results{border:1px solid var(--border);border-radius:6px;max-height:190px;margin-top:7px;display:grid;overflow:auto}.prefacture-group-results button{border:0;border-bottom:1px solid var(--border);background:var(--surface);color:var(--text);text-align:left;gap:2px;padding:8px 10px;display:grid}.prefacture-group-results button:last-child{border-bottom:0}.prefacture-group-results button.selected{background:var(--subtle);box-shadow:inset 3px 0 #f97316}.prefacture-group-results small{color:var(--muted)}.invoice-group-dialog{width:min(900px,100vw - 28px);max-height:calc(100dvh - 28px)}.invoice-group-dialog>form,.invoice-group-dialog>div{grid-template-rows:auto minmax(0,1fr) auto;max-height:calc(100dvh - 28px);display:grid}.invoice-group-dialog header,.invoice-group-dialog footer,.invoice-group-detail-dialog header,.invoice-group-detail-dialog footer{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;display:flex}.invoice-group-dialog header h2,.invoice-group-dialog header p,.invoice-group-detail-dialog header h2,.invoice-group-detail-dialog header p{margin:0}.invoice-group-dialog header p,.invoice-group-detail-dialog header p{color:var(--muted);margin-top:3px;font-size:10px}.invoice-group-dialog header small,.invoice-group-detail-dialog header small{color:#c2410c;font-size:9px;font-weight:900}.invoice-group-dialog header>button,.dialog-close{border:1px solid var(--border);background:var(--surface);width:32px;height:32px;color:var(--text);cursor:pointer;border-radius:5px;place-items:center;display:grid}.invoice-group-dialog .dialog-body{background:var(--canvas);min-height:0;padding:14px 16px;overflow:auto}.invoice-group-dialog footer,.invoice-group-detail-dialog footer{border-top:1px solid var(--border);border-bottom:0;justify-content:flex-end}.invoice-group-dialog footer>span{color:var(--muted);margin-right:auto;font-size:10px}.compact-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;display:grid}.compact-form-grid .full{grid-column:1/-1}.add-invoices-dialog{width:min(1260px,100vw - 28px);height:min(790px,100dvh - 28px)}.add-invoices-dialog>div{height:100%}.add-invoices-dialog table{min-width:1050px}.invoice-group-modal-filters{grid-template-columns:minmax(240px,1fr) minmax(180px,.6fr) auto;align-items:end;gap:7px;margin-bottom:10px;display:grid}.manage-invoices-dialog{width:min(1480px,100vw - 24px);height:min(860px,100dvh - 24px)}.manage-invoices-dialog>div{grid-template-rows:auto minmax(0,1fr) auto;height:100%;display:grid}.manage-invoices-dialog .dialog-body{grid-template-rows:auto auto auto minmax(0,1fr);min-height:0;display:grid;overflow:hidden}.invoice-group-assignment-filters{grid-template-columns:minmax(220px,1.3fr) repeat(5,minmax(130px,.7fr)) auto;align-items:end;gap:7px;display:grid}.invoice-group-filter-toggles{flex-wrap:wrap;grid-column:1/-1;gap:18px;padding:4px 2px;display:flex}.invoice-group-filter-toggles label{align-items:center;gap:7px;font-size:12px;font-weight:700;display:flex}.invoice-group-filter-toggles input{width:16px;height:16px}.invoice-group-status-legend{flex-wrap:wrap;gap:7px;padding:8px 0;display:flex}.invoice-group-status-legend span,.invoice-payment-chip,.available-label,.current-group-label{text-transform:capitalize;border-radius:999px;align-items:center;padding:4px 8px;font-size:10px;font-weight:800;display:inline-flex}.invoice-group-status-legend .available,.available-label{color:#166534;background:#dcfce7}.invoice-group-status-legend .pending,.invoice-payment-chip.pendiente{color:#92400e;background:#fef3c7}.invoice-group-status-legend .partial,.invoice-payment-chip.parcial{color:#1d4ed8;background:#dbeafe}.invoice-group-status-legend .paid,.invoice-payment-chip.pagada{color:#166534;background:#dcfce7}.invoice-group-status-legend .other,.current-group-label{color:#6d28d9;background:#ede9fe}.invoice-group-assignment-table{border:1px solid var(--border);border-radius:6px;min-height:0}.invoice-group-assignment-table table{min-width:1160px}.invoice-group-assignment-table tbody tr.invoice-in-other-group{background:color-mix(in srgb,#7c3aed 8%,var(--surface))}.invoice-group-assignment-table tbody tr.invoice-paid{background:color-mix(in srgb,#16a34a 6%,var(--surface))}.invoice-group-assignment-table tbody tr.invoice-partial{background:color-mix(in srgb,#2563eb 6%,var(--surface))}.invoice-group-assignment-table td small{color:var(--muted);margin-top:3px;display:block}.invoice-group-assignment-table .locked-reason{color:#b42318;max-width:260px}.invoice-reassignment-dialog{z-index:4300;background:var(--surface);width:min(680px,100vw - 28px);max-height:calc(100dvh - 28px);color:var(--text);border:0;border-radius:8px;margin:auto;padding:0;position:fixed;inset:0;box-shadow:0 0 0 100vmax #0f172aa3,0 24px 80px #0f172a61}.invoice-reassignment-dialog>form{grid-template-rows:auto minmax(0,1fr) auto;max-height:calc(100dvh - 28px);display:grid}.invoice-reassignment-dialog header,.invoice-reassignment-dialog footer{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;padding:14px 16px;display:flex}.invoice-reassignment-dialog header h3,.invoice-reassignment-dialog header p{margin:0}.invoice-reassignment-dialog header small{color:#c2410c;font-size:9px;font-weight:900}.invoice-reassignment-dialog header button{color:inherit;background:0 0;border:0;font-size:20px}.invoice-reassignment-dialog .dialog-body{gap:12px;padding:16px;display:grid;overflow:auto}.invoice-reassignment-dialog footer{border-top:1px solid var(--border);border-bottom:0;justify-content:flex-end}.invoice-reassignment-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;display:grid}.invoice-reassignment-summary span{border:1px solid var(--border);background:var(--canvas);color:var(--muted);border-radius:6px;gap:4px;padding:10px;font-size:10px;display:grid}.invoice-reassignment-summary strong{color:var(--text);font-size:12px}.reassignment-confirmation{background:color-mix(in srgb,#f97316 8%,var(--surface));border-left:3px solid #f97316;margin:0;padding:10px;font-size:12px;line-height:1.5}.invoice-group-detail-dialog{width:min(1500px,100vw - 24px);height:calc(100dvh - 24px)}.invoice-group-detail-shell{grid-template-rows:auto minmax(0,1fr) auto;height:100%;display:grid}.invoice-group-detail-body{background:var(--canvas);min-height:0;padding:12px 16px;overflow:auto}.invoice-group-detail-body section{border:1px solid var(--border);background:var(--surface);border-radius:7px;margin-top:10px;overflow:hidden}.invoice-group-detail-body section>h3,.invoice-group-detail-body section>header{border-bottom:1px solid var(--border);margin:0;padding:9px 11px;font-size:12px}.invoice-group-detail-body section>header{justify-content:space-between;align-items:center;gap:8px;display:flex}.invoice-group-detail-body section>header h3{margin:0;font-size:12px}.delivery-order-input{text-align:center;width:58px;height:28px}.invoice-group-detail-body table{min-width:1120px}.invoice-group-detail-body td small{color:var(--muted);margin-top:2px;font-size:9px;display:block}.invoice-group-summary{border:1px solid var(--border);background:var(--surface);border-radius:7px;grid-template-columns:repeat(auto-fit,minmax(125px,1fr));display:grid;overflow:hidden}.invoice-group-summary>span{border-right:1px solid var(--border);color:var(--muted);text-transform:uppercase;gap:2px;padding:8px 10px;font-size:9px;display:grid}.invoice-group-summary>span:last-child{border-right:0}.invoice-group-summary strong{color:var(--text);font-size:14px}.route-precheck-warning{color:#9a3412;background:#fff7ed;border-left:3px solid #f97316;margin:9px 0;padding:8px 10px;font-size:10px;font-weight:700}.route-precheck-warning.full{grid-column:1/-1}.invoice-group-history{display:grid}.invoice-group-history>div{border-bottom:1px solid #edf0f3;grid-template-columns:minmax(130px,.7fr) minmax(220px,1.4fr) minmax(260px,1fr);gap:10px;padding:8px 11px;display:grid}.invoice-group-history>div:last-child{border-bottom:0}.invoice-group-history span,.invoice-group-history small{font-size:10px}.invoice-group-history small{color:var(--muted)}.invoice-group-print-preview-dialog{z-index:4300;background:var(--surface);width:min(1120px,100vw - 34px);max-height:calc(100dvh - 34px);color:var(--text);border:0;border-radius:8px;margin:auto;padding:0;position:fixed;inset:0;overflow:hidden;box-shadow:0 24px 90px #0f172a6b}.invoice-group-print-preview-dialog::backdrop{background:#0f172a85}.invoice-group-print-preview{grid-template-rows:auto minmax(0,1fr) auto;max-height:calc(100dvh - 34px);display:grid}.invoice-group-print-preview>header,.invoice-group-print-preview>footer{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;display:flex}.invoice-group-print-preview>footer{border-top:1px solid var(--border);border-bottom:0;justify-content:flex-end}.invoice-group-print-preview h2,.invoice-group-print-preview p{margin:0}.invoice-group-print-preview p{color:var(--muted);margin-top:3px;font-size:11px}.invoice-group-print-preview small{color:#c2410c;font-weight:900}.invoice-group-print-preview>header button{border:1px solid var(--border);background:var(--surface);width:32px;height:32px;color:var(--text);cursor:pointer;border-radius:5px;place-items:center;display:grid}.invoice-group-print-sheet{background:#f8fafc;min-height:0;padding:16px;overflow:auto}.invoice-group-print-sheet table{border-collapse:collapse;background:#fff;width:100%;min-width:900px}.invoice-group-print-sheet th,.invoice-group-print-sheet td{text-align:left;border:1px solid #d7dde6;padding:8px 9px}.invoice-group-print-sheet th{color:#9a3412;text-transform:uppercase;background:#fff7ed;font-size:11px}.invoice-group-print-heading{background:#fff;border:1px solid #d7dde6;border-radius:6px;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:12px;padding:12px;display:flex}.invoice-group-print-heading div{gap:3px;display:grid}.invoice-group-print-heading strong{font-size:18px}.invoice-group-print-heading span{color:#475569;font-size:12px}.precheck-dialog{width:min(860px,100vw - 28px)}.disabled-row{opacity:.55;background:var(--canvas)}.inline-actions{align-items:center;gap:6px;display:flex}.invoice-group-assignment-dialog{width:min(760px,100vw - 28px);height:min(650px,100dvh - 28px)}.invoice-group-assignment-dialog>div{height:100%}.invoice-group-picker{gap:6px;margin-top:10px;display:grid}.invoice-group-picker>label{border:1px solid var(--border);background:var(--surface);cursor:pointer;border-radius:6px;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px;display:grid}.invoice-group-picker>label.selected{background:#fff7ed;border-color:#f97316}.invoice-group-picker input{width:16px;height:16px}.invoice-group-picker span,.invoice-group-picker strong,.invoice-group-picker small{display:block}.invoice-group-picker small{color:var(--muted);margin-top:2px;font-size:9px}.invoice-group-picker>label>span:last-child{text-align:right}.route-client-search{margin:0 0 10px}.route-client-search input{height:34px}@media (width<=1180px){.invoice-group-filter-bar{grid-template-columns:repeat(4,minmax(0,1fr))}.invoice-group-filter-bar .search{grid-column:span 2}.invoice-group-history>div{grid-template-columns:1fr}}@media (width<=1100px){.invoice-group-assignment-filters{grid-template-columns:repeat(3,minmax(150px,1fr))}.invoice-group-assignment-filters .search{grid-column:span 2}}@media (width<=680px){.invoice-group-filter-bar,.compact-form-grid,.invoice-group-modal-filters,.invoice-group-assignment-filters{grid-template-columns:1fr}.invoice-group-filter-bar .search,.compact-form-grid .full,.invoice-group-assignment-filters .search{grid-column:auto}.invoice-group-dialog,.invoice-group-detail-dialog,.manage-invoices-dialog{border-radius:0;width:100vw;height:100dvh;max-height:100dvh}.invoice-group-dialog>form,.invoice-group-dialog>div{max-height:100dvh}.invoice-group-detail-dialog header{flex-direction:column;align-items:flex-start}.inline-actions{flex-wrap:wrap;width:100%}.invoice-group-picker>label{grid-template-columns:auto minmax(0,1fr)}.invoice-group-picker>label>span:last-child{text-align:left;grid-column:2}.invoice-reassignment-summary{grid-template-columns:1fr}}@media print{.invoice-group-detail-dialog>*>header,.invoice-group-detail-dialog>*>footer,.invoice-group-detail-dialog .route-precheck-warning,.invoice-group-detail-dialog .action-trigger{display:none!important}.invoice-group-detail-dialog{width:100%;height:auto;box-shadow:none;border:0;display:block;position:static}.invoice-group-detail-body{background:var(--surface);padding:0;overflow:visible}.invoice-group-detail-body section{break-inside:avoid}body.printing-invoice-group-clients .invoice-group-summary,body.printing-invoice-group-clients .invoice-group-products-section,body.printing-invoice-group-clients .invoice-group-history-section{display:none!important}body.printing-invoice-group-clients .invoice-group-client-list{display:block!important}body.printing-invoice-group-clients .delivery-order-input{background:0 0;border:0}body.printing-invoice-group-preview-clients .invoice-group-detail-shell>header,body.printing-invoice-group-preview-clients .invoice-group-detail-shell>.invoice-group-detail-body,body.printing-invoice-group-preview-clients .invoice-group-detail-shell>footer,body.printing-invoice-group-preview-invoices .invoice-group-detail-shell>header,body.printing-invoice-group-preview-invoices .invoice-group-detail-shell>.invoice-group-detail-body,body.printing-invoice-group-preview-invoices .invoice-group-detail-shell>footer{display:none!important}body.printing-invoice-group-preview-clients .invoice-group-print-preview-dialog,body.printing-invoice-group-preview-invoices .invoice-group-print-preview-dialog{width:100%!important;max-height:none!important;box-shadow:none!important;border:0!important;display:block!important;position:static!important}body.printing-invoice-group-preview-clients .invoice-group-print-preview,body.printing-invoice-group-preview-invoices .invoice-group-print-preview{max-height:none!important;display:block!important}body.printing-invoice-group-preview-clients .invoice-group-print-preview>header,body.printing-invoice-group-preview-clients .invoice-group-print-preview>footer,body.printing-invoice-group-preview-invoices .invoice-group-print-preview>header,body.printing-invoice-group-preview-invoices .invoice-group-print-preview>footer{display:none!important}body.printing-invoice-group-preview-clients .invoice-group-print-sheet,body.printing-invoice-group-preview-invoices .invoice-group-print-sheet{background:#fff!important;padding:0!important;overflow:visible!important}body.printing-invoice-group-preview-clients .invoice-group-print-sheet table,body.printing-invoice-group-preview-invoices .invoice-group-print-sheet table{font-size:10px;min-width:0!important}}.purchase-classic-dialog{width:min(1500px,100vw - 20px);height:calc(100dvh - 20px);max-height:none}.purchase-classic-dialog>form{grid-template-rows:auto minmax(0,1fr) auto}.purchase-classic-title{padding:10px 14px!important}.purchase-classic-title>div{align-items:center;gap:10px;display:flex}.purchase-classic-mark{color:#fff;background:#ff5a00;border-radius:7px;place-items:center;width:38px;height:38px;font-size:20px;font-weight:900;display:grid}.purchase-classic-title h2{font-size:22px}.purchase-classic-body{background:var(--surface);grid-template-rows:auto auto minmax(0,1fr) auto;min-height:0;padding:0;display:grid;overflow:hidden}.purchase-classic-body>section{background:var(--surface);border:0;border-bottom:1px solid #d8dee8;border-radius:0;min-width:0;margin:0;padding:8px 12px}.purchase-classic-section-title{color:#c2410c;text-transform:uppercase;justify-content:space-between;align-items:center;min-height:24px;margin-bottom:5px;font-size:12px;display:flex}.purchase-classic-section-title .button{text-transform:none;height:30px;padding:4px 10px}.purchase-classic-header-grid{grid-template-columns:minmax(160px,1fr) minmax(140px,.85fr) 145px minmax(230px,1.45fr) 120px 145px;gap:7px;display:grid}.purchase-classic-header-grid .notes{grid-column:1/-1}.purchase-classic-header-grid .field span,.purchase-classic-add .field span,.purchase-classic-footer .field span{font-size:10px}.purchase-classic-header-grid input,.purchase-classic-header-grid select,.purchase-classic-add input,.purchase-classic-add select{height:34px}.purchase-document-picker{border:1px dashed var(--border);background:var(--canvas);border-radius:6px;grid-column:1/-1;align-items:center;gap:8px;min-width:0;padding:7px 8px;display:flex}.purchase-document-picker>div:first-child{min-width:190px;display:grid}.purchase-document-picker small,.purchase-document-picker em{color:var(--muted);font-size:10px}.purchase-document-picker em{font-style:normal}.purchase-document-selection{flex-wrap:wrap;flex:1;gap:5px;min-width:0;display:flex!important}.purchase-document-selection span{border:1px solid var(--border);background:var(--surface);text-overflow:ellipsis;white-space:nowrap;border-radius:4px;align-items:center;gap:5px;max-width:230px;padding:4px 6px;font-size:10px;display:flex;overflow:hidden}.purchase-document-selection span button{background:var(--subtle);width:18px;height:18px;color:var(--text);cursor:pointer;border:0;border-radius:50%;padding:0}.purchase-document-picker .inline-error{margin:0}.purchase-classic-add .purchase-product-add-grid{grid-template-columns:minmax(280px,1.8fr) minmax(150px,1fr) minmax(150px,1fr) 100px minmax(175px,1fr) 105px;align-items:end;gap:7px;display:grid}.purchase-classic-add .add-line{height:34px}.purchase-classic-add .compact-message{margin:6px 0 0;padding:6px 9px}.purchase-classic-detail{min-height:0;display:flex;border-bottom:0!important;padding:0!important}.purchase-classic-table-scroll{width:100%;min-height:0;overflow:auto}.purchase-classic-detail table{border-collapse:collapse;width:100%;min-width:1160px}.purchase-classic-detail thead{z-index:2;position:sticky;top:0}.purchase-classic-detail th{color:#9a3412;text-transform:uppercase;background:#fff4ec;padding:8px;font-size:11px}.purchase-classic-detail td{border-bottom:1px solid #e5e7eb;height:43px;padding:6px 8px;font-size:12px}.purchase-classic-detail tbody tr:nth-child(2n){background:var(--subtle)}.purchase-empty-detail{color:var(--muted);text-align:center;height:110px!important}.purchase-line-actions{gap:4px;display:flex}.price-update-ready{color:#027a48;margin-top:2px;font-size:10px;font-weight:800;display:block}.purchase-classic-error{max-width:520px;position:absolute;bottom:70px;right:18px}.purchase-classic-footer{min-height:66px;gap:9px!important;padding:8px 12px!important;display:flex!important}.purchase-classic-footer .field{width:110px}.purchase-classic-footer .field input{height:34px}.purchase-row-count{color:#c2410c;margin-right:auto;font-size:12px;font-weight:800}.purchase-total-box{border:1px solid #d8dee8;border-radius:6px;flex-direction:column;align-items:flex-end;min-width:135px;padding:5px 10px;display:flex}.purchase-total-box small{font-size:10px;font-weight:700}.purchase-total-box strong{font-size:17px}.purchase-total-box.grand{background:#fff7ed;border-color:#ffb27e;min-width:175px}.purchase-total-box.grand strong{color:#ea580c;font-size:22px}.purchase-price-dialog{z-index:4200;width:min(650px,100vw - 24px)}.purchase-price-summary{grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:12px;display:grid}.purchase-price-summary>div{background:var(--canvas);border:1px solid #d8dee8;border-radius:6px;flex-direction:column;padding:10px;display:flex}.purchase-price-summary small{color:var(--muted)}.purchase-price-summary strong{margin-top:3px;font-size:17px}.purchase-price-summary>div:nth-child(2) strong{color:#c2410c}.purchase-price-help{color:var(--muted);margin:8px 0 0;font-size:11px}.purchase-all-prices-dialog{width:min(980px,100vw - 24px)}.purchase-all-prices-body{min-height:0;overflow:auto}.purchase-all-prices-table{border:1px solid #d8dee8;border-radius:6px;overflow:auto}.purchase-all-prices-table table{border-collapse:collapse;width:100%;min-width:780px}.purchase-all-prices-table th{color:#9a3412;text-align:left;text-transform:uppercase;background:#fff4ec;padding:8px;font-size:10px}.purchase-all-prices-table td{border-top:1px solid #e5e7eb;padding:7px;font-size:12px}.purchase-all-prices-table input{width:125px;height:34px}.purchase-product-selection-dialog .purchase-selection-option{grid-template-columns:18px minmax(220px,1fr) 105px}.purchase-product-selection-dialog .availability-choice-status{grid-column:auto}@media (width<=1100px){.purchase-classic-header-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.purchase-classic-header-grid .notes{grid-column:span 3}.purchase-classic-add .purchase-product-add-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (width<=700px){.purchase-classic-header-grid,.purchase-classic-add .purchase-product-add-grid{grid-template-columns:1fr}.purchase-classic-header-grid .notes,.purchase-document-picker{grid-column:auto}.purchase-document-picker{flex-direction:column;align-items:stretch}.purchase-classic-body{grid-template-rows:auto auto minmax(260px,1fr);overflow:auto}.purchase-classic-footer{align-items:stretch!important}.purchase-classic-footer .field,.purchase-total-box{width:calc(50% - 5px);min-width:0}.purchase-row-count{width:100%}.purchase-price-summary,.purchase-attachment-list{grid-template-columns:1fr}}@media screen{html[data-theme=dark] .app-content,html[data-theme=dark] .page-content,html[data-theme=dark] .module-page,html[data-theme=dark] .login-page,html[data-theme=dark] .platform-page{background:var(--canvas);color:var(--text)}html[data-theme=dark] :is(.login-panel,.topbar,.surface,.platform-company-row,.general-configuration-hero,.general-configuration-sections article,.action-menu,.table-scroll,.accounting-tabs,.accounting-module-card,.inventory-summary-strip,.accounting-summary-strip,.invoice-group-summary,.purchase-classic-body,.purchase-classic-body>section,.purchase-classic-footer),html[data-theme=dark] dialog,html[data-theme=dark] :is([class$=-dialog],[class$=-modal],[class*=-dialog\ ],[class*=-modal\ ]){border-color:var(--border);background:var(--surface);color:var(--text)}html[data-theme=dark] dialog :is(form,header,footer),html[data-theme=dark] :is(.dialog-header,.dialog-body,.modal-body,[class$=-dialog-body],[class$=-detail-body],[class$=-toolbar],[class$=-actions]){border-color:var(--border);background-color:var(--surface);color:var(--text)}html[data-theme=dark] :is(input,select,textarea){border-color:var(--border-strong);background:var(--surface-elevated);color:var(--text)}html[data-theme=dark] :is(input,textarea)::placeholder{color:#7f8994}html[data-theme=dark] :is(.field,.checkbox-field,.topbar-identity,.page-header,dt,dd,td){color:var(--text)}html[data-theme=dark] :is(.field>span,.login-brand small,.login-heading p,.login-note,.platform-header p,.platform-company-row small,.page-header p,.topbar span,.muted,td small,.table-status,.pagination,.general-configuration-hero p,.general-configuration-hero>small){color:var(--muted)}html[data-theme=dark] :is(th,.table-scroll th){border-color:var(--border);background:var(--subtle);color:var(--text-soft)}html[data-theme=dark] :is(td,tbody tr,.table-scroll,.table-scroll table){border-color:var(--border)}html[data-theme=dark] tbody tr{background:var(--surface)}html[data-theme=dark] tbody tr:nth-child(2n){background:#1d2227}html[data-theme=dark] :is(.button.secondary,.action-trigger,.action-menu button,.dialog-close,dialog header>button){border-color:var(--border-strong);background:var(--surface-elevated);color:var(--text)}html[data-theme=dark] :is(.button.secondary,.action-menu button):hover:not(:disabled){color:#fdba74;background:#30241d;border-color:#f97316}html[data-theme=dark] :is([class$=-summary]>div,[class$=-summary]>article,[class$=-summary-strip]>div,[class$=-meta]>div,[class$=-grid]>article):not(.success):not(.warning):not(.danger){border-color:var(--border);background:var(--surface-elevated);color:var(--text)}html[data-theme=dark] .purchase-classic-detail th{color:#fdba74;background:#30241d}html[data-theme=dark] .purchase-classic-detail tbody tr:nth-child(2n){background:#1d2227}html[data-theme=dark] .purchase-classic-detail td,html[data-theme=dark] .general-configuration-sections dl>div{border-color:var(--border)}html[data-theme=dark] :is(.billing-workspace,.billing-focus .billing-workspace){background:var(--canvas);color:var(--text)}html[data-theme=dark] :is(.billing-focus .billing-workspace>form,.billing-toolbar,.billing-focus .billing-toolbar,.classic-document-main,.classic-document-main .billing-panel,.billing-focus .product-entry-panel,.invoice-detail-panel,.billing-focus .billing-bottom-row,.invoice-summary-horizontal>div,.billing-preview,.invoice-detail-dialog){border-color:var(--border);background:var(--surface);color:var(--text)}html[data-theme=dark] :is(.product-entry-grid>.field,.classic-add-cell){background:var(--surface-elevated)}html[data-theme=dark] .billing-detail-table thead th{color:#fdba74;background:linear-gradient(#30241d 0%,#261f1b 100%);border-color:#6f4631;box-shadow:inset 0 -1px #f973164d,0 3px 9px #0000002e}html[data-theme=dark] .billing-detail-table tbody td{border-color:var(--border);background:var(--surface);color:var(--text)}html[data-theme=dark] .billing-detail-table tbody tr:nth-child(2n) td{background:var(--surface-elevated)}html[data-theme=dark] .billing-focus .notes-panel{border-color:var(--border)}html[data-theme=dark] .credit-strip>div{border-color:var(--border);background:var(--surface-elevated);color:var(--text)}html[data-theme=dark] .credit-strip>div:nth-child(3){color:#86efac;background:#173222;border-color:#2f6f49}html[data-theme=dark] :is(.invoice-summary-horizontal .grand-total,.line-total){background:#30241d;border-color:#7c4a2d!important}html[data-theme=dark] .theme-switch-track>span{background:#f8fafc}html[data-theme=dark] :is(.login-brand,.login-note){border-color:var(--border)}html[data-theme=dark] .auth-link{color:#60a5fa}}.backup-management-page{gap:14px;display:grid}.backup-security-note{color:#1e3a5f;background:#eff6ff;border:1px solid #bfdbfe;border-radius:6px;align-items:center;gap:14px;min-height:52px;padding:10px 14px;display:flex}.backup-security-note strong{white-space:nowrap}.backup-security-note span{color:#475569;font-size:13px}.backup-metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;display:grid}.backup-metrics article{border:1px solid var(--border);background:var(--surface);border-radius:6px;gap:4px;min-height:70px;padding:11px 13px;display:grid}.backup-metrics span{color:var(--muted);font-size:12px}.backup-metrics strong{color:var(--text-strong);font-size:21px}.backup-history>header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;padding:13px 14px;display:flex}.backup-history>header h2,.backup-history>header p{margin:0}.backup-history>header p{color:var(--muted);margin-top:3px;font-size:12px}.backup-history td small{max-width:260px;color:var(--muted);text-overflow:ellipsis;white-space:nowrap;margin-top:3px;font-size:11px;display:block;overflow:hidden}.backup-history code{color:var(--text-soft);font-size:11px}.backup-row-error{max-width:220px!important;color:var(--danger,#b91c1c)!important;white-space:normal!important}.system-reset-page{gap:14px;display:grid}.reset-danger-note{color:#7f1d1d;background:#fff1f2;border:1px solid #fecaca;border-radius:6px;align-items:center;gap:14px;padding:11px 14px;display:flex}.reset-danger-note span{color:#991b1b;font-size:13px}.reset-options>header,.reset-preview>header,.reset-history>header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;padding:13px 14px;display:flex}.reset-options h2,.reset-options p,.reset-preview h2,.reset-preview p,.reset-history h2,.reset-history p{margin:0}.reset-options p,.reset-preview p,.reset-history p{color:var(--muted);margin-top:3px;font-size:12px}.reset-area-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:14px;display:grid}.reset-area-option,.reset-full-option{border:1px solid var(--border);background:var(--surface);border-radius:5px;align-items:center;gap:9px;min-height:38px;padding:8px 10px;font-size:13px;display:flex}.reset-presets{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:0 14px 14px;display:grid}.reset-protected-data{color:#166534;background:#f0fdf4;border:1px solid #bbf7d0;border-radius:5px;gap:3px;margin:0 14px 14px;padding:9px 11px;font-size:13px;display:grid}.reset-protected-data span{color:#3f6212;font-size:12px}.reset-full-option span{gap:2px;display:grid}.reset-full-option small{color:var(--muted)}.reset-options>footer,.reset-preview>footer{border-top:1px solid var(--border);justify-content:flex-end;gap:8px;padding:12px 14px;display:flex}.reset-code{color:#c2410c;letter-spacing:3px;background:#fff7ed;border:1px solid #fdba74;border-radius:5px;padding:7px 12px;font-size:22px}.reset-preview-table{max-height:220px}.reset-confirm-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:14px;display:grid}.reset-history td small{margin-top:3px;display:block}@media (width<=900px){.reset-area-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.reset-presets,.reset-confirm-grid{grid-template-columns:1fr}}@media (width<=560px){.reset-area-grid{grid-template-columns:1fr}.reset-danger-note{flex-direction:column;align-items:flex-start}}html[data-theme=dark] .reset-danger-note{color:#fecaca;background:#321b1f;border-color:#7f1d1d}html[data-theme=dark] .reset-danger-note span{color:#fca5a5}html[data-theme=dark] .reset-protected-data{color:#bbf7d0;background:#14271d;border-color:#166534}html[data-theme=dark] .reset-protected-data span{color:#86efac}.backup-status{border:1px solid var(--border);background:var(--subtle);min-height:24px;color:var(--text-soft);border-radius:999px;align-items:center;padding:2px 8px;font-size:11px;font-weight:700;display:inline-flex}.backup-status.completado,.backup-status.completada{color:#166534;background:#f0fdf4;border-color:#bbf7d0}.backup-status.procesando,.backup-status.pendiente,.backup-status.autorizada{color:#9a3412;background:#fff7ed;border-color:#fed7aa}.backup-status.fallido,.backup-status.cancelada{color:#991b1b;background:#fef2f2;border-color:#fecaca}html[data-theme=dark] .backup-status.completado,html[data-theme=dark] .backup-status.completada{color:#86efac;background:#173222;border-color:#2f6f49}html[data-theme=dark] .backup-status.procesando,html[data-theme=dark] .backup-status.pendiente,html[data-theme=dark] .backup-status.autorizada{color:#fdba74;background:#30241d;border-color:#7c4a2d}html[data-theme=dark] .backup-status.fallido,html[data-theme=dark] .backup-status.cancelada{color:#fca5a5;background:#351919;border-color:#7f1d1d}.backup-history .table-footer{border-top:1px solid var(--border);color:var(--muted);justify-content:space-between;align-items:center;gap:12px;padding:10px 14px;font-size:12px;display:flex}.backup-history .table-footer>div,.backup-confirm-dialog>footer{gap:8px;display:flex}.backup-confirm-dialog{width:min(620px,100vw - 32px)}.backup-confirm-dialog>header,.backup-confirm-dialog>footer{justify-content:space-between;align-items:center;gap:12px;padding:14px 16px;display:flex}.backup-confirm-dialog>header{border-bottom:1px solid var(--border)}.backup-confirm-dialog>footer{border-top:1px solid var(--border);justify-content:flex-end}.backup-confirm-dialog h2,.backup-confirm-dialog p{margin:0}.backup-confirm-dialog header p{color:var(--muted);margin-top:3px;font-size:12px}.backup-confirm-content{padding:16px}.backup-confirm-content ul{margin:12px 0;padding-left:22px}.restore-history{border-color:#fdba74}.restore-confirm-content{gap:14px;display:grid}.restore-target{border:1px solid var(--border);background:var(--subtle);border-radius:6px;gap:4px;padding:10px 12px;display:grid}.restore-target span{color:var(--muted);font-size:12px}.restore-target code{color:var(--text-soft);text-overflow:ellipsis;white-space:nowrap;font-size:11px;overflow:hidden}.restore-warning{color:#9a3412;background:#fff7ed;border-left:3px solid #ea580c;padding:10px 12px;font-size:13px}html[data-theme=dark] .restore-warning{color:#fdba74;background:#30241d}html[data-theme=dark] .backup-security-note{color:#bfdbfe;background:#172a3b;border-color:#315b82}html[data-theme=dark] .backup-security-note span{color:#cbd5e1}@media (width<=900px){.backup-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=560px){.backup-security-note{flex-direction:column;align-items:flex-start;gap:4px}.backup-metrics{grid-template-columns:1fr}}@media print{:root,:root[data-theme=dark]{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--canvas:#fff;--surface:#fff;--surface-elevated:#fff;--subtle:#f1f5f9;--text:#111;--text-strong:#111;--text-soft:#334155;--muted:#64748b;--border:#d7dde5;--border-strong:#b8c1cc}}.presentation-editor-row.price-types-row{grid-template-columns:minmax(145px,1.25fr) minmax(110px,.9fr) 100px 125px minmax(135px,1fr);align-items:end}.presentation-price-trigger{gap:4px;display:grid}.presentation-price-trigger>span{color:var(--muted);font-size:12px;font-weight:700}.presentation-price-trigger .button{justify-content:space-between}.presentation-price-trigger b{background:var(--accent);color:#fff;border-radius:999px;min-width:22px;padding:1px 6px}.presentation-price-trigger small{color:var(--muted)}.product-prices-dialog{background:var(--surface);width:min(900px,100vw - 28px);max-height:calc(100dvh - 28px);color:var(--text);border:0;border-radius:8px;padding:0;overflow:hidden;box-shadow:0 24px 80px #0f172a4d}.product-prices-dialog::backdrop{background:#0f172a8c}.product-prices-dialog header,.product-prices-dialog footer{border-bottom:1px solid var(--border);justify-content:space-between;align-items:flex-start;gap:14px;padding:15px 18px;display:flex}.product-prices-dialog footer{border:0;border-top:1px solid var(--border);justify-content:flex-end}.product-prices-dialog header h2,.product-prices-dialog header p{margin:0}.product-prices-dialog header p{color:var(--muted);margin-top:4px}.product-prices-dialog header>button{color:inherit;background:0 0;border:0;font-size:20px}.product-prices-body{max-height:calc(100dvh - 180px);padding:16px 18px;overflow:auto}.price-variant-selector{max-width:360px;margin-bottom:13px}.product-price-table table{border-collapse:collapse;width:100%}.product-price-table th,.product-price-table td{border-bottom:1px solid var(--border);text-align:left;padding:9px}.product-price-table td:first-child{display:grid}.product-price-table td:first-child small{color:var(--muted)}.product-price-table input{border:1px solid var(--border);background:var(--surface);width:100%;min-height:36px;color:var(--text);border-radius:5px;padding:6px 8px}.price-warning{color:#b91c1c;font-weight:800}.price-configured{color:#15803d;font-weight:800}.price-empty{color:var(--muted)}.product-price-note{color:var(--muted);font-size:12px}.price-types-page{gap:14px;display:grid}.price-types-surface{padding:0;position:relative}.price-types-surface table{border-collapse:collapse;width:100%}.price-types-surface th,.price-types-surface td{text-align:left;border-bottom:1px solid var(--border);padding:10px 12px}.price-types-surface th{color:var(--muted);text-transform:uppercase;font-size:12px}.default-price-badge{color:#c2410c;background:#fff7ed;border-radius:999px;width:max-content;margin-top:3px;padding:2px 7px;font-weight:800;display:block}@media (width<=1050px){.presentation-editor-row.price-types-row{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (width<=700px){.presentation-editor-row.price-types-row{grid-template-columns:1fr}.product-prices-dialog{border-radius:0;width:100vw;max-height:100dvh}.product-price-table{overflow:auto}}.inventory-kardex-page,.expense-page,.reports-hub-page,.report-viewer-page,.accounting-report-page,.organization-page{width:min(1500px,100%);min-width:0}.organization-page{margin:0 auto;padding:16px}.inventory-kardex-page>.page-header,.expense-page>.page-header,.reports-hub-page>.page-header,.report-viewer-page>.page-header,.accounting-report-page>.page-header,.organization-page>.page-header{margin-bottom:8px}.inventory-kardex-page>.page-header h1,.expense-page>.page-header h1,.reports-hub-page>.page-header h1,.report-viewer-page>.page-header h1,.accounting-report-page>.page-header h1,.organization-page>.page-header h1{font-size:23px}.kardex-table-card table,.expense-list table{min-width:1160px}.report-results table{min-width:960px}.accounting-report-page .surface table{min-width:900px}.organization-table table{border-collapse:collapse;width:100%;min-width:900px}.kardex-table-card th,.kardex-table-card td,.expense-list th,.expense-list td,.report-results th,.report-results td,.accounting-report-page th,.accounting-report-page td,.organization-table th,.organization-table td{padding:5px 6px;font-size:11px}.kardex-table-card .table-scroll,.expense-list .table-scroll,.report-results .table-scroll,.accounting-report-page .table-scroll,.organization-table .table-wrap{max-height:calc(100dvh - 300px);overflow:auto}.reports-hub-page,.report-viewer-page{gap:9px}.report-results{min-height:220px}@media (width<=760px){.organization-page{padding:12px}.kardex-table-card .table-scroll,.expense-list .table-scroll,.report-results .table-scroll,.accounting-report-page .table-scroll,.organization-table .table-wrap{max-height:none}}.kardex-document-link{appearance:none;cursor:pointer;font:inherit;text-align:left;background:0 0;border:0;padding:0}.kardex-cancelled-badge{color:#991b1b;background:#fee2e2;border-radius:4px;margin:3px 0 0 5px;padding:2px 5px;font-size:8px;font-weight:900;display:inline-flex}.kardex-row-selected td{background:color-mix(in srgb,var(--accent) 8%,var(--surface))}.kardex-trace-backdrop{z-index:1200;background:#03081080;justify-content:flex-end;display:flex;position:fixed;inset:0}.kardex-trace-drawer{border-left:1px solid var(--border);background:var(--surface);grid-template-rows:auto minmax(0,1fr) auto;width:min(620px,100vw);height:100dvh;display:grid;box-shadow:-18px 0 38px #00000038}.kardex-trace-header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;padding:15px 18px;display:flex}.kardex-trace-header small{color:var(--muted);text-transform:uppercase;font-size:10px;font-weight:800}.kardex-trace-header h2{margin:3px 0 0;font-size:19px}.kardex-trace-content{overflow:auto}.kardex-trace-status{border-bottom:1px solid var(--border);align-items:center;gap:10px;padding:12px 18px;display:flex}.kardex-trace-status>span:last-child{color:var(--muted);margin-left:auto;font-size:11px}.kardex-trace-warning{color:#92400e;background:#fffbeb;border-bottom:1px solid #f59e0b;margin:0;padding:10px 18px;font-size:11px}.kardex-trace-section{border-bottom:1px solid var(--border);padding:14px 18px}.kardex-trace-section h3{margin:0 0 10px;font-size:13px}.kardex-trace-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px;margin:0;display:grid}.kardex-trace-grid div{min-width:0}.kardex-trace-grid dt{color:var(--muted);text-transform:uppercase;font-size:9px;font-weight:800}.kardex-trace-grid dd{overflow-wrap:anywhere;margin:2px 0 0;font-size:12px;font-weight:700}.kardex-trace-note{border-top:1px solid var(--border);color:var(--text-soft);white-space:pre-wrap;margin:12px 0 0;padding-top:10px;font-size:11px}.kardex-cancellation-detail{color:#7f1d1d;background:#fef2f2;border-left:3px solid #dc2626;gap:3px;margin-top:12px;padding:10px;font-size:11px;display:grid}.kardex-cancellation-detail p{margin:3px 0 0}.kardex-related-row,.kardex-related-list button{border:1px solid var(--border);background:var(--surface-soft);width:100%;color:var(--text);cursor:pointer;text-align:left;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;align-items:center;gap:8px;padding:8px 10px;display:grid}.kardex-related-list{gap:5px;display:grid}.kardex-related-list button.active{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 8%,var(--surface))}.kardex-related-list small{color:var(--muted);text-align:right}.kardex-trace-actions{border-top:1px solid var(--border);background:var(--surface);justify-content:flex-end;gap:8px;padding:12px 18px;display:flex}.kardex-trace-actions .button{text-decoration:none}.kardex-trace-error,.kardex-trace-drawer .loading-state{margin:18px}.status-badge.danger{color:#991b1b;background:#fee2e2}.status-badge.success{color:#166534;background:#dcfce7}html[data-theme=dark] .kardex-trace-warning{color:#fbbf24;background:#2f2514}html[data-theme=dark] .kardex-cancellation-detail{color:#fca5a5;background:#32191d}@media (width<=640px){.kardex-trace-drawer{width:100vw}.kardex-trace-grid{grid-template-columns:1fr}.kardex-trace-actions{flex-wrap:wrap}.kardex-trace-actions .button{flex:auto}.kardex-trace-status{flex-wrap:wrap;align-items:flex-start}.kardex-trace-status>span:last-child{width:100%;margin-left:0}}.enterprise-modules-page{position:relative}.enterprise-profile-band{border:1px solid var(--border);background:var(--surface);border-radius:6px;grid-template-columns:1.4fr repeat(4,minmax(120px,1fr));gap:0;margin-bottom:10px;display:grid;overflow:hidden}.enterprise-profile-band>div{border-right:1px solid var(--border);min-width:0;padding:10px 12px}.enterprise-profile-band>div:last-child{border-right:0}.enterprise-profile-band span,.enterprise-profile-band strong{display:block}.enterprise-profile-band span{color:var(--muted);font-size:10px;font-weight:700}.enterprise-profile-band strong{text-overflow:ellipsis;white-space:nowrap;color:var(--text-strong);margin-top:3px;font-size:12px;overflow:hidden}.enterprise-module-summary{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-bottom:10px;display:grid}.enterprise-module-summary article{border:1px solid var(--border);background:var(--surface);border-radius:6px;justify-content:space-between;align-items:center;min-height:52px;padding:9px 12px;display:flex}.enterprise-module-summary span{color:var(--muted);font-size:10px;font-weight:700}.enterprise-module-summary strong{color:var(--text-strong);font-size:19px}.enterprise-module-summary .active{border-color:#bbf7d0}.enterprise-module-summary .active strong{color:#15803d}.enterprise-module-summary .inactive{border-color:#fecaca}.enterprise-module-summary .inactive strong{color:#b91c1c}.enterprise-module-notice{background:var(--subtle);color:var(--muted);border-left:3px solid #f97316;margin:0 0 10px;padding:8px 10px;font-size:11px}.enterprise-module-filters{grid-template-columns:minmax(260px,2fr) minmax(160px,1fr) minmax(160px,1fr) auto;align-items:end;gap:8px;margin-bottom:8px;display:grid}.enterprise-module-filters .field{min-width:0}.enterprise-module-filters input,.enterprise-module-filters select{height:34px;min-height:34px}.enterprise-module-results{color:var(--muted);margin:2px 0 8px;font-size:11px}.enterprise-module-results strong{color:var(--text-strong)}.enterprise-module-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;display:grid}.enterprise-module-card{border:1px solid var(--border);background:var(--surface);border-radius:7px;grid-template-rows:auto 1fr auto auto;min-height:205px;padding:12px;display:grid}.enterprise-module-card.activo{border-top:3px solid #22c55e}.enterprise-module-card.solo_lectura{border-top:3px solid #3b82f6}.enterprise-module-card.inactivo,.enterprise-module-card.suspendido,.enterprise-module-card.no_contratado{border-top:3px solid #ef4444}.enterprise-module-card.planificado{border-top:3px solid #f59e0b}.enterprise-module-card>header{justify-content:space-between;align-items:flex-start;gap:8px;display:flex}.enterprise-module-card header>div{min-width:0}.enterprise-module-card header span:first-child{color:var(--muted);text-transform:uppercase;font-size:9px;font-weight:800}.enterprise-module-card h2{letter-spacing:0;color:var(--text-strong);margin:3px 0 0;font-size:14px}.enterprise-module-card>p{color:var(--muted);margin:9px 0;font-size:10px;line-height:1.45}.enterprise-module-status{border-radius:999px;flex:none;padding:3px 6px;font-size:9px;font-weight:800}.enterprise-module-status.activo{color:#166534;background:#dcfce7}.enterprise-module-status.solo_lectura{color:#1d4ed8;background:#dbeafe}.enterprise-module-status.inactivo,.enterprise-module-status.suspendido,.enterprise-module-status.no_contratado{color:#991b1b;background:#fee2e2}.enterprise-module-status.planificado{color:#92400e;background:#fef3c7}.enterprise-module-card dl{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:0;display:grid}.enterprise-module-card dl div{background:var(--subtle);border-radius:4px;min-width:0;padding:6px}.enterprise-module-card dt{color:var(--muted);font-size:8px}.enterprise-module-card dd{text-overflow:ellipsis;white-space:nowrap;color:var(--text-strong);margin:2px 0 0;font-size:9px;font-weight:750;overflow:hidden}.enterprise-module-card footer{border-top:1px solid var(--border);margin-top:9px;padding-top:8px}.enterprise-module-card footer span,.enterprise-module-card footer strong{display:block}.enterprise-module-card footer span{color:var(--muted);text-transform:uppercase;font-size:8px}.enterprise-module-card footer strong{color:var(--text-strong);margin-top:3px;font-size:9px}.enterprise-module-empty{text-align:center;color:var(--muted);grid-column:1/-1;padding:24px}@media (width<=1050px){.enterprise-profile-band{grid-template-columns:repeat(3,minmax(0,1fr))}.enterprise-profile-band>div{border-bottom:1px solid var(--border)}.enterprise-module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=720px){.enterprise-modules-page{padding:12px}.enterprise-profile-band,.enterprise-module-summary,.enterprise-module-filters{grid-template-columns:1fr 1fr}.enterprise-module-grid{grid-template-columns:1fr}}@media (width<=480px){.enterprise-profile-band,.enterprise-module-summary,.enterprise-module-filters{grid-template-columns:1fr}.enterprise-profile-band>div{border-right:0}}.enterprise-config-modal{border:1px solid var(--border);background:var(--surface);border-radius:8px;grid-template-rows:auto minmax(0,1fr) auto;width:min(1120px,100vw - 28px);height:min(860px,100dvh - 28px);display:grid;overflow:hidden;box-shadow:0 24px 80px #0f172a52}.enterprise-config-modal>header,.enterprise-config-modal>footer{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:10px;padding:12px 16px;display:flex}.enterprise-config-modal>header h2,.enterprise-config-modal>header p{margin:0}.enterprise-config-modal>header h2{color:var(--text-strong);font-size:16px}.enterprise-config-modal>header p{color:var(--muted);margin-top:3px;font-size:10px}.enterprise-config-modal>.modal-body{background:var(--canvas);min-height:0;padding:14px 16px;overflow:auto}.enterprise-config-modal>footer{border-top:1px solid var(--border);border-bottom:0;justify-content:flex-end}.enterprise-config-fields{grid-template-columns:minmax(180px,1fr) minmax(220px,1.2fr) minmax(300px,2fr);gap:9px;display:grid}.enterprise-config-fields input,.enterprise-config-fields select{height:36px}.enterprise-config-safety{background:var(--subtle);color:var(--muted);border-left:3px solid #f97316;margin:10px 0;padding:8px 10px;font-size:10px}.enterprise-config-module-list{border:1px solid var(--border);background:var(--surface);border-radius:6px;overflow:hidden}.enterprise-config-module-row{border-bottom:1px solid var(--border);grid-template-columns:minmax(0,1fr) 170px;align-items:center;gap:12px;min-height:50px;padding:7px 10px;display:grid}.enterprise-config-module-row:last-child{border-bottom:0}.enterprise-config-module-row>div{min-width:0}.enterprise-config-module-row strong,.enterprise-config-module-row span{display:block}.enterprise-config-module-row strong{color:var(--text-strong);font-size:11px}.enterprise-config-module-row div span{text-overflow:ellipsis;white-space:nowrap;color:var(--muted);margin-top:2px;font-size:9px;overflow:hidden}.enterprise-config-module-row select{height:32px;min-height:32px;font-size:10px}.enterprise-config-module-row>.enterprise-module-status{justify-self:end;display:inline-block}.enterprise-config-preview{border:1px solid var(--border);background:var(--surface);border-radius:6px;margin-top:10px;padding:10px 12px}.enterprise-config-preview.valid{border-left:3px solid #22c55e}.enterprise-config-preview.invalid{border-left:3px solid #ef4444}.enterprise-config-preview h3,.enterprise-config-preview p{margin:0}.enterprise-config-preview h3{color:var(--text-strong);font-size:12px}.enterprise-config-preview>p{margin-top:4px;font-size:10px}.enterprise-config-preview ul{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 12px;margin:8px 0 0;padding-left:18px;font-size:9px;display:grid}.warning-message{color:#9a3412}.business-type-request-modal{width:min(760px,100vw - 28px);height:auto;max-height:calc(100dvh - 28px)}.business-type-request-modal .enterprise-config-fields{grid-template-columns:1fr 1fr}.business-type-request-modal .enterprise-config-fields .reason{grid-column:1/-1}.business-type-request-history{border:1px solid var(--border);background:var(--surface);border-radius:6px;gap:5px;margin-top:12px;padding:10px;display:grid}.business-type-request-history h3{margin:0 0 3px;font-size:12px}.business-type-request-history div{border-top:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;padding:6px 0;font-size:10px;display:flex}.business-type-request-history span{color:var(--muted)}@media (width<=800px){.enterprise-config-fields{grid-template-columns:1fr 1fr}.enterprise-config-fields .reason{grid-column:1/-1}.enterprise-config-preview ul{grid-template-columns:1fr}}@media (width<=600px){.enterprise-config-modal{border-radius:0;width:100vw;height:100dvh}.enterprise-config-fields{grid-template-columns:1fr}.enterprise-config-fields .reason{grid-column:auto}.enterprise-config-module-row{grid-template-columns:minmax(0,1fr) 130px}.enterprise-config-modal>footer{flex-wrap:wrap}.enterprise-config-modal>footer .button{flex:130px}}.enterprise-profile-band{grid-template-columns:1.4fr repeat(5,minmax(110px,1fr))}.enterprise-module-notice.aplicado{background:color-mix(in srgb,#dcfce7 72%,var(--surface));color:#166534;border-left-color:#16a34a}.module-readonly-banner{color:#1d4ed8;background:#eff6ff;border-bottom:1px solid #bfdbfe;padding:7px 12px;font-size:10px;font-weight:750}.enterprise-enforcement-modal{border:1px solid var(--border);background:var(--surface);border-radius:8px;grid-template-rows:auto minmax(0,1fr) auto;width:min(620px,100vw - 28px);max-height:calc(100dvh - 28px);display:grid;overflow:hidden;box-shadow:0 24px 80px #0f172a52}.enterprise-enforcement-modal>header,.enterprise-enforcement-modal>footer{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:10px;padding:12px 16px;display:flex}.enterprise-enforcement-modal>header h2,.enterprise-enforcement-modal>header p{margin:0}.enterprise-enforcement-modal>header h2{color:var(--text-strong);font-size:15px}.enterprise-enforcement-modal>header p{color:var(--muted);margin-top:3px;font-size:10px}.enterprise-enforcement-modal>.modal-body{background:var(--canvas);padding:14px 16px;overflow:auto}.enterprise-enforcement-modal>footer{border-top:1px solid var(--border);border-bottom:0;justify-content:flex-end}.enterprise-enforcement-explanation{border:1px solid var(--border);background:var(--surface);border-left-width:3px;border-radius:5px;margin-bottom:12px;padding:11px 12px}.enterprise-enforcement-explanation.applied{border-left-color:#16a34a}.enterprise-enforcement-explanation.observed{border-left-color:#f97316}.enterprise-enforcement-explanation strong{color:var(--text-strong);font-size:11px}.enterprise-enforcement-explanation p{color:var(--muted);margin:5px 0 0;font-size:10px;line-height:1.5}.enterprise-enforcement-modal textarea{resize:vertical}.enterprise-enforcement-confirm{border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:5px;align-items:flex-start;gap:8px;margin-top:10px;padding:8px 10px;font-size:10px;display:flex}.enterprise-enforcement-confirm input{flex:none;margin-top:1px}@media (width<=1050px){.enterprise-profile-band{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (width<=720px){.enterprise-profile-band{grid-template-columns:1fr 1fr}}@media (width<=600px){.enterprise-enforcement-modal{border-radius:0;width:100vw;height:100dvh;max-height:100dvh}.enterprise-enforcement-modal>footer .button{flex:1}.enterprise-profile-band{grid-template-columns:1fr}}.enterprise-module-audit-backdrop{z-index:1320}.enterprise-module-audit-dialog{border:1px solid var(--border);background:var(--surface);width:min(1420px,100vw - 28px);height:min(860px,100dvh - 28px);color:var(--text);border-radius:8px;grid-template-rows:auto auto auto minmax(0,1fr) auto;display:grid;position:relative;overflow:hidden;box-shadow:0 24px 80px #0f172a61}.enterprise-module-audit-dialog>header,.enterprise-module-audit-dialog>footer{border-bottom:1px solid var(--border);background:var(--surface);justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;display:flex}.enterprise-module-audit-dialog>header small{color:#ea580c;font-size:9px;font-weight:900}.enterprise-module-audit-dialog>header h2,.enterprise-module-audit-dialog>header p{margin:0}.enterprise-module-audit-dialog>header h2{color:var(--text-strong);margin-top:2px;font-size:17px}.enterprise-module-audit-dialog>header p{color:var(--muted);margin-top:3px;font-size:10px}.enterprise-module-audit-filters{border-bottom:1px solid var(--border);background:var(--canvas);grid-template-columns:minmax(210px,1fr) 150px 150px auto auto;align-items:end;gap:8px;margin:0;padding:10px 16px;display:grid}.enterprise-module-audit-filters input,.enterprise-module-audit-filters select{height:34px;min-height:34px}.enterprise-module-audit-count{color:var(--muted);padding:7px 16px;font-size:10px}.enterprise-module-audit-count strong{color:var(--text-strong)}.enterprise-module-audit-table{border-color:var(--border);border-radius:6px;min-height:0;margin:0 16px;overflow:auto}.enterprise-module-audit-table table{min-width:1180px}.enterprise-module-audit-table thead{z-index:2;position:sticky;top:0}.enterprise-module-audit-table th{background:var(--subtle);color:var(--text-strong);text-transform:uppercase;font-size:9px}.enterprise-module-audit-table td{font-size:10px}.enterprise-module-audit-table td:first-child{white-space:nowrap}.enterprise-module-audit-table td:nth-child(5) strong,.enterprise-module-audit-table td:nth-child(5) small{display:block}.enterprise-module-audit-table td:nth-child(5) small{color:var(--muted);margin-top:2px}.enterprise-module-audit-action{background:var(--subtle);white-space:nowrap;border-radius:999px;padding:3px 6px;font-size:9px;font-weight:850;display:inline-block}.enterprise-module-audit-action.activar_modulo,.enterprise-module-audit-action.activar_control{color:#166534;background:#dcfce7}.enterprise-module-audit-action.desactivar_modulo,.enterprise-module-audit-action.retirar_control{color:#991b1b;background:#fee2e2}.enterprise-module-audit-action.cambiar_plantilla,.enterprise-module-audit-action.cambio_plan{color:#9a3412;background:#ffedd5}.enterprise-module-audit-details summary{cursor:pointer;color:#c2410c;white-space:nowrap;font-weight:800}.enterprise-module-audit-details>div{grid-template-columns:1fr 1fr;gap:7px;margin-top:7px;display:grid}.enterprise-module-audit-details section{min-width:230px}.enterprise-module-audit-details strong{font-size:9px}.enterprise-module-audit-details pre{border:1px solid var(--border);background:var(--canvas);max-width:360px;max-height:180px;color:var(--text);white-space:pre-wrap;overflow-wrap:anywhere;border-radius:4px;margin:4px 0;padding:7px;font:9px/1.45 ui-monospace,SFMono-Regular,Consolas,monospace;overflow:auto}.enterprise-module-audit-details>small{color:var(--muted)}.enterprise-module-audit-dialog>footer{border-top:1px solid var(--border);border-bottom:0;justify-content:flex-end}.enterprise-module-audit-dialog>footer span{color:var(--muted);margin:0 auto;font-size:10px}.enterprise-module-audit-dialog .loading-overlay{background:color-mix(in srgb,var(--surface) 72%,transparent);inset:112px 0 49px}@media (width<=760px){.enterprise-module-audit-dialog{border-radius:0;width:100vw;height:100dvh}.enterprise-module-audit-filters{grid-template-columns:1fr 1fr}.enterprise-module-audit-filters .field:first-child{grid-column:1/-1}.enterprise-module-audit-table{margin:0 8px}.enterprise-module-audit-details>div{grid-template-columns:1fr}.enterprise-module-audit-dialog>footer{padding:10px 8px}.enterprise-module-audit-dialog>footer .button{padding-inline:9px}}.enterprise-compatibility-band{background:var(--subtle);border-left:3px solid #f59e0b;grid-template-columns:minmax(240px,1fr) minmax(280px,1.5fr) auto;align-items:center;gap:10px;margin:0 0 9px;padding:9px 11px;display:grid}.enterprise-compatibility-band.compatible{background:color-mix(in srgb,#dcfce7 55%,var(--surface));border-left-color:#16a34a}.enterprise-compatibility-band>div strong,.enterprise-compatibility-band>div span{display:block}.enterprise-compatibility-band>div strong{color:var(--text-strong);font-size:11px}.enterprise-compatibility-band>div span{color:var(--muted);margin-top:2px;font-size:9px}.enterprise-compatibility-band ul{color:#9a3412;margin:0;padding-left:17px;font-size:9px}.enterprise-compatibility-error{margin:0 0 8px}.enterprise-module-card{grid-template-rows:auto minmax(42px,1fr) auto auto auto;min-height:246px}.enterprise-module-card.dependency-warning{border-color:#fdba74}.enterprise-module-card dl{grid-template-columns:repeat(2,minmax(0,1fr))}.enterprise-module-dependencies{border-top:1px solid var(--border);margin-top:8px;padding:7px 0}.enterprise-module-dependencies span,.enterprise-module-dependencies strong,.enterprise-module-dependencies small{display:block}.enterprise-module-dependencies span{color:var(--muted);text-transform:uppercase;font-size:8px}.enterprise-module-dependencies strong{color:var(--text-strong);margin-top:3px;font-size:9px}.enterprise-module-dependencies small{color:#c2410c;margin-top:4px;font-size:8px;font-weight:800}.enterprise-module-card>footer.enterprise-module-card-actions{justify-content:flex-end;align-items:center;gap:6px;min-height:34px;margin-top:7px;padding-top:7px;display:flex}.enterprise-module-card-actions>span{color:var(--muted);text-transform:none;margin-right:auto;font-size:8px}.enterprise-module-card-actions .button{height:30px;min-height:30px;padding:4px 8px;font-size:9px}.enterprise-module-card-actions .button.danger{color:#b91c1c;border-color:#fecaca}.enterprise-config-module-row.focused{outline-offset:-2px;background:#fff7ed;outline:2px solid #fb923c}.enterprise-config-module-row.dependency-warning{border-left:3px solid #f97316}.enterprise-config-module-row>div small{color:#c2410c;margin-top:3px;font-size:8px;font-weight:800;display:block}html[data-theme=dark] .enterprise-config-module-row.focused{background:#431407}@media (width<=900px){.enterprise-compatibility-band{grid-template-columns:1fr auto}.enterprise-compatibility-band ul{grid-area:2/1/auto/-1}}@media (width<=600px){.enterprise-compatibility-band{grid-template-columns:1fr}.enterprise-compatibility-band ul{grid-area:auto}.enterprise-compatibility-band .button{width:100%}.enterprise-module-card{min-height:225px}}.organization-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.security-assignment-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.security-active-company{border:1px solid var(--border);background:var(--subtle);border-radius:6px;margin:0 0 12px;padding:8px 10px;font-size:12px}.security-toggle-fieldset legend small{color:var(--muted);font-weight:600}.security-toggle-list{max-height:150px}.security-toggle-list label{align-items:flex-start;padding:6px 8px}.security-toggle-list label span,.security-toggle-list label strong,.security-toggle-list label small{display:block}.security-toggle-list label small{color:var(--muted);margin-top:2px;font-size:10px}.security-channel-fieldset{margin:10px 0 12px}.security-channel-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;display:grid}.security-channel-grid label{border:1px solid var(--border);background:var(--subtle);cursor:pointer;border-radius:5px;align-items:flex-start;gap:8px;min-width:0;padding:8px 10px;display:flex}.security-channel-grid label span,.security-channel-grid label strong,.security-channel-grid label small{display:block}.security-channel-grid label small{color:var(--muted);margin-top:2px;font-size:10px}.security-channel-error{color:var(--danger);margin:8px 0 0;font-size:11px;font-weight:700}.security-scope-cell span{border:1px solid var(--border);background:var(--subtle);border-radius:4px;margin:2px 4px 2px 0;padding:3px 6px;font-size:11px;display:inline-flex}.security-channel-cell span{white-space:nowrap}.security-access-summary{border-top:1px solid var(--border);background:var(--subtle);grid-template-columns:auto 1fr;align-items:start;gap:12px;margin-top:10px;padding:9px 10px;font-size:11px;display:grid}.security-access-summary>strong{color:var(--text-strong);white-space:nowrap}.security-access-summary dl{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0;display:grid}.security-access-summary dl div{min-width:0}.security-access-summary dt{color:var(--muted);text-transform:uppercase;font-size:10px;font-weight:800}.security-access-summary dd{overflow-wrap:anywhere;color:var(--text-strong);margin:2px 0 0;font-weight:700}.security-permission-groups,.permission-directory{align-items:start;gap:8px}.security-permission-groups section,.permission-directory article{background:var(--surface);padding:0;overflow:hidden}.security-permission-group-trigger,.permission-directory-trigger{background:var(--subtle);width:100%;min-height:38px;color:var(--text-strong);text-align:left;cursor:pointer;border:0;grid-template-columns:1fr auto 24px;align-items:center;gap:8px;padding:8px 10px;display:grid}.security-permission-group-trigger span,.permission-directory-trigger span{text-transform:capitalize;font-weight:800}.security-permission-group-trigger small,.permission-directory-trigger small{color:var(--muted)}.security-permission-group-trigger b,.permission-directory-trigger b{color:#e85d04;text-align:center;font-size:18px}.security-permission-group-body{padding-top:30px;position:relative}.security-select-group{color:#d75100;cursor:pointer;background:0 0;border:0;font-size:11px;position:absolute;top:5px;right:8px}.security-permission-group-body>label{border-top:1px solid #edf0f3;align-items:flex-start;gap:8px;padding:7px 10px;display:flex}.permission-directory-body{padding:0 10px}.permission-directory-body>div{border-top:1px solid #edf0f3;padding:7px 0}.permission-directory-body strong,.permission-directory-body span{display:block}.permission-directory-body strong{font-size:11px}.permission-directory-body span{color:var(--muted);margin-top:2px;font-size:12px}@media (width<=900px){.security-assignment-grid{grid-template-columns:1fr}.security-channel-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.security-access-summary,.security-access-summary dl{grid-template-columns:1fr}}.product-policy-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;display:grid}.inventory-lot-tabs{margin:0 0 10px}.inventory-lot-backdrop{z-index:1600;background:#0f172a94;justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;inset:0}.inventory-lot-dialog{background:var(--surface,#fff);border:1px solid var(--border,#d8dee8);color:var(--text,#152033);border-radius:8px;grid-template-rows:auto minmax(0,1fr) auto;width:min(1120px,100vw - 32px);max-height:calc(100dvh - 32px);display:grid;overflow:hidden;box-shadow:0 24px 80px #0f172a57}.inventory-lot-dialog>header,.inventory-lot-dialog>footer{background:var(--surface,#fff);justify-content:space-between;align-items:center;gap:12px;padding:13px 16px;display:flex}.inventory-lot-dialog>header{border-bottom:1px solid var(--border,#d8dee8)}.inventory-lot-dialog>footer{border-top:1px solid var(--border,#d8dee8);justify-content:flex-end}.inventory-lot-dialog h2,.inventory-lot-dialog p{margin:0}.inventory-lot-dialog p{color:var(--muted,#667085);margin-top:3px;font-size:11px}.inventory-lot-dialog>header>button{background:var(--surface-subtle,#f7f8fa);border:1px solid var(--border,#d8dee8);color:inherit;border-radius:6px;justify-content:center;align-items:center;width:34px;height:34px;display:inline-flex}.inventory-lot-dialog .dialog-scroll-body{background:var(--canvas,#f8fafc);min-height:0;padding:14px 16px;overflow:auto}.inventory-lot-dialog table{min-width:820px}.lot-status{white-space:nowrap;border-radius:6px;align-items:center;min-height:24px;padding:2px 8px;font-size:12px;font-weight:700;display:inline-flex}.lot-status.vigente,.lot-status.sin_vencimiento{color:#166534;background:#dcfce7}.lot-status.proximo,.lot-status.vence_hoy{color:#9a3412;background:#ffedd5}.lot-status.vencido{color:#b91c1c;background:#fee2e2}.lot-status.agotado{color:#475569;background:#e2e8f0}.inventory-summary-strip .danger{color:#b91c1c}@media (width<=900px){.product-policy-grid{grid-template-columns:1fr 1fr}}@media (width<=600px){.product-policy-grid{grid-template-columns:1fr}.inventory-lot-backdrop{padding:0}.inventory-lot-dialog{border-radius:0;width:100vw;max-height:100dvh}}.notification-button{background:var(--surface,#fff);border:1px solid var(--border,#d8dee8);color:inherit;border-radius:6px;align-items:center;gap:7px;min-height:34px;padding:5px 10px;display:inline-flex}.notification-button strong{color:#fff;background:#f97316;border-radius:999px;justify-content:center;align-items:center;min-width:20px;height:20px;padding:0 5px;font-size:11px;display:inline-flex}.tasks-page{max-width:1500px}.task-tabs{border-bottom:1px solid var(--border,#dce2ea);gap:18px;margin-bottom:14px;display:flex}.task-tabs button{color:var(--text-muted,#5d6675);background:0 0;border:0;border-bottom:2px solid #0000;padding:9px 2px;font-weight:700}.task-tabs button.active{color:var(--text,#152033);border-bottom-color:#f97316}.task-summary{grid-template-columns:repeat(4,minmax(140px,1fr));gap:10px;margin-bottom:12px;display:grid}.task-summary div{background:var(--surface,#fff);border:1px solid var(--border,#dce2ea);border-radius:6px;justify-content:space-between;padding:12px 14px;display:flex}.task-summary span{color:var(--text-muted,#667085);font-size:13px}.task-summary strong{font-size:19px}.task-filter-bar{grid-template-columns:minmax(260px,1fr) 190px;align-items:end;gap:10px;margin-bottom:12px;padding:10px;display:grid}.task-filter-bar .field{margin:0}.task-table table{min-width:850px}.task-table td strong,.task-table td small{display:block}.task-table td small{color:var(--text-muted,#667085);margin-top:3px}.task-type,.task-priority,.task-status{text-transform:capitalize;border-radius:999px;padding:4px 8px;font-size:11px;font-weight:800;display:inline-flex}.task-type.tarea{color:#175cd3;background:#e9f2ff}.task-type.evento{color:#067647;background:#ecfdf3}.task-type.aviso{color:#b54708;background:#fff4e8}.task-priority.baja{color:#475467;background:#f2f4f7}.task-priority.normal{color:#175cd3;background:#e9f2ff}.task-priority.alta{color:#b54708;background:#fff4e8}.task-priority.urgente{color:#b42318;background:#feeceb}.task-status.pendiente{color:#b54708;background:#fff4e8}.task-status.en_progreso{color:#175cd3;background:#e9f2ff}.task-status.completada{color:#067647;background:#ecfdf3}.task-status.vencida,.task-status.cancelada{color:#b42318;background:#feeceb}.task-empty{color:var(--text-muted,#667085);text-align:center;padding:28px}.task-dialog{width:min(980px,100vw - 32px);max-width:980px;max-height:92vh;overflow:auto}.task-dialog>header,.task-detail-dialog>header{border-bottom:1px solid var(--border,#dce2ea);justify-content:space-between;align-items:flex-start;padding-bottom:14px;display:flex}.task-dialog header h2,.task-detail-dialog header h2{margin:0}.task-dialog header p,.task-detail-dialog header p{color:var(--text-muted,#667085);margin:5px 0 0}.task-form-grid{grid-template-columns:180px minmax(260px,1fr) 180px;gap:12px;margin-top:16px;display:grid}.task-title-field{grid-column:auto}.task-description-field{grid-column:1/-1}.task-recipient-builder,.task-reminder-builder{border-top:1px solid var(--border,#dce2ea);margin-top:16px;padding-top:14px}.task-recipient-builder>div:first-child{justify-content:space-between;display:flex}.task-recipient-builder>div:first-child span{color:var(--text-muted,#667085);font-size:13px}.task-recipient-row{grid-template-columns:180px 1fr auto;gap:8px;margin-top:10px;display:grid}.task-recipient-row select,.task-reminder-builder input{min-height:36px}.task-reminder-builder>div{gap:8px;margin-top:10px;display:flex}.task-chips{flex-wrap:wrap;gap:6px;display:flex!important}.task-chips button{background:var(--surface-subtle,#f5f7fa);border:1px solid var(--border,#dce2ea);color:inherit;border-radius:999px;padding:5px 9px}.task-checks{gap:22px;margin:16px 0;display:flex}.task-checks label{align-items:center;gap:7px;display:flex}.task-dialog>footer{border-top:1px solid var(--border,#dce2ea);justify-content:flex-end;gap:8px;padding-top:14px;display:flex}.task-detail-dialog{width:min(1080px,100vw - 32px);max-width:1080px;max-height:92vh;overflow:auto}.task-detail-body{grid-template-columns:minmax(0,1fr) 320px;gap:20px;margin-top:16px;display:grid}.task-detail-body aside{border-left:1px solid var(--border,#dce2ea);padding-left:18px}.task-detail-actions{flex-wrap:wrap;gap:8px;margin:16px 0;display:flex}.task-comments>div{border-bottom:1px solid var(--border,#dce2ea);padding:10px 0}.task-comments span{color:var(--text-muted,#667085);margin-left:10px;font-size:12px}.task-comments p{margin:5px 0}.task-assignee{border-bottom:1px solid var(--border,#dce2ea);gap:3px;padding:9px 0;display:grid}.task-assignee span,.task-assignee small{color:var(--text-muted,#667085);font-size:12px}.task-calendar{gap:10px;display:grid}.task-calendar article{background:var(--surface,#fff);border:1px solid var(--border,#dce2ea);border-radius:6px}.task-calendar article>header{background:var(--surface-subtle,#f7f8fa);padding:9px 12px;font-weight:800}.task-calendar article>button{border:0;border-top:1px solid var(--border,#e5e7eb);color:inherit;text-align:left;background:0 0;grid-template-columns:10px 1fr auto;align-items:center;gap:9px;width:100%;padding:10px 12px;display:grid}.priority-dot{border-radius:50%;width:8px;height:8px}.priority-dot.baja{background:#98a2b3}.priority-dot.normal{background:#2e90fa}.priority-dot.alta{background:#f79009}.priority-dot.urgente{background:#d92d20}.task-notification-list{overflow:hidden}.task-notification-list>.table-status{padding:10px 12px}.task-notification-list>button{border:0;border-top:1px solid var(--border,#e5e7eb);color:inherit;text-align:left;background:0 0;gap:3px;width:100%;padding:11px 14px;display:grid}.task-notification-list>button.unread{background:#fff8f1;border-left:3px solid #f97316}.task-notification-list>button span,.task-notification-list>button small{color:var(--text-muted,#667085)}@media (width<=800px){.task-summary{grid-template-columns:repeat(2,1fr)}.task-filter-bar,.task-form-grid,.task-recipient-row,.task-detail-body{grid-template-columns:1fr}.task-detail-body aside{border-left:0;border-top:1px solid var(--border,#dce2ea);padding-top:12px;padding-left:0}.task-tabs{gap:8px;overflow-x:auto}.task-tabs button{white-space:nowrap}}.task-summary{grid-template-columns:repeat(6,minmax(110px,1fr))}.task-filter-bar{flex-wrap:wrap;display:flex}.task-filter-bar>.field{flex:0 150px}.task-filter-bar>.task-search-filter{flex:260px}.task-filter-checks{align-items:center;gap:10px;min-height:36px;display:flex}.task-filter-checks label{white-space:nowrap;align-items:center;gap:5px;font-size:12px;display:flex}.task-pagination{border-top:1px solid var(--border,#dce2ea);justify-content:space-between;align-items:center;padding:10px 12px;display:flex}.task-pagination>div{gap:6px;display:flex}.task-dialog-heading-actions{gap:7px;display:flex}.task-detail-meta{grid-template-columns:repeat(2,minmax(150px,1fr));gap:8px;margin:14px 0;display:grid}.task-detail-meta>div{background:var(--surface-subtle,#f7f8fa);border:1px solid var(--border,#dce2ea);border-radius:5px;padding:8px}.task-detail-meta dt{color:var(--text-muted,#667085);text-transform:uppercase;font-size:11px;font-weight:700}.task-detail-meta dd{margin:3px 0 0;font-weight:700}.task-attachments>div{border-bottom:1px solid var(--border,#dce2ea);justify-content:space-between;align-items:center;padding:8px 0;display:flex}.task-attachments span{color:var(--text-muted,#667085);font-size:12px}.task-attachment-link{gap:7px;margin:10px 0 18px;display:flex}.task-attachment-link input{flex:1;min-width:0}.button.danger{color:#fff;background:#b42318;border-color:#b42318}.task-history-item{border-bottom:1px solid var(--border,#dce2ea);gap:2px;padding:8px 0;display:grid}.task-history-item span,.task-history-item small{color:var(--text-muted,#667085);font-size:12px}@media (width<=1100px){.task-summary{grid-template-columns:repeat(3,1fr)}}@media (width<=800px){.task-summary{grid-template-columns:repeat(2,1fr)}.task-detail-meta{grid-template-columns:1fr}.task-pagination{align-items:flex-start;gap:8px}.task-attachment-link{flex-direction:column}}.intelligence-page{gap:10px;width:min(1500px,100%);min-width:0;display:grid}.intelligence-tabs{border-bottom:1px solid var(--border);gap:4px;padding:2px 0 7px;display:flex;overflow-x:auto}.intelligence-tabs button{min-height:32px;color:var(--muted);white-space:nowrap;cursor:pointer;background:0 0;border:0;border-bottom:2px solid #0000;flex:none;padding:6px 10px;font-size:12px;font-weight:750}.intelligence-tabs button:hover,.intelligence-tabs button.active{color:var(--text-strong);border-bottom-color:#f97316}.intelligence-metrics{grid-template-columns:repeat(6,minmax(120px,1fr));gap:8px;display:grid}.intelligence-metrics button{border:1px solid var(--border);background:var(--surface);min-height:76px;color:var(--text);text-align:left;cursor:pointer;border-radius:6px;gap:6px;padding:10px 12px;display:grid}.intelligence-metrics button:hover{border-color:#f97316;box-shadow:0 3px 12px #0f172a12}.intelligence-metrics span{color:var(--muted);font-size:11px;font-weight:700}.intelligence-metrics strong{color:var(--text-strong);font-size:20px;line-height:1}.intelligence-chart{min-height:250px;padding:12px 14px}.intelligence-chart>header{justify-content:space-between;align-items:flex-start;gap:14px;display:flex}.intelligence-chart h2,.intelligence-chart p{margin:0}.intelligence-chart small{color:var(--muted)}.intelligence-bars{border-bottom:1px solid var(--border);align-items:flex-end;gap:8px;height:185px;margin-top:16px;padding:0 4px 22px;display:flex}.intelligence-bar-item{flex:1;grid-template-rows:1fr auto;align-items:end;gap:4px;min-width:28px;height:100%;display:grid}.intelligence-bar-item>div{justify-content:center;align-items:flex-end;gap:2px;height:100%;display:flex}.intelligence-bar-item i,.intelligence-bar-item b{border-radius:2px 2px 0 0;width:min(12px,42%);min-height:2px;display:block}.intelligence-bar-item i{background:#cbd5e1}.intelligence-bar-item b{background:#f97316}.intelligence-bar-item span{color:var(--muted);text-align:center;text-overflow:ellipsis;white-space:nowrap;font-size:9px;overflow:hidden}.intelligence-filters{grid-template-columns:minmax(180px,1fr) 150px 150px auto;align-items:end;gap:7px;padding:8px 10px;display:grid}.intelligence-filters label{color:var(--muted);gap:3px;font-size:10px;font-weight:750;display:grid}.intelligence-filters input,.intelligence-filters select{border:1px solid var(--border);background:var(--surface);width:100%;height:34px;color:var(--text);border-radius:5px;padding:5px 8px}.intelligence-table{min-width:0;padding:0;overflow:hidden}.intelligence-table .table-scroll{max-height:calc(100dvh - 285px);overflow:auto}.intelligence-table table{border-collapse:collapse;width:100%;min-width:940px}.intelligence-table th{z-index:1;background:var(--subtle);color:var(--muted);text-transform:uppercase;font-size:10px;position:sticky;top:0}.intelligence-table th,.intelligence-table td{border-bottom:1px solid var(--border);text-align:left;white-space:nowrap;padding:6px 8px;font-size:11px}.intelligence-table td:nth-child(2){text-overflow:ellipsis;max-width:260px;overflow:hidden}.intelligence-table .inline-actions{gap:4px;display:flex}.intelligence-table .inline-actions button{border:1px solid var(--border);background:var(--surface);min-height:27px;color:var(--text);cursor:pointer;border-radius:4px;padding:3px 7px;font-size:10px}.intelligence-table .inline-actions button:hover{color:#d75100;border-color:#f97316}.intelligence-dialog{z-index:2000;border:1px solid var(--border);background:var(--surface);width:min(1000px,100vw - 30px);max-height:calc(100dvh - 30px);color:var(--text);border-radius:7px;margin:auto;padding:0;position:fixed;inset:0;overflow:hidden;box-shadow:0 24px 80px #0f172a52}.intelligence-dialog::backdrop{background:#0f172a8c}.intelligence-dialog>form{grid-template-rows:auto minmax(0,1fr) auto;min-height:0;max-height:calc(100dvh - 30px);display:grid;overflow:hidden}.intelligence-dialog>form>header,.intelligence-dialog>div>header,.intelligence-dialog>form>footer,.intelligence-dialog>div>footer{z-index:2;background:var(--surface);justify-content:space-between;align-items:center;gap:10px;padding:11px 14px;display:flex;position:sticky}.intelligence-dialog>form>header,.intelligence-dialog>div>header{border-bottom:1px solid var(--border);top:0}.intelligence-dialog>form>footer,.intelligence-dialog>div>footer{border-top:1px solid var(--border);justify-content:flex-end;bottom:0}.intelligence-dialog header h2{margin:0;font-size:18px}.intelligence-dialog header>button{color:var(--muted);cursor:pointer;background:0 0;border:0}.intelligence-dialog header p{color:var(--muted);margin:2px 0 0;font-size:11px}.intelligence-dialog .form-grid{min-height:0;padding:14px;overflow:auto}.intelligence-dialog .form-grid label{color:var(--muted);gap:4px;font-size:11px;font-weight:750;display:grid}.intelligence-dialog .form-grid input,.intelligence-dialog .form-grid select{border:1px solid var(--border);background:var(--surface);height:36px;color:var(--text);border-radius:5px;padding:6px 8px}.intelligence-detail-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0;padding:14px;display:grid}.intelligence-detail-grid>div{border:1px solid var(--border);background:var(--subtle);border-radius:5px;min-width:0;padding:8px}.intelligence-detail-grid dt{color:var(--muted);text-transform:uppercase;font-size:9px;font-weight:800}.intelligence-detail-grid dd{overflow-wrap:anywhere;margin:3px 0 0;font-size:12px;font-weight:700}.intelligence-dialog.detail{width:min(1120px,100vw - 30px);height:min(760px,100dvh - 30px);max-height:calc(100dvh - 30px);overflow:hidden}.intelligence-dialog.detail>div{grid-template-rows:auto minmax(0,1fr) auto;height:100%;display:grid}.intelligence-dialog.detail>div>header,.intelligence-dialog.detail>div>footer{z-index:1;position:relative;inset:auto}.intelligence-detail-body{background:var(--surface);min-height:0;overflow:auto}.intelligence-dialog.detail .table-scroll{max-height:320px;margin:0 14px 14px}.intelligence-dialog.detail table{border-collapse:collapse;width:100%}.intelligence-dialog.detail th,.intelligence-dialog.detail td{border-bottom:1px solid var(--border);text-align:left;padding:6px;font-size:11px}html[data-theme=dark] .intelligence-bar-item i{background:#475569}@media (width<=1200px){.intelligence-metrics{grid-template-columns:repeat(3,1fr)}.intelligence-detail-grid{grid-template-columns:repeat(2,1fr)}}@media (width<=760px){.intelligence-page{gap:8px}.intelligence-metrics{grid-template-columns:repeat(2,1fr)}.intelligence-filters{grid-template-columns:1fr 1fr}.intelligence-filters .button{width:100%}.intelligence-detail-grid{grid-template-columns:1fr}.intelligence-dialog{border-radius:0;width:100vw;max-height:100dvh}.intelligence-table .table-scroll{max-height:none}}.desktop-connectivity{border:1px solid var(--border);background:var(--surface);min-height:32px;color:var(--text);cursor:pointer;border-radius:6px;align-items:center;gap:7px;padding:5px 9px;font-size:11px;font-weight:800;display:inline-flex}.desktop-connectivity>span{background:#16a34a;border-radius:50%;width:8px;height:8px}.desktop-connectivity.offline{color:#9a3412;background:#fff7ed;border-color:#fdba74}.desktop-connectivity.offline>span{background:#f97316}.desktop-sync-dialog{z-index:3000;border:1px solid var(--border);background:var(--surface);width:min(820px,100vw - 28px);max-height:calc(100dvh - 28px);color:var(--text);border-radius:8px;margin:auto;padding:0;position:fixed;inset:0;box-shadow:0 24px 80px #0f172a5c}.desktop-sync-dialog::backdrop{background:#0f172a8c}.desktop-sync-dialog>section{grid-template-rows:auto minmax(0,1fr) auto;max-height:calc(100dvh - 28px);display:grid}.desktop-sync-dialog header,.desktop-sync-dialog footer{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;padding:13px 16px;display:flex}.desktop-sync-dialog footer{border-top:1px solid var(--border);border-bottom:0;justify-content:flex-end}.desktop-sync-dialog h2,.desktop-sync-dialog header small{margin:0}.desktop-sync-dialog header>button{border:1px solid var(--border);background:var(--surface);width:32px;height:32px;color:var(--text);border-radius:5px}.desktop-sync-summary{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:14px 16px;display:grid}.desktop-sync-summary>div{border:1px solid var(--border);background:var(--subtle);border-radius:6px;padding:10px}.desktop-sync-summary small,.desktop-sync-summary strong{display:block}.desktop-sync-summary small{color:var(--muted);font-size:10px}.desktop-sync-summary strong{margin-top:3px;font-size:12px}.desktop-sync-message{color:#9a3412;background:#fff7ed;border:1px solid #fed7aa;border-radius:6px;margin:0 16px 12px;padding:9px 11px}.desktop-conflict-list{padding:0 16px 14px;overflow:auto}.desktop-conflict-list article{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:10px;padding:9px 0;display:flex}.desktop-conflict-list article small{color:var(--muted);margin-top:2px;display:block}.desktop-conflict-actions{gap:6px;display:flex}.preparation-draft-control{border:1px solid var(--border);background:var(--surface);border-left:3px solid #64748b;border-radius:6px;justify-content:space-between;align-items:center;gap:12px;margin:0 12px 8px;padding:8px 10px;display:flex}.preparation-draft-control.pending{background:#fff8f1;border-left-color:#f97316}.preparation-draft-control>div{gap:2px;min-width:0;display:grid}.preparation-draft-control span,.preparation-draft-control small{color:var(--muted);font-size:11px}.preparation-draft-control small{color:#b45309;font-weight:800}.preparation-draft-control small.success{color:#15803d}.preparation-draft-control small.error{color:#b42318}.preparation-drafts-page{max-width:1600px}.preparation-tabs{border-bottom:1px solid var(--border);gap:18px;margin-bottom:10px;display:flex}.preparation-tabs button{color:var(--muted);background:0 0;border:0;border-bottom:2px solid #0000;align-items:center;gap:7px;padding:8px 2px;font-weight:800;display:flex}.preparation-tabs button.active{color:var(--text);border-bottom-color:#f97316}.preparation-tabs strong{background:var(--subtle);border-radius:999px;place-items:center;min-width:22px;height:22px;font-size:11px;display:grid}.preparation-filter-bar{border:1px solid var(--border);background:var(--surface);border-radius:7px;grid-template-columns:150px repeat(3,minmax(140px,1fr)) 155px 145px 130px auto auto;align-items:end;gap:7px;margin-bottom:10px;padding:9px;display:grid}.preparation-filter-bar input,.preparation-filter-bar select{border:1px solid var(--border);background:var(--surface);min-width:0;height:34px;color:var(--text);border-radius:5px;padding:5px 7px;font-size:12px}.preparation-filter-bar .button{height:34px;padding:5px 11px}.preparation-table table{min-width:1280px}.preparation-table td{vertical-align:top}.preparation-table td small,.preparation-table .link-button+small{color:var(--muted);margin-top:3px;font-size:10px;display:block}.preparation-table .link-button{color:#c2410c;background:0 0;border:0;padding:0;font-weight:850}.preparation-updated-flag{font-weight:800;color:#b45309!important}.preparation-status{border-radius:999px;padding:4px 7px;font-size:10px;font-weight:850;display:inline-flex}.preparation-status.enviado{color:#b54708;background:#fff4e8}.preparation-status.en_preparacion{color:#175cd3;background:#e9f2ff}.preparation-status.listo{color:#067647;background:#ecfdf3}.table-pagination{border-top:1px solid var(--border);justify-content:space-between;align-items:center;gap:8px;padding:9px 11px;display:flex}.table-pagination>div{gap:6px;display:flex}.preparation-modal-backdrop{z-index:3500;background:#0f172a8c;place-items:center;padding:14px;display:grid;position:fixed;inset:0}.preparation-detail-dialog,.preparation-confirm-dialog{border:1px solid var(--border);background:var(--surface);width:min(1180px,100vw - 28px);max-height:calc(100dvh - 28px);color:var(--text);border-radius:8px;grid-template-rows:auto minmax(0,1fr) auto;display:grid;overflow:hidden;box-shadow:0 24px 80px #0f172a59}.preparation-confirm-dialog{width:min(590px,100vw - 28px)}.preparation-detail-dialog>header,.preparation-detail-dialog>footer,.preparation-confirm-dialog>header,.preparation-confirm-dialog>footer{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;padding:12px 15px;display:flex}.preparation-detail-dialog>footer,.preparation-confirm-dialog>footer{border-top:1px solid var(--border);border-bottom:0;justify-content:flex-end}.preparation-detail-dialog header h2,.preparation-detail-dialog header p,.preparation-confirm-dialog header h2{margin:0}.preparation-detail-dialog header small,.preparation-confirm-dialog header small{color:#ea580c;font-size:10px;font-weight:900}.preparation-detail-dialog header p{color:var(--muted);margin-top:3px;font-size:12px}.preparation-detail-dialog header>button,.preparation-confirm-dialog header>button{border:1px solid var(--border);background:var(--surface);width:32px;height:32px;color:var(--text);border-radius:5px;font-size:20px}.preparation-detail-body{min-height:0;padding:14px;overflow:auto}.preparation-detail-summary{grid-template-columns:repeat(6,minmax(120px,1fr));gap:7px;margin:0 0 12px;display:grid}.preparation-detail-summary>div{border:1px solid var(--border);background:var(--subtle);border-radius:5px;padding:8px}.preparation-detail-summary dt{color:var(--muted);text-transform:uppercase;font-size:10px;font-weight:800}.preparation-detail-summary dd{margin:3px 0 0;font-size:12px;font-weight:800}.preparation-observation{background:var(--subtle);border-left:3px solid #f97316;padding:9px}.preparation-detail-dialog table{border-collapse:collapse;width:100%;min-width:950px}.preparation-detail-dialog th,.preparation-detail-dialog td{border-bottom:1px solid var(--border);text-align:left;padding:7px;font-size:11px}.preparation-detail-dialog th{background:var(--subtle);position:sticky;top:0}.preparation-detail-dialog tr.combo-component td:nth-child(3){color:var(--muted);padding-left:25px}.preparation-confirm-dialog>div{padding:15px;overflow:auto}.preparation-confirm-dialog .field{gap:5px;display:grid}.preparation-confirm-dialog select{border:1px solid var(--border);background:var(--surface);height:36px;color:var(--text);border-radius:5px}@media (width<=1100px){.preparation-filter-bar,.preparation-detail-summary{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (width<=650px){.preparation-draft-control{flex-direction:column;align-items:stretch}.preparation-filter-bar{grid-template-columns:1fr}.preparation-detail-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.preparation-modal-backdrop{padding:0}.preparation-detail-dialog,.preparation-confirm-dialog{border-radius:0;width:100vw;max-height:100dvh}}.desktop-relay-panel{border:1px solid var(--border);background:var(--subtle);border-radius:7px;gap:10px;margin:0 16px 14px;padding:12px;display:grid}.desktop-relay-panel>div:first-child{gap:3px;display:grid}.desktop-relay-panel p{color:var(--muted);margin:0;font-size:11px}.desktop-relay-actions{gap:7px;display:flex}.desktop-relay-access{grid-template-columns:minmax(0,2fr) minmax(150px,1fr);gap:8px;display:grid}.desktop-relay-access label{border:1px solid var(--border);background:var(--surface);color:var(--muted);border-radius:6px;gap:3px;padding:8px;font-size:10px;display:grid}.desktop-relay-access strong{overflow-wrap:anywhere;color:var(--text);font-size:12px}.desktop-relay-access>small{color:var(--muted);grid-column:1/-1}.desktop-pairing-code{letter-spacing:4px;font-size:20px!important}.desktop-relay-devices{gap:5px;display:grid}.desktop-relay-devices article{border-top:1px solid var(--border);justify-content:space-between;align-items:center;gap:8px;padding:7px 0;display:flex}.desktop-relay-devices article div{display:grid}.desktop-relay-devices small{color:var(--muted);font-size:10px}@media (width<=680px){.desktop-relay-access{grid-template-columns:1fr}.desktop-relay-access>small{grid-column:auto}}.desktop-offline-page{gap:10px;max-width:1500px;display:grid}.desktop-offline-page>.surface{padding:12px}.desktop-offline-form{gap:10px;display:grid}.desktop-offline-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;display:grid}.desktop-offline-grid .full{grid-column:1/-1}.desktop-offline-line-entry{align-items:end;gap:8px;display:flex}.desktop-offline-line-entry .fluid{flex:1}.desktop-offline-line-entry .compact{width:150px}.desktop-offline-form-footer{border-top:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;padding-top:10px;display:flex}.desktop-offline-home{gap:12px;display:grid}.desktop-offline-home h2,.desktop-offline-home p{margin:0}.desktop-offline-home>div,.offline-invoice-readiness{flex-wrap:wrap;gap:8px;display:flex}.offline-invoice-readiness span{border:1px solid var(--border);background:var(--surface-subtle);border-radius:6px;align-items:center;gap:8px;padding:7px 10px;display:flex}.offline-real-invoice{background:var(--surface);border:1px solid var(--border);gap:12px;width:100%;max-width:900px;margin-inline:auto;padding:18px;display:grid}.offline-real-invoice>header,.offline-real-invoice>footer{justify-content:space-between;align-items:center;gap:12px;display:flex}.offline-real-invoice h2,.offline-real-invoice p{margin:0}.offline-real-invoice dl{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0;display:grid}.offline-real-invoice dl div{gap:2px;display:grid}.offline-real-invoice dt{color:var(--text-muted);font-size:12px}.offline-real-invoice dd{margin:0;font-weight:700}.offline-real-invoice table{border-collapse:collapse;width:100%}.offline-real-invoice th,.offline-real-invoice td{border-bottom:1px solid var(--border);text-align:left;padding:7px}@media print{body:has(.offline-real-invoice) *{visibility:hidden}.offline-real-invoice,.offline-real-invoice *{visibility:visible}.offline-real-invoice{border:0;max-width:none;position:absolute;inset:0}.offline-real-invoice .no-print{display:none}}.desktop-connectivity{text-align:left;min-height:40px}.desktop-connectivity-copy{gap:1px;line-height:1.05;display:grid}.desktop-connectivity-copy strong{font-size:11px}.desktop-connectivity-copy small{color:var(--muted);font-size:9px;font-weight:700}.desktop-sync-body{min-height:0;overflow:auto}.desktop-conflict-list h3{margin:4px 0 8px;font-size:12px}.offline-payment-summary{grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;display:grid}.offline-payment-summary>span{border:1px solid var(--border);background:var(--subtle);min-width:0;color:var(--muted);border-radius:6px;padding:9px 10px;font-size:10px}.offline-payment-summary strong{color:var(--text);text-overflow:ellipsis;white-space:nowrap;margin-top:3px;font-size:13px;display:block;overflow:hidden}.offline-payment-amounts input{font-weight:750}.offline-provisional-receipt{background:var(--surface);color:var(--text);border:1px dashed #f97316;gap:8px;padding:14px;display:grid}.offline-provisional-receipt h2,.offline-provisional-receipt p{text-align:center;margin:0}.offline-provisional-receipt dl{grid-template-columns:repeat(3,1fr);gap:7px;margin:0;display:grid}.offline-provisional-receipt dl>div{border:1px solid var(--border);padding:7px}.offline-provisional-receipt dt{color:var(--muted);text-transform:uppercase;font-size:9px}.offline-provisional-receipt dd{margin:3px 0 0;font-weight:800}.offline-provisional-receipt>strong{color:#b45309;text-align:center}@media (width<=900px){.desktop-sync-summary,.desktop-offline-grid,.offline-payment-summary,.offline-provisional-receipt dl{grid-template-columns:1fr 1fr}}@media (width<=600px){.desktop-sync-summary,.desktop-offline-grid,.offline-payment-summary,.offline-provisional-receipt dl{grid-template-columns:1fr}.desktop-offline-line-entry{flex-direction:column;align-items:stretch}.desktop-offline-line-entry .compact{width:100%}}@media print{body:has(.offline-provisional-receipt) *{visibility:hidden}.offline-provisional-receipt,.offline-provisional-receipt *{visibility:visible}.offline-provisional-receipt{border:0;width:80mm;margin:0;position:absolute;inset:0}.offline-provisional-receipt .no-print{display:none}}.billing-offline-badge{color:#b45309;margin-top:.15rem;font-size:.72rem;font-weight:700;display:block}.offline-cash-dialog{max-width:480px}.offline-cash-dialog form{gap:0;display:grid}.offline-cash-total{color:#ea580c;margin-bottom:1rem;font-size:2rem;display:block}.billing-preview:not(.prefacture-preview) .billing-preview-body{color:#172033;background:#fff}.billing-preview:not(.prefacture-preview) .billing-preview-body :is(h3,p,span,strong,small,td){color:#172033}.billing-preview:not(.prefacture-preview) .billing-preview-body :is(.table-scroll,table,tbody,tr,td){background:#fff}.billing-preview:not(.prefacture-preview) .billing-preview-body th{color:#9a3412;background:#fff7ed;border-color:#fed7aa}.billing-preview:not(.prefacture-preview) .billing-preview-body td{border-color:#dbe3ec}.billing-preview.prefacture-preview,.billing-preview.prefacture-preview .billing-preview-body,.billing-preview.prefacture-preview .billing-preview-body :is(.table-scroll,table,tbody,tr,td){background:var(--surface);color:var(--text)}.billing-preview.prefacture-preview .billing-preview-body :is(h3,p,span,strong,small,td){color:var(--text)}.billing-preview.prefacture-preview .billing-preview-body th{border-color:var(--border);background:var(--subtle);color:var(--text)}.billing-preview.prefacture-preview .billing-preview-body td{border-color:var(--border)}.prefacture-detail-dialog .prefacture-summary>div.warning,.prefacture-detail-dialog .prefacture-detail-table tr.missing-line,.prefacture-detail-dialog .missing-report{color:#ffedd5;background:#3a2418}.prefacture-detail-dialog .prefacture-summary>div.warning :is(small,strong),.prefacture-detail-dialog .prefacture-detail-table tr.missing-line :is(td,strong,small),.prefacture-detail-dialog .missing-report :is(h3,p){color:#ffedd5}.delivery-intent-panel{gap:9px;display:grid}.delivery-intent-grid{grid-template-columns:150px 135px 120px 120px minmax(190px,1.5fr) minmax(145px,1fr) 130px minmax(150px,1fr);align-items:end;gap:8px;display:grid}.delivery-intent-grid .field{min-width:0}.delivery-intent-grid .field input,.delivery-intent-grid .field select{height:34px;min-height:34px;font-size:12px}.delivery-intent-grid .delivery-address,.delivery-intent-grid .delivery-observation{grid-column:span 2}.delivery-help,.delivery-version-note{color:var(--muted);font-size:11px}.delivery-agenda-page{gap:12px;display:grid}.delivery-summary-strip{border:1px solid var(--border);background:var(--surface);border-radius:8px;grid-template-columns:repeat(6,minmax(0,1fr));display:grid;overflow:hidden}.delivery-summary-strip button{border:0;border-right:1px solid var(--border);min-height:66px;color:var(--text);text-align:left;background:0 0;align-content:center;gap:3px;padding:8px 12px;display:grid}.delivery-summary-strip button:last-child{border-right:0}.delivery-summary-strip button:hover{background:var(--subtle)}.delivery-summary-strip small{color:var(--muted);font-size:11px}.delivery-summary-strip strong{font-size:22px}.delivery-agenda-surface{padding:0;overflow:visible}.delivery-tabs{border-bottom:1px solid var(--border);gap:3px;padding:8px 10px 0;display:flex;overflow-x:auto}.delivery-tabs button{min-height:35px;color:var(--muted);white-space:nowrap;background:0 0;border:0;border-bottom:2px solid #0000;padding:0 13px;font-size:12px;font-weight:800}.delivery-tabs button.active{border-bottom-color:var(--accent);color:var(--text)}.delivery-filter-bar{grid-template-columns:minmax(220px,1.7fr) minmax(130px,1fr) minmax(135px,1fr) minmax(145px,1fr) 140px repeat(4,auto);align-items:end;gap:7px;padding:10px;display:grid}.delivery-filter-bar .field{min-width:0}.delivery-filter-bar input,.delivery-filter-bar select,.delivery-filter-bar .button{height:34px;min-height:34px;font-size:12px}.delivery-table{border-top:1px solid var(--border);border-bottom:1px solid var(--border);max-height:min(58vh,620px);overflow:auto}.delivery-table table{min-width:1320px}.delivery-table thead{z-index:2;position:sticky;top:0}.delivery-table th{background:var(--subtle)}.delivery-table td>small,.delivery-table td>span{display:block}.delivery-table td>small{color:var(--muted);margin-top:3px;font-size:10px}.delivery-row-actions{justify-content:flex-end;align-items:center;gap:5px;display:flex}.delivery-quick-status{border:1px solid color-mix(in srgb, var(--accent) 40%, var(--border));background:color-mix(in srgb, var(--accent) 8%, var(--surface));min-height:29px;color:var(--accent-strong);white-space:nowrap;border-radius:6px;padding:3px 8px;font-size:10px;font-weight:800}.delivery-quick-status:hover{background:color-mix(in srgb, var(--accent) 14%, var(--surface))}.delivery-table tr.status-entregada,.delivery-table tr.status-retiro_completado{background:color-mix(in srgb, #16a34a 7%, var(--surface))}.delivery-table tr.status-en_ruta{background:color-mix(in srgb, #2563eb 7%, var(--surface))}.delivery-table tr.status-cancelada{opacity:.7}.delivery-badge{border:1px solid var(--border);background:var(--subtle);min-height:23px;color:var(--text-soft);white-space:nowrap;border-radius:6px;align-items:center;padding:2px 7px;font-size:10px;font-weight:800;display:inline-flex!important}.delivery-badge.status.entregada,.delivery-badge.status.retiro_completado{color:#166534;background:#dcfce7;border-color:#86efac}.delivery-badge.status.en_ruta{color:#1d4ed8;background:#dbeafe;border-color:#93c5fd}.delivery-badge.status.cancelada{color:#991b1b;background:#fee2e2;border-color:#fecaca}.delivery-badge.modality.inmediata{color:#9a3412;background:#ffedd5;border-color:#fdba74}.delivery-badge.unscheduled,.delivery-badge.modality.sin_definir{color:#92400e;background:#fef3c7;border-color:#fde68a}.danger-text{font-weight:800;color:#b91c1c!important}.delivery-dialog{background:var(--surface);width:min(980px,100vw - 28px);max-height:calc(100dvh - 28px);color:var(--text);border:0;border-radius:8px;margin:auto;padding:0;overflow:hidden;box-shadow:0 24px 80px #0f172a4d}.delivery-dialog::backdrop{background:#0f172a85}.delivery-dialog>form{grid-template-rows:auto minmax(0,1fr) auto;max-height:calc(100dvh - 28px);display:grid}.delivery-dialog header,.delivery-dialog footer{border-bottom:1px solid var(--border);background:var(--surface);justify-content:space-between;align-items:center;gap:12px;padding:13px 16px;display:flex}.delivery-dialog footer{border-top:1px solid var(--border);border-bottom:0;justify-content:flex-end}.delivery-dialog header h2,.delivery-dialog header p{margin:0}.delivery-dialog header h2{font-size:19px}.delivery-dialog header p{color:var(--muted);margin-top:3px;font-size:11px}.delivery-dialog header>button{border:1px solid var(--border);background:var(--surface);width:34px;height:34px;color:var(--text);border-radius:6px;place-items:center;display:grid}.delivery-dialog-body{padding:15px 16px;overflow:auto}.delivery-form-grid,.delivery-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;display:grid}.delivery-form-grid .wide,.delivery-detail-grid .wide{grid-column:1/-1}.delivery-form-grid textarea{border:1px solid var(--border-strong);background:var(--surface);min-height:72px;color:var(--text);resize:vertical;border-radius:7px;padding:8px 10px}.delivery-detail-grid>div{border-bottom:1px solid var(--border);align-content:center;gap:4px;min-height:58px;padding:7px 3px;display:grid}.delivery-detail-grid small{color:var(--muted);text-transform:uppercase;font-size:10px}.delivery-evidence{margin:0}.delivery-evidence img{border:1px solid var(--border);object-fit:contain;background:var(--subtle);border-radius:7px;width:min(100%,720px);max-height:440px;margin:0 auto;display:block}.delivery-evidence figcaption{color:var(--muted);text-align:center;margin-top:6px;font-size:10px}.delivery-audit{gap:7px;display:grid}.delivery-audit h3{margin:4px 0;font-size:14px}.delivery-audit p{border-bottom:1px solid var(--border);grid-template-columns:minmax(160px,.8fr) minmax(220px,1.3fr) 1fr;gap:8px;margin:0;padding:7px 0;display:grid}.delivery-audit p strong{text-transform:capitalize;font-size:11px}.delivery-audit p span,.delivery-audit p small{color:var(--muted);font-size:10px}.invoice-delivery-dialog .delivery-intent-panel{box-shadow:none;border:0;padding:0}.invoice-delivery-dialog .delivery-intent-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.invoice-delivery-dialog .delivery-address,.invoice-delivery-dialog .delivery-observation{grid-column:span 2}@media (width<=1180px){.delivery-summary-strip{grid-template-columns:repeat(3,1fr)}.delivery-summary-strip button:nth-child(3){border-right:0}.delivery-filter-bar{grid-template-columns:repeat(4,minmax(0,1fr))}.delivery-filter-bar .search{grid-column:span 2}.delivery-intent-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (width<=720px){.delivery-summary-strip{grid-template-columns:repeat(2,1fr)}.delivery-summary-strip button:nth-child(3){border-right:1px solid var(--border)}.delivery-summary-strip button:nth-child(2n){border-right:0}.delivery-filter-bar,.delivery-intent-grid,.invoice-delivery-dialog .delivery-intent-grid{grid-template-columns:1fr 1fr}.delivery-filter-bar .search,.delivery-intent-grid .delivery-address,.delivery-intent-grid .delivery-observation,.invoice-delivery-dialog .delivery-address,.invoice-delivery-dialog .delivery-observation{grid-column:1/-1}.delivery-form-grid,.delivery-detail-grid{grid-template-columns:1fr}.delivery-form-grid .wide,.delivery-detail-grid .wide{grid-column:auto}.delivery-dialog{width:calc(100vw - 12px);max-height:calc(100dvh - 12px)}.delivery-dialog>form{max-height:calc(100dvh - 12px)}}.preparation-drafts-page,.delivery-agenda-page,.preparation-table,.delivery-agenda-surface{width:100%;min-width:0;max-width:100%}.preparation-drafts-page>*,.delivery-agenda-page>*,.preparation-table>*,.delivery-agenda-surface>*{min-width:0}.preparation-tabs,.delivery-tabs{overscroll-behavior-inline:contain;width:100%;max-width:100%}.preparation-table .table-scroll,.preparation-detail-dialog .table-scroll,.delivery-table{overscroll-behavior:contain;scrollbar-gutter:stable;width:100%;max-width:100%}.preparation-detail-dialog>header>div,.delivery-dialog>form>header>div{min-width:0}.preparation-detail-dialog>header h2,.preparation-detail-dialog>header p,.delivery-dialog>form>header h2,.delivery-dialog>form>header p{overflow-wrap:anywhere}@media (width<=900px){.preparation-filter-bar,.delivery-filter-bar{grid-template-columns:repeat(2,minmax(0,1fr))}.delivery-filter-bar .search{grid-column:1/-1}.preparation-detail-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.delivery-audit p{grid-template-columns:minmax(120px,.8fr) minmax(180px,1.2fr)}.delivery-audit p small{grid-column:1/-1}}@media (width<=650px){.preparation-drafts-page,.delivery-agenda-page{padding:10px}.preparation-drafts-page .page-header,.delivery-agenda-page .page-header{gap:10px;margin-bottom:4px}.preparation-drafts-page .page-header h1,.delivery-agenda-page .page-header h1{font-size:22px}.preparation-drafts-page .page-actions,.delivery-agenda-page .page-actions{flex-wrap:wrap;display:flex}.preparation-drafts-page .page-actions .button,.delivery-agenda-page .page-actions .button{flex:140px}.preparation-tabs{gap:12px;overflow-x:auto}.preparation-filter-bar,.delivery-filter-bar{grid-template-columns:1fr;padding:8px}.delivery-filter-bar .search{grid-column:auto}.preparation-filter-bar .button,.delivery-filter-bar .button{width:100%}.delivery-summary-strip button{min-height:58px;padding:7px 9px}.delivery-summary-strip strong{font-size:19px}.table-status,.table-pagination,.delivery-agenda-page .pagination{flex-direction:column;align-items:stretch}.table-pagination>div,.delivery-agenda-page .pagination{grid-template-columns:repeat(2,minmax(0,1fr));width:100%;display:grid}.delivery-agenda-page .pagination span{text-align:center;grid-area:1/1/auto/-1}.preparation-detail-dialog>header,.preparation-detail-dialog>footer,.preparation-confirm-dialog>header,.preparation-confirm-dialog>footer,.delivery-dialog header,.delivery-dialog footer{padding:10px 12px}.preparation-detail-dialog>footer{flex-direction:column;align-items:stretch}.preparation-detail-body,.delivery-dialog-body{padding:11px}.delivery-audit p{grid-template-columns:1fr}.delivery-audit p small{grid-column:auto}}@media (width<=420px){.delivery-summary-strip{grid-template-columns:1fr}.delivery-summary-strip button,.delivery-summary-strip button:nth-child(3),.delivery-summary-strip button:nth-child(2n){border-right:0;border-bottom:1px solid var(--border)}.delivery-summary-strip button:last-child{border-bottom:0}.preparation-detail-summary{grid-template-columns:1fr}.preparation-detail-dialog>footer .button,.preparation-confirm-dialog>footer .button,.delivery-dialog footer .button{flex:1 1 0}}.principal-products-page{gap:12px;display:grid}.principal-product-filter-bar{grid-template-columns:minmax(240px,1fr) 170px auto auto;align-items:end;gap:8px;padding:10px 12px;display:grid}.principal-product-filter-bar .field{min-width:0}.principal-product-filter-bar :is(input,select,.button){height:34px;min-height:34px;font-size:12px}.principal-products-table-surface{padding:0;overflow:visible}.principal-products-table{max-height:min(65vh,660px)}.principal-products-table table{min-width:1180px}.principal-products-table thead{z-index:2;position:sticky;top:0}.principal-products-table th{background:var(--subtle)}.principal-products-table td>small{color:var(--muted);margin-top:2px;font-size:10px;display:block}.table-action-button{border:1px solid var(--border);background:var(--surface);width:34px;height:32px;color:var(--text);border-radius:6px;place-items:center;font-size:19px;font-weight:800;display:grid}.principal-product-dialog{background:var(--surface);width:min(940px,100vw - 28px);max-height:calc(100dvh - 28px);color:var(--text);border:0;border-radius:8px;margin:auto;padding:0;overflow:hidden;box-shadow:0 24px 80px #0f172a4d}.principal-product-dialog::backdrop{background:#0f172a85}.principal-product-dialog>form{grid-template-rows:auto minmax(0,1fr) auto;max-height:calc(100dvh - 28px);display:grid}.principal-product-dialog header,.principal-product-dialog footer{border-bottom:1px solid var(--border);background:var(--surface);justify-content:space-between;align-items:center;gap:12px;padding:13px 16px;display:flex}.principal-product-dialog footer{border-top:1px solid var(--border);border-bottom:0;justify-content:flex-end}.principal-product-dialog header h2,.principal-product-dialog header p{margin:0}.principal-product-dialog header h2{font-size:19px}.principal-product-dialog header p{color:var(--muted);margin-top:3px;font-size:11px}.principal-product-dialog header>button{border:1px solid var(--border);background:var(--surface);width:34px;height:34px;color:var(--text);border-radius:6px;place-items:center;font-size:18px;display:grid}.principal-product-dialog-body{padding:15px 16px;overflow:auto}.principal-product-scope-note{border-left:3px solid var(--accent);background:var(--subtle);color:var(--muted);margin:0 0 12px;padding:7px 10px;font-size:11px}.principal-product-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;display:grid}.principal-product-form-grid .wide{grid-column:1/-1}.principal-product-form-grid textarea{border:1px solid var(--border-strong);background:var(--surface);color:var(--text);resize:vertical;border-radius:7px;padding:8px 10px}.principal-product-active{min-height:34px;color:var(--text);align-self:end;align-items:center;gap:8px;font-size:12px;font-weight:700;display:flex}.principal-product-active input{width:16px;height:16px}@media (width<=760px){.principal-product-filter-bar{grid-template-columns:1fr 1fr}.principal-product-filter-bar .search{grid-column:1/-1}.principal-product-form-grid{grid-template-columns:1fr}.principal-product-form-grid .wide{grid-column:auto}.principal-product-dialog{width:calc(100vw - 12px);max-height:calc(100dvh - 12px)}.principal-product-dialog>form{max-height:calc(100dvh - 12px)}}.mobile-nav-toggle,.sidebar-close,.sidebar-backdrop{display:none}@media (width<=960px){html,body,#root{width:100%;max-width:100%;min-height:100%}body{overflow:hidden}.app-shell,.app-shell.billing-focus{width:100%;height:100dvh;min-height:100dvh;display:block;overflow:hidden}.app-content,.billing-focus .app-content{overscroll-behavior:contain;width:100%;min-width:0;height:100dvh;overflow:hidden auto}.sidebar{z-index:1200;width:min(320px,88vw);max-width:100%;height:100dvh;padding:14px 12px;transition:transform .18s;display:flex;position:fixed;inset:0 auto 0 0;transform:translate(-105%);box-shadow:18px 0 50px #02061752}.sidebar.mobile-open{transform:translate(0)}.sidebar .brand-mark{border-bottom:1px solid #32383e;grid-template-columns:38px minmax(0,1fr) 36px;align-items:center;padding:0 4px 13px;display:grid}.sidebar-close{color:#fff;background:0 0;border:1px solid #4b5563;border-radius:6px;place-items:center;width:34px;height:34px;font-size:18px;display:grid}.sidebar-nav{margin-top:12px;display:grid;overflow:hidden auto}.nav-item,.nav-group,.nav-group-heading,.nav-subitem{width:100%;max-width:100%}.nav-group{display:grid}.nav-group-heading{grid-template-columns:minmax(0,1fr) 38px}.nav-submenu{border-left:1px solid #3f4851;margin-left:10px;padding:2px 0 4px 8px;display:grid}.sidebar-footer{display:grid}.sidebar-backdrop{z-index:1190;opacity:0;pointer-events:none;background:#0206178c;border:0;width:100%;height:100%;transition:opacity .18s;position:fixed;inset:0}.sidebar-backdrop.visible{opacity:1;pointer-events:auto;display:block}.topbar{z-index:80;background:var(--surface);gap:8px;min-height:auto;padding:8px 12px;display:grid;position:sticky;top:0;box-shadow:0 4px 14px #0f172a12}.topbar-identity{align-items:center;gap:9px;min-width:0;display:flex}.topbar-identity>strong{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.topbar-identity>span{display:none}.topbar-identity .mobile-nav-toggle span{display:block}.mobile-nav-toggle{border:1px solid var(--border-strong);background:var(--surface);min-height:36px;color:var(--text-strong);border-radius:6px;align-items:center;gap:7px;padding:0 10px;font-weight:800;display:inline-flex}.mobile-nav-icon,.mobile-nav-icon:before,.mobile-nav-icon:after{background:currentColor;border-radius:999px;width:17px;height:2px;display:block}.mobile-nav-icon{position:relative}.mobile-nav-icon:before,.mobile-nav-icon:after{content:"";position:absolute;left:0}.mobile-nav-icon:before{top:-5px}.mobile-nav-icon:after{top:5px}.billing-mobile-nav-toggle{z-index:90;width:max-content;margin:8px 0 0 8px;position:sticky;top:8px;box-shadow:0 6px 18px #0f172a24}.topbar-controls{scrollbar-width:thin;align-items:end;gap:7px;width:100%;min-width:0;padding-bottom:2px;display:flex;overflow-x:auto}.context-selector{grid-template-columns:minmax(150px,1fr) minmax(150px,1fr);align-items:end;gap:7px;min-width:min(420px,78vw);display:grid}.context-selector .active-company,.context-selector label{min-width:0}.context-selector .active-company{gap:2px;display:grid}.context-selector .active-company strong{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.context-selector select,.context-selector label:nth-child(2) select,.context-selector label:nth-child(3) select{width:100%;min-width:0}.readonly-indicator{white-space:nowrap;flex:none}.page-content,.billing-workspace,.pos-page{width:100%;min-width:0;max-width:100%}.page-content{padding:14px}.page-header{flex-wrap:wrap;align-items:flex-start}.page-header>div:first-child{min-width:min(100%,260px)}.page-actions,.inline-actions{flex-wrap:wrap;max-width:100%}.surface,form,fieldset,.field,.table-scroll{min-width:0;max-width:100%}.table-scroll{overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch;width:100%;overflow-x:auto}[class$=-filter-bar],[class*=-filter-bar\ ],.filter-bar,.client-filters,.supplier-filters{grid-template-columns:repeat(2,minmax(0,1fr))!important}dialog,[role=dialog]{max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}dialog>form{max-width:100%;max-height:calc(100dvh - 16px)}img,video,canvas,svg{max-width:100%}}@media (width<=600px){.topbar{padding:7px 9px}.topbar-controls{grid-template-columns:auto minmax(0,1fr);display:grid;overflow:visible}.context-selector{grid-template-columns:minmax(0,1fr) minmax(0,1fr);width:100%;min-width:0}.readonly-indicator{display:none}.page-content{padding:10px}.page-header{gap:10px;display:grid}.page-header h1{font-size:clamp(22px,7vw,27px)}.page-actions{flex-wrap:nowrap;width:100%;padding-bottom:3px;display:flex;overflow-x:auto}.page-actions .button{flex:none}[class$=-filter-bar],[class*=-filter-bar\ ],.filter-bar,.client-filters,.supplier-filters{grid-template-columns:minmax(0,1fr)!important}[class$=-filter-bar] .search,[class*=-filter-bar\ ] .search,[class$=-filter-bar] [class$=-search],[class*=-filter-bar\ ] [class$=-search]{grid-column:auto!important}[class$=-filter-bar] .button,[class*=-filter-bar\ ] .button,.filter-bar .button{width:100%}.billing-workspace .invoice-header-grid,.billing-workspace .client-smart-grid,.billing-workspace .product-entry-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.billing-workspace .classic-document-main .invoice-header-grid.with-principal-trigger{grid-template-columns:42px repeat(2,minmax(0,1fr))}.billing-workspace .client-smart-grid .client-smart,.billing-workspace .product-entry-grid .product-search{grid-column:1/-1}.billing-workspace .product-entry-grid .add-line{width:100%}dialog,[role=dialog]{width:calc(100vw - 8px);max-width:calc(100vw - 8px);max-height:calc(100dvh - 8px);margin:auto}.employee-form-actions{grid-template-columns:repeat(2,minmax(0,1fr));bottom:6px;left:6px;right:6px}}@media (prefers-reduced-motion:reduce){.sidebar,.sidebar-backdrop{transition:none}}.asset-fleet-page{min-width:0}.asset-fleet-summary{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-bottom:12px;display:grid}.asset-fleet-summary>div{border:1px solid var(--border);background:var(--surface);border-radius:6px;min-width:0;padding:12px 14px}.asset-fleet-summary small,.asset-fleet-summary strong{display:block}.asset-fleet-summary small{color:var(--muted);font-size:12px}.asset-fleet-summary strong{margin-top:5px;font-size:21px}.asset-fleet-tabs{border-bottom:1px solid var(--border);gap:4px;margin-bottom:12px;display:flex;overflow-x:auto}.asset-fleet-tabs button{color:inherit;font:inherit;cursor:pointer;background:0 0;border:0;border-bottom:2px solid #0000;flex:none;padding:9px 12px}.asset-fleet-tabs button.active{border-bottom-color:var(--accent);color:var(--accent);font-weight:700}.asset-fleet-page table td small{color:var(--muted);white-space:nowrap;margin-top:2px;display:block}.asset-fleet-dialog{width:min(960px,100vw - 24px);max-width:960px}.asset-route-picker,.expense-operational-fields,.asset-value-fields{border:1px solid var(--border);border-radius:6px;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 12px;padding:12px;display:grid}.asset-route-picker>label{align-items:center;gap:7px;min-height:32px;display:flex}.expense-operational-fields .field,.asset-value-fields .field{min-width:0}@media (width<=980px){.asset-fleet-summary,.asset-route-picker,.expense-operational-fields,.asset-value-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=600px){.asset-fleet-summary,.asset-route-picker,.expense-operational-fields,.asset-value-fields{grid-template-columns:minmax(0,1fr)}.asset-fleet-summary>div{padding:9px 11px}.asset-fleet-dialog{width:calc(100vw - 8px);max-width:calc(100vw - 8px)}}.promotion-create-bar{align-items:end;gap:8px;display:flex}.promotion-create-bar .fluid{min-width:260px}@media (width<=650px){.promotion-create-bar{flex-direction:column;align-items:stretch}.promotion-create-bar .fluid{min-width:0}}.branch-change-dialog{z-index:5200;background:var(--surface);width:min(560px,100vw - 24px);color:var(--text);border:0;border-radius:8px;margin:auto;padding:0;position:fixed;inset:0;box-shadow:0 28px 90px #0f172a73}.branch-change-dialog::backdrop{background:#0f172a9e}.branch-change-shell>header,.branch-change-shell>section,.branch-change-shell>footer{padding:14px 16px}.branch-change-shell>header{border-bottom:1px solid var(--border)}.branch-change-shell h2,.branch-change-shell p{margin:0}.branch-change-shell header small{color:#ea580c;font-size:9px;font-weight:900}.branch-change-shell h2{margin-top:2px;font-size:18px}.branch-change-shell>section{gap:12px;display:grid}.branch-change-shell>section>p{color:var(--muted);font-size:12px}.branch-change-route{grid-template-columns:1fr auto 1fr;align-items:center;gap:10px;display:grid}.branch-change-route span{border:1px solid var(--border);background:var(--canvas);border-radius:6px;gap:3px;padding:10px;display:grid}.branch-change-route small{color:var(--muted);font-size:9px}.branch-change-route b{color:#f97316}.branch-change-warning{border-left:3px solid #f97316;padding:8px 10px;color:#9a3412!important;background:#fff7ed!important}.branch-change-shell>footer{border-top:1px solid var(--border);justify-content:flex-end;gap:8px;display:flex}.client-profile-files-panel{gap:14px;min-width:0;display:grid}.client-profile-section-heading{justify-content:space-between;align-items:flex-end;gap:12px;display:flex}.client-profile-section-heading h3{margin:0 0 3px;font-size:16px}.client-profile-section-heading p{color:var(--muted);margin:0;font-size:13px}.client-profile-section-heading>span{color:var(--accent);font-weight:800}.client-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;display:grid}.client-photo-grid>article{border:1px solid var(--border);background:var(--surface);border-radius:8px;grid-template-columns:minmax(140px,220px) minmax(120px,1fr);align-items:center;gap:12px;padding:12px;display:grid}.client-photo-grid article>div:nth-child(2){gap:4px;display:grid}.client-photo-grid small{color:var(--muted);overflow-wrap:anywhere}.client-photo-preview{aspect-ratio:16/9;border:1px dashed var(--border);background:var(--subtle);color:var(--muted);border-radius:6px;place-items:center;font-size:12px;display:grid;overflow:hidden}.client-photo-preview img{object-fit:cover;width:100%;height:100%}.client-profile-file-actions{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.client-profile-file-actions .button{min-height:32px;padding:6px 10px;font-size:12px}.client-document-upload,.client-promotion-create{border:1px solid var(--border);background:var(--subtle);border-radius:8px;align-items:flex-end;gap:10px;padding:12px;display:flex}.client-document-upload .field,.client-promotion-create .field{margin:0}.client-discount-form{border:1px solid var(--border);background:var(--subtle);border-radius:8px;grid-template-columns:repeat(4,minmax(135px,1fr));gap:10px;padding:14px;display:grid}.client-discount-variants{border:1px solid var(--border);background:var(--surface);border-radius:6px;grid-column:span 2;min-width:0;margin:0;padding:7px 9px}.client-discount-variants legend{color:var(--muted);padding:0 4px;font-size:11px;font-weight:800}.client-discount-variants-heading{color:var(--text);justify-content:space-between;align-items:center;gap:8px;margin-bottom:6px;font-size:11px;font-weight:800;display:flex}.client-discount-variants-heading button{color:var(--accent);cursor:pointer;background:0 0;border:0;padding:0;font-size:10px;font-weight:800}.client-discount-variant-options{flex-wrap:wrap;gap:5px;max-height:92px;display:flex;overflow:auto}.client-discount-variant-options label{border:1px solid var(--border);background:var(--canvas);cursor:pointer;border-radius:5px;align-items:center;gap:5px;padding:5px 7px;font-size:11px;display:flex}.client-discount-variant-options input{accent-color:var(--accent);margin:0}.client-discount-variants small{color:var(--muted);font-size:10px}.client-discount-form .checkbox-field{align-self:end;min-height:36px}.client-discount-form .compact-filter-actions{grid-column:span 2;align-self:end}.client-profile-files-panel .table-scroll{max-height:440px}.client-profile-files-panel .disabled{pointer-events:none;opacity:.5}@media (width<=900px){.client-photo-grid{grid-template-columns:1fr}.client-discount-form{grid-template-columns:repeat(2,minmax(0,1fr))}.client-document-upload,.client-promotion-create{flex-direction:column;align-items:stretch}.client-document-upload .button,.client-promotion-create .button{width:100%}}@media (width<=560px){.client-photo-grid>article,.client-discount-form{grid-template-columns:1fr}.client-discount-form .compact-filter-actions,.client-discount-variants{grid-column:auto}.client-profile-section-heading{flex-direction:column;align-items:flex-start}}.client-benefit-indicator{color:#9a3412;background:#fff7ed;border:1px solid #fed7aa;border-radius:999px;margin:6px 0 0 6px;padding:2px 7px;font-size:9px;font-weight:900;display:inline-flex}
