@font-face{font-family:Manrope;src:url("/static/fonts/manrope-latin.woff2") format("woff2");font-style:normal;font-weight:200 800;font-display:swap}
@font-face{font-family:"JetBrains Mono";src:url("/static/fonts/jetbrains-mono-latin.woff2") format("woff2");font-style:normal;font-weight:100 800;font-display:swap}
:root{color-scheme:dark;--bg:#07070b;--panel:#12101b;--panel-hover:#111019;--border:rgba(201,189,235,.13);--text:#f6f3ff;--muted:#aaa4b8;--accent:#a78bfa;--accent-strong:#7549ee;--accent-dark:#5630b7;--success:#5ee0ad;--red:#fb7185;--amber:#fbbf24;--radius:16px;font-family:Manrope,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:14px}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text)}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:inherit;text-decoration:none}button{border:0}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:4px}input,textarea,select{width:100%;padding:13px 14px;border:1px solid var(--border);border-radius:10px;background:#15131e;color:var(--text);outline:none;min-height:46px}input:focus,textarea:focus,select:focus{border-color:var(--accent);box-shadow:0 0 0 3px #a78bfa14}textarea{resize:vertical;min-height:110px}input[type=checkbox]{width:20px;min-height:20px;height:20px;accent-color:var(--accent)}input[type=file]{font-size:13px}label{display:flex;flex-direction:column;gap:8px;color:#aaa4b8;font-size:13px}h1,h2,h3,p{margin:0}h1{font-size:28px;letter-spacing:-1px;font-weight:650}h2{font-size:18px;font-weight:600;letter-spacing:-.3px}h3{font-size:15px;font-weight:600}.muted{color:var(--muted)}.small{font-size:12px}.mono{font-variant-numeric:tabular-nums;font-family:"JetBrains Mono",ui-monospace,Consolas,monospace}.icon{width:20px;height:20px;flex-shrink:0;stroke:currentColor;stroke-width:1.6;fill:none;stroke-linecap:round;stroke-linejoin:round}.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:11px 17px;border-radius:10px;background:var(--panel-hover);color:var(--text);border:1px solid var(--border);font-weight:550;white-space:nowrap}.btn:hover{background:#15131e}.btn.primary{color:var(--text);background:var(--accent-strong);border-color:var(--accent-strong)}.btn.primary:hover{background:#8b5cf6}.btn.ghost{background:transparent}.btn.sm{padding:8px 12px;font-size:12px;min-height:38px}.btn.danger{color:var(--red)}.icon-btn{display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--border);border-radius:10px;background:transparent;color:var(--muted)}.eyebrow{font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:1.7px;color:var(--muted)}.sidebar{position:fixed;left:0;top:0;bottom:0;width:246px;padding:31px 23px 22px;background:#0c0b12;border-right:1px solid var(--border);display:flex;flex-direction:column;z-index:20}.sidebar .eyebrow{padding-left:14px;margin-bottom:14px}.nav{display:flex;flex-direction:column;gap:7px}.nav a{display:flex;align-items:center;gap:12px;border-radius:10px;padding:13px 14px;min-height:46px;color:var(--muted);font-size:13px}.nav a:hover{background:var(--panel)}.nav a.active{background:#a78bfa10;color:var(--accent)}.nav a.active:after{content:"";width:6px;height:6px;border-radius:50%;background:var(--accent);margin-left:auto}.sidebar-footer{display:flex;align-items:center;gap:10px;margin-top:22px}.avatar{width:35px;height:35px;display:grid;place-items:center;border-radius:50%;background:#a78bfa1f;color:#a78bfa;font-size:12px;font-weight:600;flex-shrink:0}.sidebar-footer .user-info{min-width:0;flex:1}.sidebar-footer strong{font-size:12px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebar-footer small{display:block;color:var(--muted);font-size:10px;margin-top:4px}.sidebar-footer button{border:0;width:35px;height:35px}.main{margin-left:246px}.topbar{height:76px;padding:0 36px;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:center}.breadcrumb{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:12px}.breadcrumb span:last-child{color:#f6f3ff}.topbar-right{display:flex;align-items:center;gap:18px;color:var(--muted);font-size:12px}.status-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--accent);margin-right:7px}.content{max-width:1440px;padding:34px 36px 50px;margin:auto}.page-head{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:30px}.head-actions{display:flex;gap:9px;flex-wrap:wrap}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:26px}.stat{border:1px solid var(--border);border-radius:var(--radius);background:var(--panel);padding:22px}.stat-top{display:flex;justify-content:space-between;align-items:center;gap:8px;color:var(--muted);font-size:12px}.stat-icon{display:grid;place-items:center;width:34px;height:34px;background:#111019;border-radius:9px;color:#aaa4b8}.stat:nth-child(2) .stat-icon{color:var(--accent);background:#a78bfa12}.stat:nth-child(4) .stat-icon{color:var(--amber);background:#fbbf2412}.stat-value{font-size:29px;font-weight:600;letter-spacing:-1px;margin:15px 0 10px;white-space:nowrap}.stat-foot{color:var(--muted);font-size:11px;line-height:1.5}.stat-foot .accent{color:var(--accent)}.panel{background:var(--panel);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden}.panel-head{padding:22px 24px;display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid var(--border)}.panel-head p{font-size:12px;color:var(--muted);margin-top:6px}.panel-body{padding:24px}.dashboard-grid{display:grid;grid-template-columns:1.4fr 1fr;gap:22px;margin-bottom:22px}.chart{height:190px;display:flex;gap:18px;align-items:flex-end;padding:10px 0 0}.chart-col{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;gap:9px;min-width:0}.chart-bar{width:100%;max-width:48px;min-height:3px;background:#a78bfa40;border-radius:6px 6px 0 0;position:relative}.chart-bar.current{background:var(--accent)}.chart-col small{color:var(--muted);font-size:10px}.chart-value{font-size:10px;color:var(--muted);white-space:nowrap}.chart-empty{height:190px;display:grid;place-items:center;color:var(--muted);text-align:center;font-size:13px;line-height:1.7}.chart-key{display:flex;align-items:center;gap:8px;margin-top:20px;color:var(--muted);font-size:11px}.chart-key i{width:8px;height:8px;border-radius:2px;background:var(--accent)}.activity-list{padding:5px 24px}.activity-item{display:flex;gap:12px;padding:17px 0;border-bottom:1px solid #c9bdeb2180}.activity-item:last-child{border:0}.activity-marker{width:28px;height:28px;background:#a78bfa0e;color:var(--accent);display:grid;place-items:center;border-radius:50%;flex-shrink:0}.activity-marker .icon{width:14px;height:14px}.activity-item p{font-size:12px;line-height:1.5}.activity-item small{display:block;font-size:10px;color:var(--muted);margin-top:5px}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.search{position:relative;flex:1;max-width:420px}.search .icon{position:absolute;left:14px;top:13px;color:var(--muted);width:18px}.search input{padding-left:42px}.filters{display:flex;gap:9px}.filters select{width:auto;min-width:150px}.tabs{display:flex;gap:5px;padding:4px;background:#0c0b12;border:1px solid var(--border);border-radius:10px}.tabs button{border-radius:7px;min-height:36px;padding:8px 15px;background:none;color:var(--muted);font-size:12px;white-space:nowrap}.tabs button.active{background:#c9bdeb21;color:var(--text)}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left}th{font-size:10px;font-weight:500;color:var(--muted);letter-spacing:.4px;text-transform:uppercase;background:#0c0b12;padding:15px 22px;white-space:nowrap}td{padding:18px 22px;border-top:1px solid var(--border);font-size:12px;color:#aaa4b8}.company{display:flex;align-items:center;gap:12px;min-width:150px}.company-logo{width:38px;height:38px;border-radius:10px;display:grid;place-items:center;background:#111019;color:#aaa4b8;font-size:13px;font-weight:650;flex-shrink:0}.company strong{color:var(--text);display:block;line-height:1.5;font-size:12px}.company small{color:var(--muted);display:block;font-size:10px;margin-top:4px}.badge{display:inline-flex;align-items:center;gap:6px;border-radius:6px;padding:6px 8px;font-size:10px;white-space:nowrap;background:#111019;color:#aaa4b8}.badge.green{background:rgba(94,224,173,.12);color:var(--success)}.badge.amber{background:#fbbf2410;color:var(--amber)}.badge.red{background:#fb718510;color:var(--red)}.badge i{width:5px;height:5px;border-radius:50%;background:currentColor}.table-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:15px 22px;border-top:1px solid var(--border);color:var(--muted);font-size:11px}.pagination{display:flex;align-items:center;gap:8px}.pagination button{min-height:34px}.empty{display:flex;flex-direction:column;align-items:center;text-align:center;padding:54px 24px;gap:14px;color:var(--muted)}.empty-icon{width:54px;height:54px;border-radius:15px;background:#111019;color:#aaa4b8;display:grid;place-items:center}.empty-icon .icon{width:26px;height:26px}.empty h3{color:var(--text)}.empty p{max-width:410px;font-size:12px;line-height:1.8}.empty .btn{margin-top:6px}.cards{display:none}.hint{font-size:12px;color:var(--muted);line-height:1.8;margin-top:16px;display:flex;align-items:flex-start;gap:8px}.hint .icon{width:16px;height:16px;margin-top:3px}.section-summary{display:flex;gap:18px;flex-wrap:wrap;font-size:12px;color:var(--muted);margin-bottom:20px}.section-summary strong{color:var(--text);font-weight:600}.section-summary .accent{color:var(--accent)}.mobile-brand,.bottom-nav{display:none}dialog{background:#12101b;color:var(--text);border:1px solid #a78bfa52;border-radius:20px;padding:0;max-width:590px;width:calc(100% - 32px);max-height:90dvh;box-shadow:0 24px 100px #0008}dialog::backdrop{background:#07070bc9;backdrop-filter:blur(5px)}.modal-head{padding:22px 24px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;gap:12px}.modal-head .icon-btn{border:0}.modal-body{padding:24px}.modal-footer{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid var(--border);padding:18px 24px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.form-grid .full{grid-column:1/-1}.form-stack{display:flex;flex-direction:column;gap:18px}.check-label{display:flex;flex-direction:row;align-items:center;gap:10px;min-height:44px}.form-error{font-size:12px;line-height:1.6;color:var(--red);margin-top:15px}.info-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:24px 0}.info-grid dt{font-size:10px;color:var(--muted);margin-bottom:7px}.info-grid dd{margin:0;font-size:12px;overflow-wrap:anywhere}.info-grid a{color:var(--accent)}.detail-company{display:flex;align-items:center;gap:14px}.detail-company .company-logo{width:48px;height:48px}.detail-company h2{font-size:18px}.detail-company p{font-size:11px;margin-top:6px;color:var(--muted)}.detail-section{border-top:1px solid var(--border);padding-top:22px;margin-top:24px}.detail-section h3{margin-bottom:14px}.comment{padding:13px 14px;background:#0c0b12;border:1px solid var(--border);border-radius:10px;margin-bottom:10px}.comment-top{display:flex;justify-content:space-between;gap:8px;font-size:11px;margin-bottom:8px}.comment-top span{color:var(--muted);font-size:10px}.comment p{font-size:12px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}.comment-form{display:flex;flex-direction:column;gap:10px}.comment-form .btn{align-self:flex-end}.auth-page{min-height:100dvh;display:grid;place-items:center;padding:32px 24px}.auth-box{width:100%;max-width:360px}.auth-box h2{font-size:26px;margin-bottom:26px;text-align:center}.auth-box .btn{width:100%;margin-top:6px}.auth-box .form-error:empty{display:none}.password-input{position:relative}.password-input input{padding-right:50px}.password-input button{position:absolute;right:4px;top:3px;border:0;background:none}.boot{min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;color:var(--muted)}.boot img{width:48px}#toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,20px);padding:13px 20px;border:1px solid #5ee0ad;border-radius:12px;background:#111019;color:#f6f3ff;max-width:calc(100% - 32px);font-size:13px;opacity:0;pointer-events:none;transition:.2s;z-index:100}#toast.visible{opacity:1;transform:translate(-50%,0)}#toast.error{background:#12101b;border-color:#fb7185;color:#fb7185}.loading{padding:70px;text-align:center;color:var(--muted)}.error-box{padding:40px;text-align:center;line-height:1.8;color:var(--red)}.text-link{color:var(--accent);font-size:12px;background:none;padding:10px 0;display:flex;gap:5px;align-items:center}.progress-track{height:5px;background:#111019;border-radius:5px;margin-top:17px;overflow:hidden}.progress-fill{height:100%;background:var(--accent);width:var(--progress)}
@media(min-width:1600px){.content{padding-top:45px}.stat{padding:25px}.stat-value{font-size:34px}}
@media(max-width:1150px){.sidebar{width:218px;padding-left:16px;padding-right:16px}.main{margin-left:218px}.content{padding:28px 24px}.topbar{padding:0 24px}.stats{gap:12px}.stat{padding:17px}.stat-value{font-size:24px}.dashboard-grid{grid-template-columns:1fr 1fr}td,th{padding-left:16px;padding-right:16px}.topbar-right .date-label{display:none}}
@media(max-width:850px){.sidebar{display:none}.main{margin-left:0}.topbar{height:68px;padding:0 20px}.breadcrumb{display:none}.mobile-brand{display:flex}.mobile-brand img{width:160px;height:40px}.topbar-right .online-label{display:none}.content{padding:26px 20px 108px}.bottom-nav{display:flex;position:fixed;bottom:0;left:0;right:0;height:calc(70px + env(safe-area-inset-bottom));padding:8px 10px calc(8px + env(safe-area-inset-bottom));border-top:1px solid var(--border);background:#0c0b12f5;backdrop-filter:blur(16px);z-index:30;justify-content:space-around}.bottom-nav a{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px;min-width:50px;font-size:9px;color:var(--muted);border-radius:9px;padding:6px 8px}.bottom-nav a.active{color:var(--accent);background:#a78bfa0a}.bottom-nav .icon{width:21px;height:21px}.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.stat-value{font-size:27px}.dashboard-grid{grid-template-columns:1fr}#toast{bottom:90px}.toolbar{flex-wrap:wrap}.toolbar .search{max-width:none;flex-basis:100%}.filters{flex:1}.filters select{min-width:0;flex:1}.page-head{align-items:flex-start}.page-head h1{font-size:25px}.head-actions .btn{font-size:12px;padding:10px 13px}.chart{gap:12px}.stat-top{font-size:11px}.stat-icon{width:30px;height:30px}.panel-head{padding:19px 20px}.panel-body{padding:20px}}
@media(max-width:600px){.content{padding:23px 16px 104px}.page-head{flex-direction:column;gap:17px;margin-bottom:24px}.head-actions{width:100%}.head-actions .btn{flex:1}.stat{padding:16px}.stat-value{font-size:24px}.stat-foot{font-size:10px}.stat-top{gap:4px;font-size:10px}.stats{gap:10px}.panel-head h2{font-size:15px}.panel-head .btn{font-size:10px;padding:8px 10px}.table-wrap.responsive-table{display:none}.cards{display:flex;flex-direction:column;gap:12px}.record-card{padding:18px;background:var(--panel);border:1px solid var(--border);border-radius:14px}.record-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.record-card .company{min-width:0}.record-card .company strong{font-size:13px;overflow-wrap:anywhere}.record-card-info{display:flex;justify-content:space-between;gap:10px;margin-top:18px;font-size:11px;color:var(--muted);align-items:center}.record-card-actions{display:flex;justify-content:space-between;align-items:center;margin-top:16px;padding-top:14px;border-top:1px solid var(--border);font-size:11px;color:var(--muted)}.record-card-actions .btn{font-size:11px;min-height:40px}.cards+.table-footer{border:0;padding:18px 0}.mobile-unboxed{border:0;background:transparent;overflow:visible}.form-grid{grid-template-columns:1fr}.form-grid .full{grid-column:auto}.modal-head,.modal-body{padding:19px}.modal-footer{padding:15px 19px}.modal-footer .btn{flex:1}.tabs{width:100%;justify-content:space-between}.tabs button{padding:8px 11px;flex:1}.section-summary{gap:10px;font-size:11px}.topbar-right{gap:8px}.dashboard-pending td,.dashboard-pending th{padding:14px 12px;font-size:11px}.dashboard-pending th:nth-child(2),.dashboard-pending td:nth-child(2){display:none}.dashboard-pending .company-logo{display:none}.dashboard-pending .company{min-width:0}.activity-list{padding:5px 20px}.chart-value{font-size:9px}.info-grid{gap:15px}.panel-head p{font-size:11px}.hint{font-size:11px}}

.sidebar-password{margin-top:auto;padding:14px 0;text-align:left}

.brand{display:flex;flex-direction:column;align-items:flex-start;gap:2px}.brand img{width:200px;height:50px;object-fit:contain}.brand-label{padding-left:33px;color:var(--muted);font-family:"JetBrains Mono",monospace;font-size:9px;letter-spacing:1.4px;text-transform:uppercase}.auth-box h2{font-weight:650}.status-dot{background:var(--success)}
.mobile-brand{display:none}.sidebar .brand{margin-bottom:35px}
@media(max-width:850px){.mobile-brand{display:flex}.mobile-brand img{width:160px;height:40px}.mobile-brand .brand-label{padding-left:26px;font-size:8px;letter-spacing:1.2px}}
.nav{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;gap:22px;scrollbar-width:thin}.nav-section .eyebrow{font-size:10px;font-weight:600;margin:0 0 9px}.nav-section a+a{margin-top:5px}.sidebar-password{margin-top:16px;flex-shrink:0}.sidebar-footer{flex-shrink:0}.sidebar .brand{flex-shrink:0}
.navigation-open{overflow:hidden}#navigation-drawer{width:min(100% - 32px,480px);padding:0;max-height:80dvh;overflow:hidden}#navigation-drawer[open]{display:flex;flex-direction:column}#navigation-drawer .modal-head{flex-shrink:0;padding:20px 22px}.drawer-search{padding:18px 22px 12px;flex-shrink:0}.drawer-search .search{max-width:none;width:100%}.drawer-search input{padding-left:42px}.drawer-list{padding:8px 16px 24px;overflow-y:auto;min-height:0;overscroll-behavior:contain;scrollbar-width:thin}.drawer-group+.drawer-group{margin-top:22px}.drawer-group .eyebrow{padding:0 10px;margin:0 0 9px;font-size:10px}.drawer-item{width:100%;display:flex;align-items:center;gap:12px;padding:13px 10px;border-radius:11px;background:transparent;color:var(--text);text-align:left;min-height:64px;border:1px solid transparent}.drawer-item:hover{background:var(--panel-hover);border-color:var(--border)}.drawer-item.active{background:rgba(167,139,250,.08);border-color:rgba(167,139,250,.2)}.drawer-icon{width:36px;height:36px;flex-shrink:0;display:grid;place-items:center;border-radius:9px;background:rgba(167,139,250,.08);color:var(--accent)}.drawer-item-copy{min-width:0;flex:1}.drawer-item-copy strong{font-size:13px;font-weight:600;display:block;line-height:1.5}.drawer-item-copy small{font-size:11px;display:block;margin-top:4px;line-height:1.6;color:var(--muted)}.drawer-item>.icon{width:17px;height:17px;color:var(--muted)}.drawer-empty{padding:30px 10px;color:var(--muted);font-size:13px;line-height:1.8;text-align:center}
@media(max-width:850px){.bottom-nav a,.bottom-nav button{flex:1;min-width:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px;font:inherit;font-size:10px;font-weight:500;color:var(--muted);border-radius:9px;padding:6px 8px;background:transparent;min-height:50px}.bottom-nav a.active,.bottom-nav button.active{color:var(--accent);background:rgba(167,139,250,.06)}#navigation-drawer{width:100%;max-width:100%;max-height:80dvh;margin:auto 0 0;border-radius:22px 22px 0 0;border-bottom:0;padding-bottom:env(safe-area-inset-bottom)}.drawer-list{padding-bottom:24px}}

/* Movimento discreto, compartilhado entre desktop e mobile. */
:root {
  --motion-fast: 160ms;
  --motion-enter: 320ms;
  --motion-ease: cubic-bezier(.2,.7,.2,1);
}

.btn,.icon-btn,.nav a,.bottom-nav a,.bottom-nav button,.tabs button,.drawer-item,.text-link {
  transition: background-color var(--motion-fast) ease,
    color var(--motion-fast) ease, border-color var(--motion-fast) ease,
    box-shadow var(--motion-fast) ease, transform var(--motion-fast) var(--motion-ease);
}
input,textarea,select {
  transition: border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}
.stat,.panel,.record-card {
  transition: border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}
tbody td {
  transition: background-color var(--motion-fast) ease;
}
#toast {
  transition: opacity 200ms ease, transform 200ms var(--motion-ease);
}

@media(hover:hover) and (pointer:fine) {
  .btn:not(:disabled):hover,.icon-btn:not(:disabled):hover {transform:translateY(-2px)}
  .icon-btn:not(:disabled):hover {background:var(--panel-hover);color:var(--text);border-color:var(--accent)}
  .nav a:hover {transform:translateX(3px);color:var(--text)}
  .bottom-nav a:hover,.bottom-nav button:not(:disabled):hover,.tabs button:not(:disabled):hover {background:#a78bfa10;color:var(--text)}
  .text-link:not(:disabled):hover {color:var(--text)}
  .stat:hover,.record-card:hover {border-color:#a78bfa40;box-shadow:0 6px 20px #0002}
  tbody tr:hover td {background:#a78bfa06}
}
.btn:not(:disabled):active,.icon-btn:not(:disabled):active,
.tabs button:not(:disabled):active,.bottom-nav a:active,.bottom-nav button:not(:disabled):active {
  transform:scale(.97);
}

.page-head,.auth-box,.empty,.error-box {
  animation: fade-rise var(--motion-enter) var(--motion-ease) backwards;
}
.stats > .stat,.content > .panel,.dashboard-grid > .panel,.cards > .record-card {
  animation: fade-rise var(--motion-enter) var(--motion-ease) 40ms backwards;
}
.stats > .stat:nth-child(2),.cards > .record-card:nth-child(2),.dashboard-grid > .panel:nth-child(2) {animation-delay:80ms}
.stats > .stat:nth-child(3),.cards > .record-card:nth-child(3) {animation-delay:120ms}
.stats > .stat:nth-child(4),.cards > .record-card:nth-child(4) {animation-delay:160ms}
.cards > .record-card:nth-child(n+5) {animation-delay:200ms}

dialog[open] {
  animation: modal-enter 240ms var(--motion-ease);
}
dialog[open]::backdrop {
  animation: fade-in 200ms ease;
}
.chart-bar {
  transform-origin:bottom;
  animation: grow-y 520ms var(--motion-ease) 100ms backwards;
}
.progress-fill {
  transform-origin:left;
  animation: grow-x 520ms var(--motion-ease) 100ms backwards;
}
.loading::before {
  content:"";
  display:block;
  width:24px;
  height:24px;
  margin:0 auto 16px;
  border:2px solid var(--border);
  border-top-color:var(--accent);
  border-radius:50%;
  animation: loading-spin 800ms linear infinite;
}
.boot img {
  animation: loading-pulse 1400ms ease-in-out infinite;
}

@keyframes fade-in {from {opacity:0} to {opacity:1}}
@keyframes fade-rise {from {opacity:0;transform:translateY(8px)} to {opacity:1;transform:translateY(0)}}
@keyframes modal-enter {from {opacity:0;transform:translateY(12px) scale(.98)} to {opacity:1;transform:translateY(0) scale(1)}}
@keyframes drawer-enter {from {opacity:0;transform:translateY(24px)} to {opacity:1;transform:translateY(0)}}
@keyframes grow-y {from {transform:scaleY(0)} to {transform:scaleY(1)}}
@keyframes grow-x {from {transform:scaleX(0)} to {transform:scaleX(1)}}
@keyframes loading-spin {to {transform:rotate(360deg)}}
@keyframes loading-pulse {0%,100% {opacity:.55} 50% {opacity:1}}

@media(max-width:850px) {
  #navigation-drawer[open] {animation-name:drawer-enter}
}
@media(max-width:600px) {
  /* Os cards já animam individualmente dentro deste painel transparente. */
  .content > .panel.mobile-unboxed {animation:none}
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after,*::backdrop {
    animation:none!important;
    transition:none!important;
    scroll-behavior:auto!important;
  }
  .btn,.icon-btn,.nav a,.bottom-nav a,.bottom-nav button,.tabs button {transform:none!important}
}

.invoice-service{margin-top:14px;color:var(--muted);font-size:12px;line-height:1.6;overflow-wrap:anywhere}
.lead-filters{margin-bottom:20px;border:1px solid var(--border);border-radius:var(--radius);background:var(--panel)}
.lead-filters>summary{padding:14px 18px;cursor:pointer;color:var(--text);font-size:12px}
.lead-filters>summary .badge{margin-left:8px;color:var(--accent)}
.lead-filter-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:4px 18px 18px}
.lead-filter-grid label{min-width:0}
.lead-filter-grid select,.lead-filter-grid input{min-width:0;width:100%}
.lead-summary{align-items:center;justify-content:space-between}
.lead-summary .text-link{padding:0;min-height:32px}
@media(max-width:1100px){.lead-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.lead-filter-grid{grid-template-columns:minmax(0,1fr)}}
details.detail-section{overflow-wrap:anywhere}
details.detail-section>summary{cursor:pointer;margin-bottom:16px;color:var(--accent)}
.modal-body .btn{max-width:100%;white-space:normal}
@media(max-width:480px){.filters{min-width:0;flex-wrap:wrap}.filters select{min-width:0;flex:1 1 140px}}
#toast[popover]{inset:auto auto 25px 50%;margin:0;overflow-wrap:anywhere}
@media(max-width:850px){#toast[popover]{bottom:90px}}
#save-loading{position:fixed;inset:0;margin:0;width:100vw;height:100dvh;max-width:none;max-height:none;border:0;border-radius:0;background:#07070bd9;box-shadow:none;overflow:hidden;animation:none}
#save-loading[open]{display:grid;place-items:center}
#save-loading::backdrop{background:transparent;animation:none}
#save-loading .loading{padding:24px;color:var(--text);outline:none;font-size:14px}
.enrichment-panel{overflow-wrap:anywhere}
.enrichment-panel h4{margin:20px 0 10px;font-size:13px}
.enrichment-card{padding:12px;border:1px solid var(--border);border-radius:10px;margin:8px 0}
.enrichment-card p{margin:6px 0;line-height:1.5}
.enrichment-searches{line-height:2;margin:14px 0}
#save-loading .loading::before{width:38px;height:38px;border-width:3px}
