* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
    --sm-theme-bg: #ffffff;
    --sm-theme-bg-top: #faf8f3;
    --sm-theme-surface: rgba(255, 255, 255, 0.86);
    --sm-theme-surface-strong: #ffffff;
    --sm-theme-surface-soft: #fbf4e8;
    --sm-theme-border: rgba(23, 23, 23, 0.12);
    --sm-theme-border-strong: rgba(23, 23, 23, 0.18);
    --sm-theme-primary: #9b6a18;
    --sm-theme-primary-strong: #7c5110;
    --sm-theme-primary-soft: rgba(183, 122, 33, 0.12);
    --sm-theme-text: #171717;
    --sm-theme-text-muted: #6a6258;
    --sm-bg: var(--sm-theme-bg);
    --sm-bg-top: var(--sm-theme-bg-top);
    --sm-surface: var(--sm-theme-surface);
    --sm-surface-strong: #ffffff;
    --sm-surface-soft: var(--sm-theme-surface-soft);
    --sm-border: var(--sm-theme-border);
    --sm-border-strong: var(--sm-theme-border-strong);
    --sm-primary: var(--sm-theme-primary);
    --sm-primary-strong: var(--sm-theme-primary-strong);
    --sm-primary-soft: var(--sm-theme-primary-soft);
    --sm-text: var(--sm-theme-text);
    --sm-text-muted: var(--sm-theme-text-muted);
    --sm-shadow: 0 16px 40px rgba(23, 23, 23, 0.08);
    --sm-shadow-soft: 0 8px 24px rgba(23, 23, 23, 0.05);
    --sm-radius-xl: 0;
    --sm-radius-lg: 0;
    --sm-radius-md: 0;
}
body {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--sm-theme-bg-top) 96%, transparent) 0%, rgba(255, 255, 255, 1) 42%),
        var(--sm-bg);
    min-height: 100vh;
    color: var(--sm-text);
    letter-spacing: 0;
}
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
.header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--sm-border);
    box-shadow: none;
}
.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}
.logo {
    font-size: 18px;
    font-weight: 650;
    color: var(--sm-text);
    text-decoration: none;
    letter-spacing: 0;
}
.logo--spacer {
    width: 32px;
    min-width: 32px;
}
.nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
    align-items: center;
}
.staff-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 42px;
    padding: 9px 14px;
    border: 1px solid var(--sm-border);
    border-radius: 0;
    background: #fff;
    color: var(--sm-text);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: none;
}
.staff-menu-toggle-bars,
.staff-menu-toggle-bars::before,
.staff-menu-toggle-bars::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 0;
    background: currentColor;
}
.staff-menu-toggle-bars {
    position: relative;
}
.staff-menu-toggle-bars::before,
.staff-menu-toggle-bars::after {
    content: "";
    position: absolute;
    left: 0;
}
.staff-menu-toggle-bars::before {
    top: -6px;
}
.staff-menu-toggle-bars::after {
    top: 6px;
}
.nav-menu a {
    color: var(--sm-text);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.2s, background 0.2s, box-shadow 0.2s;
    padding: 10px 12px;
    border-radius: 0;
}
.nav-menu a:hover {
    color: var(--sm-primary);
    background: transparent;
    box-shadow: none;
}
.nav-menu a.active {
    color: var(--sm-primary);
    background: transparent;
    box-shadow: inset 0 -2px 0 var(--sm-primary);
}
.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 8px 12px;
    background: #fff;
    border-radius: 0;
    border: 1px solid var(--sm-border);
}
.user-name {
    font-weight: 600;
    color: var(--sm-text);
}
.user-role {
    font-size: 12px;
    background: var(--sm-primary-soft);
    color: var(--sm-primary);
    padding: 4px 10px;
    border-radius: 0;
}
.logout-btn {
    padding: 10px 16px;
    background: #fff;
    color: var(--sm-text);
    border: 1px solid var(--sm-border);
    border-radius: 0;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}
.logout-btn:hover {
    color: var(--sm-primary);
    background: #ffffff;
    transform: translateY(-1px);
    box-shadow: none;
}
.main-content,
.messages {
    max-width: 1400px;
    padding: 0 20px;
}
.main-content {
    margin: 34px auto 48px;
}
.messages {
    margin: 20px auto;
}
.page-header,
.dashboard-header,
.form-card,
.contract-card,
.feature-card,
.section,
.signature-card,
.contract-preview,
.empty-state {
    background: var(--sm-surface);
    border-radius: var(--sm-radius-lg);
    box-shadow: var(--sm-shadow);
    border: 1px solid var(--sm-border);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.page-header,
.dashboard-header,
.form-card,
.contract-card,
.section,
.signature-card {
    padding: 28px;
}
.page-header,
.dashboard-header,
.contract-card {
    margin-bottom: 30px;
}
.page-header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding: 32px;
}
.dashboard-header-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-shrink: 0;
}
.page-header h1,
.dashboard-header h1 {
    color: var(--sm-text);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.05;
    margin-bottom: 8px;
    letter-spacing: 0;
}
.page-header p,
.dashboard-header p,
.section-intro {
    color: var(--sm-text-muted);
    font-size: 16px;
}
.section-intro {
    margin-bottom: 20px;
}
.dashboard-shell {
    display: grid;
}
.dashboard-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    margin-bottom: 12px;
    padding: 0 12px;
    border-radius: 0;
    background: #fff;
    border: 1px solid var(--sm-border);
    color: var(--sm-text-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.dashboard-summary-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
}
.staff-app--employee .nav-container {
    height: 64px;
}
.staff-app--employee .logo {
    font-size: 16px;
}
.staff-app--employee .nav-menu {
    gap: 8px;
    flex-wrap: nowrap;
}
.staff-app--employee .user-info {
    padding: 8px 14px;
}
.staff-app--employee .logout-btn {
    padding: 9px 14px;
}
.staff-app--employee .nav-menu a,
.staff-app--employee .logout-btn {
    font-size: 13px;
    padding: 8px 12px;
}
.staff-app--employee .dashboard-header .dashboard-summary-strip {
    margin-top: 20px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.staff-app--employee .dashboard-header .summary-pill {
    min-height: 74px;
    background: rgba(255, 255, 255, 0.76);
}
.employee-dashboard-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}
.employee-dashboard-toggle-form {
    margin: 0 0 12px;
}
.employee-dashboard-toggle {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 51px;
    align-items: center;
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px solid var(--sm-border);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.employee-dashboard-toggle strong,
.employee-dashboard-toggle small {
    display: block;
}
.employee-dashboard-toggle strong {
    color: var(--sm-text);
    font-size: 15px;
}
.employee-dashboard-toggle small {
    margin-top: 2px;
    color: var(--sm-text-muted);
    font-size: 13px;
    line-height: 1.35;
}
.employee-dashboard-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.employee-dashboard-toggle-slider {
    position: relative;
    display: block;
    width: 51px;
    height: 31px;
    border-radius: 999px;
    background: #e5e5ea;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
    transition: background 0.22s ease, box-shadow 0.22s ease;
}
.employee-dashboard-toggle-slider::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: #fff;
    box-shadow:
        0 3px 8px rgba(0, 0, 0, 0.16),
        0 3px 1px rgba(0, 0, 0, 0.06);
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
.employee-dashboard-toggle input:checked + .employee-dashboard-toggle-slider {
    background: #34c759;
    box-shadow: inset 0 0 0 1px rgba(52, 199, 89, 0.08);
}
.employee-dashboard-toggle input:checked + .employee-dashboard-toggle-slider::after {
    transform: translateX(20px);
}
.employee-dashboard-toggle:active .employee-dashboard-toggle-slider::after {
    width: 31px;
}
.employee-dashboard-toggle:active input:checked + .employee-dashboard-toggle-slider::after {
    transform: translateX(16px);
}
.employee-dashboard-toggle:focus-within .employee-dashboard-toggle-slider {
    box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, 0.04),
        0 0 0 3px color-mix(in srgb, var(--sm-primary) 22%, transparent);
}
.employee-dashboard-section--primary {
    border-color: var(--sm-border-strong);
}
.employee-dashboard-item--next {
    padding: 18px 0;
}
.employee-dashboard-item--next .contract-info h4 {
    font-size: 18px;
}
.summary-pill {
    display: grid;
    gap: 6px;
    min-height: 88px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid var(--sm-border);
    border-radius: var(--sm-radius-md);
    box-shadow: var(--sm-shadow-soft);
}
.summary-pill strong {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.04em;
}
.summary-pill-label {
    color: var(--sm-text-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.mb-15 {
    margin-bottom: 15px;
}
.is-hidden {
    display: none;
}
.messages .alert,
.contract-sign-page .alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease-out;
}
.contract-sign-page .alert {
    max-width: 720px;
    margin: 0 auto 20px;
    display: block;
}
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.alert-success,
.status-active {
    background: #d4edda;
    color: #155724;
}
.alert-error {
    background: #f8d7da;
    color: #721c24;
}
.alert-warning,
.status-pending {
    background: #fff3cd;
    color: #856404;
}
.status-scheduled {
    background: #fbf4e8;
    color: #7c5110;
}
.status-expired {
    background: #f3f4f6;
    color: #4b5563;
}
.status-new,
.status-reviewing {
    background: #e0f2fe;
    color: #075985;
}
.status-interview {
    background: #ede9fe;
    color: #5b21b6;
}
.status-rejected {
    background: #fee2e2;
    color: #991b1b;
}
.status-hired {
    background: #dcfce7;
    color: #166534;
}
.alert-info {
    background: #d1ecf1;
    color: #0c5460;
}
.alert-success {
    border: 1px solid #c3e6cb;
}
.alert-error {
    border: 1px solid #f5c6cb;
}
.alert-warning {
    border: 1px solid #ffeaa7;
}
.alert-info {
    border: 1px solid #bee5eb;
}
.contract-sign-page .alert-success {
    border-left: 4px solid #38a169;
}
.contract-sign-page .alert-error {
    border-left: 4px solid #f56565;
}
.btn,
.download-btn,
.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 18px;
    border: none;
    border-radius: 0;
    font-size: 0.82rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary,
.download-btn,
.action-btn {
    border: 1px solid var(--sm-theme-text);
    background: var(--sm-theme-text);
    color: #fff;
    box-shadow: none;
}
.btn-primary:hover,
.download-btn:hover,
.action-btn:hover {
    transform: translateY(-1px);
    border-color: var(--sm-primary);
    background: var(--sm-primary);
    box-shadow: none;
}
.btn-secondary,
.action-btn.secondary {
    background: #fff;
    color: var(--sm-text);
    border: 1px solid var(--sm-border-strong);
    box-shadow: none;
}
.btn-secondary:hover,
.action-btn.secondary:hover {
    background: #ffffff;
}
.btn-success,
.download-btn-success {
    border: 1px solid var(--sm-primary);
    background: var(--sm-primary);
    color: #fff;
}
.btn-success:hover,
.download-btn-success:hover {
    background: var(--sm-primary-strong);
    border-color: var(--sm-primary-strong);
    box-shadow: none;
}
.btn-danger {
    background: #dc2626;
    color: #fff;
}
.btn-danger:hover {
    box-shadow: 0 10px 24px rgba(220, 38, 38, 0.22);
}
.btn-sm {
    min-height: 34px;
    padding: 7px 12px;
    font-size: 12px;
}
.inline-form {
    display: inline-flex;
    margin: 0;
}
.stats-grid,
.features-grid,
.contract-details,
.form-row,
.content-grid,
.preview-grid {
    display: grid;
}
.stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 8px;
}
.manager-today-reminders {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}
.manager-today-card {
    background: #fff;
    border: 1px solid var(--sm-border);
    border-radius: var(--sm-radius-md);
    box-shadow: var(--sm-shadow-soft);
    padding: 16px;
}
.manager-today-card__header,
.manager-today-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.manager-today-card__header {
    margin-bottom: 12px;
}
.manager-today-card__header h2 {
    margin: 2px 0 0;
    font-size: 18px;
    color: var(--sm-text);
}
.manager-today-card__kicker {
    color: var(--sm-text-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.manager-today-list {
    display: grid;
    gap: 8px;
}
.manager-today-item {
    min-height: 52px;
    padding: 10px 12px;
    border: 1px solid var(--sm-border);
    border-radius: var(--sm-radius-sm);
    background: var(--sm-surface-soft);
    text-decoration: none;
}
.manager-today-item strong,
.manager-today-item span {
    display: block;
}
.manager-today-item strong {
    color: var(--sm-text);
    font-size: 14px;
}
.manager-today-item span {
    color: var(--sm-text-muted);
    font-size: 12px;
}
.manager-today-item--link:hover {
    border-color: var(--sm-border-strong);
    background: #fff;
}
.manager-today-more {
    margin: 10px 0 0;
    color: var(--sm-text-muted);
    font-size: 12px;
}
.stat-card {
    background: #fff;
    padding: 22px;
    border-radius: var(--sm-radius-md);
    box-shadow: var(--sm-shadow-soft);
    border: 1px solid var(--sm-border);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--sm-shadow);
    border-color: var(--sm-border-strong);
}
.stat-card .icon {
    font-size: 28px;
    margin-bottom: 14px;
}
.stat-card .icon--check,
.empty-state-icon--check {
    color: #111;
    filter: grayscale(1);
}
.stat-card .label {
    color: var(--sm-text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}
.stat-card .value,
.stat-card .number {
    color: var(--sm-text);
    font-size: 40px;
    font-weight: 650;
    letter-spacing: 0;
}
.stat-card.active {
    background: var(--sm-surface-soft);
    color: var(--sm-text);
    border-color: var(--sm-border-strong);
}
.stat-card.active .label,
.stat-card.active .value,
.stat-card.active .number {
    color: #111;
}
.content-grid {
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}
.contract-list-grid {
    display: grid;
    gap: 16px;
}
.contract-list-grid .contract-card {
    margin-bottom: 0;
}
.contract-list-grid .contract-title {
    min-width: 0;
}
.contract-list-grid .contract-title h3 {
    margin-bottom: 4px;
    font-size: 20px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}
.contract-list-grid .subtitle {
    color: var(--sm-text-muted);
    font-size: 14px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}
.contract-list-grid .contract-actions,
.filters .filter-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.contract-list-grid .contract-actions {
    padding-top: 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}
.filters {
    margin-bottom: 22px;
}
.filters .filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
}
.filters .filter-group {
    display: grid;
    gap: 6px;
}
.filters .filter-group label {
    color: var(--sm-text-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.filters .filter-group select,
.filters .filter-group input {
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid var(--sm-border-strong);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--sm-text);
    font: inherit;
    font-size: 14px;
}
.filters .filter-actions {
    margin-top: 14px;
}
.manager-form-section form {
    display: grid;
    gap: 16px;
}
.manager-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px 20px;
}
.manager-form-grid .form-field,
.manager-filter-bar .filter-group {
    display: grid;
    gap: 6px;
}
.manager-form-grid .form-field--full {
    grid-column: 1 / -1;
}
.manager-form-grid .form-field--checkbox {
    align-content: start;
}
.manager-form-grid .form-field--checkbox label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    color: var(--sm-text);
    font-size: 14px;
    font-weight: 600;
}
.manager-form-grid .form-field--checkbox input {
    width: 16px;
    height: 16px;
    accent-color: var(--sm-primary);
}
.manager-form-grid label,
.manager-filter-bar label {
    color: var(--sm-text-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.field-hint {
    color: var(--sm-text-muted);
    font-size: 12px;
    line-height: 1.4;
}
.manager-filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: flex-end;
    margin-bottom: 18px;
}
.manager-filter-bar .filter-group {
    min-width: 190px;
}
.manager-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.manager-table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
    font-size: 14px;
}
.manager-table th {
    padding: 10px 12px;
    border-bottom: 2px solid var(--sm-border-strong);
    color: var(--sm-text-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}
.manager-table td {
    padding: 11px 12px;
    border-bottom: 1px solid var(--sm-border);
    vertical-align: middle;
}
.manager-table tr:last-child td {
    border-bottom: 0;
}
.manager-table a {
    color: var(--sm-primary);
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
}
.manager-table a:hover {
    text-decoration: underline;
}
.manager-row-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}
.manager-row-actions .btn {
    white-space: nowrap;
}
.manager-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 24px;
    padding: 2px 10px;
    border-radius: 0;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}
