:root {
    --hrms-bg: #f4f6f8;
    --hrms-bg-soft: #eaf1ec;
    --hrms-card: #ffffff;
    --hrms-border: #d9e0e7;
    --hrms-border-strong: #c5d0db;
    --hrms-text: #1f2d3d;
    --hrms-muted: #5f7285;
    --hrms-accent: #14532d;
    --hrms-accent-strong: #0f3f22;
    --hrms-accent-soft: #e7f4eb;
    --hrms-accent-rgb: 20, 83, 45;
    --hrms-info: #0f4c81;
    --hrms-accent-contrast: #ffffff;
    --hrms-danger: #b42318;
    --hrms-success: #166534;
    --hrms-warning: #b45309;
    --hrms-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    --hrms-shadow-soft: 0 18px 42px rgba(15, 23, 42, 0.07);
    --hrms-radius-lg: 24px;
    --hrms-radius-md: 18px;
    --hrms-radius-sm: 12px;
    --hrms-font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    --hrms-font-size: 16px;
    --hrms-page-max-width: 1080px;
    --hrms-container-bg: #ffffff;
    --hrms-container-border: #c5d0db;
    --hrms-card-focus-bg: #f7fbf8;
    --hrms-card-muted-bg: #f8fafc;
    --hrms-label-color: #1f2d3d;
    --hrms-input-bg: #ffffff;
    --hrms-input-border: #d9e0e7;
    --hrms-input-text: #1f2d3d;
    --hrms-placeholder-color: #8a99a8;
    --hrms-button-bg: #14532d;
    --hrms-button-text: #ffffff;
    --hrms-button-hover-bg: #0f3f22;
    --hrms-button-hover-text: #ffffff;
    --hrms-link-color: #0f3f22;
    --hrms-link-hover-color: #14532d;
    --hrms-button-radius: 999px;
    --hrms-input-radius: 12px;
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body.hrms {
    margin: 0;
    font-family: var(--hrms-font-family);
    font-size: var(--hrms-font-size);
    line-height: 1.6;
    color: var(--hrms-text);
    background:
        radial-gradient(circle at top left, rgba(var(--hrms-accent-rgb), 0.14), transparent 30%),
        linear-gradient(180deg, var(--hrms-bg-soft) 0%, var(--hrms-bg) 46%, var(--hrms-bg-soft) 100%);
}

body.hrms.hrms-theme-dark {
    background:
        radial-gradient(circle at top left, rgba(var(--hrms-accent-rgb), 0.24), transparent 32%),
        linear-gradient(180deg, var(--hrms-bg-soft) 0%, var(--hrms-bg) 52%, var(--hrms-bg-soft) 100%);
}

body.hrms.hrms-theme-dark .hrms-shell-backdrop {
    background:
        radial-gradient(circle at 0 0, rgba(var(--hrms-accent-rgb), 0.2), transparent 30%),
        radial-gradient(circle at 100% 0, rgba(var(--hrms-accent-rgb), 0.16), transparent 28%);
}

body.hrms.hrms-theme-dark .hrms-language-switcher,
body.hrms.hrms-theme-dark .hrms-topbar,
body.hrms.hrms-theme-dark .hrms-form input,
body.hrms.hrms-theme-dark .hrms-form select,
body.hrms.hrms-theme-dark .hrms-form textarea,
body.hrms.hrms-theme-dark .hrms-button-secondary,
body.hrms.hrms-theme-dark .hrms-table-wrap,
body.hrms.hrms-theme-dark .hrms-qr-card,
body.hrms.hrms-theme-dark .hrms-qr-box,
body.hrms.hrms-theme-dark .hrms-metric-box,
body.hrms.hrms-theme-dark .hrms-name-list-compact li,
body.hrms.hrms-theme-dark .hrms-description-list div,
body.hrms.hrms-theme-dark .hrms-key-value-list div,
body.hrms.hrms-theme-dark .hrms-inline-status,
body.hrms.hrms-theme-dark .hrms-choice-card,
body.hrms.hrms-theme-dark .hrms-payroll-manual-form,
body.hrms.hrms-theme-dark .hrms-stat-card,
body.hrms.hrms-theme-dark .hrms-action-tile,
body.hrms.hrms-theme-dark .hrms-report-card,
body.hrms.hrms-theme-dark .hrms-line-item,
body.hrms.hrms-theme-dark .hrms-record-card {
    background: var(--hrms-container-bg);
    color: var(--hrms-text);
    border-color: var(--hrms-container-border);
}

body.hrms.hrms-theme-dark .hrms-card-muted,
body.hrms.hrms-theme-dark .hrms-card-focus,
body.hrms.hrms-theme-dark .hrms-empty-state,
body.hrms.hrms-theme-dark .hrms-placeholder-list div,
body.hrms.hrms-theme-dark .hrms-table th,
body.hrms.hrms-theme-dark .hrms-choice-card.is-muted,
body.hrms.hrms-theme-dark .hrms-status-step,
body.hrms.hrms-theme-dark .hrms-report-card.is-active {
    background: var(--hrms-card-muted-bg);
    color: var(--hrms-text);
}

body.hrms.hrms-theme-dark .hrms-table tbody tr:hover {
    background: rgba(var(--hrms-accent-rgb), 0.1);
}

body.hrms a {
    color: var(--hrms-link-color);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.16em;
}

body.hrms a:hover,
body.hrms a:focus-visible {
    color: var(--hrms-link-hover-color);
}

body.hrms h1,
body.hrms h2,
body.hrms h3,
body.hrms h4,
body.hrms h5,
body.hrms h6,
body.hrms p {
    margin-top: 0;
}

body.hrms h1,
body.hrms h2,
body.hrms h3 {
    line-height: 1.2;
    letter-spacing: -0.02em;
}

body.hrms h1 {
    margin-bottom: 12px;
    font-size: clamp(1.95rem, 4vw, 3rem);
}

body.hrms h2 {
    margin-bottom: 10px;
    font-size: clamp(1.35rem, 3vw, 2rem);
}

body.hrms h3 {
    margin-bottom: 10px;
    font-size: clamp(1.12rem, 2.2vw, 1.35rem);
}

body.hrms p:last-child,
body.hrms ul:last-child,
body.hrms ol:last-child {
    margin-bottom: 0;
}

.hrms-shell {
    position: relative;
    min-height: 100vh;
    padding: 20px 12px 40px;
    overflow: hidden;
}

.hrms-shell-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.78), transparent 28%),
        radial-gradient(circle at 100% 0, rgba(var(--hrms-accent-rgb), 0.08), transparent 24%);
    pointer-events: none;
}

