@font-face {
    font-family: "Inter";
    src: url("../fonts/Inter-Variable.woff2") format("woff2-variations"), url("../fonts/Inter-Variable.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-deep: #1c2450;
    --bg-base: #252f60;
    --bg-panel: #2e3a72;
    --bg-panel-raised: #384685;
    --bg-hover: #3f4d93;
    --accent: #eeae43;
    --accent-strong: #f6c46b;
    --accent-dim: #c98f30;
    --accent-ink: #2a1a02;
    --text-primary: #f6f4ee;
    --text-secondary: #b9c1e8;
    --text-tertiary: #838cba;
    --border-soft: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.18);
    --success: #4fbf8b;
    --success-bg: rgba(79, 191, 139, 0.16);
    --danger: #e56273;
    --danger-bg: rgba(229, 98, 115, 0.16);
    --warning: #e8944a;
    --warning-bg: rgba(232, 148, 74, 0.16);
    --info: #5ea3e0;
    --info-bg: rgba(94, 163, 224, 0.16);
    --neutral: #7a83b0;
    --neutral-bg: rgba(122, 131, 176, 0.18);
    --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, Menlo, monospace;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --shadow-soft: 0 8px 24px rgba(10, 14, 40, 0.35);
    --shadow-lift: 0 16px 40px rgba(10, 14, 40, 0.45);
    --sidebar-w: 252px;
    --sidebar-w-collapsed: 76px;
    --topbar-h: 68px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "cv11", "ss01", "tnum" 0;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

p {
    margin: 0;
}

button {
    font-family: inherit;
    color: inherit;
}

input,
select,
button {
    font-size: inherit;
}

a {
    color: inherit;
}

svg.icon {
    width: 1.15em;
    height: 1.15em;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

:focus {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -48px;
    background: var(--accent);
    color: var(--accent-ink);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    z-index: 500;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 12px;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

.eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}

.tabular {
    font-variant-numeric: tabular-nums;
    font-family: var(--font-mono);
}

body.login-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#login-view {
    flex: 1;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
}

.error-view {
    grid-template-columns: 1fr;
}

.error-panel {
    text-align: center;
}

.error-code {
    font-family: var(--font-mono);
    font-size: 68px;
    font-weight: 800;
    line-height: 1;
    color: var(--accent);
    margin: 0 0 4px;
    letter-spacing: -0.02em;
}

.error-icon-wrap {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--warning-bg);
    color: var(--warning);
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-icon-wrap svg {
    width: 30px;
    height: 30px;
}

.error-panel h2 {
    margin-bottom: 8px;
}

.error-detail {
    margin-top: 18px;
    text-align: left;
    background: var(--bg-panel);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--text-secondary);
    word-break: break-word;
    white-space: pre-wrap;
    max-height: 320px;
    overflow-y: auto;
}

.error-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 26px;
}

.error-actions .btn {
    width: auto;
    padding: 11px 22px;
}

.login-page-footer {
    flex-shrink: 0;
    padding: 14px 24px;
    text-align: center;
    background: #d98d0f;
    color: #2a1a02;
    font-size: 11.5px;
    line-height: 1.5;
}

.login-page-footer p {
    margin: 0;
}

.login-page-footer-version {
    margin-top: 2px;
    font-family: var(--font-mono);
    opacity: 0.7;
}

@media (max-width: 860px) {
    #login-view {
        grid-template-columns: 1fr;
    }

    .login-visual {
        display: none;
    }
}

