/* STIMULUS application refresh — modern, simple and bright */
:root {
    --primary-50: #eaf4ff;
    --primary-100: #d8ebff;
    --primary-200: #b8dafb;
    --primary-500: #2274e5;
    --primary-600: #1766d1;
    --primary-700: #1155b2;
    --gray-50: #f7fafc;
    --gray-100: #eef3f7;
    --gray-200: #dde6ee;
    --gray-300: #c8d5df;
    --gray-400: #8b9aab;
    --gray-500: #637287;
    --gray-600: #4a5a6e;
    --gray-700: #35465a;
    --gray-800: #233348;
    --gray-900: #122033;
    --success: #219c6b;
    --success-light: #dff7ec;
    --warning: #d99716;
    --warning-light: #fff4cf;
    --danger: #df5353;
    --danger-light: #fff0f0;
    --info: #2274e5;
    --info-light: #eaf4ff;
    --bg: #f5f9fd;
    --white: #fff;
    --border: #dfe8f0;
    --radius: 16px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --shadow: 0 8px 25px rgba(39, 75, 105, .055);
    --shadow-md: 0 14px 35px rgba(39, 75, 105, .09);
    --shadow-lg: 0 26px 70px rgba(30, 65, 96, .14);
    --ease-out: cubic-bezier(.23, 1, .32, 1);
    --ease-in-out: cubic-bezier(.77, 0, .175, 1);
}

html { scroll-behavior: smooth; }
body {
    min-height: 100vh;
    color: var(--gray-900);
    background:
        radial-gradient(circle at 92% 6%, rgba(102, 216, 229, .13), transparent 21rem),
        radial-gradient(circle at 4% 24%, rgba(255, 217, 106, .11), transparent 18rem),
        var(--bg);
    font-family: "Plus Jakarta Sans", "Inter", sans-serif;
    font-size: 14px;
    line-height: 1.65;
}

a, button, input, select, textarea { font-family: inherit; }
a { color: var(--primary-600); }
:focus-visible { outline: 3px solid rgba(34, 116, 229, .28); outline-offset: 3px; }