.hrms-shell-inner {
    position: relative;
    z-index: 1;
}

.hrms-language-toolbar {
    max-width: 1080px;
    margin: 0 auto 12px;
    display: flex;
    justify-content: flex-end;
}

.hrms-language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid var(--hrms-container-border);
    border-radius: 999px;
    background: var(--hrms-container-bg);
    box-shadow: var(--hrms-shadow);
}

.hrms-language-label {
    font-size: 0.82rem;
    color: var(--hrms-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.hrms-language-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--hrms-accent-strong);
}

.hrms-language-link:hover,
.hrms-language-link:focus-visible {
    border-color: rgba(var(--hrms-accent-rgb), 0.2);
    background: #f0fdf4;
    color: var(--hrms-accent-strong);
}

.hrms-language-link.is-active {
    background: var(--hrms-accent);
    color: #fff;
    border-color: rgba(var(--hrms-accent-rgb), 0.6);
}

.hrms-ribbon {
    max-width: 1080px;
    margin: 0 auto 18px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--hrms-border-strong);
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    align-items: center;
    box-shadow: var(--hrms-shadow-soft);
    backdrop-filter: blur(8px);
}

.hrms-ribbon-warning {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #854d0e;
}

.hrms-ribbon-danger {
    background: #fee2e2;
    border-color: #ef4444;
    color: #991b1b;
}

