*{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;background:#f4f4f5;color:#0f172a;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;-webkit-tap-highlight-color:transparent;overscroll-behavior-y:contain}button,input,select,textarea{font-family:inherit}button{cursor:pointer;border:none}.screen{min-height:100vh;min-height:100dvh;background:#f4f4f5;padding:20px;padding-top:max(24px,env(safe-area-inset-top));padding-bottom:max(24px,env(safe-area-inset-bottom))}.screen-center{display:flex;flex-direction:column;align-items:center;justify-content:center}.title{font-size:26px;font-weight:800;color:#1e1b4b;margin:0 0 4px;text-align:center}.subtitle{font-size:14px;color:#64748b;margin:0 0 24px;font-weight:600;text-align:center}.logo{font-size:38px;font-weight:900;color:#1e1b4b;letter-spacing:2px;text-align:center}.card{background:#fff;padding:20px;border-radius:16px;box-shadow:0 1px 3px #00000014,0 1px 2px #0000000f}.label{display:block;font-size:11px;font-weight:800;color:#64748b;letter-spacing:.3px;text-transform:uppercase;margin:10px 0 8px}.input{width:100%;border:1px solid #cbd5e1;padding:12px;border-radius:10px;font-size:15px;background:#f8fafc;color:#0f172a}.input:focus{outline:2px solid #2563eb;outline-offset:1px}.input-big{width:100%;border:2px solid #f59e0b;padding:14px;border-radius:12px;font-size:24px;font-weight:700;color:#b45309;background:#fef3c7;text-align:center}.btn{display:flex;align-items:center;justify-content:center;gap:8px;padding:16px;border-radius:14px;font-weight:800;font-size:16px;width:100%;color:#fff;transition:transform .05s ease}.btn:active{transform:scale(.98)}.btn:disabled{opacity:.5;cursor:default}.btn-blue{background:#2563eb}.btn-navy{background:#1e3a8a}.btn-green{background:#10b981}.btn-amber{background:#f59e0b}.btn-purple{background:#7c3aed}.btn-secondary{background:transparent;color:#64748b;font-weight:700;font-size:15px;padding:10px;width:100%}.link-back{display:block;text-align:center;margin-top:20px;color:#64748b;font-weight:700;font-size:14px;background:none}.menu-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.menu-header h1{font-size:30px;font-weight:900;color:#1e1b4b;margin:0}.menu-header p{font-size:15px;color:#64748b;margin:2px 0 0}.logout-btn{background:#e2e8f0;color:#475569;font-weight:700;padding:8px 16px;border-radius:20px;font-size:14px}.menu-btn{display:flex;align-items:center;width:100%;padding:18px;border-radius:16px;margin-bottom:14px;color:#fff;box-shadow:0 2px 6px #0000001f;text-align:left}.menu-btn:disabled{opacity:.4}.menu-btn .icon{font-size:30px;margin-right:15px}.menu-btn .title-row{font-weight:900;font-size:17px}.menu-btn .sub-row{font-size:12px;margin-top:2px;color:#ffffffd9;font-weight:500}.option-card{display:flex;align-items:center;background:#fff;padding:20px;border-radius:16px;width:100%;margin-bottom:16px;border:1px solid #e2e8f0}.option-card .icon{font-size:32px;margin-right:16px}.option-card .opt-title{font-size:18px;font-weight:800;color:#0f172a;margin:0}.option-card .opt-desc{font-size:13px;color:#64748b;margin:2px 0 0}.chips{display:flex;flex-wrap:wrap;gap:6px}.chip{padding:8px 12px;border-radius:20px;border:1px solid #cbd5e1;background:#f8fafc;font-size:12px;font-weight:700;color:#475569}.chip.active{background:#1e3a8a;border-color:#1e3a8a;color:#fff}.spinner{width:40px;height:40px;border:4px solid rgba(0,0,0,.1);border-top-color:currentColor;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.loading-wrap{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:60vh;gap:16px;color:#7c3aed}.loading-wrap span{font-weight:700;color:#475569}.select-btn{display:flex;justify-content:space-between;align-items:center;width:100%;border:1px solid #cbd5e1;background:#f8fafc;padding:12px;border-radius:10px;font-size:15px;color:#0f172a;text-align:left}.select-btn .placeholder{color:#94a3b8}.select-btn .arrow{color:#64748b;font-size:12px;margin-left:8px}.sheet-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000073;display:flex;align-items:flex-end;z-index:1000}.sheet-content{background:#fff;border-radius:20px 20px 0 0;padding:20px;width:100%;max-height:75vh;display:flex;flex-direction:column}.sheet-title{font-size:17px;font-weight:800;color:#1e1b4b;text-align:center;margin:0 0 4px}.sheet-subtitle{font-size:13px;color:#64748b;text-align:center;margin:0 0 14px}.sheet-list{overflow-y:auto;flex:1;margin:10px 0}.sheet-item{width:100%;text-align:left;padding:14px 8px;border-bottom:1px solid #f1f5f9;background:none}.sheet-item .name{font-size:15px;color:#334155;font-weight:600}.sheet-item .sub{font-size:12px;color:#64748b;margin-top:2px}.sheet-item.selected{background:#eff6ff;border-radius:8px}.sheet-item.selected .name{color:#2563eb;font-weight:800}.sheet-empty{text-align:center;color:#94a3b8;padding:20px 0}.company-selector{margin:12px 0}.tabs{display:flex;background:#e2e8f0;border-radius:12px;padding:4px;margin-bottom:12px}.tab{flex:1;text-align:center;padding:10px 0;border-radius:10px;background:none}.tab.active{background:#fff;box-shadow:0 1px 3px #00000026}.tab .tab-icon{font-size:18px;display:block}.tab .tab-text{font-size:11px;color:#64748b;font-weight:700;margin-top:2px;display:block}.tab.active .tab-text{color:#0f172a}.medidor-box{background:#f1f5f9;padding:10px;border-radius:8px;margin-top:8px;display:flex;justify-content:space-between;align-items:center;border-left:4px solid #3b82f6}.medidor-box .m-label{font-size:10px;font-weight:700;color:#475569}.medidor-box .m-serial{font-size:13px;font-weight:900;color:#1d4ed8;font-family:monospace}.capture-row{display:flex;flex-direction:column;gap:12px}.capture-row input[type=file]{display:none}.preview-card{width:100%;height:260px;background:#e2e8f0;border-radius:16px;overflow:hidden;border:1px solid #cbd5e1;display:flex;align-items:center;justify-content:center}.preview-card img{width:100%;height:100%;object-fit:contain}.pdf-preview{text-align:center;color:#334155}.pdf-preview .pdf-icon{font-size:56px;display:block;margin-bottom:10px}.toggle-box{margin-top:15px;width:100%;background:#fff;padding:15px;border-radius:12px;border:1px solid #e2e8f0}.toggle-label{font-size:13px;font-weight:800;color:#64748b;margin-bottom:10px;text-align:center}.toggle-row{display:flex;justify-content:space-between;gap:10px}.toggle-btn{flex:1;padding:12px;border-radius:8px;border:1px solid #cbd5e1;text-align:center;background:#fff;font-weight:700;font-size:13px;color:#475569}.toggle-btn.active{background:#1e3a8a;border-color:#1e3a8a;color:#fff}.crop-wrap{position:relative;touch-action:none;-webkit-user-select:none;user-select:none;margin:0 auto;background:#111}.crop-wrap img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none}.crop-mask{position:absolute;background:#0000008c;pointer-events:none}.crop-box{position:absolute;border:2px solid #7c3aed;background:#7c3aed14;touch-action:none}.crop-handle{position:absolute;right:-14px;bottom:-14px;width:28px;height:28px;border-radius:50%;background:#7c3aed;border:2px solid white;touch-action:none}.crop-actions{display:flex;gap:10px;margin-top:16px}.crop-actions .btn-secondary{padding:10px;border:1px solid #cbd5e1;border-radius:10px;background:#fff}.line-card{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:12px;margin-bottom:10px}.line-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.line-header .line-title{font-size:13px;font-weight:800;color:#1e3a8a}.line-remove{font-size:12px;font-weight:700;color:#dc2626;background:none}.picker-btn{width:100%;text-align:left;border:1px solid #cbd5e1;background:#fff;border-radius:10px;padding:12px;margin-top:8px;font-size:14px;color:#334155;font-weight:600}.add-line-btn{width:100%;border:1px dashed #7c3aed;border-radius:10px;padding:12px;text-align:center;margin-top:6px;background:none;color:#7c3aed;font-weight:800;font-size:14px}.sum-check{font-size:11px;font-weight:800;color:#64748b;text-align:center;margin-top:10px}.warning-text{text-align:center;margin-bottom:20px;font-size:16px;color:#334155}.change-doc-link{display:block;margin:20px auto 0;text-align:center;color:#64748b;background:none;font-size:14px}@media (min-width: 480px){.screen{max-width:480px;margin:0 auto}}
