.profil-pegawai-page {
    color: #2f3f56;
    display: flex;
    flex-direction: column;
    gap: 24px;
    transition: opacity 0.22s ease;
}

.profil-pegawai-page.is-loading {
    opacity: 0.72;
}

.profil-filter-card.is-loading .profil-filter-actions button,
.profil-filter-card.is-loading .profil-filter-reset {
    pointer-events: none;
}

.profil-hero-card,
.profil-filter-card,
.profil-section,
.profil-pelaksana-group {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(217, 186, 138, 0.42);
    border-radius: 30px;
    background:
        radial-gradient(circle at 100% 0%, rgba(246, 205, 96, 0.18) 0%, rgba(246, 205, 96, 0) 28%),
        linear-gradient(180deg, rgba(255, 252, 247, 0.98) 0%, rgba(255, 250, 243, 0.98) 100%);
    box-shadow: 0 24px 50px rgba(72, 32, 8, 0.08);
}

.profil-hero-card,
.profil-filter-card {
    padding: 28px 28px 24px;
}

.profil-hero-card::before,
.profil-filter-card::before,
.profil-section::before,
.profil-pelaksana-group::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 4px;
    border-radius: 30px 30px 0 0;
    background: linear-gradient(90deg, #b64712 0%, #d8a257 100%);
}

.profil-hero-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
}

.profil-eyebrow,
.profil-filter-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid rgba(216, 162, 87, 0.24);
    background: rgba(255, 255, 255, 0.78);
    color: #a86b1d;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.profil-hero-card h2 {
    margin: 14px 0 10px;
    color: #7b2d12;
    font-size: 30px;
    line-height: 1.16;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.profil-hero-card p,
.profil-filter-head p {
    margin: 0;
    max-width: 720px;
    color: #7b6a58;
    font-size: 15px;
    line-height: 1.75;
}

.profil-hero-summary {
    min-width: 176px;
    padding: 18px 20px;
    border: 1px solid rgba(216, 162, 87, 0.2);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    text-align: center;
    box-shadow: 0 18px 36px rgba(139, 83, 27, 0.08);
}

.profil-hero-summary-label {
    display: block;
    margin-bottom: 8px;
    color: #a86b1d;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.profil-hero-summary strong {
    display: block;
    color: #7b2d12;
    font-size: 40px;
    line-height: 1;
    font-weight: 800;
}

.profil-hero-summary small {
    display: block;
    margin-top: 8px;
    color: #7b6a58;
    font-size: 13px;
    font-weight: 700;
}

.profil-filter-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.profil-filter-head h3 {
    margin: 10px 0 6px;
    color: #7b2d12;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 800;
}

.profil-filter-card {
    padding: 22px 24px 18px;
}

.profil-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 15px;
    border-radius: 999px;
    border: 1px solid rgba(216, 162, 87, 0.24);
    background: rgba(255, 255, 255, 0.82);
    color: #a86b1d;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.profil-filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}

.profil-filter-field {
    display: flex;
    flex: 1 1 300px;
    flex-direction: column;
    gap: 8px;
}

.profil-filter-field-compact {
    flex: 0 1 240px;
}

.profil-filter-field span {
    color: #8a6a4c;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.profil-filter-field input,
.profil-filter-field select {
    width: 100%;
    height: 48px;
    border: 1px solid rgba(222, 205, 180, 0.9);
    border-radius: 16px;
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.92);
    color: #3a342d;
    font-size: 14px;
    box-sizing: border-box;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.profil-filter-field input::placeholder {
    color: #b59e87;
}

.profil-filter-field input:focus,
.profil-filter-field select:focus {
    outline: none;
    border-color: rgba(182, 71, 18, 0.4);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.88),
        0 0 0 4px rgba(182, 71, 18, 0.08);
}

.profil-filter-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 12px;
    margin-left: auto;
}

.profil-filter-reset,
.profil-filter-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 146px;
    height: 48px;
    padding: 0 18px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.profil-filter-reset {
    border: 1px solid rgba(216, 162, 87, 0.24);
    background: rgba(255, 255, 255, 0.82);
    color: #9a4e1c;
    box-shadow: 0 12px 26px rgba(141, 97, 39, 0.08);
}

.profil-filter-actions button {
    border: 0;
    background: linear-gradient(135deg, #a62f0c 0%, #c77924 100%);
    color: #fff;
    box-shadow: 0 18px 34px rgba(166, 47, 12, 0.22);
    cursor: pointer;
}

.profil-filter-reset:hover,
.profil-filter-actions button:hover {
    transform: translateY(-2px);
}

.profil-filter-actions button:hover {
    box-shadow: 0 22px 40px rgba(166, 47, 12, 0.28);
}

.profil-filter-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(220, 204, 180, 0.55);
    color: #7b6a58;
    font-size: 13px;
}

.profil-filter-foot span:last-child {
    font-weight: 700;
    color: #9a4e1c;
}

.profil-empty {
    padding: 24px 26px;
    border: 1px dashed rgba(182, 71, 18, 0.24);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    color: #7b6a58;
    text-align: center;
    font-weight: 600;
}

