/* Shared native form-control styling across application layouts. */
.inapsi-control {
    position: relative;
    display: inline-flex;
    max-width: 100%;
    vertical-align: middle;
}

.inapsi-select-control,
.inapsi-picker-control,
.inapsi-file-control {
    width: 100%;
}

.inapsi-control__trigger,
.inapsi-control__picker-trigger {
    position: relative;
    display: inline-flex;
    width: 100%;
    height: 40px;
    min-height: 40px;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
    padding: 0 30px 0 12px;
    overflow: hidden;
    white-space: nowrap;
    border: 1px solid #E8E5F0;
    border-radius: 8px;
    background: #FFFFFF;
    color: #1C1726;
    font: 500 12px Inter, sans-serif;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
}

.inapsi-select-control--inline {
    width: auto;
}

/* Stepper rails stay swipeable but never show scrollbars. */
.steps-nav-bar,
.stepper-bar,
.nilai-blp-wizard,
.proposal-progress-scroll,
.proposal-stepper-scroll,
.laporan-progress-scroll,
.laporan-stepper-scroll,
.krs-wizard {
    scrollbar-width: none !important;
    -ms-overflow-style: none;
}

.steps-nav-bar::-webkit-scrollbar,
.stepper-bar::-webkit-scrollbar,
.nilai-blp-wizard::-webkit-scrollbar,
.proposal-progress-scroll::-webkit-scrollbar,
.proposal-stepper-scroll::-webkit-scrollbar,
.laporan-progress-scroll::-webkit-scrollbar,
.laporan-stepper-scroll::-webkit-scrollbar,
.krs-wizard::-webkit-scrollbar {
    display: none;
}

/* Rails running edge to edge stop short of the card border when swiped. */
.lap-main-card > .steps-nav-bar,
.prop-main-card > .steps-nav-bar,
.outer-card .stepper-bar,
.nilai-blp-wizard {
    clip-path: inset(0 16px);
}

/* Rails sitting on a card's bottom edge follow its rounded corners. */
.lap-main-card > .steps-nav-bar,
.prop-main-card > .steps-nav-bar {
    border-bottom-left-radius: inherit;
    border-bottom-right-radius: inherit;
}