.login-visual {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 15%, rgba(238, 174, 67, 0.28), transparent 55%),
        radial-gradient(circle at 85% 80%, rgba(238, 174, 67, 0.14), transparent 50%),
        linear-gradient(155deg, #1a2149 0%, #232c5c 45%, #2c3874 100%);
    padding: 56px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.login-visual::before {
    content: "";
    position: absolute;
    inset: -20% -20% auto auto;
    width: 640px;
    height: 640px;
    border-radius: 50%;
    border: 1px solid rgba(238, 174, 67, 0.14);
    box-shadow: 0 0 0 60px rgba(238, 174, 67, 0.03), 0 0 0 120px rgba(238, 174, 67, 0.02);
}

.radar {
    position: absolute;
    right: -120px;
    bottom: -120px;
    width: 460px;
    height: 460px;
    opacity: 0.5;
}

.radar circle {
    fill: none;
    stroke: rgba(238, 174, 67, 0.35);
    stroke-width: 1;
}

.radar .sweep {
    transform-origin: 230px 230px;
    animation: sweep 6s linear infinite;
}

@keyframes sweep {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 2;
}

.brand-mark {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-md);
    background: linear-gradient(145deg, var(--accent), var(--accent-dim));
    color: var(--accent-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 17px;
    letter-spacing: -0.02em;
    box-shadow: var(--shadow-soft);
    flex-shrink: 0;
}

.brand-logo {
    width: 46px;
    height: 46px;
    object-fit: contain;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.field-recaptcha {
    margin-bottom: 18px;
}

.brand-name {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.brand-sub {
    font-size: 12px;
    color: var(--text-tertiary);
    letter-spacing: 0.04em;
}

.login-copy {
    position: relative;
    z-index: 2;
    max-width: 440px;
    margin: auto 0;
}

.login-copy h1 {
    font-size: 34px;
    line-height: 1.15;
    margin-bottom: 16px;
}

.login-copy p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

.login-stats {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 32px;
}

.login-stats div strong {
    display: block;
    font-family: var(--font-mono);
    font-size: 22px;
    font-weight: 700;
}

.login-stats div span {
    font-size: 12px;
    color: var(--text-tertiary);
}

.login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 28px;
}

.login-form-wrap {
    width: 100%;
    max-width: 380px;
}

.login-form-wrap .brand-mobile {
    display: none;
    margin-bottom: 28px;
}

@media (max-width: 860px) {
    .login-form-wrap .brand-mobile {
        display: flex;
    }
}

.login-form-wrap h2 {
    font-size: 24px;
    margin-bottom: 6px;
}

.login-form-wrap>p.lead {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 28px;
}

.field {
    margin-bottom: 18px;
}

.field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 7px;
    color: var(--text-secondary);
}

.input-shell {
    position: relative;
    display: flex;
    align-items: center;
}

.input-shell input,
.input-shell select,
.input-shell textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-strong);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.input-shell input::placeholder,
.input-shell textarea::placeholder {
    color: var(--text-tertiary);
}

.input-shell input:focus,
.input-shell select:focus,
.input-shell textarea:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
}

.field.has-error .input-shell input,
.field.has-error .input-shell select,
.field.has-error .input-shell textarea {
    border-color: var(--danger);
}

.input-shell input[readonly] {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-secondary);
}

.input-shell:has(> .btn) {
    gap: 8px;
}

.input-shell>.btn {
    flex: none;
    white-space: nowrap;
}

.toggle-visibility {
    position: absolute;
    right: 6px;
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    display: flex;
}

.toggle-visibility:hover {
    color: var(--text-primary);
}

.field-error {
    display: none;
    align-items: center;
    gap: 6px;
    color: var(--danger);
    font-size: 12.5px;
    margin-top: 7px;
}

.field.has-error .field-error {
    display: flex;
}

.field-error.is-visible {
    display: flex;
}

.svg-sprite {
    display: none;
}

.field-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    font-size: 13.5px;
}

.checkbox-line {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    cursor: pointer;
}

.checkbox-line input {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
}

.modal.modal-lg {
    max-width: 620px;
}

.modal.modal-xl {
    max-width: 1140px;
}

.permission-toolbar {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.permission-groups {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: 320px;
    overflow-y: auto;
    padding: 12px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
}

.permission-group-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-tertiary);
    margin-bottom: 8px;
}

.permission-group-items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 12px;
}

.form-section-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
    margin: 18px 0 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-soft);
}

.form-section-title:first-child {
    margin-top: 0;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
}

@media (max-width: 640px) {
    .form-grid-2 {
        grid-template-columns: 1fr;
    }
}

.detail-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--border-soft);
    padding: 0 20px;
    overflow-x: auto;
}

.detail-tab {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    padding: 12px 14px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.detail-tab.is-active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.detail-pane {
    padding: 20px;
}

.detail-pane[hidden] {
    display: none;
}

.profil-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 24px;
}

@media (max-width: 640px) {
    .profil-grid {
        grid-template-columns: 1fr;
    }
}

.profil-item .label {
    display: block;
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 3px;
}

.profil-item .value {
    font-size: 14px;
    color: var(--text-primary);
}

.badge.tone-danger {
    background: var(--danger-bg);
    color: var(--danger);
}

