:root {
    --primary: oklch(0.56 0.18 255);
    --primary-hover: oklch(0.49 0.18 255);
}

[x-cloak] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
    font: inherit;
}

.ui-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.25rem 0.625rem;
    font-size: 0.6875rem;
    font-weight: 700;
}

.ts-control {
    min-height: 36px;
    border-color: oklch(0.88 0.012 255) !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    font-size: 0.8125rem !important;
}

.ts-wrapper.focus .ts-control {
    border-color: oklch(0.45 0.10 255) !important;
}

/* ===== Auth (Login) =====================================================
   Direction: editorial / civic document. Flat surfaces, no gradients,
   asymmetric two-column layout, generous negative space, fits viewport. */

.auth-shell {
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    background: oklch(0.985 0.004 90);
    color: oklch(0.18 0.012 255);
    font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
}

.auth-frame {
    flex: 1;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 1.75rem 1.75rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-height: 0;
}

@media (min-width: 768px) {
    .auth-frame {
        padding: 2.25rem 3rem 1.75rem;
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .auth-frame {
        padding: 2.5rem 4rem 2rem;
    }
}

.auth-rule {
    height: 1px;
    background: oklch(0.18 0.012 255);
    flex: none;
}

.auth-stage {
    flex: 1;
    min-height: 0;
    display: grid;
    gap: 2rem 4rem;
    grid-template-columns: 1fr;
    align-items: center;
}

@media (min-width: 1024px) {
    .auth-stage {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.9fr);
        gap: 5rem;
    }
}

/* ----- Identity (left) ------------------------------------------------- */

.auth-identity {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-identity__logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    display: block;
}

@media (min-width: 1024px) {
    .auth-identity__logo {
        width: 76px;
        height: 76px;
    }
}

.auth-identity__kop {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.auth-identity__pemda {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: oklch(0.45 0.018 255);
}

.auth-identity__nama {
    margin-top: 0.125rem;
    font-weight: 700;
    font-size: 1.625rem;
    letter-spacing: -0.015em;
    color: oklch(0.18 0.012 255);
}

.auth-identity__sep {
    width: 56px;
    height: 1px;
    background: oklch(0.18 0.012 255);
    border: 0;
    margin: 0.25rem 0 0.125rem;
}

.auth-identity__title {
    font-weight: 700;
    font-size: clamp(1.875rem, 4vw, 2.875rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: oklch(0.18 0.012 255);
    max-width: 18ch;
}

.auth-identity__divisi {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    letter-spacing: 0.01em;
    color: oklch(0.40 0.018 255);
}

/* ----- Form (right) ---------------------------------------------------- */

.auth-form-wrap {
    width: 100%;
    max-width: 26rem;
    background: oklch(0.995 0.003 255);
    border: 1px solid oklch(0.88 0.012 255);
    padding: 1.75rem 1.75rem;
}

@media (min-width: 1024px) {
    .auth-form-wrap {
        margin-left: auto;
        padding: 2rem;
    }
}

.auth-form-wrap__header {
    display: flex;
    align-items: baseline;
    gap: 0.875rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid oklch(0.92 0.010 255);
}

.auth-form-wrap__step {
    font-weight: 600;
    font-size: 0.8125rem;
    color: oklch(0.55 0.018 255);
    letter-spacing: 0.08em;
}

.auth-form-wrap__title {
    font-weight: 700;
    font-size: 1.375rem;
    letter-spacing: -0.01em;
    color: oklch(0.18 0.012 255);
}

.auth-form {
    display: grid;
    gap: 1rem;
}

.auth-field__label {
    display: block;
    margin-bottom: 0.4375rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: oklch(0.40 0.018 255);
}

.auth-field__control {
    position: relative;
    display: block;
}

.auth-input {
    width: 100%;
    min-height: 42px;
    border: 0;
    border-bottom: 1px solid oklch(0.78 0.012 255);
    border-radius: 0;
    background: transparent;
    padding: 0.5rem 0;
    font-size: 0.9375rem;
    color: oklch(0.18 0.012 255);
    font-family: inherit;
    transition: border-color 180ms ease-out;
}

.auth-input:focus {
    outline: none;
    border-bottom-color: oklch(0.45 0.10 255);
}

.auth-input--pad {
    padding-right: 2.5rem;
}

.auth-field__toggle {
    position: absolute;
    right: -0.25rem;
    bottom: 0.125rem;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: oklch(0.50 0.018 255);
    background: transparent;
    border: 0;
    cursor: pointer;
    transition: color 150ms ease-out;
}

.auth-field__toggle:hover {
    color: oklch(0.45 0.10 255);
}

.auth-field__toggle:focus-visible {
    outline: 2px solid oklch(0.45 0.10 255 / 0.4);
    outline-offset: 2px;
    border-radius: 4px;
}

.auth-submit {
    margin-top: 0.375rem;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    border: 0;
    background: oklch(0.18 0.012 255);
    color: oklch(0.985 0.004 90);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-family: inherit;
    cursor: pointer;
    transition: background 180ms ease-out;
}

.auth-submit:hover {
    background: oklch(0.28 0.012 255);
}

.auth-submit i {
    font-size: 1.125rem;
    transition: transform 180ms ease-out;
}

.auth-submit:hover i {
    transform: translateX(3px);
}

.auth-submit:focus-visible {
    outline: 2px solid oklch(0.45 0.10 255 / 0.4);
    outline-offset: 3px;
}

.auth-demo {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid oklch(0.92 0.010 255);
    font-size: 0.75rem;
    line-height: 1.6;
    color: oklch(0.45 0.018 255);
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    align-items: center;
}

.auth-demo code {
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.75rem;
    color: oklch(0.18 0.012 255);
}

.auth-demo__sep {
    color: oklch(0.65 0.012 255);
}

/* ----- Footer ---------------------------------------------------------- */

.auth-foot {
    flex: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: oklch(0.45 0.018 255);
    padding-top: 1rem;
    border-top: 1px solid oklch(0.88 0.012 255);
}

/* Short viewport guard (mobile landscape, tiny laptops) */
@media (max-height: 640px) {
    .auth-shell { height: auto; min-height: 100vh; overflow: auto; }
    .auth-stage { align-items: start; }
}

/* ===== App shell (after login) ==========================================
   Direction: matches login. Paper background, ink near-black accents,
   single accent (electric blue), no gradients, generous whitespace.    */

.app-body {
    background: oklch(0.985 0.004 90);
    color: oklch(0.18 0.012 255);
    font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    font-size: 14px;
}

/* ----- Sidebar (desktop) --------------------------------------------- */

.app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 15rem;
    background: oklch(0.985 0.004 90);
    border-right: 1px solid oklch(0.88 0.012 255);
    padding: 1rem 0.875rem 1rem;
    display: none;
    flex-direction: column;
    z-index: 40;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .app-sidebar {
        display: flex;
    }
}

.app-sidebar__brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.25rem 0.375rem 0.875rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid oklch(0.92 0.010 255);
    text-decoration: none;
    color: inherit;
    flex: none;
}

