:root {
    --bg: #eef2ff;
    --surface: rgba(255, 255, 255, 0.96);
    --surface-soft: #f8fafc;
    --ink: #0f172a;
    --muted: #64748b;
    --line: rgba(148, 163, 184, 0.22);
    --brand: #2563eb;
    --brand-strong: #1d4ed8;
    --brand-soft: rgba(37, 99, 235, 0.12);
    --success: #166534;
    --success-soft: #dcfce7;
    --danger: #b91c1c;
    --danger-soft: #fee2e2;
    --warning: #b45309;
    --warning-soft: #fef3c7;
    --shadow: 0 22px 48px rgba(15, 23, 42, 0.12);
    --font: "Plus Jakarta Sans", sans-serif;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: var(--font);
    color: var(--ink);
    background:
        radial-gradient(circle at top, rgba(37, 99, 235, 0.16), transparent 35%),
        linear-gradient(180deg, #f8fbff 0%, #eef2ff 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

.hr-app-shell {
    min-height: 100vh;
}

.hr-screen,
.hr-auth-screen {
    width: min(100%, 520px);
    margin: 0 auto;
    padding: calc(20px + env(safe-area-inset-top)) 16px calc(108px + env(safe-area-inset-bottom));
}

.hr-screen--map {
    width: 100%;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

.hr-auth-screen {
    display: grid;
    gap: 18px;
    min-height: 100vh;
    align-content: center;
}

.hr-auth-screen--focused {
    max-width: 460px;
}

.hr-topbar,
.hr-card-head,
.hr-section__head,
.hr-list-card__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
}

.hr-eyebrow {
    display: inline-flex;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--brand);
}

.hr-topbar h1,
.hr-auth-hero h1,
.hr-card-head h2,
.hr-section__head h2,
.hr-hero-card h2 {
    margin: 6px 0 0;
    line-height: 1.08;
}

.hr-topbar h1,
.hr-auth-hero h1 {
    font-size: clamp(1.7rem, 6vw, 2.4rem);
}

.hr-topbar p,
.hr-auth-hero p,
.hr-hero-card p,
.hr-list-card p,
.hr-list-card small,
.hr-empty-state,
.hr-map-popup small,
.hr-map-popup span {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.hr-surface,
.hr-auth-card,
.hr-auth-hero,
.hr-hero-card,
.hr-bottom-nav {
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.hr-auth-card,
.hr-auth-hero,
.hr-surface,
.hr-hero-card {
    border-radius: 26px;
    padding: 18px;
}

.hr-chip,
.hr-badge,
.hr-location-pill,
.hr-toggle-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    white-space: nowrap;
}

.hr-chip {
    background: rgba(15, 23, 42, 0.08);
    color: var(--muted);
}

.hr-chip--brand {
    background: var(--brand-soft);
    color: var(--brand);
}

.hr-chip--success,
.hr-location-pill.is-valid {
    background: var(--success-soft);
    color: var(--success);
}

.hr-location-pill.is-invalid {
    background: var(--danger-soft);
    color: var(--danger);
}

.hr-badge--aktif,
.hr-badge--hadir,
.hr-badge--selesai,
.hr-badge--paid {
    background: var(--success-soft);
    color: var(--success);
}

.hr-badge--terbuka,
.hr-badge--progress,
.hr-badge--eskalasi {
    background: var(--warning-soft);
    color: var(--warning);
}

.hr-badge--isolir,
.hr-badge--nonaktif,
.hr-badge--tutup {
    background: var(--danger-soft);
    color: var(--danger);
}

.hr-button,
.hr-link-button,
.hr-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 16px;
    border-radius: 16px;
    border: 1px solid transparent;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.hr-button {
    width: 100%;
}

.hr-button--primary {
    background: linear-gradient(135deg, var(--brand), var(--brand-strong));
    color: #fff;
}

.hr-button--dark {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #fff;
}

.hr-link-button,
.hr-icon-button,
.hr-toggle-chip {
    background: #fff;
    border-color: var(--line);
    color: var(--ink);
}

.hr-link-button--soft {
    min-height: 40px;
    padding: 0 14px;
    border-radius: 14px;
    background: rgba(248, 250, 252, 0.96);
}

.hr-link-button--compact {
    min-height: 36px;
    padding: 0 12px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 800;
}

.hr-link-button--whatsapp {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.18);
    color: #15803d;
}

.hr-link-button--soft.is-disabled {
    opacity: 0.5;
    pointer-events: none;
}

.hr-toggle-chip.is-active {
    background: var(--brand-soft);
    border-color: rgba(37, 99, 235, 0.24);
    color: var(--brand);
}

.hr-icon-button {
    min-width: 46px;
    padding: 0;
}

.hr-icon-button--muted {
    min-width: 38px;
    min-height: 38px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.06);
}