.hrms-page {
    max-width: var(--hrms-page-max-width);
    margin: 0 auto;
}

.hrms-page-narrow {
    max-width: 720px;
}

.hrms-page > * + *,
.hrms-page > form + *,
.hrms-page > section + section,
.hrms-page > header + section,
.hrms-page > header + div,
.hrms-page > div + section {
    margin-top: 24px;
}

.hrms-card {
    background: var(--hrms-container-bg);
    border: 1px solid var(--hrms-container-border);
    border-radius: var(--hrms-radius-md);
    box-shadow: var(--hrms-shadow);
    padding: 20px;
}

.hrms-card-tight {
    padding: 18px 20px;
}

.hrms-card-hero {
    padding: 24px;
}

.hrms-card-focus {
    background: var(--hrms-card-focus-bg);
}

.hrms-card-muted {
    background: var(--hrms-card-muted-bg);
}

.hrms-grid {
    display: grid;
    gap: 16px;
}

.hrms-grid-plans {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.hrms-grid-dashboard {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.hrms-topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    border: 1px solid var(--hrms-container-border);
    border-radius: var(--hrms-radius-lg);
    background: var(--hrms-container-bg);
    box-shadow: var(--hrms-shadow-soft);
}

.hrms-topbar > div:first-child {
    min-width: 0;
}

.hrms-topbar p:not(.hrms-eyebrow) {
    color: var(--hrms-muted);
    max-width: 64ch;
}

.hrms-eyebrow {
    margin: 0 0 8px;
    color: var(--hrms-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

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

.hrms-form span {
    font-weight: 600;
    color: var(--hrms-label-color);
}

.hrms-form-register {
    margin-top: 20px;
}

.hrms-form label {
    display: grid;
    gap: 6px;
}

.hrms-form input,
.hrms-form select,
.hrms-form textarea {
    width: 100%;
    border: 1px solid var(--hrms-input-border);
    border-radius: var(--hrms-input-radius);
    min-height: 46px;
    padding: 11px 14px;
    font: inherit;
    line-height: 1.35;
    color: var(--hrms-input-text);
    background: var(--hrms-input-bg);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.hrms-form select {
    padding-right: 14px;
}

.hrms-form input::placeholder,
.hrms-form textarea::placeholder {
    color: var(--hrms-placeholder-color);
}

.hrms-form input:focus,
.hrms-form select:focus,
.hrms-form textarea:focus,
.hrms-link-button:focus,
.hrms-button:focus,
details summary:focus {
    outline: none;
    border-color: rgba(var(--hrms-accent-rgb), 0.5);
    box-shadow: 0 0 0 4px rgba(var(--hrms-accent-rgb), 0.12);
}

.hrms-form input[type="checkbox"],
.hrms-form input[type="radio"] {
    width: 1.15rem;
    height: 1.15rem;
    min-height: 1.15rem;
    padding: 0;
    appearance: auto;
    -webkit-appearance: auto;
    border-radius: 0.25rem;
    accent-color: var(--hrms-accent);
    flex: 0 0 auto;
    cursor: pointer;
}

.hrms-form textarea {
    min-height: 120px;
    resize: vertical;
}

.hrms-form input[readonly] {
    background: #f8fafc;
}

.hrms-site-map-card {
    border: 1px solid var(--hrms-border);
    border-radius: var(--hrms-radius-sm);
    background: var(--hrms-card);
    padding: 12px;
    display: grid;
    gap: 10px;
}

.hrms-site-map-card-head {
    display: grid;
    gap: 4px;
}

.hrms-site-map-card-head span {
    font-size: 0.96rem;
    font-weight: 700;
}

.hrms-site-map-card-head small {
    color: var(--hrms-muted);
}

.hrms-site-map {
    width: 100%;
    min-height: 320px;
    border-radius: 10px;
    border: 1px solid var(--hrms-border);
    overflow: hidden;
}

.hrms-map-help {
    margin-top: -2px;
}

.hrms-map-coordinate {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: baseline;
}

.hrms-map-coordinate strong {
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.9rem;
}

.hrms-inline-form {
    display: grid;
    gap: 10px;
    align-items: end;
}

.hrms-inline {
    display: flex !important;
    align-items: center;
    gap: 10px;
    width: fit-content;
    max-width: 100%;
    padding: 10px 12px;
    border-radius: 14px;
    background: var(--hrms-bg-soft);
}

.hrms-inline-start {
    align-items: flex-start;
}

.hrms-inline input {
    width: auto;
    margin-top: 0;
}

.hrms-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 48px;
    border: 1px solid transparent;
    border-radius: var(--hrms-button-radius);
    padding: 12px 18px;
    background: var(--hrms-button-bg);
    color: var(--hrms-button-text);
    text-decoration: none;
    font: inherit;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
    box-shadow: 0 10px 20px rgba(var(--hrms-accent-rgb), 0.15);
}

body.hrms a.hrms-button {
    color: var(--hrms-button-text);
}

.hrms-button:hover,
.hrms-button:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(var(--hrms-accent-rgb), 0.18);
    background: var(--hrms-button-hover-bg);
    color: var(--hrms-button-hover-text);
}

body.hrms a.hrms-button:hover,
body.hrms a.hrms-button:focus-visible {
    color: var(--hrms-button-hover-text);
}

.hrms-button[disabled],
.hrms-button:disabled {
    opacity: 0.58;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.hrms-button-secondary {
    background: var(--hrms-input-bg);
    color: var(--hrms-text);
    border-color: var(--hrms-input-border);
    box-shadow: none;
}

body.hrms a.hrms-button-secondary {
    color: var(--hrms-text);
}

.hrms-button-secondary:hover,
.hrms-button-secondary:focus-visible {
    color: var(--hrms-button-hover-text);
}

body.hrms a.hrms-button-secondary:hover,
body.hrms a.hrms-button-secondary:focus-visible {
    color: var(--hrms-button-hover-text);
}

.hrms-button-primary {
    background: var(--hrms-info);
    color: #fff;
    box-shadow: 0 10px 20px rgba(15, 76, 129, 0.18);
}

body.hrms a.hrms-button-primary {
    color: #fff;
}

body.hrms a.hrms-button-primary:hover,
body.hrms a.hrms-button-primary:focus-visible {
    color: var(--hrms-button-hover-text);
}

.hrms-button-ghost {
    background: transparent;
    color: var(--hrms-accent-strong);
    border-color: rgba(var(--hrms-accent-rgb), 0.24);
    box-shadow: none;
}

body.hrms a.hrms-button-ghost {
    color: var(--hrms-accent-strong);
}

body.hrms a.hrms-button-ghost:hover,
body.hrms a.hrms-button-ghost:focus-visible {
    color: var(--hrms-button-hover-text);
}

.hrms-button-danger {
    background: var(--hrms-danger);
    color: #fff;
}

body.hrms a.hrms-button-danger {
    color: #fff;
}

body.hrms a.hrms-button-danger:hover,
body.hrms a.hrms-button-danger:focus-visible {
    color: var(--hrms-button-hover-text);
}

.hrms-button-large {
    min-width: 180px;
    min-height: 54px;
    font-size: 1.05rem;
    font-weight: 700;
}

.hrms-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.hrms-action-bar {
    padding-top: 8px;
}

.hrms-action-bar:first-child,
.hrms-actions:first-child {
    margin-top: 0;
}

.hrms-notice {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--hrms-border);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.hrms-notice p {
    margin: 0;
}

.hrms-notice p + p {
    margin-top: 8px;
}

.hrms-notice-error {
    color: var(--hrms-danger);
    border-color: rgba(180, 35, 24, 0.28);
    background: #fff3f1;
}

.hrms-notice-success {
    color: var(--hrms-success);
    border-color: rgba(22, 101, 52, 0.28);
    background: #f0fdf4;
}

.hrms-list {
    margin: 0;
    padding-left: 18px;
}

.hrms-empty-state {
    padding: 18px;
    border: 1px dashed var(--hrms-border-strong);
    border-radius: 16px;
    background: linear-gradient(180deg, #fafcfd, #f4f7f9);
    color: var(--hrms-muted);
}

.hrms-footnote,
.hrms-plan-meta,
.hrms-help {
    color: var(--hrms-muted);
}

.hrms-help {
    font-size: 0.92rem;
}

.hrms-divider {
    margin: 0 6px;
    color: var(--hrms-muted);
}

.hrms-muted-small {
    margin-top: 4px;
    color: var(--hrms-muted);
    font-size: 0.9rem;
}

.hrms-step-list {
    margin: 16px 0 0;
    padding-left: 18px;
}

.hrms-step-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #edf2f7;
}

.hrms-step-list li:last-child {
    border-bottom: 0;
}

.hrms-step-list li.is-current strong {
    color: var(--hrms-accent);
}

.hrms-placeholder-list {
    display: grid;
    gap: 14px;
}

.hrms-placeholder-list div {
    padding: 14px;
    border: 1px dashed var(--hrms-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.6);
}

.hrms-placeholder-list p {
    margin: 6px 0 0;
}

.hrms-form-inline {
    align-items: end;
}

.hrms-form-danger {
    margin-top: 18px;
}

.hrms-table-wrap {
    overflow-x: auto;
    margin-top: 16px;
    border: 1px solid #e7edf3;
    border-radius: 16px;
    background: #fff;
}

.hrms-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
}

.hrms-table th,
.hrms-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #edf2f7;
    text-align: left;
    vertical-align: top;
}

.hrms-table th {
    color: var(--hrms-muted);
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #f8fafc;
}

.hrms-table tbody tr:hover {
    background: rgba(234, 241, 236, 0.38);
}

.hrms-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
}

