/* Bootstrap-based visual layer. Compatibility utilities keep the existing JS templates readable. */
:root { --brand: #b5222b; --brand-dark: #871b22; --ink: #1f2937; --muted: #6b7280; }
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: #f3f5f8; }
.app-shell { min-height: 100vh; }
.app-sidebar { width: 16rem !important; min-height: 100vh; position: sticky; top: 0; height: 100vh; z-index: 1040; overflow-x: hidden; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #64748b transparent; transition: width .22s ease, transform .25s ease; background: linear-gradient(180deg, #172131, #101722) !important; }
.app-main { min-width: 0; min-height: 100vh; background: #f3f5f8 !important; }
.mobile-header, .sidebar-backdrop { display: none; }
.sidebar-brand { flex: 0 0 auto; padding: 1rem !important; position: relative; }
.sidebar-collapse-toggle { position:absolute; top:.55rem; right:.55rem; width:1.9rem; height:1.9rem; display:flex; align-items:center; justify-content:center; padding:0; color:#cbd5e1; background:#243247; border:1px solid #46566e; border-radius:.5rem; z-index:2; transition:.2s ease; }
.sidebar-collapse-toggle:hover { color:#fff; background:#34465f; }
.sidebar-brand img { max-width: 180px !important; max-height: 90px; }
.sidebar-brand p, .sidebar-collapsed .sidebar-brand p { display: none !important; }
.app-breadcrumb > span, .app-breadcrumb > i { display: none !important; }
.sidebar-brand p { margin: .35rem 0 0; }
.sidebar-nav { flex: 0 0 auto !important; overflow: visible !important; padding: .75rem !important; }
.sidebar-nav .nav-btn { padding: .65rem .8rem !important; min-height: 2.65rem; display: flex; align-items: center; }
.sidebar-user { flex: 0 0 auto; padding: .85rem !important; }
.sidebar-user p { margin-top: 0; }
.sidebar-footer { flex: 0 0 auto; padding: .8rem !important; }
.sidebar-footer p { margin: 0; }
.sidebar-collapsed .app-sidebar { width: 4.75rem !important; }
.sidebar-collapsed .sidebar-brand { height: 3.75rem; padding: .85rem !important; display:flex; justify-content:center; align-items:center; }
.sidebar-collapsed .sidebar-brand img, .sidebar-collapsed .sidebar-brand p, .sidebar-collapsed .sidebar-user, .sidebar-collapsed .sidebar-footer { display:none !important; }
.sidebar-collapsed .sidebar-collapse-toggle { position:static; flex:0 0 auto; }
.sidebar-collapsed .sidebar-nav { padding:.5rem !important; }
.sidebar-collapsed .sidebar-nav .nav-btn { width:100%; overflow:hidden; white-space:nowrap; padding:.65rem .72rem !important; }
.sidebar-collapsed .sidebar-nav .nav-btn svg { margin-right:2rem !important; flex:0 0 auto; }
.sidebar-collapsed .sidebar-nav > .border-t { margin:.35rem 0 !important; }
.report-filters > div { flex: 1 1 12rem; min-width: 0; }
.report-filters input, .report-filters select { width: 100%; min-width: 0; }
.report-filters > button { flex: 0 0 auto; min-height: 2.55rem; }
.summary-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)) !important; }
.summary-grid > div { min-width: 0; }
.summary-grid .text-2xl, .summary-grid .text-3xl { overflow-wrap: anywhere; }
.summary-total-card { position:relative; }
.summary-total-card > .flex > div { width:100%; min-width:0; }
.summary-total-card > .flex > span { position:absolute; top:1.25rem; right:1.25rem; }
.summary-total-value { white-space:nowrap; overflow-wrap:normal !important; font-size:clamp(1rem, 1.45vw, 1.5rem) !important; letter-spacing:-.035em; font-variant-numeric:tabular-nums; }
.nav-btn { border: 0; background: transparent; transition: .2s ease; border-left: 3px solid transparent; }
.nav-btn:hover { background: rgba(255,255,255,.08) !important; color: #fff !important; }
.nav-btn.active { background: linear-gradient(90deg, var(--brand), #d83b43) !important; color: #fff !important; border-left-color: #ffd4d6; box-shadow: 0 5px 12px rgba(181,34,43,.25); }
button.bg-red-600, .bg-red-600 { background-color: var(--brand) !important; border-color: var(--brand) !important; }
button.bg-red-600:hover, .hover\:bg-red-700:hover { background-color: var(--brand-dark) !important; }
input, select, textarea { font: inherit; }
input:focus, select:focus, textarea:focus { border-color: #df6970 !important; box-shadow: 0 0 0 .25rem rgba(181,34,43,.15) !important; outline: 0; }
table { border-collapse: separate; border-spacing: 0; }
th { font-weight: 700; }
td, th { white-space: nowrap; }
td.wrap { white-space: normal; word-break: break-word; }
.bg-white.rounded-2xl, .bg-white.rounded-xl { box-shadow: 0 .25rem 1rem rgba(31,41,55,.06) !important; }
.shadow-sm { box-shadow: 0 .2rem .75rem rgba(31,41,55,.06) !important; }
.shadow-xl, .shadow-2xl { box-shadow: 0 1rem 3rem rgba(0,0,0,.22) !important; }
.text-red-600 { color: var(--brand) !important; }
.text-red-700 { color: #951d24 !important; }
.bg-red-100 { background-color: #fde8e9 !important; }
.border-red-200 { border-color: #f5bfc3 !important; }
.focus\:ring-red-500:focus { box-shadow: 0 0 0 .25rem rgba(181,34,43,.15) !important; }
.animate-spin { animation: app-spin 1s linear infinite; }
@keyframes app-spin { to { transform: rotate(360deg); } }

/* Tailwind utility bridge, used by the current rendering templates. */
.hidden { display: none !important; }.block { display:block; }.inline { display:inline; }.inline-block { display:inline-block; }.flex { display:flex; }.inline-flex { display:inline-flex; }.grid { display:grid; }
.flex-1 { flex:1 1 0%; }.flex-col { flex-direction:column; }.flex-wrap { flex-wrap:wrap; }.flex-shrink-0 { flex-shrink:0; }.items-center { align-items:center; }.items-start { align-items:flex-start; }.items-end { align-items:flex-end; }.justify-between { justify-content:space-between; }.justify-center { justify-content:center; }.justify-end { justify-content:flex-end; }
.fixed { position:fixed; }.inset-0 { inset:0; }.z-50 { z-index:1055; }.overflow-hidden { overflow:hidden; }.overflow-auto { overflow:auto; }.overflow-x-auto { overflow-x:auto; }.overflow-y-auto { overflow-y:auto; }.h-screen { height:100vh; }.min-h-screen { min-height:100vh; }.w-full { width:100%; }.h-auto { height:auto; }.mx-auto { margin-left:auto;margin-right:auto; }.object-contain { object-fit:contain; }
.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.p-10{padding:2.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-3\.5{padding-top:.875rem;padding-bottom:.875rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-8{padding-top:2rem;padding-bottom:2rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-16{padding-top:4rem;padding-bottom:4rem}.py-20{padding-top:5rem;padding-bottom:5rem}
.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:1rem}.mb-4{margin-bottom:1.5rem}.mb-5{margin-bottom:1.75rem}.mb-6{margin-bottom:2rem}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:1rem}.mt-4{margin-top:1.5rem}.mr-2{margin-right:.5rem}.ml-1{margin-left:.25rem}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-3{gap:1rem}.gap-4{gap:1.5rem}.gap-6{gap:2rem}.space-y-1>*+*{margin-top:.25rem}.space-x-2>*+*{margin-left:.5rem}
.rounded{border-radius:.25rem}.rounded-lg{border-radius:.5rem}.rounded-xl{border-radius:.75rem}.rounded-2xl{border-radius:1rem}.rounded-full{border-radius:9999px}.border{border:1px solid}.border-b{border-bottom:1px solid}.border-t{border-top:1px solid}.border-gray-100{border-color:#e5e7eb}.border-gray-200{border-color:#d1d5db}.border-gray-300{border-color:#b8c0cc}.border-gray-700{border-color:#374151}.border-green-200{border-color:#b9e4c9}.border-yellow-200{border-color:#f5dc99}.border-amber-200{border-color:#f4cf92}
.bg-gray-50{background-color:#f8fafc}.bg-gray-100{background-color:#f3f5f8}.bg-gray-200{background-color:#e5e7eb}.bg-gray-800{background-color:#1f2937}.bg-gray-900{background-color:#111827}.bg-green-50{background-color:#ecfdf3}.bg-green-100{background-color:#d1fae5}.bg-yellow-50{background-color:#fffbeb}.bg-yellow-100{background-color:#fef3c7}.bg-amber-50{background-color:#fffbeb}.bg-blue-50{background-color:#eff6ff}.bg-blue-100{background-color:#dbeafe}.bg-emerald-50{background-color:#ecfdf5}.bg-black\/50{background-color:rgba(0,0,0,.5)}
.text-white{color:#fff}.text-gray-200{color:#e5e7eb}.text-gray-300{color:#d1d5db}.text-gray-400{color:#9ca3af}.text-gray-500{color:#6b7280}.text-gray-600{color:#4b5563}.text-gray-700{color:#374151}.text-gray-800{color:#1f2937}.text-gray-900{color:#111827}.text-green-600{color:#16803d}.text-green-700{color:#176b37}.text-blue-600{color:#2563eb}.text-blue-700{color:#1d4ed8}.text-amber-600{color:#bd6908}.text-amber-700{color:#92550b}.text-amber-800{color:#79430b}.text-yellow-600{color:#a16207}.text-yellow-700{color:#854d0e}.text-yellow-800{color:#713f12}.text-xs{font-size:.75rem}.text-sm{font-size:.875rem}.text-lg{font-size:1.125rem}.text-xl{font-size:1.25rem}.text-2xl{font-size:1.5rem}.text-3xl{font-size:1.875rem}.text-4xl{font-size:2.25rem}.text-5xl{font-size:3rem}.text-6xl{font-size:3.75rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.font-bold{font-weight:700}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.uppercase{text-transform:uppercase}.capitalize{text-transform:capitalize}.tracking-wider{letter-spacing:.05em}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.break-all{word-break:break-all}.whitespace-normal{white-space:normal}.opacity-70{opacity:.7}.opacity-80{opacity:.8}
.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.w-1\.5{width:.375rem}.w-3\.5{width:.875rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-8{width:2rem}.w-9{width:2.25rem}.w-12{width:3rem}.w-16{width:4rem}.h-1\.5{height:.375rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-12{height:3rem}.h-16{height:4rem}.w-64{width:16rem}.max-w-full{max-width:100%}.max-w-md{max-width:28rem}.max-w-lg{max-width:32rem}.max-w-xs{max-width:20rem}.min-w-\[120px\]{min-width:120px}.min-w-\[140px\]{min-width:140px}.min-w-\[150px\]{min-width:150px}.min-w-\[160px\]{min-width:160px}.min-w-\[180px\]{min-width:180px}.max-w-\[200px\]{max-width:200px}.max-w-\[220px\]{max-width:220px}.max-w-\[260px\]{max-width:260px}
@media (min-width: 576px) { .sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))} }
@media (min-width: 768px) { .md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))} }
@media (min-width: 1200px) { .xl\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))} }
@media (max-width: 767.98px) { .app-shell { display:block !important; padding-top:62px; }.mobile-header { height:62px; display:flex; align-items:center; gap:1rem; padding:0 .9rem; position:fixed; inset:0 0 auto; z-index:1045; background:linear-gradient(90deg,#172131,#26364d); box-shadow:0 2px 10px rgba(0,0,0,.2); }.mobile-header img { max-height:42px; max-width:170px; object-fit:contain; }.app-sidebar, .sidebar-collapsed .app-sidebar { position:fixed; left:0; top:0; transform:translateX(-105%); width:min(18rem, 88vw) !important; }.sidebar-open .app-sidebar { transform:translateX(0); }.sidebar-backdrop { position:fixed; inset:0; z-index:1035; background:rgba(0,0,0,.45); border:0; }.sidebar-open .sidebar-backdrop { display:block; }.sidebar-collapse-toggle { display:none; }.sidebar-collapsed .sidebar-brand { height:auto; display:block; padding:1rem !important; }.sidebar-collapsed .sidebar-brand img, .sidebar-collapsed .sidebar-brand p, .sidebar-collapsed .sidebar-user, .sidebar-collapsed .sidebar-footer { display:initial !important; }.sidebar-collapsed .sidebar-brand img { display:block !important; }.sidebar-collapsed .sidebar-nav { padding:.75rem !important; }.sidebar-collapsed .sidebar-nav .nav-btn { padding:.65rem .8rem !important; }.app-main { min-height:calc(100vh - 62px); padding:clamp(1rem, 3vw, 2rem) !important; }.p-8{padding:1.25rem}.flex.items-center.justify-between.mb-6 { gap:1rem; align-items:flex-start; flex-wrap:wrap; } }
@media (min-width: 1200px) and (max-height: 900px) { .sidebar-brand { padding:.65rem !important; }.sidebar-brand img { max-width:180px !important; max-height:78px; }.sidebar-nav { padding:.5rem !important; }.sidebar-nav .nav-btn { min-height:2.35rem; padding:.45rem .65rem !important; }.sidebar-nav > .border-t { margin:.3rem 0 !important; }.sidebar-user { padding:.65rem !important; }.sidebar-user p { margin-bottom:.3rem !important; }.sidebar-footer { padding:.55rem !important; }.sidebar-footer img { width:1.5rem; } }
@media (max-width: 767.98px) { .report-filters > div { flex-basis:calc(50% - .75rem); }.report-filters > button { flex:1 1 100%; justify-content:center; } }
@media (max-width: 575.98px) { .grid-cols-2,.grid-cols-3 { grid-template-columns:1fr; }.report-filters > div { flex-basis:100%; }.text-2xl{font-size:1.3rem}.px-6{padding-left:1rem;padding-right:1rem}.py-20{padding-top:3rem;padding-bottom:3rem} }

/* Navigation and reports dashboard */
.app-sidebar { background:#102939 !important; box-shadow:none !important; }
.app-content { min-width:0; flex:1 1 0%; display:flex; flex-direction:column; }
.app-topbar { min-height:4.25rem; display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:0 2rem; background:#fff; border-bottom:1px solid #dde6ea; }
.app-breadcrumb, .app-account { display:flex; align-items:center; gap:.75rem; color:#8095a3; font-size:.76rem; }
.app-breadcrumb i { font-size:.65rem; }.app-breadcrumb strong { color:#294354; }
.app-account { gap:1rem; }.app-account > span + span { padding-left:1rem; border-left:1px solid #dce5e9; }
.app-live { display:flex; align-items:center; gap:.45rem; }.app-live i { width:.45rem; height:.45rem; background:#3bb889; border-radius:50%; }
.app-account > strong { width:2rem; height:2rem; display:grid; place-items:center; color:#19745a; background:#e9f4ef; border-radius:50%; font-size:.72rem; }
.sidebar-brand { border-color:rgba(180,205,218,.16) !important; }
.sidebar-nav { padding:.7rem .8rem 1rem !important; }
.nav-heading { margin:1.15rem .7rem .45rem; color:#829cac; font-size:.65rem; font-weight:800; line-height:1; letter-spacing:.16em; text-transform:uppercase; white-space:nowrap; }
.sidebar-nav .nav-btn { min-height:2.75rem; gap:.8rem; padding:.65rem .85rem !important; border-left:3px solid transparent; color:#bfd0da !important; white-space:nowrap; }
.sidebar-nav .nav-btn .nav-icon { width:1.15rem; flex:0 0 1.15rem; color:#9bb5c4; font-size:1rem; text-align:center; }
.sidebar-nav .nav-btn .nav-label { overflow:hidden; text-overflow:ellipsis; }
.sidebar-nav .nav-btn:hover { background:rgba(255,255,255,.055) !important; }
.sidebar-nav .nav-btn.active { color:#f1fff9 !important; background:#285951 !important; border-left-color:#4ed19a; box-shadow:none !important; }
.sidebar-nav .nav-btn.active .nav-icon { color:#a5efd0; }
.sidebar-collapsed .nav-heading, .sidebar-collapsed .nav-label { display:none; }
.sidebar-collapsed .sidebar-nav .nav-btn { justify-content:center; padding:.65rem !important; }
.sidebar-collapsed .sidebar-nav .nav-btn .nav-icon { margin:0; }

.report-page { color:#1b3040; max-width:100%; }
.report-hero { display:flex; align-items:flex-end; justify-content:space-between; gap:1.5rem; margin-bottom:1.5rem; }
.report-eyebrow { margin:0 0 .45rem; color:#138064 !important; font-size:.72rem !important; font-weight:800; letter-spacing:.15em; text-transform:uppercase; }
.report-hero h1 { margin:0; color:#192f3f; font-size:clamp(1.75rem, 2.4vw, 2.35rem); font-weight:750; letter-spacing:-.035em; }
.report-hero > div > p:last-child { margin:.35rem 0 0; color:#7e93a2; font-size:.9rem; }
.report-hero-actions { display:flex; align-items:center; gap:.75rem; flex:0 0 auto; }
.report-period { display:inline-flex; align-items:center; gap:.5rem; padding:.62rem .85rem; color:#27765f; background:#e9f5f0; border:1px solid #d1e9df; border-radius:999px; font-size:.76rem; font-weight:700; white-space:nowrap; }
.report-export { display:inline-flex; align-items:center; gap:.55rem; padding:.65rem .95rem; color:#345266; background:#fff; border:1px solid #d8e2e7; border-radius:.6rem; font-size:.78rem; font-weight:700; white-space:nowrap; }
.report-export:hover { color:#116c55; border-color:#9acaba; background:#f8fcfa; }
.report-panel { background:#fff; border:1px solid #dfe7eb; border-radius:1rem; box-shadow:0 .35rem 1rem rgba(24,48,63,.035); }
.report-filter-panel { padding:1.2rem 1.35rem; margin-bottom:1.35rem; }
.report-panel-heading { display:flex; justify-content:space-between; gap:1rem; margin-bottom:1rem; }
.report-panel-heading strong { font-size:.86rem; }
.report-panel-heading span { color:#8297a6; font-size:.72rem; }
.report-filters { display:grid; grid-template-columns:minmax(13rem,1.35fr) repeat(2,minmax(10rem,1fr)) auto; gap:.8rem; align-items:end; }
.report-filters label { display:flex; flex-direction:column; gap:.4rem; min-width:0; }
.report-filters label > span { color:#748997; font-size:.68rem; font-weight:800; letter-spacing:.07em; text-transform:uppercase; }
.report-filters select, .report-filters input { width:100%; min-width:0; height:2.65rem; padding:.55rem .75rem; color:#263d4c; background:#fff; border:1px solid #d7e1e6; border-radius:.55rem; font-size:.82rem; }
.report-rule-filter { position:relative; min-width:0; }
.report-filter-label { display:block; margin-bottom:.4rem; color:#748997; font-size:.68rem; font-weight:800; letter-spacing:.07em; text-transform:uppercase; }
.report-rule-select { position:relative; }
.report-rule-select summary { height:2.65rem; display:flex; align-items:center; justify-content:space-between; gap:.65rem; padding:.55rem .75rem; color:#263d4c; background:#fff; border:1px solid #d7e1e6; border-radius:.55rem; font-size:.82rem; cursor:pointer; list-style:none; }
.report-rule-select summary::-webkit-details-marker { display:none; }
.report-rule-select[open] summary { border-color:#86b9aa; box-shadow:0 0 0 .2rem rgba(8,114,90,.1); }
.report-rule-select summary i { color:#69808e; font-size:.72rem; transition:transform .15s ease; }
.report-rule-select[open] summary i { transform:rotate(180deg); }
.report-rule-menu { position:absolute; z-index:20; top:calc(100% + .35rem); left:0; width:100%; min-width:14.5rem; padding:.4rem; background:#fff; border:1px solid #d7e1e6; border-radius:.65rem; box-shadow:0 .75rem 1.5rem rgba(27,48,64,.15); }
.report-rule-option { display:flex !important; flex-direction:row !important; align-items:center; gap:.6rem !important; min-height:2.2rem; margin:0; padding:.45rem .55rem; color:#385364; border-radius:.4rem; cursor:pointer; font-size:.78rem; font-weight:600; letter-spacing:normal !important; text-transform:none !important; }
.report-rule-option > span { color:inherit !important; font-size:.78rem !important; font-weight:600 !important; letter-spacing:normal !important; text-transform:none !important; }
.report-rule-option:hover { background:#f1f7f5; }
.report-rule-option input { width:1rem !important; min-width:1rem !important; height:1rem !important; margin:0; padding:0; accent-color:#08725a; }
.report-rule-all { color:#08725a; border-bottom:1px solid #e3ece8; border-radius:.35rem .35rem 0 0; }
.report-rule-options { padding-top:.2rem; }
.report-primary { height:2.65rem; display:inline-flex; align-items:center; justify-content:center; gap:.55rem; padding:0 1.15rem; color:#fff; background:#08725a; border:1px solid #08725a; border-radius:.58rem; box-shadow:0 .25rem .65rem rgba(8,114,90,.18); font-size:.8rem; font-weight:750; white-space:nowrap; }
.report-primary:hover { background:#075e4b; }
.report-loading { min-height:15rem; display:flex; align-items:center; justify-content:center; gap:.75rem; color:#78909f; }
.report-result { min-width:0; }
.report-kpi-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:.85rem; margin-bottom:1.2rem; }
.report-kpi { min-width:0; min-height:9.25rem; padding:1rem 1.1rem; background:#fff; border:1px solid #dfe7eb; border-radius:1rem; box-shadow:0 .35rem 1rem rgba(24,48,63,.035); }
.report-kpi-top { display:flex; align-items:center; justify-content:space-between; gap:.5rem; }
.report-kpi-top > span { color:#718695; font-size:.68rem; font-weight:800; letter-spacing:.035em; text-transform:uppercase; }
.report-kpi-top > i { width:2rem; height:2rem; display:flex; align-items:center; justify-content:center; flex:0 0 2rem; border-radius:.65rem; font-size:1rem; }
.report-kpi > strong { display:block; margin-top:.85rem; color:#172e3e; font-size:clamp(1.3rem, 2.1vw, 1.85rem); line-height:1.05; letter-spacing:-.035em; white-space:nowrap; }
.report-kpi > p { margin:.65rem 0 0; color:#8ba0ae; font-size:.72rem; }
.report-kpi-neutral .report-kpi-top i { color:#66808f; background:#edf2f5; }
.report-kpi-success .report-kpi-top i { color:#118362; background:#e4f6ef; }
.report-kpi-success > strong { color:#148461; }
.report-kpi-danger .report-kpi-top i { color:#d94b59; background:#fdebed; }
.report-kpi-danger > strong { color:#c63e4d; }
.report-kpi-warning .report-kpi-top i { color:#bd7a12; background:#fff3dc; }
.report-kpi-warning > strong { color:#ac7117; }
.report-kpi-money .report-kpi-top i { color:#138362; background:#e4f5ee; }
.report-kpi-money > strong { font-size:clamp(1.05rem, 1.7vw, 1.55rem); }
.report-insights-grid { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(18rem,1fr); gap:1rem; margin-bottom:1.2rem; }
.distribution-card, .operation-card { padding:1.25rem 1.35rem; min-height:15rem; }
.report-card-title { display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; }
.report-card-title h2, .report-table-heading h2 { margin:0; color:#1a3040; font-size:1rem; font-weight:750; letter-spacing:-.02em; }
.report-card-title p, .report-table-heading p { margin:.3rem 0 0; color:#8ba0ae; font-size:.75rem; }
.report-card-title > span { padding:.35rem .55rem; color:#648274; background:#edf5f1; border-radius:.45rem; font-size:.66rem; font-weight:700; white-space:nowrap; }
.distribution-total { display:flex; align-items:baseline; gap:.75rem; margin-top:2rem; }
.distribution-total strong { font-size:1.55rem; letter-spacing:-.03em; }
.distribution-total span { color:#91a3af; font-size:.7rem; }
.distribution-bar { height:.9rem; display:flex; overflow:hidden; margin-top:.9rem; background:#eef2f4; border-radius:999px; }
.distribution-bar span { min-width:0; }
.distribution-success { background:#229b77; }.distribution-danger { background:#dc5965; }.distribution-warning { background:#e7ae49; }
.distribution-legend { display:flex; flex-wrap:wrap; gap:1.4rem; margin-top:1rem; color:#627986; font-size:.72rem; }
.distribution-legend span { display:flex; align-items:center; gap:.45rem; }
.distribution-legend i { width:.55rem; height:.55rem; border-radius:50%; }
.distribution-legend i.success { background:#229b77; }.distribution-legend i.danger { background:#dc5965; }.distribution-legend i.warning { background:#e7ae49; }
.distribution-legend strong { margin-left:.2rem; color:#243c4b; }
.operation-main { display:grid; grid-template-columns:5.5rem 1fr; align-items:center; gap:1rem; margin-top:1.4rem; }
.operation-donut { width:5.25rem; height:5.25rem; display:grid; place-items:center; border-radius:50%; background:conic-gradient(#229b77 0 var(--success), #e7edf0 var(--success) 100%); }
.operation-donut::before { content:""; width:3.75rem; height:3.75rem; grid-area:1/1; background:#fff; border-radius:50%; }
.operation-donut > div { grid-area:1/1; z-index:1; text-align:center; }
.operation-donut strong { display:block; font-size:1.25rem; line-height:1; }
.operation-donut span { color:#8ca0ad; font-size:.58rem; }
.operation-main > div:last-child > strong { font-size:.83rem; }
.operation-main p { margin:.35rem 0 0; color:#8398a6; font-size:.7rem; line-height:1.45; }
.operation-footer { display:flex; justify-content:space-between; gap:1rem; margin-top:1.15rem; padding-top:.9rem; border-top:1px solid #e6ecef; color:#718793; font-size:.7rem; }
.operation-footer strong { color:#b67b1e; }
.report-table-card { overflow:hidden; }
.report-table-heading { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:1.15rem 1.35rem; }
.report-table-tools { display:flex; align-items:center; gap:.65rem; }
.report-table-tools > span { padding:.38rem .62rem; color:#648274; background:#edf5f1; border-radius:999px; font-size:.66rem; font-weight:700; white-space:nowrap; }
.report-table-tools label { height:2.35rem; min-width:13.5rem; display:flex; align-items:center; gap:.5rem; padding:0 .7rem; color:#8ca0ad; border:1px solid #dce5e9; border-radius:.55rem; }
.report-table-tools input { width:100%; min-width:0; padding:0; border:0; outline:0; box-shadow:none !important; font-size:.72rem; }
.report-table { width:100%; border-collapse:collapse; }
.report-table th { padding:.8rem 1.25rem; color:#718695; background:#f7f9fa; border-top:1px solid #e3eaed; border-bottom:1px solid #e3eaed; font-size:.64rem; font-weight:800; letter-spacing:.055em; text-transform:uppercase; }
.report-table td { padding:.85rem 1.25rem; color:#365163; border-bottom:1px solid #e8edef; font-size:.74rem; }
.report-table tr:last-child td { border-bottom:0; }
.report-table tbody tr:hover { background:#fafcfc; }
.report-table th:nth-child(n+3), .report-table td:nth-child(n+3) { text-align:center; }
.report-table th:last-child, .report-table td:last-child { text-align:right; }
.number-cell { color:#223d4e !important; font-weight:750; }
.money-cell { color:#087259 !important; font-weight:750; white-space:nowrap; }
.rule-pill, .status-pill { display:inline-flex; align-items:center; gap:.38rem; padding:.36rem .58rem; border:0; border-radius:.5rem; font-size:.67rem; font-weight:700; white-space:nowrap; }
.rule-pill i, .status-pill i { width:.38rem; height:.38rem; border-radius:50%; background:currentColor; }
.rule-blue { color:#3f68bd; background:#eaf0ff; }.rule-red { color:#c44953; background:#fdeced; }.rule-orange { color:#ad741c; background:#fff3dd; }.rule-green { color:#16795d; background:#e5f5ef; }.rule-purple { color:#7752a6; background:#f1eafb; }
.status-success { color:#17805f; background:#e5f5ee; }.status-danger { color:#c84954; background:#fdeced; }.status-warning { color:#aa731d; background:#fff3dd; }
.report-table-footer { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.75rem 1.25rem; color:#8ba0ad; border-top:1px solid #e8edef; font-size:.68rem; }
.report-table-footer button { padding:.4rem .65rem; color:#587181; background:#fff; border:1px solid #dce5e9; border-radius:.45rem; }
.report-empty { min-height:15rem; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:.5rem; color:#8ca0ad; background:#fff; border:1px solid #dfe7eb; border-radius:1rem; }
.report-empty i { font-size:2rem; }.report-empty strong { color:#506a79; }

@media (max-width: 1199.98px) {
  .report-kpi-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .report-kpi-money { grid-column:span 2; }
}
@media (max-width: 991.98px) {
  .report-filters { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .report-primary { width:100%; }
  .report-insights-grid { grid-template-columns:1fr; }
}
@media (max-width: 767.98px) {
  .app-topbar { display:none; }
  .report-hero { align-items:flex-start; flex-direction:column; }
  .report-hero-actions { width:100%; flex-wrap:wrap; }
  .report-export { flex:1; justify-content:center; }
  .report-kpi-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .report-kpi-money { grid-column:span 2; }
  .report-table-heading { align-items:flex-start; flex-direction:column; }
  .report-table-tools { width:100%; flex-wrap:wrap; }
  .report-table-tools label { min-width:0; flex:1; }
}
@media (max-width: 575.98px) {
  .report-panel-heading { flex-direction:column; }
  .report-filters { grid-template-columns:1fr; }
  .report-kpi-grid { grid-template-columns:1fr; }
  .report-kpi-money { grid-column:auto; }
  .distribution-card, .operation-card { padding:1rem; }
  .distribution-legend { gap:.75rem; }
  .operation-main { grid-template-columns:4.75rem 1fr; }
  .operation-donut { width:4.6rem; height:4.6rem; }
  .operation-donut::before { width:3.25rem; height:3.25rem; }
}

/* Webhook OPERAX */
.webhook-page { color:#1b3040; }
.webhook-hero { display:flex; align-items:flex-end; justify-content:space-between; gap:1.5rem; margin-bottom:1.35rem; padding-bottom:1.35rem; border-bottom:1px solid #dde6ea; }
.webhook-hero h1 { margin:0; color:#192f3f; font-size:clamp(1.75rem,2.4vw,2.35rem); font-weight:750; letter-spacing:-.035em; }
.webhook-hero p:last-child { margin:.35rem 0 0; color:#7e93a2; font-size:.9rem; }
.webhook-secondary { height:2.55rem; display:inline-flex; align-items:center; gap:.5rem; padding:0 .9rem; color:#426171; background:#fff; border:1px solid #d7e2e7; border-radius:.6rem; font-size:.78rem; font-weight:750; }
.webhook-secondary:hover { color:#08725a; border-color:#9acaba; }
.webhook-endpoint-card { min-height:5.4rem; display:flex; align-items:center; gap:.9rem; margin-bottom:1rem; padding:1rem 1.15rem; background:#fff; border:1px solid #dfe7eb; border-radius:.9rem; box-shadow:0 .3rem .9rem rgba(24,48,63,.035); }
.webhook-endpoint-icon { width:2.4rem; height:2.4rem; display:grid; place-items:center; flex:0 0 auto; color:#08725a; background:#e6f5ef; border-radius:.65rem; }
.webhook-endpoint-info { min-width:0; flex:1; }
.webhook-endpoint-info > div { display:flex; align-items:center; gap:.65rem; }
.webhook-endpoint-info strong { font-size:.85rem; }
.webhook-endpoint-info span { padding:.25rem .48rem; color:#347088; background:#eaf4f7; border-radius:999px; font-size:.6rem; font-weight:800; }
.webhook-endpoint-info code { display:block; margin-top:.4rem; overflow:hidden; color:#647d8c; font-size:.73rem; text-overflow:ellipsis; white-space:nowrap; }
.webhook-icon-button { width:2.25rem; height:2.25rem; display:grid; place-items:center; flex:0 0 auto; color:#55717f; background:#f7fafb; border:1px solid #dfe7eb; border-radius:.55rem; }
.webhook-filter-card { display:grid; grid-template-columns:repeat(3,minmax(10rem,1fr)) auto auto; gap:.75rem; align-items:end; margin-bottom:1rem; padding:1rem 1.15rem; background:#fff; border:1px solid #dfe7eb; border-radius:.9rem; }
.webhook-filter-card label { display:flex; flex-direction:column; gap:.4rem; }
.webhook-filter-card label > span { color:#748997; font-size:.66rem; font-weight:800; letter-spacing:.06em; text-transform:uppercase; }
.webhook-filter-card input,.webhook-filter-card select { height:2.65rem; padding:.55rem .72rem; color:#294354; background:#fff; border:1px solid #d7e1e6; border-radius:.55rem; font-size:.8rem; }
.webhook-filter-card > p { grid-column:1/-1; margin:0; color:#93a4ae; font-size:.66rem; }
.webhook-clear { height:2.65rem; padding:0 .5rem; color:#8496a0; background:transparent; border:0; font-size:.74rem; font-weight:650; }
.webhook-log-card { overflow:hidden; background:#fff; border:1px solid #dfe7eb; border-radius:.9rem; box-shadow:0 .3rem .9rem rgba(24,48,63,.035); }
.webhook-log-heading { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:1rem 1.15rem; }
.webhook-log-heading h2 { margin:0; font-size:.95rem; font-weight:750; }
.webhook-log-heading p { margin:.25rem 0 0; color:#8ba0ae; font-size:.7rem; }
.webhook-log-heading > span { color:#718793; font-size:.7rem; }
.webhook-loading,.webhook-empty { min-height:14rem; display:flex; align-items:center; justify-content:center; gap:.65rem; color:#8297a5; font-size:.78rem; }
.webhook-empty { flex-direction:column; }.webhook-empty i { font-size:2rem; }.webhook-empty strong { color:#4f6877; }.webhook-empty span { font-size:.72rem; }
.webhook-table-wrap { overflow-x:auto; }
.webhook-table { width:100%; min-width:850px; border-collapse:collapse; }
.webhook-table th { padding:.72rem 1rem; color:#718695; background:#f2f7f5; border-block:1px solid #dfe9e5; font-size:.61rem; font-weight:800; letter-spacing:.05em; text-transform:uppercase; }
.webhook-table td { padding:.78rem 1rem; color:#405b6b; border-bottom:1px solid #e8edef; font-size:.7rem; vertical-align:middle; }
.webhook-table tbody tr:last-child td { border-bottom:0; }.webhook-table tbody tr:hover { background:#fafcfc; }
.webhook-table td:first-child small { display:block; max-width:12rem; margin-top:.28rem; overflow:hidden; color:#94a5ae; text-overflow:ellipsis; white-space:nowrap; }
.webhook-event { display:inline-flex; align-items:center; gap:.4rem; color:#265968; font-weight:700; }.webhook-event i { color:#168168; }
.webhook-status { display:inline-flex; padding:.33rem .55rem; border-radius:999px; font-size:.64rem; font-weight:750; white-space:nowrap; }
.webhook-status-recebido { color:#16795d; background:#e4f5ee; }.webhook-status-duplicado { color:#4269a7; background:#eaf0fb; }.webhook-status-rejeitado { color:#a56b12; background:#fff2da; }.webhook-status-erro { color:#c44953; background:#fdeced; }
.webhook-details { display:inline-flex; align-items:center; gap:.35rem; color:#426171; background:transparent; border:0; font-size:.7rem; font-weight:700; }.webhook-details:hover { color:#08725a; }
.webhook-modal-backdrop { position:fixed; inset:0; z-index:1100; display:flex; align-items:center; justify-content:center; padding:1rem; background:rgba(18,38,48,.56); backdrop-filter:blur(2px); }
.webhook-modal-card { width:min(52rem,100%); max-height:calc(100vh - 2rem); overflow:auto; background:#fff; border-radius:.85rem; box-shadow:0 1.5rem 4rem rgba(7,26,36,.3); }
.webhook-modal-header { display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; padding:1.25rem 1.4rem; border-bottom:1px solid #e3eaed; }
.webhook-modal-header h2 { margin:0; font-size:1.15rem; }.webhook-modal-header p { margin:.3rem 0 0; color:#8397a4; font-size:.72rem; }.webhook-modal-header button { color:#708692; background:transparent; border:0; }
.webhook-modal-body { padding:1.25rem 1.4rem; }
.webhook-detail-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:1rem; }
.webhook-detail-grid div,.webhook-detail-status { display:flex; flex-direction:column; gap:.35rem; }.webhook-detail-grid span,.webhook-detail-status > span { color:#8296a2; font-size:.65rem; }.webhook-detail-grid strong { color:#304c5c; font-size:.75rem; }
.webhook-detail-status { align-items:flex-start; margin-top:1rem; }.webhook-detail-status p { margin:.25rem 0 0; color:#b3444d; font-size:.72rem; }
.webhook-json-heading { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-top:1.25rem; color:#748996; font-size:.68rem; font-weight:700; }
.webhook-json-heading button { display:inline-flex; align-items:center; gap:.4rem; padding:.45rem .7rem; color:#176b57; background:#fff; border:1px solid #cfe0da; border-radius:.5rem; font-size:.68rem; font-weight:700; }
.webhook-modal pre { max-height:22rem; overflow:auto; margin:.65rem 0 0; padding:1.1rem; color:#d7f5e8; background:#103c38; border-radius:.55rem; font-size:.72rem; line-height:1.55; white-space:pre-wrap; }
.webhook-modal-footer { display:flex; justify-content:flex-end; padding:1rem 1.4rem; background:#f8faf9; border-top:1px solid #e3eaed; }.webhook-modal-footer button { padding:.55rem .9rem; color:#28584d; background:#fff; border:1px solid #d2dfdb; border-radius:.55rem; font-size:.73rem; font-weight:750; }
.webhook-modal-loading { display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:12rem; color:#78909f; }
@media (max-width:991.98px) { .webhook-filter-card { grid-template-columns:repeat(2,1fr); }.webhook-filter-card .report-primary { width:auto; }.webhook-detail-grid { grid-template-columns:repeat(2,1fr); } }
@media (max-width:575.98px) { .webhook-hero { align-items:flex-start; flex-direction:column; }.webhook-secondary { width:100%; justify-content:center; }.webhook-filter-card { grid-template-columns:1fr; }.webhook-filter-card > p { grid-column:auto; }.webhook-detail-grid { grid-template-columns:1fr; } }