.manager-badge--danger {
    background: rgba(220, 38, 38, 0.1);
    color: #b91c1c;
}
.manager-badge--warning {
    background: rgba(234, 179, 8, 0.16);
    color: #a16207;
}
.manager-badge--success {
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
}
.manager-badge--muted {
    background: rgba(100, 116, 139, 0.12);
    color: #475569;
}
.manager-alert {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: var(--sm-radius-md);
    font-size: 14px;
    line-height: 1.45;
}
.manager-alert--warning {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.22);
    color: var(--sm-primary-strong);
}
.manager-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 130px;
}
.manager-progress__track {
    flex: 1;
    min-width: 80px;
    height: 8px;
    overflow: hidden;
    border-radius: 0;
    background: var(--sm-border-strong);
}
.manager-progress__bar {
    height: 100%;
    border-radius: 0;
    background: var(--sm-primary);
}
.manager-progress__label {
    color: var(--sm-text-muted);
    font-size: 12px;
    font-weight: 650;
    white-space: nowrap;
}
.section-header,
.contract-header,
.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--sm-border);
}
.contract-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
}
.contract-card-collapsible {
    overflow: hidden;
}
.contract-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    list-style: none;
    cursor: pointer;
}
.contract-summary::-webkit-details-marker {
    display: none;
}
.contract-summary-copy h2 {
    margin: 0 0 6px;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
    font-size: 21px;
    letter-spacing: 0;
}
.contract-summary-copy p {
    margin: 0;
    color: var(--sm-text-muted);
    font-size: 14px;
}
.contract-summary-meta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.contract-summary-toggle {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 0;
    background: #fff;
    border: 1px solid var(--sm-border);
    color: var(--sm-text);
    font-size: 13px;
    font-weight: 600;
}
.contract-card-collapsible[open] .contract-summary {
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--sm-border);
}
.contract-card-collapsible[open] .contract-summary-toggle::before {
    content: none;
}
.contract-card-collapsible:not([open]) .contract-summary-toggle::before {
    content: none;
}
.contract-summary-toggle-open {
    display: none;
}
.contract-card-collapsible[open] .contract-summary-toggle-open {
    display: inline;
}
.contract-card-collapsible[open] .contract-summary-toggle-closed {
    display: none;
}
.contract-collapsible-body {
    display: grid;
    gap: 0;
}
.section-header h2,
.contract-header h2,
.preview-header h2 {
    color: var(--sm-text);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
    font-size: 21px;
    letter-spacing: 0;
}
.view-all-link {
    color: var(--sm-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}
.view-all-link:hover {
    color: var(--sm-primary-strong);
}
.section-subtitle {
    margin: 6px 0 0;
    color: var(--sm-text-muted);
    font-size: 13px;
}
.schedule-period-section {
    display: flex;
    flex-direction: column;
}
.schedule-period-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    padding: 14px;
    margin-bottom: 10px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: var(--sm-radius-md);
    background: linear-gradient(180deg, #fff 0%, rgba(248, 250, 252, 0.78) 100%);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}
.schedule-period-card:last-of-type {
    margin-bottom: 0;
}
.schedule-period-card__content {
    display: grid;
    gap: 12px;
    min-width: 0;
}
.schedule-period-card__link {
    display: block;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}
.schedule-period-card__link:hover .schedule-period-card__copy h4,
.schedule-period-card__link:focus-visible .schedule-period-card__copy h4 {
    color: var(--sm-primary);
}
.schedule-period-card__link:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.18);
    outline-offset: 4px;
    border-radius: 10px;
}
.store-item__link {
    display: block;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}
.store-item__link:hover h4,
.store-item__link:focus-visible h4 {
    color: var(--sm-primary);
}
.store-item__link:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.18);
    outline-offset: 4px;
    border-radius: 10px;
}
.schedule-period-card__copy {
    min-width: 0;
}
.schedule-period-card__copy h4 {
    margin: 0 0 4px;
}
.schedule-period-card__copy p {
    margin: 0;
    line-height: 1.35;
}
.schedule-period-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 2px;
}
.schedule-period-card__actions {
    justify-content: flex-end;
    flex-wrap: nowrap;
}
.staff-pagination--compact {
    margin-top: 14px;
}
.notification-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border: 1px solid var(--sm-border);
    border-radius: 0;
    background: #fff;
    color: var(--sm-primary);
    cursor: pointer;
    box-shadow: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.notification-trigger--nav {
    width: 44px;
    height: 44px;
    box-shadow: none;
}
.notification-trigger:hover,
.notification-trigger:focus-visible {
    transform: translateY(-2px);
    box-shadow: var(--sm-shadow-soft);
}
.notification-trigger-icon {
    font-size: 22px;
    line-height: 1;
}
.notification-trigger-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    background: #dc2626;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}
@media (min-width: 769px) {
    .staff-app--manager .nav-container {
        max-width: none;
        gap: 14px;
        height: auto;
        min-height: 62px;
        padding: 8px 16px;
    }
    .staff-app--manager .staff-primary-nav {
        min-width: 0;
        flex: 1 1 auto;
    }
    .staff-app--manager .logo {
        flex: 0 0 auto;
        font-size: 16px;
    }
    .staff-app--manager .nav-menu {
        justify-content: flex-end;
        gap: 4px;
        flex-wrap: wrap;
        row-gap: 6px;
    }
    .staff-app--manager .nav-menu a,
    .staff-app--manager .logout-btn {
        min-height: 34px;
        padding: 7px 8px;
        font-size: 11px;
        letter-spacing: 0.04em;
        white-space: nowrap;
    }
    .staff-app--manager .user-info {
        display: none;
    }
}
.notification-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(17, 17, 17, 0.5);
    z-index: 200;
}
.notification-modal.is-open {
    display: flex;
}
.notification-modal-dialog {
    width: min(100%, 720px);
    max-height: min(80vh, 720px);
    overflow: auto;
    background: var(--sm-surface-strong);
    border-radius: 0;
    box-shadow: 0 30px 80px rgba(17, 17, 17, 0.16);
    border: 1px solid var(--sm-border);
}
.notification-modal-head,
.notification-modal-foot {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px;
}
.notification-modal-head {
    border-bottom: 1px solid var(--sm-border);
}
.notification-modal-foot {
    border-top: 1px solid var(--sm-border);
    justify-content: flex-end;
}
.notification-modal-help {
    margin-top: 6px;
    color: var(--sm-text-muted);
    font-size: 14px;
}
.notification-modal-body {
    padding: 18px 24px 24px;
    display: grid;
    gap: 14px;
}
.notification-modal-close {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 0;
    background: #fff;
    color: var(--sm-primary-strong);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}
.notification-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 16px 18px;
    border-radius: 0;
    background: #fff;
    border: 1px solid var(--sm-border);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.notification-item:hover,
.notification-item:focus-visible {
    transform: translateY(-1px);
    border-color: var(--sm-border-strong);
    box-shadow: var(--sm-shadow-soft);
}
.notification-item-copy {
    display: grid;
    gap: 6px;
}
.notification-item-copy strong {
    color: var(--sm-text);
    font-size: 16px;
}
.notification-item-copy span {
    color: var(--sm-text-muted);
    font-size: 14px;
}
.notification-item-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 0;
    background: var(--sm-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}
