*{box-sizing:border-box}html,body{height:100%;margin:0;overflow:hidden}body{color:#1a1a1a;background:#f4f5f7;font-family:system-ui,-apple-system,Segoe UI,sans-serif;display:flex}#root{width:100%}.app-shell{flex-direction:column;width:100%;height:100vh;display:flex}.app-header{background:#fff;border-bottom:1px solid #e5e5e5;flex-shrink:0;justify-content:space-between;align-items:center;padding:.75rem 1.5rem;display:flex}.app-header h1{margin:0;font-size:1.25rem}.field{flex-direction:column;gap:.4rem;margin-bottom:1.25rem;display:flex}.field label{color:#555;font-size:.85rem}.field input{border:1px solid #ccc;border-radius:6px;padding:.5rem .6rem;font-size:1rem}.field small{color:#888}button{color:#fff;cursor:pointer;background:#2563eb;border:none;border-radius:6px;width:100%;padding:.6rem;font-size:1rem}button:disabled{cursor:not-allowed;background:#9db8e8}.header-actions{align-items:center;gap:.75rem;display:flex}.btn-secondary{color:#2563eb;cursor:pointer;background:#eef2ff;border-radius:6px;width:auto;padding:.6rem 1rem;font-size:1rem;font-weight:600;text-decoration:none;display:inline-block}.btn-secondary:hover{background:#dfe6fd}.status{color:#333;background:#eef2ff;border-radius:6px;flex-shrink:0;align-items:center;gap:.6rem;margin:1rem 1.5rem 0;padding:.75rem 1rem;font-size:.9rem;display:flex}.status.error{color:#a32020;background:#fdecec}.status.done{color:#1a7a3d;background:#e9f9ee}.spinner{border:2px solid #b9c6f5;border-top-color:#2563eb;border-radius:50%;flex-shrink:0;width:1rem;height:1rem;animation:.7s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.results-area{flex-direction:column;flex:1;min-height:0;padding:.75rem 1.5rem 1.5rem;display:flex;overflow:hidden}.processing-state{color:#555;text-align:center;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:1.25rem;font-size:1.1rem;display:flex}.spinner-lg{border-width:4px;width:3rem;height:3rem}.results-panel{background:#fff;border-radius:12px;flex-direction:column;flex:1;min-height:0;padding:1.5rem;display:flex;overflow:hidden;box-shadow:0 1px 4px #00000014}.tabs{border-bottom:1px solid #e5e5e5;flex-shrink:0;gap:.5rem;margin-bottom:1.25rem;display:flex}.tab{color:#555;background:0 0;border-radius:6px 6px 0 0;width:auto;padding:.6rem 1rem;font-weight:600}.tab:hover{background:#f4f5f7}.tab.active{color:#2563eb;box-shadow:inset 0 -2px #2563eb}.data-table{flex-direction:column;flex:1;min-height:0;display:flex}.filters{flex-wrap:wrap;flex-shrink:0;gap:1rem;margin-bottom:1.25rem;display:flex}.filter-field{min-width:180px;margin-bottom:0}.filter-field select{border:1px solid #ccc;border-radius:6px;width:100%;padding:.5rem .6rem;font-size:.9rem}.multi-select{flex-direction:column;gap:.4rem;min-width:180px;display:flex;position:relative}.multi-select label{color:#555;font-size:.85rem}.multi-select-toggle{color:#1a1a1a;text-align:left;background:#fff;border:1px solid #ccc;border-radius:6px;width:100%;padding:.5rem .6rem;font-size:.9rem;font-weight:400}.multi-select-toggle:hover{background:#f9fafb}.multi-select-panel{z-index:10;background:#fff;border:1px solid #ccc;border-radius:6px;min-width:100%;max-height:220px;padding:.4rem;position:absolute;top:calc(100% + .25rem);left:0;overflow:auto;box-shadow:0 4px 16px #0000001f}.multi-select-option{white-space:nowrap;border-radius:4px;align-items:center;gap:.5rem;padding:.35rem .4rem;font-size:.85rem;display:flex}.multi-select-option:hover{background:#f4f5f7}.multi-select-option input{margin:0}.multi-select-empty{color:#888;padding:.35rem .4rem;font-size:.85rem}.emit-field{justify-content:flex-end;min-width:160px;margin-bottom:0}.btn-emit{background:#1a7a3d;width:auto;padding:.5rem 1rem}.btn-emit:hover{background:#156530}.btn-emit:disabled{background:#9fcbaa}.emit-error{color:#a32020}.table-wrapper{flex:1;min-height:0;overflow:auto}table{border-collapse:collapse;width:100%;font-size:.9rem}th,td{text-align:center;vertical-align:middle;white-space:normal;word-break:break-word;border-bottom:1px solid #eee;padding:.25rem .75rem;line-height:1.2}th{z-index:1;color:#555;background:#f9fafb;font-weight:600;position:sticky;top:0}.col-comentario{white-space:normal;word-break:break-word;min-width:180px;max-width:320px}.col-check{white-space:nowrap;width:2rem}.col-data_lancamento,.col-valor_zag,.col-valor_cobranca,.col-valor_reembolso{white-space:nowrap}.empty-cell{text-align:center;color:#888;white-space:normal}.modal-overlay{z-index:50;background:#00000073;justify-content:center;align-items:center;padding:1rem;display:flex;position:fixed;inset:0}.modal-dialog{background:#fff;border-radius:12px;width:100%;max-width:420px;max-height:90vh;padding:2rem;position:relative;overflow:auto;box-shadow:0 10px 40px #0003}.modal-dialog h2{margin:0 0 1.5rem;font-size:1.1rem}.modal-close{color:#555;background:0 0;border-radius:6px;width:auto;padding:.25rem .6rem;font-size:1.5rem;line-height:1;position:absolute;top:.75rem;right:.75rem}.modal-close:hover{background:#f4f5f7}.login-screen{justify-content:center;align-items:center;width:100%;height:100vh;display:flex}.login-form{background:#fff;border-radius:12px;width:100%;max-width:340px;padding:2rem;box-shadow:0 10px 40px #0000001a}.login-form h1{text-align:center;margin:0 0 1.5rem;font-size:1.25rem}.login-error{color:#a32020;background:#fdecec;border-radius:6px;margin-bottom:1rem;padding:.6rem .75rem;font-size:.85rem}
