.app-logo-text {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-content h1 {
    display: none;
}

.app-content > .card {
    padding: 1.25rem;
}

.app-content .table {
    margin-bottom: 0;
}

.app-content .card {
    border-radius: 8px;
}

.app-content .card-header {
    border-bottom: 1px solid #ebeef2;
}

.app-content .btn:not([class*="btn-"]) {
    background: #1572e8;
    border-color: #1572e8;
    color: #fff;
}

.table-actions {
    white-space: nowrap;
}

.table-actions .btn {
    margin-left: .25rem;
}

.table-actions-col {
    min-width: 92px;
}

.no-col {
    width: 64px;
}

.dataTables_wrapper .row {
    row-gap: .75rem;
}

.dataTables_filter input {
    max-width: 220px;
}

.modal .form-group label {
    font-weight: 600;
}

.settings-shortcut-card .dropdown-menu {
    min-width: 260px;
}

.tracking-timeline-card {
    margin-bottom: 1rem;
}

.tracking-timeline {
    position: relative;
}

.tracking-timeline::before {
    background: #e8edf4;
    bottom: 10px;
    content: "";
    left: 10px;
    position: absolute;
    top: 10px;
    width: 2px;
}

.tracking-timeline-item {
    display: grid;
    gap: 1rem;
    grid-template-columns: 22px 1fr;
    position: relative;
}

.tracking-timeline-item + .tracking-timeline-item {
    margin-top: 1rem;
}

.tracking-timeline-marker {
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #e8edf4;
    height: 22px;
    position: relative;
    width: 22px;
    z-index: 1;
}

.tracking-timeline-content {
    background: #f8fafc;
    border: 1px solid #edf1f5;
    border-radius: 8px;
    padding: 1rem;
}

.tracking-timeline-meta {
    color: #7b8794;
    display: flex;
    flex-wrap: wrap;
    font-size: 12px;
    gap: .4rem;
}

.grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin-bottom: 1.5rem;
}

.login-wrapper {
    align-items: center;
    background: #f2f6fc;
    display: flex;
    min-height: 100vh;
    padding: 1.5rem;
}

.login-card {
    margin: 0 auto;
    max-width: 420px;
    width: 100%;
}

.login-logo {
    align-items: center;
    background: #1572e8;
    border-radius: 50%;
    color: #fff;
    display: flex;
    font-size: 22px;
    font-weight: 700;
    height: 56px;
    justify-content: center;
    width: 56px;
}

input,
select,
textarea {
    max-width: 100%;
}

@media (max-width: 991.98px) {
    .page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .page-header .breadcrumbs {
        margin-left: 0;
        padding-left: 0;
    }

    .app-logo-text {
        max-width: 150px;
    }
}

@media (max-width: 575.98px) {
    .app-content {
        padding-left: 0;
        padding-right: 0;
    }

    .app-content > .card,
    .settings-shortcut-card {
        border-radius: 0;
        margin-left: -15px;
        margin-right: -15px;
    }

    .app-content .card-header .btn {
        width: 100%;
    }

    .dataTables_filter,
    .dataTables_filter label,
    .dataTables_filter input {
        width: 100%;
    }

    .dataTables_filter input {
        margin-left: 0 !important;
    }

    .modal-dialog {
        margin: .75rem;
    }
}

/* Fallback interaksi ketika file JS vendor Kaiadmin/Bootstrap tidak tersedia. */
.dropdown-menu.show {
    display: block;
}

.modal.show {
    display: block;
}

body.modal-open {
    overflow: hidden;
}

/* Tampilan tangga tracking jabatan fungsional dosen */
.jafung-ladder {
    align-items: stretch;
    display: flex;
    gap: .5rem;
    min-width: 520px;
}

.jafung-step {
    background: #f6f8fb;
    border: 1px solid #e8edf4;
    border-radius: 14px;
    color: #5c6675;
    flex: 1;
    padding: .7rem .8rem .7rem .95rem;
    position: relative;
}

