@import 'tailwindcss';

@source '../../vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php';
@source '../../storage/framework/views/*.php';
@source '../**/*.blade.php';
@source '../**/*.js';

@theme {
    --font-sans: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
        'Noto Color Emoji';
    --color-brand-50: #eff6ff;
    --color-brand-100: #dbeafe;
    --color-brand-500: #3b82f6;
    --color-brand-600: #2563eb;
    --color-brand-700: #1d4ed8;
    --color-brand-800: #1e40af;
    --color-brand-900: #173b67;
    --color-accent-100: #fff7df;
    --color-accent-500: #d5a63c;
}

@layer base {
    body {
        @apply bg-slate-50 text-slate-900 antialiased;
    }

    a, a:hover, a:focus, a:active, .nav-link, .sidebar-nav-item {
    text-decoration: none !important;
}

    ::selection {
        background: #dbeafe;
        color: #173b67;
    }
}

.app-sidebar {
    position: fixed;
    border-right: 1px solid #e8edf4;
    background: #fff;
    color: #475569;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
    box-shadow: 5px 0 24px rgb(25 55 95 / 0.045);
}

.app-sidebar::before {
    display: none;
}

.pkbm-master-page .pkbm-kbm-menu-link,
.pkbm-master-page .pkbm-kbm-menu-link:hover {
    text-decoration: none;
}

.app-sidebar .sidebar-brand {
    min-height: 4.65rem;
    padding: 0.55rem 0.75rem;
}

.app-sidebar .sidebar-brand__link {
    border: 1px solid #dbeafe;
    background-color: #eff6ff;
    text-decoration: none;
}

.app-sidebar .sidebar-brand__link:hover {
    border-color: #bfdbfe;
    background-color: #eff6ff;
}

.app-sidebar .sidebar-brand__copy > span:first-child,
.app-sidebar .sidebar-brand__copy > span:last-child {
    color: #173b67;
}

.app-sidebar .sidebar-brand__logo {
    border: 1px solid #e7edf5;
    border-radius: 0.75rem;
    box-shadow: 0 3px 9px rgb(31 90 164 / 0.06);
}

.app-sidebar .sidebar-brand__copy > span:first-child {
    color: #173b67;
}

.app-sidebar .sidebar-brand__copy > span:last-child {
    margin-top: 0.12rem;
    color: #8794a7;
    font-size: 0.57rem;
    letter-spacing: 0.005em;
}

.app-sidebar .sidebar-heading {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 1.15rem 0 0.42rem;
    padding: 0 0.65rem;
    color: #8997aa;
    font-size: 0.59rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    line-height: 1rem;
    text-transform: uppercase;
}

.app-sidebar .sidebar-heading::before {
    width: 0.35rem;
    height: 0.35rem;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #8ab8f5;
    box-shadow: 0 0 0 3px #e8f1ff;
    content: '';
}

.app-sidebar .sidebar-heading--main {
    margin-top: 0.2rem;
}