.hrms-action-stack {
    display: grid;
    gap: 8px;
}

.hrms-badge,
.hrms-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 12px;
    border: 1px solid rgba(var(--hrms-accent-rgb), 0.14);
    border-radius: 999px;
    background: var(--hrms-accent-soft);
    color: var(--hrms-accent-strong);
    font-size: 0.9rem;
    font-weight: 700;
}

.hrms-badge-neutral {
    background: #eef2f6;
    border-color: rgba(95, 114, 133, 0.14);
    color: #425466;
}

.hrms-badge-success {
    background: #ecfdf3;
    border-color: rgba(22, 101, 52, 0.18);
    color: #166534;
}

.hrms-badge-warning {
    background: #fff7ed;
    border-color: rgba(180, 83, 9, 0.18);
    color: #b45309;
}

.hrms-badge-danger {
    background: #fff1f2;
    border-color: rgba(180, 35, 24, 0.18);
    color: #b42318;
}

.hrms-badge-info {
    background: #eff6ff;
    border-color: rgba(15, 76, 129, 0.18);
    color: #0f4c81;
}

.hrms-link-button {
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--hrms-accent);
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.hrms-fieldset {
    margin: 0;
    border: 1px solid var(--hrms-border);
    border-radius: 12px;
    padding: 14px;
}