.notification-empty-state {
    padding: 24px;
    border-radius: 14px;
    background: #fff;
    text-align: center;
}
.notification-response-list {
    display: grid;
    gap: 12px;
}
.notification-response-card {
    padding: 14px 16px;
    background: #fff;
    border: 1px solid rgba(244, 162, 97, 0.18);
    border-radius: 12px;
}
.notification-response-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}
.notification-response-card p {
    margin: 0;
    color: var(--sm-text-muted);
    font-size: 14px;
}
.notification-response-card p + p {
    margin-top: 6px;
}
.notification-response-meta {
    font-size: 12px;
}
.contract-status,
.feature-badge,
.store-code,
.location-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.contract-status {
    padding: 8px 14px;
    font-size: 13px;
    border: 1px solid transparent;
}
.feature-badge {
    padding: 6px 12px;
}
.store-code {
    background: var(--sm-primary-soft);
    color: var(--sm-primary);
    padding: 6px 12px;
    border-radius: 0;
}
.location-chip {
    padding: 8px 14px;
    background: var(--sm-primary-soft);
    color: var(--sm-primary);
    font-size: 14px;
    border: 1px solid var(--sm-border);
}
.contract-details {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 25px;
}
.detail-item {
    padding: 16px;
    background: rgba(248, 250, 252, 0.92);
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.12);
}
.detail-label,
.preview-grid .label {
    display: block;
    color: #666;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.detail-value,
.preview-grid .value {
    color: #333;
    font-size: 18px;
    font-weight: 600;
}
.meta-block {
    margin-bottom: 25px;
}
.stack-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.status-message {
    margin-bottom: 16px;
    font-weight: 600;
}
.status-message-success {
    color: #38a169;
}
.status-message-success-alt {
    color: #2f855a;
}
.status-message-warning {
    color: var(--sm-primary);
}
.download-btn-inline {
    display: inline-flex;
    padding: 10px 22px;
}
.features-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.feature-card {
    padding: 26px;
    text-align: left;
    background: var(--sm-surface);
}
.feature-icon,
.empty-state-icon {
    font-size: 50px;
    margin-bottom: 15px;
}
.feature-icon {
    display: none;
}
.empty-state {
    padding: 60px 20px;
    text-align: center;
}
.dashboard-empty-collapse {
    padding: 0;
    overflow: hidden;
}
.dashboard-empty-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-height: 58px;
    padding: 16px 20px;
    color: var(--sm-text);
    cursor: pointer;
    font-weight: 700;
    list-style: none;
}
.dashboard-empty-summary::-webkit-details-marker {
    display: none;
}
.dashboard-empty-summary::after {
    content: "+";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 8px;
    color: var(--sm-text-muted);
    background: rgba(248, 250, 252, 0.86);
    font-size: 18px;
    line-height: 1;
}
.dashboard-empty-collapse[open] .dashboard-empty-summary {
    border-bottom: 1px solid var(--sm-border);
}
.dashboard-empty-collapse[open] .dashboard-empty-summary::after {
    content: "-";
}
.dashboard-empty-summary__meta {
    color: var(--sm-text-muted);
    font-size: 13px;
    font-weight: 600;
}
.dashboard-empty-body {
    display: grid;
    gap: 12px;
    padding: 14px 20px 18px;
}
.empty-state--compact {
    padding: 18px 12px;
    border: 1px dashed rgba(148, 163, 184, 0.34);
    box-shadow: none;
    background: rgba(248, 250, 252, 0.72);
}
.empty-state--compact .empty-state-icon {
    font-size: 28px;
    margin-bottom: 8px;
}
.empty-state--compact p {
    margin: 0;
}
.empty-state-icon {
    font-size: 80px;
    margin-bottom: 20px;
}
.empty-state h2,
.empty-state h3,
.feature-title {
    color: #333;
    margin-bottom: 10px;
}
.empty-state p,
.feature-description,
.contract-info p,
.store-info p,
.preview-meta {
    color: #666;
}
.feature-description {
    font-size: 14px;
    margin-bottom: 20px;
}
.feature-badge {
    background: #fff3cd;
    color: #856404;
}
.form-section {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
}
.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
.form-section h3 {
    color: var(--sm-primary);
    font-size: 18px;
    margin-bottom: 20px;
    padding-left: 12px;
    border-left: 4px solid var(--sm-primary);
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}
.form-group input,
.form-group select,
.form-group textarea,
.signature-input {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid var(--sm-border-strong);
    border-radius: 0;
    font-size: 14px;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.9);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.signature-input:focus {
    outline: none;
    border-color: color-mix(in srgb, var(--sm-primary) 70%, transparent);
    box-shadow: 0 0 0 3px var(--sm-primary-soft);
}
.form-group textarea {
    min-height: 120px;
    resize: vertical;
}
.helptext,
.form-group .helptext,
.signature-help {
    font-size: 13px;
    color: #718096;
    margin-top: 6px;
}
.errorlist {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
}
.errorlist li {
    color: #e53e3e;
    font-size: 13px;
    padding: 6px 10px;
    background: #fed7d7;
    border-radius: 6px;
    margin-top: 4px;
}
.form-row {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.form-group--full {
    grid-column: 1 / -1;
}
.job-description {
    max-width: 860px;
    margin-inline: auto;
    line-height: 1.65;
}
.job-description p {
    margin: 0 0 18px;
    color: var(--sm-text);
}
.job-description h2 {
    margin: 26px 0 12px;
    font-size: 1.05rem;
    line-height: 1.3;
    color: var(--sm-text);
}
.job-description h2:first-child {
    margin-top: 0;
}
.job-description ul {
    margin: 0 0 20px;
    padding: 0;
    display: grid;
    gap: 10px;
    list-style: none;
}
.job-description li {
    position: relative;
    padding-left: 22px;
    color: var(--sm-text);
}
.job-description li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--sm-primary);
}
.job-application-consent {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px 12px;
    align-items: start;
    padding: 14px 16px;
    margin: 8px 0 18px;
    border: 1px solid var(--sm-border);
    border-radius: var(--sm-radius-md);
    background: rgba(255, 255, 255, 0.72);
}
.job-application-file {
    padding: 14px 16px;
    margin: 8px 0 14px;
    border: 1px solid var(--sm-border);
    border-radius: var(--sm-radius-md);
    background: rgba(255, 255, 255, 0.72);
}
.job-application-file label {
    display: block;
    font-size: 0.92rem;
    font-weight: 650;
    color: var(--sm-text);
    margin-bottom: 8px;
}
.job-application-file input[type="file"] {
    width: 100%;
}
.job-application-consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
}
.job-application-consent label {
    font-size: 0.92rem;
    font-weight: 650;
    color: var(--sm-text);
    line-height: 1.45;
}
.job-application-consent .errorlist {
    grid-column: 1 / -1;
}
.job-question-group > label,
.job-question-check > label {
    margin-bottom: 12px;
}
.job-question-radio {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.job-question-radio,
.job-question-radio li {
    list-style: none;
    margin: 0;
    padding: 0;
}
.job-question-radio label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid var(--sm-border);
    border-radius: var(--sm-radius-md);
    background: rgba(255, 255, 255, 0.72);
    font-weight: 650;
    cursor: pointer;
}
.job-question-radio input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
}
.job-public-page {
    margin: 0;
    min-height: 100vh;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--sm-theme-bg-top) 96%, transparent) 0%, rgba(255, 255, 255, 1) 42%),
        #fff;
    color: var(--sm-theme-text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.job-public-page * {
    box-sizing: border-box;
}
.job-public-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 74px;
    padding: 14px clamp(18px, 5vw, 72px);
    border-bottom: 1px solid rgba(22, 22, 22, 0.08);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
}
.job-public-brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}
.job-public-brand img {
    display: block;
    width: min(190px, 48vw);
    height: auto;
}
.job-public-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.job-public-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 0;
    color: var(--sm-theme-text);
    font-size: 0.82rem;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}
.job-public-nav a:hover {
    color: var(--sm-theme-primary);
}
.job-public-main {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
    padding: clamp(28px, 5vw, 58px) 0 72px;
}
.job-public-main--centered {
    display: grid;
    place-items: center;
    min-height: calc(100vh - 74px);
    padding-top: clamp(24px, 4vw, 48px);
    padding-bottom: clamp(32px, 5vw, 72px);
}
.job-public-main--centered .job-public-hero {
    width: min(760px, 100%);
    justify-items: center;
    text-align: center;
}
.job-public-hero {
    display: grid;
    gap: 14px;
    max-width: 860px;
    margin-bottom: clamp(26px, 4vw, 42px);
    padding-bottom: clamp(24px, 4vw, 38px);
    border-bottom: 1px solid rgba(22, 22, 22, 0.12);
}
.job-public-hero--compact {
    max-width: 760px;
}
.job-public-kicker {
    margin: 0;
    color: var(--sm-theme-primary);
    font-size: 0.75rem;
    font-weight: 750;
    letter-spacing: 0.14em;
    line-height: 1.35;
    text-transform: uppercase;
}
.job-public-hero h1,
.job-public-form-head h2,
.job-public-card h2 {
    margin: 0;
    color: #141414;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
    letter-spacing: 0;
}
.job-public-hero h1 {
    max-width: 760px;
    font-size: clamp(2.25rem, 6vw, 4.7rem);
    line-height: 0.98;
}
.job-public-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.job-public-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid rgba(155, 106, 24, 0.26);
    background: rgba(255, 255, 255, 0.72);
    color: #392915;
    font-size: 0.86rem;
    font-weight: 650;
}
.job-public-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
    gap: clamp(26px, 4vw, 56px);
    align-items: start;
}
.job-public-description,
.job-public-form-panel,
.job-public-list-panel,
.job-public-thanks-panel {
    background: rgba(255, 255, 255, 0.84);
}
.job-public-description {
    position: sticky;
    top: 98px;
    max-width: none;
    margin: 0;
    padding: clamp(24px, 3vw, 34px);
}
.job-public-page .job-description p {
    color: #252525;
    font-size: 1rem;
    line-height: 1.78;
}
.job-public-page .job-description h2 {
    margin: 30px 0 12px;
    color: #171717;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
    font-weight: 500;
}
.job-public-page .job-description h2:first-child {
    margin-top: 0;
}
.job-public-page .job-description ul {
    gap: 9px;
}
.job-public-page .job-description li {
    color: #252525;
    line-height: 1.6;
}
.job-public-page .job-description li::before {
    top: 0.68em;
    width: 6px;
    height: 6px;
    background: #c28a28;
}
.job-public-form-panel {
    padding: clamp(22px, 3vw, 34px);
}
.job-public-form-head {
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(22, 22, 22, 0.1);
}
.job-public-form-head h2 {
    margin-top: 4px;
    font-size: clamp(1.55rem, 3vw, 2.25rem);
    line-height: 1.1;
}
.job-public-form-head p {
    max-width: 560px;
    margin: 10px 0 0;
    color: #585858;
    line-height: 1.55;
}
.job-public-page .form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.job-public-page .form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}
.job-public-page .form-group--full {
    grid-column: 1 / -1;
}
.job-public-page .form-group label,
.job-public-page .job-application-file label,
.job-public-page .job-application-consent label {
    color: #191919;
    font-size: 0.82rem;
    font-weight: 750;
    letter-spacing: 0.04em;
    line-height: 1.35;
}
.job-public-page .form-control,
.job-public-page input[type="text"],
.job-public-page input[type="email"],
.job-public-page input[type="date"],
.job-public-page input[type="file"],
.job-public-page textarea,
.job-public-page select {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(22, 22, 22, 0.18);
    border-radius: 0;
    background: #fff;
    color: #171717;
    font: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.job-public-page input[type="text"],
.job-public-page input[type="email"],
.job-public-page input[type="date"],
.job-public-page textarea,
.job-public-page select {
    padding: 11px 12px;
}
.job-public-page textarea {
    min-height: 112px;
    resize: vertical;
}
.job-public-page input:focus,
.job-public-page textarea:focus,
.job-public-page select:focus {
    border-color: #b47a1f;
    box-shadow: 0 0 0 3px rgba(194, 138, 40, 0.16);
}
.job-public-page .helptext {
    color: #686868;
    font-size: 0.8rem;
    line-height: 1.45;
}
.job-public-page .job-question-radio {
    gap: 8px;
}
.job-public-page .job-question-radio label {
    min-height: 42px;
    padding: 9px 15px;
    border: 1px solid rgba(22, 22, 22, 0.16);
    border-radius: 0;
    background: #fff;
    color: #171717;
}
.job-public-page .job-question-radio label:has(input[type="radio"]:checked) {
    border-color: #151515;
    background: #151515;
    color: #fff;
}
.job-public-page .job-application-file,
.job-public-page .job-application-consent {
    border: 1px solid rgba(155, 106, 24, 0.25);
    border-radius: 0;
    background: #fffaf0;
}
.job-public-page .job-application-file {
    position: relative;
    margin-top: 22px;
    padding: 18px;
    border: 1px solid rgba(155, 106, 24, 0.25);
    background: #fffaf0;
}
.job-public-page .job-application-captcha {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 4px 0 18px;
    margin: 4px 0 18px;
}
.job-public-page .job-application-captcha > div,
.job-public-page .job-application-captcha .g-recaptcha {
    margin-inline: auto;
}
.job-public-page .job-application-captcha .g-recaptcha.form-control {
    display: block;
    width: 304px;
    min-height: 78px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}
.job-public-page .job-application-captcha .errorlist {
    width: 100%;
    max-width: 304px;
}
.job-server-error {
    max-width: 520px;
    margin: 0 auto 24px;
    padding: 18px 20px;
    text-align: center;
    background: #fff5f5;
    color: #7f1d1d;
    box-shadow: 0 16px 36px rgba(127, 29, 29, 0.14);
    outline: none;
}
.job-server-error strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1rem;
}
.job-server-error ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.job-server-error li {
    font-size: 0.94rem;
    line-height: 1.5;
}
.job-public-page .job-application-consent input[type="checkbox"] {
    accent-color: #151515;
}
.job-public-page .action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 22px;
}
.job-public-page .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 18px;
    border-radius: 0;
    font-size: 0.82rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}
.job-public-page .btn-primary {
    border: 1px solid var(--sm-theme-text);
    background: var(--sm-theme-text);
    color: #fff;
}
.job-public-page .btn-primary:hover {
    background: var(--sm-theme-primary);
    border-color: var(--sm-theme-primary);
}
.job-public-page .btn-primary[disabled] {
    cursor: wait;
    opacity: 0.72;
}
.job-public-page .btn-secondary {
    border: 1px solid rgba(22, 22, 22, 0.18);
    background: #fff;
    color: #151515;
}
.job-submit-progress {
    display: none;
    max-width: 460px;
    margin: 18px auto 0;
    padding: 14px 16px;
    background: #fff;
    color: #161616;
}
.job-public-page form.is-submitting .job-submit-progress {
    display: block;
}
.job-submit-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(250, 248, 243, 0.82);
    backdrop-filter: blur(2px);
}
.job-submit-overlay[aria-hidden="false"] {
    display: flex;
}
.job-submit-overlay-panel {
    width: min(360px, 100%);
    padding: 28px 24px;
    text-align: center;
    background: #fff;
    color: #161616;
    box-shadow: 0 18px 45px rgba(22, 22, 22, 0.16);
}
.job-submit-overlay-panel strong,
.job-submit-overlay-panel span {
    display: block;
}
.job-submit-overlay-panel strong {
    margin-top: 14px;
    font-size: 1rem;
}
.job-submit-overlay-panel > span:not(.job-submit-spinner) {
    margin-top: 8px;
    color: #6b5a3a;
    font-size: 0.9rem;
    line-height: 1.5;
}
.job-submit-progress-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 650;
}
.job-submit-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(22, 22, 22, 0.18);
    border-top-color: #9b6a18;
    border-radius: 50%;
    animation: job-submit-spin 0.75s linear infinite;
    flex: 0 0 auto;
}
.job-submit-spinner--large {
    width: 44px;
    height: 44px;
    margin: 0 auto;
    border-width: 3px;
}
.job-submit-progress-bar {
    height: 3px;
    margin-top: 12px;
    overflow: hidden;
    background: rgba(22, 22, 22, 0.08);
}
.job-submit-progress-bar span {
    display: block;
    width: 38%;
    height: 100%;
    background: #9b6a18;
    animation: job-submit-progress 1.1s ease-in-out infinite;
}
@keyframes job-submit-spin {
    to {
        transform: rotate(360deg);
    }
}
@keyframes job-submit-progress {
    0% {
        transform: translateX(-110%);
    }
    100% {
        transform: translateX(270%);
    }
}
.job-public-list-panel {
    padding: clamp(20px, 3vw, 30px);
}
.job-public-thanks-panel {
    max-width: 680px;
    padding: clamp(24px, 3vw, 36px);
    text-align: center;
}
.job-public-thanks-panel h1 {
    margin: 6px 0 18px;
    color: #141414;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 5vw, 3.6rem);
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1;
}
.job-public-thanks-panel p {
    max-width: 560px;
    margin: 0 auto 14px;
    color: #4a4a4a;
    line-height: 1.65;
}
.job-public-thanks-panel .btn {
    margin-top: 10px;
}
.job-public-interview-panel {
    border: 0;
    background: transparent;
    box-shadow: none;
    padding-inline: 0;
}
.job-public-slot-form ul {
    display: grid;
    gap: 10px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}