.app-sidebar .sidebar-nav-item {
    display: flex;
    width: 100%;
    min-height: 2.45rem;
    align-items: center;
    gap: 0.65rem;
    margin: 0.1rem 0;
    padding: 0.42rem 0.7rem;
    border: 0;
    border-radius: 0.52rem;
    background: transparent;
    color: #5b6675;
    font-size: 0.77rem;
    font-weight: 500;
    line-height: 1.2rem;
    text-align: left;
    text-decoration: none;
    transition: background-color 150ms ease, color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.app-sidebar .sidebar-nav-item .nav-label {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    color: inherit;
    visibility: visible;
}

.app-sidebar .sidebar-nav-item > i:first-child {
    display: inline-grid;
    width: 1.7rem;
    height: 1.7rem;
    flex: 0 0 1.7rem;
    place-items: center;
    border-radius: 0.48rem;
    background: #eef3f9;
    color: #718198;
    font-size: 0.82rem;
    transition: background-color 150ms ease, color 150ms ease;
}

.app-sidebar .sidebar-nav-item:hover {
    background: #edf4ff;
    color: #1769d2;
    transform: translateX(2px);
}

.app-sidebar .sidebar-nav-item:hover > i:first-child {
    background: #fff;
    color: #1769d2;
}

.app-sidebar .sidebar-nav-item--active {
    position: relative;
    background: linear-gradient(105deg, #1769d2 0%, #237ce4 100%);
    box-shadow: 0 5px 12px rgb(23 105 210 / 0.22), inset 0 1px 0 rgb(255 255 255 / 0.16);
    color: #fff;
    font-weight: 600;
}

.app-sidebar a.sidebar-nav-item--active::after {
    width: 0.35rem;
    height: 0.35rem;
    margin-left: auto;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 3px rgb(255 255 255 / 0.17);
    content: '';
}

.app-sidebar .sidebar-nav-item--active > i:first-child {
    border: 1px solid rgb(255 255 255 / 0.2);
    background: rgb(255 255 255 / 0.16);
    color: #fff;
}

.app-sidebar .sidebar-nav-item--active:hover {
    background: #125bb9;
    color: #fff;
    transform: translateX(1px);
}

.app-sidebar .sidebar-group[open] > summary {
    background: #eaf2ff;
    color: #1769d2;
    font-weight: 600;
}

.app-sidebar .sidebar-group[open] > summary > i:first-child {
    background: #fff;
    color: #1769d2;
}

.app-sidebar .sidebar-nav-item--disabled {
    cursor: default;
    color: #6f7b8b;
    opacity: 0.78;
    pointer-events: none;
}

.app-sidebar .sidebar-group > summary {
    cursor: pointer;
    list-style: none;
}

.app-sidebar .sidebar-group > summary::-webkit-details-marker {
    display: none;
}

.app-sidebar .sidebar-chevron,
.app-sidebar .sidebar-group__chevron {
    margin-left: auto;
    color: #98a5b6;
    font-size: 0.62rem;
    transition: transform 160ms ease;
}

.app-sidebar .sidebar-group[open] .sidebar-chevron,
.app-sidebar .sidebar-group[open] .sidebar-group__chevron {
    transform: rotate(180deg);
}

.app-sidebar .sidebar-submenu {
    position: relative;
    margin: 0.12rem 0 0.5rem 1.45rem;
    padding: 0.1rem 0 0.1rem 0.85rem;
    border-left: 1px solid #d7e3f2;
}

.app-sidebar .sidebar-submenu a {
    display: flex;
    min-height: 2rem;
    align-items: center;
    gap: 0.55rem;
    padding: 0.35rem 0.55rem;
    border-radius: 0.4rem;
    color: #687587;
    font-size: 0.72rem;
    text-decoration: none;
    transition: background-color 140ms ease, color 140ms ease;
}

.app-sidebar .sidebar-submenu a:hover {
    background: #edf4ff;
    color: #1769d2;
}

.app-sidebar .sidebar-submenu a.sidebar-submenu__link--active {
    background: #edf4ff;
    color: #1769d2;
    font-weight: 700;
}

.app-sidebar .sidebar-submenu a.sidebar-submenu__link--active > i {
    color: #1769d2;
}

.app-sidebar .sidebar-submenu a.sidebar-submenu__link--danger {
    color: #b42318;
}

.app-sidebar .sidebar-submenu a.sidebar-submenu__link--danger > i {
    color: #dc2626;
}

.app-sidebar .sidebar-submenu a.sidebar-submenu__link--danger:hover,
.app-sidebar .sidebar-submenu a.sidebar-submenu__link--danger.sidebar-submenu__link--active {
    background: #fff1f0;
    color: #b42318;
}

.app-sidebar .sidebar-submenu a.sidebar-submenu__link--danger.sidebar-submenu__link--active > i {
    color: #b42318;
}

.app-sidebar .sidebar-submenu a[aria-disabled='true'] {
    cursor: default;
    pointer-events: none;
}

.app-sidebar .sidebar-submenu a > i {
    width: 1rem;
    color: #91a0b4;
    text-align: center;
}

.app-sidebar .nav-label {
    color: #5b6675;
}

.app-sidebar > div:first-child .nav-label {
    color: #173b67;
}

.app-sidebar .sidebar-footer {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0.55rem 0.75rem 0.75rem;
    border: 1px solid #e2eaf5;
    border-radius: 0.7rem;
    background: linear-gradient(120deg, #fff, #f3f7fd);
    padding: 0.65rem 0.7rem;
    box-shadow: 0 2px 6px rgb(15 45 80 / 0.035);
}

.app-sidebar .sidebar-footer__icon {
    display: grid;
    width: 1.9rem;
    height: 1.9rem;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 0.55rem;
    background: #eaf2ff;
    color: #1769d2;
    font-size: 0.82rem;
}

.app-sidebar .sidebar-footer__copy {
    display: block;
    min-width: 0;
}

.app-sidebar .sidebar-footer__brand {
    display: block;
    overflow: hidden;
    color: #173b67;
    font-size: 0.85rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-sidebar .sidebar-footer__label,
.app-sidebar .sidebar-footer__value {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-sidebar .sidebar-footer__label {
    color: #91a0b2;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.app-sidebar .sidebar-footer__value {
    margin-top: 0.1rem;
    color: #24466f;
    font-size: 0.68rem;
    font-weight: 700;
}

body {
    font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
}

.public-spmb {
    --sp-brand: #1769d2;
    --sp-brand-deep: #103c70;
    --sp-border: #e4eaf2;
    --sp-muted: #64748b;
    font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
}

.public-spmb__hero {
    background:
        radial-gradient(ellipse at 88% 18%, rgb(91 192 255 / 0.22), transparent 27%),
        linear-gradient(112deg, #176fe2 0%, #1059b6 58%, #0c478f 100%);
}

.tracer-public-form {
    font-size: 0.875rem;
}

.tracer-public-form .sp-card {
    font-size: 0.78rem;
}

.tracer-public-form .sp-card-header {
    padding: 0.85rem 1.1rem;
}

.tracer-public-form .sp-section-title,
.tracer-public-form fieldset[data-status-panel] legend {
    color: #103c70;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.35;
}

.tracer-public-form .sp-form-label,
.tracer-public-form label.sp-form-label {
    display: block;
    margin-bottom: 0.35rem;
    color: #334155;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.4;
    visibility: visible;
}

.tracer-public-form .sp-form-control {
    display: block;
    width: 100%;
    min-height: 2.7rem;
    border: 1px solid #c5d2e2;
    border-radius: 0.7rem;
    background-color: #fff;
    padding: 0.625rem 0.75rem;
    color: #0f172a;
    font-size: 0.82rem;
    box-shadow: inset 0 1px 2px rgb(23 45 80 / 0.035);
}

.tracer-public-form .sp-form-control:focus {
    border-color: #5794e8;
    outline: none;
    box-shadow: 0 0 0 3px rgb(23 105 210 / 0.13);
}

.tracer-public-form section.sp-card > fieldset[data-status-panel] {
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    min-width: 0;
    padding: 1rem;
}

.tracer-public-form section.sp-card > fieldset[data-status-panel] legend {
    float: none;
    width: auto;
    margin: 0 0 0.25rem;
    border: 1px solid #dbeafe;
    border-radius: 0.5rem;
    background: #eff6ff;
    padding: 0.35rem 0.65rem;
}

.tracer-public-form section.sp-card > fieldset[data-status-panel][hidden] {
    display: none !important;
}

.tracer-public-form section.sp-card > fieldset[data-status-panel]:not([hidden]) {
    display: block;
}

#workspace-shell {
    --sp-brand: #1769d2;
    --sp-brand-deep: #103c70;
    --sp-accent: #d5a63c;
    --sp-border: #e4eaf2;
    --sp-muted: #64748b;
}

.app-main {
    transition: margin-left 300ms ease;
}

.app-header .app-sidebar-toggle {
    border: 1px solid #dbeafe;
    border-radius: 9999px;
    background: linear-gradient(145deg, #fff 0%, #eff6ff 100%);
    color: #1769d2;
    box-shadow: 0 2px 6px rgb(23 105 210 / 0.08), inset 0 1px 0 rgb(255 255 255 / 0.9);
    transition: border-color 150ms ease, background 150ms ease, color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.app-header .app-sidebar-toggle:hover {
    transform: translateY(-1px);
    border-color: #bfdbfe;
    background: linear-gradient(145deg, #eff6ff 0%, #dbeafe 100%);
    color: #1059b6;
    box-shadow: 0 4px 10px rgb(23 105 210 / 0.14);
}

.app-header .app-sidebar-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgb(59 130 246 / 0.16), 0 2px 6px rgb(23 105 210 / 0.08);
}

.app-header .app-sidebar-toggle:active {
    transform: translateY(0);
}

.app-content--hero {
    position: relative;
    isolation: isolate;
    padding-top: 1.5rem !important;
}

.app-content--hero::before {
    position: absolute;
    z-index: -1;
    inset: 0 0 auto;
    height: 16rem;
    background:
        radial-gradient(ellipse at 88% 18%, rgb(91 192 255 / 0.22), transparent 27%),
        linear-gradient(112deg, #176fe2 0%, #1059b6 58%, #0c478f 100%);
    content: '';
    pointer-events: none;
}

.app-header {
    border-color: #e7edf5;
    background: #fff;
    box-shadow: 0 2px 10px rgb(15 35 65 / 0.045);
}

.app-header > div {
    background: #fff;
}

.app-header .account-menu__trigger:hover {
    background-color: #f8fafc;
}

.app-header .account-menu__trigger:focus-visible {
    --tw-ring-color: rgb(37 99 235 / 0.18);
}

.app-header .account-menu__trigger img {
    border-color: #fff;
    box-shadow: 0 0 0 1px #dbeafe, 0 2px 6px rgb(15 23 42 / 0.12);
}

.account-menu > summary {
    list-style: none;
}

.account-menu > summary::-webkit-details-marker {
    display: none;
}

.account-menu {
    flex: 0 0 auto;
}

.account-menu__trigger {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    white-space: nowrap;
}

.account-menu__panel {
    animation: account-menu-in 130ms ease-out;
    transform-origin: top right;
}

.account-menu__item {
    display: flex;
    min-height: 2.65rem;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 1rem;
    color: #334155;
    font-size: 0.84rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 120ms ease, color 120ms ease;
}

.account-menu__item:hover,
.account-menu__item:focus-visible {
    background: #f1f5f9;
    color: #1d4ed8;
    outline: none;
}

.account-menu__item > i {
    width: 1rem;
    color: #64748b;
    text-align: center;
}

.account-menu__item--danger,
.account-menu__item--danger > i {
    color: #be123c;
}

.account-menu__item--danger:hover,
.account-menu__item--danger:focus-visible {
    background: #fff1f2;
    color: #9f1239;
}

@layer components {
    .pkbm-spp-report .spp-report__student-link,
    .pkbm-spp-report .spp-report__student-link:visited,
    .pkbm-spp-report .spp-report__student-link:hover,
    .pkbm-spp-report .spp-report__student-link:focus-visible,
    .pkbm-spp-report .spp-report__print-link,
    .pkbm-spp-report .spp-report__print-link:visited,
    .pkbm-spp-report .spp-report__print-link:hover,
    .pkbm-spp-report .spp-report__print-link:focus-visible {
        text-decoration: none !important;
    }

    .pkbm-spp-report .spp-report__student-name {
        overflow-wrap: anywhere;
        font-size: 1.15rem;
        line-height: 1.35;
    }

    .sp-page-heading {
        margin-bottom: 1.5rem;
    }

    .sp-page-kicker {
        color: var(--sp-brand);
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.055em;
        text-transform: uppercase;
    }

    .sp-page-title {
        margin-top: 0.35rem;
        color: var(--sp-brand-deep);
        font-size: clamp(1.45rem, 2.4vw, 1.9rem);
        font-weight: 700;
        letter-spacing: -0.035em;
        line-height: 1.2;
    }

    .sp-page-description {
        margin-top: 0.45rem;
        color: var(--sp-muted);
        font-size: 0.875rem;
        line-height: 1.55;
    }

    .sp-card {
        border: 1px solid var(--sp-border);
        border-radius: 1rem;
        background: #fff;
        color: #334155;
        font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
        font-size: 0.82rem;
        line-height: 1.5;
        box-shadow: 0 2px 8px rgb(15 45 80 / 0.045);
    }

    .sp-card-header {
        border-bottom: 1px solid #edf1f6;
        padding: 1rem 1.25rem;
    }

    .sp-section-title {
        color: var(--sp-brand-deep);
        font-size: 0.96rem;
        font-weight: 700;
        letter-spacing: -0.015em;
        line-height: 1.35;
    }

    .sp-form-label {
        display: block;
        margin-bottom: 0.4rem;
        color: #334155;
        font-size: 0.82rem;
        font-weight: 600;
    }

    .sp-form-control {
        border-color: #cbd5e1;
        border-radius: 0.7rem;
        background-color: #fff;
        color: #0f172a;
        transition: border-color 140ms ease, box-shadow 140ms ease;
    }

    .sp-form-control:focus {
        border-color: var(--sp-brand);
        outline: none;
        box-shadow: 0 0 0 4px rgb(23 105 210 / 0.12);
    }

    .sp-table {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
        text-align: left;
        font-size: 0.875rem;
    }

    .sp-table thead {
        background: #1769d2;
        color: #fff;
        font-size: 0.75rem;
        font-weight: 600;
        letter-spacing: 0.055em;
        text-transform: uppercase;
    }

    .sp-table th,
    .sp-table td {
        padding: 0.75rem 1rem;
    }

    .sp-table tbody tr {
        transition: background-color 120ms ease;
    }

    .sp-table tbody tr:hover {
        background: #f8fbff;
    }

    .sp-status-active {
        display: inline-flex;
        align-items: center;
        border-radius: 999px;
        background: #ecfdf5;
        padding: 0.25rem 0.65rem;
        color: #047857;
        font-size: 0.72rem;
        font-weight: 700;
    }

}

.sp-btn-primary,
.sp-btn-secondary,
.sp-btn-danger,
.sp-btn-disabled {
    display: inline-flex;
    min-height: 2.55rem;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid transparent;
    border-radius: 0.7rem;
    padding: 0.55rem 1rem;
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.sp-btn-disabled {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
    user-select: none;
}

.sp-btn-primary {
    background: var(--sp-brand);
    color: #fff;
    box-shadow: 0 2px 5px rgb(23 105 210 / 0.18);
}

.sp-btn-primary:hover {
    background: #1258b5;
    color: #fff;
    box-shadow: 0 4px 10px rgb(23 105 210 / 0.2);
}

.sp-btn-secondary {
    border-color: #d8e0eb;
    background: #fff;
    color: #334155;
}

.sp-btn-secondary:hover {
    border-color: #b7c8dd;
    background: #f8fafc;
    color: var(--sp-brand-deep);
}

/* Tandai pill aktif pada baris menu Manajemen Kas (Pemasukan/Pengeluaran/Rekap). */
nav[aria-label='Menu manajemen kas'] .sp-btn-secondary[aria-current='page'] {
    border-color: #bfdbfe;
    background: #dbeafe;
    color: #173b67;
    font-weight: 700;
    box-shadow: inset 0 0 0 1.5px #93c5fd;
}

nav[aria-label='Menu manajemen kas'] .sp-btn-secondary[aria-current='page']:hover {
    background: #cfe1fb;
    color: #173b67;
}

/* Tandai pill aktif pada baris menu Kelola Surat (Register/Buat/Template). */
nav[aria-label='Menu kelola surat'] .sp-btn-secondary[aria-current='page'] {
    border-color: #bfdbfe;
    background: #dbeafe;
    color: #173b67;
    font-weight: 700;
    box-shadow: inset 0 0 0 1.5px #93c5fd;
}

nav[aria-label='Menu kelola surat'] .sp-btn-secondary[aria-current='page']:hover {
    background: #cfe1fb;
    color: #173b67;
}

nav[aria-label='Bagian Kelola Ujian'] .sp-btn-secondary[aria-current='page'] {
    border-color: #bfdbfe;
    background: #dbeafe;
    color: #173b67;
    font-weight: 700;
    box-shadow: inset 0 0 0 1.5px #93c5fd;
}

nav[aria-label='Bagian Kelola Ujian'] .sp-btn-secondary[aria-current='page']:hover {
    background: #cfe1fb;
    color: #173b67;
}

nav[aria-label='Paket pendidikan'] .sp-btn-secondary[aria-current='page'] {
    border-color: #bfdbfe;
    background: #dbeafe;
    color: #173b67;
    font-weight: 700;
    box-shadow: inset 0 0 0 1.5px #93c5fd;
}

nav[aria-label='Paket pendidikan'] .sp-btn-secondary[aria-current='page']:hover {
    background: #cfe1fb;
    color: #173b67;
}

.fk-exam-assignment .pkbm-dashboard__breadcrumb {
    color: #64748b;
}

.fk-exam-assignment .pkbm-dashboard__breadcrumb span {
    color: #475569;
}

.fk-exam-assignment .pkbm-dashboard__breadcrumb i {
    color: #94a3b8;
}

.fk-exam-assignment .pkbm-dashboard__title {
    color: #0f172a;
}

.fk-exam-assignment .pkbm-dashboard__subtitle {
    color: #475569;
}

.cash-total-badge--income,
.cash-total-badge--income:hover {
    border-color: #a7f3d0;
    background: #ecfdf5;
    color: #065f46;
}

.cash-total-badge--expense,
.cash-total-badge--expense:hover {
    border-color: #fecdd3;
    background: #fff1f2;
    color: #9f1239;
}

.cash-summary-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
}

.cash-chart-panel {
    display: grid;
    min-width: 0;
    align-content: start;
    gap: 0.3rem;
    padding: 0 0.5rem 0.25rem;
}

.cash-chart-title {
    margin: 0;
    color: #1e293b;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.cash-chart-body {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.75rem;
}

.cash-chart-visual {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
}

.cash-flow-chart {
    width: 6rem;
    height: 6rem;
    flex: 0 0 6rem;
    overflow: visible;
    pointer-events: none;
    transform: perspective(550px) rotateX(12deg) rotateZ(-6deg);
    filter: drop-shadow(0 5px 0 rgb(15 23 42 / 0.16)) drop-shadow(0 9px 7px rgb(15 23 42 / 0.12));
    transition: transform 220ms ease, filter 220ms ease;
}

.cash-flow-chart__track,
.cash-flow-segment circle {
    fill: none;
    stroke-width: 18;
}

.cash-flow-chart__track {
    stroke: #e2e8f0;
}

.cash-flow-segment {
    cursor: pointer;
    outline: none;
    pointer-events: visiblePainted;
}

.cash-flow-segment circle {
    stroke-linecap: butt;
    pointer-events: stroke;
    transition: stroke-width 180ms ease, filter 180ms ease;
}

.cash-flow-segment--income circle {
    stroke: #10b981;
}

.cash-flow-segment--expense circle {
    stroke: #f43f5e;
}

.cash-flow-segment--income:hover circle,
.cash-flow-segment--income:focus circle,
.cash-flow-segment--expense:hover circle,
.cash-flow-segment--expense:focus circle {
    stroke-width: 23;
    filter: drop-shadow(0 2px 3px rgb(15 23 42 / 0.28));
}

.cash-chart-legend {
    display: grid;
    gap: 0.35rem;
}

.cash-chart-details {
    display: grid;
    gap: 0.5rem;
    min-width: 0;
}

.cash-chart-tooltip {
    min-height: 0.7rem;
    margin: 0;
    color: #334155;
    font-size: 0.625rem;
    font-weight: 700;
    line-height: 1.2;
}

.cash-chart-tooltip__income,
.cash-chart-tooltip__expense {
    display: none;
}

.cash-chart-panel:has(.cash-flow-segment--income:hover, .cash-flow-segment--income:focus) .cash-chart-tooltip__default,
.cash-chart-panel:has(.cash-flow-segment--expense:hover, .cash-flow-segment--expense:focus) .cash-chart-tooltip__default {
    display: none;
}

.cash-chart-panel:has(.cash-flow-segment--income:hover, .cash-flow-segment--income:focus) .cash-chart-tooltip__income {
    display: inline;
    color: #047857;
}

.cash-chart-panel:has(.cash-flow-segment--expense:hover, .cash-flow-segment--expense:focus) .cash-chart-tooltip__expense {
    display: inline;
    color: #be123c;
}

.cash-summary-cards {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
}

.cash-summary-cards article {
    min-width: 0;
}

@media (min-width: 640px) {
    .cash-summary-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .cash-summary-layout {
        grid-template-columns: minmax(18rem, 0.9fr) minmax(0, 2.1fr);
        align-items: stretch;
    }

}

@media (prefers-reduced-motion: reduce) {
    .cash-flow-chart,
    .cash-flow-segment circle {
        transition: none;
    }
}

.letter-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    padding: 0.65rem 1rem;
}

.letter-toolbar button,
.letter-toolbar select,
.letter-toolbar__size-control input {
    display: inline-flex;
    min-width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    border: 1px solid #dbe3ee;
    border-radius: 0.4rem;
    background: #fff;
    padding: 0 0.55rem;
    color: #334155;
    font-size: 0.8rem;
}

.letter-toolbar__size-control {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #475569;
    font-size: 0.72rem;
    white-space: nowrap;
}

.letter-toolbar__size-control input {
    width: 4.5rem;
    min-width: 0;
    padding: 0 0.35rem;
}

.letter-toolbar__size-control input:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.letter-toolbar__resize-hint {
    color: #64748b;
    font-size: 0.72rem;
}

.letter-template-paper[data-table-resize-cursor="column"],
.letter-editor[data-table-resize-cursor="column"] {
    cursor: col-resize;
}

.letter-template-paper[data-table-resize-cursor="row"],
.letter-editor[data-table-resize-cursor="row"] {
    cursor: row-resize;
}

.letter-toolbar button[data-insert-table],
.letter-toolbar button[data-table-action] {
    gap: 0.4rem;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
    white-space: nowrap;
}

.letter-toolbar button[data-insert-table] i,
.letter-toolbar button[data-table-action] i {
    flex: 0 0 auto;
}

.letter-toolbar button:hover {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #1d4ed8;
}

.letter-toolbar button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.letter-toolbar button[aria-pressed="false"] {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #1d4ed8;
}

.letter-toolbar__separator {
    width: 1px;
    height: 1.5rem;
    margin: 0 0.15rem;
    background: #cbd5e1;
}

.letter-editor-scroll {
    overflow: auto;
    background: #e9eef5;
    padding: 1.25rem;
}

.letter-paper {
    width: 210mm;
    min-height: 297mm;
    margin: 0 auto;
    background: #fff;
    padding: 20mm 22mm;
    box-shadow: 0 4px 18px rgb(15 23 42 / 0.14);
    color: #111827;
    font: 12pt/1.6 "Times New Roman", serif;
}

.letter-paper .kaldik-letterhead {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 64px;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 0 0 10px;
    text-align: center;
}

.letter-paper .kaldik-letterhead__logos {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.letter-paper .kaldik-letterhead__logos img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.letter-paper .kaldik-letterhead__rows p {
    margin: 2px 0;
    line-height: 1.25;
}

.letter-paper .kaldik-letterhead__rule {
    grid-column: 1 / -1;
    margin-top: 5px;
}

.letter-paper .kaldik-letterhead__rule--single { border-bottom: 1px solid #111; }
.letter-paper .kaldik-letterhead__rule--double { border-bottom: 3px double #111; }
.letter-paper .kaldik-letterhead__rule--thick { border-bottom: 4px solid #111; }

.letter-paper__meta {
    width: min(100%, 110mm);
    margin: 0 0 24px 0;
    margin-left: 0;
    text-align: left;
}

.letter-paper__meta p,
.letter-paper__signoff p {
    margin: 0;
}

.letter-paper__signoff {
    width: 45%;
    margin: 18px 0 0 auto;
    text-align: center;
}

.letter-paper__signature-space {
    height: 22mm;
}

.letter-editor {
    min-height: 125mm;
    outline: none;
}

.letter-editor:focus {
    outline: none;
}

.letter-editor p,
.letter-editor div {
    margin: 0 0 0.8em;
}

.letter-editor ul,
.letter-editor ol {
    margin: 0 0 0.8em 1.5em;
}

.letter-template-editor {
    border-top: 1px solid #e2e8f0;
}

.letter-template-paper {
    min-height: 12rem;
    padding: 1rem;
    outline: none;
    color: #1e293b;
    font: 0.95rem/1.6 "Times New Roman", serif;
}

.letter-template-paper:focus {
    box-shadow: inset 0 0 0 2px #bfdbfe;
}

.letter-editor td[data-cell-selected],
.letter-editor th[data-cell-selected],
.letter-template-paper td[data-cell-selected],
.letter-template-paper th[data-cell-selected] {
    background-color: #dbeafe;
    outline: 2px solid #3b82f6;
    outline-offset: -2px;
}

.letter-editor table,
.letter-template-paper table,
.content table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.75em 0;
}

.letter-editor th,
.letter-editor td,
.letter-template-paper th,
.letter-template-paper td,
.content th,
.content td {
    min-width: 2rem;
    border: 1px solid #64748b;
    padding: 0.35em 0.5em;
}

.letter-editor table[data-border="none"] th,
.letter-editor table[data-border="none"] td,
.letter-template-paper table[data-border="none"] th,
.letter-template-paper table[data-border="none"] td,
.content table[data-border="none"] th,
.content table[data-border="none"] td {
    border: 0;
}

.letter-page-break {
    position: relative;
    min-height: 250mm;
    margin: 1.5rem 0;
    border-top: 1px dashed #94a3b8;
    break-before: page;
    page-break-before: always;
}

.letter-page-break::before {
    position: absolute;
    top: -0.65rem;
    left: 50%;
    background: #fff;
    padding: 0 0.6rem;
    color: #64748b;
    content: 'Halaman baru';
    font: 0.7rem/1.2 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
    transform: translateX(-50%);
}

@media print {
    .letter-page-break {
        min-height: 0;
        margin: 0;
        border: 0;
    }

    .letter-page-break::before {
        display: none;
    }
}

@media (max-width: 700px) {
    .letter-editor-scroll {
        padding: 0.5rem;
    }

    .letter-paper {
        width: 210mm;
        margin: 0;
    }
}

.sp-btn-danger {
    border-color: #fecdd3;
    background: #fff;
    color: #be123c;
}

.sp-btn-danger:hover {
    background: #fff1f2;
    color: #9f1239;
}

.sp-btn-primary:focus-visible,
.sp-btn-secondary:focus-visible,
.sp-btn-danger:focus-visible {
    outline: 3px solid rgb(23 105 210 / 0.24);
    outline-offset: 2px;
}

.pkbm-master-page .sp-form-control {
    display: block;
    width: 100%;
    min-height: 2.7rem;
    border: 1px solid #c5d2e2;
    border-radius: 0.65rem;
    background-color: #f8fbff;
    color: #17324f;
    box-shadow: inset 0 1px 2px rgb(23 45 80 / 0.035);
    transition: border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}

.pkbm-master-page .sp-form-control.sr-only {
    width: 1px;
    min-width: 1px;
    min-height: 1px;
    height: 1px;
    padding: 0;
    border-width: 0;
}

.pkbm-master-page .sp-form-control::placeholder {
    color: #8797aa;
    opacity: 1;
}

.pkbm-master-page .sp-form-control:focus {
    border-color: #5794e8;
    outline: none;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgb(23 105 210 / 0.13);
}

.pkbm-students__dialog :where(form > div.flex[class*="border-b"][class*="p-5"]) {
    background: linear-gradient(115deg, #f1f7ff, #fff 78%);
}

.pkbm-students__dialog :where(form > div.flex[class*="border-t"][class*="p-5"]) {
    background: #f8fafc;
}

.pkbm-master-page .spp-category-table th,
.pkbm-master-page .spp-category-table td {
    vertical-align: middle;
}

.pkbm-master-page .spp-category-table tbody th[scope="row"] {
    text-align: left;
    font-size: inherit;
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
}

.pkbm-master-page .spp-category-table td:last-child {
    white-space: nowrap;
}

.pkbm-master-page input[type="file"].sp-form-control {
    min-height: 3rem;
    color: #52657d;
}

.pkbm-master-page input[type="file"].sp-form-control::file-selector-button {
    margin-right: 0.65rem;
    border: 1px solid #cbdcf1;
    border-radius: 0.45rem;
    background: #edf5ff;
    padding: 0.35rem 0.65rem;
    color: #174f91;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.pkbm-master-page .sp-btn-primary {
    border-color: #1769d2;
    background-color: #1769d2;
    color: #fff;
}

.pkbm-master-page .sp-btn-primary:hover {
    border-color: #1258b5;
    background-color: #1258b5;
    color: #fff;
}

.pkbm-master-dialog {
    position: fixed;
    inset: 0;
    width: min(34rem, calc(100vw - 2rem));
    max-height: min(90vh, 42rem);
    overflow: auto;
    margin: auto;
    border: 1px solid #e3eaf3;
    border-radius: 1rem;
    background: #fff;
    color: #334155;
    padding: 0;
    box-shadow: 0 24px 70px rgb(15 23 42 / 0.25);
}

.pkbm-master-dialog form {
    margin: 0;
}

.pkbm-master-dialog::backdrop {
    background: rgb(15 23 42 / 0.55);
    backdrop-filter: blur(2px);
}

.pkbm-exam-room-dialog {
    width: min(74rem, calc(100vw - 2rem));
    max-height: min(92vh, 54rem);
}

.pkbm-exam-room-dialog[open] {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pkbm-exam-room-dialog form {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
}

.pkbm-exam-room-dialog form > div.grid {
    flex: 1 1 auto;
    min-height: 0;
}

.pkbm-exam-room-dialog__list {
    min-height: 0;
    max-height: none;
    flex: 1 1 auto;
    overflow: auto;
}

.pkbm-exam-room-dialog .pkbm-exam-room__panel-title {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.4;
}

.pkbm-master-dialog .sp-form-control {
    display: block;
    width: 100%;
    min-height: 2.8rem;
    border: 1px solid #c5d2e2;
    border-radius: 0.65rem;
    background-color: #f8fbff;
    color: #17324f;
}

.pkbm-master-dialog .sp-form-control:focus {
    border-color: #5794e8;
    outline: none;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgb(23 105 210 / 0.13);
}

.pkbm-master-dialog :where(form > div.flex[class*="border-b"][class*="p-5"]) {
    background: linear-gradient(115deg, #f1f7ff, #fff 78%);
}

.pkbm-master-dialog :where(form > div.flex[class*="border-t"][class*="p-5"]) {
    background: #f8fafc;
}

.pkbm-master-dialog h2.sp-section-title {
    color: #103c70;
    font-size: 1.05rem;
}

.pkbm-class-form-dialog__header {
    background: linear-gradient(115deg, #f1f7ff, #fff 78%);
}

.pkbm-class-form-dialog[open] {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pkbm-question-dialog[open] {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pkbm-question-dialog__body {
    min-height: 0;
    flex: 1 1 auto;
    overflow-y: auto;
}

.pkbm-class-form-dialog form {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
}

.pkbm-class-form-dialog form > :not(.pkbm-class-form-dialog__header):not(.pkbm-class-form-dialog__footer):not(input[type="hidden"]) {
    min-height: 0;
    flex: 1 1 auto;
    overflow-y: auto;
}

.pkbm-class-form-dialog__icon {
    display: grid;
    width: 2.6rem;
    height: 2.6rem;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid #dceaff;
    border-radius: 0.8rem;
    background: #eaf3ff;
    color: #1769d2;
    font-size: 1.1rem;
}

.pkbm-class-form-dialog__header .sp-section-title {
    color: #103c70;
    font-size: 1.05rem;
}

.pkbm-class-form-dialog__close {
    border: 1px solid #e3eaf3;
    background: #fff;
    transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.pkbm-class-form-dialog__close:hover {
    border-color: #cbdcf1;
    background: #f1f6fc;
    color: #174f91;
}

.pkbm-class-form-dialog__footer {
    background: #f8fafc;
}

.pkbm-spp-payment-dialog {
    width: min(54rem, calc(100vw - 2rem));
}

.pkbm-spp-payment-dialog [data-payment-options] .sp-section-title {
    margin: 0;
    color: #103c70;
    font-size: 0.96rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.35;
}

@media (min-width: 640px) {
    .spp-payment-category-card--routine {
        grid-column: 1 / -1;
    }
}

.spp-payment-category-items {
    padding: 0 1rem 1rem;
}

.spp-payment-category-items--routine {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.spp-payment-bill-item {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border-top: 1px solid #edf1f6;
    padding: 0.75rem 0;
}

.spp-payment-category-items--routine .spp-payment-bill-item {
    align-items: flex-start;
    border: 1px solid #edf1f6;
    border-radius: 0.65rem;
    background: #fff;
    padding: 0.75rem;
}

.spp-payment-category-items--routine .spp-payment-bill-item > .min-w-0 {
    flex: 1 1 auto;
}

.spp-payment-bill-controls {
    width: 9rem;
    flex: 0 0 auto;
}

.spp-payment-select-label {
    display: flex;
    min-height: 1.75rem;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    white-space: nowrap;
}

.spp-payment-select-label input {
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
    margin: 0;
}

.spp-payment-paid-badge {
    flex: 0 0 auto;
}

@media (max-width: 480px) {
    .spp-payment-category-items--routine {
        grid-template-columns: 1fr;
    }

    .spp-payment-bill-item {
        gap: 0.5rem;
    }

    .spp-payment-bill-controls {
        width: 8rem;
    }
}

.spp-bills-table-scroll {
    max-height: min(68vh, 42rem);
    overflow-y: auto;
}

.spp-transactions-table th,
.spp-transactions-table td {
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
    line-height: 1.4;
}

.spp-transactions-table td p {
    margin: 0;
}

.spp-bills-table-scroll .sp-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #1769d2;
    box-shadow: 0 1px 0 rgb(15 23 42 / 0.12);
}

.pkbm-spp-details-dialog[open] {
    display: flex;
}

.pkbm-spp-details-dialog__layout {
    display: flex;
    max-height: min(90vh, 42rem);
    flex-direction: column;
    overflow: hidden;
}

.pkbm-spp-details-dialog__content {
    min-height: 0;
    overflow-y: auto;
}

.tp-dialog .pkbm-class-form-dialog__header {
    background: linear-gradient(115deg, #eaf3ff, #f8fbff 78%);
}

.tp-dialog .pkbm-class-form-dialog__footer {
    background: #f1f7ff;
}

.pkbm-class-form-dialog legend {
    float: none;
    width: auto;
    margin-bottom: 0.35rem;
    font-size: 0.75rem;
    line-height: 1.4;
}

.pkbm-class-form-dialog legend button {
    font-size: inherit;
}

.pkbm-class-form-dialog .sp-btn-primary {
    border-color: #1769d2;
    background: #1769d2;
    color: #fff;
    box-shadow: 0 2px 5px rgb(23 105 210 / 0.2);
}

.pkbm-class-form-dialog .sp-btn-primary:hover {
    border-color: #1258b5;
    background: #1258b5;
    color: #fff;
}

.pkbm-dashboard__heading {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.15rem 1.5rem 1.25rem;
    color: #fff;
}

.pkbm-dashboard__breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    color: rgb(255 255 255 / 0.76);
    font-size: 0.7rem;
    font-weight: 600;
}

.pkbm-dashboard__breadcrumb a,
.pkbm-dashboard__breadcrumb a:visited {
    color: rgb(255 255 255 / 0.9);
    text-decoration: none;
}

.pkbm-dashboard__breadcrumb a:hover {
    color: #fff;
    text-decoration: underline;
}

.pkbm-dashboard__breadcrumb i {
    color: rgb(255 255 255 / 0.55);
    font-size: 0.55rem;
}

.pkbm-dashboard__breadcrumb span {
    color: #fff;
}

.pkbm-dashboard__title {
    margin: 0.3rem 0 0 !important;
    color: #fff;
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.035em;
    line-height: 1.25 !important;
}

.pkbm-grade-settings .pkbm-dashboard__heading {
    padding: 1.15rem 1.5rem 1.25rem;
    color: #fff;
}

.pkbm-grade-settings .pkbm-dashboard__breadcrumb {
    color: rgb(255 255 255 / 0.76);
}

.pkbm-grade-settings .pkbm-dashboard__breadcrumb i {
    color: rgb(255 255 255 / 0.55);
}

.pkbm-grade-settings .pkbm-dashboard__breadcrumb span,
.pkbm-grade-settings .pkbm-dashboard__title {
    color: #fff;
}

.pkbm-grade-settings .pkbm-dashboard__subtitle {
    color: rgb(255 255 255 / 0.82);
}

.pkbm-grade-settings .pkbm-settings__period {
    border-color: rgb(255 255 255 / 0.28);
    background: rgb(255 255 255 / 0.13);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.12);
}

.pkbm-grade-settings .pkbm-settings__period-icon {
    border: 1px solid rgb(255 255 255 / 0.2);
    background: rgb(255 255 255 / 0.14);
    color: #fff;
}

.pkbm-grade-settings .pkbm-settings__period-label {
    color: rgb(255 255 255 / 0.72);
}

.pkbm-grade-settings .pkbm-settings__period-value {
    color: #fff;
}

.pkbm-grade-settings .sp-card-header {
    padding: 0.75rem 1rem;
}

.pkbm-grade-settings .grade-settings-layout {
    display: grid;
    gap: 1.25rem;
}

.pkbm-grade-settings .grade-settings-history {
    min-width: 0;
}

.pkbm-grade-settings .grade-history-table {
    table-layout: fixed;
}

.pkbm-grade-settings .grade-history-table th:last-child,
.pkbm-grade-settings .grade-history-table td:last-child {
    text-align: center;
}

.pkbm-grade-settings .grade-history-table thead th:nth-last-child(2),
.pkbm-grade-settings .grade-history-table tbody td:nth-last-child(2) {
    text-align: center;
}

.pkbm-grade-settings .grade-weight-heading > div {
    min-width: 0;
}

.pkbm-grade-settings .grade-weight-heading {
    flex-wrap: nowrap;
}

.pkbm-grade-settings .grade-weight-heading .text-xs {
    white-space: nowrap;
}

.pkbm-grade-settings .grade-history-col--period {
    width: 18%;
}

.pkbm-grade-settings .grade-history-col--weight {
    width: 7.5%;
}

.pkbm-grade-settings .grade-history-col--mode {
    width: 19%;
}

.pkbm-grade-settings .grade-history-col--decimal {
    width: 9%;
}

.pkbm-grade-settings .grade-history-col--actions {
    width: 24%;
}

.pkbm-grade-settings .grade-history-table .settings-row-actions {
    justify-content: center;
}

.pkbm-grade-settings .grade-settings-form {
    row-gap: 0.5rem;
}

.pkbm-grade-settings .grade-weight-card__description {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pkbm-grade-settings .grade-settings-options {
    grid-template-columns: minmax(0, 1fr);
}

.pkbm-grade-settings .grade-weight-title {
    margin: 0;
    color: #1e293b;
    font-size: 0.9rem;
    font-weight: 700;
}

.pkbm-grade-settings .grade-weight-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.65rem;
}

.pkbm-grade-settings .grade-weight-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 6.25rem;
    align-items: center;
    min-width: 0;
    gap: 0.1rem 0.35rem;
    border: 1px solid #b6d0ff;
    border-radius: 0.75rem;
    background: #e8f2ff;
    padding: 0.3rem 0.5rem;
}

.pkbm-grade-settings .grade-weight-card__copy {
    display: block;
    min-width: 0;
}

.pkbm-grade-settings .grade-weight-card__label {
    display: block;
    color: #1e293b;
    font-size: 0.8rem;
    font-weight: 700;
}

.pkbm-grade-settings .grade-weight-card__description {
    display: block;
    margin-top: 0.1rem;
    color: #64748b;
    font-size: 0.68rem;
    line-height: 1.35;
}

.pkbm-grade-settings .grade-weight-card__input {
    display: flex;
    grid-column: 2;
    grid-row: 1;
    align-items: center;
    gap: 0.25rem;
    margin: 0;
}

.pkbm-grade-settings .grade-weight-card__input input {
    flex: 0 0 4.75rem;
    width: 4.75rem;
    min-width: 0;
    padding-inline: 0.4rem;
    text-align: center;
}

#workspace-shell[data-theme="medium"] {
    background-color: #e9edf2 !important;
    color: #334155;
}

#workspace-shell[data-theme="medium"] .app-sidebar,
#workspace-shell[data-theme="medium"] .sp-card {
    background-color: #f8fafc;
}

#workspace-shell[data-theme="dark"] {
    color-scheme: dark;
    background-color: #0f172a !important;
    color: #e2e8f0;
}

#workspace-shell[data-theme="dark"] .app-content,
#workspace-shell[data-theme="dark"] .app-main {
    background-color: #0f172a;
}

#workspace-shell[data-theme="dark"] .app-sidebar,
#workspace-shell[data-theme="dark"] .sp-card,
#workspace-shell[data-theme="dark"] .dropdown-menu,
#workspace-shell[data-theme="dark"] .modal-content {
    border-color: #334155;
    background-color: #1e293b;
    color: #e2e8f0;
}

#workspace-shell[data-theme="dark"] .app-sidebar {
    box-shadow: 5px 0 24px rgb(0 0 0 / 0.18);
}

#workspace-shell[data-theme="dark"] .app-sidebar .sidebar-brand__link,
#workspace-shell[data-theme="dark"] .app-sidebar .sidebar-nav-item:hover,
#workspace-shell[data-theme="dark"] .app-sidebar .sidebar-nav-item > i:first-child {
    border-color: #334155;
    background-color: #273449;
    color: #cbd5e1;
}

#workspace-shell[data-theme="dark"] .app-sidebar .sidebar-brand__copy > span:first-child,
#workspace-shell[data-theme="dark"] .app-sidebar .sidebar-brand__copy > span:last-child,
#workspace-shell[data-theme="dark"] .app-sidebar .sidebar-heading,
#workspace-shell[data-theme="dark"] .app-sidebar .sidebar-nav-item {
    color: #cbd5e1;
}

#workspace-shell[data-theme="dark"] .app-sidebar .sidebar-nav-item--active {
    background: linear-gradient(105deg, #1769d2 0%, #237ce4 100%);
    color: #fff;
}

#workspace-shell[data-theme="dark"] .sp-card-header,
#workspace-shell[data-theme="dark"] .sp-card > .border-t,
#workspace-shell[data-theme="dark"] table thead,
#workspace-shell[data-theme="dark"] .table thead {
    border-color: #334155;
    background-color: #263449;
}

#workspace-shell[data-theme="dark"] input,
#workspace-shell[data-theme="dark"] select,
#workspace-shell[data-theme="dark"] textarea,
#workspace-shell[data-theme="dark"] .sp-form-control {
    border-color: #475569;
    background-color: #0f172a;
    color: #e2e8f0;
}

#workspace-shell[data-theme="dark"] input::placeholder,
#workspace-shell[data-theme="dark"] textarea::placeholder {
    color: #94a3b8;
}

#workspace-shell[data-theme="dark"] [class~="bg-white"],
#workspace-shell[data-theme="dark"] [class~="bg-slate-50"],
#workspace-shell[data-theme="dark"] [class~="bg-slate-100"],
#workspace-shell[data-theme="dark"] [class~="bg-slate-200"],
#workspace-shell[data-theme="dark"] [class~="bg-gray-50"],
#workspace-shell[data-theme="dark"] [class~="bg-gray-100"],
#workspace-shell[data-theme="dark"] [class~="bg-blue-50"],
#workspace-shell[data-theme="dark"] [class~="bg-blue-100"],
#workspace-shell[data-theme="dark"] [class~="bg-indigo-50"],
#workspace-shell[data-theme="dark"] [class~="bg-emerald-50"],
#workspace-shell[data-theme="dark"] [class~="bg-amber-50"],
#workspace-shell[data-theme="dark"] [class~="bg-rose-50"] {
    background-color: #263449 !important;
}

#workspace-shell[data-theme="dark"] [class~="text-slate-900"],
#workspace-shell[data-theme="dark"] [class~="text-slate-800"],
#workspace-shell[data-theme="dark"] [class~="text-slate-700"],
#workspace-shell[data-theme="dark"] [class~="text-slate-600"],
#workspace-shell[data-theme="dark"] [class~="text-gray-900"],
#workspace-shell[data-theme="dark"] [class~="text-gray-800"],
#workspace-shell[data-theme="dark"] [class~="text-gray-700"] {
    color: #e2e8f0 !important;
}

#workspace-shell[data-theme="dark"] [class~="text-slate-500"],
#workspace-shell[data-theme="dark"] [class~="text-slate-400"],
#workspace-shell[data-theme="dark"] [class~="text-gray-500"],
#workspace-shell[data-theme="dark"] [class~="text-gray-400"] {
    color: #a7b5c8 !important;
}

#workspace-shell[data-theme="dark"] [class~="border-slate-100"],
#workspace-shell[data-theme="dark"] [class~="border-slate-200"],
#workspace-shell[data-theme="dark"] [class~="border-slate-300"],
#workspace-shell[data-theme="dark"] [class~="border-gray-100"],
#workspace-shell[data-theme="dark"] [class~="border-gray-200"] {
    border-color: #3b4a60 !important;
}