.hr-auth-stats,
.hr-auth-panels,
.hr-card-grid,
.hr-hero-grid,
.hr-shortcut-grid,
.hr-map-meta,
.hr-filter-grid {
    display: grid;
    gap: 12px;
}

.hr-auth-stats,
.hr-card-grid,
.hr-hero-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hr-auth-stats article,
.hr-kpi-card,
.hr-hero-grid article,
.hr-map-meta > div {
    border-radius: 18px;
    padding: 14px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
}

.hr-auth-stats strong,
.hr-kpi-card strong,
.hr-hero-grid strong,
.hr-map-meta strong,
.hr-key-value strong {
    display: block;
    font-size: 1.02rem;
}

.hr-auth-stats span,
.hr-kpi-card span,
.hr-hero-grid span,
.hr-map-meta span,
.hr-key-value span {
    display: block;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.hr-card-grid,
.hr-list-stack,
.hr-section,
.hr-auth-card,
.hr-attendance-summary,
.hr-map-wrapper {
    margin-top: 16px;
}

.hr-list-stack {
    display: grid;
    gap: 16px;
}

.hr-card-grid--single-mobile {
    grid-template-columns: 1fr;
}

.hr-attendance-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.hr-attendance-summary article {
    padding: 0;
}

.hr-attendance-summary__clock {
    display: grid;
    justify-items: end;
    gap: 2px;
}

.hr-attendance-summary__clock strong {
    font-size: 1.08rem;
    line-height: 1.1;
}

.hr-attendance-summary__clock small {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
}

.hr-shortcut-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hr-shortcut-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hr-payroll-filter {
    padding: 14px;
}

.hr-inline-form--payroll {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
}

.hr-inline-form--payroll .hr-button {
    width: auto;
    min-width: 132px;
}

.hr-shortcut-card {
    display: grid;
    gap: 8px;
    padding: 16px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(245,248,255,0.94));
    border: 1px solid var(--line);
}

.hr-shortcut-card i {
    font-size: 1.15rem;
    color: var(--brand);
}

.hr-form {
    display: grid;
    gap: 14px;
}

.hr-auth-card {
    display: grid;
    gap: 18px;
}

.hr-auth-stack {
    position: relative;
    display: grid;
    gap: 18px;
    min-height: 80vh;
    align-content: center;
    padding-top: 108px;
}

.hr-auth-stack.is-open {
    padding-top: 108px;
}

.hr-auth-brand-float {
    position: absolute;
    left: 18px;
    right: 18px;
    top: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 24px;
    background: rgba(10, 14, 32, 0.92);
    box-shadow: 0 22px 46px rgba(15, 23, 42, 0.28);
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hr-auth-stack.is-open .hr-auth-brand-float {
    transform: translateY(-4px);
    box-shadow: 0 26px 54px rgba(15, 23, 42, 0.3);
}

.hr-auth-brand-image {
    flex: 0 0 60px;
    width: 60px;
    height: 60px;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 14px 26px rgba(145, 92, 255, 0.26));
}

.hr-auth-brand-copy {
    display: grid;
    gap: 3px;
}

.hr-auth-brand-copy strong {
    color: #fff;
    font-size: 1rem;
    line-height: 1.2;
}

.hr-auth-brand-copy span {
    color: rgba(226, 232, 240, 0.86);
    font-size: 0.8rem;
    line-height: 1.35;
}

.hr-auth-cta {
    width: 100%;
    display: grid;
    gap: 4px;
    justify-items: center;
    padding: 24px 20px;
    border: 0;
    border-radius: 30px;
    background: linear-gradient(145deg, #0f172a, #172554 52%, #1d4ed8 100%);
    box-shadow: 0 30px 72px rgba(29, 78, 216, 0.26);
    color: #fff;
    transition: transform 0.28s ease, opacity 0.24s ease;
}

.hr-auth-cta span {
    font-size: 0.88rem;
    font-weight: 700;
    color: rgba(219, 234, 254, 0.86);
}

.hr-auth-cta strong {
    font-size: 1.45rem;
    line-height: 1.1;
}

.hr-auth-cta.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-14px) scale(0.96);
}