.job-public-slot-form li {
    margin: 0;
}
.job-public-slot-form label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 11px 14px;
    border: 1px solid rgba(22, 22, 22, 0.16);
    background: #fff;
    color: #171717;
    font-weight: 700;
    cursor: pointer;
}
.job-public-slot-form label.is-unavailable {
    border-color: rgba(120, 120, 120, 0.18);
    background: #f3f1ec;
    color: #888;
    cursor: not-allowed;
}
.job-public-slot-form input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #151515;
}
.job-public-slot-status {
    margin: 18px 0 0;
    padding: 12px 14px;
    border: 1px solid rgba(153, 92, 16, 0.25);
    background: #fff7e8;
    color: #6a420d;
    font-size: 0.92rem;
    line-height: 1.45;
}
.interview-slot-grid {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}
.interview-slot-row {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) minmax(150px, 0.8fr) minmax(130px, 0.7fr);
    gap: 12px;
    align-items: start;
    padding: 12px;
    border: 1px solid var(--sm-border);
    background: rgba(255, 255, 255, 0.64);
}
.job-cv-preview {
    display: block;
    width: 100%;
    height: min(86vh, 1040px);
    min-height: 720px;
    border: 1px solid var(--sm-border-strong);
    background: #fff;
}
.job-review-page {
    --jr-text: var(--sm-theme-text);
    --jr-muted: var(--sm-theme-text-muted);
    --jr-line: var(--sm-theme-border);
    --jr-gold: var(--sm-theme-primary);
    --jr-gold-soft: var(--sm-theme-surface-soft);
    max-width: 1180px;
    margin: 0 auto;
    color: var(--jr-text);
}
.job-review-page * {
    letter-spacing: 0;
}
.job-review-hero {
    margin-bottom: 22px;
    padding: 18px 0 28px;
    border-bottom: 1px solid var(--jr-line);
}
.job-review-hero-main {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}
.job-review-hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}
.job-review-kicker {
    margin: 0 0 8px;
    color: var(--jr-gold);
    font-size: 0.76rem;
    font-weight: 750;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}
.job-review-hero h1,
.job-review-panel h2 {
    margin: 0;
    color: var(--jr-text);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
}
.job-review-hero h1 {
    max-width: 820px;
    font-size: clamp(2.35rem, 5vw, 4.6rem);
    line-height: 0.98;
}
.job-review-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}
.job-review-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 11px;
    border: 1px solid var(--jr-line);
    background: #fff;
    color: var(--jr-muted);
    font-size: 0.86rem;
    font-weight: 650;
}
.job-review-grid,
.job-review-actions-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: 16px;
    margin-bottom: 16px;
}
.job-review-actions-grid {
    grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
}
.job-review-panel {
    margin-bottom: 16px;
    padding: 22px;
    border: 1px solid var(--jr-line);
    background: #fff;
    box-shadow: 0 14px 38px rgba(23, 23, 23, 0.06);
}
.job-review-grid .job-review-panel,
.job-review-actions-grid .job-review-panel {
    margin-bottom: 0;
}
.job-review-panel-head {
    margin-bottom: 18px;
}
.job-review-panel h2 {
    font-size: clamp(1.45rem, 2.4vw, 2rem);
    line-height: 1.1;
}
.job-review-facts {
    display: grid;
    gap: 12px;
    margin: 0;
}
.job-review-facts div {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(23, 23, 23, 0.08);
}
.job-review-facts div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}
.job-review-facts dt,
.job-review-file-name,
.job-invite-card p,
.job-invite-slots p {
    color: var(--jr-muted);
}
.job-review-facts dt {
    font-size: 0.76rem;
    font-weight: 750;
    text-transform: uppercase;
}
.job-review-facts dd {
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
    font-weight: 650;
}
.job-review-facts a {
    color: var(--jr-text);
    text-decoration-color: rgba(183, 122, 33, 0.45);
    text-underline-offset: 3px;
}
.job-review-file-name {
    margin: 0 0 18px;
    overflow-wrap: anywhere;
}
.job-review-inline-form {
    display: inline-flex;
    margin: 10px 0 0;
}
.job-review-message {
    color: #2b2926;
    line-height: 1.65;
}
.job-answer-list {
    display: grid;
    gap: 12px;
}
.job-answer-item {
    padding: 16px 18px;
    border: 1px solid rgba(23, 23, 23, 0.1);
    border-left: 3px solid var(--jr-gold);
    background: linear-gradient(90deg, var(--jr-gold-soft), #fff 34%);
}
.job-answer-item h3 {
    margin: 0 0 8px;
    color: var(--jr-text);
    font-size: 0.98rem;
    line-height: 1.35;
}
.job-answer-item p {
    margin: 0;
    color: #35312c;
    line-height: 1.55;
}
.job-review-page .form-row {
    gap: 14px;
}
.job-review-page .form-group label {
    color: var(--jr-muted);
    font-size: 0.73rem;
    font-weight: 750;
    text-transform: uppercase;
}
.job-review-page input,
.job-review-page select,
.job-review-page textarea {
    border-radius: 0;
    border-color: var(--jr-line);
    background: #fff;
}
.job-review-page input:focus,
.job-review-page select:focus,
.job-review-page textarea:focus {
    border-color: color-mix(in srgb, var(--sm-theme-primary) 70%, transparent);
    box-shadow: 0 0 0 3px var(--sm-theme-primary-soft);
}
.job-review-page .btn {
    border-radius: 0;
    font-weight: 750;
}
.job-review-page .btn-primary {
    border-color: var(--sm-theme-text);
    background: var(--sm-theme-text);
    color: #fff;
}
.job-review-page .btn-primary:hover {
    background: var(--sm-theme-primary);
    border-color: var(--sm-theme-primary);
}
.job-review-page .btn-secondary {
    border-color: var(--jr-line);
    background: #fff;
    color: var(--jr-text);
}
.job-review-page .btn-danger {
    border-color: rgba(138, 38, 38, 0.18);
    background: #fff;
    color: #9f1d1d;
}
.job-review-page .btn-danger:hover {
    border-color: rgba(159, 29, 29, 0.35);
    background: #fff7f7;
    box-shadow: none;
}
.job-review-page .action-buttons {
    justify-content: flex-start;
    margin-top: 14px;
}
.job-review-page .interview-slot-grid {
    max-height: 520px;
    overflow: auto;
    padding-right: 4px;
}
.job-review-page .interview-slot-row {
    grid-template-columns: minmax(200px, 1.15fr) minmax(140px, 0.75fr) minmax(116px, 0.6fr);
    border-color: rgba(23, 23, 23, 0.1);
    background: #fff;
}
.job-review-page .interview-slot-row.is-hidden {
    display: none;
}
.job-review-page .interview-slot-add {
    margin: -4px 0 16px;
}
.job-invite-list {
    display: grid;
    gap: 14px;
}
.job-invite-card {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1.05fr);
    gap: 18px;
    padding: 18px;
    border: 1px solid rgba(23, 23, 23, 0.1);
    background: #fff;
}
.job-invite-card h3,
.job-invite-card h4 {
    margin: 0 0 10px;
    color: var(--jr-text);
}
.job-invite-card p,
.job-invite-slots p {
    margin: 0 0 7px;
    line-height: 1.45;
}
.job-invite-selected {
    color: var(--jr-text) !important;
    font-weight: 750;
}
.job-invite-slots {
    padding: 14px;
    background: #faf8f4;
}
.job-manual-confirm-form {
    display: grid;
    gap: 10px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(23, 23, 23, 0.1);
}
.interview-manual-grid {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) minmax(120px, 0.75fr) minmax(110px, 0.65fr);
    gap: 10px;
    align-items: start;
}
.interview-published-choice-list ul {
    display: grid;
    gap: 8px;
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
}
.interview-published-choice-list li label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(23, 23, 23, 0.1);
    background: #fff;
    color: var(--jr-text);
    font-weight: 700;
}
.interview-published-choice-list input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #151515;
}
.job-activity-list {
    display: grid;
    gap: 10px;
}
.job-activity-item {
    display: grid;
    grid-template-columns: minmax(160px, 0.8fr) minmax(130px, 0.55fr) minmax(160px, 0.8fr);
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(23, 23, 23, 0.09);
    color: var(--jr-muted);
    font-size: 0.86rem;
}
.job-activity-item:last-child {
    border-bottom: 0;
}
.job-activity-item strong {
    color: var(--jr-text);
}
.job-activity-item p {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--jr-muted);
}
.job-slot-table-wrap {
    overflow-x: auto;
}
.job-slot-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}
.job-slot-table th,
.job-slot-table td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(23, 23, 23, 0.09);
    text-align: left;
    vertical-align: top;
}
.job-slot-table th {
    color: var(--jr-muted);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}
.job-slot-table td {
    color: var(--jr-text);
    font-size: 0.9rem;
}
.job-slot-table td span {
    display: block;
    color: var(--jr-muted);
    font-size: 0.82rem;
    line-height: 1.45;
}
.job-application-filter-panel {
    margin-bottom: 18px;
    padding: 16px 18px;
}
.job-application-list-page .emp-filters .filter-row {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(190px, 240px) auto;
    gap: 12px;
    align-items: end;
}
.job-interview-slot-list-page .emp-filters .filter-row {
    grid-template-columns: minmax(220px, 1fr) minmax(150px, 190px) minmax(160px, 220px) auto;
}
.job-application-list-page .emp-filters .filter-group {
    min-width: 0;
}
.job-application-list-page .emp-filters .filter-group label {
    color: var(--jr-muted);
}
.job-application-list-page .emp-filters .filter-group--actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 0;
}
.job-application-list-page .emp-filters .form-control {
    height: 42px;
}
.job-application-card-grid {
    display: grid;
    gap: 10px;
}
.job-application-card {
    display: grid;
    grid-template-columns: minmax(300px, 1fr) minmax(320px, 0.82fr);
    align-items: center;
    gap: 22px;
    padding: 16px 18px;
    border: 1px solid rgba(23, 23, 23, 0.1);
    background: #fff;
    color: var(--jr-text);
    text-decoration: none;
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.job-application-card:hover {
    border-color: rgba(183, 122, 33, 0.44);
    box-shadow: 0 14px 34px rgba(23, 23, 23, 0.08);
    transform: translateY(-2px);
}
.job-application-card-main {
    display: block;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}
.job-application-card-main:focus-visible {
    outline: 3px solid rgba(183, 122, 33, 0.28);
    outline-offset: 4px;
}
.job-application-card-topline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--jr-muted);
    font-size: 0.78rem;
    font-weight: 700;
}
.job-application-card h2 {
    margin: 0 0 6px;
    color: var(--jr-text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.25rem, 1.8vw, 1.65rem);
    font-weight: 500;
    line-height: 1.05;
}
.job-application-card p {
    margin: 0 0 5px;
    color: var(--jr-muted);
    line-height: 1.45;
    overflow-wrap: anywhere;
}
.job-application-duplicate {
    display: grid;
    gap: 4px;
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(183, 122, 33, 0.28);
    background: #fffaf0;
}
.job-application-duplicate strong {
    color: #8a5b18;
    font-size: 0.78rem;
    text-transform: uppercase;
}
.job-application-duplicate span {
    color: var(--jr-muted);
    font-size: 0.82rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}