/* Header */
.topbar {
    height: 76px;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, .9);
    border-bottom: 1px solid rgba(216, 229, 239, .92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    animation-duration: 240ms;
}
.topbar.scrolled { box-shadow: 0 10px 30px rgba(31, 68, 99, .08); }
.topbar-inner { width: 100%; max-width: 1240px; padding: 10px 24px; gap: 24px; }
.topbar-brand-area { display: flex; align-items: center; min-width: 0; }
.brand { gap: 11px; flex-shrink: 0; }
.brand-logo-kemper { height: 30px; opacity: 1; }
.brand-logo-pt { width: 38px; height: 38px; border-radius: 50%; box-shadow: none; }
.brand-text { padding-left: 11px; border-left: 1px solid var(--border); }
.brand-text strong { color: var(--gray-900); font-size: 14px; font-weight: 800; letter-spacing: .09em; }
.brand-text small { display: block; margin-top: 3px; color: var(--gray-500); font-size: 9px; font-weight: 600; }
.topbar-divider { width: 1px; height: 32px; margin: 0 18px; background: var(--border); }
.topbar-page-context { display: flex; min-width: 0; flex-direction: column; line-height: 1.25; }
.topbar-page-context span { color: var(--gray-400); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.topbar-page-context strong { max-width: 230px; margin-top: 3px; overflow: hidden; color: var(--gray-700); font-size: 12px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.topbar-user { gap: 8px; margin-left: auto; }
.notif-bell { width: 40px; height: 40px; border-color: var(--border); border-radius: 12px; background: #fff; }
.notif-badge { top: -3px; right: -3px; border-width: 2px; font-size: 9px; }
.topbar-profile-menu { position: relative; }
.topbar-profile-trigger { min-width: 184px; min-height: 46px; display: inline-flex; align-items: center; gap: 9px; padding: 3px 8px 3px 3px; border: 1px solid transparent; border-radius: 14px; color: inherit; background: transparent; cursor: pointer; text-align: left; transition: background-color 160ms ease, border-color 160ms ease, transform 140ms ease; }
.avatar-circle { width: 40px; height: 40px; overflow: hidden; border-radius: 12px; background: linear-gradient(145deg, var(--primary-500), #48aecb); box-shadow: inset 0 -8px 16px rgba(0,0,0,.05); }
.avatar-circle img { width: 100%; height: 100%; display: block; object-fit: cover; }
.user-info { min-width: 112px; text-align: left; }
.user-name { overflow: hidden; color: var(--gray-900); font-size: 12px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.user-role { margin-top: 3px; color: var(--gray-500); font-size: 10px; }
.profile-chevron { width: 14px; height: 14px; margin-left: auto; color: var(--gray-400); transition: transform 180ms var(--ease-out), color 160ms ease; }
.topbar-profile-menu.is-open .topbar-profile-trigger { border-color: var(--primary-100); background: var(--primary-50); }
.topbar-profile-menu.is-open .profile-chevron { color: var(--primary-600); transform: rotate(180deg); }
.topbar-profile-dropdown { position: absolute; top: calc(100% + 11px); right: 0; z-index: 120; width: 310px; padding: 8px; visibility: hidden; opacity: 0; border: 1px solid rgba(208, 224, 236, .95); border-radius: 18px; background: rgba(255, 255, 255, .98); box-shadow: 0 22px 55px rgba(25, 54, 82, .17); pointer-events: none; transform: translateY(-6px) scale(.97); transform-origin: top right; transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out), visibility 0s linear 180ms; }
.topbar-profile-menu.is-open .topbar-profile-dropdown { visibility: visible; opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); transition-delay: 0s; }
.profile-menu-summary { position: relative; display: flex; flex-direction: column; padding: 14px 14px 13px; overflow: hidden; border-radius: 13px; color: #fff; background: linear-gradient(125deg, #1766d1, #208aa9); isolation: isolate; }
.profile-menu-summary::after { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(90deg, rgba(23,102,209,.96) 0%, rgba(23,102,209,.78) 48%, rgba(32,138,169,.08) 100%); pointer-events: none; }
.profile-menu-motion { position: absolute; z-index: 0; top: 50%; right: -5%; width: 62%; height: 132%; object-fit: cover; object-position: center; opacity: .28; filter: invert(1) contrast(1.3); mix-blend-mode: screen; pointer-events: none; transform: translateY(-50%) scale(1.04); }
.profile-menu-summary > span, .profile-menu-summary > strong, .profile-menu-summary > small { position: relative; z-index: 2; }
.profile-menu-summary .profile-menu-label { margin-bottom: 9px; color: rgba(255,255,255,.72); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.profile-menu-summary strong { overflow: hidden; font-size: 13px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.profile-menu-summary small { margin-top: 3px; color: rgba(255,255,255,.78); font-size: 10px; font-weight: 600; }
.profile-menu-links { padding: 6px 0; border-bottom: 1px solid #edf2f6; }
.profile-menu-item { width: 100%; min-height: 51px; display: flex; align-items: center; gap: 10px; padding: 8px 9px; border: 0; border-radius: 11px; color: var(--gray-700); background: transparent; cursor: pointer; text-align: left; text-decoration: none; transition: color 160ms ease, background-color 160ms ease, transform 140ms ease; }
.profile-menu-icon { width: 32px; height: 32px; display: grid; flex: 0 0 32px; place-items: center; border-radius: 10px; color: var(--primary-600); background: var(--primary-50); }
.profile-menu-icon .icon { width: 15px; height: 15px; }
.profile-menu-item > span:nth-child(2) { min-width: 0; display: flex; flex: 1; flex-direction: column; }
.profile-menu-item strong { color: inherit; font-size: 11px; font-weight: 800; }
.profile-menu-item small { max-width: 190px; margin-top: 2px; overflow: hidden; color: var(--gray-400); font-size: 9px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.profile-menu-count { min-width: 21px; padding: 3px 5px; border-radius: 999px; color: #fff; background: var(--danger); font-size: 8px; font-weight: 800; text-align: center; }
.profile-menu-logout { margin-top: 6px; color: var(--danger); }
.profile-menu-logout .profile-menu-icon { color: var(--danger); background: var(--danger-light); }
.notif-bell:active, .topbar-profile-trigger:active, .profile-menu-item:active { transform: scale(.97); }

@media (hover: hover) and (pointer: fine) {
    .notif-bell:hover { color: var(--primary-600); border-color: var(--primary-200); background: var(--primary-50); }
    .topbar-profile-trigger:hover { border-color: var(--border); background: var(--gray-50); }
    .profile-menu-item:hover { color: var(--primary-700); background: var(--primary-50); text-decoration: none; }
    .profile-menu-logout:hover { color: #bd3f3f; background: var(--danger-light); }
}

/* Page layout and headings */
.page-wrap { width: min(1200px, calc(100% - 48px)); max-width: none; min-height: calc(100vh - 300px); margin: 0 auto; padding: 112px 0 70px; }
.page-header-row { align-items: center; margin-bottom: 30px; }
.page-header { max-width: 760px; margin-bottom: 28px; }
.page-header-row .page-header { margin-bottom: 0; }
.page-header h1 { margin: 0 0 8px; color: var(--gray-900); font-size: clamp(25px, 3vw, 34px); font-weight: 800; letter-spacing: -.04em; line-height: 1.2; }
.page-header p { max-width: 680px; color: var(--gray-500); font-size: 12px; line-height: 1.7; }
.breadcrumb-link { margin-bottom: 18px; padding: 7px 10px; border: 1px solid var(--border); border-radius: 10px; color: var(--gray-500); background: rgba(255,255,255,.7); font-size: 10px; font-weight: 700; }
.breadcrumb-link:hover { color: var(--primary-600); border-color: var(--primary-200); background: #fff; }
.section-label { color: var(--primary-600); font-size: 9px; letter-spacing: .12em; }

/* Dashboard command center */
.dashboard-page { position: relative; }
.dashboard-welcome { position: relative; min-height: 236px; display: flex; align-items: center; margin-bottom: 25px; padding: 34px 38px; overflow: hidden; border: 1px solid #d4e5f2; border-radius: 25px; background: linear-gradient(125deg, rgba(255,255,255,.98), rgba(234,246,255,.96) 68%, rgba(225,248,241,.94)); box-shadow: 0 18px 45px rgba(39,75,105,.08); }
.dashboard-welcome::before { content: ""; position: absolute; inset: 0; opacity: .42; background-image: linear-gradient(rgba(174,204,227,.38) 1px, transparent 1px), linear-gradient(90deg, rgba(174,204,227,.38) 1px, transparent 1px); background-size: 34px 34px; mask-image: linear-gradient(90deg, transparent 38%, #000); -webkit-mask-image: linear-gradient(90deg, transparent 38%, #000); }
.dashboard-welcome::after { content: ""; position: absolute; inset: 0 0 0 auto; width: 48%; background: radial-gradient(ellipse at 68% 50%, rgba(34,116,229,.1), rgba(99,217,230,.055) 42%, transparent 72%); pointer-events: none; }
.dashboard-welcome-media { --dashboard-media-opacity: .2; position: absolute; z-index: 1; width: min(390px, 35vw); aspect-ratio: 16 / 9; right: 18px; top: 50%; overflow: hidden; opacity: var(--dashboard-media-opacity); mix-blend-mode: multiply; transform: translateY(-50%); -webkit-mask-image: radial-gradient(ellipse 88% 78% at 50% 50%, #000 56%, transparent 100%); mask-image: radial-gradient(ellipse 88% 78% at 50% 50%, #000 56%, transparent 100%); pointer-events: none; animation: dashboardMediaIn .85s .16s var(--ease-out) both; }
.dashboard-welcome-media video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; filter: contrast(1.08); }
.dashboard-header { position: relative; z-index: 2; width: 100%; margin: 0; }
.dashboard-header .page-header { max-width: 720px; }
.dashboard-header .page-header h1 { font-size: clamp(28px, 3.2vw, 39px); }
.dashboard-header .page-header p { max-width: 650px; }
.dashboard-header > .btn { align-self: flex-end; margin-bottom: 4px; }
.dashboard-eyebrow { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 12px; padding: 6px 10px; border: 1px solid #cde0ef; border-radius: 999px; color: #3e6687; background: rgba(255,255,255,.72); font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.dashboard-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px var(--success-light); animation: dashboardLive 2.2s ease-out infinite; }
.dashboard-context { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.dashboard-context > span { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border: 1px solid rgba(201,219,232,.85); border-radius: 9px; color: var(--gray-500); background: rgba(255,255,255,.68); font-size: 10px; font-weight: 700; }
.dashboard-context i { width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
.dashboard-section-label { display: flex; align-items: center; gap: 13px; margin: 0 3px 13px; color: var(--gray-500); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.dashboard-section-line { flex: 1; height: 1px; background: var(--border); transform: scaleX(0); transform-origin: left center; animation: dashboardSectionLineIn 240ms 80ms var(--ease-out) forwards; }

.dashboard-page .stat-card { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; grid-template-rows: 1fr auto; align-items: start; column-gap: 15px; }
.dashboard-page .stat-icon { grid-column: 1; grid-row: 1; }
.dashboard-page .stat-body { grid-column: 2; grid-row: 1; }
.dashboard-page .stat-meta { grid-column: 3; grid-row: 1; }
.stat-track { position: relative; z-index: 1; grid-column: 1 / -1; grid-row: 2; height: 6px; margin-top: 20px; overflow: hidden; border-radius: 99px; background: #edf3f7; box-shadow: inset 0 1px 2px rgba(38,71,98,.05); }
.stat-track span { display: block; width: var(--stat-progress, 0%); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--stat-color), color-mix(in srgb, var(--stat-color) 62%, white)); box-shadow: 0 0 12px color-mix(in srgb, var(--stat-color) 24%, transparent); transform: scaleX(0); transform-origin: left center; animation: dashboardTrack 260ms var(--ease-out) forwards; }
.stat-grid .stat-card:nth-child(1) .stat-track span { animation-delay: 80ms; }
.stat-grid .stat-card:nth-child(2) .stat-track span { animation-delay: 120ms; }
.stat-grid .stat-card:nth-child(3) .stat-track span { animation-delay: 160ms; }

.dashboard-table-card { padding-top: 22px; }
.dashboard-card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.dashboard-card-head .card-title { flex: 1; margin: 0; padding: 0; border: 0; }
.dashboard-search { position: relative; flex: 0 1 270px; margin: 0; }
.dashboard-search-icon { position: absolute; left: 13px; top: 50%; width: 12px; height: 12px; border: 1.8px solid var(--gray-400); border-radius: 50%; transform: translateY(-58%); pointer-events: none; }
.dashboard-search-icon::after { content: ""; position: absolute; width: 5px; height: 1.8px; right: -4px; bottom: -2px; border-radius: 2px; background: var(--gray-400); transform: rotate(45deg); }
.dashboard-search input[type=search] { width: 100%; min-height: 39px; padding: 8px 13px 8px 35px; border: 1px solid var(--border); border-radius: 11px; color: var(--gray-700); background: #f8fbfd; font-size: 11px; }
.dashboard-search input[type=search]:focus { border-color: var(--primary-500); background: #fff; box-shadow: 0 0 0 4px rgba(34,116,229,.09); outline: 0; }
.dashboard-table-card.is-filtering .dashboard-search input { border-color: var(--primary-200); background: var(--primary-50); }
.dashboard-no-match td { padding: 42px 16px !important; color: var(--gray-500) !important; text-align: center; }
.dashboard-no-match-icon { display: grid; place-items: center; width: 36px; height: 36px; margin: 0 auto 8px; border-radius: 12px; color: var(--primary-600); background: var(--primary-50); font-size: 17px; }
.dashboard-table-card tr[data-dashboard-row] { transition: opacity .2s ease, transform .2s ease; }
.dashboard-table-card tr[data-dashboard-row][hidden] { display: none; }
.dashboard-table-card table.data-table td:last-child { text-align: right; }
.dashboard-table-card table.data-table .empty-row td { text-align: center; vertical-align: middle; }
.dashboard-table-card table.data-table { font-size: 12px; }
.dashboard-table-card table.data-table th { font-size: 10px; }
.dashboard-table-card table.data-table td strong { font-size: 11.5px; }
.dashboard-table-card .btn-sm { font-size: 10.5px; }

/* Dashboard data visualizations */
.dashboard-chart-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 15px; margin-bottom: 21px; }
.dashboard-chart-card { position: relative; min-width: 0; padding: 24px; overflow: hidden; border: 1px solid var(--border); border-radius: 20px; background: rgba(255,255,255,.96); box-shadow: var(--shadow); }
.dashboard-chart-card::after { content: ""; position: absolute; width: 130px; height: 130px; right: -66px; top: -66px; border-radius: 50%; background: var(--primary-50); opacity: .65; pointer-events: none; }
.dashboard-status-card::after { background: linear-gradient(145deg, var(--danger-light), var(--primary-50)); }
.dashboard-type-card::after { background: linear-gradient(145deg, var(--primary-50), var(--success-light)); }
.dashboard-chart-head { position: relative; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 23px; }
.dashboard-chart-head h2 { margin: 3px 0 4px; color: var(--gray-900); font-size: 16px; font-weight: 800; letter-spacing: -.025em; line-height: 1.25; }
.dashboard-chart-head p { max-width: 470px; margin: 0; color: var(--gray-500); font-size: 10.5px; line-height: 1.55; }
.dashboard-chart-kicker { display: block; color: var(--primary-600); font-size: 9px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.dashboard-chart-scope { flex: 0 0 auto; padding: 6px 9px; border: 1px solid var(--primary-100); border-radius: 999px; color: var(--primary-600); background: var(--primary-50); font-size: 9px; font-weight: 800; white-space: nowrap; }
.dashboard-status-visual { position: relative; z-index: 1; display: flex; align-items: center; gap: clamp(22px, 3vw, 42px); }
.dashboard-donut { --donut-x: 50%; --donut-y: 50%; position: relative; flex: 0 0 180px; width: 180px; height: 180px; display: grid; place-items: center; border-radius: 50%; background: #fff; box-shadow: 0 18px 40px rgba(39,75,105,.14); isolation: isolate; animation: chartDonutIn .72s .12s var(--ease-out) both; }
.dashboard-donut::after { content: ""; position: absolute; inset: -10px; z-index: -1; border-radius: 50%; background: radial-gradient(circle at var(--donut-x) var(--donut-y), rgba(34,116,229,.2), transparent 48%); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.dashboard-donut.is-hovering::after { opacity: 1; }
.dashboard-donut-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dashboard-donut-track,
.dashboard-donut-segment { fill: none; stroke-width: 18; }
.dashboard-donut-track { stroke: var(--gray-100); }
.dashboard-donut-segment { cursor: pointer; pointer-events: stroke; transition: stroke-width .2s var(--ease-out), opacity .2s ease, filter .2s ease; }
.dashboard-donut-segment.segment-action { stroke: var(--danger); }
.dashboard-donut-segment.segment-progress { stroke: var(--primary-500); }
.dashboard-donut-segment.segment-done { stroke: var(--success); }
.dashboard-donut-segment.is-muted { opacity: .28; }
.dashboard-donut-segment.is-active,
.dashboard-donut-segment:focus-visible { stroke-width: 22; opacity: 1; filter: drop-shadow(0 5px 5px rgba(34,61,84,.2)); outline: none; }
.dashboard-donut-center { position: relative; z-index: 1; display: flex; width: 102px; height: 102px; flex-direction: column; align-items: center; justify-content: center; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px rgba(223,232,240,.82); line-height: 1; pointer-events: none; transition: transform .2s var(--ease-out), box-shadow .2s ease; }
.dashboard-donut.is-hovering .dashboard-donut-center { transform: scale(.96); box-shadow: inset 0 0 0 1px rgba(206,221,233,.95), 0 6px 18px rgba(33,66,92,.08); }
.dashboard-donut-center strong { color: var(--gray-900); font-size: 36px; font-weight: 800; letter-spacing: -.05em; }
.dashboard-donut-center span { max-width: 70px; margin-top: 6px; overflow: hidden; color: var(--gray-500); font-size: 8px; font-weight: 750; letter-spacing: .045em; line-height: 1.15; text-align: center; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.dashboard-donut-center small { min-height: 9px; margin-top: 4px; color: var(--primary-600); font-size: 8px; font-weight: 800; }
.dashboard-donut-center small:empty { display: none; }
.dashboard-donut-tooltip { position: fixed; z-index: 1000; display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-width: 150px; padding: 9px 11px; border: 1px solid rgba(210,223,234,.95); border-radius: 11px; color: var(--gray-600); background: rgba(255,255,255,.97); box-shadow: 0 14px 35px rgba(31,60,84,.16); font-size: 9px; pointer-events: none; opacity: 0; transform: translateY(5px) scale(.97); transition: opacity .14s ease, transform .14s ease; }
.dashboard-donut-tooltip.is-visible { opacity: 1; transform: translateY(0) scale(1); }
.dashboard-donut-tooltip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary-500); }
.dashboard-donut-tooltip[data-segment="action"] .dashboard-donut-tooltip-dot { background: var(--danger); }
.dashboard-donut-tooltip[data-segment="done"] .dashboard-donut-tooltip-dot { background: var(--success); }
.dashboard-donut-tooltip-label { font-weight: 700; }
.dashboard-donut-tooltip-value { color: var(--gray-900); font-size: 10px; font-weight: 800; white-space: nowrap; }
.dashboard-chart-legend { flex: 1; display: grid; gap: 8px; min-width: 0; }
.dashboard-legend-item { display: grid; grid-template-columns: 9px minmax(0, 1fr) auto; align-items: center; gap: 9px; min-height: 37px; padding: 8px 10px; border: 1px solid #e8eef4; border-radius: 11px; color: var(--gray-600); background: #fbfdff; font-size: 10px; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.dashboard-legend-item:hover,
.dashboard-legend-item.is-active,
.dashboard-legend-item:focus-visible { transform: translateX(3px); border-color: var(--primary-100); background: var(--primary-50); outline: none; }
.dashboard-legend-item strong { color: var(--gray-900); font-size: 12px; font-weight: 800; }
.dashboard-legend-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary-500); box-shadow: 0 0 0 4px var(--primary-50); }
.legend-action .dashboard-legend-dot { background: var(--danger); box-shadow: 0 0 0 4px var(--danger-light); }
.legend-done .dashboard-legend-dot { background: var(--success); box-shadow: 0 0 0 4px var(--success-light); }
.dashboard-chart-total { position: relative; z-index: 1; flex: 0 0 auto; min-width: 72px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 12px; background: #fbfdff; text-align: right; }
.dashboard-chart-total strong { display: block; color: var(--gray-900); font-size: 18px; font-weight: 800; line-height: 1; }
.dashboard-chart-total span { display: block; margin-top: 5px; color: var(--gray-500); font-size: 8px; font-weight: 700; }
.dashboard-bars { position: relative; z-index: 1; display: grid; gap: 18px; }
.dashboard-bar-row { min-width: 0; }
.dashboard-bar-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 7px; color: var(--gray-700); font-size: 10.5px; font-weight: 750; }
.dashboard-bar-meta > span:last-child { flex: 0 0 auto; color: var(--gray-900); }
.dashboard-bar-meta strong { font-size: 12px; font-weight: 800; }
.dashboard-bar-meta small { margin-left: 4px; color: var(--gray-400); font-size: 9px; font-weight: 700; }
.dashboard-bar-track { height: 12px; padding: 2px; overflow: hidden; border-radius: 999px; background: var(--gray-100); }
.dashboard-bar-track span { display: block; width: var(--bar-width, 0%); min-width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary-500), #69a8f7); transform: scaleX(0); transform-origin: left center; animation: chartBarGrow .8s .25s var(--ease-out) forwards; }
.bar-tambah .dashboard-bar-track span { background: linear-gradient(90deg, #23a9b9, #66d2d8); animation-delay: .34s; }
.bar-kurang .dashboard-bar-track span { background: linear-gradient(90deg, var(--warning), #f3c95c); animation-delay: .43s; }

@keyframes chartDonutIn {
    from { opacity: 0; transform: rotate(-38deg) scale(.82); }
    to { opacity: 1; transform: rotate(0) scale(1); }
}
@keyframes chartBarGrow { to { transform: scaleX(1); } }

@keyframes dashboardStatIn {
    from { opacity: 0; transform: translateY(10px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes dashboardStatValueSettle {
    50% { transform: scale(1.045); }
    to { transform: scale(1); }
}
@keyframes dashboardSectionLineIn { to { transform: scaleX(1); } }
@keyframes dashboardStatRingsFloat {
    from { transform: translate3d(0,0,0) rotate(-3deg); }
    to { transform: translate3d(-8px,8px,0) rotate(5deg); }
}

@keyframes dashboardMediaIn {
    from { opacity: 0; transform: translate3d(18px,-50%,0) scale(.97); }
    to { opacity: var(--dashboard-media-opacity); transform: translate3d(0,-50%,0) scale(1); }
}
@keyframes dashboardLive {
    0% { box-shadow: 0 0 0 0 rgba(33,156,107,.35); }
    70%, 100% { box-shadow: 0 0 0 8px rgba(33,156,107,0); }
}
@keyframes dashboardTrack { to { transform: scaleX(1); } }

/* Cards */
.card { padding: 27px; border-color: var(--border); border-radius: 20px; box-shadow: var(--shadow); margin-bottom: 20px; }
.card:hover { transform: none; box-shadow: var(--shadow); }
.card h3 { margin: 0 0 7px; color: var(--gray-900); font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.card > h3 + p { margin: 0 0 24px; color: var(--gray-500); font-size: 11px; }
.card-title { margin: 0 0 18px; padding-bottom: 17px; border-color: var(--border); color: var(--gray-900); font-size: 13px; font-weight: 800; }
.card-title::before { width: 8px; height: 8px; border-radius: 50%; background: var(--primary-500); box-shadow: 0 0 0 5px var(--primary-50); }

/* Dashboard stats */
.stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin-bottom: 21px; }
.stat-card { --stat-color: var(--primary-500); --stat-soft: var(--primary-50); position: relative; min-height: 148px; align-items: flex-start; padding: 22px; overflow: hidden; border-color: var(--border); border-radius: 20px; background: linear-gradient(135deg, #fff 0%, #fff 56%, var(--stat-soft) 150%); box-shadow: 0 8px 24px rgba(39,75,105,.06); transition: transform 180ms var(--ease-out), border-color 180ms ease, box-shadow 180ms ease; }
.stat-card::after { content: ""; position: absolute; z-index: 0; top: -54px; right: -38px; width: 132px; height: 132px; border: 1px solid color-mix(in srgb, var(--stat-color) 16%, transparent); border-radius: 50%; box-shadow: 0 0 0 22px color-mix(in srgb, var(--stat-color) 7%, transparent), 0 0 0 44px color-mix(in srgb, var(--stat-color) 4%, transparent); opacity: .8; pointer-events: none; transform: translate3d(0,0,0); transition: transform 200ms var(--ease-out), opacity 180ms ease; }
.stat-card:hover { transform: none; box-shadow: 0 8px 24px rgba(39,75,105,.06); }
.stat-card .stat-icon { position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 13px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--stat-color) 8%, transparent); transition: transform 180ms var(--ease-out), box-shadow 180ms ease; }
.stat-card .stat-icon::after { content: ""; position: absolute; inset: -5px; border: 1px solid color-mix(in srgb, var(--stat-color) 18%, transparent); border-radius: 17px; opacity: 0; pointer-events: none; transform: scale(.9); transition: transform 180ms var(--ease-out), opacity 160ms ease; }
.stat-card .stat-body { position: relative; z-index: 1; }
.stat-card .stat-value { color: var(--gray-900); font-size: 34px; font-weight: 800; letter-spacing: -.06em; line-height: 1; transform-origin: left center; }
.stat-card .stat-value.is-counted { animation: dashboardStatValueSettle 180ms var(--ease-out); }
.stat-card .stat-label { margin-top: 7px; color: var(--gray-500); font-size: 10.5px; font-weight: 750; letter-spacing: .005em; }
.stat-meta { position: relative; z-index: 1; min-height: 27px; display: inline-flex; align-items: center; gap: 4px; padding: 5px 8px; border: 1px solid color-mix(in srgb, var(--stat-color) 13%, transparent); border-radius: 999px; color: color-mix(in srgb, var(--stat-color) 82%, #233348); background: color-mix(in srgb, var(--stat-soft) 72%, white); font-size: 8px; font-weight: 750; line-height: 1; white-space: nowrap; transition: transform 160ms var(--ease-out), background-color 160ms ease; }
.stat-meta strong { font-size: 8.5px; font-weight: 850; }
.stat-meta-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--stat-color); box-shadow: 0 0 0 3px color-mix(in srgb, var(--stat-color) 12%, transparent); }
.stat-card.accent-teal { --stat-color: var(--primary-500); --stat-soft: var(--primary-50); }
.stat-card.accent-amber { --stat-color: #d99716; --stat-soft: var(--warning-light); }
.stat-card.accent-green { --stat-color: var(--success); --stat-soft: var(--success-light); }
.stat-card.accent-red { --stat-color: var(--danger); --stat-soft: var(--danger-light); }
.stat-card .stat-icon { color: var(--stat-color); background: var(--stat-soft); }
.stat-card.accent-teal::after { animation: dashboardStatRingsFloat 4.2s var(--ease-in-out) infinite alternate; will-change: transform; }
.stat-card.accent-amber::after { animation: dashboardStatRingsFloat 4.6s 120ms var(--ease-in-out) infinite alternate-reverse both; will-change: transform; }
.stat-card.accent-green::after { animation: dashboardStatRingsFloat 3.8s var(--ease-in-out) infinite alternate; will-change: transform; }
.dashboard-page .stat-grid .stat-card { animation: dashboardStatIn 240ms var(--ease-out) both; }
.dashboard-page .stat-grid .stat-card:nth-child(1) { animation-delay: 20ms; }
.dashboard-page .stat-grid .stat-card:nth-child(2) { animation-delay: 60ms; }
.dashboard-page .stat-grid .stat-card:nth-child(3) { animation-delay: 100ms; }

@media (hover: hover) and (pointer: fine) {
    .dashboard-page .stat-card:hover { border-color: color-mix(in srgb, var(--stat-color) 24%, var(--border)); box-shadow: 0 16px 34px rgba(39,75,105,.11); transform: translateY(-4px); }
    .dashboard-page .stat-card:hover::after { opacity: 1; transform: translate3d(-7px,7px,0) rotate(8deg); }
    .dashboard-page .stat-card:hover .stat-icon { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--stat-color) 13%, transparent), 0 8px 18px color-mix(in srgb, var(--stat-color) 14%, transparent); transform: translateY(-2px) rotate(-3deg) scale(1.04); }
    .dashboard-page .stat-card:hover .stat-icon::after { opacity: 1; transform: scale(1); }
    .dashboard-page .stat-card:hover .stat-meta { background: #fff; transform: translateY(-1px); }
}

/* Data tables */
.table-wrap { border: 1px solid var(--border); border-radius: 14px; }
table.data-table { font-size: 11px; }
table.data-table thead { position: static; }
table.data-table th { padding: 13px 15px; border-color: var(--border); color: #718196; background: #f6f9fc; font-size: 8.5px; font-weight: 800; letter-spacing: .1em; }
table.data-table td { padding: 15px; border-color: #edf2f6; color: var(--gray-700); }
table.data-table td strong { color: var(--gray-900); font-size: 10.5px; }
table.data-table tbody tr:hover td { background: #f9fcff; }
.empty-row td { padding: 45px 16px !important; color: var(--gray-400); font-size: 11px; }
.status-dot { width: 7px; height: 7px; margin-right: 4px; }
.badge { padding: 5px 9px; font-size: 8.5px; font-weight: 750; letter-spacing: .01em; }
.badge-info { color: #1659a9; background: var(--info-light); }
.badge-success { color: #17764f; background: var(--success-light); }
.badge-warning { color: #8b6500; background: var(--warning-light); }
.badge-danger { color: #a73c3c; background: var(--danger-light); }
.jenis-tag { padding: 4px 8px; border-color: var(--border); color: var(--gray-600); background: var(--gray-50); font-size: 8.5px; font-weight: 750; }

/* Buttons */
.btn { min-height: 43px; padding: 10px 18px; border-radius: 12px; font-size: 11px; font-weight: 750; transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 20px rgba(36, 72, 103, .1); }
.btn-primary { color: #fff; background: var(--primary-500); box-shadow: 0 10px 22px rgba(34,116,229,.16); }
.btn-primary:hover { color: #fff; background: var(--primary-600); }
.btn-secondary { color: var(--gray-700); border-color: var(--border); background: #fff; }
.btn-secondary:hover { color: var(--gray-900); border-color: var(--primary-200); background: var(--primary-50); }
.btn-danger { background: var(--danger); }
.btn-success { background: var(--success); }
.btn-sm { min-height: 32px; padding: 6px 11px; border-radius: 9px; font-size: 9px; }
.btn-pill { border-radius: 13px; padding-inline: 20px; }
.btn[disabled] { opacity: .55; }

/* Forms */
.form-group { margin-bottom: 20px; }
label.form-label, .suml-label { margin-bottom: 8px; color: var(--gray-700); font-size: 10px; font-weight: 750; }
.form-hint { color: var(--gray-400); font-size: 9.5px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=datetime-local], input[type=file], select, textarea, .suml-input, .suml-select {
    min-height: 46px;
    padding: 11px 14px;
    border-color: var(--gray-300);
    border-radius: 12px;
    color: var(--gray-900);
    background: #fbfdff;
    font-size: 11px;
}
textarea { min-height: 104px; resize: vertical; }
input:focus, select:focus, textarea:focus, .suml-input:focus, .suml-select:focus { border-color: var(--primary-500); background: #fff; box-shadow: 0 0 0 4px rgba(34,116,229,.1); }
input[readonly], .suml-readonly { color: var(--gray-500); background: var(--gray-100); }
.form-row { gap: 15px; }
.radio-group { gap: 9px; }
.radio-group label { min-height: 44px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 12px; color: var(--gray-600); background: #fbfdff; font-size: 10px; font-weight: 700; cursor: pointer; }
.radio-group label:hover { border-color: var(--primary-200); background: var(--primary-50); }
.radio-group input { accent-color: var(--primary-500); }
.upload-zone { padding: 30px 20px; border: 1.5px dashed #b9ccdb; border-radius: 16px; color: var(--gray-500); background: #f8fbfd; }
.upload-zone:hover { border-color: var(--primary-500); background: var(--primary-50); }
.upload-zone.is-dragging, .upload-zone.has-file { border-color: var(--primary-500); background: var(--primary-50); }
.upload-zone.is-dragging { transform: scale(1.005); box-shadow: 0 0 0 5px rgba(34,116,229,.08); }
.upload-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; margin-bottom: 12px; border-radius: 14px; color: var(--primary-600); background: var(--primary-50); }
.upload-text { color: var(--gray-700); font-size: 11px; font-weight: 750; }
.upload-hint { margin-top: 5px; color: var(--gray-400); font-size: 9px; }

/* Alerts */
.alert { gap: 12px; padding: 14px 16px; border-radius: 14px; font-size: 10.5px; }
.alert-success { color: #186f4c; border-color: #b9e7d3; background: var(--success-light); }
.alert-info { color: #225d9e; border-color: #bedcf6; background: var(--primary-50); }
.alert-error { color: #9f3c3c; border-color: #f2c7c7; background: var(--danger-light); }

/* Detail page */
.detail-grid { grid-template-columns: 180px 1fr; gap: 0 20px; }
.detail-grid dt { padding: 12px 0; color: var(--gray-500); font-size: 9.5px; font-weight: 700; }
.detail-grid dd { padding: 12px 0; border-color: #edf2f6; color: var(--gray-800); font-size: 11px; }
.workflow-progress { gap: 0; margin-bottom: 20px; padding: 24px 18px; overflow-x: auto; border: 1px solid var(--border); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.workflow-step { min-width: 105px; }
.workflow-step::before, .workflow-step::after { height: 2px; background: var(--gray-200); }
.workflow-step .step-circle { width: 34px; height: 34px; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--border); font-size: 10px; font-weight: 800; }
.workflow-step.done .step-circle { color: #fff; background: var(--success); box-shadow: 0 0 0 1px #b8e4d0; }
.workflow-step.active .step-circle { color: #fff; background: var(--primary-500); box-shadow: 0 0 0 5px var(--primary-50); }
.workflow-step.active .step-circle { animation: activeStepPulse 2.4s ease-out infinite; }
.workflow-step .step-label { margin-top: 9px; color: var(--gray-500); font-size: 8px; font-weight: 700; line-height: 1.4; }
.workflow-step.active .step-label { color: var(--primary-600); }
.timeline { margin: 0; }
.timeline li { padding-left: 29px; padding-bottom: 22px; }
.timeline li::before { width: 11px; height: 11px; border: 3px solid #fff; background: var(--primary-500); box-shadow: 0 0 0 1px var(--primary-200); }
.timeline li::after { left: 5px; background: var(--border); }
.timeline .tl-title { color: var(--gray-800); font-size: 11px; font-weight: 750; }
.timeline .tl-meta { color: var(--gray-400); font-size: 8.5px; }
.timeline .tl-desc { color: var(--gray-600); font-size: 10px; }
.file-chip { padding: 7px 10px; border-color: var(--border); border-radius: 10px; background: var(--gray-50); font-size: 9px; }

/* Notifications */
.notif-list { border-radius: 14px; overflow: hidden; }
.notif-item { gap: 13px; padding: 16px; border-color: #edf2f6; }
.notif-item.unread { background: var(--primary-50); }
.notif-item .notif-icon { width: 38px; height: 38px; border-radius: 12px; color: var(--primary-600); background: #fff; }
.notif-item .notif-msg { color: var(--gray-700); font-size: 10.5px; }
.notif-item .notif-time { margin-top: 3px; color: var(--gray-400); font-size: 8.5px; }
.notif-empty { padding: 58px 20px; }
.notif-empty-icon { width: 54px; height: 54px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 17px; color: var(--primary-600); background: var(--primary-50); }
.notif-empty-text { color: var(--gray-800); font-size: 12px; font-weight: 800; }
.notif-empty-hint { max-width: 390px; margin: 6px auto 0; color: var(--gray-500); font-size: 10px; }

/* Profile settings */
.profile-page { position: relative; }
.profile-page-header { margin-bottom: 24px; }
.profile-page-header .page-header { max-width: 720px; }
.profile-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); align-items: start; gap: 20px; }
.profile-identity-card { position: sticky; top: 98px; margin: 0; padding: 28px 24px; text-align: center; }
.profile-section-kicker { display: block; color: var(--primary-600); font-size: 8.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.profile-avatar-preview { width: 118px; height: 118px; display: grid; place-items: center; margin: 20px auto 14px; overflow: hidden; border: 5px solid #fff; border-radius: 36px; color: #fff; background: linear-gradient(145deg, var(--primary-500), #66cdd9); box-shadow: 0 0 0 1px var(--border), 0 16px 32px rgba(34,116,229,.16); font-size: 42px; font-weight: 800; }
.profile-avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.profile-photo-button { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 7px 13px; overflow: hidden; border: 1px solid var(--border); border-radius: 10px; color: var(--gray-700); background: #fff; cursor: pointer; font-size: 9.5px; font-weight: 750; transition: border-color .18s ease, background .18s ease, color .18s ease; }
.profile-photo-button:hover, .profile-photo-button:focus-within { color: var(--primary-600); border-color: var(--primary-200); background: var(--primary-50); }
.profile-photo-button input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.profile-photo-hint { max-width: 210px; margin: 8px auto 20px; color: var(--gray-400); font-size: 8.5px; line-height: 1.55; }
.profile-photo-save { width: 100%; margin: -8px 0 20px; }
.profile-photo-save[hidden] { display: none; }
.profile-identity-copy { padding-top: 18px; border-top: 1px solid var(--border); }
.profile-role-chip { display: inline-flex; padding: 5px 8px; border-radius: 999px; color: var(--primary-600); background: var(--primary-50); font-size: 8.5px; font-weight: 800; }
.profile-identity-copy h2 { margin: 12px 0 4px; color: var(--gray-900); font-size: 18px; font-weight: 800; letter-spacing: -.025em; line-height: 1.25; }
.profile-identity-copy p { margin: 0; color: var(--gray-500); font-size: 10px; }
.profile-summary-list { display: grid; gap: 0; margin: 22px 0 0; text-align: left; }
.profile-summary-list > div { padding: 11px 0; border-top: 1px solid #edf2f6; }
.profile-summary-list dt { margin-bottom: 3px; color: var(--gray-400); font-size: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.profile-summary-list dd { margin: 0; overflow-wrap: anywhere; color: var(--gray-700); font-size: 10px; font-weight: 650; }
.profile-panels { display: grid; gap: 20px; min-width: 0; }
.profile-form-card { margin: 0; padding: 27px; }
.profile-card-heading { margin-bottom: 23px; padding-bottom: 19px; border-bottom: 1px solid var(--border); }
.profile-card-heading h2 { margin: 5px 0 5px; color: var(--gray-900); font-size: 17px; font-weight: 800; letter-spacing: -.025em; }
.profile-card-heading p { max-width: 560px; margin: 0; color: var(--gray-500); font-size: 10.5px; }
.profile-form-actions { display: flex; justify-content: flex-end; margin-top: 7px; }
.profile-success { margin-bottom: 20px; }
.profile-error-list { margin-bottom: 20px; }
.profile-error-list ul { margin: 0; padding-left: 17px; }
.profile-error-list li + li { margin-top: 4px; }
.profile-password-field { position: relative; }
.profile-password-field input { width: 100%; padding-right: 52px; }
.profile-password-field button { position: absolute; right: 7px; top: 50%; display: grid; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 10px; color: var(--gray-500); background: transparent; cursor: pointer; place-items: center; transform: translateY(-50%); transition: color .18s ease, background .18s ease, box-shadow .18s ease; }
.profile-password-field button:hover { color: var(--primary-600); background: var(--primary-50); }
.profile-password-field button:focus-visible { outline: 0; box-shadow: 0 0 0 3px rgba(34,116,229,.2); }
.profile-password-field button .icon { width: 18px; height: 18px; }
.profile-password-field .password-eye-off { display: none; }
.profile-password-toggle[aria-pressed="true"] .password-eye-open { display: none; }
.profile-password-toggle[aria-pressed="true"] .password-eye-off { display: block; }
.profile-password-hint { margin: -7px 0 16px; }
.profile-phone-field { display: grid; grid-template-columns: 122px minmax(0, 1fr); overflow: hidden; border: 1px solid var(--gray-300); border-radius: 12px; background: #fbfdff; transition: border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.profile-phone-field:focus-within { border-color: var(--primary-500); background: #fff; box-shadow: 0 0 0 4px rgba(34,116,229,.1); }
.profile-phone-field select,
.profile-phone-field input[type=tel] { width: 100%; min-width: 0; min-height: 44px; margin: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.profile-phone-field select { padding: 10px 12px; border-right: 1px solid var(--border); color: var(--gray-700); background: var(--gray-50); cursor: pointer; font-size: 10px; font-weight: 750; }
.profile-phone-field input[type=tel] { padding: 10px 14px; color: var(--gray-900); font-size: 11px; }
.profile-phone-field select:focus,
.profile-phone-field input[type=tel]:focus { border: 0; background: transparent; box-shadow: none; outline: 0; }
.profile-phone-hint { margin: 7px 2px 0; line-height: 1.55; }

/* SUML request builder */
.suml-step-indicator { margin-bottom: 20px; padding: 18px 24px; border-color: var(--border); border-radius: 18px; box-shadow: var(--shadow); }
.suml-step-num { width: 33px; height: 33px; font-size: 10px; }
.suml-step-num.active { background: var(--primary-500); box-shadow: 0 0 0 5px var(--primary-50); }
.suml-step-label { margin-top: 8px; font-size: 9px; }
.suml-step-line { margin-bottom: 22px; }
.suml-step-line.done { background: var(--primary-500); }
.suml-selector-row { gap: 14px; margin-bottom: 20px; }
.suml-item-card { border-color: var(--border); border-radius: 16px; box-shadow: none; }
.suml-card-header { padding: 15px 18px; border-color: var(--border); background: #f6f9fc; }
.suml-card-title { color: var(--gray-800); font-size: 11px; font-weight: 800; }
.suml-card-badge { border: 0; background: var(--primary-50); font-size: 8.5px; }
.suml-card-remove { border-radius: 9px; font-size: 15px; }
.suml-card-body { padding: 20px; }
.suml-row { gap: 14px; margin-bottom: 14px; }
.suml-label-section { margin-bottom: 12px; padding-bottom: 8px; border-color: var(--border); color: var(--gray-800); font-size: 10px; }
.suml-komponen-section, .suml-special-section { padding: 16px; border-color: var(--border); border-radius: 13px; background: #f7fafc; }
.suml-special-section { background: var(--warning-light); }
.suml-komponen-row { padding: 8px 10px; border-color: var(--border); border-radius: 9px; }
.komponen-nama { color: var(--gray-700); font-size: 9px; }
.suml-file-text { padding: 11px 13px; border-color: var(--gray-300); border-radius: 11px; font-size: 9px; }

/* Request form — guided single-page flow */
.request-guide {
    display: grid;
    grid-template-columns: minmax(210px, .8fr) minmax(0, 2.2fr);
    gap: 24px;
    align-items: center;
    margin-bottom: 20px;
    padding: 20px 24px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: linear-gradient(135deg, #fff 0%, #f5faff 100%);
    box-shadow: var(--shadow);
}
.request-guide-intro { display: grid; gap: 4px; }
.request-guide-eyebrow { color: var(--primary-600); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.request-guide-intro strong { color: var(--gray-900); font-size: 13px; line-height: 1.45; }
.request-guide-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.request-guide-list li { display: flex; min-width: 0; gap: 10px; align-items: center; }
.request-guide-list li > span { display: grid; flex: 0 0 30px; width: 30px; height: 30px; place-items: center; border-radius: 10px; color: var(--primary-600); background: var(--primary-50); font-size: 10px; font-weight: 800; }
.request-guide-list li div { display: grid; min-width: 0; gap: 2px; }
.request-guide-list strong { color: var(--gray-800); font-size: 10px; line-height: 1.35; }
.request-guide-list small { color: var(--gray-500); font-size: 8.5px; line-height: 1.45; }

.request-form { display: grid; gap: 20px; }
.request-form .request-section { margin: 0; padding: 0; overflow: hidden; }
.request-section-header { display: flex; gap: 14px; align-items: flex-start; padding: 23px 26px 20px; border-bottom: 1px solid var(--border); background: #fbfdff; }
.request-section-number { display: grid; flex: 0 0 38px; width: 38px; height: 38px; place-items: center; border-radius: 12px; color: var(--primary-600); background: var(--primary-50); font-size: 10px; font-weight: 800; letter-spacing: .04em; }
.request-section-header h2 { margin: 1px 0 4px; color: var(--gray-900); font-size: 16px; font-weight: 800; letter-spacing: -.025em; line-height: 1.3; }
.request-section-header p { margin: 0; color: var(--gray-500); font-size: 10.5px; line-height: 1.6; }
.request-section > .form-group,
.request-section > .request-two-column,
.request-section > .request-builder-panel,
.request-section > .request-list-heading,
.request-section > .request-empty-state,
.request-section > .suml-cards-container { margin-right: 26px; margin-left: 26px; }
.request-section > .form-group:first-of-type { margin-top: 24px; }
.request-section > .form-group:last-child { margin-bottom: 26px; }
.request-field-help { margin: -2px 0 10px; color: var(--gray-500); font-size: 9.5px; line-height: 1.55; }

.request-type-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.request-type-grid .request-type-option { position: relative; min-width: 0; min-height: 88px; gap: 12px; align-items: flex-start; padding: 15px; border-radius: 14px; }
.request-type-option input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.request-radio-mark { position: relative; flex: 0 0 18px; width: 18px; height: 18px; margin-top: 1px; border: 1.5px solid var(--gray-300); border-radius: 50%; background: #fff; transition: border-color .18s ease, box-shadow .18s ease; }
.request-type-option input:checked + .request-radio-mark { border: 5px solid var(--primary-500); }
.request-type-option > span:last-child { display: grid; gap: 5px; }
.request-type-option strong { color: var(--gray-800); font-size: 11px; font-weight: 800; line-height: 1.35; }
.request-type-option small { color: var(--gray-500); font-size: 9px; font-weight: 500; line-height: 1.5; }
.request-type-option:focus-within { border-color: var(--primary-500); box-shadow: 0 0 0 4px rgba(34,116,229,.1); }

.request-two-column { display: grid; grid-template-columns: minmax(230px, .8fr) minmax(0, 1.2fr); gap: 18px; }
.request-two-column .form-group { min-width: 0; margin-bottom: 22px; }
.request-account-summary { display: flex; min-height: 104px; gap: 12px; align-items: center; padding: 15px; border: 1px solid var(--border); border-radius: 14px; background: #f8fbfd; }
.request-account-avatar { display: grid; flex: 0 0 42px; width: 42px; height: 42px; place-items: center; border-radius: 13px; color: #fff; background: linear-gradient(145deg, var(--primary-500), #58c4ce); font-size: 15px; font-weight: 800; box-shadow: 0 8px 18px rgba(34,116,229,.16); }
.request-account-summary > span:last-child { display: grid; min-width: 0; gap: 4px; }
.request-account-summary strong { overflow: hidden; color: var(--gray-800); font-size: 11px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.request-account-summary small { color: var(--gray-500); font-size: 9px; line-height: 1.5; }
.request-label-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.request-optional { margin-left: 5px; color: var(--gray-400); font-size: 8px; font-weight: 700; }
.request-character-count { margin-bottom: 8px; color: var(--gray-400); font-size: 8.5px; font-weight: 700; }
.request-two-column textarea { min-height: 104px; }

.request-upload-group { padding-top: 21px; border-top: 1px solid var(--border); }
.request-upload-zone { position: relative; display: flex; min-height: 132px; gap: 16px; align-items: center; justify-content: center; padding: 24px; text-align: left; }
.request-upload-zone input[type=file] { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; padding: 0; opacity: 0; cursor: pointer; }
.request-upload-zone .upload-icon { flex: 0 0 48px; margin: 0; }
.request-upload-copy { display: grid; min-width: 0; gap: 4px; }
.request-upload-copy .upload-text { font-size: 11px; }
.request-upload-copy .upload-text strong { color: var(--primary-600); }
.request-file-selected { display: flex; max-width: 520px; gap: 8px; align-items: center; margin-top: 8px; padding: 7px 10px; border-radius: 9px; color: var(--success); background: var(--success-light); font-size: 9px; font-weight: 750; }
.request-file-selected[hidden] { display: none !important; }
.request-file-selected span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.request-file-selected small { flex: 0 0 auto; color: var(--gray-500); font-size: 8px; }
.request-upload-zone.is-invalid { border-color: var(--danger); background: var(--danger-light); }
.request-inline-error { margin: 7px 2px 0; color: var(--danger); font-size: 9px; font-weight: 700; line-height: 1.5; }

.request-builder-panel { margin-top: 24px; margin-bottom: 24px; padding: 18px; border: 1px solid #cfe2f5; border-radius: 16px; background: #f5faff; }
.request-builder-panel .suml-selector-row { display: grid; grid-template-columns: minmax(170px, .9fr) minmax(220px, 1.25fr) minmax(170px, auto); gap: 12px; align-items: end; margin: 0; }
.request-builder-panel .suml-field { min-width: 0; }
.request-builder-panel .suml-label { min-height: 18px; color: var(--gray-700); font-size: 9.5px; }
.request-builder-panel .suml-label > span:first-child { display: inline-grid; width: 18px; height: 18px; margin-right: 4px; place-items: center; border-radius: 6px; color: var(--primary-600); background: #fff; font-size: 8px; }
.request-add-field .btn { width: 100%; white-space: nowrap; }
.request-add-field .btn:disabled { cursor: not-allowed; opacity: .48; box-shadow: none; }
.request-list-heading { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 12px; }
.request-list-heading > div { display: grid; gap: 3px; }
.request-list-heading strong { color: var(--gray-800); font-size: 12px; }
.request-list-heading small { color: var(--gray-500); font-size: 9px; line-height: 1.5; }
.request-item-count { padding: 6px 9px; border-radius: 999px; color: var(--primary-600); background: var(--primary-50); font-size: 8.5px; font-weight: 800; }
.request-empty-state { display: flex; min-height: 112px; gap: 13px; align-items: center; justify-content: center; margin-bottom: 26px; padding: 20px; border: 1px dashed var(--gray-300); border-radius: 15px; background: #fbfdff; text-align: left; }
.request-empty-number { display: grid; flex: 0 0 38px; width: 38px; height: 38px; place-items: center; border-radius: 12px; color: var(--gray-400); background: var(--gray-100); font-size: 11px; font-weight: 800; }
.request-empty-state strong { color: var(--gray-700); font-size: 10.5px; }
.request-empty-state p { margin: 3px 0 0; color: var(--gray-500); font-size: 9px; }
.request-section > .suml-cards-container.has-cards { margin-bottom: 26px; }
.request-section.has-error .request-builder-panel { border-color: #efbaba; background: var(--danger-light); }

.request-submit-section .request-section-header { border-bottom: 0; }
.request-submit-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(230px, .65fr); gap: 24px; align-items: center; padding: 0 26px 26px; }
.request-readiness-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.request-readiness-list li { display: flex; gap: 11px; align-items: center; padding: 11px 12px; border: 1px solid var(--border); border-radius: 12px; background: #fbfdff; }
.request-readiness-list li > span { display: grid; flex: 0 0 28px; width: 28px; height: 28px; place-items: center; border-radius: 9px; color: var(--gray-500); background: var(--gray-100); font-size: 9px; font-weight: 800; }
.request-readiness-list li div { display: grid; gap: 2px; }
.request-readiness-list strong { color: var(--gray-700); font-size: 9.5px; }
.request-readiness-list small { color: var(--gray-500); font-size: 8.5px; }
.request-readiness-list li.is-ready { border-color: #c8e9da; background: #f4fcf8; }
.request-readiness-list li.is-ready > span { color: #fff; background: var(--success); }
.request-submit-actions { display: grid; justify-items: stretch; gap: 10px; padding-left: 24px; border-left: 1px solid var(--border); text-align: center; }
.request-submit-actions p { margin: 0 0 2px; color: var(--gray-500); font-size: 9px; line-height: 1.55; }
.request-submit-button { width: 100%; min-height: 46px; }
.request-cancel-link { color: var(--gray-500); font-size: 8.5px; font-weight: 700; }
.request-cancel-link:hover { color: var(--gray-800); }

@media (max-width: 880px) {
    .request-guide { grid-template-columns: 1fr; gap: 15px; }
    .request-guide-list { padding-top: 14px; border-top: 1px solid var(--border); }
    .request-type-grid { grid-template-columns: 1fr; }
    .request-type-grid .request-type-option { min-height: 0; }
    .request-two-column { grid-template-columns: 1fr; gap: 0; }
    .request-builder-panel .suml-selector-row { grid-template-columns: 1fr 1fr; }
    .request-add-field { grid-column: 1 / -1; }
    .request-submit-layout { grid-template-columns: 1fr; }
    .request-submit-actions { padding: 20px 0 0; border-top: 1px solid var(--border); border-left: 0; }
}

@media (max-width: 600px) {
    .request-guide { padding: 18px; }
    .request-guide-list { grid-template-columns: 1fr; }
    .request-section-header { padding: 19px 18px 17px; }
    .request-section > .form-group,
    .request-section > .request-two-column,
    .request-section > .request-builder-panel,
    .request-section > .request-list-heading,
    .request-section > .request-empty-state,
    .request-section > .suml-cards-container { margin-right: 18px; margin-left: 18px; }
    .request-upload-zone { flex-direction: column; min-height: 170px; text-align: center; }
    .request-file-selected { justify-content: center; }
    .request-builder-panel .suml-selector-row { grid-template-columns: 1fr; }
    .request-add-field { grid-column: auto; }
    .request-submit-layout { padding: 0 18px 20px; }
    .request-list-heading { align-items: flex-start; }
}

/* Modals */
.modal-overlay { background: rgba(18,32,51,.43); backdrop-filter: blur(8px); }
.modal-card { max-width: 400px; padding: 31px; border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow-lg); }
.modal-icon { border-radius: 16px; }
.modal-title { color: var(--gray-900); font-size: 16px; font-weight: 800; }
.modal-text { color: var(--gray-500); font-size: 10.5px; }

/* Motion is purposeful and light */
main.page-wrap, .card, .page-header, .page-header-row, table.data-table tbody tr, .workflow-step, .timeline li { animation-duration: .32s; }

@keyframes activeStepPulse {
    0%, 100% { box-shadow: 0 0 0 5px var(--primary-50), 0 0 0 5px rgba(34,116,229,0); }
    45% { box-shadow: 0 0 0 5px var(--primary-50), 0 0 0 12px rgba(34,116,229,.08); }
}
@media (max-width: 1100px) {
    .topbar-divider, .topbar-page-context { display: none; }
}

@media (max-width: 900px) {
    .topbar-inner { padding-inline: 18px; }
    .brand-text { display: none; }
    .topbar-profile-trigger { min-width: 172px; }
    .page-wrap { width: min(100% - 36px, 760px); padding-top: 105px; }
    .dashboard-welcome { min-height: 220px; padding: 30px; }
    .dashboard-welcome::after { width: 52%; opacity: .72; }
    .dashboard-welcome-media { --dashboard-media-opacity: .16; width: 310px; right: 2px; }
    .dashboard-header .page-header { max-width: 67%; }
    .dashboard-chart-grid { grid-template-columns: 1fr; }
    .dashboard-status-visual { justify-content: flex-start; }
    .profile-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 16px; }
    .profile-identity-card { padding-inline: 18px; }
    .profile-avatar-preview { width: 102px; height: 102px; border-radius: 30px; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-grid .stat-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
    .topbar { height: 68px; }
    .topbar-inner { padding: 8px 12px; }
    .brand-logo-kemper { height: 22px; }
    .brand-logo-pt { width: 32px; height: 32px; }
    .topbar-user { gap: 6px; }
    .notif-bell, .avatar-circle { width: 38px; height: 38px; }
    .user-info { display: none; }
    .topbar-profile-trigger { min-width: 46px; min-height: 44px; gap: 3px; padding: 3px 3px 3px 3px; }
    .profile-chevron { width: 12px; height: 12px; }
    .topbar-profile-dropdown { position: fixed; top: 75px; right: 12px; width: min(310px, calc(100vw - 24px)); }
    .page-wrap { width: calc(100% - 24px); padding: 92px 0 45px; }
    .page-header-row { align-items: stretch; }
    .page-header h1 { font-size: 25px; }
    .page-header p { font-size: 10.5px; }
    .dashboard-welcome { min-height: 0; margin-bottom: 20px; padding: 23px 20px; border-radius: 20px; }
    .dashboard-welcome::before { opacity: .28; background-size: 28px 28px; -webkit-mask-image: linear-gradient(180deg, transparent 25%, #000); mask-image: linear-gradient(180deg, transparent 25%, #000); }
    .dashboard-welcome::after { width: 58%; opacity: .5; }
    .dashboard-welcome-media { --dashboard-media-opacity: .08; width: 210px; right: -54px; top: 27%; }
    .dashboard-header .page-header { max-width: 100%; }
    .dashboard-header .page-header h1 { max-width: calc(100% - 42px); font-size: 27px; }
    .dashboard-header > .btn { width: 100%; align-self: stretch; margin: 2px 0 0; }
    .dashboard-context { flex-wrap: wrap; gap: 7px; margin-top: 15px; }
    .dashboard-context > span, .dashboard-eyebrow, .dashboard-section-label { font-size: 9px; }
    .dashboard-card-head { flex-direction: column; align-items: stretch; gap: 13px; }
    .dashboard-search { flex-basis: auto; width: 100%; }
    .dashboard-search input[type=search] { min-height: 43px; font-size: 11px; }
    .dashboard-chart-card { padding: 20px; border-radius: 17px; }
    .dashboard-chart-head { margin-bottom: 19px; }
    .dashboard-chart-head p { font-size: 10px; }
    .dashboard-status-visual { gap: 18px; }
    .dashboard-donut { flex-basis: 148px; width: 148px; height: 148px; }
    .dashboard-donut-center { width: 84px; height: 84px; }
    .dashboard-donut-center strong { font-size: 30px; }
    .dashboard-legend-item { min-height: 35px; }
    .profile-layout { grid-template-columns: 1fr; }
    .profile-identity-card { position: static; padding: 22px 18px; }
    .profile-avatar-preview { width: 100px; height: 100px; margin-top: 16px; border-radius: 29px; }
    .profile-summary-list { max-width: 340px; margin-inline: auto; }
    .profile-form-card { padding: 20px; }
    .profile-form-actions .btn { width: 100%; }
    .profile-card-heading h2 { font-size: 15px; }
    .profile-phone-field { grid-template-columns: 108px minmax(0, 1fr); }
    .stat-grid { grid-template-columns: 1fr; gap: 10px; }
    .stat-card { min-height: 122px; align-items: start; padding: 18px; border-radius: 17px; }
    .stat-card .stat-value { font-size: 26px; }
    .dashboard-page .stat-card { grid-template-columns: 40px minmax(0, 1fr) auto; column-gap: 12px; }
    .stat-card .stat-icon { width: 40px; height: 40px; border-radius: 12px; }
    .stat-meta { min-height: 24px; padding: 4px 7px; }
    .stat-track { margin-top: 15px; }
    .card { padding: 18px; border-radius: 16px; }
    .card-title { align-items: flex-start; font-size: 11px; }
    .table-wrap { margin-inline: -3px; }
    table.data-table { min-width: 680px; }
    table.data-table th, table.data-table td { padding: 11px; }
    .btn { min-height: 41px; }
    .page-header-row > .btn { width: 100%; }
    .detail-grid { grid-template-columns: 1fr; }
    .detail-grid dt { padding: 13px 0 2px; border-top: 1px solid #edf2f6; }
    .detail-grid dt:first-child { border-top: 0; }
    .detail-grid dd { padding: 0 0 12px; }
    .workflow-progress { padding: 20px 6px; }
    .workflow-step { min-width: 88px; }
    .form-row, .suml-row { grid-template-columns: 1fr; }
    .radio-group { flex-direction: column; }
    .flex-between { flex-direction: column-reverse; align-items: stretch; }
    .flex-between .btn { width: 100%; }
    .suml-step-indicator { padding: 16px 6px; }
    .suml-step-label { font-size: 7px; }
    .suml-selector-row .suml-field { min-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .dashboard-welcome::after,
    .dashboard-welcome-media,
    .dashboard-live-dot,
    .stat-track span,
    .dashboard-donut,
    .dashboard-donut::after,
    .dashboard-donut-center,
    .dashboard-donut-segment,
    .dashboard-donut-tooltip,
    .dashboard-bar-track span { animation: none !important; }
    .dashboard-donut::after,
    .dashboard-donut-center,
    .dashboard-donut-segment,
    .dashboard-donut-tooltip { transition: none !important; }
    .topbar-profile-dropdown { transform: none; transition: opacity 120ms ease, visibility 0s linear 120ms; }
    .topbar-profile-menu.is-open .topbar-profile-dropdown { transform: none; transition-delay: 0s; }
    .profile-chevron { transition: color 120ms ease; }
    .topbar-profile-menu.is-open .profile-chevron { transform: none; }
    .stat-track span,
    .dashboard-bar-track span { transform: scaleX(1); }
    .dashboard-section-line { transform: scaleX(1); }
    .dashboard-page .stat-card,
    .dashboard-page .stat-card::after,
    .dashboard-page .stat-card .stat-icon,
    .dashboard-page .stat-meta { transform: none !important; }
    .dashboard-page .stat-card::after { animation: none !important; will-change: auto; }
}
