/* =========================================================
   MODAL IZIN GURU
========================================================= */

.ak-izin-guru-modal {
    position: fixed;
    inset: 0;

    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    box-sizing: border-box;
}

.ak-izin-guru-modal-backdrop {
    position: absolute;
    inset: 0;

    background: rgba(15, 23, 42, 0.55);

    display: flex;
    align-items: center;
    justify-content: center;
}

.ak-izin-guru-modal-dialog {
    position: relative;

    width: 100%;
    max-width: 620px;
    max-height: calc(100vh - 40px);

    display: flex;
    flex-direction: column;

    background: #ffffff;

    border-radius: 14px;

    box-shadow:
        0 20px 60px rgba(15, 23, 42, 0.25);

    overflow: hidden;
}


/* =========================================================
   HEADER
========================================================= */

.ak-izin-guru-modal-header {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 16px;

    padding: 20px 22px;

    border-bottom: 1px solid #e5e7eb;
}

.ak-izin-guru-modal-header h2 {
    margin: 0;

    color: #1e293b;

    font-size: 20px;
    font-weight: 700;
}

.ak-izin-guru-modal-header p {
    margin: 5px 0 0;

    color: #64748b;

    font-size: 13px;
}

.ak-izin-guru-modal-close {
    flex: 0 0 auto;

    width: 34px;
    height: 34px;

    padding: 0;

    border: 1px solid #e5e7eb;

    border-radius: 8px;

    background: #ffffff;

    color: #64748b;

    font-size: 22px;

    line-height: 1;

    cursor: pointer;
}

.ak-izin-guru-modal-close:hover {
    background: #f8fafc;

    color: #1e293b;
}


/* =========================================================
   BODY
========================================================= */

.ak-izin-guru-modal-body {
    padding: 20px 22px;

    overflow-y: auto;
}

.ak-izin-guru-field {
    margin-bottom: 18px;
}

.ak-izin-guru-field > label {
    display: block;

    margin-bottom: 7px;

    color: #334155;

    font-size: 13px;
    font-weight: 600;
}


/* =========================================================
   KELAS
========================================================= */

.ak-izin-guru-kelas-list {
    display: flex;

    flex-direction: column;

    gap: 8px;

    max-height: 220px;

    overflow-y: auto;
}

.ak-izin-guru-kelas-item {
    display: flex;

    align-items: center;

    gap: 10px;

    padding: 11px 13px;

    background: #f8fafc;

    border: 1px solid #e5e7eb;

    border-radius: 9px;

    cursor: pointer;

    transition:
        background-color 0.15s ease,
        border-color 0.15s ease;
}

.ak-izin-guru-kelas-item:hover {
    background: #f0fdf4;

    border-color: #bbf7d0;
}

.ak-izin-guru-kelas-item input {
    flex: 0 0 auto;

    width: 17px;
    height: 17px;

    margin: 0;
}

.ak-izin-guru-kelas-item span {
    color: #334155;

    font-size: 14px;
}

.ak-izin-guru-loading,
.ak-izin-guru-empty {
    padding: 14px;

    border: 1px dashed #cbd5e1;

    border-radius: 9px;

    color: #64748b;

    font-size: 13px;

    text-align: center;
}


/* =========================================================
   SELECT
========================================================= */

.ak-izin-guru-select {
    width: 100%;

    min-height: 42px;

    padding: 9px 12px;

    box-sizing: border-box;

    border: 1px solid #cbd5e1;

    border-radius: 8px;

    background: #ffffff;

    color: #334155;

    font-family: inherit;

    font-size: 14px;
}


/* =========================================================
   HUBUNGAN SAKIT
========================================================= */

.ak-izin-guru-hubungan-list {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 8px;
}

.ak-izin-guru-hubungan-list label {
    display: flex;

    align-items: center;

    gap: 8px;

    padding: 9px 11px;

    border: 1px solid #e5e7eb;

    border-radius: 8px;

    background: #f8fafc;

    color: #475569;

    font-size: 13px;

    cursor: pointer;
}


/* =========================================================
   TEXTAREA
========================================================= */

.ak-izin-guru-textarea {
    width: 100%;

    min-height: 100px;

    padding: 10px 12px;

    box-sizing: border-box;

    resize: vertical;

    border: 1px solid #cbd5e1;

    border-radius: 8px;

    background: #ffffff;

    color: #334155;

    font-family: inherit;

    font-size: 14px;
}


/* =========================================================
   FILE
========================================================= */

.ak-izin-guru-field input[type="file"] {
    width: 100%;

    box-sizing: border-box;

    padding: 8px;

    border: 1px solid #cbd5e1;

    border-radius: 8px;

    background: #ffffff;

    font-family: inherit;

    font-size: 13px;
}


/* =========================================================
   ERROR
========================================================= */

.ak-izin-guru-error {
    margin-top: 10px;

    padding: 10px 12px;

    border: 1px solid #fecaca;

    border-radius: 8px;

    background: #fef2f2;

    color: #b91c1c;

    font-size: 13px;
}


/* =========================================================
   FOOTER
========================================================= */

.ak-izin-guru-modal-footer {
    display: flex;

    justify-content: flex-end;

    gap: 10px;

    padding: 16px 22px;

    border-top: 1px solid #e5e7eb;

    background: #ffffff;
}

.ak-izin-guru-button-secondary,
.ak-izin-guru-button-primary {
    min-height: 40px;

    padding: 9px 17px;

    border-radius: 8px;

    font-family: inherit;

    font-size: 13px;
    font-weight: 600;

    cursor: pointer;
}

.ak-izin-guru-button-secondary {
    border: 1px solid #cbd5e1;

    background: #ffffff;

    color: #475569;
}

.ak-izin-guru-button-primary {
    border: 1px solid #166534;

    background: #166534;

    color: #ffffff;
}

.ak-izin-guru-button-primary:hover {
    background: #14532d;

    border-color: #14532d;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .ak-izin-guru-modal {
        padding: 10px;
    }

    .ak-izin-guru-modal-dialog {
        max-height: calc(100vh - 20px);
    }

    .ak-izin-guru-modal-header,
    .ak-izin-guru-modal-body,
    .ak-izin-guru-modal-footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .ak-izin-guru-hubungan-list {
        grid-template-columns: 1fr;
    }

    .ak-izin-guru-modal-footer {
        flex-direction: column-reverse;
    }

    .ak-izin-guru-button-secondary,
    .ak-izin-guru-button-primary {
        width: 100%;
    }
}

.ak-izin-guru-field-note {
    margin: 4px 0 10px;
    font-size: 13px;
    line-height: 1.4;
    color: #64748b;
    font-weight: 400;
}