.app-sidebar__logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex: none;
}

.app-sidebar__brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    min-width: 0;
}

.app-sidebar__brand-eyebrow {
    font-size: 0.5625rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: oklch(0.45 0.018 255);
}

.app-sidebar__brand-name {
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: oklch(0.18 0.012 255);
}

.app-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.0625rem;
    padding: 0.125rem 0;
    min-height: 0;
}

.app-nav__section {
    margin: 0.625rem 0.5rem 0.25rem;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: oklch(0.55 0.018 255);
}

.app-nav__section:first-child {
    margin-top: 0;
}

.app-nav__item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0.625rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: oklch(0.30 0.012 255);
    text-decoration: none;
    border-radius: 6px;
    transition: background 150ms ease-out, color 150ms ease-out;
}

.app-nav__item i {
    font-size: 1rem;
    color: oklch(0.45 0.018 255);
    transition: color 150ms ease-out;
}

.app-nav__item:hover {
    background: oklch(0.95 0.006 90);
    color: oklch(0.18 0.012 255);
}

.app-nav__item:hover i {
    color: oklch(0.18 0.012 255);
}

.app-nav__item--active {
    background: oklch(0.18 0.012 255);
    color: oklch(0.985 0.004 90);
    font-weight: 600;
}

.app-nav__item--active i {
    color: oklch(0.985 0.004 90);
}

.app-nav__item--active::before {
    content: "";
    position: absolute;
    left: -0.875rem;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 16px;
    background: oklch(0.45 0.10 255);
    border-radius: 0 2px 2px 0;
}

.app-nav__item--danger {
    color: oklch(0.50 0.18 25);
}

.app-nav__item--danger i {
    color: oklch(0.50 0.18 25);
}

.app-sidebar__foot {
    margin-top: 0.5rem;
    padding-top: 0.625rem;
    border-top: 1px solid oklch(0.92 0.010 255);
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex: none;
}

.app-sidebar__user {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem;
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    transition: background 150ms ease-out;
    min-width: 0;
}

.app-sidebar__user:hover {
    background: oklch(0.95 0.006 90);
}

.app-sidebar__avatar {
    flex: none;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: oklch(0.18 0.012 255);
    color: oklch(0.985 0.004 90);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.app-sidebar__avatar-img {
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.app-sidebar__user-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    min-width: 0;
}

.app-sidebar__user-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: oklch(0.18 0.012 255);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-sidebar__user-role {
    font-size: 0.625rem;
    color: oklch(0.45 0.018 255);
    margin-top: 1px;
}

.app-sidebar__logout {
    flex: none;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: oklch(0.45 0.018 255);
    transition: background 150ms ease-out, color 150ms ease-out;
    text-decoration: none;
}

.app-sidebar__logout:hover {
    background: oklch(0.94 0.04 25);
    color: oklch(0.50 0.18 25);
}

/* ----- Mobile bar ------------------------------------------------------ */

.app-mobile-bar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: oklch(0.985 0.004 90);
    border-bottom: 1px solid oklch(0.88 0.012 255);
}