.hrms-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hrms-chip {
    background: #fff;
}

.hrms-topbar-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.hrms-button-block {
    width: 100%;
}

.hrms-qr-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.hrms-qr-card {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--hrms-border);
    border-radius: 14px;
    background: #fff;
}

.hrms-qr-box {
    min-height: 180px;
    margin-top: 12px;
    padding: 10px;
    border: 1px dashed var(--hrms-border);
    border-radius: 12px;
    background: #fff;
}

.hrms-qr-box svg {
    width: 100%;
    height: auto;
    display: block;
}

.hrms-summary-box {
    margin-top: 18px;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid rgba(var(--hrms-accent-rgb), 0.18);
    background: #f0fdf4;
}

.hrms-metric-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    margin-top: 16px;
}

.hrms-metric-box {
    padding: 14px;
    border: 1px solid var(--hrms-border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.82);
}

.hrms-metric-box strong,
.hrms-group-count {
    display: block;
    font-size: 1.4rem;
    line-height: 1.2;
}

.hrms-metric-box span {
    display: block;
    margin-top: 6px;
    color: var(--hrms-muted);
    font-size: 0.92rem;
}

.hrms-name-list {
    margin: 14px 0 0;
    padding-left: 18px;
}

.hrms-name-list li + li {
    margin-top: 10px;
}

