.empleado-layout{background:#f3f4f6;flex-direction:column;min-height:100vh;display:flex}.empleado-header{z-index:900;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#fffffff5;border-bottom:1px solid #e5e7eb;flex-shrink:0;justify-content:center;align-items:center;height:64px;display:flex;position:sticky;top:0}.empleado-header-inner{justify-content:space-between;align-items:center;width:100%;max-width:500px;padding:0 14px;display:flex}.empleado-title{color:#111827;margin:0;font-size:15px;font-weight:800;line-height:1.1}.empleado-subtitle{color:#6b7280;margin:2px 0 0;font-size:12px;line-height:1.1}.empleado-logout-btn{cursor:pointer;background:#f3f4f6;border:none;border-radius:10px;padding:7px 11px;font-size:13px;font-weight:700}.empleado-logout-btn:active{transform:scale(.96)}.empleado-content{box-sizing:border-box;flex:1;width:100%;max-width:500px;margin:0 auto;padding:12px 12px 92px;overflow-y:auto}.empleado-bottom-nav{z-index:1000;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);box-sizing:border-box;background:#fffffff5;border:1px solid #e5e7eb;border-radius:24px;grid-template-columns:repeat(5,1fr);gap:4px;width:calc(100% - 24px);max-width:500px;min-height:66px;padding:7px;display:grid;position:fixed;bottom:12px;left:50%;overflow:hidden;transform:translate(-50%);box-shadow:0 14px 34px #0f172a2e}.nav-pill-indicator{z-index:0;background:#111827;border-radius:18px;width:calc(20% - 2.8px);height:calc(100% - 14px);transition:transform .25s;position:absolute;top:7px;left:7px}.nav-item{z-index:1;color:#6b7280;cursor:pointer;background:0 0;border:none;border-radius:18px;flex-direction:column;justify-content:center;align-items:center;gap:3px;min-height:52px;padding:6px 4px;transition:color .22s,transform .18s;display:flex;position:relative;transform:translateY(0)}.nav-item:before{display:none}.nav-item:active{transform:scale(.96)}.nav-item.active{color:#fff;transform:translateY(-2px)}.nav-icon,.nav-label{z-index:1;position:relative}.nav-icon{font-size:17px;line-height:1;transition:transform .22s}.nav-item.active .nav-icon{transform:translateY(-1px)scale(1.08)}.nav-label{font-size:10px;font-weight:800;line-height:1}body{background-color:#f3f4f6}.nav-icon-wrap{display:inline-flex;position:relative}.nav-badge{color:#fff;background:#dc2626;border:2px solid #fff;border-radius:999px;justify-content:center;align-items:center;min-width:17px;height:17px;padding:0 5px;font-size:10px;font-weight:900;line-height:1;display:inline-flex;position:absolute;top:-8px;right:-12px}.toast-container{z-index:2000;pointer-events:none;position:fixed;top:12px;left:50%;transform:translate(-50%)}.toast{color:#fff;background:#111827;border-radius:12px;align-items:center;gap:8px;padding:10px 14px;font-size:13px;font-weight:700;animation:.2s toastIn;display:inline-flex;box-shadow:0 10px 24px #00000040}@keyframes toastIn{0%{opacity:0;transform:translate(-50%,-10px)}to{opacity:1;transform:translate(-50%)}}*{box-sizing:border-box}body{color:#111827;background:#f3f4f6;margin:0;font-family:Arial,sans-serif}a{color:inherit;text-decoration:none}button{cursor:pointer;border:none;font-size:14px}.app-shell{min-height:100vh;display:flex}.sidebar{box-sizing:border-box;background:#fff;border-right:1px solid #e5e7eb;flex-direction:column;justify-content:space-between;gap:24px;width:280px;padding:22px 18px;display:flex}.sidebar-brand{flex-direction:column;gap:14px;display:flex}.sidebar-logo{object-fit:contain;width:100%;max-width:170px}.sidebar-brand-text{flex-direction:column;gap:4px;display:flex}.sidebar-title{color:#0f172a;margin:0;font-size:22px;font-weight:700;line-height:1.1}.sidebar-subtitle{color:#6b7280;margin:0;font-size:13px;line-height:1.4}.menu-link{color:#334155;background:0 0;border-radius:16px;padding:14px 16px;font-size:16px;font-weight:600;transition:all .2s}.menu-link:hover{color:#0f172a;background:#f8fafc}.menu-link.active{color:#fff;background:linear-gradient(135deg,#ea580c,#f97316);box-shadow:0 8px 20px #f9731640}.sidebar-footer{margin-top:auto}.logout-btn{color:#fff;background:#111827;border-radius:16px;width:100%;padding:14px 16px;font-weight:600;transition:background .2s}.logout-btn:hover{background:#1f2937}.content{box-sizing:border-box;flex:1;padding:32px}.topbar{background:#fff;border:1px solid #e5e7eb;border-radius:24px;justify-content:space-between;align-items:center;margin-bottom:24px;padding:24px 28px;display:flex}.topbar h1{color:#0f172a;margin:0;font-size:34px}.topbar p{color:#6b7280;margin:8px 0 0}.brand-badge{color:#c2410c;background:#ffedd5;border-radius:999px;padding:10px 16px;font-weight:600}.dashboard-grid{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:1.25rem;margin-bottom:1rem;display:grid}.content-grid{grid-template-columns:2fr 1fr;align-items:start;gap:1.25rem;margin-top:0;display:grid}.card{box-sizing:border-box;background:#fff;border:1px solid #e5e7eb;border-radius:24px;padding:24px}.dashboard-grid .metric-card{flex-direction:column;justify-content:space-between;height:auto;min-height:150px;display:flex}.metric-label{color:#6b7280;margin:0;font-size:14px}.metric-value{color:#111827;margin:14px 0 8px;font-size:42px;font-weight:700}.metric-help{color:#9ca3af;margin:0;font-size:14px}.section-header{justify-content:space-between;align-items:center;margin-bottom:18px;display:flex}.section-header h3,.actions-card h3{margin:0;font-size:20px}.section-header button{color:#fff;background:#111827;border-radius:14px;padding:10px 14px}.actions-card{flex-direction:column;gap:14px;display:flex}.primary-btn{color:#fff;background:#f97316;border-radius:16px;padding:14px 16px;font-weight:600}.dark-btn{color:#fff;background:#111827;border-radius:16px;padding:14px 16px;font-weight:600}.light-btn{color:#374151;background:#f3f4f6;border-radius:16px;padding:14px 16px;font-weight:600}.status-badge{color:#15803d;background:#dcfce7;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:600;display:inline-block}.login-page{background:#f3f4f6;justify-content:center;align-items:center;min-height:100vh;display:flex}.login-page form{background:#fff;border:1px solid #e5e7eb;border-radius:24px;flex-direction:column;gap:14px;width:340px;padding:28px;display:flex}.error{color:#dc2626;font-size:14px}@media (width<=980px){.app-shell{flex-direction:column}.sidebar{border-bottom:1px solid #e5e7eb;border-right:none;width:100%}.content-grid{grid-template-columns:1fr}.topbar{flex-direction:column;align-items:flex-start;gap:16px}.sidebar-logo{max-width:140px}}.status-inactive{color:#b91c1c;background:#fee2e2}.clickable-table tbody tr{cursor:pointer;transition:background .2s}.success{color:#15803d;font-size:14px}.th-with-filter input,.th-with-filter select{background:#fff;border:1px solid #d1d5db;border-radius:10px;padding:8px 10px;font-size:13px}.menu-group{flex-direction:column;gap:8px;margin:6px 0;display:flex}.menu-group-title{color:#94a3b8;text-transform:uppercase;letter-spacing:.04em;padding:8px 16px 2px;font-size:13px;font-weight:700}.menu-subgroup{flex-direction:column;gap:6px;padding-left:8px;display:flex}.section-actions{align-items:center;gap:12px;display:flex}.subtle-text{color:#6b7280;margin:6px 0 0;font-size:14px}.soft-green-btn{color:#166534;background:#dcfce7;border-radius:16px;padding:14px 16px;font-weight:600}.delete-icon-btn{color:#fff;background:#dc2626;border-radius:14px;justify-content:center;align-items:center;width:46px;height:46px;transition:all .2s;display:inline-flex}.delete-icon-btn:hover{background:#b91c1c}.delete-icon-btn:disabled{opacity:.6;cursor:not-allowed}.status-warning{color:#b45309;background:#fef3c7}.subtle-warning{color:#b45309;font-size:14px;font-weight:600}.row-warning{background:#fffaf0}.row-today{background:#ecfdf5}.start-btn{color:#fff;background:#22c55e;border-radius:10px;padding:8px 12px;font-weight:600}.start-btn:hover{background:#16a34a}.finish-btn{color:#fff;background:#ef4444;border-radius:10px;padding:8px 12px;font-weight:600}.finish-btn:hover{background:#dc2626}.actions-cell{gap:8px;display:flex}.action-btn{cursor:pointer;border:none;border-radius:999px;align-items:center;gap:6px;padding:8px 14px;font-size:13px;font-weight:600;transition:all .2s;display:inline-flex}.action-btn:disabled{opacity:.5;cursor:not-allowed}.btn-start{color:#fff;background:#22c55e}.btn-start:hover{background:#16a34a}.btn-pause{color:#fff;background:#f59e0b}.btn-pause:hover{background:#d97706}.btn-resume{color:#fff;background:#3b82f6}.btn-resume:hover{background:#2563eb}.btn-finish{color:#fff;background:#ef4444}.btn-finish:hover{background:#dc2626}.actions-cell{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.agenda-header{align-items:flex-start}.agenda-controls{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.agenda-select{background:#fff;border:1px solid #d1d5db;border-radius:14px;padding:12px 14px;font-size:14px}.agenda-grid{grid-template-columns:repeat(7,1fr);gap:14px;margin-top:20px;display:grid}.agenda-column{background:#f8fafc;border:1px solid #e5e7eb;border-radius:18px;min-height:420px;overflow:hidden}.agenda-column-header{background:#fff;border-bottom:1px solid #e5e7eb;padding:14px}.agenda-day-name{color:#0f172a;font-weight:700}.agenda-day-date{color:#64748b;margin-top:4px;font-size:13px}.agenda-column-body{flex-direction:column;gap:10px;padding:12px;display:flex}.agenda-empty{color:#94a3b8;padding:10px 4px;font-size:14px}.agenda-card{text-align:left;background:#fff;border:1px solid #e2e8f0;border-radius:16px;width:100%;padding:12px;transition:all .2s}.agenda-card:hover{border-color:#cbd5e1;box-shadow:0 4px 16px #0f172a0f}.agenda-card-top{justify-content:space-between;align-items:center;gap:8px;display:flex}.agenda-time{color:#334155;font-size:12px;font-weight:700}.agenda-title{color:#0f172a;margin-top:10px;font-size:14px;font-weight:700}.agenda-meta{color:#475569;flex-direction:column;gap:4px;margin-top:10px;font-size:12px;display:flex}.agenda-badge{border-radius:999px;justify-content:center;align-items:center;padding:4px 8px;font-size:11px;font-weight:700;display:inline-flex}.agenda-badge-green{color:#166534;background:#dcfce7}.agenda-badge-yellow{color:#92400e;background:#fef3c7}.agenda-badge-blue{color:#1d4ed8;background:#dbeafe}.agenda-badge-red{color:#b91c1c;background:#fee2e2}.agenda-badge-gray{color:#374151;background:#e5e7eb}@media (width<=1400px){.agenda-grid{grid-template-columns:repeat(4,1fr)}}@media (width<=1100px){.agenda-grid{grid-template-columns:repeat(2,1fr)}}@media (width<=700px){.agenda-grid{grid-template-columns:1fr}}.empleados-check-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.empleado-check-card{cursor:pointer;background:#fff;border:1px solid #d1d5db;border-radius:14px;align-items:center;gap:10px;padding:12px 14px;transition:all .2s;display:flex}.empleado-check-card:hover{background:#f8fafc;border-color:#94a3b8}.empleado-check-card.selected{background:#f0fdf4;border-color:#86efac}.empleados-empty{color:#94a3b8;font-size:14px}@media (width<=900px){.empleados-check-grid{grid-template-columns:1fr}}.empleado-multiselect{flex-direction:column;gap:12px;display:flex}.empleado-multiselect-label{color:#374151;font-size:14px;font-weight:600}.empleado-tags{flex-wrap:wrap;gap:8px;min-height:20px;display:flex}.empleado-tag{color:#c2410c;background:#fff7ed;border:1px solid #fdba74;border-radius:999px;align-items:center;gap:8px;padding:8px 12px;font-size:13px;font-weight:600;display:inline-flex}.empleado-tag-remove{color:#c2410c;background:0 0;width:18px;height:18px;padding:0;font-size:16px;line-height:1}.empleado-search-input{border:1px solid #d1d5db;border-radius:14px;padding:12px 14px;font-size:16px}.empleado-results{background:#fff;border:1px solid #e5e7eb;border-radius:14px;max-height:220px;overflow-y:auto}.empleado-result-item{text-align:left;color:#111827;background:#fff;border-bottom:1px solid #f1f5f9;width:100%;padding:12px 14px}.empleado-result-item:last-child{border-bottom:none}.empleado-result-item:hover{background:#f8fafc}.empleado-results-empty,.empleado-empty-selection{color:#94a3b8;font-size:14px}.mini-tags{flex-wrap:wrap;gap:6px;display:flex}.mini-tag{color:#334155;background:#f1f5f9;border-radius:999px;align-items:center;padding:4px 8px;font-size:12px;font-weight:600;display:inline-flex}.mini-tag-more{color:#c2410c;background:#fff7ed}.agenda-mini-tags{margin-top:6px}.agenda-add-btn{color:#166534;background:#dcfce7;border-radius:14px;width:100%;margin-bottom:8px;padding:10px 12px;font-weight:700;transition:all .2s}.agenda-add-btn:hover{background:#bbf7d0}.budget-totals{flex-wrap:wrap;justify-content:flex-end;gap:24px;margin-top:16px;font-size:15px;display:flex}.print-btn{color:#1f2937;background:#f8fafc;border:1px solid #cbd5e1;border-radius:14px;align-items:center;gap:8px;padding:10px 14px;font-weight:700;transition:all .2s;display:inline-flex}.print-btn:hover{background:#e2e8f0}.print-icon{font-size:16px}.budget-edit-table .budget-col-small{width:110px;min-width:110px}.budget-input-small{width:100%;min-width:80px}.budget-edit-concept{resize:vertical;width:100%;min-height:84px}.print-document{display:none}.print-header-top{grid-template-columns:1.25fr .85fr;gap:24px;margin-bottom:18px;display:grid}.print-brand-block{flex-direction:column;align-items:flex-start;gap:14px;display:flex}.print-logo{object-fit:contain;width:210px;height:auto}.print-brand-text{color:#3f3f46;font-size:13px;line-height:1.5}.print-company-name{color:#f97316;margin-bottom:8px;font-size:26px;font-weight:800}.print-doc-title-box{background:#fff7ed;border:2px solid #fdba74;border-radius:16px;padding:18px;font-size:14px;line-height:1.8}.print-doc-title{color:#ea580c;margin-bottom:10px;font-size:24px;font-weight:800}.print-client-box{background:#fff7ed;border:1px solid #fed7aa;border-radius:14px;margin-bottom:20px;padding:16px}.print-section-title{color:#ea580c;margin-bottom:10px;font-size:14px;font-weight:800}.print-client-grid{color:#111827;grid-template-columns:1fr 1fr;gap:8px 20px;font-size:13px;display:grid}.print-lines-table,.print-tax-table{border-collapse:collapse;width:100%}.print-lines-table th,.print-lines-table td,.print-tax-table th,.print-tax-table td{vertical-align:top;border:1px solid #fed7aa;padding:10px;font-size:12px}.print-lines-table th,.print-tax-table th{color:#9a3412;background:#ffedd5;font-weight:800}.print-summary{grid-template-columns:1.2fr .8fr;gap:22px;margin-top:22px;display:grid}.print-total-box{background:#fff7ed;border:2px solid #fdba74;border-radius:14px;padding:16px}.print-total-row{justify-content:space-between;gap:16px;padding:6px 0;font-size:14px;display:flex}.print-total-final{color:#ea580c;border-top:2px solid #fdba74;margin-top:8px;padding-top:12px;font-size:18px;font-weight:800}.print-observaciones{background:#fff7ed;border:1px solid #fed7aa;border-radius:14px;margin-top:24px;padding:16px;font-size:13px}@media print{@page{margin:14mm 10mm 16mm}.sidebar,.topbar,.section-actions,.form-actions,.delete-icon-btn,.light-btn,.soft-green-btn,.primary-btn,.dark-btn,.print-btn,.no-print{display:none!important}html,body{-webkit-print-color-adjust:exact;print-color-adjust:exact;background:#fff!important;margin:0!important;padding:0!important}.main-content,.page-content,.card,.embedded-section{box-shadow:none!important;background:#fff!important;border:none!important;margin:0!important;padding:0!important}.print-document{color:#111827;display:block!important}.print-header-block{break-inside:avoid;page-break-inside:avoid}.print-lines-table thead{display:table-header-group}.print-lines-table tfoot{display:table-footer-group}.print-lines-table tr,.print-tax-table tr,.print-summary,.print-observaciones{break-inside:avoid;page-break-inside:avoid}.print-lines-table th,.print-tax-table th,.print-doc-title-box,.print-total-box,.print-client-box{-webkit-print-color-adjust:exact;print-color-adjust:exact}input,textarea,select,button{appearance:none!important;box-shadow:none!important}}.estado-badge{border-radius:6px;padding:4px 8px;font-size:12px;font-weight:600}.estado-borrador{background:#e0e0e0}.estado-emitida{color:#fff;background:#2196f3}.estado-parcial{color:#fff;background:#ff9800}.estado-cobrada{color:#fff;background:#4caf50}.estado-reclamada{color:#fff;background:#f44336}.estado-devuelta{color:#fff;background:#9c27b0}.estado-anulada{color:#fff;background:#212121}.estado-default{background:#bdbdbd}.facturas-section-header{flex-wrap:wrap;gap:16px}.facturas-header-actions{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.facturas-group-toggle{color:#374151;align-items:center;gap:8px;font-size:14px;font-weight:600;display:inline-flex}.facturas-group-toggle input{margin:0}.facturas-table{table-layout:fixed;width:100%}.facturas-table .facturas-sort-btn{width:100%;font:inherit;text-align:left;color:inherit;cursor:pointer;background:0 0;border:0;margin:0;padding:0;font-weight:600}.facturas-table .facturas-sort-btn:hover{text-decoration:underline}.facturas-table .th-with-filter{flex-direction:column;gap:6px;display:flex}.facturas-table .th-with-filter input,.facturas-table .th-with-filter select{box-sizing:border-box;background:#fff;border:1px solid #d1d5db;border-radius:10px;width:100%;min-width:0;padding:8px 10px;font-size:13px}.facturas-total-cell{text-align:right;white-space:nowrap}.invoice-status-badge{white-space:nowrap;border:1px solid #0000;border-radius:999px;justify-content:center;align-items:center;max-width:100%;padding:6px 10px;font-size:12px;font-weight:700;line-height:1;display:inline-flex}.invoice-status-borrador{color:#374151;background:#e5e7eb;border-color:#d1d5db}.invoice-status-emitida{color:#1d4ed8;background:#dbeafe;border-color:#93c5fd}.invoice-status-parcialmente-cobrada{color:#b45309;background:#fef3c7;border-color:#fcd34d}.invoice-status-cobrada{color:#166534;background:#dcfce7;border-color:#86efac}.invoice-status-reclamada{color:#b91c1c;background:#fee2e2;border-color:#fca5a5}.invoice-status-devuelta{color:#7e22ce;background:#f3e8ff;border-color:#d8b4fe}.invoice-status-anulada{color:#fff;background:#111827;border-color:#111827}.invoice-status-default{color:#374151;background:#f3f4f6;border-color:#d1d5db}.facturas-group-row td{background:#f8fafc;border-top:2px solid #e5e7eb;font-weight:700}.facturas-group-count{color:#6b7280;font-weight:500}.facturas-table th:first-child,.facturas-table td:first-child{white-space:nowrap;width:9%}.facturas-table th:nth-child(2),.facturas-table td:nth-child(2),.facturas-table th:nth-child(3),.facturas-table td:nth-child(3){text-overflow:ellipsis;width:19%;overflow:hidden}.facturas-table th:nth-child(4),.facturas-table td:nth-child(4){white-space:nowrap;width:9%}.facturas-table th:nth-child(5),.facturas-table td:nth-child(5){white-space:nowrap;text-overflow:ellipsis;width:8%;overflow:hidden}.facturas-table th:nth-child(6),.facturas-table td:nth-child(6){white-space:nowrap;width:10%}.facturas-table th:nth-child(7),.facturas-table td:nth-child(7){white-space:nowrap;width:8%}@media (width<=1500px){.card:has(.facturas-table){overflow-x:auto}.facturas-table{min-width:1180px}}.remesas-grid{grid-template-columns:1fr 1fr;gap:20px;margin-bottom:24px;display:grid}.remesas-list{flex-direction:column;gap:12px;display:flex}.remesa-card-selector{text-align:left;background:#fff;border:1px solid #e5e7eb;border-radius:16px;width:100%;padding:14px 16px;transition:all .2s}.remesa-card-selector:hover{background:#f8fafc;border-color:#cbd5e1}.remesa-card-selector.selected{background:#fff7ed;border-color:#fdba74}.remesa-card-top{justify-content:space-between;align-items:center;gap:12px;display:flex}.remesa-card-meta{color:#64748b;flex-direction:column;gap:4px;margin-top:10px;font-size:13px;display:flex}.remesa-status-badge{white-space:nowrap;border:1px solid #0000;border-radius:999px;justify-content:center;align-items:center;padding:6px 10px;font-size:12px;font-weight:700;display:inline-flex}.remesa-status-borrador{color:#374151;background:#e5e7eb;border-color:#d1d5db}.remesa-status-generada{color:#1d4ed8;background:#dbeafe;border-color:#93c5fd}.remesa-status-enviada{color:#92400e;background:#fef3c7;border-color:#fcd34d}.remesa-status-procesada{color:#166534;background:#dcfce7;border-color:#86efac}.remesa-status-default{color:#374151;background:#f3f4f6;border-color:#d1d5db}.remesa-detalle-card{margin-top:24px}.remesa-detalle-header{flex-wrap:wrap;align-items:flex-start;gap:14px}.remesa-download-link{color:#ea580c;align-items:center;min-height:46px;font-weight:700;display:inline-flex}.remesas-table-wrapper{width:100%;overflow-x:auto}.remesas-small-btn{border-radius:12px;padding:8px 12px}.remesa-row-selected{background:#fff7ed}@media (width<=1200px){.remesas-grid{grid-template-columns:1fr}}.sidebar-nav{flex-direction:column;gap:10px;display:flex}.menu-group{background:#fff;border:1px solid #edf2f7;border-radius:18px;flex-direction:column;gap:10px;margin:0;padding:12px;display:flex}.menu-group.open{border-color:#e2e8f0;box-shadow:0 6px 18px #0f172a0a}.menu-group-toggle{cursor:pointer;background:0 0;border:none;justify-content:space-between;align-items:center;gap:12px;width:100%;padding:0;display:flex}.menu-group-toggle:hover .menu-group-title{color:#64748b}.menu-group-title{color:#94a3b8;text-transform:uppercase;letter-spacing:.08em;padding:0 4px;font-size:12px;font-weight:800;transition:color .2s}.menu-group-chevron{color:#94a3b8;text-align:center;min-width:16px;font-size:14px;font-weight:700}.menu-subgroup{flex-direction:column;gap:6px;display:flex}.menu-sublink{color:#475569;border-radius:14px;padding:12px 14px;font-size:14px;font-weight:600;transition:all .2s}.menu-sublink:hover{color:#0f172a;background:#f8fafc}.menu-sublink.active{color:#c2410c;background:#fff7ed;border:1px solid #fdba74}.menu-placeholder{background:#f8fafc;border:1px dashed #e2e8f0;border-radius:14px;padding:12px 14px}.menu-placeholder-text{color:#94a3b8;font-size:13px;font-weight:600;display:block}.product-search-select{position:relative}.product-search-input{box-sizing:border-box;width:100%}.product-search-dropdown{z-index:50;background:#fff;border:1px solid #d1d5db;border-radius:14px;max-height:260px;position:absolute;top:calc(100% + 6px);left:0;right:0;overflow-y:auto;box-shadow:0 10px 30px #0f172a1f}.product-search-option{text-align:left;color:#111827;background:#fff;border-bottom:1px solid #f1f5f9;flex-direction:column;gap:4px;width:100%;padding:10px 12px;display:flex}.product-search-option:last-child{border-bottom:none}.product-search-option:hover{background:#f8fafc}.product-search-option-name{font-weight:600}.product-search-option-desc{color:#6b7280;font-size:12px}.product-search-empty{color:#94a3b8;padding:12px;font-size:14px}.modal-overlay{z-index:9999;background:#0006;justify-content:center;align-items:center;width:100%;height:100%;display:flex;position:fixed;top:0;left:0}.modal-box{text-align:center;background:#fff;border-radius:8px;min-width:320px;padding:24px;box-shadow:0 10px 30px #0003}.maci-shell{color:#0f172a;background:radial-gradient(circle at 0 0,#2563eb0f,#0000 32%),#f3f4f6;min-height:100vh;display:flex}.maci-sidebar{color:#e5e7eb;box-sizing:border-box;background:linear-gradient(#07111f 0%,#0f172a 100%);border-right:1px solid #94a3b82e;flex:none;height:100vh;transition:width .25s,padding .25s;position:sticky;top:0;overflow-y:auto;box-shadow:12px 0 30px #0f172a14}.maci-shell.expanded .maci-sidebar{width:280px;padding:18px 14px}.maci-shell.collapsed .maci-sidebar{width:72px;padding:18px 10px}.maci-sidebar-header{justify-content:space-between;align-items:center;gap:8px;margin-bottom:18px;display:flex}.maci-brand{align-items:center;gap:10px;min-width:0;display:flex}.maci-shell.collapsed .maci-brand{display:none}.maci-logo{object-fit:contain;box-sizing:border-box;background:#fff;border-radius:14px;width:42px;max-width:42px;height:42px;padding:4px}.maci-brand-text{flex-direction:column;line-height:1.15;display:flex}.maci-brand-text strong{color:#fff;letter-spacing:.02em;font-size:14px;font-weight:850}.maci-brand-text span{color:#94a3b8;margin-top:3px;font-size:12px}.maci-sidebar-toggle{color:#e5e7eb;cursor:pointer;background:#94a3b824;border:none;border-radius:12px;justify-content:center;align-items:center;width:34px;height:34px;font-size:20px;transition:all .2s;display:inline-flex}.maci-shell.collapsed .maci-sidebar-toggle{border-radius:16px;width:48px;height:48px}.maci-sidebar-toggle:hover{color:#fff;background:#2563eb47}.maci-nav{flex-direction:column;gap:8px;display:flex}.maci-nav-group{flex-direction:column;gap:6px;display:flex}.maci-nav-group-button{color:#cbd5e1;cursor:pointer;background:0 0;border:none;border-radius:14px;justify-content:space-between;align-items:center;width:100%;min-height:46px;padding:0 10px;transition:all .2s;display:flex}.maci-nav-group-button:hover{color:#fff;background:#94a3b81f}.maci-nav-group.open>.maci-nav-group-button{color:#fff;background:#2563eb2e}.maci-nav-main,.maci-nav-side{align-items:center;gap:10px;display:inline-flex}.maci-nav-icon{text-align:center;width:26px;min-width:26px;font-size:16px}.maci-nav-label{text-transform:uppercase;letter-spacing:.08em;font-size:12px;font-weight:850}.maci-nav-count{color:#e5e7eb;box-sizing:border-box;background:#94a3b82e;border-radius:999px;justify-content:center;align-items:center;min-width:22px;height:22px;padding:0 6px;font-size:11px;font-weight:850;display:inline-flex}.maci-shell.collapsed .maci-nav-group-button{justify-content:center;padding:0}.maci-shell.collapsed .maci-nav-main{justify-content:center}.maci-shell.collapsed .maci-nav-icon{border-radius:16px;justify-content:center;align-items:center;width:48px;min-width:48px;height:48px;display:inline-flex}.maci-shell.collapsed .maci-nav-group.open .maci-nav-icon{color:#fff;background:#2563eb;box-shadow:0 10px 22px #2563eb40}.maci-subnav{border-left:1px solid #94a3b838;flex-direction:column;gap:5px;margin-left:20px;padding-left:14px;display:flex}.maci-subnav-link{color:#cbd5e1;border:1px solid #0000;border-radius:12px;align-items:center;gap:9px;min-height:38px;padding:8px 10px;font-size:13px;font-weight:650;transition:all .2s;display:flex;position:relative}.maci-subnav-link:hover{color:#fff;background:#94a3b81f}.maci-subnav-link.active{color:#fff;background:#2563ebf2;border-color:#93c5fd4d;box-shadow:0 8px 20px #2563eb33}.maci-subnav-dot{background:#94a3b88c;border-radius:999px;flex-shrink:0;width:7px;height:7px}.maci-subnav-link.active .maci-subnav-dot{background:#fff}.maci-menu-placeholder{color:#94a3b8;background:#94a3b814;border:1px dashed #94a3b833;border-radius:12px;padding:10px 12px;font-size:12px;font-weight:650}.maci-sidebar-footer{margin-top:18px}.maci-footer-toggle{color:#e5e7eb;cursor:pointer;background:#94a3b81f;border:none;border-radius:16px;justify-content:center;align-items:center;gap:10px;width:100%;min-height:44px;font-weight:750;transition:all .2s;display:inline-flex}.maci-footer-toggle:hover{color:#fff;background:#2563eb3d}.maci-main{flex:1;min-width:0}.maci-topbar{-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);box-sizing:border-box;background:linear-gradient(90deg,#fff7ed 0%,#ffedd5 100%);border-bottom:1px solid #fed7aa;justify-content:space-between;align-items:center;height:70px;padding:0 24px;display:flex}.maci-topbar-left{align-items:center;gap:16px;min-width:0;display:flex}.maci-topbar-menu,.maci-icon-button{color:#0f172a;cursor:pointer;background:#f8fafc;border:none;border-radius:14px;justify-content:center;align-items:center;width:42px;height:42px;transition:all .2s;display:inline-flex}.maci-topbar-menu{font-size:20px}.maci-icon-button{font-size:18px}.maci-topbar-menu:hover,.maci-icon-button:hover{background:#e2e8f0}.maci-search{color:#64748b;box-sizing:border-box;background:#f8fafc;border:1px solid #e5e7eb;border-radius:14px;align-items:center;gap:10px;width:min(420px,42vw);height:42px;padding:0 14px;display:flex}.maci-search input{color:#0f172a;background:0 0;border:none;outline:none;width:100%;padding:0;font-size:14px}.maci-user-area{align-items:center;gap:10px;display:flex}.maci-user-text{text-align:right;line-height:1.1}.maci-user-text strong{color:#0f172a;font-size:14px;font-weight:850;display:block}.maci-user-text span{color:#64748b;margin-top:4px;font-size:12px;font-weight:650;display:block}.maci-avatar{color:#fff;background:linear-gradient(135deg,#2563eb,#1d4ed8);border-radius:999px;justify-content:center;align-items:center;width:42px;height:42px;font-weight:850;display:flex;box-shadow:0 10px 22px #2563eb3d}.maci-logout{color:#111827;cursor:pointer;background:#fff;border:1px solid #d1d5db;border-radius:12px;padding:10px 14px;font-weight:750}.maci-logout:hover{background:#f8fafc}.maci-page-header{background:#fff;border:1px solid #e5e7eb;border-radius:20px;justify-content:space-between;align-items:flex-start;gap:20px;margin:12px 12px 10px;padding:16px 22px;display:flex;box-shadow:0 6px 16px #0f172a0a}.maci-breadcrumbs{color:#64748b;flex-wrap:wrap;gap:8px;margin-bottom:8px;font-size:13px;font-weight:650;display:flex}.maci-breadcrumbs span{align-items:center;gap:8px;display:inline-flex}.maci-breadcrumb-separator{opacity:.5}.maci-page-header h1{color:#0f172a;letter-spacing:-.03em;margin:0;font-size:24px;font-weight:800;line-height:1.15}.maci-page-header p{color:#64748b;margin:8px 0 0;font-size:15px}@media (width<=980px){.maci-shell{flex-direction:column}.maci-sidebar{height:auto;position:relative;width:100%!important;padding:14px!important}.maci-shell.collapsed .maci-brand{display:flex}.maci-topbar{flex-wrap:wrap;gap:14px;height:auto;padding:14px}.maci-search{width:100%}.maci-user-area{justify-content:flex-end;width:100%}.maci-page-header{margin:16px 16px 0;padding:20px}.maci-page-body{padding:16px}}.maci-page-header{justify-content:space-between;align-items:flex-start;gap:24px;display:flex}.maci-page-header-main{min-width:0}.maci-page-header-actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:12px;padding-top:6px;display:flex}@media (width<=900px){.maci-page-header{flex-direction:column}.maci-page-header-actions{justify-content:flex-start;width:100%}}.form-grid{flex-direction:column;gap:20px;display:flex}.form-columns{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;display:grid}@media (width<=1100px){.form-columns{grid-template-columns:1fr}}.form-field,.form-group{flex-direction:column;gap:7px;display:flex}.form-field label,.form-group label{color:#475569;font-size:13px;font-weight:750}input,select,textarea{color:#0f172a;box-sizing:border-box;background:#fff;border:1px solid #d1d5db;border-radius:14px;width:100%;padding:12px 14px;font-family:Arial,sans-serif;font-size:14px;line-height:1.35;transition:border-color .2s,box-shadow .2s,background .2s}input:hover,select:hover,textarea:hover{border-color:#94a3b8}input:focus,select:focus,textarea:focus{border-color:#f97316;outline:none;box-shadow:0 0 0 3px #f9731626}input:disabled,select:disabled,textarea:disabled{color:#64748b;cursor:not-allowed;opacity:.85;background:#f1f5f9}input::placeholder,textarea::placeholder{color:#94a3b8}textarea{resize:vertical;min-height:90px}input[type=checkbox],input[type=radio]{width:auto;box-shadow:none;border-radius:0;padding:0}input[type=checkbox]:focus,input[type=radio]:focus{box-shadow:0 0 0 3px #f9731626}.checkbox-field label{color:#374151;align-items:center;gap:10px;font-weight:650;display:flex}.form-actions{flex-wrap:wrap;align-items:center;gap:12px;margin-top:12px;display:flex}.form-field-full{grid-column:1/-1}.th-with-filter input,.th-with-filter select,.facturas-table .th-with-filter input,.facturas-table .th-with-filter select{border-radius:10px;padding:8px 10px;font-size:13px}.product-search-input,.empleado-search-input{width:100%}.multiple-select{min-height:140px}.data-table{border-collapse:separate;border-spacing:0;width:100%;font-size:13px}.data-table th{text-align:left;color:#64748b;background:#f8fafc;border-bottom:1px solid #e5e7eb;padding:10px;font-size:12.5px;font-weight:750}.data-table td{color:#0f172a;white-space:nowrap;text-overflow:ellipsis;border-bottom:1px solid #f1f5f9;padding:10px;overflow:hidden}.data-table tbody tr{height:42px;transition:background .15s,transform .15s}.data-table tbody tr:nth-child(2n){background:#fcfcfd}.data-table tbody tr:hover{background:#f8fafc}.clickable-table tbody tr{cursor:pointer}.clickable-table tbody tr:hover{background:#f1f5f9}.data-table th:first-child{border-top-left-radius:12px}.data-table th:last-child{border-top-right-radius:12px}.data-table td:nth-child(2),.data-table td:nth-child(3){max-width:240px}.status-badge,.invoice-status-badge,.remesa-status-badge{border-radius:999px;padding:4px 8px;font-size:10.5px}.th-with-filter{flex-direction:column;gap:6px;display:flex}.th-with-filter input,.th-with-filter select,.facturas-table .th-with-filter input,.facturas-table .th-with-filter select{box-sizing:border-box;background:#fff;border:1px solid #e2e8f0;border-radius:10px;width:100%;min-width:0;padding:8px 10px;font-size:13px}.th-with-filter input:focus,.th-with-filter select:focus{border-color:#f97316}.table-wrapper{overflow-x:auto}.facturas-table th{padding:10px;font-size:12.5px}.facturas-table td{padding:10px}.card{background:#fff;border:1px solid #e5e7eb;border-radius:22px;padding:22px;box-shadow:0 8px 22px #0f172a09}.card+.card{margin-top:20px}.section-header{border-bottom:1px solid #f1f5f9;margin-bottom:20px;padding-bottom:14px}.section-header h3{color:#0f172a;font-size:18px;font-weight:800}.embedded-section{border-top:1px solid #e5e7eb;margin-top:26px;padding-top:22px}.maci-page-body{padding:18px 24px 28px}.success,.error{border-radius:12px;margin:10px 0;padding:10px 14px;font-weight:650}.success{color:#166534;background:#ecfdf5;border:1px solid #bbf7d0}.error{color:#b91c1c;background:#fef2f2;border:1px solid #fecaca}.maci-nav-group-button:hover{background:#f9731614}.maci-nav-group.open>.maci-nav-group-button{background:#f973161f}.maci-sidebar{transition:width .25s}.maci-shell.collapsed .maci-sidebar{width:72px}.maci-shell.expanded .maci-sidebar{width:260px}.employee-dashboard{flex-direction:column;gap:14px;display:flex}.employee-home-card{text-align:left;cursor:pointer;background:#fff;border:1px solid #e5e7eb;border-radius:18px;align-items:center;gap:14px;padding:16px;transition:all .2s;display:flex}.employee-home-card:hover{background:#f8fafc}.employee-home-card-primary{color:#fff;background:#f97316;border:none}.employee-home-card-primary:hover{background:#ea580c}.employee-home-icon{font-size:22px}.employee-card-list{flex-direction:column;gap:12px;display:flex}.employee-work-card{cursor:pointer;background:#fff;border:1px solid #e5e7eb;border-radius:14px;flex-direction:column;gap:8px;padding:14px;transition:all .15s;display:flex}.employee-work-card-meta{color:#64748b;flex-direction:column;gap:2px;font-size:12.5px;display:flex}.employee-payroll-card{grid-template-columns:1fr 1fr;gap:14px;display:grid}.employee-payroll-label{color:#64748b;font-size:12px;display:block}.employee-summary-grid{grid-template-columns:1fr 1fr;gap:12px;display:grid}@media (width<=700px){.employee-summary-grid{grid-template-columns:1fr}}.employee-filters-grid{grid-template-columns:1fr 1fr;gap:12px;display:grid}@media (width<=700px){.employee-filters-grid{grid-template-columns:1fr}}.employee-work-card{background:#fff;border:1px solid #e5e7eb;border-radius:16px;flex-direction:column;gap:10px;padding:16px;transition:all .15s;display:flex}.employee-work-card:hover{background:#f8fafc}.employee-work-card-today{background:#fff7ed;border:1px solid #f97316}.employee-work-card-top{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.employee-work-card-meta{color:#64748b;flex-direction:column;gap:3px;margin-top:4px;font-size:12.5px;display:flex}.employee-work-today-badge{color:#fff;background:#f97316;border-radius:999px;width:fit-content;padding:4px 8px;font-size:12px}.employee-work-actions{flex-wrap:wrap;gap:8px;margin-top:6px;display:flex}.employee-work-actions .action-btn,.employee-work-actions .light-btn{padding:6px 10px;font-size:12.5px}.dashboard-grid{grid-template-columns:repeat(5,minmax(0,1fr));align-items:stretch;margin-bottom:1rem}.dashboard-grid .metric-card{text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:6px;height:130px;padding:16px;display:flex}.dashboard-grid .metric-card .metric-label,.dashboard-grid .metric-card .metric-help,.dashboard-grid .metric-card .metric-value{margin:0}.dashboard-grid .metric-card .metric-value{font-size:38px;line-height:1}.dashboard-grid .metric-card .metric-help{min-height:16px}.dashboard-grid .card+.card{margin-top:0}.dashboard-grid{align-items:start}.dashboard-grid .metric-card{height:130px}.spin{animation:.8s linear infinite spin;display:inline-block}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.report-grid{gap:1rem;width:100%;margin-bottom:1rem;display:grid}.report-grid-kpis-4{grid-template-columns:repeat(4,minmax(0,1fr))}.report-grid-kpis-auto{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}.report-grid-two{grid-template-columns:repeat(auto-fit,minmax(420px,1fr))}.report-filters-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem;display:grid}.report-section-card{margin-bottom:1rem}.report-section-card-highlighted{background:linear-gradient(#f8fbff 0%,#fff 100%);border:1px solid #dbeafe}.report-section-subtitle{color:#64748b;margin:.25rem 0 0}.report-section-actions{flex-wrap:wrap;gap:.5rem;display:flex}.report-kpi-card{text-align:center;flex-direction:column;justify-content:center;min-height:190px;padding:1.5rem;display:flex}.report-kpi-value{word-break:break-word;margin:0 0 1rem;line-height:1.1}.report-kpi-label{margin-bottom:1rem}.report-kpi-help{margin:0}.report-table-wrapper{width:100%;overflow-x:auto}.report-table-sortable-header{cursor:pointer;-webkit-user-select:none;user-select:none}.productivity-bar{align-items:center;gap:.5rem;display:flex}.productivity-bar-track{background:#e5e7eb;border-radius:999px;width:110px;height:8px;overflow:hidden}.productivity-bar-fill{border-radius:999px;height:100%}.productivity-bar-fill-good{background:#16a34a}.productivity-bar-fill-medium{background:#f59e0b}.productivity-bar-fill-low{background:#dc2626}.productivity-bar-fill-empty{background:#cbd5e1}.report-chart-wrapper{margin-top:1rem}.report-daily-chart{align-items:flex-end;gap:.45rem;padding:1rem 0;display:flex;overflow-x:auto}.report-daily-chart-column{flex-direction:column;justify-content:flex-end;align-items:center;gap:.35rem;min-width:30px;display:flex}.report-daily-chart-bar{border-radius:999px 999px 0 0;width:18px}.report-daily-chart-label{color:#64748b;font-size:.7rem}@media (width<=1100px){.report-grid-kpis-4{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=640px){.report-grid-kpis-4,.report-grid-two{grid-template-columns:1fr}.report-kpi-card{min-height:150px}}