.badge.tone-warning {
    background: var(--warning-bg);
    color: var(--warning);
}

.link-amber {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.link-amber:hover {
    text-decoration: underline;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    padding: 11px 18px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: var(--accent);
    color: var(--accent-ink);
    width: 100%;
}

.btn-primary:hover {
    background: var(--accent-strong);
}

.btn-login {
    background: #d98d0f;
    color: #2a1a02;
}

.btn-login:hover {
    background: #c17f0d;
}

.btn-ghost {
    background: transparent;
    border-color: var(--border-strong);
    color: var(--text-primary);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.06);
}

.btn-danger {
    background: var(--danger);
    color: #2a0d10;
}

.btn-danger:hover {
    filter: brightness(1.08);
}

.btn-sm {
    padding: 7px 12px;
    font-size: 13px;
}

.login-footer-links {
    margin-top: 22px;
    text-align: center;
    font-size: 13.5px;
    color: var(--text-secondary);
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0;
    color: var(--text-tertiary);
    font-size: 13px;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-soft);
}

.btn-google {
    width: 100%;
    background: #fff;
    border-color: var(--border-strong);
    color: #1f1f1f;
}

.btn-google:hover {
    background: #f5f5f5;
}

.btn-google .icon {
    width: 18px;
    height: 18px;
}

#app-view[hidden],
#login-view[hidden] {
    display: none;
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-w);
    flex-shrink: 0;
    background: var(--bg-deep);
    border-right: 1px solid var(--border-soft);
    display: flex;
    flex-direction: column;
    transition: width 0.2s ease;
    position: relative;
    z-index: 40;
}

.app-shell.sidebar-collapsed .sidebar {
    width: var(--sidebar-w-collapsed);
}

.sidebar-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 18px;
    border-bottom: 1px solid var(--border-soft);
    min-height: var(--topbar-h);
}

.sidebar-collapsed .sidebar-head {
    padding: 16px 0;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.sidebar-collapse-btn {
    margin-left: auto;
    background: none;
    border: 1px solid var(--border-soft);
    color: var(--text-secondary);
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.sidebar-collapse-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}

.sidebar-collapsed .sidebar-collapse-btn {
    margin-left: 0;
}

.sidebar-collapsed .sidebar-head .brand-name,
.sidebar-collapsed .sidebar-head .brand-sub {
    display: none;
}

.sidebar-collapse-btn svg {
    transition: transform 0.2s ease;
}

.sidebar-collapsed .sidebar-collapse-btn svg {
    transform: rotate(180deg);
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 16px 12px;
}

.nav-section-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    padding: 12px 12px 8px;
}

.sidebar-collapsed .nav-section-title {
    display: none;
}

.nav-list {
    list-style: none;
    margin: 0 0 6px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-secondary);
    position: relative;
    border: 1px solid transparent;
}

.sidebar-collapsed .nav-link {
    justify-content: center;
    padding: 12px;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.nav-link.is-active {
    background: rgba(238, 174, 67, 0.12);
    color: var(--accent-strong);
    border-color: rgba(238, 174, 67, 0.25);
}

.nav-link.is-active::before {
    content: "";
    position: absolute;
    left: -12px;
    top: 8px;
    bottom: 8px;
    width: 3px;
    border-radius: 3px;
    background: var(--accent);
}

.sidebar-collapsed .nav-link.is-active::before {
    left: -12px;
}

.nav-label {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.sidebar-collapsed .nav-label,
.sidebar-collapsed .nav-badge {
    display: none;
}

.nav-badge {
    background: var(--accent);
    color: var(--accent-ink);
    font-size: 11px;
    font-weight: 800;
    padding: 1px 7px;
    border-radius: 999px;
    font-family: var(--font-mono);
}

.sidebar-foot {
    border-top: 1px solid var(--border-soft);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-collapsed .sidebar-foot {
    flex-direction: column;
    justify-content: center;
    padding: 14px 8px;
    gap: 8px;
}

.sidebar-foot-link {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

.avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--accent), var(--accent-dim));
    color: var(--accent-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    flex-shrink: 0;
}

.user-meta {
    min-width: 0;
    flex: 1;
}

.sidebar-collapsed .user-meta {
    display: none;
}

.user-meta strong {
    display: block;
    font-size: 13.5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-meta span {
    display: block;
    font-size: 12px;
    color: var(--text-tertiary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.logout-btn {
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-sm);
    display: flex;
    flex-shrink: 0;
}

.logout-btn:hover {
    color: var(--danger);
    background: rgba(229, 98, 115, 0.1);
}

.sidebar-backdrop {
    display: none;
}

.main-area {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.topbar {
    min-height: var(--topbar-h);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 24px;
    border-bottom: 1px solid var(--border-soft);
    background: var(--bg-deep);
    position: sticky;
    top: 0;
    z-index: 30;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: 1px solid var(--border-soft);
    color: var(--text-primary);
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.search-shell {
    position: relative;
    flex: 1;
    max-width: 420px;
    display: flex;
    align-items: center;
}

.search-shell svg {
    position: absolute;
    left: 13px;
    color: var(--text-tertiary);
    pointer-events: none;
}

.search-shell input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-soft);
    color: var(--text-primary);
    border-radius: 999px;
    padding: 9px 14px 9px 38px;
}

.search-shell input:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
}

.search-shell input::placeholder {
    color: var(--text-tertiary);
}

.topbar-spacer {
    flex: 1;
}

.status-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-soft);
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    position: relative;
}

.status-pill:hover {
    background: rgba(255, 255, 255, 0.08);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 3px var(--success-bg);
    animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.45;
    }
}