.inapsi-control__label {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.inapsi-control__trigger::after {
    position: absolute;
    top: 50%;
    right: 12px;
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid #766c88;
    border-bottom: 2px solid #766c88;
    transform: translateY(-70%) rotate(45deg);
}

.kaprodi-semester-select-wrap .inapsi-control__trigger::after {
    display: none;
}

.kaprodi-semester-select-wrap:has(.inapsi-select-control) > .kaprodi-select-chevron {
    display: block;
}

.mitra-select-wrap:has(.inapsi-select-control) > .mitra-select-arrow,
.adm-select-wrapper:has(.inapsi-select-control) > .adm-select-arrow {
    display: none;
}

.inapsi-control__trigger:focus-visible,
.inapsi-control__picker-trigger:focus-visible,
.inapsi-select__option:focus-visible,
.inapsi-picker__panel button:focus-visible,
.inapsi-file__button:focus-visible {
    outline: 3px solid rgb(74 27 157 / 20%);
    outline-offset: 2px;
    border-color: #4a1b9d;
}

.adm-select-wrapper:has(.inapsi-select-control) > .adm-select-arrow {
    display: none;
}

.inapsi-select__native {
    appearance: none !important;
    -webkit-appearance: none !important;
    background: none !important;
    background-image: none !important;
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.inapsi-select__list,
.inapsi-picker__panel {
    position: absolute;
    z-index: 20;
    top: calc(100% + 5px);
    left: 0;
    min-width: 100%;
    max-width: min(24rem, calc(100vw - 2rem));
    padding: 6px;
    border: 1px solid #e3deeb;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 28px rgb(36 27 51 / 16%);
}

.inapsi-select__list[hidden],
.inapsi-picker__panel[hidden] {
    display: none;
}

.inapsi-select__list {
    max-height: min(18rem, 60vh);
    overflow-y: auto;
}

.inapsi-select__search {
    width: 100%;
    height: 28px;
    margin-bottom: 4px;
    padding: 4px 7px;
    border: 1px solid #e3deeb;
    border-radius: 6px;
    color: #241b33;
    font: inherit;
    font-size: 11px;
}

.inapsi-select__search:focus-visible {
    outline: 2px solid rgb(74 27 157 / 20%);
    border-color: #4a1b9d;
}

.inapsi-select__option {
    display: block;
    width: 100%;
    padding: 5px 8px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #241b33;
    font: inherit;
    font-size: 11px;
    line-height: 1.3;
    text-align: left;
    cursor: pointer;
}

.inapsi-select__option[aria-selected="true"] {
    background: #4a1b9d;
    color: #fff;
}

.inapsi-select__option:hover:not(:disabled) {
    background: #f1ebfa;
    color: #351372;
}

.inapsi-select__option[aria-selected="true"]:hover {
    background: #351372;
    color: #fff;
}

.inapsi-select__option:disabled,
.inapsi-control__trigger:disabled {
    color: #5c5666;
    cursor: not-allowed;
    opacity: .65;
}

.inapsi-select__option[aria-selected="true"]:disabled {
    background: #4a1b9d;
    color: #fff;
    opacity: 1;
}

.inapsi-picker-control > input[type="date"],
.inapsi-picker-control > input[type="time"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.inapsi-picker-control > input:focus-visible + .inapsi-control__picker-trigger {
    outline: 3px solid rgb(74 27 157 / 20%);
    outline-offset: 2px;
}

.inapsi-calendar {
    width: 15rem;
    font-size: 11px;
}

.inapsi-calendar__header,
.inapsi-calendar__grid,
.inapsi-time-picker__row {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
}

.inapsi-calendar__header {
    grid-template-columns: 38px 1fr 38px;
    align-items: center;
    margin-bottom: 10px;
    text-align: center;
    text-transform: capitalize;
    color: #351372;
}

.inapsi-calendar__nav,
.inapsi-calendar__date {
    min-height: 34px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #241b33;
    font: inherit;
    cursor: pointer;
}

.inapsi-calendar__nav:hover,
.inapsi-calendar__date:hover:not(:disabled) {
    background: #f1ebfa;
}

.inapsi-calendar__date[aria-pressed="true"] {
    background: #4a1b9d;
    color: #fff;
}

.inapsi-calendar__date:disabled {
    color: #96909f;
    cursor: not-allowed;
}

.inapsi-calendar__day-name {
    padding: 5px 0;
    color: #1C1726;
    font-size: 10px;
    line-height: 1.2;
    text-align: center;
}

.inapsi-time-picker {
    width: 12rem;
    font-size: 11px;
}

.inapsi-time-picker select {
    height: 28px;
    min-height: 28px;
    padding: 4px 7px;
    font-size: 11px;
}

.inapsi-time-picker__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
    gap: 8px;
    margin: 8px 0 12px;
}

.inapsi-time-picker__field {
    display: grid;
    min-width: 0;
    gap: 4px;
    color: #5c5666;
    font-size: 11px;
}

.inapsi-time-picker__field select {
    width: 100%;
    min-width: 0;
}

.inapsi-time-picker__row select {
    width: 100%;
    min-width: 0;
}

.inapsi-time-picker__apply,
.inapsi-file__button {
    min-height: 30px;
    padding: 5px 9px;
    border: 0;
    border-radius: 6px;
    background: #4a1b9d;
    color: #fff;
    font: inherit;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
}

.inapsi-time-picker__apply:hover,
.inapsi-file__button:hover {
    background: #351372;
}

.inapsi-file-control {
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.inapsi-file__names {
    display: inline-flex;
    min-width: 0;
    min-height: 30px;
    align-items: center;
    overflow-wrap: anywhere;
    color: #5c5666;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.3;
}

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

.inapsi-file__native:focus-visible + .inapsi-file__button,
.inapsi-file__native:focus-visible ~ .inapsi-file__names {
    outline: 3px solid rgb(74 27 157 / 20%);
    outline-offset: 2px;
}

@media (max-width: 640px) {
    .inapsi-picker-control {
        position: relative;
    }

    .inapsi-picker__panel {
        position: absolute;
        top: calc(100% + 6px);
        right: 0;
        bottom: auto;
        left: 0;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        max-height: min(72vh, 34rem);
        overflow: auto;
        padding: 10px;
        border-radius: 12px;
        transform: none;
    }

    .inapsi-picker__panel.inapsi-calendar {
        width: 100%;
    }


    .inapsi-calendar__grid {
        gap: 2px;
    }

    .inapsi-calendar__date,
    .inapsi-calendar__nav {
        min-width: 0;
        min-height: 34px;
    }

    .inapsi-time-picker__row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .inapsi-time-picker__row select {
        width: 100%;
    }

    .inapsi-time-picker__apply {
        width: 100%;
    }
}

@media (max-width: 380px) {
    .inapsi-picker__panel,
    .inapsi-picker__panel.inapsi-calendar {
        width: calc(100vw - 24px);
        padding: 8px;
    }
}

.rich-text-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.rich-text-field > .ql-toolbar.ql-snow {
    border: 1px solid #E8E5F0;
    border-radius: 8px 8px 0 0;
    background: #FAF9FD;
}

.rich-text-field > .ql-container.ql-snow {
    border: 1px solid #E8E5F0;
    border-top: 0;
    border-radius: 0 0 8px 8px;
    background: #FFFFFF;
}

.rich-text-field .ql-editor {
    max-height: 360px;
}

.rich-text-field:focus-within > .ql-toolbar.ql-snow,
.rich-text-field:focus-within > .ql-container.ql-snow {
    border-color: #4A1B9D;
}

.rich-text-field:focus-within > .ql-toolbar.ql-snow {
    border-bottom-color: #E8E5F0;
}

.inapsi-select__list.inapsi-popup--floating,
.inapsi-picker__panel.inapsi-popup--floating {
    position: fixed;
    z-index: 10050;
    right: auto;
    bottom: auto;
    max-width: calc(100vw - 16px);
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .inapsi-control__trigger,
    .inapsi-control__picker-trigger {
        transition: none;
    }
}

/* Shared native form-control styling across application layouts. */
input[type="checkbox"],
input[type="radio"] {
    position: relative !important;
    display: inline-grid !important;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    place-content: center !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    border: 1.5px solid #B9B2C7 !important;
    background-color: #fff !important;
    vertical-align: middle;
    cursor: pointer;
    transition: background-color 120ms ease, border-color 120ms ease;
}

input[type="checkbox"] {
    border-radius: 5px !important;
}

input[type="radio"] {
    border-radius: 50% !important;
}

input[type="checkbox"]:checked {
    border-color: #4A1B9D !important;
    background-color: #4A1B9D !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='m1 5 3.2 3L11 1' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 10px 9px !important;
}

input[type="radio"]:checked {
    border-color: #4A1B9D !important;
    background-color: #fff !important;
}

input[type="radio"]:checked::after {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4A1B9D;
    content: "";
}

input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible {
    outline: 2px solid rgb(74 27 157 / 28%);
    outline-offset: 2px;
}

input[type="checkbox"]:disabled,
input[type="radio"]:disabled {
    cursor: not-allowed;
    opacity: .6;
}

.builder-checkbox,
.mhs-checkbox,
.rla-checkbox,
.rpu-checkbox,
.inapsi-checkbox {
    accent-color: #4A1B9D;
}

.builder-checkbox:checked,
.mhs-checkbox:checked,
.rla-checkbox:checked,
.rpu-checkbox:checked,
.inapsi-checkbox:checked {
    background-color: #4A1B9D !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='m1 5 3.2 3L11 1' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 10px 9px !important;
}

.builder-checkbox:checked::after,
.mhs-checkbox:checked::after,
.rla-checkbox:checked::after,
.rpu-checkbox:checked::after,
.inapsi-checkbox:checked::after {
    content: none !important;
}

.builder-checkbox:indeterminate,
.mhs-checkbox:indeterminate,
.rla-checkbox:indeterminate,
.rpu-checkbox:indeterminate,
.inapsi-checkbox:indeterminate {
    background: #4A1B9D linear-gradient(#fff, #fff) center / 8px 2px no-repeat !important;
}

.builder-checkbox:disabled,
.mhs-checkbox:disabled,
.rla-checkbox:disabled,
.rpu-checkbox:disabled,
.inapsi-checkbox:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.mhs-switch-btn.is-active,
.mitra-switch-btn.is-active,
.notif-switch-btn.is-active {
    background-color: #4A1B9D !important;
}

.mhs-switch-btn.is-inactive,
.mitra-switch-btn.is-inactive,
.notif-switch-btn.is-inactive {
    background-color: #D8D3E1 !important;
}

.mhs-switch-btn,
.mitra-switch-btn,
.notif-switch-btn {
    appearance: none;
    -webkit-appearance: none;
    background-image: none;
}

.mhs-switch-btn::before,
.mhs-switch-btn::after,
.mitra-switch-btn::before,
.mitra-switch-btn::after,
.notif-switch-btn::before,
.notif-switch-btn::after {
    content: none !important;
}

.mhs-switch-knob,
.mitra-switch-knob,
.notif-switch-knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 2px rgb(0 0 0 / 18%);
}

.mhs-switch-btn.is-active .mhs-switch-knob,
.mitra-switch-btn.is-active .mitra-switch-knob,
.notif-switch-btn.is-active .notif-switch-knob {
    transform: translateX(16px);
}

.mhs-switch-btn.is-inactive .mhs-switch-knob,
.mitra-switch-btn.is-inactive .mitra-switch-knob,
.notif-switch-btn.is-inactive .notif-switch-knob {
    transform: translateX(0);
}

.mhs-switch-btn:focus-visible,
.mitra-switch-btn:focus-visible,
.notif-switch-btn:focus-visible {
    outline: 2px solid rgb(74 27 157 / 28%);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .mhs-switch-knob,
    .mitra-switch-knob,
    .notif-switch-knob {
        transition: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    input[type="checkbox"],
    input[type="radio"] {
        transition: none;
    }
}

button[role="switch"]:focus-visible {
    outline: 2px solid rgb(74 27 157 / 28%);
    outline-offset: 2px;
}

button[role="switch"]:disabled {
    cursor: not-allowed;
    opacity: .6;
}

button[role="switch"][aria-checked="true"] {
    background-color: #4A1B9D !important;
}

button[role="switch"][aria-checked="false"] {
    background-color: #D8D3E1 !important;
}

.mhs-switch-btn[aria-checked="true"],
.mitra-switch-btn[aria-checked="true"],
.notif-switch-btn[aria-checked="true"] {
    background-color: #4A1B9D !important;
}

.mhs-switch-btn[aria-checked="true"] .mhs-switch-knob,
.mitra-switch-btn[aria-checked="true"] .mitra-switch-knob,
.notif-switch-btn[aria-checked="true"] .notif-switch-knob {
    transform: translateX(16px);
}

.mhs-switch-btn[aria-checked="false"] .mhs-switch-knob,
.mitra-switch-btn[aria-checked="false"] .mitra-switch-knob,
.notif-switch-btn[aria-checked="false"] .notif-switch-knob {
    transform: translateX(0);
}

button[role="switch"]::after {
    content: none !important;
}

:where(input[type="checkbox"]:checked) {
}

.switch-thumb {
}

button[role="switch"] > span {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 2px rgb(0 0 0 / 18%);
}

button[role="switch"]:has(> span)[aria-checked="true"] > span {
    transform: translateX(16px);
}

button[role="switch"]:has(> span)[aria-checked="false"] > span {
    transform: translateX(0);
}

button[role="switch"]:focus-visible > span {
    outline: none;
}

button[role="switch"]:focus-visible {
    outline: 2px solid rgb(74 27 157 / 28%);
}

input[type="checkbox"]:checked::after {
    content: none;
}

input[type="checkbox"]:checked {
    box-shadow: none;
}

input[type="checkbox"]:checked::before {
    content: none;
}

input[type="checkbox"]:checked {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='m1 5 3.2 3L11 1' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}

input[type="checkbox"]:indeterminate {
    background-color: #4A1B9D !important;
    background-image: linear-gradient(#fff, #fff) !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: 8px 2px !important;
}

input[type="checkbox"]:checked:disabled,
input[type="radio"]:checked:disabled {
    opacity: .6;
}

button[role="switch"][aria-checked] {
    position: relative;
    flex: 0 0 auto;
    border: 0;
    border-radius: 999px;
}

button[role="switch"].is-active::after,
button[role="switch"].is-inactive::after {
    content: none !important;
}

button[role="switch"] .mhs-switch-knob,
button[role="switch"] .mitra-switch-knob,
button[role="switch"] .notif-switch-knob {
    background-color: #fff;
}

button[role="switch"] .mhs-switch-knob,
button[role="switch"] .mitra-switch-knob,
button[role="switch"] .notif-switch-knob {
    width: 16px;
    height: 16px;
}

button[role="switch"][aria-checked="true"] .mhs-switch-knob,
button[role="switch"][aria-checked="true"] .mitra-switch-knob,
button[role="switch"][aria-checked="true"] .notif-switch-knob {
    transform: translateX(16px);
}

button[role="switch"][aria-checked="false"] .mhs-switch-knob,
button[role="switch"][aria-checked="false"] .mitra-switch-knob,
button[role="switch"][aria-checked="false"] .notif-switch-knob {
    transform: translateX(0);
}

button[role="switch"][aria-checked="true"] {
    background: #4A1B9D !important;
}

button[role="switch"][aria-checked="false"] {
    background: #D8D3E1 !important;
}

button[role="switch"][aria-checked="true"]::before,
button[role="switch"][aria-checked="false"]::before {
    content: none !important;
}

input[type="radio"]:checked {
    box-shadow: none;
}

input[type="radio"]:checked::before {
    content: none;
}

input[type="radio"]:checked::after {
    position: absolute;
    inset: 3px;
}

input[type="checkbox"]:checked::after {
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    border: 0;
    background-image: inherit;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px 9px;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    button[role="switch"] > span,
    button[role="switch"]::after {
        transition: none;
    }
}

:where(input[type="date"], input[type="time"], input[type="datetime-local"], input[type="month"], input[type="week"], input[type="file"], select):where(:disabled) {
    background-color: #f3f1f6;
    color: #5c5666;
    cursor: not-allowed;
}

@media (prefers-reduced-motion: reduce) {
    :where(input[type="date"], input[type="time"], input[type="datetime-local"], input[type="month"], input[type="week"], input[type="file"], select) {
        transition: none;
    }
}

:where(input[type="date"], input[type="time"], input[type="datetime-local"], input[type="month"], input[type="week"], input[type="file"], select) {
    min-height: 42px;
    max-width: 100%;
    border: 1px solid #d8d3e3;
    border-radius: 8px;
    background-color: #fff;
    color: #241b33;
    font: inherit;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

:where(input[type="date"], input[type="time"], input[type="datetime-local"], input[type="month"], input[type="week"], input[type="file"], select):where(:hover) {
    border-color: #8a6ac2;
}

:where(input[type="date"], input[type="time"], input[type="datetime-local"], input[type="month"], input[type="week"], input[type="file"], select):where(:focus-visible) {
    border-color: #4a1b9d;
    outline: 3px solid rgb(74 27 157 / 18%);
    outline-offset: 1px;
}

:where(input[type="date"], input[type="time"], input[type="datetime-local"], input[type="month"], input[type="week"], select) {
    padding: 9px 12px;
}

:where(select) {
    cursor: pointer;
}

:where(input[type="file"]) {
    padding: 5px;
    cursor: pointer;
}

:where(input[type="file"])::file-selector-button {
    margin-right: 10px;
    padding: 7px 12px;
    border: 0;
    border-radius: 6px;
    background: #f0eafa;
    color: #4a1b9d;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

:where(input[type="file"])::file-selector-button:hover {
    background: #e5daf7;
}

:where(input[type="date"], input[type="time"], input[type="datetime-local"], input[type="month"], input[type="week"], input[type="file"], select):where(:disabled) {
    background-color: #f3f1f6;
    color: #5c5666;
    cursor: not-allowed;
}

@media (prefers-reduced-motion: reduce) {
    :where(input[type="date"], input[type="time"], input[type="datetime-local"], input[type="month"], input[type="week"], input[type="file"], select) {
        transition: none;
    }
}


:where(button[role="switch"].notif-switch-btn.is-active,
       button[role="switch"].mhs-switch-btn.is-active,
       button[role="switch"].mitra-switch-btn.is-active) {
    background-color: #4A1B9D !important;
}

:where(button[role="switch"]:focus-visible) {
    outline: 2px solid rgb(74 27 157 / 28%);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    input[type="checkbox"],
    input[type="radio"] {
        transition: none;
    }
}

:where(input[type="date"], input[type="time"], input[type="datetime-local"], input[type="month"], input[type="week"], input[type="file"], select):where(:disabled) {
    background-color: #f3f1f6;
    color: #5c5666;
    cursor: not-allowed;
}

@media (prefers-reduced-motion: reduce) {
    :where(input[type="date"], input[type="time"], input[type="datetime-local"], input[type="month"], input[type="week"], input[type="file"], select) {
        transition: none;
    }
}

:where(input[type="date"], input[type="time"], input[type="datetime-local"], input[type="month"], input[type="week"], input[type="file"], select) {
    min-height: 42px;
    max-width: 100%;
    border: 1px solid #d8d3e3;
    border-radius: 8px;
    background-color: #fff;
    color: #241b33;
    font: inherit;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

:where(input[type="date"], input[type="time"], input[type="datetime-local"], input[type="month"], input[type="week"], input[type="file"], select):where(:hover) {
    border-color: #8a6ac2;
}

:where(input[type="date"], input[type="time"], input[type="datetime-local"], input[type="month"], input[type="week"], input[type="file"], select):where(:focus-visible) {
    border-color: #4a1b9d;
    outline: 3px solid rgb(74 27 157 / 18%);
    outline-offset: 1px;
}

:where(input[type="date"], input[type="time"], input[type="datetime-local"], input[type="month"], input[type="week"], select) {
    padding: 9px 12px;
}

:where(select) {
    cursor: pointer;
}

:where(input[type="file"]) {
    padding: 5px;
    cursor: pointer;
}

:where(input[type="file"])::file-selector-button {
    margin-right: 10px;
    padding: 7px 12px;
    border: 0;
    border-radius: 6px;
    background: #f0eafa;
    color: #4a1b9d;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

:where(input[type="file"])::file-selector-button:hover {
    background: #e5daf7;
}

:where(input[type="date"], input[type="time"], input[type="datetime-local"], input[type="month"], input[type="week"], input[type="file"], select):where(:disabled) {
    background-color: #f3f1f6;
    color: #5c5666;
    cursor: not-allowed;
}

@media (prefers-reduced-motion: reduce) {
    :where(input[type="date"], input[type="time"], input[type="datetime-local"], input[type="month"], input[type="week"], input[type="file"], select) {
        transition: none;
    }
}

/* Match active underline thickness and top corners across roles. */
.steps-nav-bar > .step-item.active,
.type-tab-btn.active,
.main-tab-btn.active,
.main-tab-item.active,
.mhs-tab-item.active,
.nilai-blp-tab.active,
#nilaiBlpLaporan .nilai-blp-wizard > button.nilai-blp-step.active,
.proposal-stepper-scroll a[aria-current="step"],
.laporan-stepper-scroll a[aria-current="step"],
.wiz-step-btn.active .step-label {
    position: relative;
    border-bottom: 3px solid transparent !important;
}

.wiz-step-btn .step-label {
    display: inline-block;
    border-bottom: 3px solid transparent !important;
}

.steps-nav-bar > .step-item.active::after,
.type-tab-btn.active::after,
.main-tab-btn.active::after,
.main-tab-item.active::after,
.mhs-tab-item.active::after,
.nilai-blp-tab.active::after,
#nilaiBlpLaporan .nilai-blp-wizard > button.nilai-blp-step.active::after,
.proposal-stepper-scroll a[aria-current="step"]::after,
.laporan-stepper-scroll a[aria-current="step"]::after,
.wiz-step-btn.active .step-label::after {
    position: absolute;
    right: 0;
    bottom: -3px;
    left: 0;
    height: 3px;
    border-radius: 4px 4px 0 0;
    background: #4a1b9d;
    content: "";
    pointer-events: none;
}

.penilaian-tab-item.active::after,
.filter-tab.active::after,
.stepper-item.active::after {
    border-radius: 4px 4px 0 0;
}

/* Keep the BLP wizard's original baseline while replacing its 3px border. */
html body #nilaiBlpLaporan .nilai-blp-wizard > button.nilai-blp-step.active {
    border-bottom: 3px solid transparent !important;
}

html body #nilaiBlpLaporan .nilai-blp-wizard > button.nilai-blp-step.active::after {
    bottom: -3px;
}

/* Enforce one 3px active underline across shared and role-local indicators. */
html body .steps-nav-bar > .step-item.active::after,
html body .type-tab-btn.active::after,
html body .main-tab-btn.active::after,
html body .main-tab-item.active::after,
html body .mhs-tab-item.active::after,
html body .nilai-blp-tab.active::after,
html body #nilaiBlpLaporan .nilai-blp-wizard > button.nilai-blp-step.active::after,
html body .proposal-stepper-scroll a[aria-current="step"]::after,
html body .laporan-stepper-scroll a[aria-current="step"]::after,
html body .wiz-step-btn.active .step-label::after,
html body .penilaian-tab-item.active::after,
html body .filter-tab.active::after,
html body .stepper-item.active::after {
    height: 3px !important;
}