.hrms-name-list-compact {
    padding-left: 0;
    list-style: none;
}

.hrms-name-list-compact li {
    padding: 12px;
    border: 1px solid #edf2f7;
    border-radius: 14px;
    background: #fff;
}

.hrms-name-list span,
.hrms-name-list em {
    display: block;
    color: var(--hrms-muted);
    font-size: 0.92rem;
    font-style: normal;
}

.hrms-settings-layout,
.hrms-settings-section {
    gap: 18px;
}

.hrms-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.hrms-section-header p:not(.hrms-eyebrow) {
    color: var(--hrms-muted);
}

.hrms-description-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.hrms-description-list div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #edf2f7;
    border-radius: 14px;
    background: #fff;
}

.hrms-description-list span {
    color: var(--hrms-muted);
}

.hrms-gateway-grid {
    display: grid;
    gap: 14px;
}

.hrms-staff-hero,
.hrms-scan-hero,
.hrms-shortcut-card,
.hrms-staff-shift-card,
.hrms-subscription-card,
.hrms-group-card,
.hrms-onboarding-card {
    display: grid;
    gap: 12px;
}

.hrms-staff-hero-main,
.hrms-staff-hero-side {
    display: grid;
    gap: 12px;
}

.hrms-key-value-list {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.hrms-key-value-list div {
    padding: 12px 14px;
    border: 1px solid #edf2f7;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.82);
}

.hrms-key-value-list span {
    display: block;
    margin-bottom: 6px;
    color: var(--hrms-muted);
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hrms-key-value-list strong {
    display: block;
    word-break: break-word;
}

.hrms-inline-status {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--hrms-border);
    background: #f8fafc;
    color: var(--hrms-text);
}

.hrms-inline-card {
    margin-top: 8px;
}

.hrms-record-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.hrms-record-card {
    padding: 18px;
    border: 1px solid #e7edf3;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbfc 100%);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.hrms-record-card > * + * {
    margin-top: 12px;
}

.hrms-record-card-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.hrms-record-card-head h3 {
    margin-bottom: 6px;
}

.hrms-quick-grid .hrms-card,
.hrms-today-groups-grid .hrms-card {
    height: 100%;
}

.hrms-choice-card {
    display: grid;
    gap: 8px;
    padding: 16px;
    border: 1px solid var(--hrms-border);
    border-radius: 16px;
    background: #fff;
    cursor: pointer;
}

.hrms-choice-card.is-active {
    border-color: rgba(var(--hrms-accent-rgb), 0.28);
    box-shadow: 0 10px 20px rgba(var(--hrms-accent-rgb), 0.08);
}

.hrms-choice-card.is-muted {
    background: #f8fafc;
}

.hrms-choice-card input[type="radio"] {
    margin: 0;
}

.hrms-choice-title {
    font-weight: 700;
    font-size: 1rem;
}

.hrms-choice-meta,
.hrms-choice-help {
    color: var(--hrms-muted);
    font-size: 0.94rem;
}

.hrms-payroll-inline-form input[name="label"] {
    min-width: 11rem;
}

.hrms-payroll-inline-form input[name="amount"] {
    min-width: 8rem;
}

.hrms-summary-grid,
.hrms-action-grid,
.hrms-report-grid,
.hrms-line-list {
    display: grid;
    gap: 14px;
}

.hrms-summary-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    margin-top: 18px;
}

.hrms-stat-card,
.hrms-action-tile,
.hrms-report-card,
.hrms-line-item {
    border: 1px solid var(--hrms-border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.88);
}

.hrms-stat-card {
    padding: 16px;
}