.status-pop {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 220px;
    background: var(--bg-panel-raised);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lift);
    padding: 12px;
    display: none;
    z-index: 50;
}

.status-pop.is-open {
    display: block;
}

.status-pop-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 4px;
    font-size: 13px;
}

.status-pop-row span:first-child {
    color: var(--text-secondary);
}

.status-ok {
    color: var(--success);
    font-weight: 700;
    font-size: 12px;
}

.icon-btn {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-soft);
    color: var(--text-primary);
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.09);
}

.icon-btn .dot-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--danger);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    min-width: 16px;
    height: 16px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    border: 2px solid var(--bg-deep);
}

.notif-wrap {
    position: relative;
}

.notif-pop {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 320px;
    background: var(--bg-panel-raised);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lift);
    display: none;
    z-index: 50;
    overflow: hidden;
}

.notif-pop.is-open {
    display: block;
}

.notif-pop-head {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-soft);
    font-weight: 700;
    font-size: 14px;
}

.notif-item {
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-soft);
}

.notif-item:last-child {
    border-bottom: none;
}

.notif-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
    background: var(--accent);
}

.notif-item p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.notif-item strong {
    color: var(--text-primary);
}

.notif-item time {
    display: block;
    font-size: 11.5px;
    color: var(--text-tertiary);
    margin-top: 3px;
}

.content {
    flex: 1;
    padding: 26px 28px 60px;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

.page-head {
    margin-bottom: 24px;
}

.page-head h1 {
    font-size: 25px;
    margin-top: 6px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 22px;
}

@media (max-width: 1080px) {
    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .stat-grid {
        grid-template-columns: 1fr;
    }
}

.card {
    background: var(--bg-panel);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.onboarding-page {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 16px;
}

.onboarding-card {
    width: 100%;
    max-width: 900px;
}

.onboarding-card h3 {
    margin: 20px 0 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-soft);
}

.onboarding-card h3:first-of-type {
    margin-top: 4px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.stat-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-bg, rgba(238, 174, 67, 0.16));
    color: var(--accent);
    flex-shrink: 0;
}

.stat-icon.tone-info {
    background: var(--info-bg);
    color: var(--info);
}

.stat-icon.tone-warning {
    background: var(--warning-bg);
    color: var(--warning);
}

.stat-icon.tone-danger {
    background: var(--danger-bg);
    color: var(--danger);
}

.delta-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
}

.delta-chip.is-positive {
    color: var(--success);
    background: var(--success-bg);
}

.delta-chip.is-negative {
    color: var(--danger);
    background: var(--danger-bg);
}

.delta-chip svg {
    width: 12px;
    height: 12px;
}

.stat-value {
    font-family: var(--font-mono);
    font-size: 30px;
    font-weight: 700;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 13.5px;
}

.charts-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 16px;
    margin-bottom: 22px;
    align-items: stretch;
}

@media (max-width: 980px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
}

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    gap: 12px;
    flex-wrap: wrap;
}

.card-head--spaced {
    margin-top: 26px;
}