.app-mobile-bar__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 1rem;
}

.app-mobile-bar__brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
}

.app-mobile-bar__logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.app-mobile-bar__toggle {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 1px solid oklch(0.88 0.012 255);
    background: oklch(0.985 0.004 90);
    color: oklch(0.18 0.012 255);
    font-size: 1.125rem;
    cursor: pointer;
}

.app-mobile-bar__nav {
    display: flex;
    flex-direction: column;
    gap: 0.0625rem;
    padding: 0.375rem 1rem 0.875rem;
    border-top: 1px solid oklch(0.92 0.010 255);
}

/* ----- Topbar ---------------------------------------------------------- */

.app-topbar {
    background: oklch(0.985 0.004 90);
    border-bottom: 1px solid oklch(0.88 0.012 255);
    padding: 0.875rem 1.25rem;
}

@media (min-width: 1024px) {
    .app-topbar {
        margin-left: 15rem;
        padding: 0.875rem 1.75rem;
    }
}

.app-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.app-topbar__crumb {
    display: inline-block;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: oklch(0.55 0.018 255);
}

.app-topbar__page {
    margin-top: 0.125rem;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: oklch(0.18 0.012 255);
}

.app-topbar__meta {
    display: inline-flex;
    align-items: center;
    gap: 0.4375rem;
    font-size: 0.75rem;
    color: oklch(0.40 0.018 255);
}

.app-topbar__meta-icon {
    font-size: 0.9375rem;
    color: oklch(0.55 0.018 255);
}

/* ----- Main ------------------------------------------------------------ */

.app-main {
    padding: 1rem 1rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 1024px) {
    .app-main {
        margin-left: 15rem;
        padding: 1.25rem 1.75rem 2.25rem;
        gap: 1.125rem;
    }
}

/* ----- Dashboard top bar (greeting + filters) ------------------------ */

.dash-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid oklch(0.92 0.010 255);
    flex-wrap: wrap;
}

.dash-bar__left {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    min-width: 0;
}

.dash-bar__greet {
    font-size: 0.8125rem;
    color: oklch(0.45 0.018 255);
    font-weight: 500;
}

.dash-bar__name {
    font-size: 1.0625rem;
    font-weight: 700;
    color: oklch(0.18 0.012 255);
    letter-spacing: -0.015em;
    line-height: 1.2;
}

.dash-bar__filters {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dash-bar__filters-label {
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: oklch(0.55 0.018 255);
    margin-right: 0.125rem;
}

/* ----- Custom dropdown (pop) ----------------------------------------- */

.dash-pop {
    position: relative;
}

.dash-pop__trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    height: 32px;
    padding: 0 0.625rem 0 0.75rem;
    border: 1px solid oklch(0.88 0.012 255);
    background: oklch(0.995 0.003 255);
    color: oklch(0.18 0.012 255);
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: -0.005em;
    transition: border-color 150ms ease-out, background 150ms ease-out;
}

.dash-pop__trigger:hover {
    border-color: oklch(0.65 0.012 255);
    background: oklch(0.985 0.004 90);
}

.dash-pop__trigger:focus-visible {
    outline: none;
    border-color: oklch(0.45 0.10 255);
    box-shadow: 0 0 0 3px oklch(0.45 0.10 255 / 0.18);
}

.dash-pop__chev {
    font-size: 0.9375rem;
    color: oklch(0.55 0.018 255);
    transition: transform 180ms ease-out;
}

.dash-pop__chev.is-up {
    transform: rotate(180deg);
}

.dash-pop__menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 100%;
    z-index: 30;
    background: oklch(0.995 0.003 255);
    border: 1px solid oklch(0.88 0.012 255);
    border-radius: 6px;
    box-shadow: 0 8px 24px -10px oklch(0.18 0.012 255 / 0.18);
    padding: 0.25rem;
    max-height: 280px;
    overflow-y: auto;
}

.dash-pop__menu--m {
    min-width: 10rem;
}

.dash-pop__opt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.4375rem 0.625rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: oklch(0.18 0.012 255);
    background: transparent;
    border: 0;
    border-radius: 4px;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    transition: background 120ms ease-out;
}

.dash-pop__opt:hover {
    background: oklch(0.95 0.006 90);
}

.dash-pop__opt.is-active {
    background: oklch(0.18 0.012 255);
    color: oklch(0.985 0.004 90);
    font-weight: 600;
}

.dash-pop__check {
    font-size: 0.875rem;
    margin-left: 0.5rem;
}

/* ----- 2-column dashboard row --------------------------------------- */

.dash-row {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
    .dash-row {
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    }
}

.dash-panel--bars,
.dash-panel--donut {
    min-width: 0;
}

/* ----- Stat cards ----------------------------------------------------- */