.job-application-status {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 9px;
    border: 1px solid rgba(23, 23, 23, 0.12);
    background: #f7f4ee;
    color: #6f5526;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}
.job-application-card-side {
    display: grid;
    gap: 10px;
    justify-content: flex-end;
    min-width: 0;
}
.job-application-interview {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    background: transparent;
    text-align: right;
}
.job-application-interview span,
.job-application-open {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 8px;
    border: 1px solid rgba(183, 122, 33, 0.24);
    background: #fff;
    color: var(--jr-gold);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}
.job-application-interview strong {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    margin: 0;
    color: var(--jr-text);
    font-size: 0.94rem;
    font-weight: 750;
    white-space: nowrap;
}
.job-application-interview small {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    margin: 0;
    color: var(--jr-muted);
    font-size: 0.82rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
}
.job-application-open {
    border-bottom: 1px solid currentColor;
}
.job-application-card-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}
.job-application-card-actions form {
    margin: 0;
}
.job-application-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
    color: var(--jr-muted);
    font-size: 0.86rem;
    font-weight: 700;
}
.job-application-pagination span {
    padding: 7px 10px;
}
.job-public-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}
.job-public-card {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    min-height: 142px;
    padding: 22px;
    border: 1px solid rgba(22, 22, 22, 0.12);
    background: #fff;
    color: #171717;
    text-decoration: none;
    transition: border-color 0.18s ease, transform 0.18s ease;
}
.job-public-card:hover {
    border-color: rgba(155, 106, 24, 0.45);
    transform: translateY(-2px);
}
.job-public-card h2 {
    font-size: 1.45rem;
    line-height: 1.15;
}
.job-public-card p {
    margin: 10px 0 0;
    color: #626262;
    line-height: 1.45;
}
.job-public-card > span {
    align-self: flex-start;
    border-bottom: 1px solid #c28a28;
    color: #9b6a18;
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}
.job-public-empty {
    padding: 28px;
    border: 1px solid rgba(22, 22, 22, 0.1);
    background: #fff;
    color: #555;
}
@media (max-width: 900px) {
    .job-public-layout {
        grid-template-columns: 1fr;
    }
    .job-public-description {
        position: static;
    }
    .interview-slot-row {
        grid-template-columns: 1fr;
    }
    .interview-manual-grid {
        grid-template-columns: 1fr;
    }
    .job-review-grid,
    .job-review-actions-grid,
    .job-invite-card,
    .job-application-card {
        grid-template-columns: 1fr;
    }
    .job-application-card-side {
        justify-content: flex-start;
    }
    .job-application-card-actions,
    .job-review-hero-actions {
        justify-content: flex-start;
    }
    .job-application-list-page .emp-filters .filter-row,
    .job-application-interview,
    .job-activity-item {
        display: grid;
        grid-template-columns: 1fr;
    }
    .job-application-list-page .emp-filters .filter-group--actions {
        justify-content: flex-start;
    }
    .job-application-interview {
        justify-content: flex-start;
        text-align: left;
    }
    .job-application-pagination {
        align-items: stretch;
        flex-direction: column;
    }
    .job-application-pagination .btn {
        width: 100%;
        justify-content: center;
    }
    .job-review-hero-main {
        align-items: flex-start;
        flex-direction: column;
    }
}
@media (max-width: 640px) {
    .job-cv-preview {
        height: 76vh;
        min-height: 520px;
    }
    .job-public-header {
        min-height: 66px;
        padding: 12px 16px;
    }
    .job-public-brand img {
        width: min(154px, 46vw);
    }
    .job-public-nav {
        gap: 2px;
    }
    .job-public-nav a {
        padding: 7px 8px;
        font-size: 0.72rem;
    }
    .job-public-main {
        width: min(100% - 24px, 1180px);
        padding-top: 28px;
    }
    .job-public-hero h1 {
        font-size: clamp(2rem, 13vw, 3.2rem);
    }
    .job-review-panel {
        padding: 18px;
    }
    .job-review-facts div {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    .job-public-page .form-row {
        grid-template-columns: 1fr;
    }
    .job-public-description,
    .job-public-form-panel,
    .job-public-list-panel,
    .job-public-thanks-panel {
        padding: 20px 16px;
    }
    .job-public-page .action-buttons,
    .job-public-page .action-buttons .btn {
        width: 100%;
    }
}
.form-group--checkbox .checkbox-label,
.signature-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #333;
}
.form-group--checkbox input[type="checkbox"] {
    width: auto;
    height: auto;
    margin: 0;
}
.form-actions,
.signature-actions,
.quick-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.form-actions {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid #f0f0f0;
}
.quick-actions {
    display: grid;
}
.quick-actions-employee {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.non-field-errors,
.error-summary {
    background: #fed7d7;
    color: #742a2a;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid #e53e3e;
}
.error-summary {
    border: 2px solid #fc8181;
}
.error-summary h3 {
    color: #742a2a;
    font-size: 18px;
    margin-bottom: 15px;
}
.error-summary strong,
.error-summary li,
.error-summary p {
    color: #742a2a;
}
.error-summary ul {
    margin-top: 8px;
    margin-left: 20px;
}
.error-summary li {
    margin-bottom: 5px;
}
.error-summary-note {
    margin-top: 15px;
    font-size: 14px;
    font-style: italic;
}
.info-box {
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 20px;
    font-size: 13px;
}
.info-box ul {
    margin: 10px 0 0 20px;
}
.info-box--blue {
    background: #eef5ff;
    border-left: 4px solid #4070f4;
}
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
    border-color: #fc8181 !important;
    background: #fff5f5;
}
.form-group.has-error label {
    color: #c53030;
}
.contract-item,
.store-item {
    padding: 16px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}
.contract-item-link {
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, opacity 0.2s;
}
.contract-item-link:hover {
    transform: translateY(-1px);
}
.contract-item-clickable {
    cursor: pointer;
}
.contract-item-clickable:hover {
    opacity: 0.96;
}
.contract-item-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.contract-item:last-child,
.store-item:last-child {
    border-bottom: none;
}
.contract-item:hover {
    background: transparent;
}
.contract-detail-section {
    margin-bottom: 22px;
}
.contract-detail-section h2 {
    margin-bottom: 18px;
    color: var(--sm-text);
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
.info-grid,
.signature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
}
.signature-grid {
    align-items: stretch;
}
.info-item,
.signature-panel {
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid var(--sm-border);
    border-radius: var(--sm-radius-md);
    background: rgba(255, 255, 255, 0.64);
    box-shadow: var(--sm-shadow-soft);
}
.info-label {
    display: block;
    margin-bottom: 6px;
    color: var(--sm-text-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.info-value {
    display: block;
    color: var(--sm-text);
    font-size: 15px;
    font-weight: 650;
    line-height: 1.45;
    overflow-wrap: anywhere;
}
.small {
    margin-top: 6px;
    color: var(--sm-text-muted);
    font-size: 13px;
    line-height: 1.45;
}
.status-badge,
.signature-status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 0;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}
.signature-status {
    margin-top: 10px;
    background: var(--sm-primary-soft);
    color: var(--sm-primary);
}
.signature-panel img {
    display: block;
    width: 100%;
    max-width: 320px;
    height: 96px;
    object-fit: contain;
    margin-top: 10px;
    padding: 12px;
    border: 1px solid var(--sm-border);
    border-radius: 0;
    background: #fff;
}
.terms-box {
    padding: 16px;
    border: 1px solid var(--sm-border);
    border-radius: var(--sm-radius-md);
    background: rgba(255, 255, 255, 0.64);
    color: var(--sm-text);
    line-height: 1.65;
}
.sm-contract-cta,
.sm-sign-link-meta {
    margin-top: 12px;
}
.sm-sign-link-meta {
    color: var(--sm-text-muted);
    font-size: 13px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}
.time-approval-stats {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin-bottom: 22px;
}
.time-approval-stats .stat-card .value {
    font-size: 32px;
}
.time-entry-create-section,
.time-approval-section {
    margin-bottom: 22px;
}
.time-entry-create-section form,
.bulk-approval-form {
    display: grid;
    gap: 16px;
}
.bulk-approval-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding: 14px;
    border: 1px solid var(--sm-border);
    border-radius: var(--sm-radius-md);
    background: rgba(255, 255, 255, 0.68);
}
.bulk-select-all,
.bulk-row-select {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--sm-text);
    font-size: 14px;
    font-weight: 700;
}
.bulk-select-all input,
.bulk-row-select input {
    width: 16px;
    height: 16px;
    accent-color: var(--sm-primary);
}
.bulk-approval-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.bulk-comment-input {
    min-width: min(320px, 100%);
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid var(--sm-border-strong);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.86);
    color: var(--sm-text);
    font: inherit;
    font-size: 14px;
}
.bulk-approval-row-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}
.time-approval-item {
    align-items: flex-start;
    padding: 18px;
    border: 1px solid var(--sm-border);
    border-radius: var(--sm-radius-md);
    background: rgba(255, 255, 255, 0.58);
    box-shadow: var(--sm-shadow-soft);
}
.time-approval-item + .time-approval-item {
    margin-top: 12px;
}
.time-approval-item:last-child {
    border-bottom: 1px solid var(--sm-border);
}
.time-approval-item--recent {
    align-items: center;
}
.time-approval-item .contract-info {
    min-width: 0;
    width: 100%;
}
.time-approval-item .contract-info h4 {
    margin-bottom: 6px;
    font-size: 18px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}
.time-approval-item .contract-info p {
    color: var(--sm-text-muted);
    font-size: 14px;
    line-height: 1.45;
}
.form-actions-compact {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--sm-border);
}
.form-actions-split {
    justify-content: space-between;
}
.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 20px;
    margin-top: 12px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}
.pagination-status {
    color: var(--sm-text-muted);
    font-size: 14px;
    text-align: center;
}
.staff-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px;
    margin-top: 16px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: var(--sm-radius-md);
    background: rgba(248, 250, 252, 0.82);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}
.staff-pagination__size,
.staff-pagination__nav {
    display: flex;
    align-items: center;
    gap: 10px;
}
.staff-pagination__size label,
.staff-pagination__size span,
.staff-pagination__status {
    color: var(--sm-text-muted);
    font-size: 13px;
}
.staff-pagination__status {
    flex: 1 1 auto;
    min-width: 160px;
    text-align: center;
}
.staff-pagination__size select {
    min-width: 68px;
    height: 36px;
    padding: 0 30px 0 12px;
    border: 1px solid var(--sm-border-strong);
    border-radius: 8px;
    background: #fff;
    color: var(--sm-text);
    font-weight: 700;
    outline: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.staff-pagination__size select:focus {
    border-color: var(--sm-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.staff-pagination__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 112px;
    height: 36px;
    padding: 0 14px;
    border: 1px solid rgba(148, 163, 184, 0.32);
    border-radius: 8px;
    background: #fff;
    color: var(--sm-text);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}
.staff-pagination__button:hover {
    border-color: var(--sm-primary);
    color: var(--sm-primary);
    transform: translateY(-1px);
}
.staff-pagination__button--disabled,
.staff-pagination__button--disabled:hover {
    background: rgba(241, 245, 249, 0.82);
    border-color: rgba(148, 163, 184, 0.18);
    color: rgba(100, 116, 139, 0.62);
    cursor: not-allowed;
    transform: none;
}
.payroll-detail-page {
    display: grid;
    gap: 18px;
}
.payroll-detail-page .page-header,
.payroll-detail-page .stats-grid,
.payroll-detail-page .section {
    margin-bottom: 0;
}
.payroll-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: var(--sm-radius-md);
    background: #fff;
    box-shadow: var(--sm-shadow-soft);
}
.payroll-toolbar__group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-height: 38px;
    padding-right: 12px;
    border-right: 1px solid rgba(148, 163, 184, 0.18);
}
.payroll-toolbar__group:last-child {
    border-right: 0;
    padding-right: 0;
}
.payroll-toolbar__group--push {
    margin-left: auto;
}
.payroll-toolbar__label {
    color: var(--sm-text-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.payroll-stats {
    grid-template-columns: repeat(7, minmax(120px, 1fr));
    gap: 10px;
}
.payroll-stats .stat-card {
    padding: 14px;
}
.payroll-stats .stat-card .label {
    margin-bottom: 6px;
    font-size: 10px;
}
.payroll-stats .stat-card .value,
.payroll-stats .stat-card .number {
    font-size: 24px;
    line-height: 1.08;
}
.stat-card__hint {
    margin-top: 4px;
    color: var(--sm-text-muted);
    font-size: 11px;
}
.payroll-tax-payment-table-wrap {
    margin-top: 12px;
}
.payroll-summary-section .section-header {
    margin-bottom: 12px;
}
.payroll-report-section h2 {
    margin-bottom: 18px;
}
.payroll-report-list {
    display: grid;
    gap: 14px;
}
.payroll-report-row {
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: var(--sm-radius-md);
    background: #fff;
}
.payroll-report-row__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}
.payroll-report-row__header h3 {
    margin: 0 0 4px;
    color: var(--sm-text);
    font-size: 18px;
    line-height: 1.25;
}
.payroll-report-row__header p {
    margin: 0;
    color: var(--sm-text-muted);
    font-size: 13px;
    font-weight: 700;
}
.payroll-report-row__total {
    display: grid;
    gap: 2px;
    min-width: 150px;
    text-align: right;
}
.payroll-report-row__total strong {
    color: var(--sm-text);
    font-size: 18px;
    line-height: 1.2;
}
.payroll-report-row__total span {
    color: var(--sm-text-muted);
    font-size: 12px;
}
.payroll-report-warning {
    margin: 12px 0 0;
    padding: 10px 12px;
    border-radius: var(--sm-radius-sm);
    background: rgba(237, 137, 54, 0.1);
}
.payroll-report-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding-top: 14px;
}
.payroll-report-panel {
    min-width: 0;
}
.payroll-report-panel h4 {
    margin: 0 0 10px;
    color: var(--sm-text);
    font-size: 13px;
    font-weight: 800;
}
.payroll-report-facts {
    display: grid;
    gap: 7px;
    margin: 0;
}
.payroll-report-facts div {
    display: grid;
    grid-template-columns: minmax(92px, 1fr) minmax(90px, auto);
    gap: 10px;
    align-items: baseline;
}
.payroll-report-facts dt {
    color: var(--sm-text-muted);
    font-size: 12px;
    line-height: 1.25;
}
.payroll-report-facts dd {
    margin: 0;
    color: var(--sm-text);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    text-align: right;
    overflow-wrap: anywhere;
}
.payroll-report-facts dd span {
    color: var(--sm-text-muted);
    font-weight: 600;
}
.payroll-summary-row {
    display: grid;
    grid-template-columns: minmax(180px, 1.2fr) minmax(420px, 3fr) auto;
    gap: 16px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}
