.login-card select {
    width: 100%;
    border: 1px solid #dce0e7;
    border-radius: 9px;
    padding: 12px;
    font: inherit;
    color: var(--ink);
    background: #fff;
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 102px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 7px;
    padding: 6px 9px;
    color: var(--blue);
    background: var(--blue-soft);
    font-size: 11px;
    font-weight: 750;
    cursor: pointer;
}

.system-login {
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 9px 11px;
    color: var(--muted);
}

.system-login summary {
    cursor: pointer;
    font-size: 11px;
    font-weight: 750;
}

.system-login label {
    margin-top: 10px;
}

.office-location-card {
    display: grid;
    grid-template-columns: minmax(260px, .72fr) minmax(420px, 1.28fr);
    gap: 18px;
    align-items: stretch;
    margin-bottom: 18px;
    padding: 18px;
}

.office-location-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 7px;
}

.office-location-copy h2,
.office-location-copy p {
    margin: 0;
}

.office-location-copy small {
    color: var(--muted);
    line-height: 1.55;
}

.office-map-link {
    margin-top: 7px;
}

.office-map-frame {
    width: 100%;
    min-height: 300px;
    border: 0;
    border-radius: 13px;
    background: #e9eef5;
}

.location-capture {
    display: grid;
    gap: 12px;
    border: 1px solid #dce5f2;
    border-radius: 13px;
    padding: 14px;
    background: #f8fbff;
}

.location-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.location-heading small,
.location-status {
    display: block;
    color: var(--muted);
    font-size: 11px;
}

.location-status.success {
    color: var(--green);
    font-weight: 750;
}

.location-status.error {
    color: var(--red);
    font-weight: 750;
}

.location-map {
    display: none;
    width: 100%;
    height: 260px;
    border: 0;
    border-radius: 11px;
    background: #e9eef5;
}

.location-map.active {
    display: block;
}

@media (max-width: 820px) {
    .office-location-card {
        grid-template-columns: 1fr;
    }

    .office-map-frame {
        min-height: 260px;
    }
}

.map-link {
    display: inline-block;
    margin-top: 4px;
    color: var(--blue);
    font-size: 11px;
    font-weight: 750;
}

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

.report-history-head {
    gap: 18px;
}

.report-search {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    width: min(100%, 560px);
}

.report-search input {
    flex: 1;
    min-width: 230px;
    border: 1px solid #dce0e7;
    border-radius: 9px;
    padding: 9px 11px;
    color: var(--ink);
    background: #fff;
    font: inherit;
    outline: none;
}

.report-search input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--blue-soft);
}

.search-summary {
    margin: -8px 0 14px !important;
    padding: 9px 12px;
    border-radius: 9px;
    background: #f7f9fc;
    font-size: 12px;
}

.attendance-chart {
    margin-bottom: 18px;
}

.chart-legend-note {
    color: var(--muted);
    font-size: 11px;
}

.donut-chart-layout {
    display: grid;
    grid-template-columns: minmax(220px, .7fr) minmax(320px, 1.3fr);
    align-items: center;
    gap: 28px;
    padding: 8px 0 16px;
}

.attendance-donut {
    position: relative;
    width: min(250px, 78vw);
    aspect-ratio: 1;
    margin: 0 auto;
    border-radius: 50%;
    background: var(--donut-background);
    box-shadow: inset 0 0 0 1px rgba(31,41,55,.05);
}

.attendance-donut::after {
    content: '';
    position: absolute;
    inset: 24%;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(31,41,55,.06), 0 8px 24px rgba(31,41,55,.08);
}

.attendance-donut-center {
    position: absolute;
    z-index: 1;
    inset: 24%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.attendance-donut-center strong {
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1;
}

.attendance-donut-center span {
    margin-top: 6px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.donut-legend {
    display: grid;
    gap: 9px;
}

.donut-legend-row {
    display: grid;
    grid-template-columns: 12px minmax(92px,1fr) auto 52px;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}

.donut-legend-color {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.donut-legend-color.hadir { background: #168a57; }
.donut-legend-color.tl { background: #e58b24; }
.donut-legend-color.psw { background: #c83a4a; }
.donut-legend-color.wfh { background: #7656c8; }
.donut-legend-color.dl { background: #168aa3; }
.donut-legend-color.lainnya { background: #7b8794; }

.donut-legend-label {
    font-size: 12px;
    font-weight: 750;
}

.donut-legend-row strong {
    font-size: 12px;
}

.donut-legend-row small {
    color: var(--muted);
    text-align: right;
}

@media (max-width: 560px) {
    .location-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .location-map {
        height: 220px;
    }

    .donut-chart-layout {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .donut-legend-row {
        grid-template-columns: 12px minmax(82px,1fr) auto 46px;
    }

    .report-history-head,
    .report-search {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .report-search input {
        min-width: 0;
        width: 100%;
    }

    .report-search .button {
        text-align: center;
    }
}