.profil-section {
    padding: 24px 22px 22px;
}

.profil-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.profil-section-header h3,
.profil-subsection-header h4 {
    margin: 0;
    color: #2f3f56;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.profil-section-header h3 {
    font-size: 22px;
}

.profil-subsection-header h4 {
    font-size: 18px;
}

.profil-section-header span,
.profil-subsection-header span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(216, 162, 87, 0.2);
    background: rgba(255, 255, 255, 0.86);
    color: #9d7a55;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.profil-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.profil-card {
    position: relative;
    overflow: hidden;
    border: 0;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 251, 246, 0.98) 100%);
    box-shadow: 0 18px 36px rgba(72, 32, 8, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.profil-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 44px rgba(72, 32, 8, 0.14);
}

.profil-photo-wrap {
    height: 205px;
    padding: 0;
    background: transparent;
    overflow: hidden;
}

.profil-photo {
    width: 100%;
    height: 100%;
    border-radius: 0;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.3s ease;
}

.profil-card:hover .profil-photo {
    transform: scale(1.02);
}

.profil-card-body {
    padding: 14px 16px 18px;
    text-align: center;
}

.profil-card-body h4 {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 48px;
    margin: 0 0 8px;
    color: #2f3f56;
    font-size: 17px;
    line-height: 1.34;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.profil-jabatan {
    margin-bottom: 6px;
    color: #b14b14;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 800;
}

.profil-meta {
    color: #7e7164;
    font-size: 12px;
    line-height: 1.5;
    font-weight: 600;
}

.profil-note {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(182, 71, 18, 0.08);
    color: #9a4e1c;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
}

.profil-pelaksana-groups {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.profil-pelaksana-group {
    padding: 18px;
}

.profil-subsection-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.profil-grid-pelaksana {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.profil-empty-section {
    padding: 20px 22px;
    border: 1px dashed rgba(182, 71, 18, 0.22);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.74);
    color: #7b6a58;
    font-weight: 600;
    text-align: center;
}

.profil-card-empty {
    background: linear-gradient(180deg, #ffffff 0%, #fbf8f2 100%);
}

.profil-card-empty .profil-photo-wrap {
    height: 128px;
    padding: 0;
}

.profil-photo-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 0;
    background: linear-gradient(135deg, #f3f6fb, #e8edf5);
    color: #8ea0b5;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.profil-card-empty .profil-card-body h4 {
    min-height: auto;
    color: #6f7e90;
}

.profil-card-empty .profil-jabatan {
    color: #b14b14;
}

@media (min-width: 981px) {
    .profil-section-pimpinan .profil-grid {
        grid-template-columns: repeat(2, minmax(0, 250px));
        justify-content: center;
    }
}

@media (max-width: 1180px) {
    .profil-grid,
    .profil-grid-pelaksana {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .profil-hero-card,
    .profil-filter-card,
    .profil-section,
    .profil-pelaksana-group {
        border-radius: 26px;
    }

    .profil-hero-content {
        grid-template-columns: 1fr;
    }

    .profil-hero-summary {
        max-width: 240px;
    }

    .profil-filter-head,
    .profil-filter-foot {
        flex-direction: column;
        align-items: flex-start;
    }

    .profil-filter-actions {
        margin-left: 0;
    }

    .profil-grid,
    .profil-grid-pelaksana {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .profil-hero-card,
    .profil-filter-card,
    .profil-section,
    .profil-pelaksana-group {
        border-radius: 24px;
    }

    .profil-hero-card,
    .profil-filter-card {
        padding: 22px 20px 20px;
    }

    .profil-hero-card h2 {
        font-size: 25px;
    }

    .profil-filter-head h3 {
        font-size: 20px;
    }

    .profil-filter-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .profil-filter-field,
    .profil-filter-field-compact,
    .profil-filter-actions {
        width: 100%;
        flex: 1 1 auto;
    }

    .profil-filter-actions {
        margin-left: 0;
    }

    .profil-filter-reset,
    .profil-filter-actions button {
        width: 100%;
        min-width: 0;
    }

    .profil-grid,
    .profil-grid-pelaksana {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .profil-photo-wrap {
        height: 194px;
        padding: 10px 10px 0;
    }

    .profil-card-body {
        padding: 13px 14px 16px;
    }

    .profil-card-body h4 {
        min-height: auto;
        font-size: 15px;
    }

    .profil-section-header h3 {
        font-size: 20px;
    }
}

@media (max-width: 460px) {
    .profil-pegawai-page {
        gap: 18px;
    }

    .profil-hero-card h2 {
        font-size: 22px;
    }

    .profil-grid,
    .profil-grid-pelaksana,
    .profil-section-pimpinan .profil-grid {
        grid-template-columns: 1fr;
    }

    .profil-photo-wrap {
        height: auto;
        aspect-ratio: 4 / 5;
    }

    .profil-section,
    .profil-pelaksana-group {
        padding: 20px 16px 16px;
    }
}