.payroll-summary-row:last-of-type {
    border-bottom: 0;
}
.payroll-summary-row__employee h4 {
    margin: 0 0 4px;
    color: var(--sm-text);
    font-size: 15px;
}
.payroll-summary-row__employee p {
    margin: 0;
    color: var(--sm-text-muted);
    font-size: 13px;
}
.payroll-summary-row__metrics {
    display: grid;
    grid-template-columns: repeat(5, minmax(92px, 1fr));
    gap: 8px;
}
.payroll-summary-row__metrics div {
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 8px;
    background: rgba(248, 250, 252, 0.72);
}
.payroll-summary-row__metrics span {
    display: block;
    margin-bottom: 3px;
    color: var(--sm-text-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.payroll-summary-row__metrics strong {
    display: block;
    color: var(--sm-text);
    font-size: 13px;
    font-weight: 750;
    white-space: nowrap;
}
.payroll-summary-row__actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}
.payroll-run-settings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}
.payroll-run-settings > div {
    border: 1px solid var(--sm-border);
    border-radius: 6px;
    padding: 12px 14px;
    background: #fff;
}
.payroll-run-settings span {
    display: block;
    color: var(--sm-text-muted);
    font-size: 12px;
    margin-bottom: 4px;
}
.payroll-statement-table-wrap {
    overflow-x: auto;
}
.payroll-statement-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}
.payroll-statement-table th,
.payroll-statement-table td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--sm-border);
    text-align: right;
    white-space: nowrap;
}
.payroll-statement-table th:first-child,
.payroll-statement-table td:first-child {
    text-align: left;
}
.payroll-statement-table thead th {
    color: var(--sm-text-muted);
    font-size: 12px;
    font-weight: 750;
}
.payroll-statement-table__total td {
    font-weight: 750;
    background: var(--sm-surface-soft);
}
.payroll-warning {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-left: 6px;
    border-radius: 50%;
    background: #f59e0b;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}
.payroll-secondary-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(420px, 1.2fr);
    gap: 18px;
}
.payroll-secondary-grid--single {
    grid-template-columns: 1fr;
}
@media (max-width: 640px) {
    .staff-pagination,
    .staff-pagination__size,
    .staff-pagination__nav {
        align-items: stretch;
        flex-direction: column;
    }
    .staff-pagination__status {
        order: -1;
        text-align: left;
    }
    .staff-pagination__button {
        width: 100%;
    }
    .staff-pagination__size select {
        width: 100%;
    }
}
@media (max-width: 1180px) {
    .payroll-stats {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    .payroll-summary-row {
        grid-template-columns: 1fr;
        align-items: stretch;
    }
    .payroll-summary-row__metrics {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    .payroll-summary-row__actions {
        justify-content: flex-start;
    }
}
@media (max-width: 760px) {
    .payroll-toolbar,
    .payroll-toolbar__group,
    .payroll-summary-row__actions,
    .payroll-secondary-grid {
        display: grid;
        grid-template-columns: 1fr;
    }
    .payroll-toolbar__group {
        padding-right: 0;
        padding-bottom: 10px;
        border-right: 0;
        border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    }
    .payroll-toolbar__group:last-child {
        padding-bottom: 0;
        border-bottom: 0;
    }
    .payroll-toolbar__group--push {
        margin-left: 0;
    }
    .payroll-toolbar .inline-form,
    .payroll-toolbar .btn,
    .payroll-summary-row__actions .inline-form,
    .payroll-summary-row__actions .btn {
        width: 100%;
        min-height: 44px;
    }
}
.time-log-modal-dialog {
    width: min(100%, 560px);
}
.contract-info h4,
.store-info h4 {
    color: #333;
    font-size: 16px;
    margin-bottom: 5px;
}
.signature-card {
    max-width: 720px;
    margin: 0 auto;
}
.contract-preview {
    padding: 24px 30px;
    max-width: 900px;
    margin: 0 auto 30px;
}
.preview-meta {
    font-size: 14px;
    margin-top: 4px;
    color: #4a5568;
}
.preview-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.preview-section {
    margin-bottom: 18px;
}
.preview-section h3 {
    margin-bottom: 8px;
    color: #2d3748;
}
.preview-text {
    background: var(--sm-surface-soft);
    border-radius: 0;
    padding: 16px;
    border-left: 4px solid var(--sm-primary);
    white-space: pre-wrap;
}
.signature-canvas {
    border: 2px dashed var(--sm-border-strong);
    border-radius: 0;
    background: var(--sm-surface-soft);
    width: 100%;
    height: 260px;
}
.signature-fields {
    margin-top: 18px;
    display: grid;
    gap: 12px;
}
.signature-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-weight: 600;
}
.footer_staff {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 20px;
    color: var(--sm-text-muted);
    margin-top: 50px;
}
.calendar-container {
    background: var(--sm-surface);
    border-radius: 0;
    box-shadow: var(--sm-shadow);
    padding: 24px;
    border: 1px solid var(--sm-border);
}
.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.calendar-nav h2 {
    margin: 0;
    font-size: 24px;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
    color: var(--sm-text);
}
.calendar-nav a {
    color: var(--sm-primary);
    text-decoration: none;
    font-weight: 700;
}
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
}
.calendar-header {
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--sm-primary);
    font-weight: 700;
}
.calendar-day {
    min-height: 110px;
    background: var(--sm-surface-soft);
    border-radius: 0;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border: 1px solid var(--sm-border);
    transition: border-color 0.2s ease;
}
.calendar-day-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}
.calendar-day-weekday {
    display: none;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--sm-primary);
}
.calendar-day:hover {
    border-color: var(--sm-border-strong);
}
.calendar-day--muted {
    opacity: 0.45;
}
.calendar-day--today {
    border-color: var(--sm-primary);
    box-shadow: inset 0 0 0 1px var(--sm-primary);
}
.calendar-day--red {
    background: #fff1f2;
    border-color: #fecdd3;
}
.calendar-day--red .date-number,
.calendar-day--red .calendar-day-weekday {
    color: #b91c1c;
}
.calendar-holiday {
    display: inline-flex;
    align-self: flex-start;
    padding: 3px 7px;
    border-radius: 0;
    background: #ffe4e6;
    color: #9f1239;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
}
.date-number {
    font-weight: 700;
    color: var(--sm-text);
}
.assignment-card {
    background: #fff;
    border-radius: 0;
    padding: 8px;
    border: 1px solid var(--sm-border);
}
.assignment-card--interactive {
    cursor: pointer;
}
.assignment-card--interactive:hover {
    border-color: var(--sm-border-strong);
}
.assignment-store {
    font-size: 13px;
    font-weight: 600;
    color: var(--sm-text);
}
.assignment-time {
    font-size: 12px;
    color: var(--sm-text-muted);
    margin-top: 2px;
}
.assignment-status {
    display: inline-block;
    margin-top: 6px;
    padding: 2px 8px;
    border-radius: 0;
    font-size: 11px;
    font-weight: 600;
    background: var(--sm-primary-soft);
    color: var(--sm-primary);
}
.assignment-status[data-status="confirmed"] {
    background: #dcfce7;
    color: #166534;
}
.assignment-status[data-status="tentative"] {
    background: #fef3c7;
    color: var(--sm-primary-strong);
}
.assignment-response {
    display: inline-block;
    margin-top: 6px;
    padding: 2px 8px;
    border-radius: 0;
    font-size: 11px;
    font-weight: 600;
    background: var(--sm-surface-soft);
    color: var(--sm-text-muted);
}
.assignment-response[data-response="accepted"] {
    background: #dcfce7;
    color: #166534;
}
.assignment-response[data-response="declined"] {
    background: #fee2e2;
    color: #991b1b;
}
.assignment-response[data-response="pending"] {
    background: #fef3c7;
    color: var(--sm-primary-strong);
}
.assignment-comment {
    margin-top: 6px;
    font-size: 12px;
    color: var(--sm-text-muted);
}
.assignment-coworkers {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--sm-border);
}
.assignment-coworkers__label {
    margin-bottom: 5px;
    color: var(--sm-text-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.assignment-coworker {
    display: grid;
    gap: 2px;
    margin-top: 5px;
    padding: 6px 7px;
    background: color-mix(in srgb, var(--sm-surface-soft) 72%, #fff);
    border: 1px solid rgba(155, 106, 24, .16);
}
.assignment-coworker__name {
    color: var(--sm-text);
    font-size: 12px;
    font-weight: 700;
}
.assignment-coworker__time {
    color: var(--sm-text-muted);
    font-size: 11px;
    line-height: 1.35;
}
.assignment-override-badge {
    display: inline-flex;
    align-items: center;
    margin-top: 6px;
    padding: 2px 8px;
    border-radius: 0;
    font-size: 11px;
    font-weight: 700;
    background: #111827;
    color: #f8fafc;
}
.assignment-override-reason {
    margin-top: 6px;
    padding: 8px 10px;
    border-radius: 0;
    background: #fff7ed;
    color: #9a3412;
    font-size: 12px;
    font-weight: 600;
}
.assignment-response-actions {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
}
.assignment-response-actions .btn {
    flex: 1 1 auto;
}
.assignment-swap-trigger {
    background: var(--sm-primary-soft);
    border-color: var(--sm-border);
    color: var(--sm-primary);
}
.assignment-swap-trigger:hover,
.assignment-swap-trigger:focus-visible {
    background: var(--sm-surface-soft);
    border-color: var(--sm-border-strong);
}
.assignment-swap-state {
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 0;
    background: var(--sm-primary-soft);
    color: var(--sm-primary);
    font-size: 12px;
    font-weight: 600;
}
.no-assignments {
    font-size: 12px;
    color: #94a3b8;
    font-style: italic;
}
.manager-override-panel {
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: 0;
    border: 1px solid var(--sm-border);
    background: var(--sm-primary-soft);
}
.manager-override-title {
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sm-primary);
}
.manager-swap-review-form {
    width: 100%;
}
.manager-swap-review-label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
}
.manager-swap-review-comment {
    min-width: 260px;
    margin-bottom: 6px;
}
.manager-swap-review-help {
    margin-bottom: 10px;
    font-size: 12px;
    color: #64748b;
}
.action-buttons--stacked {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
.contract-meta-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}
.calendar-summary {
    margin-top: 20px;
    font-size: 14px;
    color: var(--sm-text-muted);
}
@media (max-width: 968px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        gap: 10px;
        height: auto;
        padding-top: 12px;
        padding-bottom: 12px;
    }
    .nav-menu {
        gap: 10px;
        flex-wrap: wrap;
    }
    .staff-app--employee .nav-menu {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .staff-app--employee .nav-menu::-webkit-scrollbar {
        display: none;
    }
    .staff-app--employee nav {
        overflow: visible;
    }
    .staff-app--employee .nav-menu li {
        flex: 0 0 auto;
    }
    .staff-app--employee .nav-menu li.user-info {
        margin-left: auto;
    }
    .staff-app--employee .nav-menu a,
    .staff-app--employee .logout-btn {
        white-space: nowrap;
        font-size: 12px;
        padding: 6px 9px;
    }
    .staff-app--employee .notification-trigger--nav {
        flex: 0 0 auto;
        width: 40px;
        height: 40px;
    }
    .nav-menu a {
        font-size: 14px;
        padding: 6px 12px;
    }
    .user-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    .form-card,
    .section,
    .signature-card,
    .contract-card {
        padding: 20px;
    }
    .form-row,
    .contract-details,
    .features-grid,
    .stats-grid,
    .manager-today-reminders {
        grid-template-columns: 1fr;
    }
    .form-actions,
    .signature-actions,
    .section-header,
    .contract-item,
    .store-item {
        flex-direction: column;
        align-items: stretch;
    }
    .btn,
    .download-btn,
    .action-btn {
        width: 100%;
    }
    .page-header h1,
    .dashboard-header h1 {
        font-size: 26px;
    }
    .dashboard-header {
        flex-direction: column;
        align-items: stretch;
    }
    .dashboard-header-actions {
        justify-content: flex-start;
    }
    .main-content,
    .messages {
        padding: 0 14px;
    }
    .contract-preview,
    .page-header,
    .dashboard-header {
        padding: 20px;
    }
    .calendar-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .calendar-grid--header {
        display: none;
    }
    .calendar-day {
        min-height: 96px;
    }
    .calendar-day-weekday {
        display: inline-block;
    }
    .notification-modal {
        padding: 14px;
    }
    .notification-modal-dialog {
        max-height: calc(100vh - 28px);
    }
    .notification-modal-head,
    .notification-modal-foot,
    .notification-modal-body {
        padding-left: 18px;
        padding-right: 18px;
    }
    .notification-item {
        align-items: flex-start;
    }
    .staff-app--manager .nav-container {
        align-items: stretch;
        gap: 10px;
    }
    .staff-app--manager .logo,
    .staff-app--employee .employee-mobile-title {
        align-self: center;
    }
    .staff-menu-toggle {
        display: inline-flex;
        align-self: stretch;
    }
    .staff-app--manager .staff-primary-nav,
    .staff-app--employee .employee-desktop-nav.staff-primary-nav {
        display: none;
        width: 100%;
    }
    .staff-app--manager .staff-primary-nav.is-open,
    .staff-app--employee .employee-desktop-nav.staff-primary-nav.is-open {
        display: block;
    }
    .staff-app--manager nav {
        min-width: 0;
        overflow: visible;
    }
    .staff-app--manager .nav-menu {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        overflow: visible;
        padding: 6px 0 0;
    }
    .staff-app--manager .nav-menu li {
        width: 100%;
    }
    .staff-app--manager .nav-menu a,
    .staff-app--manager .logout-btn {
        width: 100%;
        min-height: 40px;
        padding: 9px 12px;
        justify-content: flex-start;
        white-space: normal;
        font-size: 13px;
    }
    .staff-app--manager .user-info {
        min-width: 0;
        width: 100%;
        padding: 8px 12px;
    }
    .staff-app--manager .main-content {
        margin-top: 18px;
        margin-bottom: 30px;
    }
    .staff-app--manager .dashboard-shell {
        gap: 14px;
    }
    .staff-app--manager .dashboard-header {
        gap: 16px;
    }
    .staff-app--manager .dashboard-header h1 {
        font-size: 25px;
        line-height: 1.12;
    }
    .staff-app--manager .dashboard-header p {
        font-size: 14px;
        line-height: 1.45;
    }
    .staff-app--manager .dashboard-kicker {
        min-height: 26px;
        margin-bottom: 10px;
        font-size: 11px;
    }
    .staff-app--manager .dashboard-header-actions {
        position: absolute;
        top: 16px;
        right: 16px;
    }
    .staff-app--manager .dashboard-header {
        position: relative;
        padding-right: 84px;
    }
    .staff-app--manager .notification-trigger {
        width: 46px;
        height: 46px;
    }
    .staff-app--manager .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .staff-app--manager .stat-card {
        min-height: 118px;
        padding: 14px;
        display: grid;
        align-content: space-between;
    }
    .staff-app--manager .stat-card .icon {
        font-size: 22px;
        margin-bottom: 8px;
    }
    .staff-app--manager .stat-card .label {
        font-size: 10px;
        line-height: 1.25;
        margin-bottom: 8px;
    }
    .staff-app--manager .stat-card .value,
    .staff-app--manager .stat-card .number {
        font-size: 30px;
        line-height: 1;
    }
    .staff-app--manager .content-grid {
        gap: 14px;
    }
    .staff-app--manager .section {
        padding: 18px;
    }
    .staff-app--manager .section-header {
        gap: 10px;
        margin-bottom: 14px;
        padding-bottom: 12px;
    }
    .staff-app--manager .section-header h2 {
        font-size: 18px;
        line-height: 1.25;
    }
    .staff-app--manager .view-all-link {
        font-size: 13px;
    }
    .staff-app--manager .contract-item,
    .staff-app--manager .store-item {
        gap: 10px;
        padding: 14px 0;
    }
    .staff-app--manager .contract-info,
    .staff-app--manager .store-info {
        min-width: 0;
    }
    .staff-app--manager .contract-info h4,
    .staff-app--manager .store-info h4 {
        overflow-wrap: anywhere;
        line-height: 1.25;
    }
    .staff-app--manager .contract-info p,
    .staff-app--manager .store-info p {
        overflow-wrap: anywhere;
        line-height: 1.35;
    }
    .staff-app--manager .payroll-report-row {
        padding: 14px;
    }
    .staff-app--manager .payroll-report-row__header,
    .staff-app--manager .payroll-report-grid {
        grid-template-columns: 1fr;
    }
    .staff-app--manager .payroll-report-row__header {
        display: grid;
    }
    .staff-app--manager .payroll-report-row__total {
        min-width: 0;
        text-align: left;
    }
    .staff-app--manager .payroll-report-facts div {
        grid-template-columns: minmax(0, 1fr) auto;
    }
    .staff-app--manager .contract-status,
    .staff-app--manager .store-code {
        align-self: flex-start;
        width: fit-content;
    }
    .staff-app--manager .quick-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .staff-app--manager .quick-actions .action-btn {
        min-height: 44px;
        padding: 10px 12px;
        white-space: normal;
        text-align: center;
        font-size: 12px;
        line-height: 1.2;
    }
    .staff-app--manager .action-buttons {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        width: 100%;
    }
    .staff-app--manager .inline-form,
    .staff-app--manager .action-buttons .btn {
        width: 100%;
    }
    .staff-app--manager .schedule-period-card {
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
    }
    .staff-app--manager .schedule-period-card__meta {
        align-items: flex-start;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .staff-app--manager .schedule-period-card__actions {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    .staff-app--manager .page-header-actions,
    .staff-app--manager .contract-list-grid .contract-actions,
    .staff-app--manager .filters .filter-actions {
        display: grid;
        grid-template-columns: 1fr;
    }
    .staff-app--manager .filters .filter-row,
    .staff-app--manager .contract-list-grid .contract-details {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .staff-app--manager .manager-form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .staff-app--manager .manager-form-grid .form-field--full {
        grid-column: auto;
    }
    .staff-app--manager .manager-filter-bar,
    .staff-app--manager .manager-filter-bar .filter-group,
    .staff-app--manager .manager-filter-bar .btn {
        width: 100%;
    }
    .staff-app--manager .manager-table {
        font-size: 13px;
    }
    .staff-app--manager .manager-table th,
    .staff-app--manager .manager-table td {
        padding: 9px 10px;
    }
}
@media (max-width: 520px) {
    .calendar-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .calendar-day-head {
        align-items: center;
    }
    .calendar-day-weekday {
        font-size: 10px;
    }
    .nav-menu {
        flex-direction: column;
        align-items: stretch;
    }
    .staff-app--employee .nav-container {
        gap: 8px;
    }
    .staff-app--employee .logo--spacer {
        display: none;
    }
    .staff-app--employee .nav-menu {
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
    }
    .staff-app--employee .nav-menu li {
        flex: 0 0 auto;
    }
    .staff-app--employee .nav-menu a,
    .staff-app--employee .logout-btn {
        width: auto;
        white-space: nowrap;
        font-size: 12px;
        padding: 5px 8px;
    }
    .staff-app--employee .notification-trigger--nav {
        width: 38px;
        height: 38px;
    }
    .user-info {
        width: 100%;
    }
    .notification-item {
        flex-direction: column;
    }
    .notification-item-count {
        align-self: flex-start;
    }
    .staff-app--manager .nav-menu {
        grid-template-columns: 1fr;
    }
    .staff-app--manager .nav-menu a,
    .staff-app--manager .logout-btn {
        font-size: 12px;
        padding: 8px 10px;
    }
    .staff-app--manager .user-info {
        min-width: 0;
    }
    .staff-app--manager .dashboard-header {
        padding: 18px 74px 18px 18px;
    }
    .staff-app--manager .dashboard-header h1 {
        font-size: 22px;
    }
    .staff-app--manager .dashboard-header-actions {
        top: 14px;
        right: 14px;
    }
    .staff-app--manager .notification-trigger {
        width: 42px;
        height: 42px;
    }
    .staff-app--manager .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .staff-app--manager .stat-card {
        min-height: 108px;
        padding: 12px;
    }
    .staff-app--manager .stat-card .value,
    .staff-app--manager .stat-card .number {
        font-size: 26px;
    }
    .staff-app--manager .quick-actions {
        grid-template-columns: 1fr;
    }
}
.employee-pwa-card {
    max-width: 1100px;
    margin: 18px auto 22px;
    padding: 18px 20px;
    border: 1px solid var(--sm-border);
    border-radius: var(--sm-radius-lg);
    background: var(--sm-surface);
    box-shadow: var(--sm-shadow-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
.employee-pwa-card h2 {
    font-size: 18px;
    margin-bottom: 4px;
}
.employee-pwa-card p {
    color: var(--sm-text-muted);
}
@keyframes staffPwaSlideUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
.employee-pwa-fallback {
    display: none;
}
.employee-pwa-shell {
    min-height: 320px;
}
.employee-pwa-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 240px;
    color: var(--sm-text-muted, #64748b);
    font-weight: 600;
}
.employee-pwa-loading__dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--sm-primary, #2563eb);
    box-shadow: 18px 0 0 rgba(37, 99, 235, .35), 36px 0 0 rgba(37, 99, 235, .18);
}
.employee-pwa-dashboard {
    display: grid;
    gap: 16px;
}
.employee-pwa-hero {
    margin-bottom: 0;
}
.employee-pwa-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.employee-pwa-quick-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
@media (max-width: 768px) {
    .staff-app--employee .employee-pwa-quick-actions {
        display: none;
    }
}
.employee-pwa-action {
    min-height: 44px;
    justify-content: center;
}
.employee-pwa-panel {
    margin: 0;
}
.employee-pwa-page-header {
    margin-bottom: 0;
}
.employee-pwa-form {
    display: grid;
    gap: 14px;
}
.employee-pwa-form .btn {
    justify-self: start;
}
.employee-pwa-inline-editor {
    padding: 16px;
    border: 1px solid var(--sm-border);
    background: var(--sm-surface);
    box-shadow: var(--sm-shadow-soft);
}
.employee-pwa-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}
.employee-pwa-calendar-nav {
    margin-bottom: 14px;
}
.employee-pwa-toggle .employee-pwa-toggle__button {
    display: none;
}
.employee-pwa-offline {
    margin: 0;
}
.employee-pwa-contract {
    margin-top: 0;
}
.employee-pwa-shell--stale .employee-pwa-dashboard::before {
    content: "Kunde inte uppdatera. Visar senast laddad översikt.";
    display: block;
    padding: 12px 14px;
    border: 1px solid rgba(245, 158, 11, .32);
    border-radius: 10px;
    background: rgba(245, 158, 11, .1);
    color: #92400e;
    font-weight: 600;
}
.employee-pwa-status,
.employee-pwa-ios-help {
    margin-top: 6px;
    font-size: 14px;
}
.employee-pwa-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.employee-pwa-help {
    position: relative;
    overflow: hidden;
    margin-top: 4px;
    border: 1px solid rgba(155, 106, 24, .24);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .94), rgba(251, 244, 232, .82)),
        var(--sm-surface-strong);
    box-shadow: 0 18px 42px rgba(23, 23, 23, .07);
}
.employee-pwa-help::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--sm-primary);
}
.employee-pwa-help[hidden] {
    display: none;
}
.employee-pwa-help__details {
    display: block;
}
.employee-pwa-help__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px 22px 34px;
    cursor: pointer;
    list-style: none;
    -webkit-tap-highlight-color: transparent;
}
.employee-pwa-help__summary::-webkit-details-marker {
    display: none;
}
.employee-pwa-help__summary-main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}
.employee-pwa-help__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border: 1px solid rgba(155, 106, 24, .28);
    background: #fff;
    color: var(--sm-primary);
    font-size: 18px;
    font-weight: 700;
}
.employee-pwa-help__summary strong,
.employee-pwa-help__summary small {
    display: block;
}
.employee-pwa-help__summary strong {
    color: var(--sm-text);
    font-size: 16px;
    line-height: 1.35;
}
.employee-pwa-help__summary small {
    margin-top: 6px;
    color: var(--sm-text-muted);
    font-size: 13px;
    line-height: 1.55;
}
.employee-pwa-help__summary-action {
    flex-shrink: 0;
    min-height: 34px;
    padding: 9px 12px;
    border: 1px solid rgba(155, 106, 24, .24);
    background: #fff;
    color: var(--sm-primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.employee-pwa-help__summary:hover .employee-pwa-help__summary-action,
.employee-pwa-help__summary:focus .employee-pwa-help__summary-action {
    background: var(--sm-primary);
    border-color: var(--sm-primary);
    color: #fff;
}
.employee-pwa-help__details[open] .employee-pwa-help__summary-action {
    color: var(--sm-text-muted);
}
.employee-pwa-help__details[open] .employee-pwa-help__summary-action::before {
    content: "Dölj";
}
.employee-pwa-help__details[open] .employee-pwa-help__summary-action {
    font-size: 0;
}
.employee-pwa-help__details[open] .employee-pwa-help__summary-action::before {
    font-size: 13px;
}
.employee-pwa-help__body {
    padding: 0 24px 24px 34px;
    color: var(--sm-text-muted);
    font-size: 14px;
    line-height: 1.7;
}
.employee-pwa-help__lead {
    max-width: 760px;
    margin: 0 0 20px;
    color: var(--sm-text-muted);
}
.employee-pwa-help__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}
.employee-pwa-help__platform {
    padding: 18px;
    border: 1px solid rgba(23, 23, 23, .10);
    background: rgba(255, 255, 255, .72);
}
.employee-pwa-help__body h3 {
    margin: 0 0 12px;
    color: var(--sm-text);
    font-size: 14px;
    line-height: 1.4;
}
.employee-pwa-help__steps {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: pwa-help-step;
}
.employee-pwa-help__steps li {
    position: relative;
    min-height: 28px;
    margin-bottom: 11px;
    padding-left: 38px;
    color: var(--sm-text-muted);
    line-height: 1.55;
}
.employee-pwa-help__steps li:last-child {
    margin-bottom: 0;
}
.employee-pwa-help__steps li::before {
    counter-increment: pwa-help-step;
    content: counter(pwa-help-step);
    position: absolute;
    left: 0;
    top: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: var(--sm-primary-soft);
    color: var(--sm-primary-strong);
    font-size: 12px;
    font-weight: 800;
}
.employee-pwa-help__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(23, 23, 23, .09);
}
.employee-pwa-help__footer p {
    margin: 0;
    color: var(--sm-text-muted);
}
.employee-pwa-help__footer .btn {
    flex-shrink: 0;
}
.pwa-safari-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.pwa-safari-modal[hidden] {
    display: none;
}
.pwa-safari-modal-content {
    background: var(--sm-surface, #fff);
    border-radius: var(--sm-radius-lg, 12px);
    padding: 28px 24px 22px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
}
.pwa-safari-modal-content h3 {
    margin-top: 0;
    margin-bottom: 14px;
    font-size: 18px;
}
.pwa-safari-modal-content ol {
    padding-left: 20px;
    margin-bottom: 20px;
    line-height: 1.7;
}
.pwa-safari-modal-content li {
    margin-bottom: 6px;
}
@media (max-width: 720px) {
    .employee-pwa-summary,
    .employee-pwa-quick-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .employee-pwa-action {
        width: 100%;
    }
    .employee-pwa-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .employee-pwa-help__summary {
        align-items: flex-start;
        flex-direction: column;
    }
    .employee-pwa-help__summary-main {
        align-items: flex-start;
    }
    .employee-pwa-help__grid {
        grid-template-columns: 1fr;
    }
    .employee-pwa-help__footer {
        align-items: flex-start;
        flex-direction: column;
    }
}
@media (max-width: 420px) {
    .employee-pwa-quick-actions {
        grid-template-columns: 1fr;
    }
}
.employee-mobile-topbar {
    display: none;
}
.employee-tabbar {
    display: flex;
    align-items: center;
}
.employee-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    color: var(--sm-text);
    text-decoration: none;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.employee-tab-icon {
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    line-height: 1;
}
.employee-tab-label {
    line-height: 1;
}
.employee-tab--button {
    width: auto;
    height: auto;
    box-shadow: none;
    border: none;
    border-radius: 0;
    font: inherit;
}
.employee-tab--button:hover,
.employee-tab--button:focus-visible {
    transform: none;
    box-shadow: none;
}
@media (min-width: 769px) {
    .staff-app--employee .employee-tab-icon {
        display: none;
    }
}
@media (max-width: 768px) {
    body.staff-app--employee {
        padding-bottom: calc(92px + env(safe-area-inset-bottom));
    }
    .staff-app--employee .employee-desktop-menu-toggle,
    .staff-app--employee .employee-desktop-nav.staff-primary-nav,
    .staff-app--employee .employee-desktop-nav.staff-primary-nav.is-open {
        display: none;
    }
    .staff-app--employee .header {
        position: sticky;
        top: 0;
        z-index: 120;
        background: rgba(255, 255, 255, 0.92);
    }
    .staff-app--employee .nav-container {
        display: block;
        height: auto;
        min-height: 56px;
        padding: 0 16px;
    }
    .staff-app--employee .logo--spacer {
        display: none;
    }
    .employee-mobile-topbar {
        min-height: 56px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }
    .employee-mobile-title {
        font-size: 20px;
        font-weight: 700;
        letter-spacing: 0;
        color: var(--sm-text);
    }
    .employee-mobile-logout {
        padding: 8px 12px;
        border-radius: 0;
        background: #fff;
        border: 1px solid var(--sm-border);
        color: var(--sm-text);
        text-decoration: none;
        font-size: 13px;
        font-weight: 600;
    }
    .staff-app--employee .employee-nav {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: calc(10px + env(safe-area-inset-bottom));
        z-index: 150;
        overflow: visible;
    }
    .staff-app--employee .nav-menu.employee-tabbar {
        margin: 0;
        padding: 8px;
        width: 100%;
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: 1fr;
        align-items: stretch;
        gap: 4px;
        list-style: none;
        overflow: visible;
        border-radius: 0;
        background: #fff;
        border: 1px solid var(--sm-border);
        box-shadow: var(--sm-shadow-soft);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        scrollbar-width: auto;
    }
    .staff-app--employee .nav-menu.employee-tabbar::-webkit-scrollbar {
        display: block;
    }
    .staff-app--employee .employee-tabbar li {
        min-width: 0;
        flex: initial;
    }
    .staff-app--employee .employee-tab {
        width: 100%;
        min-height: 58px;
        padding: 7px 4px 6px;
        display: flex;
        flex-direction: column;
        gap: 5px;
        border-radius: 0;
        color: var(--sm-text-muted);
        font-size: 11px;
        font-weight: 650;
        letter-spacing: 0;
        white-space: nowrap;
    }
    .staff-app--employee .employee-tab.active {
        color: var(--sm-primary);
        background: var(--sm-primary-soft);
        box-shadow: none;
    }
    .staff-app--employee .employee-tab-icon {
        display: inline-flex;
        font-size: 21px;
    }
    .staff-app--employee .employee-tab-label {
        font-size: 11px;
    }
    .staff-app--employee .employee-tab--button {
        color: var(--sm-text-muted);
    }
    .staff-app--employee .notification-trigger--nav {
        width: 100%;
        height: auto;
        box-shadow: none;
    }
    .staff-app--employee .notification-trigger-badge {
        top: 5px;
        right: 16px;
        min-width: 18px;
        height: 18px;
        padding: 0 5px;
        font-size: 10px;
    }
    .staff-app--employee .employee-desktop-logout {
        display: none;
    }
    .staff-app--employee .main-content {
        margin-top: 22px;
    }
    .staff-app--employee .dashboard-shell {
        gap: 12px;
    }
    .staff-app--employee .employee-dashboard-header {
        margin-bottom: 4px;
        padding: 16px;
        border-radius: 18px;
    }
    .staff-app--employee .employee-dashboard-header .dashboard-kicker {
        min-height: 24px;
        margin-bottom: 8px;
        padding: 0 9px;
        font-size: 10px;
    }
    .staff-app--employee .employee-dashboard-header h1 {
        margin-bottom: 3px;
        font-size: 28px;
        line-height: 1.04;
    }
    .staff-app--employee .employee-dashboard-header p {
        margin-bottom: 0;
        font-size: 14px;
    }
    .staff-app--employee .dashboard-header .dashboard-summary-strip {
        margin-top: 14px;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 6px;
    }
    .staff-app--employee .dashboard-header .summary-pill {
        min-height: 56px;
        padding: 9px 6px;
        border-radius: 14px;
        box-shadow: none;
    }
    .staff-app--employee .summary-pill-label {
        font-size: 9px;
        line-height: 1.15;
        letter-spacing: 0;
        text-transform: none;
    }
    .staff-app--employee .summary-pill strong {
        font-size: 20px;
        letter-spacing: 0;
    }
    .staff-app--employee .employee-dashboard-section,
    .staff-app--employee .contract-card-collapsible {
        padding: 16px;
        border-radius: 18px;
    }
    .staff-app--employee .employee-dashboard-section .section-header {
        gap: 6px;
        margin-bottom: 4px;
    }
    .staff-app--employee .employee-dashboard-section .section-header h2 {
        font-size: 18px;
    }
    .staff-app--employee .employee-dashboard-section .view-all-link {
        font-size: 13px;
    }
    .staff-app--employee .employee-dashboard-section .contract-item {
        padding: 12px 0;
        gap: 8px;
    }
    .staff-app--employee .employee-dashboard-item--next {
        padding-top: 10px;
    }
    .staff-app--employee .employee-dashboard-item--next .contract-info h4 {
        font-size: 17px;
    }
    .staff-app--employee .contract-info h4 {
        font-size: 15px;
    }
    .staff-app--employee .contract-info p {
        font-size: 13px;
        line-height: 1.35;
    }
    .staff-app--employee .contract-status {
        align-self: flex-start;
        font-size: 11px;
        white-space: normal;
    }
    .staff-app--employee .employee-dashboard-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .staff-app--employee .employee-dashboard-actions .btn {
        width: 100%;
        min-height: 44px;
        padding: 10px 8px;
        font-size: 13px;
        line-height: 1.15;
        white-space: normal;
    }
    .staff-app--employee .empty-state {
        padding: 14px;
        border-radius: 16px;
    }
}
@media (max-width: 390px) {
    .staff-app--employee .employee-nav {
        left: 8px;
        right: 8px;
    }
    .staff-app--employee .nav-menu.employee-tabbar {
        gap: 2px;
        padding: 7px;
    }
    .staff-app--employee .employee-tab {
        min-height: 56px;
        gap: 4px;
    }
    .staff-app--employee .employee-tab-icon {
        font-size: 20px;
    }
    .staff-app--employee .employee-tab-label {
        font-size: 10px;
    }
    .staff-app--employee .dashboard-header .dashboard-summary-strip {
        gap: 4px;
    }
    .staff-app--employee .dashboard-header .summary-pill {
        padding: 8px 4px;
    }
    .staff-app--employee .summary-pill-label {
        font-size: 8.5px;
    }
    .staff-app--employee .summary-pill strong {
        font-size: 18px;
    }
}
@media (max-width: 768px) {
    .staff-app--employee .employee-nav {
        position: fixed !important;
        inset: auto 12px calc(12px + env(safe-area-inset-bottom)) 12px !important;
        z-index: 9999 !important;
    }
}
@media (min-width: 769px) {
    .staff-app--employee .employee-nav {
        display: none;
    }
    .staff-app--employee .employee-desktop-nav {
        display: block;
    }
}
@media (max-width: 768px) {
    .staff-app--employee .employee-desktop-nav {
        display: none;
    }
    .staff-app--employee .employee-nav {
        display: block;
    }
}
.contract-preview-section {
    margin-bottom: 24px;
}
.contract-preview-frame {
    display: block;
    width: 100%;
    min-height: min(78vh, 900px);
    border: 1px solid var(--sm-border);
    border-radius: var(--sm-radius-md);
    background: #fff;
}
@media (max-width: 768px) {
    .contract-preview-frame {
        min-height: 70vh;
    }
}
.js-live-error {
    color: #d32f2f;
    font-size: 0.875rem;
    margin-top: 6px;
    font-weight: 500;
}
.is-invalid {
    border-color: #d32f2f !important;
    outline: none;
}
.is-invalid:focus {
    border-color: #d32f2f !important;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.15);
}
.job-public-page .job-application-file input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.job-file-label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 700;
}
.job-file-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 150px;
    padding: 22px;
    text-align: center;
    background: #fff;
    border: 2px dashed rgba(155,106,24,.35);
    transition: all .25s ease;
    cursor: pointer;
}
.job-file-dropzone:hover {
    background: #fffbf4;
    border-color: var(--sm-primary);
    transform: translateY(-1px);
}
.job-file-icon {
    width: 54px;
    height: 54px;
    font-size: 24px;
}
.job-file-main {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}
.job-file-sub {
    display: block;
    margin-top: 4px;
    color: #6b7280;
    font-size: 13px;
}
.job-application-file.is-file-selected .job-file-dropzone {
    border-style: solid;
    border-color: #16a34a;
    background: #f0fdf4;
}
.job-application-file.is-file-selected .job-file-icon {
    background: #dcfce7;
}
.job-application-file.is-file-selected .job-file-main::before {
    content: "✓ ";
    color: #16a34a;
}
.payroll-progress {
    margin: 0 0 24px;
    padding: 20px 24px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}
