/* EZAccounting 0.3.12.7: scoped Financial Insights UI. No layout or theme-global overrides. */
.ezacc .ezacc-insights-v03127{--ei-ink:#14233a;--ei-muted:#64748b;--ei-line:#e3e9ef;--ei-emerald:#078268;--ei-pale:#e6f5ef;--ei-surface:#fff;--ei-amber:#d79730;color:var(--ei-ink);width:100%;min-width:0;max-width:100%;box-sizing:border-box;padding:0 0 24px;margin:0;overflow-wrap:anywhere}
.ezacc .ezacc-insights-v03127 *{box-sizing:border-box}
.ezacc .ezacc-insight-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:0 0 18px}
.ezacc .ezacc-insight-heading h2{font-size:clamp(21px,2vw,27px);line-height:1.25;font-weight:750;color:var(--ei-ink);margin:0 0 5px}
.ezacc .ezacc-insight-heading p{margin:0;color:var(--ei-muted);font-size:13px}
.ezacc .ezacc-insight-year-form{display:flex;gap:8px;align-items:center;margin:0;max-width:100%}
.ezacc .ezacc-insight-year-form label{font-size:12px;font-weight:650;color:#334155;white-space:nowrap}
.ezacc .ezacc-insight-year-form input{width:98px;max-width:98px;height:38px;border-radius:9px;border:1px solid #d3dde6;padding:8px 10px;background:#fff;color:#14233a;font-size:13px;margin:0}
.ezacc .ezacc-insight-year-form button,.ezacc .ezacc-insight-thresholds button{border-radius:9px;background:var(--ei-emerald);border:1px solid var(--ei-emerald);color:white;padding:9px 14px;height:38px;font-weight:650;font-size:12px;cursor:pointer;margin:0}
.ezacc .ezacc-insight-tabs{display:flex;flex-wrap:nowrap;gap:4px;overflow-x:auto;max-width:100%;padding:3px 1px 11px;margin:0 0 16px;border-bottom:1px solid var(--ei-line);scrollbar-width:thin;white-space:nowrap}
.ezacc .ezacc-insight-tab{font-size:13px;font-weight:600;text-decoration:none;color:#475569!important;border-radius:9px;padding:10px 14px;min-height:40px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;transition:background .1s,color .1s}
.ezacc .ezacc-insight-tab:hover{background:#f3f7f8;color:#0c6b59!important}
.ezacc .ezacc-insight-tab.is-active{color:#066c55!important;background:var(--ei-pale);box-shadow:inset 0 -2px 0 #0a9475}
.ezacc .ezacc-insight-context{font-size:12px;line-height:1.6;color:#506176;background:#f0f7f5;border:1px solid #d6e9e1;border-radius:11px;padding:11px 14px;margin:0 0 18px}
.ezacc .ezacc-insight-context a{color:#04755d;font-weight:650}
.ezacc .ezacc-insight-context-icon{display:inline-grid;place-items:center;width:17px;height:17px;font-weight:700;color:#0b7861;border:1px solid #8fcab5;border-radius:50%;margin-right:6px}
.ezacc .ezacc-insight-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:16px}
.ezacc .ezacc-insight-kpi,.ezacc .ezacc-insight-panel{background:var(--ei-surface);border:1px solid var(--ei-line);border-radius:14px;box-shadow:0 3px 14px rgba(21,42,57,.035);min-width:0}
.ezacc .ezacc-insight-kpi{padding:18px 16px;display:flex;flex-direction:column;gap:9px}
.ezacc .ezacc-insight-kpi>span{font-size:12px;font-weight:650;color:#637389}
.ezacc .ezacc-insight-kpi>strong{font-size:clamp(17px,1.6vw,23px);line-height:1.28;font-weight:750;color:var(--ei-ink);overflow-wrap:anywhere}
.ezacc .ezacc-insight-kpi>small{font-size:11px;color:var(--ei-muted);line-height:1.4}
.ezacc .ezacc-insight-two-col{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;margin-bottom:16px}
.ezacc .ezacc-insight-panel{padding:19px;margin-bottom:14px}
.ezacc .ezacc-insight-panel h3{font-size:16px;line-height:1.4;margin:0 0 13px;font-weight:720;color:var(--ei-ink)}
.ezacc .ezacc-insight-stat-row{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:10px 0;border-bottom:1px solid #eef2f5;font-size:13px}
.ezacc .ezacc-insight-stat-row:last-of-type{border-bottom:none}
.ezacc .ezacc-insight-stat-row span{color:#5b6a7b}
.ezacc .ezacc-insight-stat-row strong{color:var(--ei-ink);white-space:nowrap;font-variant-numeric:tabular-nums}
.ezacc .ezacc-insight-muted{color:var(--ei-muted);font-size:12px;line-height:1.55}
.ezacc .ezacc-insight-toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:16px 0 18px}
.ezacc .ezacc-insight-action{background:var(--ei-emerald);color:white!important;font-size:12px;font-weight:650;padding:10px 14px;border:1px solid var(--ei-emerald);text-decoration:none!important;border-radius:9px;display:inline-flex;align-items:center;min-height:38px}
.ezacc .ezacc-insight-action.is-secondary{color:#08715d!important;background:white;border-color:#ccdcd7}
.ezacc .ezacc-insight-footer-links a{display:block;background:white;border:1px solid var(--ei-line);border-radius:12px;padding:17px;text-decoration:none;color:#0c755e!important;font-size:13px;font-weight:650}
.ezacc .ezacc-insight-footer-links a span{float:right}
.ezacc .ezacc-insight-section-title h3{font-size:18px;line-height:1.35;margin:0 0 4px;color:var(--ei-ink)}
.ezacc .ezacc-insight-section-title p{font-size:12px;color:var(--ei-muted);margin:0 0 15px;line-height:1.6}
.ezacc .ezacc-insight-health{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.ezacc .ezacc-insight-health-card{display:flex;flex-direction:column;gap:9px}
.ezacc .ezacc-insight-health-card span{font-size:12px;color:var(--ei-muted);font-weight:650}
.ezacc .ezacc-insight-health-card strong{font-size:clamp(22px,2.3vw,30px);font-weight:750;color:var(--ei-ink)}
.ezacc .ezacc-insight-health-card small{color:var(--ei-muted);font-size:12px;line-height:1.55}
.ezacc .ezacc-insight-empty{background:white;border:1px solid #d5e7dd;border-radius:12px;padding:16px;font-size:13px;color:#46685c}
.ezacc .ezacc-insight-alert{background:white;border:1px solid #e5e9ed;border-left:4px solid var(--ei-amber);border-radius:11px;padding:14px 16px;margin-bottom:10px}
.ezacc .ezacc-insight-alert.is-warning{border-left-color:#ce5450}
.ezacc .ezacc-insight-alert strong{color:#1b2b41;font-size:13px}
.ezacc .ezacc-insight-alert p{color:#526176;font-size:12px;line-height:1.6;margin:7px 0 0}
.ezacc .ezacc-insight-thresholds{padding:15px 17px;background:white;border:1px solid var(--ei-line);border-radius:12px;margin:18px 0}
.ezacc .ezacc-insight-thresholds summary{cursor:pointer;font-weight:650;color:#14324a;min-height:23px}
.ezacc .ezacc-insight-thresholds form{margin-top:17px}
.ezacc .ezacc-insight-threshold-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:15px}
.ezacc .ezacc-insight-threshold-grid label{font-size:12px;font-weight:650;color:#4f6176}
.ezacc .ezacc-insight-threshold-grid input{display:block;width:100%;margin-top:6px;height:41px;max-width:100%;border:1px solid #d5dfe8;border-radius:9px;padding:8px}
.ezacc .ezacc-insight-table-scroll,.ezacc .ezacc-insight-chart-scroll{max-width:100%;min-width:0;overflow-x:auto;-webkit-overflow-scrolling:touch}
.ezacc .ezacc-insight-table{width:100%;min-width:590px;border-collapse:separate;border-spacing:0;font-size:12px}
.ezacc .ezacc-insight-table th,.ezacc .ezacc-insight-table td{text-align:left;padding:11px 10px;border-bottom:1px solid #e9edf1;font-variant-numeric:tabular-nums}
.ezacc .ezacc-insight-table th{font-weight:650;color:#4c5e73;background:#f4f7f9;white-space:nowrap}
.ezacc .ezacc-insight-table tbody tr:hover{background:#f8fbfa}
.ezacc .ezacc-insight-table td:not(:first-child){white-space:nowrap}
.ezacc .ezacc-insight-month-chart{display:grid;grid-template-columns:repeat(12,minmax(37px,1fr));gap:8px;min-width:600px;align-items:end;padding:14px 0 5px}
.ezacc .ezacc-insight-month{text-align:center;min-width:0}
.ezacc .ezacc-insight-month-bars{height:125px;display:flex;gap:3px;align-items:end;justify-content:center;border-bottom:1px solid #d7e0e6;padding:0 2px}
.ezacc .ezacc-insight-bar{display:block;max-width:12px;min-width:6px;width:27%;border-radius:4px 4px 0 0;min-height:1px;background:#0c8e70}
.ezacc .ezacc-insight-bar.is-expenses{background:#e8a341}
.ezacc .ezacc-insight-bar.is-net{background:#5a738e}
.ezacc .ezacc-insight-bar.is-negative{background-image:repeating-linear-gradient(45deg,transparent,transparent 4px,rgba(255,255,255,.6) 4px,rgba(255,255,255,.6) 6px)}
.ezacc .ezacc-insight-month small{font-size:11px;color:#64748b;display:block;margin-top:7px}
/* Legacy alert follow-up/history markup uses these scoped overrides to unify it. */
.ezacc .ezacc-insights-v03127 #ezacc-alert-actions,.ezacc .ezacc-insights-v03127 section[aria-label="Financial alert monitoring history"]{background:#fff;border:1px solid var(--ei-line);border-radius:14px;padding:18px;max-width:100%;min-width:0}
.ezacc .ezacc-insights-v03127 #ezacc-alert-actions h3,.ezacc .ezacc-insights-v03127 section[aria-label="Financial alert monitoring history"] h3{color:var(--ei-ink);font-size:16px;margin:0 0 8px}
.ezacc .ezacc-insights-v03127 #ezacc-alert-actions .widefat,.ezacc .ezacc-insights-v03127 section[aria-label="Financial alert monitoring history"] .widefat{font-size:12px;background:white}
.ezacc .ezacc-insights-v03127 #ezacc-alert-actions input,.ezacc .ezacc-insights-v03127 #ezacc-alert-actions select,.ezacc .ezacc-insights-v03127 #ezacc-alert-actions textarea{max-width:100%;border-radius:9px;border:1px solid #d4dee6;min-height:38px;padding:9px}
.ezacc .ezacc-insights-v03127 #ezacc-alert-actions button{border-radius:9px;background:#087e68;color:white;border:none;padding:10px 14px;cursor:pointer}
.ezacc .ezacc-insights-v03127 a:focus-visible,.ezacc .ezacc-insights-v03127 button:focus-visible,.ezacc .ezacc-insights-v03127 input:focus-visible{outline:3px solid #2dbaa0;outline-offset:2px}
@media(max-width:1023px){.ezacc .ezacc-insight-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.ezacc .ezacc-insight-health{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.ezacc .ezacc-insights-v03127{padding-bottom:82px}.ezacc .ezacc-insight-heading{align-items:stretch}.ezacc .ezacc-insight-heading h2{font-size:22px}.ezacc .ezacc-insight-year-form{width:100%}.ezacc .ezacc-insight-year-form label{flex:1}.ezacc .ezacc-insight-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.ezacc .ezacc-insight-kpi{padding:13px 11px;gap:7px}.ezacc .ezacc-insight-kpi>strong{font-size:17px}.ezacc .ezacc-insight-two-col{grid-template-columns:1fr}.ezacc .ezacc-insight-health{grid-template-columns:1fr}.ezacc .ezacc-insight-threshold-grid{grid-template-columns:1fr}.ezacc .ezacc-insight-panel{padding:14px}.ezacc .ezacc-insight-tab{padding:10px 12px}.ezacc .ezacc-insights-v03127 #ezacc-alert-actions,.ezacc .ezacc-insights-v03127 section[aria-label="Financial alert monitoring history"]{padding:12px}}
@media(max-width:360px){.ezacc .ezacc-insight-kpis{grid-template-columns:1fr 1fr}.ezacc .ezacc-insight-kpi>strong{font-size:15px}}
