/**
 * ABSENSIKU v1.0
 * Master Student Modern
 */

.master-student-page,
.master-student-detail {
    display: grid;
    gap: 22px;
    width: 100%;
    max-width: 1420px;
    margin: 0 auto;
    padding-bottom: 36px;
}

.master-student-hero,
.master-student-detail__hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 28px;
    border: 1px solid #dfe5ee;
    border-radius: 20px;
    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f8fafc 100%
        );
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.master-student-eyebrow,
.master-student-detail__hero small {
    display: block;
    margin-bottom: 7px;
    color: #2563eb;
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.master-student-hero h1,
.master-student-detail__hero h1 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 820;
    letter-spacing: -0.05em;
}

.master-student-hero p,
.master-student-detail__hero p {
    max-width: 720px;
    margin: 10px 0 0;
    color: #64748b;
    line-height: 1.65;
}

.master-student-button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 11px;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 780;
    text-decoration: none;
    cursor: pointer;
}

.master-student-button--primary {
    background: #2563eb;
    color: #fff;
}

.master-student-button--secondary {
    border-color: #cbd5e1;
    background: #fff;
    color: #334155;
}

.master-student-summary,
.master-student-detail__stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.master-student-summary article,
.master-student-detail__stats article {
    padding: 18px;
    border: 1px solid #dfe5ee;
    border-radius: 16px;
    background: #fff;
}

.master-student-summary span,
.master-student-detail__stats span {
    color: #64748b;
    font-size: 0.76rem;
}

.master-student-summary strong,
.master-student-detail__stats strong {
    display: block;
    margin-top: 8px;
    color: #0f172a;
    font-size: 1.55rem;
    line-height: 1.1;
}

.master-student-summary small {
    display: block;
    margin-top: 7px;
    color: #94a3b8;
    font-size: 0.72rem;
}

.master-student-panel,
.master-student-detail__card {
    overflow: hidden;
    border: 1px solid #dfe5ee;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.035);
}

.master-student-filter {
    display: grid;
    grid-template-columns:
        minmax(260px, 1fr)
        160px
        190px
        150px
        auto;
    gap: 14px;
    align-items: end;
    padding: 20px;
}

.master-student-filter > div {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.master-student-filter label,
.master-student-list-header label {
    color: #334155;
    font-size: 0.76rem;
    font-weight: 750;
}

.master-student-filter input,
.master-student-filter select,
.master-student-list-header select {
    width: 100%;
    min-height: 42px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    padding: 0 12px;
    font: inherit;
}

.master-student-filter__actions {
    display: flex !important;
    flex-direction: row;
    gap: 8px !important;
}

.master-student-list-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 22px;
    border-bottom: 1px solid #e7ebf1;
    background: #fbfcfe;
}

.master-student-list-header h2 {
    margin: 0;
    color: #0f172a;
    font-size: 1.15rem;
}

.master-student-list-header p {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 0.8rem;
}

.master-student-list-header form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.master-student-table-wrap {
    overflow-x: auto;
}

.master-student-table {
    width: 100%;
    min-width: 1120px;
    border-collapse: collapse;
}

.master-student-table th,
.master-student-table td {
    padding: 15px 18px;
    border-bottom: 1px solid #edf0f4;
    text-align: left;
    vertical-align: middle;
}

.master-student-table th {
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.master-student-table td {
    color: #334155;
    font-size: 0.8rem;
}

.master-student-table small {
    display: block;
    margin-top: 4px;
    color: #64748b;
}

.master-student-identity {
    display: flex;
    align-items: center;
    gap: 11px;
}

.master-student-identity > span,
.master-student-detail__heading > span {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    place-items: center;
    border-radius: 13px;
    background: #e8efff;
    color: #1d4ed8;
    font-weight: 850;
}

.master-student-cell-main {
    color: #0f172a;
}

.master-student-badge {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
}

.master-student-badge--success {
    background: #dcfce7;
    color: #166534;
}

.master-student-badge--info {
    background: #dbeafe;
    color: #1d4ed8;
}

.master-student-badge--secondary {
    background: #e2e8f0;
    color: #475569;
}

.master-student-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.master-student-actions a,
.master-student-actions button {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 0 9px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #334155;
    font: inherit;
    font-size: 0.7rem;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
}

.master-student-actions form {
    margin: 0;
}

.master-student-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 22px;
}

.master-student-pagination a {
    color: #2563eb;
    font-size: 0.78rem;
    font-weight: 750;
    text-decoration: none;
}

.master-student-pagination .is-disabled {
    pointer-events: none;
    opacity: 0.45;
}

.master-student-empty {
    display: grid;
    place-items: center;
    padding: 52px 24px;
    text-align: center;
}

.master-student-empty > span {
    font-size: 2rem;
}

.master-student-empty h3 {
    margin: 12px 0 0;
    color: #0f172a;
}

.master-student-empty p {
    max-width: 520px;
    margin: 7px 0 18px;
    color: #64748b;
}

.master-student-detail__hero {
    align-items: center;
}

.master-student-detail__hero > a {
    color: #475569;
    font-size: 0.8rem;
    font-weight: 750;
    text-decoration: none;
}

.master-student-detail__heading {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.master-student-detail__heading > span {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
    border-radius: 18px;
    font-size: 1.15rem;
}

.master-student-detail__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.master-student-detail__card--wide {
    grid-column: 1 / -1;
}

.master-student-detail__card header {
    padding: 20px 22px;
    border-bottom: 1px solid #e7ebf1;
    background: #fbfcfe;
}

.master-student-detail__card header small {
    color: #2563eb;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.master-student-detail__card header h2 {
    margin: 5px 0 0;
    color: #0f172a;
    font-size: 1.05rem;
}

.master-student-detail__card dl {
    display: grid;
    margin: 0;
}

.master-student-detail__card dl > div {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 18px;
    padding: 15px 22px;
    border-bottom: 1px solid #edf0f4;
}

.master-student-detail__card dt {
    color: #64748b;
    font-size: 0.75rem;
}

.master-student-detail__card dd {
    margin: 0;
    color: #0f172a;
    overflow-wrap: anywhere;
}

@media (max-width: 1180px) {
    .master-student-filter {
        grid-template-columns: 1fr 1fr;
    }

    .master-student-filter__search {
        grid-column: 1 / -1;
    }
}

@media (max-width: 800px) {
    .master-student-hero,
    .master-student-detail__hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .master-student-summary,
    .master-student-detail__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .master-student-filter,
    .master-student-detail__grid {
        grid-template-columns: 1fr;
    }

    .master-student-filter__search,
    .master-student-detail__card--wide {
        grid-column: auto;
    }
}

@media (max-width: 520px) {
    .master-student-summary,
    .master-student-detail__stats {
        grid-template-columns: 1fr;
    }

    .master-student-filter__actions {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
    }

    .master-student-button {
        width: 100%;
    }

    .master-student-detail__card dl > div {
        grid-template-columns: 1fr;
        gap: 5px;
    }
}
