:root{color:#0f172a;background:#f1f5f9;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;--radius-sm: 6px;--radius: 10px;--radius-lg: 14px;--border: #cbd5e1;--border-soft: #e2e8f0;--surface: #ffffff;--surface-subtle: #f8fafc;--ink: #0f172a;--ink-soft: #334155;--text-muted: #64748b;--brand: #2563eb;--brand-hover: #1d4ed8;--brand-soft: #eff6ff;--emerald: #059669;--amber: #d97706;--danger: #dc2626;--shadow-xs: 0 1px 2px rgba(15, 23, 42, .04);--shadow-card: 0 1px 3px rgba(15, 23, 42, .05), 0 4px 12px rgba(15, 23, 42, .03);--shadow-lift: 0 10px 25px -5px rgba(15, 23, 42, .08), 0 4px 10px -4px rgba(15, 23, 42, .04);--shadow-popover: 0 20px 45px -10px rgba(15, 23, 42, .22), 0 8px 16px -6px rgba(15, 23, 42, .1)}*{box-sizing:border-box}img,svg{max-width:100%}body{margin:0;min-width:320px;min-height:100vh;background:#f1f5f9;color:var(--ink);font-size:13px;line-height:1.45}button,input,select,textarea{font:inherit}button{cursor:pointer}.login-page{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(380px,440px);gap:40px;align-items:center;min-height:100vh;padding:48px;background:radial-gradient(circle at top left,#1e3a8a,#0f172a 55%,#020617)}.login-hero{display:grid;gap:24px;color:#fff}.login-logo{width:min(320px,85%);height:auto;filter:brightness(0) invert(1)}.login-copy{max-width:620px}.login-copy .eyebrow{color:#38bdf8}.login-copy h1{margin:0;font-size:38px;font-weight:800;line-height:1.15;letter-spacing:-.02em}.login-copy p{max-width:540px;margin:14px 0 0;color:#cbd5e1;font-size:15.5px;line-height:1.6}.login-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,240px));gap:14px}.login-card{display:grid;gap:20px;border:1px solid rgba(255,255,255,.15);border-radius:16px;padding:32px;background:#fff;box-shadow:0 25px 60px #00000059}.login-card-logo{width:200px;max-width:100%;height:auto}.login-card h2{margin:0;font-size:22px;font-weight:750;color:#0f172a;letter-spacing:-.01em}.login-card form{display:grid;gap:16px}.login-field{display:grid;gap:6px}.login-field span{color:#334155;font-size:13px;font-weight:600}.login-field>div{display:flex;align-items:center;gap:10px;height:42px;border:1px solid #cbd5e1;border-radius:10px;padding:0 12px;color:#64748b;background:#f8fafc;transition:all .15s ease}.login-field>div:focus-within{background:#fff;border-color:#2563eb;box-shadow:0 0 0 3px #2563eb24}.login-field input{min-width:0;flex:1;border:0;outline:0;background:transparent;color:#0f172a;font-size:14px}.field-icon-button{display:grid;place-items:center;width:28px;height:28px;border:0;background:transparent;color:#64748b;border-radius:6px}.field-icon-button:hover{background:#f1f5f9;color:#0f172a}.login-options{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#64748b;font-size:12.5px}.login-options label{display:flex;align-items:center;gap:6px;cursor:pointer}.login-options input{accent-color:#2563eb}.login-options button{border:0;background:transparent;color:#2563eb;font-weight:600}.login-error{margin:0;border:1px solid #fecaca;border-radius:10px;padding:10px 14px;background:#fef2f2;color:#991b1b;font-size:13px;font-weight:600;line-height:1.45}.login-success{margin:0;border:1px solid #bbf7d0;border-radius:10px;padding:10px 14px;background:#f0fdf4;color:#166534;font-size:13px;font-weight:600;line-height:1.45}.login-submit{width:100%;min-height:44px;font-size:14px!important}.login-submit:disabled{opacity:.7;cursor:wait}.app-shell{display:grid;grid-template-columns:clamp(212px,16vw,236px) minmax(0,1fr);min-height:100vh;background:#f1f5f9}.sidebar{position:sticky;top:0;height:100vh;max-height:100vh;padding:12px 10px;background:linear-gradient(180deg,#0b1120,#0f172a);border-right:1px solid #1e293b;color:#fff;display:flex;flex-direction:column;justify-content:flex-start;box-sizing:border-box;z-index:30;-webkit-user-select:none;user-select:none;overflow:hidden}.brand{flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:4px 6px 10px;border-bottom:1px solid rgba(255,255,255,.07);margin-bottom:8px}.brand-copy{display:flex;flex-direction:column;gap:4px}.brand img{width:128px;max-width:100%;height:auto;filter:brightness(0) invert(1)}.brand span{display:inline-flex;align-items:center;width:fit-content;color:#38bdf8;background:#38bdf81f;border:1px solid rgba(56,189,248,.22);padding:1px 7px;border-radius:5px;font-size:9.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.brand small,.mobile-menu-button{display:none}.sidebar nav{display:flex;flex-direction:column;gap:8px;flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;padding-right:3px;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.22) transparent}.sidebar nav::-webkit-scrollbar{width:5px}.sidebar nav::-webkit-scrollbar-track{background:transparent}.sidebar nav::-webkit-scrollbar-thumb{background:#fff3;border-radius:9999px}.sidebar nav::-webkit-scrollbar-thumb:hover{background:#ffffff61}.nav-group{display:flex;flex-direction:column;gap:2px}.nav-group-title{padding:0 8px;color:#64748b;font-size:9.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;margin-bottom:2px}.nav-group-items{display:flex;flex-direction:column;gap:2px}.nav-item{display:flex;align-items:center;gap:9px;height:32px;min-height:32px;border:1px solid transparent;border-radius:7px;padding:0 9px;background:transparent;color:#94a3b8;font-size:12.5px;font-weight:500;text-align:left;transition:all .15s ease;cursor:pointer;flex-shrink:0}.nav-item svg{color:#64748b;transition:color .15s ease,transform .15s ease;flex-shrink:0}.nav-item span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nav-item:hover{background:#ffffff0d;color:#f8fafc}.nav-item:hover svg{color:#cbd5e1}.nav-item.active{background:linear-gradient(90deg,#2563eb3d,#2563eb14);border-color:#3b82f652;color:#fff;font-weight:600;box-shadow:inset 3px 0 #3b82f6}.nav-item.active svg{color:#60a5fa}.sidebar-footer{flex-shrink:0;margin-top:auto;padding-top:8px;border-top:1px solid rgba(255,255,255,.07)}.sidebar-footer-badge{display:flex;align-items:center;gap:8px;padding:6px 8px;background:#ffffff08;border:1px solid rgba(255,255,255,.06);border-radius:7px;min-width:0}.sidebar-footer-badge .status-dot-pulse{flex-shrink:0}.sidebar-footer-text,.sidebar-footer-badge>div{display:flex;flex-direction:column;min-width:0;line-height:1.25}.sidebar-footer-text strong,.sidebar-footer-badge strong{font-size:11px;color:#e2e8f0;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}.sidebar-footer-text small,.sidebar-footer-badge small{font-size:9.5px;color:#94a3b8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}.sidebar-footer-info{display:flex;align-items:center;gap:8px;min-width:0}.sidebar-footer-dot{width:8px;height:8px;border-radius:50%;background:#10b981;box-shadow:0 0 0 3px #10b9812e;flex-shrink:0}@media(max-height:780px){.sidebar{padding:8px}.brand{padding:2px 4px 6px;margin-bottom:6px}.brand img{width:118px}.sidebar nav{gap:5px;padding-right:2px}.nav-group{gap:1px}.nav-group-title{font-size:9px;padding:0 6px;margin-bottom:1px}.nav-item{height:30px;min-height:30px;font-size:12px;gap:8px;padding:0 8px;border-radius:6px}.sidebar-footer{padding-top:6px}.sidebar-footer-badge{padding:5px 6px;gap:6px}.sidebar-footer-text strong,.sidebar-footer-badge strong{font-size:10.5px}.sidebar-footer-text small,.sidebar-footer-badge small{font-size:9px}}@media(max-height:660px){.sidebar{padding:6px}.brand{padding:2px 4px 4px;margin-bottom:4px}.brand img{width:108px}.brand span{font-size:8px;padding:0 5px}.sidebar nav{gap:4px}.nav-item{height:28px;min-height:28px;font-size:11.5px;gap:7px;padding:0 7px}.nav-group-title{font-size:8.5px;margin-bottom:0}}.main{min-width:0;padding:12px clamp(12px,1.5vw,20px) 24px;max-width:100%;width:100%;margin:0 auto}.topbar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:12px;padding:8px 14px;background:#fff;border:1px solid var(--border-soft);border-radius:10px;box-shadow:var(--shadow-xs)}.topbar-title-group{display:flex;flex-direction:column;gap:1px;min-width:0}.topbar h1,.panel h2,.form-title h2,.section-header h3{margin:0;letter-spacing:-.015em}.topbar h1{font-size:16px;font-weight:700;color:#0f172a;line-height:1.25}.eyebrow{display:inline-block;margin-bottom:1px;color:#2563eb;font-size:9.5px;font-weight:700;letter-spacing:.05em;text-transform:uppercase}.topbar-actions,.table-tools,.row-actions,.footer-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;min-width:0}.button,.icon-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:32px;min-height:32px;border-radius:6px;border:1px solid #cbd5e1;padding:0 11px;background:#fff;color:#1e293b;font-size:12px;font-weight:600;min-width:0;box-shadow:0 1px 2px #0f172a08;transition:all .15s ease;white-space:nowrap}.button.sm{height:25px;min-height:25px;padding:0 8px;font-size:11px;border-radius:5px;gap:4px}.button:hover:not(:disabled),.icon-button:hover:not(:disabled){border-color:#94a3b8;background:#f8fafc;color:#0f172a}.button.primary{border-color:#2563eb;background:#2563eb;color:#fff;box-shadow:0 1px 2px #2563eb33}.button.primary:hover:not(:disabled){background:#1d4ed8;border-color:#1d4ed8;color:#fff;box-shadow:0 4px 10px #2563eb40}.button.outline{border-color:#bfdbfe;background:#eff6ff;color:#1d4ed8}.button.outline:hover:not(:disabled){background:#dbeafe;border-color:#93c5fd;color:#1e40af}.button.danger{border-color:#dc2626;background:#dc2626;color:#fff}.button.danger:hover:not(:disabled){background:#b91c1c;border-color:#b91c1c;color:#fff}.button.link{border:none;background:transparent;color:#2563eb;box-shadow:none;padding:0 4px;height:auto;min-height:auto;font-size:12px}.button.link:hover{text-decoration:underline;background:transparent}.button:disabled,.icon-button:disabled{opacity:.5;cursor:not-allowed}.icon-button,.button.icon-only{width:32px;height:32px;min-height:32px;padding:0}.section,.screen-stack{display:flex;flex-direction:column;gap:12px}.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.kpi-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.kpi-card-v2,.stat-card{background:#fff;border:1px solid var(--border-soft);border-radius:9px;padding:10px 13px;box-shadow:var(--shadow-card);display:flex;flex-direction:column;justify-content:space-between;gap:3px;transition:all .18s ease;position:relative;overflow:hidden;min-width:0}.kpi-card-v2:hover{border-color:#cbd5e1;box-shadow:var(--shadow-lift);transform:translateY(-1px)}.kpi-top-v2,.kpi-card-top{display:flex;justify-content:space-between;align-items:center;gap:8px}.kpi-label-v2{font-size:10.5px;font-weight:700;color:#64748b;text-transform:uppercase;letter-spacing:.04em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.kpi-icon-wrap-v2{width:28px;height:28px;border-radius:6px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.kpi-icon-wrap-v2.blue{background:#eff6ff;color:#2563eb;border:1px solid #dbeafe}.kpi-icon-wrap-v2.green,.kpi-icon-wrap-v2.emerald{background:#ecfdf5;color:#059669;border:1px solid #d1fae5}.kpi-icon-wrap-v2.amber{background:#fffbeb;color:#d97706;border:1px solid #fef3c7}.kpi-icon-wrap-v2.red{background:#fef2f2;color:#dc2626;border:1px solid #fee2e2}.kpi-icon-wrap-v2.indigo{background:#eef2ff;color:#4f46e5;border:1px solid #e0e7ff}.kpi-value-v2{font-size:19px;font-weight:750;color:#0f172a;letter-spacing:-.025em;line-height:1.15;font-variant-numeric:tabular-nums}.kpi-bottom-v2{display:flex;align-items:center;gap:5px;font-size:11px;color:#64748b;padding-top:2px}.charts-grid,.reports-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(300px,1fr);gap:12px}.panel,.section-card{background:#fff;border:1px solid var(--border-soft);border-radius:9px;padding:13px 15px;box-shadow:var(--shadow-card);min-width:0}.panel-header,.form-title,.section-header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}.panel h2,.form-title h2{font-size:14.5px;font-weight:700;color:#0f172a}.section-header h3{font-size:13.5px;font-weight:700;color:#0f172a}.legend-row{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;color:#475569;font-size:11.5px;font-weight:500;margin-top:4px}.legend-row span{display:inline-flex;align-items:center;gap:5px}.legend-row i{width:8px;height:8px;border-radius:50%}.modern-dash-header{display:flex;justify-content:space-between;align-items:center;gap:12px;background:#fff;padding:11px 15px;border-radius:9px;border:1px solid var(--border-soft);box-shadow:var(--shadow-card)}.modern-dash-header h1{font-size:16px;font-weight:750;color:#0f172a;margin:0 0 2px;letter-spacing:-.015em}.modern-dash-header p{margin:0;color:#64748b;font-size:12px}.system-status-pill{display:inline-flex;align-items:center;gap:6px;padding:3px 9px;border-radius:9999px;font-size:11px;font-weight:600;background:#ecfdf5;color:#047857;border:1px solid #a7f3d0;white-space:nowrap}.status-dot-pulse{width:6px;height:6px;border-radius:50%;background:#10b981;box-shadow:0 0 0 2.5px #10b98133}.modern-grid-card{background:#fff;border:1px solid var(--border-soft);border-radius:9px;box-shadow:var(--shadow-card);overflow:hidden;display:flex;flex-direction:column}.modern-grid-header{padding:11px 14px;border-bottom:1px solid var(--border-soft);display:flex;flex-direction:column;gap:10px;background:#fff}.grid-title-row{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px}.grid-title-row h2{font-size:14.5px;font-weight:700;color:#0f172a;margin:0;letter-spacing:-.01em}.segmented-filter-bar{display:inline-flex;align-items:center;gap:3px;background:#f1f5f9;padding:3px;border-radius:7px;overflow-x:auto;max-width:100%;width:fit-content}.segmented-filter-btn{display:inline-flex;align-items:center;gap:5px;padding:4px 9px;border-radius:5px;font-size:11.5px;font-weight:600;color:#64748b;background:transparent;border:none;cursor:pointer;transition:all .15s ease;white-space:nowrap}.segmented-filter-btn:hover{color:#0f172a}.segmented-filter-btn.active{background:#fff;color:#0f172a;box-shadow:0 1px 2px #0f172a14}.segmented-filter-count{display:inline-flex;align-items:center;justify-content:center;padding:0 5px;border-radius:9999px;font-size:10px;font-weight:700;background:#e2e8f0;color:#475569}.segmented-filter-btn.active .segmented-filter-count{background:#dbeafe;color:#1d4ed8}.modern-toolbar-row{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;width:100%}.modern-search-box,.search-field{display:flex;align-items:center;gap:6px;background:#f8fafc;border:1px solid #cbd5e1;border-radius:6px;padding:0 9px;height:32px;min-height:32px;width:100%;max-width:280px;transition:all .15s ease}.modern-search-box:focus-within,.search-field:focus-within{background:#fff;border-color:#2563eb;box-shadow:0 0 0 2.5px #2563eb1f}.modern-search-box input,.search-field input{border:none;background:transparent;outline:none;width:100%;font-size:12px;color:#0f172a}.modern-search-box input::placeholder,.search-field input::placeholder{color:#94a3b8}.table-wrap,.responsive-table-container{width:100%;max-width:100%;overflow-x:auto;background:#fff}.table-wrap{border:1px solid var(--border-soft);border-radius:8px}table,.modern-data-table{width:100%;min-width:0;border-collapse:collapse;text-align:left;font-variant-numeric:tabular-nums}table th,.modern-data-table th{background:#f8fafc;color:#475569;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;padding:7px 8px;border-bottom:1px solid var(--border-soft);white-space:nowrap}table th:first-child,.modern-data-table th:first-child,table td:first-child,.modern-data-table td:first-child{padding-left:12px}table th:last-child,.modern-data-table th:last-child,table td:last-child,.modern-data-table td:last-child{padding-right:12px}table td,.modern-data-table td{padding:7px 8px;border-bottom:1px solid #f1f5f9;vertical-align:middle;font-size:12px;color:#1e293b;transition:background-color .12s ease}.modern-data-table .col-client{min-width:140px;max-width:220px}.modern-data-table .col-desc{max-width:200px}table tbody tr:last-child td,.modern-data-table tbody tr:last-child td{border-bottom:none}table tbody tr:hover td,.modern-data-table tbody tr:hover td{background-color:#f8fafc}td strong,td small{display:block}td small{color:#64748b;font-size:10.5px;margin-top:1px}.company-cell{display:flex;align-items:center;gap:7px;min-width:0;max-width:240px}.avatar-circle{width:24px;height:24px;border-radius:6px;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:9.5px;flex-shrink:0;color:#fff;box-shadow:0 1px 2px #00000014}.company-info{min-width:0;flex:1}.company-info strong{display:block;font-size:12px;font-weight:650;color:#0f172a;line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.company-info small{display:block;color:#64748b;font-size:10.5px;margin-top:1px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.status-dot-badge{display:inline-flex;align-items:center;gap:4px;padding:2px 7px;border-radius:9999px;font-size:10.5px;font-weight:600;white-space:nowrap;border:1px solid transparent}.status-dot-badge .dot{width:6px;height:6px;border-radius:50%}.status-dot-badge.active,.status-dot-badge.paid,.status-dot-badge.trialing{background:#ecfdf5;color:#047857;border-color:#a7f3d0}.status-dot-badge.active .dot,.status-dot-badge.paid .dot,.status-dot-badge.trialing .dot{background:#10b981}.status-dot-badge.blocked,.status-dot-badge.inactive,.status-dot-badge.cancelled,.status-dot-badge.failed,.status-dot-badge.expired{background:#fef2f2;color:#b91c1c;border-color:#fecaca}.status-dot-badge.blocked .dot,.status-dot-badge.inactive .dot,.status-dot-badge.cancelled .dot,.status-dot-badge.failed .dot,.status-dot-badge.expired .dot{background:#ef4444}.status-dot-badge.overdue,.status-dot-badge.grace,.status-dot-badge.suspended,.status-dot-badge.pending,.status-dot-badge.open{background:#fffbeb;color:#b45309;border-color:#fde68a}.status-dot-badge.overdue .dot,.status-dot-badge.grace .dot,.status-dot-badge.suspended .dot,.status-dot-badge.pending .dot,.status-dot-badge.open .dot{background:#f59e0b}.badge{display:inline-flex;align-items:center;min-height:22px;border-radius:6px;padding:0 7px;background:#f1f5f9;color:#475569;border:1px solid #e2e8f0;font-size:11px;font-weight:650;white-space:nowrap}.badge.paid,.badge.active,.badge.trialing,.badge.tested,.badge.production{background:#ecfdf5;color:#047857;border-color:#a7f3d0}.badge.grace,.badge.pending,.badge.open,.badge.planned,.badge.in_development{background:#fffbeb;color:#b45309;border-color:#fde68a}.badge.overdue,.badge.suspended,.badge.blocked,.badge.failed,.badge.cancelled{background:#fef2f2;color:#b91c1c;border-color:#fecaca}.plan-pill,.plan-pill-v2{display:inline-flex;align-items:center;justify-content:center;padding:3px 8px;border-radius:6px;font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;background:#f1f5f9;color:#334155;border:1px solid #cbd5e1;white-space:nowrap}.plan-pill-v2.one{background:#f0f9ff;color:#0369a1;border-color:#bae6fd}.plan-pill-v2.start,.plan-pill-v2.pro{background:#eff6ff;color:#1d4ed8;border-color:#bfdbfe}.plan-pill-v2.full,.plan-pill-v2.enterprise{background:#f5f3ff;color:#6d28d9;border-color:#ddd6fe}.usage-bar-v2,.usage{display:flex;flex-direction:column;gap:3px;min-width:66px;max-width:90px}.usage-bar-labels{display:flex;justify-content:space-between;align-items:baseline;gap:4px;font-size:10.5px;color:#64748b}.usage-bar-labels strong{display:inline;color:#0f172a;font-weight:700}.usage-bar-pct{font-weight:600;font-size:10px;color:#64748b}.usage-bar-pct.full{color:#059669}.usage-bar-pct.warning{color:#dc2626}.usage-bar-track-v2,.usage-track{height:5px;background:#e2e8f0;border-radius:9999px;overflow:hidden}.usage-bar-fill-v2,.usage-track span{display:block;height:100%;border-radius:9999px;background:#2563eb;transition:width .25s ease}.usage-bar-fill-v2.full{background:#10b981}.usage-bar-fill-v2.warning{background:#ef4444}.crud-inline-actions{display:inline-flex;gap:4px;align-items:center}.ghost-action-btn{width:28px;height:28px;border-radius:7px;display:inline-flex;align-items:center;justify-content:center;background:#fff;border:1px solid #cbd5e1;color:#475569;cursor:pointer;transition:all .14s ease;flex-shrink:0}.ghost-action-btn:hover:not(:disabled){background:#f1f5f9;border-color:#94a3b8;color:#0f172a}.ghost-action-btn.danger:hover:not(:disabled){background:#fef2f2;border-color:#fca5a5;color:#dc2626}.ghost-action-btn:disabled{opacity:.4;cursor:not-allowed}.pagination-container{display:flex;align-items:center;justify-content:space-between;padding:12px 20px;background:#f8fafc;border-top:1px solid var(--border-soft);flex-wrap:wrap;gap:12px}.pagination-info{font-size:12.5px;color:#64748b;display:flex;align-items:center;gap:4px}.pagination-info strong{color:#0f172a;font-weight:600}.pagination-controls{display:flex;align-items:center;gap:5px}.pagination-btn{display:inline-flex;align-items:center;justify-content:center;min-width:30px;height:30px;padding:0 8px;font-size:12.5px;font-weight:600;border-radius:7px;border:1px solid #cbd5e1;background:#fff;color:#334155;cursor:pointer;transition:all .15s ease}.pagination-btn:hover:not(:disabled){background:#f1f5f9;border-color:#94a3b8;color:#0f172a}.pagination-btn.active{background:#2563eb;border-color:#2563eb;color:#fff}.pagination-btn:disabled{opacity:.4;cursor:not-allowed}.pagination-ellipsis{padding:0 4px;color:#94a3b8;font-size:12px}.form-page,.modern-form-card{background:linear-gradient(180deg,#fff,#fcfdff);border:1px solid #dbe4f0;border-radius:10px;padding:14px 16px;box-shadow:0 6px 20px -8px #0f172a0f,0 1px 3px #0f172a06;display:flex;flex-direction:column;gap:12px;position:relative;overflow:hidden}.form-page:before,.modern-form-card:before{content:"";position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,#2563eb,#3b82f6,#0ea5e9)}.crud-top-nav{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 12px;margin:0 0 4px;background:linear-gradient(135deg,#f8fafc,#f1f5f9);border:1px solid #e2e8f0;border-radius:8px;flex-wrap:wrap}.crud-top-nav-left{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.crud-top-title{display:flex;flex-direction:column;gap:1px}.crud-top-title h2,.crud-top-title h3,.crud-top-nav h2,.crud-top-nav h3{font-size:14.5px;font-weight:700;color:#0f172a;letter-spacing:-.01em;margin:0;line-height:1.25}.crud-back-btn{display:inline-flex;align-items:center;gap:5px;height:28px;padding:0 9px;border-radius:6px;border:1px solid #cbd5e1;background:#fff;color:#1e293b;font-size:11.5px;font-weight:600;box-shadow:0 1px 2px #0f172a0a;transition:all .15s ease;cursor:pointer}.crud-back-btn:hover{background:#f8fafc;border-color:#94a3b8;color:#0f172a;transform:translateY(-1px)}.crud-tabs-bar{display:flex;gap:3px;background:#f1f5f9;padding:3px;border-radius:7px;overflow-x:auto;border:1px solid #e2e8f0;margin-bottom:4px}.crud-tab-item{display:inline-flex;align-items:center;gap:5px;padding:5px 10px;height:28px;border-radius:5px;font-size:11.5px;font-weight:600;color:#475569;background:transparent;border:none;cursor:pointer;transition:all .15s ease;white-space:nowrap}.crud-tab-item:hover{color:#0f172a;background:#ffffffb3}.crud-tab-item.active{background:#fff;color:#2563eb;box-shadow:0 1px 3px #0f172a14}.crud-tab-badge{display:inline-flex;align-items:center;justify-content:center;padding:0 5px;height:16px;font-size:9.5px;font-weight:700;border-radius:9999px;background:#e2e8f0;color:#475569}.crud-tab-item.active .crud-tab-badge{background:#dbeafe;color:#1d4ed8}.form-grid-layout{display:flex;flex-direction:column;gap:10px}.field-grid{display:grid;gap:8px 12px}.field-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.field-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.field-grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}.field-wide{grid-column:span 2}.field-full,.legal-content-field{grid-column:1 / -1}.field{display:flex;flex-direction:column;gap:3px;min-width:0}.compact-field{min-width:140px}.field>span,.crud-field-label{color:#334155;font-size:11.5px;font-weight:600;letter-spacing:-.005em;display:flex;align-items:center;justify-content:space-between;gap:4px}.field small,.helper-text{color:#64748b;font-size:10.5px;line-height:1.35}.helper-text{margin:0 0 6px}.field input,.field select,.field textarea,.modern-input,.modern-select,.module-row input[type=number]{min-width:0;width:100%;border:1.2px solid #cbd5e1;border-radius:6px;background:#f8fafc;color:#0f172a;font-size:12px;font-weight:500;outline:0;box-shadow:inset 0 1px 2px #0f172a05;transition:border-color .15s ease,box-shadow .15s ease,background-color .15s ease}.field input,.field select,.modern-input,.modern-select,.module-row input[type=number]{height:33px;padding:0 9px}.field textarea{min-height:70px;padding:7px 9px;resize:vertical;line-height:1.45}.field input:hover:not([readonly]):not(:disabled),.field select:hover:not(:disabled),.field textarea:hover:not([readonly]):not(:disabled){border-color:#94a3b8;background:#fff}.field input:focus,.field select:focus,.field textarea:focus,.modern-input:focus,.modern-select:focus,.module-row input[type=number]:focus{border-color:#2563eb;background:#fff;box-shadow:0 0 0 2.5px #2563eb1f}.field input[readonly],.modern-input[readonly]{color:#475569;background:#f1f5f9;border-color:#e2e8f0;cursor:default}.field-button{width:100%;height:33px;justify-content:center}.footer-actions{display:flex;justify-content:flex-end;align-items:center;gap:8px;padding:8px 12px;margin:4px -4px -4px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px}.crud-section-card{background:#fff;border:1px solid #e2e8f0;border-radius:9px;padding:12px 14px;box-shadow:0 1px 3px #0f172a05;display:flex;flex-direction:column;gap:10px}.crud-section-card.accent-blue{background:linear-gradient(180deg,#f8fbff,#fff);border-color:#bfdbfe}.crud-section-card.accent-amber{background:linear-gradient(180deg,#fffdf7,#fff);border-color:#fde68a}.crud-section-card.accent-emerald{background:linear-gradient(180deg,#f6fef9,#fff);border-color:#a7f3d0}.crud-section-header{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;padding-bottom:7px;border-bottom:1px solid #f1f5f9;flex-wrap:wrap}.crud-section-title-group{display:flex;align-items:center;gap:8px}.crud-section-icon{width:26px;height:26px;border-radius:6px;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;flex-shrink:0;background:#eff6ff;color:#2563eb;border:1px solid #dbeafe}.crud-section-icon.amber{background:#fef3c7;color:#d97706;border-color:#fde68a}.crud-section-icon.emerald{background:#dcfce7;color:#15803d;border-color:#bbf7d0}.crud-section-icon.purple{background:#f3e8ff;color:#7e22ce;border-color:#e9d5ff}.crud-section-title-group h4{margin:0;font-size:12.5px;font-weight:650;color:#0f172a}.crud-section-title-group p{margin:1px 0 0;font-size:11px;line-height:1.3;color:#64748b}.crud-summary-strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;padding:10px 12px;background:linear-gradient(135deg,#0f172a,#1e293b);border-radius:9px;color:#fff;box-shadow:0 4px 12px #0f172a1a}.crud-summary-item{display:flex;flex-direction:column;gap:2px;padding:2px 8px;border-left:2px solid rgba(255,255,255,.14)}.crud-summary-item:first-child{border-left:none;padding-left:4px}.crud-summary-item span{font-size:10px;text-transform:uppercase;letter-spacing:.05em;color:#94a3b8;font-weight:600}.crud-summary-item strong{font-size:14px;font-weight:700;color:#f8fafc}.crud-summary-item strong.highlight-emerald{color:#4ade80}.crud-summary-item strong.highlight-amber{color:#fbbf24}.crud-summary-item small{font-size:10.5px;color:#cbd5e1}.input-affix-wrap{display:flex;align-items:stretch;width:100%;border:1.2px solid #cbd5e1;border-radius:6px;background:#f8fafc;overflow:hidden;transition:border-color .15s ease,box-shadow .15s ease,background-color .15s ease}.input-affix-wrap:hover{border-color:#94a3b8;background:#fff}.input-affix-wrap:focus-within{border-color:#2563eb;background:#fff;box-shadow:0 0 0 2.5px #2563eb1f}.input-affix-wrap.is-disabled{background:#f1f5f9;border-color:#e2e8f0;opacity:.85}.input-affix-prefix,.input-affix-suffix{display:inline-flex;align-items:center;justify-content:center;padding:0 8px;font-size:11px;font-weight:700;color:#475569;background:#eef2f6;white-space:nowrap;-webkit-user-select:none;user-select:none}.input-affix-prefix{border-right:1px solid #dbe4f0}.input-affix-suffix{border-left:1px solid #dbe4f0}.input-affix-wrap input{border:none!important;box-shadow:none!important;background:transparent!important;height:31px!important;padding:0 8px!important;font-size:12px!important;flex:1;min-width:0}.segmented-choice-group{display:inline-flex;background:#f1f5f9;padding:2px;border-radius:6px;border:1px solid #cbd5e1;gap:2px;width:100%}.segmented-choice-btn{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:5px;height:27px;padding:0 8px;border-radius:5px;border:none;background:transparent;color:#475569;font-size:11px;font-weight:600;cursor:pointer;transition:all .15s ease;white-space:nowrap}.segmented-choice-btn:hover{color:#0f172a}.segmented-choice-btn.active{background:#fff;color:#1d4ed8;box-shadow:0 1px 2px #0f172a14}.segmented-choice-btn.active-yes{background:#16a34a;color:#fff;box-shadow:0 1px 2px #16a34a33}.segmented-choice-btn.active-no{background:#475569;color:#fff;box-shadow:0 1px 2px #0f172a2e}.provider-selector-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.provider-choice-card{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:7px 10px;border-radius:7px;border:1.2px solid #cbd5e1;background:#f8fafc;cursor:pointer;text-align:left;transition:all .15s ease}.provider-choice-card:hover{border-color:#94a3b8;background:#fff}.provider-choice-card.active{border-color:#2563eb;background:#eff6ff;box-shadow:0 0 0 2.5px #2563eb1f}.provider-choice-card strong{font-size:11.5px;font-weight:700;color:#0f172a;display:flex;align-items:center;gap:5px}.provider-choice-card.active strong{color:#1d4ed8}.provider-choice-card small{font-size:10px;color:#64748b;line-height:1.25}.quick-date-pills{display:inline-flex;align-items:center;gap:4px;flex-wrap:wrap}.quick-date-pill{padding:1px 6px;font-size:10px;font-weight:600;border-radius:4px;border:1px solid #cbd5e1;background:#fff;color:#334155;cursor:pointer;transition:all .15s ease}.quick-date-pill:hover{background:#eff6ff;border-color:#93c5fd;color:#1d4ed8}.fee-preview-banner{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 12px;border-radius:7px;background:#f8fafc;border:1px dashed #94a3b8;flex-wrap:wrap}.fee-preview-metrics{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.fee-preview-metric{display:flex;flex-direction:column;gap:1px}.fee-preview-metric span{font-size:9.5px;font-weight:600;color:#64748b;text-transform:uppercase}.fee-preview-metric strong{font-size:12px;font-weight:700;color:#0f172a}.tenant-users-section{margin-top:6px;padding-top:12px;border-top:1px solid var(--border-soft)}.tenant-users-list{display:flex;flex-direction:column;gap:7px}.tenant-user-row{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1.4fr) minmax(0,.9fr) auto;gap:8px;align-items:end;padding:7px 10px;background:#f8fafc;border:1px solid var(--border-soft);border-radius:6px}.module-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.module-row{display:flex;align-items:center;gap:8px;border:1px solid var(--border-soft);border-radius:7px;padding:7px 10px;background:#fff;transition:all .15s ease}.module-row.active{border-color:#93c5fd;background:#f8fbff;box-shadow:inset 3px 0 #2563eb}.module-row.commercial{display:flex;flex-direction:column;align-items:stretch;gap:7px;padding:8px 10px;border-radius:7px;border:1px solid var(--border-soft);background:#fff}.module-row.commercial.active{border-color:#60a5fa;background:#f8fbff;box-shadow:inset 3px 0 #2563eb,0 1px 4px #2563eb0d}.module-header-row{display:flex;align-items:flex-start;gap:8px;width:100%}.module-header-row .module-copy{flex:1;min-width:0}.module-row strong{display:block;font-size:12px;font-weight:650;color:#0f172a;margin-bottom:1px}.module-row small{display:block;color:#64748b;font-size:10.5px;line-height:1.3}.module-body-row{display:flex;flex-direction:column;gap:7px;padding-top:7px;border-top:1px dashed #cbd5e1}.commercial-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;align-items:end;width:100%}.commercial-note{color:#1d4ed8!important;font-weight:600;font-size:10px;background:#eff6ff;border:1px solid #bfdbfe;padding:2px 6px;border-radius:4px;white-space:nowrap}.usage-billing-summary{margin-top:3px;color:#1e40af!important;font-weight:600;font-size:10.5px}.usage-billing-fields{display:none}.pricing-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:7px}.pricing-summary>div{display:flex;flex-direction:column;gap:2px;border:1px solid var(--border-soft);border-radius:7px;padding:7px 10px;background:#fff}.pricing-summary span{color:#64748b;font-size:9.5px;font-weight:700;text-transform:uppercase;letter-spacing:.03em}.pricing-summary strong{color:#0f172a;font-size:14.5px;font-weight:750}.pricing-summary-total{background:#eff6ff!important;border-color:#93c5fd!important}.pricing-summary-total strong{color:#1d4ed8;font-size:16px}.pricing-summary-total small{color:#475569;font-size:10px}.modern-switch{position:relative;display:inline-block;width:32px;height:18px;flex-shrink:0;margin-top:1px}.modern-switch input{opacity:0;width:0;height:0}.modern-switch-slider{position:absolute;cursor:pointer;top:0;right:0;bottom:0;left:0;background-color:#cbd5e1;transition:.2s cubic-bezier(.4,0,.2,1);border-radius:18px}.modern-switch-slider:before{position:absolute;content:"";height:14px;width:14px;left:2px;bottom:2px;background-color:#fff;transition:.2s cubic-bezier(.4,0,.2,1);border-radius:50%;box-shadow:0 1px 2px #0003}.modern-switch input:checked+.modern-switch-slider{background-color:#2563eb}.modern-switch input:checked+.modern-switch-slider:before{transform:translate(14px)}.plan-grid,.catalog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.integration-grid,.integrations-layout,.legal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.mini-card,.plan-card,.catalog-card,.integration-card,.legal-card{border:1px solid var(--border-soft);border-radius:12px;background:#fff;box-shadow:var(--shadow-card);padding:18px 20px;display:flex;flex-direction:column;gap:12px;min-width:0}.plan-card-header,.legal-card-header,.integration-card-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.plan-card h2,.legal-card h3{margin:0;font-size:17px;font-weight:700;color:#0f172a}.card-price strong{color:#1d4ed8;font-size:18px;font-weight:800}.plan-card p,.legal-card p{margin:0;color:#64748b;font-size:13px}.plan-limits,.module-tags{display:flex;flex-wrap:wrap;gap:6px}.plan-limits span,.module-tags span{display:inline-flex;align-items:center;gap:5px;padding:4px 10px;border-radius:6px;background:#eff6ff;color:#1e40af;font-size:12px;font-weight:600}.module-tags span{background:#f1f5f9;color:#334155}.catalog-card{flex-direction:row;justify-content:space-between;align-items:flex-start}.catalog-card strong{display:block;font-size:14.5px;color:#0f172a;margin-bottom:3px}.catalog-card small{display:block;color:#64748b;font-size:12px;margin-top:2px}.catalog-actions{display:flex;flex-direction:column;align-items:flex-end;gap:8px;flex-shrink:0}.catalog-actions>span:first-child{font-size:11px;font-weight:700;color:#1d4ed8;background:#eff6ff;padding:2px 8px;border-radius:6px}.module-availability{display:flex;flex-wrap:wrap;gap:4px;margin-top:8px}.module-availability span{border-radius:5px;padding:2px 7px;background:#f1f5f9;color:#475569;font-size:10.5px;font-weight:600}.legal-meta{display:grid;gap:4px;padding-top:10px;border-top:1px solid var(--border-soft);color:#64748b;font-size:12px}.legal-version-list{display:grid;gap:6px}.legal-version-row{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;border:1px solid var(--border-soft);border-radius:8px;padding:8px 12px;background:#f8fafc;text-align:left}.legal-version-row:hover{border-color:#93c5fd;background:#eff6ff}.legal-version-row strong{display:block;font-size:12.5px;color:#0f172a}.legal-version-row small{display:block;color:#64748b;font-size:11.5px}.legal-checkboxes{display:flex;gap:16px;flex-wrap:wrap;margin-top:8px;color:#334155;font-size:13px;font-weight:600}.legal-checkboxes label{display:inline-flex;align-items:center;gap:8px;cursor:pointer}.integration-provider{display:flex;align-items:center;gap:12px}.provider-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:10px;background:#eff6ff;color:#2563eb;flex-shrink:0}.integration-metrics{display:flex;flex-wrap:wrap;gap:8px}.integration-metrics span{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:6px;background:#f8fafc;border:1px solid var(--border-soft);color:#475569;font-size:12px;font-weight:600}.integration-detail{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.integration-detail>div,.integration-rules>div,.integration-webhook,.event-list article{border:1px solid var(--border-soft);border-radius:8px;padding:10px 12px;background:#f8fafc;min-width:0}.integration-detail small,.integration-rules small{display:block;color:#64748b;font-size:11px;margin-bottom:2px}.integration-detail strong,.integration-rules strong{display:block;color:#0f172a;font-size:12.5px;overflow-wrap:anywhere}.integration-rules{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.integration-webhook{display:flex;align-items:center;gap:8px;color:#475569;font-size:12px}.integration-webhook span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.integration-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:8px;border-top:1px solid var(--border-soft)}.lifecycle-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.lifecycle-step{display:flex;gap:10px;align-items:flex-start;border:1px solid var(--border-soft);border-radius:10px;padding:12px;background:#f8fafc}.lifecycle-step>span{display:grid;place-items:center;width:26px;height:26px;border-radius:7px;background:#dbeafe;color:#1d4ed8;font-size:12px;font-weight:700;flex-shrink:0}.lifecycle-step strong{display:block;font-size:13px;margin-bottom:3px}.lifecycle-step small{display:block;color:#64748b;font-size:12px;line-height:1.4}.endpoint-list,.webhook-tags{display:flex;flex-wrap:wrap;gap:8px}.endpoint-list span,.webhook-tags span{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border:1px solid var(--border-soft);border-radius:7px;background:#f8fafc;color:#334155;font-size:12px;font-weight:600}.event-list{display:grid;gap:8px}.event-list article{display:flex;align-items:center;justify-content:space-between;gap:12px}.event-list strong{display:block;font-size:13px;color:#0f172a}.event-list small{display:block;color:#64748b;font-size:11.5px}.boleto-filter-panel{background:#fff}.boleto-filter-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px;border:1px solid #dbeafe;border-radius:8px;padding:10px 14px;background:#f8fbff;color:#475569;font-size:12.5px}.boleto-filter-summary strong{color:#0f172a;white-space:nowrap}.boleto-filter-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;align-items:end}.filter-combobox-field{position:relative}.filter-combobox{position:relative;min-width:0}.filter-combobox-control{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;height:38px;border:1px solid #cbd5e1;border-radius:8px;padding:0 8px 0 10px;background:#fff}.filter-combobox-control:focus-within{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb21}.filter-combobox-control svg{color:#64748b}.filter-combobox-control input{border:0!important;padding:0!important;height:auto!important;box-shadow:none!important}.filter-combobox-control button{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border:0;border-radius:6px;background:#f1f5f9;color:#334155}.filter-combobox-menu{position:absolute;z-index:50;top:calc(100% + 6px);left:0;right:0;max-height:260px;overflow:auto;padding:6px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;box-shadow:var(--shadow-popover)}.filter-combobox-menu button{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;width:100%;border:0;border-radius:7px;padding:8px 10px;background:transparent;color:#0f172a;text-align:left}.filter-combobox-menu button:hover,.filter-combobox-menu button.selected{background:#eff6ff}.filter-combobox-menu strong,.filter-combobox-menu small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.filter-combobox-menu strong{font-size:12.5px}.filter-combobox-menu small{color:#64748b;font-size:11px}.tenant-combobox-wrapper{position:relative;width:100%}.tenant-combobox-trigger{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;padding:6px 12px;background:#fff;border:1px solid #cbd5e1;border-radius:8px;cursor:pointer;transition:all .2s ease;-webkit-user-select:none;user-select:none}.tenant-combobox-trigger:hover{border-color:#94a3b8;background:#f8fafc}.tenant-combobox-trigger.active,.tenant-combobox-trigger:focus-visible{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb24;background:#fff;outline:none}.tenant-combobox-trigger-main{display:flex;align-items:center;gap:10px;min-width:0;flex:1}.tenant-combobox-icon-badge{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:8px;background:#eff6ff;color:#2563eb;flex-shrink:0;border:1px solid #dbeafe}.tenant-combobox-trigger-text{min-width:0;display:flex;flex-direction:column;gap:1px}.tenant-combobox-trigger-title{font-size:13.5px;font-weight:600;color:#0f172a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tenant-combobox-trigger-sub{font-size:11.5px;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tenant-combobox-trigger-right{display:flex;align-items:center;gap:8px;flex-shrink:0}.tenant-combobox-dropdown{position:absolute;top:calc(100% + 6px);left:0;right:0;z-index:999;background:#fff;border:1px solid #cbd5e1;border-radius:10px;box-shadow:0 10px 25px -5px #0f172a26,0 8px 10px -6px #0f172a1a;overflow:hidden;display:flex;flex-direction:column}.tenant-combobox-search-box{display:flex;align-items:center;gap:8px;padding:10px 12px;border-bottom:1px solid #e2e8f0;background:#f8fafc}.tenant-combobox-search-box input{flex:1;border:0!important;background:transparent!important;padding:0!important;font-size:13px!important;color:#0f172a!important;outline:none!important;box-shadow:none!important;height:24px!important}.tenant-combobox-clear-btn{background:none;border:none;color:#94a3b8;cursor:pointer;padding:4px;display:flex;align-items:center;justify-content:center;border-radius:4px}.tenant-combobox-clear-btn:hover{background:#e2e8f0;color:#475569}.tenant-combobox-status-bar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 12px;background:#f1f5f9;font-size:11.5px;color:#475569;border-bottom:1px solid #e2e8f0}.tenant-combobox-toggle-btn{background:none;border:none;color:#2563eb;font-size:11.5px;font-weight:600;cursor:pointer;padding:2px 4px;border-radius:4px;text-decoration:underline}.tenant-combobox-toggle-btn:hover{color:#1d4ed8}.tenant-combobox-list{max-height:280px;overflow-y:auto;padding:4px;list-style:none;margin:0}.tenant-combobox-item{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px;border-radius:7px;cursor:pointer;transition:background .15s ease}.tenant-combobox-item:hover,.tenant-combobox-item.highlighted{background:#f1f5f9}.tenant-combobox-item.selected{background:#eff6ff;border:1px solid #bfdbfe}.tenant-combobox-item-info{min-width:0;display:flex;flex-direction:column;gap:2px;flex:1}.tenant-combobox-item-name{font-size:13px;font-weight:600;color:#0f172a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tenant-combobox-item-meta{font-size:11.5px;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tenant-combobox-item-right{display:flex;align-items:center;gap:8px;flex-shrink:0}.tenant-combobox-item-price{font-size:12px;font-weight:600;color:#0f172a;font-feature-settings:"tnum"}.tenant-combobox-empty{padding:24px 16px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:8px;color:#64748b;font-size:12.5px}.tenant-combobox-empty svg{color:#f59e0b}.tenant-combobox-empty button{margin-top:4px;padding:5px 12px;font-size:12px;font-weight:500;background:#eff6ff;color:#2563eb;border:1px solid #bfdbfe;border-radius:6px;cursor:pointer}.tenant-combobox-empty button:hover{background:#dbeafe}.dialog-backdrop,.admin-modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:100;display:grid;place-items:center;padding:20px;background:#0f172a80;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.confirm-dialog,.dialog-card,.admin-modal-content{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;width:min(500px,100%);border:1px solid var(--border-soft);border-radius:12px;padding:14px 18px;background:#fff;box-shadow:var(--shadow-popover)}.dialog-card,.admin-modal-content{display:flex;flex-direction:column;padding:0;overflow:hidden}.dialog-header,.admin-modal-header{padding:10px 16px;border-bottom:1px solid var(--border-soft);display:flex;align-items:center;justify-content:space-between}.admin-modal-header h3{margin:0;font-size:13.5px;color:#0f172a}.admin-modal-close,.admin-modal-close-btn{background:transparent;border:1px solid transparent;color:#64748b;width:26px;height:26px;border-radius:6px;display:flex;align-items:center;justify-content:center}.admin-modal-close:hover,.admin-modal-close-btn:hover{background:#f1f5f9;color:#0f172a}.admin-modal-body{padding:14px 16px;overflow-y:auto;background:#f8fafc}.admin-modal-footer{padding:10px 16px;border-top:1px solid var(--border-soft);display:flex;justify-content:flex-end;background:#fff}.admin-modal-modules-grid{display:flex;flex-direction:column;gap:10px}.admin-modal-module-card{background:#fff;border:1px solid var(--border-soft);border-radius:10px;padding:12px 16px;display:flex;align-items:center;justify-content:space-between;gap:16px}.admin-modal-module-info{display:flex;flex-direction:column;gap:2px}.admin-modal-module-info strong{font-size:13.5px;color:#0f172a}.admin-modal-module-info span{font-size:11.5px;color:#64748b}.admin-modal-module-price{font-size:13px;font-weight:600;color:#2563eb;background:#eff6ff;border:1px solid #dbeafe;padding:3px 9px;border-radius:6px}.confirm-dialog.password-dialog{width:min(580px,100%)}.password-dialog .field-grid,.password-dialog .login-error{grid-column:1 / -1}.confirm-dialog h2{margin:0;font-size:18px;font-weight:700}.confirm-dialog p{margin:6px 0 0;color:#475569;font-size:13.5px;line-height:1.5}.dialog-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:10px}.dialog-icon.primary{background:#dbeafe;color:#2563eb}.dialog-icon.danger{background:#fee2e2;color:#dc2626}.dialog-actions{grid-column:1 / -1;display:flex;justify-content:flex-end;gap:8px}.log-severity-pill{display:inline-flex;align-items:center;gap:5px;padding:2px 8px;border-radius:6px;font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.03em;white-space:nowrap}.log-severity-pill.critical{background:#fef2f2;color:#b91c1c;border:1px solid #fecaca}.log-severity-pill.warning{background:#fffbeb;color:#b45309;border:1px solid #fde68a}.log-severity-pill.audit{background:#eff6ff;color:#1d4ed8;border:1px solid #bfdbfe}.log-severity-pill.operational{background:#f1f5f9;color:#475569;border:1px solid #e2e8f0}.company-card-badge{display:inline-flex;align-items:center;gap:4px;padding:3px 8px;border-radius:6px;font-size:11px;font-weight:700;text-transform:uppercase}.company-card-badge.matriz{background:#eff6ff;color:#1d4ed8;border:1px solid #bfdbfe}.company-card-badge.filial{background:#f5f3ff;color:#6d28d9;border:1px solid #ddd6fe}.licenses-table-wrap{width:100%;max-width:100%;overflow-x:auto}.licenses-table{width:100%;table-layout:auto}.licenses-table th,.licenses-table td{padding:6px 5px;vertical-align:middle}.licenses-table th:first-child,.licenses-table td:first-child{padding-left:12px}.licenses-table th:last-child,.licenses-table td:last-child{padding-right:12px}.licenses-table .col-client{min-width:140px;max-width:220px}.license-company-cell{min-width:0;max-width:210px}.licenses-table .col-plan{white-space:nowrap}.licenses-table .plan-pill-v2{min-width:44px;justify-content:center}.licenses-table .col-modules{white-space:nowrap}.license-base-badge{display:inline-flex;align-items:center;height:20px;padding:0 6px;border-radius:5px;font-size:10.5px;font-weight:500;color:#64748b;background:#f8fafc;border:1px solid #e2e8f0;white-space:nowrap}.license-view-modules-btn{display:inline-flex;align-items:center;gap:3px;height:20px!important;min-height:20px!important;color:#1d4ed8!important;font-weight:600!important;font-size:10.5px!important;padding:0 6px!important;background:#eff6ff!important;border:1px solid #bfdbfe!important;border-radius:5px!important;text-decoration:none!important;white-space:nowrap}.license-view-modules-btn:hover{background:#dbeafe!important;border-color:#93c5fd!important}.licenses-table .col-due{white-space:nowrap}.license-date-value{font-size:11.5px;font-weight:650;color:#0f172a;font-variant-numeric:tabular-nums}.licenses-table .col-price{white-space:nowrap}.license-money-value{font-size:12px;font-weight:700;color:#0f172a;font-variant-numeric:tabular-nums}.license-money-value.paid{color:#047857}.license-money-value.free{color:#64748b;font-weight:600}.licenses-table .col-usage{white-space:nowrap}.licenses-table .usage-bar-v2{width:68px;min-width:62px;max-width:74px;gap:3px}.licenses-table .col-status{white-space:nowrap}.licenses-table .col-actions{white-space:nowrap;text-align:right}.license-quick-actions{display:inline-flex;align-items:center;justify-content:flex-end;gap:3px;white-space:nowrap}.license-quick-btn{display:inline-flex;align-items:center;justify-content:center;gap:3px;height:24px;min-height:24px;padding:0 6px;border-radius:5px;font-size:10.5px;font-weight:600;cursor:pointer;transition:all .15s ease;white-space:nowrap}.licenses-table .ghost-action-btn{width:24px;height:24px;border-radius:5px}.license-quick-btn:disabled{opacity:.5;cursor:not-allowed}.license-quick-btn.renew{color:#047857;background:#ecfdf5;border:1px solid #a7f3d0}.license-quick-btn.renew:hover:not(:disabled){background:#d1fae5;border-color:#6ee7b7;color:#065f46}.license-quick-btn.grace{color:#b45309;background:#fffbeb;border:1px solid #fde68a}.license-quick-btn.grace:hover:not(:disabled){background:#fef3c7;border-color:#fcd34d;color:#92400e}.license-quick-btn.statement{color:#334155;background:#fff;border:1px solid #cbd5e1;box-shadow:0 1px 2px #0f172a08}.license-quick-btn.statement:hover:not(:disabled){background:#f8fafc;border-color:#94a3b8;color:#0f172a}.empty-state,.empty-state-inline{display:flex;align-items:center;justify-content:center;gap:10px;border:1px dashed #cbd5e1;border-radius:10px;padding:18px;color:#64748b;background:#f8fafc}.integration-doc-notice{display:flex;gap:14px;align-items:flex-start;padding:14px 16px;background:#eff6ff;border:1px solid #bfdbfe;border-radius:10px;color:#1e3a8a}.integration-doc-notice svg{flex-shrink:0;color:#2563eb;margin-top:2px}.integration-doc-notice h4{margin:0 0 4px;font-size:13.5px;font-weight:700}.integration-doc-notice p{margin:0 0 8px;font-size:12.5px}.integration-doc-notice a{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:600;color:#2563eb;text-decoration:none}.file-upload-card{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 12px;border:1px dashed #cbd5e1;border-radius:8px;background:#fff;min-height:40px}.file-upload-card.has-file{border:1px solid #86efac;background:#f0fdf4}.file-upload-card.is-active{border:1px solid #93c5fd;background:#eff6ff}.file-upload-info{display:flex;align-items:center;gap:8px;min-width:0;flex:1}.file-upload-info .file-icon{display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:6px;background:#f1f5f9;color:#475569;flex-shrink:0}.file-upload-text strong{display:block;font-size:12px;color:#0f172a}.file-upload-text small{display:block;font-size:10.5px;color:#64748b}.btn-file-label{display:inline-flex;align-items:center;gap:5px;padding:4px 10px;font-size:11.5px;font-weight:600;color:#334155;background:#f8fafc;border:1px solid #cbd5e1;border-radius:6px;cursor:pointer}.hidden-file-input{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.password-input-wrapper{position:relative;display:flex;align-items:center}.password-input-wrapper input{padding-right:38px}.password-toggle-btn{position:absolute;right:8px;display:flex;align-items:center;justify-content:center;background:none;border:none;padding:4px;color:#64748b}.test-connection-result{padding:10px 14px;border-radius:8px;font-size:13px;display:flex;align-items:center;gap:8px}.test-connection-result.success{background:#f0fdf4;border:1px solid #86efac;color:#166534}.test-connection-result.error{background:#fef2f2;border:1px solid #fecaca;color:#991b1b}@media(max-width:1380px){.app-shell{grid-template-columns:206px minmax(0,1fr)}.main{padding:14px 14px 32px}table th,.modern-data-table th,table td,.modern-data-table td{padding:8px 6px}.licenses-table .col-client,.modern-data-table .col-client{min-width:135px;max-width:195px}.company-cell,.license-company-cell{max-width:190px}}@media(max-width:1180px){.kpi-grid,.charts-grid,.reports-grid,.plan-grid,.catalog-grid,.boleto-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.lifecycle-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:900px){.login-page{grid-template-columns:1fr;padding:24px}.app-shell{grid-template-columns:1fr}.sidebar{position:sticky;height:auto;max-height:none;overflow:visible;top:0;padding:10px 14px}.brand{margin-bottom:0;padding-bottom:0;border-bottom:0}.mobile-menu-button{display:inline-grid;place-items:center;width:36px;height:36px;border:1px solid rgba(255,255,255,.2);border-radius:8px;background:#ffffff14;color:#fff}.sidebar nav,.sidebar-footer{display:none}.sidebar.mobile-open nav{display:flex;margin-top:12px;padding-top:12px;border-top:1px solid rgba(255,255,255,.1);max-height:calc(100vh - 130px);overflow-y:auto}.sidebar.mobile-open .sidebar-footer{display:block;margin-top:8px}.main{padding:16px}.kpi-grid,.kpi-grid.three,.charts-grid,.reports-grid,.field-grid.two,.field-grid.three,.field-grid.four,.boleto-filter-grid,.tenant-user-row,.module-list,.commercial-controls,.pricing-summary,.legal-grid,.plan-grid,.catalog-grid,.integration-grid,.lifecycle-grid,.integrations-layout,.integration-rules,.integration-detail{grid-template-columns:1fr}.field-wide{grid-column:auto}}.notification-bell-wrap{position:relative;display:inline-flex}.notification-badge{position:absolute;top:-4px;right:-4px;background:#ef4444;color:#fff;font-size:10px;font-weight:700;height:18px;min-width:18px;padding:0 4px;border-radius:999px;display:flex;align-items:center;justify-content:center;border:2px solid #ffffff;box-shadow:0 1px 3px #00000026;animation:pulse-badge 2s infinite ease-in-out}@keyframes pulse-badge{0%,to{transform:scale(1)}50%{transform:scale(1.15)}}.notifications-flyout{position:absolute;top:calc(100% + 8px);right:0;width:380px;max-width:90vw;background:#fff;border:1px solid var(--border-soft, #e2e8f0);border-radius:12px;box-shadow:0 10px 25px -5px #0000001a,0 8px 10px -6px #0000001a;z-index:1000;display:flex;flex-direction:column;overflow:hidden;animation:slide-down-flyout .2s ease-out}@keyframes slide-down-flyout{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}.notifications-header{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;background:#f8fafc;border-bottom:1px solid var(--border-soft, #e2e8f0)}.notifications-header h3{margin:0;font-size:13px;font-weight:700;color:#0f172a;display:flex;align-items:center;gap:6px}.notifications-tabs{display:flex;border-bottom:1px solid var(--border-soft, #e2e8f0);background:#fff}.notifications-tab{flex:1;padding:10px 8px;font-size:11.5px;font-weight:600;color:#64748b;border:none;background:transparent;cursor:pointer;border-bottom:2px solid transparent;display:flex;align-items:center;justify-content:center;gap:6px;transition:all .2s}.notifications-tab:hover{color:#0f172a;background:#f8fafc}.notifications-tab.active{color:#2563eb;border-bottom-color:#2563eb;background:#fff}.notifications-tab-count{display:inline-block;padding:1px 6px;border-radius:999px;font-size:10px;font-weight:700}.notifications-tab-count.red{background:#fee2e2;color:#b91c1c}.notifications-tab-count.green{background:#dcfce7;color:#15803d}.notifications-list{max-height:340px;overflow-y:auto;padding:8px 0}.notification-item{display:flex;align-items:flex-start;gap:12px;padding:10px 16px;border-bottom:1px solid #f1f5f9;transition:background .15s}.notification-item:hover{background:#f8fafc}.notification-item:last-child{border-bottom:none}.notification-icon-wrap{width:32px;height:32px;border-radius:8px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.notification-icon-wrap.overdue{background:#fef2f2;color:#dc2626}.notification-icon-wrap.new{background:#f0fdf4;color:#16a34a}.notification-content{flex:1;min-width:0}.notification-title{font-size:12px;font-weight:600;color:#0f172a;margin-bottom:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.notification-subtitle{font-size:11px;color:#64748b;margin-bottom:4px}.notification-footer{display:flex;align-items:center;justify-content:space-between;gap:8px}.notification-action-link{font-size:11px;color:#2563eb;font-weight:600;background:none;border:none;padding:0;cursor:pointer;text-decoration:underline}.notifications-empty{padding:24px 16px;text-align:center;color:#64748b;font-size:12px}.dashboard-alerts-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:12px;margin-bottom:14px}.dashboard-alert-banner{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 16px;border-radius:10px;border:1px solid}.dashboard-alert-banner.warning{background:#fffbeb;border-color:#fde68a;color:#92400e}.dashboard-alert-banner.danger{background:#fef2f2;border-color:#fecaca;color:#991b1b}.dashboard-alert-banner.info{background:#eff6ff;border-color:#bfdbfe;color:#1e40af}.dashboard-alert-banner.success{background:#f0fdf4;border-color:#bbf7d0;color:#166534}.dashboard-alert-left{display:flex;align-items:center;gap:12px}.dashboard-alert-left strong{display:block;font-size:12.5px}.dashboard-alert-left p{margin:2px 0 0;font-size:11px;opacity:.9}.churn-summary-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;margin-bottom:16px}.churn-summary-kpi{background:#fff;border:1px solid var(--border-soft, #e2e8f0);border-radius:10px;padding:14px 16px}.churn-summary-kpi .kpi-label{font-size:11px;font-weight:600;color:#64748b;text-transform:uppercase;margin-bottom:4px;display:block}.churn-summary-kpi .kpi-val{font-size:20px;font-weight:700;color:#0f172a}.churn-summary-kpi.positive .kpi-val{color:#16a34a}.churn-summary-kpi.negative .kpi-val{color:#dc2626}.churn-summary-kpi.neutral .kpi-val{color:#2563eb}@media print{@page{size:A4 portrait;margin:10mm 12mm}body{background:#fff!important;color:#0f172a!important;padding:0!important;margin:0!important;font-size:11px!important}.sidebar,.topbar,.crud-tabs-bar,.crud-top-nav,.footer-actions,.button,.dialog-backdrop,header,nav,.no-print{display:none!important}.statement-container{border:none!important;box-shadow:none!important;padding:0!important;width:100%!important;max-width:100%!important}}@keyframes spin-animation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.spin-animation{animation:spin-animation 1s linear infinite}@keyframes pulse-animation{0%,to{opacity:1;transform:scale(1)}50%{opacity:.5;transform:scale(.95)}}.pulse{animation:pulse-animation 2s cubic-bezier(.4,0,.6,1) infinite}.segmented-filter-count.danger{background:#dc2626!important;color:#fff!important;font-weight:800}.segmented-filter-count.amber{background:#d97706!important;color:#fff!important;font-weight:800}.segmented-filter-btn.danger-tab{color:#b91c1c}.segmented-filter-btn.danger-tab.active{background:#fef2f2;color:#991b1b;border-color:#fca5a5}.blocked-banner-alert{margin:14px 20px 0;padding:10px 14px;border-radius:10px;background:linear-gradient(90deg,#fef2f2,#fff1f2);border:1px solid #fca5a5;border-left:4px solid #dc2626;color:#991b1b;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:12.5px}.free-awaiting-banner{margin:14px 20px 0;padding:10px 14px;border-radius:10px;background:linear-gradient(90deg,#fffbeb,#fefce8);border:1px solid #fde68a;border-left:4px solid #d97706;color:#92400e;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:12.5px}.modern-data-table tbody tr.row-blocked td{background:#fff1f2!important}.modern-data-table tbody tr.row-blocked td:first-child{box-shadow:inset 4px 0 #dc2626}.modern-data-table tbody tr.row-blocked:hover td{background:#ffe4e6!important}.blocked-alert-pill{display:inline-flex;align-items:center;gap:4px;padding:2px 7px;border-radius:6px;background:#dc2626;color:#fff;font-size:10px;font-weight:800;letter-spacing:.03em;text-transform:uppercase;margin-top:3px;width:fit-content}.status-dot-badge.blocked{background:#fee2e2;color:#991b1b;border-color:#f87171;font-weight:750;box-shadow:0 0 0 1px #dc26261f}.free-awaiting-pill{display:inline-flex;align-items:center;gap:4px;padding:2px 7px;border-radius:6px;background:#fef3c7;color:#92400e;border:1px solid #fcd34d;font-size:10px;font-weight:700;margin-top:3px;width:fit-content}.contract-cancelled-pill{display:inline-flex;align-items:center;gap:4px;padding:2px 7px;border-radius:6px;background:#f1f5f9;color:#475569;border:1px solid #cbd5e1;font-size:10px;font-weight:700;margin-top:3px;width:fit-content}.trial-funnel-board{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px;padding:16px 20px 20px;align-items:start}.trial-funnel-column{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;overflow:hidden;display:flex;flex-direction:column;min-height:220px}.trial-funnel-column-header{background:#fff;padding:12px 14px;border-bottom:1px solid #e2e8f0;display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.trial-funnel-count{min-width:24px;height:22px;padding:0 7px;border-radius:999px;font-size:11px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.trial-funnel-cards{padding:10px;display:flex;flex-direction:column;gap:10px}.trial-funnel-card{background:#fff;border:1px solid #e2e8f0;border-radius:10px;padding:12px;display:flex;flex-direction:column;gap:8px;box-shadow:0 1px 2px #0f172a0a}.trial-funnel-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.trial-funnel-card-meta{display:flex;flex-direction:column;gap:4px;font-size:11.5px;color:#475569}.trial-funnel-card-meta>div{display:flex;align-items:center;gap:6px;min-width:0}.trial-funnel-card-meta span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.trial-funnel-card-note{margin:0;padding:7px 9px;background:#f8fafc;border-radius:6px;border-left:2px solid #94a3b8;font-size:11.5px;color:#334155;line-height:1.4}.trial-funnel-card-actions{display:flex;flex-wrap:wrap;gap:5px;padding-top:4px;border-top:1px solid #f1f5f9}.trial-funnel-empty{text-align:center;padding:24px 12px;font-size:12px;color:#94a3b8}