.hr-auth-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 20px 16px calc(20px + env(safe-area-inset-bottom));
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease;
}

.hr-auth-modal.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.hr-auth-modal__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(15, 23, 42, 0.56);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.hr-auth-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 440px);
    max-height: min(88vh, 760px);
    overflow: auto;
    border-radius: 28px;
    animation: hrAuthModalIn 0.26s ease;
}

.hr-auth-card--single {
    display: grid;
    margin-top: 0;
}

.hr-auth-steps {
    display: grid;
    gap: 10px;
}

.hr-auth-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.92);
    border: 1px solid var(--line);
}

.hr-auth-step__index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.16);
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 800;
}

.hr-auth-step strong,
.hr-auth-panel__head h3 {
    display: block;
    margin: 0;
    font-size: 1rem;
}

.hr-auth-step span:last-child,
.hr-auth-note {
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.5;
}

.hr-auth-step.is-active {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.2);
}

.hr-auth-step.is-active .hr-auth-step__index,
.hr-auth-step.is-done .hr-auth-step__index {
    background: var(--brand);
    color: #fff;
}

.hr-auth-step.is-done {
    background: rgba(22, 101, 52, 0.08);
    border-color: rgba(22, 101, 52, 0.16);
}

.hr-auth-panels {
    display: grid;
    gap: 14px;
}

.hr-auth-panels--stacked {
    grid-template-columns: 1fr;
}

.hr-auth-panel {
    padding: 18px;
}

.hr-auth-panel__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.hr-auth-phone-lock {
    display: grid;
    gap: 4px;
    padding: 14px;
    border-radius: 16px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
}

.hr-auth-phone-lock span {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hr-auth-phone-lock strong {
    font-size: 1rem;
    line-height: 1.4;
}

.hr-card-head--login {
    align-items: center;
}

.hr-card-head__actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

@keyframes hrAuthPanelIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hrAuthModalIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hr-field {
    display: grid;
    gap: 8px;
}

.hr-field span {
    font-size: 0.84rem;
    font-weight: 700;
}

.hr-field input,
.hr-field textarea,
.hr-field select {
    width: 100%;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    border-radius: 16px;
    padding: 13px 14px;
    font: inherit;
    outline: none;
}

.hr-field input:focus,
.hr-field textarea:focus,
.hr-field select:focus {
    border-color: rgba(37, 99, 235, 0.44);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.hr-filter-form form,
.hr-inline-form {
    display: grid;
    gap: 12px;
}

.hr-toggle-row,
.hr-meta-pills,
.hr-pagination {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.hr-meta-pills span {
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
}

.hr-list-card {
    display: grid;
    gap: 10px;
    padding: 16px;
    border-radius: 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.hr-ticket-card {
    gap: 12px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,247,255,0.94));
    padding-top: 18px;
    padding-bottom: 18px;
}

.hr-ticket-card__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.hr-ticket-card__issue {
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.92);
    border: 1px solid var(--line);
    color: var(--ink);
    font-size: 0.88rem;
    line-height: 1.6;
}

.hr-ticket-card--link {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hr-ticket-card--link:active {
    transform: translateY(1px);
}

.hr-ticket-card--link:hover {
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
}

.hr-ticket-location {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.hr-ticket-location span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.96);
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
}

.hr-ticket-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.hr-ticket-actions--compact {
    margin-top: 4px;
}

.hr-ticket-actions--single {
    grid-template-columns: 1fr;
}

.hr-ticket-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 8px;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.hr-ticket-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--brand);
    font-size: 0.8rem;
    font-weight: 800;
}

.hr-hero-card--detail .hr-hero-grid {
    margin-top: 16px;
}

.hr-hero-card--detail {
    gap: 14px;
}

.hr-ticket-overview,
.hr-ticket-detail-hero,
.hr-attendance-hero {
    display: grid;
    gap: 14px;
    margin-top: 16px;
    padding: 20px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.16), transparent 34%),
        linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,247,255,0.94));
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.hr-ticket-overview__head,
.hr-attendance-hero__status,
.hr-ticket-detail-hero__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.hr-ticket-overview strong,
.hr-attendance-hero__clock strong {
    font-size: 1rem;
    line-height: 1.1;
}

.hr-attendance-hero__clock {
    display: grid;
    justify-items: end;
    gap: 4px;
}