.card-head-label {
    margin: 0;
    font-weight: 700;
    color: var(--text-secondary);
    font-size: 13px;
}

.detail-row-repeater {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.detail-row-repeater .input-shell {
    flex: 1;
}

.detail-row-repeater .checkbox-line {
    flex: none;
    white-space: nowrap;
}

.detail-row-repeater .btn-remove-row {
    flex: none;
}

.sub-jenis-list {
    margin: 0;
    padding-left: 16px;
}

.text-muted {
    color: var(--text-tertiary);
}

.empty-row {
    text-align: center;
    color: var(--text-tertiary);
    padding: 32px 16px !important;
}

.detail-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 900px) {
    .detail-columns {
        grid-template-columns: 1fr;
    }
}

.subcard {
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 16px;
}

.subcard h3 {
    font-size: 14.5px;
    margin-bottom: 14px;
}

.form-narrow {
    max-width: 420px;
}

.riwayat-detail {
    max-width: 420px;
    max-height: 220px;
    overflow: auto;
}

.code-block {
    max-width: 420px;
    max-height: 220px;
    overflow: auto;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-family: var(--font-mono);
    font-size: 12px;
    white-space: pre-wrap;
    word-break: break-word;
}

.card-head h3 {
    font-size: 15.5px;
}

.card-head p {
    color: var(--text-tertiary);
    font-size: 12.5px;
    margin-top: 3px;
}

.period-tabs {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    padding: 3px;
}

.period-tabs button {
    border: none;
    background: none;
    color: var(--text-secondary);
    padding: 6px 13px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
}

.period-tabs button.is-active {
    background: var(--accent);
    color: var(--accent-ink);
}

.chart-legend {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 14px;
    font-size: 12.5px;
    color: var(--text-secondary);
}

.legend-swatch {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.legend-swatch i {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    display: inline-block;
}

.bar-chart-svg .grid-line {
    stroke: var(--border-soft);
    stroke-width: 1;
}

.bar-chart-svg .axis-label {
    fill: var(--text-tertiary);
    font-size: 10.5px;
    font-family: var(--font-body);
}

.bar-chart-svg rect.bar-a {
    fill: var(--bg-hover);
    transition: height 0.3s ease, y 0.3s ease;
}

.bar-chart-svg rect.bar-b {
    fill: var(--accent);
    transition: height 0.3s ease, y 0.3s ease;
}

.donut-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.donut-svg-holder {
    position: relative;
    width: 190px;
    height: 190px;
}

.donut-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.donut-center strong {
    font-family: var(--font-mono);
    font-size: 26px;
    font-weight: 700;
}

.donut-center span {
    font-size: 11.5px;
    color: var(--text-tertiary);
}

.donut-svg circle.seg {
    transition: stroke-dasharray 0.3s ease;
}

.donut-legend {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.donut-legend-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.donut-legend-row i {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    flex-shrink: 0;
}

.donut-legend-row .lbl {
    flex: 1;
    color: var(--text-secondary);
}

.donut-legend-row .pct {
    font-family: var(--font-mono);
    color: var(--text-primary);
    font-weight: 700;
}

.table-card {
    padding: 0;
    overflow: hidden;
}

.table-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-soft);
}

.table-toolbar h3 {
    font-size: 16px;
    margin-right: 6px;
}

.toolbar-search {
    position: relative;
    display: flex;
    align-items: center;
}

.toolbar-search svg {
    position: absolute;
    left: 11px;
    color: var(--text-tertiary);
}

.toolbar-search input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-soft);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    padding: 15px 12px 8px 34px;
    width: 50%;
}

.toolbar-search input:focus {
    border-color: var(--accent);
}

select.status-filter {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-soft);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
}

select option {
    background-color: var(--bg-panel-raised);
    color: var(--text-primary);
}

.toolbar-spacer {
    flex: 1;
}

.table-toolbar .btn {
    width: auto;
    flex: 0 0 auto;
    white-space: nowrap;
}

.import-hint {
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: 13.5px;
    line-height: 1.6;
}

.import-hint--tight {
    margin: 6px 0 0;
}

.import-hint--warning {
    color: var(--warning);
}

.matrix-jf-field {
    flex: 1;
    max-width: 420px;
    margin: 0;
}

.pk-filter-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr)) max-content;
    gap: 0 16px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-soft);
}