#workspace-shell[data-theme="dark"] [class~="divide-slate-100"] > :not(:last-child),
#workspace-shell[data-theme="dark"] [class~="divide-slate-200"] > :not(:last-child) {
    border-color: #3b4a60 !important;
}

#workspace-shell[data-theme="dark"] .table,
#workspace-shell[data-theme="dark"] table {
    --bs-table-color: #e2e8f0;
    --bs-table-bg: #1e293b;
    --bs-table-border-color: #334155;
    --bs-table-striped-bg: #263449;
    --bs-table-striped-color: #e2e8f0;
    --bs-table-hover-bg: #334155;
    --bs-table-hover-color: #f8fafc;
    color: #e2e8f0;
}

#workspace-shell[data-theme="dark"] .table > :not(caption) > * > *,
#workspace-shell[data-theme="dark"] table > :not(caption) > * > * {
    border-color: #334155;
    background-color: #1e293b;
    color: #e2e8f0;
}

@media (min-width: 640px) {
    .pkbm-grade-settings .grade-weight-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .pkbm-grade-settings .grade-settings-layout {
        grid-template-columns: minmax(24rem, 1.2fr) minmax(0, 1.55fr);
        align-items: start;
    }

    .pkbm-grade-settings .grade-weight-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pkbm-grade-settings .grade-settings-options {
        grid-template-columns: minmax(0, 1.3fr) minmax(8rem, 0.7fr);
    }
}