.hr-attendance-hero__clock small {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.hr-ticket-detail-hero h2,
.hr-attendance-hero h2 {
    margin: 0;
    font-size: clamp(1.55rem, 6vw, 2.1rem);
    line-height: 1.08;
}

.hr-ticket-detail-kpi,
.hr-attendance-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.hr-ticket-detail-kpi article,
.hr-attendance-kpi {
    padding: 14px;
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.94);
    border: 1px solid var(--line);
}

.hr-ticket-detail-kpi span,
.hr-attendance-kpi span {
    display: block;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hr-ticket-detail-kpi strong,
.hr-attendance-kpi strong {
    display: block;
    margin-top: 8px;
    font-size: 0.94rem;
    line-height: 1.2;
}

.hr-attendance-map-card {
    margin-top: 16px;
    padding: 18px 18px 20px;
}

.hr-attendance-action-card,
.hr-attendance-finished-card,
.hr-ticket-detail-card {
    gap: 14px;
}

.hr-attendance-history-card {
    gap: 12px;
}

.hr-attendance-map-card .hr-section__head {
    margin-bottom: 14px;
    justify-content: flex-end;
}

.hr-attendance-map-card .hr-map-canvas--attendance {
    margin: 8px 0 0;
}

.hr-attendance-map-card .hr-map-meta {
    margin-top: 16px;
}

.hr-attendance-note,
.hr-ticket-detail-note {
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.92);
    border: 1px solid var(--line);
    color: var(--ink);
    font-size: 0.88rem;
    line-height: 1.6;
}

.hr-ticket-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.hr-ticket-detail-grid__item {
    padding: 14px;
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.94);
    border: 1px solid var(--line);
}

.hr-ticket-detail-grid__item span {
    display: block;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hr-ticket-detail-grid__item strong {
    display: block;
    margin-top: 8px;
    font-size: 0.92rem;
    line-height: 1.3;
}

.hr-topbar--home {
    margin-bottom: 4px;
}

.hr-home-hero {
    display: grid;
    gap: 14px;
    margin-top: 16px;
    padding: 20px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.16), transparent 34%),
        linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,247,255,0.94));
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.hr-home-hero__main {
    display: grid;
    gap: 10px;
}

.hr-home-hero__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.hr-home-hero h2 {
    margin: 0;
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    line-height: 1.08;
}

.hr-home-hero__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.hr-home-hero__stats article,
.hr-home-card {
    padding: 14px;
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.94);
    border: 1px solid var(--line);
}

.hr-home-hero__stats span,
.hr-home-card span {
    display: block;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hr-home-hero__stats strong,
.hr-home-card strong {
    display: block;
    margin-top: 8px;
    font-size: 1rem;
    line-height: 1.2;
}

.hr-home-hero__stats small,
.hr-home-card small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.78rem;
}

.hr-home-overview {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.hr-home-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: center;
}

.hr-home-card--highlight {
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.1), rgba(248, 250, 252, 0.94));
}

.hr-home-card__icon,
.hr-home-shortcut__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(37, 99, 235, 0.12);
    color: var(--brand);
    font-size: 1rem;
}

.hr-home-shortcuts {
    display: grid;
    gap: 12px;
}

.hr-home-shortcut {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: center;
    padding: 16px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(245,248,255,0.94));
    border: 1px solid var(--line);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
}

.hr-home-shortcut--primary {
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.12), rgba(255,255,255,0.98));
}

.hr-home-shortcut strong {
    display: block;
    font-size: 0.98rem;
}

.hr-home-shortcut span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

.hr-home-ticket {
    gap: 12px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,247,255,0.94));
}

.hr-home-ticket__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.hr-payroll-hero {
    display: grid;
    gap: 14px;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.12), transparent 34%),
        linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,247,255,0.94));
}

.hr-payroll-hero__main {
    display: grid;
    gap: 8px;
}

.hr-payroll-hero__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.hr-payroll-period {
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 700;
}

.hr-payroll-hero h2 {
    font-size: clamp(2rem, 7vw, 2.7rem);
}

.hr-payroll-kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.hr-payroll-kpi {
    padding: 14px;
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.92);
    border: 1px solid var(--line);
}

.hr-payroll-kpi span,
.hr-payroll-summary-grid__item span {
    display: block;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hr-payroll-kpi strong,
.hr-payroll-summary-grid__item strong {
    display: block;
    margin-top: 8px;
    font-size: 1rem;
    line-height: 1.2;
}

.hr-payroll-kpi small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.78rem;
}

.hr-payroll-kpi--positive {
    background: rgba(220, 252, 231, 0.72);
    border-color: rgba(22, 101, 52, 0.12);
}