.payroll-progress__steps {
    display: flex;
    align-items: center;
    gap: 0;
}
.payroll-progress__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    min-width: 90px;
}
.payroll-progress__step span {
    font-size: 12px;
    color: #6b7280;
    text-align: center;
    max-width: 90px;
}
.payroll-progress__circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}
.payroll-progress__step--active .payroll-progress__circle {
    background: #1d4ed8;
    color: #fff;
}
.payroll-progress__step--active span {
    color: #1d4ed8;
    font-weight: 600;
}
.payroll-progress__step--done .payroll-progress__circle {
    background: #16a34a;
    color: #fff;
}
.payroll-progress__step--done span {
    color: #16a34a;
}
.payroll-progress__line {
    flex: 1;
    height: 3px;
    background: #e5e7eb;
    margin-bottom: 22px;
    min-width: 20px;
}
.payroll-progress__line--done {
    background: #16a34a;
}
.payroll-settings-row { padding: 16px 24px; }
.payroll-settings-form {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}
.payroll-settings-form__field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.payroll-settings-form__field label {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.payroll-open-actions {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    padding: 24px;
}
.payroll-open-actions__main {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.payroll-open-actions__hint {
    font-size: 13px;
    color: #6b7280;
    max-width: 420px;
    margin: 0;
}
.payroll-lock-section {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 24px;
    border-top: 2px solid #f1f5f9;
    flex-wrap: wrap;
}
.payroll-lock-section__main {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.payroll-lock-section__main p {
    font-size: 13px;
    color: #6b7280;
    max-width: 420px;
    margin: 0;
}
.payroll-lock-section__danger {
    align-self: flex-end;
    padding-top: 8px;
}
.payroll-next-step-card {
    border-left: 4px solid #1d4ed8;
    padding: 24px;
}
.payroll-next-step-card--done {
    border-left-color: #16a34a;
}
.payroll-next-step-card__label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #1d4ed8;
    margin-bottom: 4px;
}
.payroll-next-step-card--done .payroll-next-step-card__label {
    color: #16a34a;
}
.payroll-next-step-card h2 {
    margin: 0 0 8px;
    font-size: 20px;
}
.payroll-next-step-card__detail {
    color: #374151;
    margin: 0 0 16px;
}
.payroll-next-step-card__hint {
    font-size: 12px;
    color: #6b7280;
    margin: 8px 0 0;
}
.payroll-tax-section, .payroll-salary-payment-section { padding: 24px; }
.payroll-deadline-badge {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 6px;
}
.payroll-deadline-badge--urgent {
    color: #dc2626;
    background: #fef2f2;
}
.payroll-tax-summary {
    display: flex;
    gap: 0;
    flex-direction: column;
    max-width: 480px;
}
.payroll-tax-summary__item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 15px;
}
.payroll-tax-summary__item--total {
    border-bottom: none;
    padding-top: 14px;
    font-size: 17px;
    border-top: 2px solid #e2e8f0;
}
.payroll-danger-zone {
    padding: 20px 24px;
    border-top: 1px solid #fde8e8;
}
.payroll-danger-zone h2 { font-size: 16px; color: #374151; }
.payroll-danger-zone p { font-size: 13px; color: #6b7280; margin: 4px 0 12px; }
.payroll-exports-section { padding: 0; }
.payroll-exports-section__toggle {
    display: block;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    user-select: none;
    list-style: none;
}
.payroll-exports-section__toggle::-webkit-details-marker { display: none; }
.payroll-exports-section__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    padding: 0 24px 20px;
}
.payroll-export-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 160px;
}
.confirm-modal-dialog {
    max-width: 420px !important;
}
.payroll-row-toggle-col {
    width: 36px;
    padding-right: 0 !important;
}
.payroll-row-toggle {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 10px;
    color: var(--sm-text-muted);
    transition: transform 0.15s ease, color 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}
.payroll-row-toggle:hover {
    color: var(--sm-primary);
    background: var(--sm-surface-soft);
}
.payroll-row-toggle[aria-expanded="true"] {
    transform: rotate(90deg);
    color: var(--sm-primary);
}
.payroll-row-detail > td {
    background: var(--sm-surface-soft);
    border-top: none !important;
    padding-top: 4px !important;
    padding-bottom: 14px !important;
}
.payroll-row-breakdown {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.payroll-row-breakdown div {
    display: flex;
    align-items: baseline;
    gap: 5px;
    font-size: 13px;
}
.payroll-row-breakdown dt {
    color: var(--sm-text-muted);
    font-weight: 400;
}
.payroll-row-breakdown dd {
    margin: 0;
    font-weight: 600;
}
.payroll-export-group h4 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
    margin: 0 0 4px;
}