.pkbm-dashboard__subtitle {
    margin: 0.2rem 0 0;
    color: rgb(255 255 255 / 0.82);
    font-size: 0.78rem;
}

.pkbm-dashboard .pkbm-period-chip,
.pkbm-master-page .pkbm-period-chip {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.65rem;
    border: 1px solid #dfe9f7;
    border-radius: 0.75rem;
    background: #fff;
    padding: 0.55rem 0.8rem;
    box-shadow: 0 2px 6px rgb(23 45 80 / 0.04);
}

.pkbm-period-chip__icon {
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border-radius: 0.6rem;
    background: #eff6ff;
    color: #2563eb;
    font-size: 0.9rem;
}

.pkbm-period-chip__label,
.pkbm-period-chip__value {
    display: block;
}

.pkbm-period-chip__label {
    color: #8290a3;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.pkbm-dashboard .pkbm-period-chip__value,
.pkbm-master-page .pkbm-period-chip__value {
    margin-top: 0.1rem;
    color: #173b67;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
}

.pkbm-dashboard .pkbm-overview-card {
    padding: 0.95rem 1.1rem 0.8rem;
    border-radius: 0.75rem;
    box-shadow: 0 3px 12px rgb(23 45 80 / 0.055);
}

.pkbm-overview-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 0.15rem 0.7rem;
}