.hrms-stat-card span {
    display: block;
    color: var(--hrms-muted);
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hrms-stat-card strong {
    display: block;
    margin-top: 8px;
    font-size: 1.55rem;
    line-height: 1.15;
}

.hrms-status-timeline {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.hrms-status-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--hrms-border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.76);
    color: var(--hrms-muted);
}

.hrms-status-step.is-complete {
    border-color: rgba(22, 101, 52, 0.24);
    background: #f0fdf4;
    color: var(--hrms-success);
}

.hrms-status-step.is-current {
    border-color: rgba(15, 76, 129, 0.24);
    background: #eff6ff;
    color: var(--hrms-info);
}

.hrms-status-step-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: currentColor;
    flex: 0 0 auto;
}

.hrms-action-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.hrms-action-tile {
    display: grid;
    gap: 10px;
    padding: 18px;
}

.hrms-action-tile p:not(.hrms-eyebrow) {
    color: var(--hrms-muted);
}

.hrms-payroll-manual-form {
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--hrms-border);
    border-radius: 16px;
    background: #f8fafc;
}

.hrms-line-list {
    margin-top: 6px;
}

.hrms-line-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
}

.hrms-line-item strong {
    white-space: nowrap;
}

.hrms-notice-warning {
    color: var(--hrms-warning);
    border-color: rgba(180, 83, 9, 0.28);
    background: #fff7ed;
}

.hrms-notice-info {
    color: var(--hrms-info);
    border-color: rgba(15, 76, 129, 0.24);
    background: #eff6ff;
}

.hrms-mobile-only {
    display: none;
}

.hrms-report-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    margin-top: 18px;
}

.hrms-report-card {
    display: grid;
    gap: 8px;
    padding: 16px;
    color: var(--hrms-text);
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.hrms-report-card span {
    color: var(--hrms-muted);
    font-size: 0.94rem;
}

.hrms-report-card.is-active {
    border-color: rgba(var(--hrms-accent-rgb), 0.28);
    background: linear-gradient(180deg, #f3fbf6 0%, #ffffff 100%);
    box-shadow: 0 12px 26px rgba(var(--hrms-accent-rgb), 0.08);
}

details summary {
    cursor: pointer;
    font-weight: 600;
}

details[open] summary {
    margin-bottom: 12px;
}

@media (min-width: 640px) {
    .hrms-shell {
        padding: 28px 18px 48px;
    }

    .hrms-card {
        padding: 24px;
    }

    .hrms-grid {
        gap: 20px;
    }

    .hrms-button {
        width: fit-content;
    }

    .hrms-form-inline {
        grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    }

    .hrms-inline-form {
        grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    }

    .hrms-action-stack .hrms-actions {
        margin-top: 0;
    }

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

    .hrms-staff-hero,
    .hrms-scan-hero {
        grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.65fr);
        align-items: center;
    }
}

@media (max-width: 719px) {
    .hrms-language-toolbar {
        justify-content: flex-start;
    }

    .hrms-topbar {
        flex-direction: column;
    }

    .hrms-topbar,
    .hrms-card,
    .hrms-card-hero {
        padding: 18px;
    }

    .hrms-step-list li {
        flex-direction: column;
    }

    .hrms-actions,
    .hrms-pagination {
        display: grid;
        grid-template-columns: 1fr;
    }

    .hrms-actions > .hrms-button,
    .hrms-actions > a.hrms-button {
        width: 100%;
    }

    .hrms-inline {
        width: 100%;
        align-items: flex-start;
    }

    .hrms-table th,
    .hrms-table td {
        padding: 10px 12px;
    }

    .hrms-payroll-inline-form input[name="label"],
    .hrms-payroll-inline-form input[name="amount"] {
        min-width: 0;
    }

    .hrms-mobile-only {
        display: grid;
    }

    .hrms-desktop-only {
        display: none;
    }

    .hrms-description-list div {
        flex-direction: column;
    }

    .hrms-topbar-links,
    .hrms-record-card-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .hrms-table-wrap {
        display: none;
    }
}