.dash-stats {
    display: grid;
    gap: 0;
    grid-template-columns: 1fr;
    border: 1px solid oklch(0.88 0.012 255);
    background: oklch(0.995 0.003 255);
}

@media (min-width: 640px) {
    .dash-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .dash-stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .dash-stats:has(.dash-stat:nth-child(3):last-child) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.dash-stat {
    padding: 0.875rem 1rem 0.9375rem;
    border-bottom: 1px solid oklch(0.92 0.010 255);
    display: flex;
    flex-direction: column;
    gap: 0.3125rem;
    position: relative;
    transition: background 200ms ease-out;
}

.dash-stat:hover {
    background: oklch(0.985 0.004 90);
}

@media (min-width: 640px) {
    .dash-stat {
        border-bottom: 0;
        border-right: 1px solid oklch(0.92 0.010 255);
    }
    .dash-stat:nth-child(2n) {
        border-right: 0;
    }
}

@media (min-width: 1024px) {
    .dash-stat {
        border-right: 1px solid oklch(0.92 0.010 255);
    }
    .dash-stat:nth-child(2n) {
        border-right: 1px solid oklch(0.92 0.010 255);
    }
    .dash-stat:last-child {
        border-right: 0;
    }
}

.dash-stat__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dash-stat__index {
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: oklch(0.55 0.018 255);
}

.dash-stat__icon {
    font-size: 1.0625rem;
    color: oklch(0.45 0.018 255);
    transition: color 200ms ease-out, transform 200ms ease-out;
}

.dash-stat:hover .dash-stat__icon {
    color: oklch(0.45 0.10 255);
    transform: translateY(-1px);
}

.dash-stat__value {
    margin-top: 0.0625rem;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: oklch(0.18 0.012 255);
    line-height: 1;
}

.dash-stat__label {
    font-size: 0.75rem;
    color: oklch(0.45 0.018 255);
}

/* ----- Panel ---------------------------------------------------------- */

.dash-panel {
    background: oklch(0.995 0.003 255);
    border: 1px solid oklch(0.88 0.012 255);
    padding: 1rem 1.125rem 1.125rem;
    display: flex;
    flex-direction: column;
}

.dash-panel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.625rem;
    border-bottom: 1px solid oklch(0.92 0.010 255);
    flex-wrap: wrap;
}

.dash-panel__eyebrow {
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: oklch(0.55 0.018 255);
}

.dash-panel__title {
    margin-top: 0.125rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: oklch(0.18 0.012 255);
}

.dash-panel__hint {
    font-size: 0.75rem;
    color: oklch(0.45 0.018 255);
}

/* ----- Filter selects ------------------------------------------------- */

.dash-filter {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.dash-filter__select {
    height: 32px;
    padding: 0 0.625rem;
    border: 1px solid oklch(0.88 0.012 255);
    background: oklch(0.985 0.004 90);
    color: oklch(0.18 0.012 255);
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 150ms ease-out;
}

.dash-filter__select:hover {
    border-color: oklch(0.65 0.012 255);
}

.dash-filter__select:focus {
    outline: none;
    border-color: oklch(0.45 0.10 255);
}

/* ----- Empty state ---------------------------------------------------- */

.dash-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem 1rem;
    color: oklch(0.45 0.018 255);
    font-size: 0.8125rem;
    gap: 0.5rem;
}

.dash-empty__icon {
    font-size: 1.5rem;
    color: oklch(0.55 0.018 255);
}

/* ----- Chart summary -------------------------------------------------- */

.dash-chart-summary {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    flex-wrap: wrap;
}

.dash-chart-summary__item {
    display: inline-flex;
    align-items: center;
    gap: 0.4375rem;
    font-size: 0.75rem;
}

.dash-chart-summary__dot {
    width: 8px;
    height: 8px;
    border-radius: 2px;
}

.dash-chart-summary__dot.is-in {
    background: oklch(0.18 0.012 255);
}

.dash-chart-summary__dot.is-out {
    background: oklch(0.62 0.16 65);
}

.dash-chart-summary__label {
    color: oklch(0.45 0.018 255);
    font-weight: 500;
}

.dash-chart-summary__value {
    font-weight: 700;
    color: oklch(0.18 0.012 255);
    letter-spacing: -0.01em;
}

/* ----- Bar chart ------------------------------------------------------ */

.dash-bars {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.5rem;
    padding-top: 0.5rem;
    height: 220px;
}

.dash-bars__col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.dash-bars__stack {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    border-bottom: 1px solid oklch(0.92 0.010 255);
    padding-bottom: 0;
}

.dash-bars__bar {
    flex: 1;
    max-width: 28px;
    min-height: 0;
    position: relative;
    transition: opacity 180ms ease-out;
    animation: dash-bar-grow 460ms cubic-bezier(0.25, 1, 0.5, 1) backwards;
}

.dash-bars__bar:hover {
    opacity: 0.82;
}

.dash-bars__bar:hover .dash-bars__value {
    opacity: 1;
}