.hr-payroll-kpi--negative {
    background: rgba(254, 242, 242, 0.8);
    border-color: rgba(185, 28, 28, 0.12);
}

.hr-payroll-card {
    gap: 14px;
}

.hr-payroll-breakdown {
    display: grid;
    gap: 10px;
}

.hr-payroll-breakdown__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.92);
    border: 1px solid var(--line);
}

.hr-payroll-breakdown__row span {
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 700;
}

.hr-payroll-breakdown__row strong {
    font-size: 0.92rem;
}

.hr-payroll-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.hr-payroll-summary-grid__item {
    padding: 14px;
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.92);
    border: 1px solid var(--line);
}

.hr-payroll-summary-grid__item--total {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #0f172a, #1d4ed8);
    border-color: transparent;
}

.hr-payroll-summary-grid__item--total span,
.hr-payroll-summary-grid__item--total strong {
    color: #fff;
}

.hr-empty-state--payroll,
.hr-empty-inline {
    color: var(--muted);
    font-size: 0.9rem;
}

.hr-list-card--detail-note {
    gap: 12px;
}

.hr-attendance-finished {
    align-content: start;
}

.hr-attendance-photo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.hr-attendance-photo-card {
    display: grid;
    gap: 8px;
}

.hr-attendance-photo-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid var(--line);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}

.hr-attendance-photo-card span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.hr-key-value {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px dashed var(--line);
}

.hr-empty-state {
    padding: 18px;
    text-align: center;
    border-radius: 20px;
    background: rgba(255,255,255,0.65);
    border: 1px dashed var(--line);
}

.hr-flash {
    margin-top: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    font-size: 0.92rem;
    font-weight: 700;
}

.hr-flash--success {
    background: var(--success-soft);
    color: var(--success);
}

.hr-flash--error {
    background: var(--danger-soft);
    color: var(--danger);
}

.hr-map-canvas {
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--line);
}

.hr-map-canvas--attendance {
    min-height: 280px;
}

.hr-map-canvas--network {
    min-height: calc(100vh - 230px - env(safe-area-inset-bottom));
    border-radius: 0;
    border-left: 0;
    border-right: 0;
}

.hr-map-wrapper {
    margin-bottom: calc(84px + env(safe-area-inset-bottom));
}

.hr-map-popup {
    display: grid;
    gap: 4px;
    min-width: 160px;
}

.hr-map-popup strong {
    font-size: 0.94rem;
}

.hr-map-marker {
    background: transparent;
    border: 0;
}

.hr-map-marker > div,
.hr-map-marker i {
    display: inline-flex;
}

.hr-map-marker i {
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.hr-map-marker.is-customer i {
    color: #16a34a;
}

.hr-map-marker.is-odp i {
    color: #2563eb;
}

.hr-map-marker.is-olt i {
    color: #7c3aed;
}

.leaflet-container {
    font-family: var(--font);
}

.hr-bottom-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    padding: 10px;
    border-radius: 24px;
}

.hr-bottom-nav__item {
    display: grid;
    justify-items: center;
    gap: 6px;
    padding: 10px 4px;
    border-radius: 16px;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 700;
}

.hr-bottom-nav__item i {
    font-size: 1rem;
}

.hr-bottom-nav__item.is-active {
    background: linear-gradient(135deg, var(--brand), var(--brand-strong));
    color: #fff;
}

@media (min-width: 720px) {
    .hr-screen,
    .hr-auth-screen {
        max-width: 720px;
    }

    .hr-card-grid,
    .hr-shortcut-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hr-inline-form--payroll {
        grid-template-columns: minmax(220px, 300px) auto;
        justify-content: space-between;
    }

    .hr-home-overview {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hr-home-shortcuts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hr-ticket-detail-kpi,
    .hr-attendance-kpi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hr-auth-panels {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hr-auth-screen--focused {
        max-width: 520px;
    }

    .hr-auth-brand-float {
        left: 20px;
        right: 20px;
    }

    .hr-auth-dialog {
        width: min(100%, 460px);
    }
}

@media (max-width: 520px) {
    .hr-ticket-detail-kpi,
    .hr-attendance-kpi-grid,
    .hr-ticket-detail-grid {
        grid-template-columns: 1fr;
    }

    .hr-ticket-card__top,
    .hr-ticket-foot,
    .hr-attendance-hero__status,
    .hr-ticket-overview__head {
        align-items: flex-start;
    }
}