.pkbm-dashboard .pkbm-overview-card__header p {
    margin-bottom: 0;
}

.pkbm-overview-card__period {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #8290a3;
    font-size: 0.65rem;
    font-weight: 600;
}

.pkbm-overview-card__period i {
    color: #1769d2;
}

.pkbm-dashboard .pkbm-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid #edf1f6;
}

.pkbm-dashboard .pkbm-stat-card {
    --stat-accent: #2563eb;
    --stat-tint: #edf5ff;
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 6rem;
    align-items: center;
    gap: 0.7rem;
    overflow: hidden;
    border: 0;
    border-right: 1px solid #edf1f6;
    border-radius: 0;
    background: #fff;
    padding: 0.9rem 0.75rem;
    box-shadow: none;
    transition: background-color 140ms ease;
}

.pkbm-dashboard .pkbm-stat-card::before {
    position: absolute;
    inset: auto 0 0;
    height: 2px;
    background: var(--stat-accent);
    content: '';
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 160ms ease;
}

.pkbm-dashboard .pkbm-stat-card::after {
    content: none;
}

.pkbm-dashboard .pkbm-stat-card:hover {
    background: #f9fbfe;
    box-shadow: none;
}

.pkbm-dashboard .pkbm-stat-card:hover::before {
    transform: scaleX(1);
}

.pkbm-dashboard .pkbm-stat-card:last-child {
    border-right: 0;
}

.pkbm-dashboard .pkbm-stat-card--blue {
    --stat-accent: #2563eb;
    --stat-tint: #edf5ff;
}

.pkbm-dashboard .pkbm-stat-card--emerald {
    --stat-accent: #059669;
    --stat-tint: #ecfdf5;
}

.pkbm-dashboard .pkbm-stat-card--amber {
    --stat-accent: #c58a16;
    --stat-tint: #fffaeb;
}

.pkbm-dashboard .pkbm-stat-card--violet {
    --stat-accent: #7c3aed;
    --stat-tint: #f5f0ff;
}

.pkbm-dashboard .pkbm-stat-card__icon {
    position: relative;
    z-index: 1;
    display: grid;
    width: 2.35rem;
    height: 2.35rem;
    flex: 0 0 auto;
    place-items: center;
    border: 2px solid color-mix(in srgb, var(--stat-accent) 18%, white);
    border-radius: 50%;
    background: var(--stat-tint);
    color: var(--stat-accent);
    font-size: 1.05rem;
    box-shadow: none;
}

.pkbm-dashboard .pkbm-stat-card__content {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.pkbm-dashboard .pkbm-stat-card__label,
.pkbm-dashboard .pkbm-stat-card__value,
.pkbm-dashboard .pkbm-stat-card__detail {
    margin: 0;
}

.pkbm-dashboard .pkbm-stat-card__label {
    overflow: hidden;
    color: #53647b;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pkbm-dashboard .pkbm-stat-card__value {
    margin-top: 0.28rem;
    color: #173b67;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.pkbm-dashboard .pkbm-stat-card__detail {
    overflow: hidden;
    margin-top: 0.22rem;
    color: #718096;
    font-size: 0.6rem;
    font-weight: 600;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pkbm-dashboard .sp-section-title {
    color: #103c70;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.35;
}

.pkbm-dashboard .sp-card {
    border-color: #e6ebf2;
    border-radius: 0.75rem;
    box-shadow: 0 3px 12px rgb(23 45 80 / 0.055);
}

.pkbm-dashboard .sp-card-header {
    padding: 0.9rem 1.1rem;
}

.pkbm-dashboard #demographics-content .pkbm-demographics__title {
    margin: 0;
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.045em;
    line-height: 1.4;
    text-transform: uppercase;
}

.pkbm-demographics__gender-chart,
.pkbm-demographics__gold-track {
    display: flex;
    width: 100%;
    height: 0.45rem;
    overflow: hidden;
    border-radius: 9999px;
    background: #e8edf4;
}

.pkbm-demographics__gender-chart {
    margin-top: 0.8rem;
}

.pkbm-demographics__gender-segment {
    height: 100%;
    transition: width 180ms ease;
}

.pkbm-demographics__gender-segment--male {
    background: #3b82f6;
}

.pkbm-demographics__gender-segment--female {
    background: #f472b6;
}

.pkbm-demographics__gender-segment--unknown {
    background: #cbd5e1;
}

.pkbm-demographics__gold-label {
    color: #9a6b16;
    font-size: 0.75rem;
    font-weight: 700;
}

.pkbm-demographics__gold-track {
    background: #f4ead3;
}

.pkbm-demographics__gold-bar {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #c99a3b, #e1bd70);
    transition: width 180ms ease;
}

.pkbm-settings__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 0.1rem 0 0.25rem;
}

.pkbm-dashboard .pkbm-period-chip,
.pkbm-master-page .pkbm-period-chip,
.pkbm-settings .pkbm-settings__period {
    border-color: rgb(255 255 255 / 0.28);
    background: rgb(255 255 255 / 0.13);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.12);
}

.pkbm-dashboard .pkbm-period-chip__icon,
.pkbm-master-page .pkbm-period-chip__icon,
.pkbm-settings .pkbm-settings__period-icon {
    border: 1px solid rgb(255 255 255 / 0.2);
    background: rgb(255 255 255 / 0.14);
    color: #fff;
}

.pkbm-dashboard .pkbm-period-chip__label,
.pkbm-master-page .pkbm-period-chip__label,
.pkbm-settings .pkbm-settings__period-label {
    color: rgb(255 255 255 / 0.72);
}

.pkbm-dashboard .pkbm-period-chip__value,
.pkbm-master-page .pkbm-period-chip__value,
.pkbm-settings .pkbm-settings__period-value,
.pkbm-settings .pkbm-settings__period-value:hover {
    color: #fff;
}