.dash-bars__bar--in {
    background: oklch(0.18 0.012 255);
}

.dash-bars__bar--out {
    background: oklch(0.62 0.16 65);
}

.dash-bars__col:nth-child(1) .dash-bars__bar { animation-delay: 0ms; }
.dash-bars__col:nth-child(2) .dash-bars__bar { animation-delay: 60ms; }
.dash-bars__col:nth-child(3) .dash-bars__bar { animation-delay: 120ms; }
.dash-bars__col:nth-child(4) .dash-bars__bar { animation-delay: 180ms; }
.dash-bars__col:nth-child(5) .dash-bars__bar { animation-delay: 240ms; }
.dash-bars__col:nth-child(6) .dash-bars__bar { animation-delay: 300ms; }

@keyframes dash-bar-grow {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}

.dash-bars__bar {
    transform-origin: bottom;
}

.dash-bars__value {
    position: absolute;
    top: -1.125rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.625rem;
    font-weight: 600;
    color: oklch(0.30 0.012 255);
    opacity: 0;
    transition: opacity 150ms ease-out;
    white-space: nowrap;
}

.dash-bars__label {
    font-size: 0.6875rem;
    font-weight: 500;
    color: oklch(0.45 0.018 255);
    letter-spacing: 0.02em;
}

/* ----- Donut chart ---------------------------------------------------- */

.dash-donut-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.875rem;
    padding: 0.5rem 0 0;
}

.dash-donut {
    width: 168px;
    height: 168px;
    display: block;
}

.dash-donut circle {
    transition: stroke-dashoffset 600ms ease-out, stroke-dasharray 600ms ease-out;
}

.dash-donut__total {
    font-size: 28px;
    font-weight: 700;
    fill: oklch(0.18 0.012 255);
    font-family: "Plus Jakarta Sans", sans-serif;
    letter-spacing: -0.025em;
}

.dash-donut__caption {
    font-size: 9px;
    fill: oklch(0.45 0.018 255);
    font-family: "Plus Jakarta Sans", sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
}

.dash-legend {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.dash-legend__row {
    display: grid;
    grid-template-columns: 10px 1fr auto auto;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3125rem 0;
    border-bottom: 1px dashed oklch(0.92 0.010 255);
    font-size: 0.75rem;
}

.dash-legend__row:last-child {
    border-bottom: 0;
}

.dash-legend__dot {
    width: 8px;
    height: 8px;
    border-radius: 2px;
}

.dash-legend__label {
    color: oklch(0.18 0.012 255);
    font-weight: 500;
}

.dash-legend__value {
    font-weight: 700;
    color: oklch(0.18 0.012 255);
    letter-spacing: -0.01em;
}

.dash-legend__pct {
    font-size: 0.6875rem;
    color: oklch(0.45 0.018 255);
    font-weight: 600;
    min-width: 2.5rem;
    text-align: right;
}

/* ===== Shared UI Components (tables, modals, buttons) =================== */

.app-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    height: 34px;
    padding: 0 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    font-family: inherit;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 150ms ease-out, color 150ms ease-out, border-color 150ms ease-out;
    white-space: nowrap;
}

.app-btn i { font-size: 1rem; }

.app-btn--primary {
    background: oklch(0.18 0.012 255);
    color: oklch(0.985 0.004 90);
    border-color: oklch(0.18 0.012 255);
}
.app-btn--primary:hover { background: oklch(0.28 0.012 255); }

.app-btn--secondary {
    background: oklch(0.985 0.004 90);
    color: oklch(0.18 0.012 255);
    border-color: oklch(0.88 0.012 255);
}
.app-btn--secondary:hover { background: oklch(0.95 0.006 90); }

.app-btn--ghost {
    background: transparent;
    color: oklch(0.30 0.012 255);
    border-color: oklch(0.88 0.012 255);
    padding: 0 0.625rem;
    height: 30px;
}
.app-btn--ghost:hover { background: oklch(0.95 0.006 90); color: oklch(0.18 0.012 255); border-color: oklch(0.75 0.012 255); }

.app-btn--danger-ghost {
    background: transparent;
    color: oklch(0.50 0.18 25);
    border-color: oklch(0.90 0.04 25);
    padding: 0 0.625rem;
    height: 30px;
}
.app-btn--danger-ghost:hover { background: oklch(0.96 0.03 25); border-color: oklch(0.80 0.08 25); }

.app-btn:focus-visible {
    outline: 2px solid oklch(0.45 0.10 255 / 0.4);
    outline-offset: 2px;
}

/* ----- Table ----------------------------------------------------------- */

.app-table-wrap {
    overflow-x: auto;
    margin-top: 0.25rem;
}

.app-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
}

.app-table th {
    text-align: left;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: oklch(0.45 0.018 255);
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid oklch(0.92 0.010 255);
}

.app-table td {
    padding: 0.625rem 0.75rem;
    border-bottom: 1px solid oklch(0.95 0.006 90);
    color: oklch(0.25 0.012 255);
    vertical-align: middle;
}