.pk-filter-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) max-content;
}

.pk-filter-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) max-content;
}

.pk-filter-grid--1 {
    grid-template-columns: minmax(0, 1fr) max-content;
}

.table-toolbar--flush {
    border-top: none;
    padding-top: 0;
}

.filter-inline-container--wrap {
    flex-wrap: wrap;
    gap: 16px;
}

.pk-filter-grid .field {
    margin-bottom: 0;
}

.pc-reset-field {
    justify-content: flex-end;
    display: flex;
    align-items: flex-end;
}

.pc-reset-btn {
    margin-bottom: 2px;
}

@media (max-width: 1100px) {
    .pk-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 16px;
    }
}

@media (max-width: 560px) {
    .pk-filter-grid {
        grid-template-columns: 1fr;
    }
}

.matrix-summary {
    display: flex;
    gap: 10px;
    padding: 0 20px 16px;
    flex-wrap: wrap;
}

.matrix-scroll {
    max-height: 72vh;
    overflow-y: auto;
}

.matrix-scroll table {
    min-width: 100%;
}

.matrix-scroll thead th {
    position: sticky;
    top: 0;
    background: var(--bg-panel-raised, var(--bg-panel));
    z-index: 5;
}

.matrix-sticky-col {
    position: sticky;
    left: 0;
    background: var(--bg-panel-raised, var(--bg-panel));
    z-index: 4;
    min-width: 240px;
    max-width: 320px;
}

.matrix-scroll thead th.matrix-sticky-col {
    z-index: 6;
}

.matrix-cell {
    min-width: 180px;
    vertical-align: top;
}

.matrix-cell-empty {
    background: var(--danger-bg);
}

.matrix-pelatihan-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.matrix-pelatihan-item {
    font-size: 12.5px;
    line-height: 1.4;
}

.matrix-pill {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 999px;
    background: var(--accent-bg, rgba(238, 174, 67, 0.16));
    color: var(--accent);
    margin-left: 5px;
    vertical-align: middle;
}

.matrix-row-gap {
    background: rgba(232, 148, 74, 0.06);
}

.matrix-cert-icon {
    width: 11px;
    height: 11px;
    vertical-align: middle;
    color: var(--success);
}

.import-hint .btn {
    margin-top: 10px;
    width: auto;
}

.input-shell input[type="file"] {
    padding: 8px 14px;
}

.table-scroll {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

thead th {
    text-align: left;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-soft);
    white-space: nowrap;
}

th .sort-btn {
    background: none;
    border: none;
    color: inherit;
    font: inherit;
    text-transform: inherit;
    letter-spacing: inherit;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 2px 0;
}

th .sort-btn:hover {
    color: var(--text-primary);
}

th .sort-btn svg {
    width: 13px;
    height: 13px;
    opacity: 0.5;
}

th[aria-sort="ascending"] .sort-btn svg,
th[aria-sort="descending"] .sort-btn svg {
    opacity: 1;
    color: var(--accent);
}

tbody td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--border-soft);
    font-size: 13.5px;
    vertical-align: middle;
}

tbody tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}

.cell-user strong {
    display: block;
    font-size: 13.5px;
}

.cell-user span {
    display: block;
    color: var(--text-tertiary);
    font-size: 12px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.badge.tone-success {
    color: var(--success);
    background: var(--success-bg);
}

.badge.tone-warning {
    color: var(--warning);
    background: var(--warning-bg);
}

.badge.tone-danger {
    color: var(--danger);
    background: var(--danger-bg);
}

.badge.tone-neutral {
    color: var(--neutral);
    background: var(--neutral-bg);
}

.row-actions {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
}

.row-actions button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-soft);
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.row-actions button:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

.row-actions button.delete-btn:hover {
    color: var(--danger);
    background: var(--danger-bg);
}

.row-actions svg {
    width: 15px;
    height: 15px;
}

/* Text-labelled action buttons (e.g. "Kelola Program") shouldn't be squashed
   into the 32x32 icon-button box the bare `.row-actions button` rule above
   targets. */
.row-actions .btn {
    width: auto;
    height: auto;
    white-space: nowrap;
}

.empty-state {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 64px 20px;
    color: var(--text-secondary);
}

.empty-state.is-visible {
    display: flex;
}

.empty-state svg {
    width: 46px;
    height: 46px;
    color: var(--text-tertiary);
    margin-bottom: 16px;
}