.pkbm-dashboard .pkbm-period-chip__value {
    text-decoration-color: rgb(255 255 255 / 0.55);
}

.pkbm-settings__heading {
    padding: 1.15rem 1.5rem 1.25rem;
    color: #fff;
}

.pkbm-settings .pkbm-dashboard__breadcrumb {
    color: rgb(255 255 255 / 0.76);
}

.pkbm-settings .pkbm-dashboard__breadcrumb i {
    color: rgb(255 255 255 / 0.55);
}

.pkbm-settings .pkbm-dashboard__breadcrumb span,
.pkbm-settings .pkbm-dashboard__title {
    color: #fff;
}

.pkbm-settings .pkbm-dashboard__title {
    margin: 0.3rem 0 0 !important;
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.035em;
    line-height: 1.25 !important;
}

.pkbm-settings .pkbm-dashboard__subtitle {
    margin: 0.2rem 0 0;
    color: rgb(255 255 255 / 0.82);
    font-size: 0.78rem;
}

.pkbm-settings__period {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.65rem;
    border: 1px solid #dfe9f7;
    border-radius: 0.75rem;
    background: #fff;
    padding: 0.55rem 0.8rem;
    box-shadow: 0 2px 6px rgb(23 45 80 / 0.04);
}

.pkbm-settings__period-icon {
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border-radius: 0.6rem;
    background: #eff6ff;
    color: #2563eb;
    font-size: 0.9rem;
}

.pkbm-settings__period-label,
.pkbm-settings__period-value {
    display: block;
}

.pkbm-settings__period-label {
    color: #8290a3;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.pkbm-settings__period-value {
    margin-top: 0.1rem;
    color: #173b67;
    font-size: 0.75rem;
    font-weight: 700;
}

.sp-page-heading {
    margin-bottom: 1.5rem;
    padding: 1.15rem 0 1.25rem;
    color: #fff;
}

.sp-page-heading .sp-page-kicker,
.sp-page-heading .sp-page-title {
    color: #fff;
}

.sp-page-heading .sp-page-description {
    color: rgb(255 255 255 / 0.82);
}

.sp-page-heading .text-slate-300 {
    color: rgb(255 255 255 / 0.55);
}

.settings-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    border: 1px solid;
    border-radius: 0.7rem;
    padding: 0.8rem 1rem;
    font-size: 0.82rem;
    line-height: 1.5;
}

.settings-notice > i {
    margin-top: 0.08rem;
}

.settings-notice--success {
    border-color: #b7ebd2;
    background: #f0fdf7;
    color: #08764f;
}

.settings-notice--error {
    border-color: #fecdd3;
    background: #fff5f6;
}

.settings-notice--warning {
    border-color: #f4d38b;
    background: #fffbeb;
    color: #854d0e;
}

.pkbm-class-members__dialog {
    width: min(58rem, calc(100vw - 2rem));
}

#class-members-dialog #class-members-title {
    margin: 0;
    color: #103c70;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.35;
}

#class-members-dialog section h3 {
    margin: 0;
    color: #334155;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.4;
}

#class-members-dialog .sp-btn-primary {
    border-color: #1769d2;
    background-color: #1769d2;
    color: #fff;
}

#class-members-dialog .sp-btn-primary:hover:not(:disabled) {
    border-color: #1258b5;
    background-color: #1258b5;
    color: #fff;
}

#class-members-dialog .sp-btn-primary:disabled {
    border-color: #bfdbfe;
    background-color: #eff6ff;
    color: #1d4ed8;
    opacity: 1;
}

.pkbm-class-members__list {
    max-height: min(30vh, 20rem);
    min-height: 10rem;
    overflow: auto;
}

.pkbm-class-members__list tbody tr[data-id] {
    cursor: grab;
}

.pkbm-class-members__list tbody tr[data-id]:active {
    cursor: grabbing;
}

.pkbm-class-members__list tbody tr[hidden] {
    display: none;
}

.pkbm-students .sp-card {
    border-color: #e6ebf2;
    border-radius: 0.8rem;
    box-shadow: 0 3px 12px rgb(23 45 80 / 0.05);
}

.pkbm-students .sp-section-title {
    color: #103c70;
    font-size: 0.96rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.35;
}

.pkbm-students__period {
    display: grid;
    flex: 0 0 auto;
    gap: 0.2rem;
    border: 1px solid rgb(255 255 255 / 0.22);
    border-radius: 0.75rem;
    background: rgb(255 255 255 / 0.12);
    padding: 0.65rem 0.85rem;
    color: #fff;
}

.pkbm-students__period-label {
    color: rgb(255 255 255 / 0.72);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.pkbm-students__period strong {
    font-size: 0.78rem;
}

.pkbm-students tr.is-selected {
    background: #eff6ff;
    box-shadow: inset 3px 0 #2563eb;
}

.pkbm-students tr[tabindex]:focus-visible {
    outline: 2px solid #60a5fa;
    outline-offset: -2px;
}

.pkbm-students__export {
    position: fixed;
    z-index: 20;
    right: 1.5rem;
    bottom: 1.5rem;
    display: inline-flex;
    min-height: 2.85rem;
    align-items: center;
    gap: 0.55rem;
    border: 0;
    border-radius: 999px;
    background: #059669;
    padding: 0.7rem 1.15rem;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    box-shadow: 0 8px 20px rgb(0 0 0 / 0.2);
}

.pkbm-students__export:hover {
    background: #047857;
}

.pkbm-students__export.hidden {
    display: none;
}

.pkbm-students__dialog {
    position: fixed;
    inset: 0;
    width: min(34rem, calc(100vw - 2rem));
    max-height: min(90vh, 48rem);
    overflow: auto;
    margin: auto;
    border: 1px solid #e3eaf3;
    border-radius: 1rem;
    background: #fff;
    color: #334155;
    padding: 0;
    box-shadow: 0 24px 70px rgb(15 23 42 / 0.25);
}

.pkbm-students__dialog form {
    margin: 0;
}

.pkbm-students__dialog-header {
    padding: 1.25rem;
}

.pkbm-students__dialog-title {
    margin: 0;
    color: #103c70;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.4;
}

.pkbm-students__dialog .pkbm-students__job-title {
    margin: 0;
    color: #1e293b;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.35;
}

.pkbm-students__dialog .pkbm-dialog__dismiss {
    display: inline-flex;
    min-height: 2.4rem;
    align-items: center;
    justify-content: center;
    border: 1px solid #1769d2;
    border-radius: 0.65rem;
    background-color: #1769d2;
    padding: 0.5rem 1rem;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
}

.pkbm-students__dialog .pkbm-dialog__dismiss:hover {
    border-color: #1258b5;
    background-color: #1258b5;
}

.pkbm-students__dialog-icon {
    display: inline-grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    margin-right: 0.45rem;
    border-radius: 0.6rem;
    background: #eff6ff;
    color: #1769d2;
}

.pkbm-students__dialog-close {
    display: grid;
    width: 2rem;
    height: 2rem;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid #e3eaf3;
    border-radius: 0.6rem;
    background: #fff;
    color: #64748b;
}

.pkbm-students__dialog-close:hover {
    border-color: #cbdcf1;
    background: #f1f6fc;
    color: #174f91;
}

.pkbm-students__dialog .sp-form-control {
    display: block;
    width: 100%;
    min-height: 2.8rem;
    border: 1px solid #c5d2e2;
    border-radius: 0.65rem;
    background-color: #f8fbff;
    padding: 0.6rem 0.75rem;
    color: #17324f;
}

.pkbm-students__dialog input[type="file"].sp-form-control {
    min-height: 3.2rem;
}

.pkbm-students__dialog::backdrop {
    background: rgb(15 23 42 / 0.55);
    backdrop-filter: blur(2px);
}

@media (max-width: 640px) {
    .pkbm-students__period {
        align-self: stretch;
        width: 100%;
    }

    .pkbm-students__export {
        right: 1rem;
        bottom: 1rem;
    }
}

.settings-panel-heading {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    border-bottom: 1px solid #edf1f6;
    background: #fff;
    padding: 1rem 1.2rem;
}

.settings-panel-heading__icon {
    display: grid;
    width: 2.3rem;
    height: 2.3rem;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid #dbeafe;
    border-radius: 0.7rem;
    background: #eff6ff;
    color: #2563eb;
    font-size: 0.95rem;
}

.pkbm-settings .sp-card {
    border-color: #e6ebf2;
    border-radius: 0.75rem;
    box-shadow: 0 3px 12px rgb(23 45 80 / 0.055);
}

.pkbm-settings .sp-section-title {
    color: #103c70;
    font-size: 0.96rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.35;
}

.pkbm-master-page .sp-section-title {
    color: #103c70;
    font-size: 0.96rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.35;
}

.pkbm-master-page .settings-history-card__header {
    gap: 1rem;
    border-bottom-color: #edf1f6;
    background: #fff;
    padding: 1rem 1.15rem;
}

.pkbm-master-page .settings-history-card__header p {
    color: #64748b;
}

.pkbm-settings .settings-panel-heading .sp-section-title,
.pkbm-settings .settings-history-card__header .sp-section-title {
    color: #103c70;
}

.pkbm-settings .settings-panel-heading p,
.pkbm-settings .settings-history-card__header p {
    color: #64748b;
}

.pkbm-settings .sp-form-control {
    display: block;
    width: 100%;
    min-height: 2.65rem;
    border: 1px solid #d7e0eb;
    border-radius: 0.55rem;
    background-color: #fff;
    padding: 0.65rem 0.8rem;
    color: #17324f;
    font-size: 0.82rem;
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.025);
}

.pkbm-settings .sp-form-control::placeholder {
    color: #9aa8b9;
    opacity: 1;
}

.pkbm-settings select.sp-form-control {
    cursor: pointer;
}

.pkbm-settings .sp-form-control:focus {
    border-color: #5794e8;
    outline: none;
    box-shadow: 0 0 0 3px rgb(23 105 210 / 0.11);
}

.pkbm-settings .sp-form-label {
    margin-bottom: 0.35rem;
    color: #42536a;
    font-size: 0.74rem;
}

.pkbm-settings .sp-btn-primary,
.pkbm-settings .sp-btn-secondary,
.pkbm-settings .sp-btn-danger {
    display: inline-flex;
    min-height: 2.4rem;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid transparent;
    border-radius: 0.55rem;
    padding: 0.5rem 0.85rem;
    font-weight: 700;
    font-size: 0.77rem;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.pkbm-settings .sp-btn-primary {
    border-color: #1769d2;
    background-color: #1769d2;
    color: #fff;
    box-shadow: 0 2px 5px rgb(23 105 210 / 0.2);
}

.pkbm-settings .sp-btn-primary:hover {
    border-color: #1258b5;
    background-color: #1258b5;
    color: #fff;
    box-shadow: 0 4px 10px rgb(23 105 210 / 0.22);
}

.pkbm-settings .sp-btn-secondary {
    border-color: #d8e0eb;
    background-color: #fff;
    color: #334155;
}

.pkbm-settings .sp-btn-secondary:hover {
    border-color: #b7c8dd;
    background-color: #f8fafc;
    color: #103c70;
}

.pkbm-settings .sp-btn-danger {
    border-color: #fecdd3;
    background-color: #fff;
    color: #be123c;
}

.pkbm-settings .sp-btn-danger:hover {
    background-color: #fff1f2;
    color: #9f1239;
}

.pkbm-settings .settings-form__actions {
    margin-top: 1.25rem;
    border-top: 1px solid #edf1f6;
    padding-top: 1rem;
}

.pkbm-settings .signature-upload input[type="file"] {
    min-height: 3rem;
    padding: 0.35rem 0.5rem;
    color: #52657d;
    font-size: 0.78rem;
}

.pkbm-settings .signature-upload input[type="file"]::file-selector-button {
    margin-right: 0.7rem;
    border: 1px solid #d6e5fa;
    border-radius: 0.45rem;
    background: #eff6ff;
    padding: 0.45rem 0.7rem;
    color: #1769d2;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
}

.pkbm-settings .signature-upload input[type="file"]::file-selector-button:hover {
    background: #e2efff;
}

.pkbm-settings .sp-btn-primary:focus-visible,
.pkbm-settings .sp-btn-secondary:focus-visible,
.pkbm-settings .sp-btn-danger:focus-visible,
.pkbm-settings .settings-icon-action:focus-visible {
    outline: 3px solid rgb(23 105 210 / 0.24);
    outline-offset: 2px;
}

.pkbm-settings .settings-history-card .sp-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom-color: #edf1f6;
    background: #fff;
    padding: 1rem 1.15rem;
}