.app-table tbody tr:hover {
    background: oklch(0.985 0.004 90);
}

.app-table tbody tr:last-child td {
    border-bottom: 0;
}

.app-code {
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.75rem;
    color: oklch(0.35 0.012 255);
    letter-spacing: 0.01em;
}

.app-meta {
    font-size: 0.6875rem;
    color: oklch(0.50 0.018 255);
    margin-top: 1px;
}

.app-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.375rem;
    align-items: center;
}

/* ----- Overlay + Modal ------------------------------------------------- */

.app-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    background: oklch(0.18 0.012 255 / 0.32);
    padding: 1rem;
}

.app-modal {
    background: oklch(0.995 0.003 255);
    border: 1px solid oklch(0.88 0.012 255);
    width: 100%;
    max-width: 28rem;
    max-height: 92vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.app-modal--wide {
    max-width: 38rem;
}

.app-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid oklch(0.92 0.010 255);
}

.app-modal__title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: oklch(0.18 0.012 255);
}

.app-modal__close {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 0;
    background: transparent;
    color: oklch(0.45 0.018 255);
    cursor: pointer;
    transition: background 150ms ease-out;
}
.app-modal__close:hover { background: oklch(0.95 0.006 90); }

.app-modal__body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.app-modal__body--grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.875rem;
}

.app-modal__foot {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    border-top: 1px solid oklch(0.92 0.010 255);
}

/* ----- Form fields ----------------------------------------------------- */

.app-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.app-field--span {
    grid-column: 1 / -1;
}

.app-field__label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: oklch(0.45 0.018 255);
}

.app-field__input {
    width: 100%;
    min-height: 36px;
    padding: 0.4375rem 0.625rem;
    border: 1px solid oklch(0.88 0.012 255);
    border-radius: 6px;
    background: oklch(0.985 0.004 90);
    font-size: 0.8125rem;
    font-family: inherit;
    color: oklch(0.18 0.012 255);
    transition: border-color 150ms ease-out;
}

select.app-field__input {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23777' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.625rem center;
    background-size: 12px;
    padding-right: 2rem;
    cursor: pointer;
}

.app-field__input:focus {
    outline: none;
    border-color: oklch(0.45 0.10 255);
}

textarea.app-field__input {
    resize: vertical;
    min-height: 60px;
}

/* ----- Links ----------------------------------------------------------- */

.app-link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: oklch(0.45 0.10 255);
    text-decoration: none;
    transition: color 150ms ease-out;
}
.app-link:hover { color: oklch(0.35 0.12 255); text-decoration: underline; }

/* ----- Detail meta grid ------------------------------------------------ */

.app-detail-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 1.5rem;
}

.app-detail-meta__item {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.app-detail-meta__item--wide {
    grid-column: 1 / -1;
}

.app-detail-meta__label {
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: oklch(0.55 0.018 255);
}

.app-detail-meta__value {
    font-size: 0.8125rem;
    color: oklch(0.18 0.012 255);
    line-height: 1.5;
}

/* ----- Detail actions bar (top, above print report) -------------------- */

.app-detail-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

/* ----- Timeline (riwayat status) --------------------------------------- */

.app-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-left: 1rem;
    border-left: 1px solid oklch(0.92 0.010 255);
}

.app-timeline__item {
    position: relative;
    padding: 0.625rem 0 0.625rem 1rem;
    border-bottom: 1px dashed oklch(0.95 0.006 90);
}

.app-timeline__item:last-child { border-bottom: 0; }

.app-timeline__dot {
    position: absolute;
    left: -1.3125rem;
    top: 0.875rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: oklch(0.55 0.018 255);
    border: 2px solid oklch(0.985 0.004 90);
}

.app-timeline__dot[data-status="diajukan"] { background: oklch(0.55 0.16 240); }
.app-timeline__dot[data-status="diteruskan"] { background: oklch(0.50 0.16 280); }
.app-timeline__dot[data-status="revisi"] { background: oklch(0.65 0.16 75); }
.app-timeline__dot[data-status="ditolak"] { background: oklch(0.55 0.18 25); }
.app-timeline__dot[data-status="disetujui"] { background: oklch(0.62 0.16 145); }
.app-timeline__dot[data-status="selesai"] { background: oklch(0.45 0.018 255); }

.app-timeline__title {
    font-size: 0.8125rem;
    font-weight: 700;
    color: oklch(0.18 0.012 255);
}

.app-timeline__meta {
    font-size: 0.6875rem;
    color: oklch(0.50 0.018 255);
    margin-top: 0.125rem;
}

.app-timeline__note {
    font-size: 0.8125rem;
    color: oklch(0.35 0.012 255);
    margin-top: 0.375rem;
    line-height: 1.5;
}

/* ----- Report index cards ---------------------------------------------- */

.app-report-grid {
    display: grid;
    gap: 0;
}