.jafung-step:not(:last-child)::after {
    border-bottom: 8px solid transparent;
    border-left: 10px solid #e8edf4;
    border-top: 8px solid transparent;
    content: "";
    position: absolute;
    right: -.48rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.jafung-step.is-passed {
    background: #eefaf3;
    border-color: #c9efd8;
    color: #218354;
}

.jafung-step.is-current {
    background: linear-gradient(135deg, #1572e8, #4d9bff);
    border-color: #1572e8;
    box-shadow: 0 8px 18px rgba(21, 114, 232, .18);
    color: #fff;
}

.jafung-step.is-current::after {
    border-left-color: #4d9bff;
}

.jafung-step-dot {
    align-items: center;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(31, 45, 61, .12);
    display: inline-flex;
    font-size: 11px;
    height: 24px;
    justify-content: center;
    margin-bottom: .45rem;
    width: 24px;
}

.jafung-step.is-current .jafung-step-dot {
    color: #1572e8;
}

.jafung-step-name,
.jafung-step-ak {
    display: block;
    line-height: 1.25;
}

.jafung-step-name {
    font-size: 12px;
    font-weight: 700;
}

.jafung-step-ak {
    font-size: 11px;
    opacity: .78;
}

.jafung-note {
    background: #fbfcff;
    border-left: 3px solid #1572e8;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.45;
    margin-top: .65rem;
    padding: .55rem .75rem;
}

@media (max-width: 767.98px) {
    .jafung-ladder {
        flex-direction: column;
        min-width: 260px;
    }

    .jafung-step:not(:last-child)::after {
        display: none;
    }
}


/* Jafung approval workflow */
.jafung-hero-card {
    border: 0;
    background: linear-gradient(135deg, rgba(21, 114, 232, .10), rgba(104, 89, 255, .08));
}
.jafung-status-guide {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
}
.jafung-guide-item {
    position: relative;
    min-height: 96px;
    padding: 16px 16px 16px 20px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(31, 45, 61, .07);
    border: 1px solid rgba(31, 45, 61, .08);
}
.jafung-guide-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 18px;
    bottom: 18px;
    width: 4px;
    border-radius: 99px;
    background: #1572e8;
}
.jafung-guide-item.is-warning::before { background: #ffad46; }
.jafung-guide-item span {
    display: block;
    font-weight: 700;
    color: #1f2d3d;
    margin-bottom: 6px;
}
.jafung-guide-item small {
    display: block;
    color: #6c757d;
    line-height: 1.45;
}

/* Riwayat Cuti */
.leave-calendar {
    display: grid;
    grid-template-columns: repeat(7, minmax(120px, 1fr));
    gap: 10px;
}

.leave-calendar-head {
    padding: 10px 12px;
    border-radius: 14px;
    background: #f3f6fb;
    color: #5d6b82;
    font-weight: 700;
    text-align: center;
}

.leave-calendar-day {
    min-height: 118px;
    border: 1px solid #e8edf5;
    border-radius: 16px;
    padding: 10px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(30, 41, 59, 0.04);
}

.leave-calendar-day.is-empty {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.leave-calendar-day.has-leave {
    border-color: #b9d7ff;
    background: linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
}

.leave-date-number {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-weight: 700;
    color: #1f2937;
    background: #f8fafc;
    margin-bottom: 8px;
}

.leave-chip {
    display: block;
    max-width: 100%;
    padding: 6px 8px;
    margin-bottom: 6px;
    border-radius: 999px;
    background: #eaf3ff;
    color: #1262b3;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 992px) {
    .leave-calendar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .leave-calendar-head {
        display: none;
    }
}

@media (max-width: 576px) {
    .leave-calendar {
        grid-template-columns: 1fr;
    }
}

/* Jafung Saya - vertical progress khusus akun dosen */
.jafung-progress-card {
    border: 0;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .08);
    overflow: hidden;
}

.jafung-progress-card .card-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border-bottom: 1px solid #edf2f7;
    padding: 18px 20px;
}

.jafung-progress-vertical {
    position: relative;
    padding-left: 4px;
}

.jafung-progress-item {
    position: relative;
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 14px;
    padding-bottom: 22px;
}

.jafung-progress-item:last-child {
    padding-bottom: 0;
}

.jafung-progress-item::before {
    content: '';
    position: absolute;
    top: 42px;
    left: 20px;
    width: 2px;
    height: calc(100% - 28px);
    background: #dce3ec;
}

.jafung-progress-item:last-child::before {
    display: none;
}

.jafung-progress-marker {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef2f7;
    color: #8a94a6;
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px #dce3ec;
    z-index: 1;
}

.jafung-progress-content {
    background: #fff;
    border: 1px solid #edf2f7;
    border-radius: 16px;
    padding: 14px 16px;
}

.jafung-progress-item.is-done::before,
.jafung-progress-item.is-active::before {
    background: #1572e8;
}

.jafung-progress-item.is-done .jafung-progress-marker {
    background: #e8f7ef;
    color: #31ce36;
    box-shadow: 0 0 0 1px rgba(49, 206, 54, .35);
}

.jafung-progress-item.is-active .jafung-progress-marker {
    background: #e9f2ff;
    color: #1572e8;
    box-shadow: 0 0 0 4px rgba(21, 114, 232, .14);
}

.jafung-progress-item.is-revision.is-active .jafung-progress-marker {
    background: #fff6e5;
    color: #ffad46;
    box-shadow: 0 0 0 4px rgba(255, 173, 70, .18);
}

.jafung-progress-item.is-rejected.is-active .jafung-progress-marker {
    background: #ffe9ec;
    color: #f25961;
    box-shadow: 0 0 0 4px rgba(242, 89, 97, .18);
}

.jafung-progress-note {
    background: #f8fafc;
    border-left: 3px solid #1572e8;
    border-radius: 10px;
    padding: 8px 10px;
    color: #334155;
    font-size: 12px;
    margin: 8px 0;
}

@media (max-width: 575.98px) {
    .jafung-progress-item {
        grid-template-columns: 36px 1fr;
        gap: 10px;
    }

    .jafung-progress-marker {
        width: 36px;
        height: 36px;
    }

    .jafung-progress-item::before {
        left: 17px;
        top: 36px;
    }
}

/* Komplain Sarpras tracking */
.komplain-timeline-mini {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.komplain-track-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding-left: 2px;
}
.komplain-track-dot {
    flex: 0 0 12px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-top: 5px;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, .04);
}
.komplain-track-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 20px;
    bottom: -10px;
    width: 2px;
    background: #e9ecef;
}