.pkbm-settings .letterhead-mode-fieldset {
    border: 0;
    padding: 0;
}

.pkbm-settings .letterhead-mode-fieldset > legend {
    margin-bottom: 0.55rem;
}

.pkbm-settings .letterhead-mode-options {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.6rem;
}

.pkbm-settings .letterhead-mode-choice {
    display: flex;
    cursor: pointer;
    align-items: flex-start;
    gap: 0.7rem;
    border: 1px solid #d7e0eb;
    border-radius: 0.7rem;
    background: #fff;
    padding: 0.85rem 0.9rem;
    transition: border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.pkbm-settings .letterhead-mode-choice:has(input:checked) {
    border-color: #5794e8;
    background: linear-gradient(110deg, #f3f8ff, #fff);
    box-shadow: inset 3px 0 0 #1769d2, 0 2px 6px rgb(23 105 210 / 0.07);
}

.pkbm-settings .letterhead-mode-choice:focus-within {
    outline: 3px solid rgb(23 105 210 / 0.18);
    outline-offset: 2px;
}

.pkbm-settings .letterhead-mode-choice input {
    margin-top: 0.18rem;
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
    accent-color: #1769d2;
}

.pkbm-settings .letterhead-mode-choice > span {
    min-width: 0;
}

.pkbm-settings .letterhead-mode-choice__title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: #173b67;
    font-size: 0.8rem;
    font-weight: 700;
}

.pkbm-settings .letterhead-mode-choice__title i {
    color: #1769d2;
}

.pkbm-settings .letterhead-mode-choice__description {
    display: block;
    margin-top: 0.25rem;
    color: #64748b;
    font-size: 0.7rem;
    line-height: 1.5;
}

.pkbm-settings .settings-form fieldset {
    border: 0;
    padding: 0;
}

.pkbm-settings .settings-form legend.sp-form-label {
    padding: 0;
}

.pkbm-settings .letterhead-preview-wrap {
    overflow-x: auto;
    background: #e9eef5;
}

.pkbm-settings .letterhead-preview {
    position: relative;
    display: grid;
    width: min(100%, 210mm);
    box-sizing: border-box;
    grid-template-columns: minmax(2.5rem, 76px) minmax(0, 1fr) minmax(2.5rem, 76px);
    grid-template-rows: auto auto;
    align-content: start;
    align-items: center;
    gap: 0.6rem;
    margin: 0 auto;
    border: 1px solid #d5deea;
    background: #fff;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 4px 18px rgb(15 23 42 / 0.12);
}

.pkbm-settings .letterhead-preview p {
    overflow-wrap: anywhere;
}

.pkbm-settings .letterhead-preview__logos {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.pkbm-settings .letterhead-preview__logos img {
    width: 3.5rem;
    height: 3.5rem;
    object-fit: contain;
}

.pkbm-settings .letterhead-preview__rows {
    min-width: 0;
    text-align: center;
}

.pkbm-settings .letterhead-preview__rows p {
    margin: 0.15rem 0;
    color: #172033;
    line-height: 1.35;
}

.pkbm-settings .letterhead-preview__rule {
    grid-column: 1 / -1;
    margin-top: 0.4rem;
    border-bottom: 3px double #17324f;
}

.pkbm-settings .letterhead-preview__rule--single {
    border-bottom: 1px solid #17324f;
}

.pkbm-settings .letterhead-preview__rule--thick {
    border-bottom: 4px solid #17324f;
}

.pkbm-settings .letterhead-layout-fields {
    border: 0;
    border-top: 1px solid #edf1f6;
    padding: 1rem 0 0;
}

.pkbm-settings .letterhead-layout-fields legend.sp-form-label {
    padding: 0;
}

.pkbm-settings .letterhead-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 1.5rem;
}

.pkbm-settings .letterhead-settings-grid > .letterhead-layout-fields,
.pkbm-settings .letterhead-custom-fields {
    grid-column: 1 / -1;
    min-width: 0;
}

.pkbm-settings .letterhead-custom-fields:not(.hidden) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.5rem;
}

.pkbm-settings .letterhead-custom-fields > div {
    min-width: 0;
}

.pkbm-settings .letterhead-rows-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.pkbm-settings .letterhead-rows-grid > .letterhead-line-style {
    align-self: center;
    border: 0;
    padding: 0.8rem;
}

.pkbm-settings .letterhead-settings-grid > .settings-form__actions {
    align-self: end;
}

@media (max-width: 640px) {
    .pkbm-settings .letterhead-settings-grid,
    .pkbm-settings .letterhead-custom-fields:not(.hidden),
    .pkbm-settings .letterhead-rows-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .pkbm-settings .letterhead-rows-grid > .letterhead-line-style {
        grid-column: 1 / -1 !important;
        grid-row: auto !important;
    }
}

.pkbm-settings .letterhead-row {
    border: 1px solid #e3eaf3;
    border-radius: 0.65rem;
    background: #fbfcfe;
    padding: 0.8rem;
}

.pkbm-settings .letterhead-row__text {
    min-height: 2.8rem;
}

.pkbm-settings .letterhead-row__controls {
    display: flex;
    align-items: end;
    gap: 0.5rem;
    margin-top: 0.55rem;
}

.pkbm-settings .letterhead-row__controls .sp-form-label {
    margin: 0 auto 0.45rem 0;
}

.pkbm-settings .letterhead-row__font {
    width: 5.2rem;
    min-height: 2.2rem;
    padding: 0.35rem 0.5rem;
}

.pkbm-settings .letterhead-row__bold {
    display: inline-flex;
    min-height: 2.2rem;
    align-items: center;
    gap: 0.35rem;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

.pkbm-settings .letterhead-logo-size {
    width: 100%;
    accent-color: #2563eb;
    cursor: pointer;
}

.pkbm-settings output[data-logo-size-value] {
    color: #1d4ed8;
    font-weight: 700;
}

.activity-content-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.activity-content-toolbar .sp-btn-secondary {
    min-width: 2.4rem;
    justify-content: center;
    padding-inline: 0.65rem;
}

.activity-content-toolbar__separator {
    width: 1px;
    align-self: stretch;
    margin-inline: 0.2rem;
    background: #dbe3ee;
}

.activity-content-editor {
    min-height: 16rem;
    max-height: 55vh;
    overflow: auto;
    border: 1px solid #c5d2e2;
    border-radius: 0.65rem;
    background: #f8fbff;
    color: #17324f;
    padding: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.6;
}

.activity-content-editor:focus {
    border-color: #5794e8;
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 3px rgb(23 105 210 / 0.13);
}

.activity-content-editor > :first-child {
    margin-top: 0;
}

.activity-content-editor > :last-child {
    margin-bottom: 0;
}

.activity-content-editor blockquote {
    margin: 0.5rem 0 0.5rem 1.5rem;
    border-left: 3px solid #bfdbfe;
    padding-left: 0.75rem;
    color: #334155;
}

.activity-administration__name {
    display: -webkit-box;
    min-width: 0;
    max-width: 46rem;
    overflow: hidden;
    margin: 0;
    color: #17324f;
    font-size: 0.96rem;
    font-weight: 650;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.pkbm-settings .letterhead-row__remove {
    flex: 0 0 auto;
}

.pkbm-settings .settings-form input[type="file"] {
    min-height: 3rem;
    padding: 0.35rem 0.5rem;
    color: #52657d;
    font-size: 0.78rem;
}

.pkbm-settings .settings-form input[type="file"]::file-selector-button {
    margin-right: 0.7rem;
    border: 1px solid #d6e5fa;
    border-radius: 0.45rem;
    background: #eff6ff;
    padding: 0.45rem 0.7rem;
    color: #1769d2;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
}

.pkbm-settings .settings-form input[type="file"]::file-selector-button:hover {
    background: #e2efff;
}

.settings-history-count {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    background: #eff6ff;
    padding: 0.25rem 0.6rem;
    color: #2563eb;
    font-size: 0.65rem;
    font-weight: 700;
}

.settings-active-period {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0.85rem 1rem;
    border: 1px solid #ccebdc;
    border-radius: 0.65rem;
    background: linear-gradient(110deg, #f0fdf7, #fbfffd);
    padding: 0.65rem 0.8rem;
}

.settings-active-period__icon {
    display: grid;
    width: 2rem;
    height: 2rem;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 0.6rem;
    background: #d9f6e8;
    color: #078354;
    font-size: 0.9rem;
}

.settings-active-period__copy,
.settings-active-period__label,
.settings-active-period__value {
    display: block;
}

.settings-active-period__label {
    color: #5b7a6c;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.settings-active-period__value {
    margin-top: 0.1rem;
    color: #08764f;
    font-size: 0.75rem;
    font-weight: 700;
}

.pkbm-settings .sp-status-active,
.settings-status-inactive,
.signature-status {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    white-space: nowrap;
    border-radius: 999px;
    padding: 0.28rem 0.55rem;
    font-size: 0.64rem;
    font-weight: 700;
}

.pkbm-settings .sp-status-active {
    background: #eafaf2;
    color: #08764f;
}

.settings-status-dot {
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 50%;
    background: #10a66a;
    box-shadow: 0 0 0 2px rgb(16 166 106 / 0.14);
}

.settings-status-inactive {
    background: #f1f4f8;
    color: #718096;
}

.signature-status--present {
    background: #effaf5;
    color: #078354;
}

.signature-status--missing {
    background: #fff5f5;
    color: #c2414f;
}

.settings-row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.3rem;
}

.settings-icon-action {
    display: inline-grid;
    width: 1.9rem;
    height: 1.9rem;
    place-items: center;
    border: 1px solid #e3eaf3;
    border-radius: 0.5rem;
    background: #fff;
    color: #61728a;
    font-size: 0.76rem;
    text-decoration: none;
    transition: background-color 130ms ease, color 130ms ease, border-color 130ms ease;
}

.settings-icon-action:hover {
    border-color: #c9dcf5;
    background: #eff6ff;
    color: #1769d2;
}

.settings-icon-action--activate {
    border-color: #ccebdc;
    background: #f0fdf7;
    color: #078354;
}

.settings-icon-action--activate:hover {
    border-color: #9cddbd;
    background: #dcfce9;
    color: #066a43;
}

.settings-icon-action--delete:hover {
    border-color: #fecdd3;
    background: #fff1f2;
    color: #be123c;
}

.budget-row-status {
    display: inline-block;
    max-width: 7rem;
    color: #64748b;
    font-size: 0.65rem;
    line-height: 1.25;
    text-align: right;
}

.budget-row-status[data-state="saved"] {
    color: #078354;
}

.budget-row-status[data-state="error"] {
    color: #be123c;
}

.settings-delete-signature {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #be123c;
    font-size: 0.72rem;
    font-weight: 600;
}

.settings-empty-state {
    display: grid;
    justify-items: center;
    padding: 2.5rem 1rem;
    color: #748399;
    text-align: center;
}

.settings-empty-state > span {
    display: grid;
    width: 2.8rem;
    height: 2.8rem;
    place-items: center;
    margin-bottom: 0.7rem;
    border-radius: 0.8rem;
    background: #eff6ff;
    color: #3478ce;
    font-size: 1.1rem;
}

.settings-empty-state strong {
    color: #334b68;
    font-size: 0.82rem;
}

.settings-empty-state p {
    margin: 0.3rem 0 0;
    font-size: 0.72rem;
}

.public-exam-order h1.public-exam-order__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.2;
}

.public-exam-order h2.public-exam-order__card-title {
    font-size: 1.1rem;
    line-height: 1.4;
}

.public-exam-order h3.public-exam-order__section-title {
    font-size: 0.9rem;
    line-height: 1.4;
}

.public-exam-order h3.public-exam-order__summary-title {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    line-height: 1.4;
}

@media (max-width: 767px) {
    .pkbm-settings__heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.75rem;
        padding: 1.15rem 1.25rem 1.25rem;
    }

    .settings-form-card {
        order: 0;
    }

    .settings-history-card {
        order: 1;
    }

    .pkbm-dashboard__heading {
        padding: 1.15rem 1.25rem 1.25rem;
    }

}