.empty-state h4 {
    font-size: 16px;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.empty-state p {
    font-size: 13.5px;
    max-width: 280px;
}

.table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    flex-wrap: wrap;
    gap: 12px;
    border-top: 1px solid var(--border-soft);
}

.table-footer.is-hidden {
    display: none;
}

.result-count {
    font-size: 12.5px;
    color: var(--text-tertiary);
}

.pagination {
    display: flex;
    gap: 6px;
}

.pagination button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-soft);
    color: var(--text-secondary);
    min-width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    padding: 0 8px;
}

.pagination button:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.pagination button.is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-ink);
}

.pagination button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    color: var(--text-tertiary);
    font-size: 13px;
}

.length-control {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--text-tertiary);
    white-space: nowrap;
}

.length-control .length-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-soft);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    height: 32px;
    padding: 0 8px;
    font-size: 13px;
    font-weight: 600;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 13, 36, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 20px;
}

.modal-backdrop[hidden] {
    display: none;
}

.modal {
    background: var(--bg-panel-raised);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 420px;
    max-height: calc(100vh - 40px);
    box-shadow: var(--shadow-lift);
    display: flex;
    flex-direction: column;
}

.modal form {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-soft);
    flex: 0 0 auto;
}

.modal__header h2 {
    font-size: 16.5px;
}

.modal__body {
    padding: 20px;
    font-size: 13.5px;
    color: var(--text-secondary);
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
}

.detail-grid {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 10px 12px;
}

.detail-grid dt {
    color: var(--text-tertiary);
}

.detail-grid dd {
    margin: 0;
    color: var(--text-primary);
    font-weight: 600;
}

.modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid var(--border-soft);
    flex: 0 0 auto;
}

#toastRegion {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 300;
    width: 320px;
    max-width: calc(100vw - 32px);
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: var(--bg-panel-raised);
    border: 1px solid var(--border-strong);
    border-left: 3px solid var(--info);
    border-radius: var(--radius-md);
    padding: 13px 14px;
    box-shadow: var(--shadow-lift);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.toast--success {
    border-left-color: var(--success);
}

.toast--error {
    border-left-color: var(--danger);
}

.toast--info {
    border-left-color: var(--info);
}

.toast svg {
    margin-top: 1px;
    flex-shrink: 0;
}

.toast--success svg {
    color: var(--success);
}

.toast--error svg {
    color: var(--danger);
}

.toast--info svg {
    color: var(--info);
}

.toast__msg {
    flex: 1;
    font-size: 13px;
    color: var(--text-primary);
}

.toast__close {
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 2px;
    flex-shrink: 0;
}

.toast__close:hover {
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        width: 264px;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        z-index: 120;
    }

    .app-shell.mobile-nav-open .sidebar {
        transform: translateX(0);
    }

    .app-shell.sidebar-collapsed .sidebar {
        width: 264px;
    }

    .sidebar-collapsed .sidebar-head,
    .sidebar-collapsed .sidebar-foot {
        flex-direction: row;
    }

    .sidebar-collapsed .nav-label,
    .sidebar-collapsed .nav-badge,
    .sidebar-collapsed .user-meta,
    .sidebar-collapsed .logout-btn,
    .sidebar-collapsed .sidebar-head .brand-name,
    .sidebar-collapsed .sidebar-head .brand-sub {
        display: revert;
    }

    .sidebar-collapse-btn {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(8, 10, 28, 0.55);
        z-index: 110;
    }

    .app-shell.mobile-nav-open .sidebar-backdrop {
        display: block;
    }

    .search-shell {
        max-width: none;
        order: 4;
        flex-basis: 100%;
    }

    .topbar {
        flex-wrap: wrap;
        row-gap: 12px;
        padding: 12px 16px;
    }

    .content {
        padding: 20px 16px 48px;
    }

    .charts-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Matriks Pelatihan --- */
.matrix-scroll {
    overflow-x: auto;
    padding-bottom: 8px;
}

.matrix-scroll table {
    min-width: 1200px;
    border-collapse: separate;
    border-spacing: 0;
}

.matrix-scroll th,
.matrix-scroll td {
    padding: 12px 16px;
    vertical-align: top;
}

.matrix-sticky-col {
    position: sticky;
    left: 0;
    background: var(--surface-2);
    z-index: 10;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    font-weight: 600;
    min-width: 180px;
}