.app-report-card {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 0.75rem;
    text-decoration: none;
    color: oklch(0.18 0.012 255);
    border-bottom: 1px solid oklch(0.95 0.006 90);
    transition: background 150ms ease-out, padding-left 200ms ease-out;
}

.app-report-card:last-child { border-bottom: 0; }

.app-report-card:hover {
    background: oklch(0.985 0.004 90);
    padding-left: 1rem;
}

.app-report-card__icon {
    flex: none;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid oklch(0.88 0.012 255);
    border-radius: 6px;
    font-size: 1.125rem;
    color: oklch(0.35 0.012 255);
    transition: background 180ms ease-out, color 180ms ease-out, border-color 180ms ease-out;
}

.app-report-card:hover .app-report-card__icon {
    background: oklch(0.18 0.012 255);
    color: oklch(0.985 0.004 90);
    border-color: oklch(0.18 0.012 255);
}

.app-report-card__title {
    font-size: 0.875rem;
    font-weight: 700;
}

.app-report-card__desc {
    font-size: 0.75rem;
    color: oklch(0.45 0.018 255);
    margin-top: 1px;
}

.app-report-card__arrow {
    margin-left: auto;
    font-size: 1.125rem;
    color: oklch(0.55 0.018 255);
    transition: transform 180ms ease-out, color 180ms ease-out;
}

.app-report-card:hover .app-report-card__arrow {
    transform: translateX(3px);
    color: oklch(0.18 0.012 255);
}

/* ----- Print / Surat format -------------------------------------------- */

.print-kop {
    text-align: center;
    padding-bottom: 0.875rem;
    border-bottom: 2px solid oklch(0.18 0.012 255);
    margin-bottom: 1rem;
}

.print-kop__instansi {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: oklch(0.18 0.012 255);
}

.print-kop__sub {
    font-size: 0.8125rem;
    color: oklch(0.45 0.018 255);
    margin-top: 0.25rem;
}

.print-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1.5rem;
    margin-bottom: 1rem;
}

.print-meta__item {
    display: flex;
    flex-direction: column;
    gap: 0.0625rem;
}

.print-meta__label {
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: oklch(0.55 0.018 255);
}

.print-meta__value {
    font-size: 0.8125rem;
    color: oklch(0.18 0.012 255);
}

.print-body {
    font-size: 0.8125rem;
    line-height: 1.7;
    color: oklch(0.25 0.012 255);
    margin-bottom: 1rem;
}

.print-ttd {
    margin-top: 2.5rem;
    display: flex;
    justify-content: flex-end;
}

.print-ttd__block {
    text-align: center;
    min-width: 10rem;
}

.print-ttd__role {
    font-size: 0.8125rem;
    color: oklch(0.45 0.018 255);
}

.print-ttd__space {
    height: 4rem;
}

.print-ttd__name {
    font-size: 0.8125rem;
    font-weight: 700;
    color: oklch(0.18 0.012 255);
    border-top: 1px solid oklch(0.18 0.012 255);
    padding-top: 0.375rem;
}

/* ----- Profile --------------------------------------------------------- */

.app-profil {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0 1.25rem;
}

.app-profil__avatar-wrap {
    flex: none;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid oklch(0.92 0.010 255);
    display: flex;
    align-items: center;
    justify-content: center;
    background: oklch(0.95 0.006 90);
}

.app-profil__avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-profil__avatar-placeholder {
    font-size: 1.25rem;
    font-weight: 700;
    color: oklch(0.45 0.018 255);
    letter-spacing: 0.02em;
}

.app-profil__info {
    min-width: 0;
}

.app-profil__name {
    font-size: 1.125rem;
    font-weight: 700;
    color: oklch(0.18 0.012 255);
    letter-spacing: -0.01em;
}

.app-profil__meta {
    font-size: 0.8125rem;
    color: oklch(0.45 0.018 255);
    margin-top: 0.125rem;
}

/* ----- Tabs ------------------------------------------------------------ */

.app-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid oklch(0.92 0.010 255);
    margin-bottom: 1.25rem;
}

.app-tabs__btn {
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: oklch(0.45 0.018 255);
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-family: inherit;
    transition: color 150ms ease-out, border-color 150ms ease-out;
    margin-bottom: -1px;
}

.app-tabs__btn:hover {
    color: oklch(0.18 0.012 255);
}

.app-tabs__btn.is-active {
    color: oklch(0.18 0.012 255);
    border-bottom-color: oklch(0.18 0.012 255);
}

/* ----- Profile form ---------------------------------------------------- */

.app-profil-form {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    max-width: 28rem;
}

.app-profil-form__foot {
    padding-top: 0.75rem;
}

.app-profil__upload {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.625rem 0;
}

.app-profil__upload-preview {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid oklch(0.92 0.010 255);
}

.app-profil__upload-empty {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px dashed oklch(0.88 0.012 255);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: oklch(0.55 0.018 255);
    font-size: 1.25rem;
}

.app-profil__upload-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

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