@media (min-width: 640px) and (max-width: 767px) {
    .pkbm-dashboard__heading,
    .pkbm-settings__heading {
        padding-inline: 1.5rem;
    }

}

@media (min-width: 1080px) {
    .pkbm-dashboard .pkbm-stat-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .pkbm-dashboard__heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.75rem;
    }

    .pkbm-dashboard .pkbm-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pkbm-dashboard .pkbm-stat-card:nth-child(2) {
        border-right: 0;
    }

    .pkbm-dashboard .pkbm-stat-card:nth-child(-n + 2) {
        border-bottom: 1px solid #edf1f6;
    }
}

@media (max-width: 420px) {
    .pkbm-overview-card__period {
        display: none;
    }

    .pkbm-dashboard .pkbm-stat-card {
        gap: 0.55rem;
        padding-inline: 0.55rem;
    }

    .pkbm-dashboard .pkbm-stat-card__icon {
        width: 2rem;
        height: 2rem;
        font-size: 0.9rem;
    }
}

@keyframes account-menu-in {
    from {
        opacity: 0;
        transform: translateY(-4px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.workspace-shell.sidebar-collapsed .app-sidebar {
    width: 5rem;
}

.workspace-shell.sidebar-collapsed .app-sidebar .nav-label,
.workspace-shell.sidebar-collapsed .app-sidebar .sidebar-heading,
.workspace-shell.sidebar-collapsed .app-sidebar .sidebar-submenu {
    display: none;
}

.workspace-shell.sidebar-collapsed .app-sidebar .sidebar-nav-item {
    justify-content: center;
    gap: 0;
    padding: 0.45rem;
}

.workspace-shell.sidebar-collapsed .app-sidebar .sidebar-nav-item--active::after {
    display: none;
}

.workspace-shell.sidebar-collapsed .app-sidebar .sidebar-heading::before {
    width: 0.42rem;
    height: 0.42rem;
    margin-inline: auto;
}

.workspace-shell.sidebar-collapsed .app-sidebar .sidebar-footer {
    justify-content: center;
    margin-inline: 0.65rem;
    padding: 0.45rem;
}

.workspace-shell.sidebar-collapsed .app-sidebar .sidebar-brand {
    justify-content: center;
    padding-inline: 0.5rem;
}

.workspace-shell.sidebar-collapsed .app-sidebar .sidebar-brand__link {
    flex: none;
    width: 100%;
    justify-content: center;
    padding: 0.35rem;
}

.dashboard-hero {
    background:
        radial-gradient(circle at 88% 20%, rgb(91 192 255 / 0.24), transparent 25%),
        linear-gradient(115deg, #075dc8 0%, #0879ec 58%, #1595e8 100%);
}

.dashboard-module-card {
    min-height: 12rem;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.dashboard-module-card:hover {
    transform: translateY(-2px);
    border-color: #bfdbfe;
    box-shadow: 0 12px 26px rgb(15 54 100 / 0.08);
}

@media (min-width: 768px) {
    .workspace-shell.sidebar-collapsed .app-main {
        margin-left: 5rem;
    }
}

@media (max-width: 767px) {
    .app-sidebar {
        max-width: min(16rem, calc(100vw - 3rem));
    }
}

.legacy-login {
    display: flex;
    width: 100%;
    min-height: 100vh;
    background: #fff;
    font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
}

.legacy-login__info {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 6.25%;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(13, 110, 253, 0.9), rgba(0, 74, 173, 0.9)),
        var(--login-background-image) center / cover no-repeat;
}

.legacy-login__badge-wrap {
    margin-bottom: 20px;
}

.legacy-login__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 999px;
    background: #fff;
    color: #0d6efd;
    font-size: 13px;
    font-weight: 700;
}

.legacy-login__heading {
    margin: 0 0 20px;
    font-size: clamp(36px, 3.1vw, 48px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.legacy-login__lead {
    max-width: 700px;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 17px;
    line-height: 1.7;
}

.legacy-login__features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.legacy-login__feature {
    margin: 0;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.legacy-login__feature-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.legacy-login__feature-icon {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.25);
    font-size: 20px;
}

.legacy-login__feature h2 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.legacy-login__feature p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    line-height: 1.6;
}

.legacy-login__trust {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.legacy-login__organizations {
    display: flex;
    flex: 0 0 auto;
    padding-left: 0;
}

.legacy-login__organizations span {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    margin-left: -9px;
    border: 2px solid #0d6efd;
    border-radius: 50%;
    background: #f8f9fa;
    color: #0d6efd;
    font-size: 9px;
    font-weight: 700;
}

.legacy-login__organizations span:first-child {
    margin-left: 0;
}

.legacy-login__trust p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    line-height: 1.6;
}

.legacy-login__form-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    background: #fff;
}

.legacy-login__form-box {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.legacy-login__logo {
    display: block;
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
    object-fit: contain;
}

.legacy-login__welcome h2 {
    margin: 0 0 8px;
    color: #1b2559;
    font-size: 28px;
    font-weight: 700;
}

.legacy-login__welcome p {
    margin: 0 0 30px;
    color: #a3aed0;
    font-size: 15px;
}

.legacy-login__alert {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f8d7da;
    color: #842029;
    font-size: 13px;
}

.legacy-login__field {
    margin-bottom: 16px;
}

.legacy-login__field--password {
    margin-bottom: 24px;
}

.legacy-login__label {
    display: block;
    margin-bottom: 8px;
    color: #1b2559;
    font-size: 14px;
    font-weight: 600;
}

.legacy-login__input-group {
    display: flex;
    min-height: 49px;
    overflow: hidden;
    border: 1px solid #e0e5f2;
    border-radius: 12px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.legacy-login__input-group:focus-within {
    border-color: #0d6efd;
    box-shadow: 0 4px 20px rgba(13, 110, 253, 0.1);
}

.legacy-login__input-icon {
    display: grid;
    width: 48px;
    flex: 0 0 auto;
    place-items: center;
    color: #6c757d;
    font-size: 17px;
}

.legacy-login__input-group input {
    width: 100%;
    min-width: 0;
    padding: 12px 8px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #212529;
    font-size: 14px;
}

.legacy-login__input-group input::placeholder {
    color: #adb5bd;
}

.legacy-login__password-toggle {
    width: 48px;
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    color: #6c757d;
    font-size: 17px;
}

.legacy-login__password-toggle:hover {
    color: #0d6efd;
}

.legacy-login__actions {
    display: grid;
    gap: 10px;
}

.legacy-login__submit,
.legacy-login__register {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.legacy-login__submit {
    border: 0;
    background: #0d6efd;
    color: #fff;
}

.legacy-login__submit:hover {
    transform: translateY(-2px);
    background: #0b5ed7;
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.2);
}

.legacy-login__register {
    margin-top: 2px;
    border: 1px solid #e0e5f2;
    color: #0d6efd;
}

.legacy-login__register:hover {
    background: #f4f7fe;
}

.legacy-login__student-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding: 12px;
    border: 1px solid #e0e5f2;
    border-radius: 12px;
    color: #1b2559;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.legacy-login__student-link:hover {
    border-color: #0d6efd;
    background: #f4f7fe;
    color: #0d6efd;
}

.legacy-login__copyright {
    margin: 22px 0 0;
    color: #6c757d;
    font-size: 12px;
    text-align: center;
}

@media (max-width: 992px) {
    .legacy-login__info {
        display: none;
    }

    .legacy-login__form-section {
        min-height: 100vh;
        padding: 32px 24px;
        background: #f4f7fe;
    }

    .legacy-login__form-box {
        padding: 32px;
        border: 1px solid #edf0f7;
        border-radius: 20px;
        background: #fff;
        box-shadow: 0 10px 30px rgba(27, 37, 89, 0.08);
    }
}

@media (max-width: 480px) {
    .legacy-login__form-section {
        padding: 16px;
    }

    .legacy-login__form-box {
        padding: 24px 20px;
    }

    .legacy-login__welcome h2 {
        font-size: 25px;
    }
}

.sp-table > tbody > tr > td {
    border-bottom: 1px solid #e2e8f0;
}

.sp-table > tbody > tr:last-child > td {
    border-bottom: 0;
}

.pkbm-students nav[role="navigation"] .shadow-sm {
    gap: 0.25rem;
    box-shadow: none !important;
}

.pkbm-students nav[role="navigation"] a,
.pkbm-students nav[role="navigation"] [aria-current="page"] > span,
.pkbm-students nav[role="navigation"] [aria-disabled="true"] > span {
    margin: 0;
    border: 0 !important;
    border-radius: 0.6rem;
    text-decoration: none;
}

.pkbm-students nav[role="navigation"] a {
    background: transparent;
    color: #64748b;
}

.pkbm-students nav[role="navigation"] a:hover {
    background: #eff6ff;
    color: #1769d2;
}

.pkbm-students nav[role="navigation"] [aria-current="page"] > span {
    background: #1769d2;
    color: #fff;
}

.pkbm-students nav[role="navigation"] [aria-disabled="true"] > span {
    background: #f8fafc;
    color: #94a3b8;
}

/* Kartu sorotan biru (gaya "Daily Sales") untuk dashboard Admin Kabupaten. */
.pkbm-highlight-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .35rem;
    border-radius: 1rem;
    padding: 1.5rem;
    color: #fff;
    background: linear-gradient(160deg, #2563eb 0%, #1d4ed8 55%, #1e40af 100%);
    box-shadow: 0 18px 40px -20px rgba(37, 99, 235, .65);
    position: relative;
    overflow: hidden;
}

.pkbm-highlight-card::after {
    content: "";
    position: absolute;
    inset: auto -30% -55% auto;
    width: 22rem;
    height: 22rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, .08);
}

.pkbm-highlight-card__label {
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .82);
}

.pkbm-highlight-card__period {
    font-size: .8rem;
    color: rgba(255, 255, 255, .68);
}

.pkbm-highlight-card__value {
    margin-top: .35rem;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
}

.pkbm-highlight-card__meter {
    margin-top: .85rem;
    height: .5rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, .25);
    overflow: hidden;
}

.pkbm-highlight-card__meter-fill {
    display: block;
    height: 100%;
    border-radius: 9999px;
    background: #fff;
    transition: width .4s ease;
}

.pkbm-highlight-card__note {
    margin-top: .5rem;
    font-size: .78rem;
    color: rgba(255, 255, 255, .82);
}
