*{box-sizing:border-box;margin:0;padding:0}html{scroll-behavior:smooth}body{color:#1e293b;background:#f1f5f9;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}:root{--azul:#2563eb;--verde:#059669;--rojo:#dc2626;--naranja:#d97706;--morado:#7c3aed;--gris:#6b7280;--fondo:#f1f5f9;--blanco:#fff;--borde:#e2e8f0;--texto:#1e293b}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:0 0}::-webkit-scrollbar-thumb{background:#374151;border-radius:3px}::-webkit-scrollbar-thumb:hover{background:#4b5563}.card{background:#fff;border-radius:12px;padding:20px;box-shadow:0 1px 4px #00000014}.btn{cursor:pointer;border:none;border-radius:8px;align-items:center;gap:6px;padding:8px 16px;font-size:13px;font-weight:600;transition:opacity .15s;display:inline-flex}.btn:hover{opacity:.85}.btn-primary{background:var(--azul);color:#fff}.btn-success{background:var(--verde);color:#fff}.btn-danger{background:var(--rojo);color:#fff}.btn-warning{background:var(--naranja);color:#fff}.btn-purple{background:var(--morado);color:#fff}.btn-ghost{color:var(--gris);background:#f1f5f9}input,select,textarea{border:1px solid var(--borde);background:#fff;border-radius:8px;outline:none;width:100%;padding:8px 12px;font-size:13px;transition:border-color .15s}input:focus,select:focus{border-color:var(--azul)}table{border-collapse:collapse;background:0 0;width:100%}tbody,thead,tfoot,tbody tr{background:0 0}thead th{text-align:left;border-bottom:1px solid var(--borde);padding:10px 14px;font-size:12px;font-weight:600}tbody td{border-bottom:1px solid #f1f5f9;padding:10px 14px;font-size:13px}.badge{border-radius:20px;padding:2px 8px;font-size:11px;font-weight:600;display:inline-block}.badge-green{color:#059669;background:#dcfce7}.badge-red{color:#dc2626;background:#fee2e2}.badge-blue{color:#2563eb;background:#dbeafe}.badge-orange{color:#d97706;background:#fef3c7}.badge-gray{color:#6b7280;background:#f3f4f6}.loading{color:var(--gris);justify-content:center;align-items:center;padding:40px;font-size:14px;display:flex}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes slideUp{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes slideInRight{0%{opacity:0;transform:translate(100%)}to{opacity:1;transform:translate(0)}}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}@keyframes shimmer{0%{background-position:-200% 0}to{background-position:200% 0}}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.fade-in{animation:.3s ease-out fadeIn}.slide-up{animation:.3s ease-out slideUp}.spin{animation:1s linear infinite spin}.skeleton{background:linear-gradient(90deg,#1f2937 25%,#374151 50%,#1f2937 75%) 0 0/200% 100%;border-radius:6px;animation:1.5s infinite shimmer}.skeleton-light{background:linear-gradient(90deg,#e5e7eb 25%,#f3f4f6 50%,#e5e7eb 75%) 0 0/200% 100%;border-radius:6px;animation:1.5s infinite shimmer}button,a,input,select,textarea{transition:all .15s}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline-offset:2px;outline:2px solid #3b82f6}select{cursor:pointer}.page-header{justify-content:space-between;align-items:center;margin-bottom:20px;display:flex}.page-title{color:var(--texto);font-size:22px;font-weight:700}.page-subtitle{color:var(--gris);margin-top:2px;font-size:13px}@media (width<=1024px){.hide-tablet{display:none!important}}@media (width<=768px){.hide-mobile{display:none!important}}@media print{nav,aside,.no-print{display:none!important}main{margin:0!important;padding:0!important}}.drag-over{outline-offset:-2px;background:#3b82f60d;outline:2px dashed #3b82f6}@media (width<=768px){table{-webkit-overflow-scrolling:touch;white-space:nowrap;display:block;overflow-x:auto}thead,tbody,tr{table-layout:auto;width:100%;display:table}thead th,tbody td{padding:8px 10px!important;font-size:12px!important}[style*="padding: 24px"],[style*=padding\:24px],[style*="padding: 28px"],[style*=padding\:28px]{padding:12px!important}[style*="grid-template-columns: repeat"],[style*=gridTemplateColumns]{grid-template-columns:1fr!important}[style*="display: flex"][style*=gap]{flex-wrap:wrap!important}[style*="position: fixed"][style*="inset: 0"]>div,[style*=position\:fixed][style*=inset\:0]>div{width:95vw!important;max-width:95vw!important;max-height:90vh!important;margin:0 auto!important}button{white-space:nowrap;font-size:12px!important}[style*="display:'flex'"][style*="justifyContent:'space-between'"],[style*="display: 'flex'"][style*="justifyContent: 'space-between'"]{flex-wrap:wrap!important;gap:8px!important}[style*=gridTemplateColumns]{grid-template-columns:1fr 1fr!important}h1{font-size:18px!important}h2,input,select,textarea{font-size:16px!important}.hide-mobile{display:none!important}}@media (width<=480px){[style*=gridTemplateColumns]{grid-template-columns:1fr!important}[style*="padding: 24px"],[style*=padding\:24px],[style*="padding: 28px"],[style*=padding\:28px],[style*="padding: 20px"],[style*=padding\:20px]{padding:8px!important}}@media (width<=768px){[style*=height\:56px],[style*="height: 56px"]{min-height:56px;flex-wrap:wrap!important;gap:6px!important;height:auto!important;padding:8px 12px!important}[style*=flex\:1][style*=overflow]{min-width:0!important}[style*=width\:320px],[style*="width: 320px"],[style*=width\:340px],[style*="width: 340px"],[style*=width\:300px],[style*="width: 300px"]{width:100%!important;max-width:100%!important}[style*=overflow\:hidden]{overflow:auto!important}[style*="display:'flex'"][style*=gap\:4],[style*="display: 'flex'"][style*="gap: 4"],[style*="display:'flex'"][style*=gap\:6],[style*="display: 'flex'"][style*="gap: 6"]{-webkit-overflow-scrolling:touch;scrollbar-width:none;flex-wrap:nowrap!important;overflow-x:auto!important}[style*="maxHeight:'85vh'"],[style*="maxHeight: '85vh'"],[style*="max-height: 85vh"],[style*="maxHeight:'80vh'"],[style*="max-height: 80vh"]{max-height:85vh!important;overflow-y:auto!important}.factura-body{grid-template-rows:auto auto!important;grid-template-columns:1fr!important}[style*="gridTemplateColumns:'1fr 280px'"],[style*="grid-template-columns: 1fr 280px"]{grid-template-columns:1fr!important}table[style*="tableLayout:'fixed'"],table[style*="table-layout: fixed"]{table-layout:auto!important;display:block!important;overflow-x:auto!important}}