/* ----- Table search + pagination --------------------------------------- */

.app-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.app-search__input {
    width: 100%;
    max-width: 16rem;
    height: 32px;
    padding: 0 0.625rem 0 2rem;
    border: 1px solid oklch(0.88 0.012 255);
    border-radius: 6px;
    background: oklch(0.985 0.004 90);
    font-size: 0.8125rem;
    font-family: inherit;
    color: oklch(0.18 0.012 255);
    transition: border-color 150ms ease-out;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 0.625rem center;
}

.app-search__input:focus {
    outline: none;
    border-color: oklch(0.45 0.10 255);
}

.app-search__input::placeholder {
    color: oklch(0.55 0.018 255);
}

.app-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 0.75rem 0;
    border-top: 1px solid oklch(0.95 0.006 90);
    margin-top: 0.5rem;
}

.app-pagination__info {
    font-size: 0.75rem;
    color: oklch(0.45 0.018 255);
}

.app-pagination__btns {
    display: flex;
    gap: 0.25rem;
}

.app-pagination__btn {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid oklch(0.88 0.012 255);
    border-radius: 4px;
    background: oklch(0.985 0.004 90);
    color: oklch(0.30 0.012 255);
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 150ms ease-out, border-color 150ms ease-out;
}

.app-pagination__btn:hover:not(:disabled) {
    background: oklch(0.95 0.006 90);
    border-color: oklch(0.75 0.012 255);
}

.app-pagination__btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* ===== SweetAlert Overrides ============================================= */

/* Toast (flash messages) */
.swal-toast {
    font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif !important;
    border: 1px solid oklch(0.88 0.012 255) !important;
    box-shadow: 0 8px 24px -10px oklch(0.18 0.012 255 / 0.12) !important;
    border-radius: 6px !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.8125rem !important;
    background: oklch(0.995 0.003 255) !important;
    color: oklch(0.18 0.012 255) !important;
}

.swal-toast__title {
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    color: oklch(0.18 0.012 255) !important;
    margin: 0 !important;
    padding: 0 !important;
}

.swal-toast__bar {
    background: oklch(0.45 0.10 255) !important;
}

/* Confirm dialog */
.swal-confirm {
    font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif !important;
    border: 1px solid oklch(0.88 0.012 255) !important;
    border-radius: 0 !important;
    box-shadow: 0 16px 48px -12px oklch(0.18 0.012 255 / 0.22) !important;
    padding: 1.5rem !important;
    max-width: 22rem !important;
    width: 100% !important;
    background: oklch(0.995 0.003 255) !important;
}

.swal-confirm .swal2-icon { display: none !important; }

.swal-confirm__title {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: oklch(0.18 0.012 255) !important;
    padding: 0 !important;
    margin: 0 0 0.375rem !important;
    text-align: left !important;
}

.swal-confirm__text {
    font-size: 0.8125rem !important;
    color: oklch(0.45 0.018 255) !important;
    text-align: left !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1.5 !important;
}

.swal-confirm__actions {
    justify-content: flex-end !important;
    padding: 1.25rem 0 0 !important;
    margin: 0 !important;
    gap: 0.5rem !important;
}

.swal-confirm__btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 34px !important;
    padding: 0 0.875rem !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif !important;
    border-radius: 6px !important;
    border: 1px solid transparent !important;
    cursor: pointer !important;
    transition: background 150ms ease-out, border-color 150ms ease-out !important;
}

.swal-confirm__btn--primary {
    background: oklch(0.18 0.012 255) !important;
    color: oklch(0.985 0.004 90) !important;
    border-color: oklch(0.18 0.012 255) !important;
}
.swal-confirm__btn--primary:hover {
    background: oklch(0.28 0.012 255) !important;
}

.swal-confirm__btn--danger {
    background: oklch(0.50 0.18 25) !important;
    color: oklch(0.995 0.003 255) !important;
    border-color: oklch(0.50 0.18 25) !important;
}
.swal-confirm__btn--danger:hover {
    background: oklch(0.42 0.18 25) !important;
}

.swal-confirm__btn--secondary {
    background: oklch(0.985 0.004 90) !important;
    color: oklch(0.30 0.012 255) !important;
    border-color: oklch(0.88 0.012 255) !important;
}
.swal-confirm__btn--secondary:hover {
    background: oklch(0.95 0.006 90) !important;
    border-color: oklch(0.75 0.012 255) !important;
}

@media print {
    @page {
        size: A4;
        margin: 14mm;
    }

    body {
        background: oklch(0.995 0.004 255) !important;
        color: oklch(0.20 0.015 255) !important;
    }

    aside,
    header,
    .no-print,
    .print\:hidden {
        display: none !important;
    }

    main {
        margin: 0 !important;
        padding: 0 !important;
    }

    .print-report {
        border: 0 !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
    }

    table {
        page-break-inside: auto;
        font-size: 11px;
    }

    tr {
        page-break-inside: avoid;
        page-break-after: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