.matrix-row-gap td {
    opacity: 0.6;
}

.matrix-cell {
    min-width: 160px;
}

.matrix-cell-empty {
    text-align: center;
    color: var(--text-tertiary);
    font-style: italic;
}

.matrix-pelatihan-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.matrix-pelatihan-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-soft);
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    line-height: 1.4;
}

.matrix-pill {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(234, 179, 8, 0.2);
    color: #eab308;
    border: 1px solid rgba(234, 179, 8, 0.5);
    font-size: 11px;
    font-weight: 600;
    margin-left: 6px;
    vertical-align: middle;
}

.matrix-cert-icon {
    color: var(--success);
    width: 14px;
    height: 14px;
    vertical-align: middle;
    margin-left: 4px;
}

.matrix-jf-field {
    min-width: 300px;
    max-width: 600px;
}

.matrix-summary {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    padding: 0 20px;
}

.text-muted {
    color: var(--text-tertiary) !important;
    font-size: 0.85em;
    display: block;
    margin-top: 4px;
}

.lp-tabs {
    display: flex;
    gap: 4px;
    padding: 0 20px;
    border-bottom: 1px solid var(--border-subtle, var(--surface-3));
}

.lp-tab {
    background: none;
    border: none;
    padding: 12px 16px;
    font-weight: 600;
    color: var(--text-tertiary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.lp-tab.is-active {
    color: var(--text-primary);
    border-bottom-color: var(--accent, #2563eb);
}

.lp-panel {
    display: none;
}

.lp-panel.is-active {
    display: block;
}

.lp-cell {
    min-width: 160px;
}

.lp-cell-detail {
    font-size: 0.8em;
    color: var(--text-tertiary);
    display: block;
    margin-top: 2px;
}

.lp-actions-col {
    min-width: 180px;
}

/* Inline Filter Styles */
.filter-inline-card {
    margin-bottom: 24px;
    padding: 16px 20px;
}

.filter-inline-container {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 16px;
    align-items: center;
}

.filter-inline-search {
    margin: 0;
    min-width: 0;
}

.filter-inline-search-input {
    width: 100% !important;
}

.filter-inline-select {
    width: 200px;
    margin: 0;
    flex-shrink: 0;
}

.filter-inline-select-wrapper {
    width: 100%;
    min-width: 200px;
}

.filter-inline-select-wrapper .select2-container,
.filter-inline-select-wrapper select {
    width: 100% !important;
}

.page-actions {
    display: flex;
    gap: 8px;
}

/* ── Dashboard admin ─────────────────────────────────────────────────────── */

.stat-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1080px) {
    .stat-grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .stat-grid--3 {
        grid-template-columns: 1fr;
    }
}

.stat-hint {
    color: var(--text-tertiary);
    font-size: 12.5px;
}

.dash-filter-card {
    margin-bottom: 22px;
    padding: 16px 20px;
}

.dash-filters {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.dash-filter {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 220px;
    flex: 0 1 300px;
}

.dash-filter span {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-secondary);
}

.dash-filter select {
    background: var(--bg-panel-raised);
    color: var(--text-primary);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    padding: 9px 12px;
    font-family: var(--font-body);
    font-size: 14px;
}

.dash-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 22px;
    align-items: stretch;
}

@media (max-width: 980px) {
    .dash-grid {
        grid-template-columns: 1fr;
    }
}

.dash-span-2 {
    grid-column: span 2;
}

@media (max-width: 980px) {
    .dash-span-2 {
        grid-column: auto;
    }
}

.dash-chart svg {
    display: block;
    width: 100%;
    height: auto;
}

.dash-axis {
    fill: var(--text-tertiary);
    font-family: var(--font-body);
    font-size: 11.5px;
}

.dash-val {
    fill: var(--text-primary);
    font-family: var(--font-body);
    font-size: 11.5px;
    font-weight: 600;
}

.dash-tooltip {
    position: fixed;
    z-index: 200;
    max-width: 320px;
    background: var(--bg-deep);
    color: var(--text-primary);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    padding: 7px 11px;
    font-size: 12.5px;
    pointer-events: none;
    box-shadow: var(--shadow-soft);
}

.page-head--section {
    margin-top: 8px;
}

.page-head--section h2 {
    font-size: 20px;
    margin-top: 6px;
}