/* DigiPulse component kit · styles (k-*). Sections load this first, so their own styles can still override it. */
.k-card { position: relative; display: grid; align-content: start; gap: 12px; padding: 16px 18px; border-radius: 18px; background: #ffffff; border: 1px solid #e1e9f4; box-shadow: 0 8px 22px rgba(21, 35, 63, .06); }
.k-card-h { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; } .k-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.k-title { margin: 0; font-family: 'Saira Condensed', 'Roboto Condensed', sans-serif; font-size: 13.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #15233f; } .k-sub { margin: 2px 0 0; font-size: 12.5px; color: #5b6b82; }
.k-body { display: grid; align-content: start; gap: 12px; min-width: 0; }
.k-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.k-kpi { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; background: #f8fbff; border: 1px solid #e3eaf4; animation: kRise .35s both; animation-delay: calc(var(--i, 0) * 40ms); } .k-kpi span { font-family: 'Saira Condensed', 'Roboto Condensed', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #5b6b82; } .k-kpi b { font-size: 22px; color: #15233f; } .k-kpi small { font-size: 12.5px; color: #5b6b82; }
.k-kpi.good b { color: #23795e; } .k-kpi.warn b { color: #b25f17; } .k-kpi.bad b { color: #a8463f; } .k-kpi.click { cursor: pointer; } .k-kpi.click:hover { border-color: #c9d9f0; }
.k-chip { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; background: #eef3fa; color: #2f62a8; white-space: nowrap; } .k-chip.good { background: #eaf6f0; color: #23795e; } .k-chip.warn { background: #fdf3e6; color: #a35a12; } .k-chip.bad { background: #fdecea; color: #a8463f; } .k-chip.grey { background: #f1f4f9; color: #5b6b82; }
.k-empty { margin: 0; padding: 14px; text-align: center; font-size: 13.5px; color: #7a8aa3; }
.k-bar { display: block; height: 7px; border-radius: 999px; background: #edf2f9; overflow: hidden; } .k-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2f62a8, #4f86cf); } .k-bar.good i { background: #2e9e7b; } .k-bar.warn i { background: #e08a3c; } .k-bar.bad i { background: #cf6a5f; }
.k-tabs { display: flex; gap: 6px; flex-wrap: wrap; } .k-tabs button { display: inline-flex; gap: 6px; align-items: center; padding: 7px 14px; border-radius: 999px; border: 1px solid #dfe8f4; background: #ffffff; font: inherit; font-size: 13.5px; font-weight: 600; color: #5b6b82; cursor: pointer; } .k-tabs button small { font-size: 11px; padding: 0 6px; border-radius: 999px; background: #eef3fa; } .k-tabs button.on { color: #15233f; background: #eaf1fb; border-color: #2f62a8; }
.k-table-wrap { overflow-x: auto; } .k-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; } .k-table th { text-align: left; padding: 0; border-bottom: 1px solid #e3eaf4; font-family: 'Saira Condensed', 'Roboto Condensed', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #5b6b82; white-space: nowrap; }
.k-th { display: inline-flex; gap: 6px; align-items: center; width: 100%; padding: 9px 10px; border: none; background: none; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; } .k-th .arr { font-size: 10px; color: #9aa7b8; } .k-table th[aria-sort="ascending"] .k-th, .k-table th[aria-sort="descending"] .k-th { color: #2f62a8; }
.k-table td { padding: 9px 10px; border-bottom: 1px solid #f1f4f9; color: #15233f; vertical-align: middle; } .k-table tr.click { cursor: pointer; } .k-table tr.click:hover td { background: #f8fbff; } .k-table td small { display: block; font-size: 12.5px; color: #5b6b82; }
.k-pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12.5px; color: #5b6b82; padding-top: 8px; } .k-pager:empty { display: none; } .k-pager div { display: flex; gap: 4px; } .k-pager button { min-width: 30px; padding: 4px 8px; border-radius: 8px; border: 1px solid #dfe8f4; background: #fff; font: inherit; cursor: pointer; } .k-pager button.on { background: #eaf1fb; border-color: #2f62a8; color: #15233f; } .k-pager button:disabled:not(.on) { opacity: .4; cursor: default; }
.k-modal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(15, 23, 38, .42); backdrop-filter: blur(3px); }
.k-panel { position: relative; width: min(640px, 100%); display: grid; gap: 12px; padding: 22px 24px; border-radius: 20px; background: #ffffff; box-shadow: 0 30px 80px rgba(21, 35, 63, .28); } .k-panel.wide { width: min(1000px, 100%); }
.k-x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid #dfe8f4; background: #fff; font-size: 19px; cursor: pointer; color: #5b6b82; } .k-kicker { margin: 0; font-family: 'Saira Condensed', 'Roboto Condensed', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #2e9e7b; } .k-h2 { margin: -6px 0 0; font-size: 22px; color: #15233f; } .k-foot { display: flex; justify-content: flex-end; gap: 8px; }
.k-toast { position: fixed; left: 50%; bottom: 24px; z-index: 95; transform: translate(-50%, 20px); opacity: 0; padding: 10px 16px; border-radius: 12px; background: #15233f; color: #fff; font-size: 13.5px; box-shadow: 0 12px 30px rgba(21, 35, 63, .3); transition: opacity .2s, transform .2s; pointer-events: none; } .k-toast.on { opacity: 1; transform: translate(-50%, 0); }
@keyframes kRise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

