* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
    --sm-bg: #eef2f7;
    --sm-bg-top: #f8fafc;
    --sm-surface: rgba(255, 255, 255, 0.82);
    --sm-surface-strong: #ffffff;
    --sm-surface-soft: rgba(245, 247, 250, 0.92);
    --sm-border: rgba(148, 163, 184, 0.22);
    --sm-border-strong: rgba(148, 163, 184, 0.34);
    --sm-primary: #0f6cbd;
    --sm-primary-strong: #0b5ca3;
    --sm-primary-soft: rgba(15, 108, 189, 0.12);
    --sm-text: #0f172a;
    --sm-text-muted: #5b6577;
    --sm-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    --sm-shadow-soft: 0 8px 24px rgba(15, 23, 42, 0.05);
    --sm-radius-xl: 28px;
    --sm-radius-lg: 22px;
    --sm-radius-md: 16px;
}
body {
    font-family: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.88), transparent 32%),
        radial-gradient(circle at top right, rgba(191, 219, 254, 0.45), transparent 28%),
        linear-gradient(180deg, var(--sm-bg-top) 0%, var(--sm-bg) 100%);
    min-height: 100vh;
    color: var(--sm-text);
    letter-spacing: -0.01em;
}
@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(248, 250, 252, 0.78);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}
.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.03em;
}
.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: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--sm-text);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--sm-shadow-soft);
}
.staff-menu-toggle-bars,
.staff-menu-toggle-bars::before,
.staff-menu-toggle-bars::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    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-weight: 500;
    transition: color 0.2s, background 0.2s, box-shadow 0.2s;
    padding: 10px 16px;
    border-radius: 999px;
}
.nav-menu a:hover {
    color: var(--sm-text);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 0 0 1px var(--sm-border);
}
.nav-menu a.active {
    color: var(--sm-primary);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: inset 0 0 0 1px rgba(15, 108, 189, 0.18);
}
.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    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: 999px;
}
.logout-btn {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--sm-text);
    border: 1px solid var(--sm-border);
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}
.logout-btn:hover {
    background: #ffffff;
    transform: translateY(-1px);
    box-shadow: var(--sm-shadow-soft);
}
.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 rgba(255, 255, 255, 0.74);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
.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-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.05;
    margin-bottom: 8px;
    letter-spacing: -0.045em;
}
.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;
    gap: 22px;
}
.dashboard-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    margin-bottom: 12px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    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) 52px;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--sm-border);
    cursor: pointer;
}
.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-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: 52px;
    height: 30px;
    border-radius: 999px;
    background: #CBD5E1;
    transition: background 0.2s ease;
}
.employee-dashboard-toggle-slider::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
    transition: transform 0.2s ease;
}
.employee-dashboard-toggle input:checked + .employee-dashboard-toggle-slider {
    background: #16A34A;
}
.employee-dashboard-toggle input:checked + .employee-dashboard-toggle-slider::after {
    transform: translateX(22px);
}
.employee-dashboard-toggle:focus-within .employee-dashboard-toggle-slider {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.22);
}
.employee-dashboard-section--primary {
    border-color: rgba(15, 108, 189, 0.18);
}
.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-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: 999px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    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 {
    background: linear-gradient(180deg, #1a7ed5 0%, #0f6cbd 100%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(15, 108, 189, 0.18);
}
.btn-primary:hover,
.download-btn:hover,
.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(15, 108, 189, 0.22);
}
.btn-secondary,
.action-btn.secondary {
    background: rgba(255, 255, 255, 0.78);
    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 {
    background: #48bb78;
    color: #fff;
}
.btn-success:hover,
.download-btn-success:hover {
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.35);
}
.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;
}
.stat-card {
    background: rgba(255, 255, 255, 0.72);
    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: rgba(15, 108, 189, 0.18);
}
.stat-card .icon {
    font-size: 28px;
    margin-bottom: 14px;
}
.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: 700;
    letter-spacing: -0.05em;
}
.stat-card.active {
    background: linear-gradient(180deg, #f8fbff 0%, #edf5ff 100%);
    color: var(--sm-text);
    border-color: rgba(15, 108, 189, 0.18);
}
.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: 999px;
    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: #92400e;
}
.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: 999px;
    background: var(--sm-border-strong);
}
.manager-progress__bar {
    height: 100%;
    border-radius: inherit;
    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 rgba(148, 163, 184, 0.18);
}
.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-size: 21px;
    letter-spacing: -0.03em;
}
.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: 999px;
    background: rgba(255, 255, 255, 0.82);
    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 rgba(148, 163, 184, 0.18);
}
.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-size: 21px;
    letter-spacing: -0.03em;
}
.view-all-link {
    color: #b45309;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}
.view-all-link:hover {
    color: #92400e;
}
.notification-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border: 1px solid rgba(255, 255, 255, 0.74);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--sm-primary);
    cursor: pointer;
    box-shadow: var(--sm-shadow-soft);
    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: 0 16px 34px rgba(231, 138, 60, 0.2);
}
.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: 999px;
    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 {
        gap: 18px;
    }
    .staff-app--manager .staff-primary-nav {
        min-width: 0;
        flex: 1 1 auto;
    }
    .staff-app--manager .nav-menu {
        justify-content: flex-end;
        gap: 8px;
    }
    .staff-app--manager .nav-menu a,
    .staff-app--manager .logout-btn {
        min-height: 40px;
        padding: 8px 11px;
        font-size: 13px;
        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: rgba(255, 255, 255, 0.94);
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(17, 17, 17, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.72);
}
.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 rgba(244, 162, 97, 0.18);
}
.notification-modal-foot {
    border-top: 1px solid rgba(244, 162, 97, 0.18);
    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: 999px;
    background: #fff;
    color: #92400e;
    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: 14px;
    background: rgba(248, 250, 252, 0.92);
    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: rgba(231, 138, 60, 0.5);
    box-shadow: 0 10px 25px rgba(231, 138, 60, 0.12);
}
.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: 999px;
    background: #f4a261;
    color: #111;
    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: rgba(15, 108, 189, 0.1);
    color: var(--sm-primary);
    padding: 6px 12px;
    border-radius: 999px;
}
.location-chip {
    padding: 8px 14px;
    background: rgba(15, 108, 189, 0.08);
    color: var(--sm-primary);
    font-size: 14px;
    border: 1px solid rgba(15, 108, 189, 0.12);
}
.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: #b45309;
}
.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: linear-gradient(180deg, rgba(255,255,255,0.86) 0%, rgba(248,250,252,0.92) 100%);
}
.feature-icon,
.empty-state-icon {
    font-size: 50px;
    margin-bottom: 15px;
}
.feature-icon {
    display: none;
}
.empty-state {
    padding: 60px 20px;
    text-align: center;
}
.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: #667eea;
    font-size: 18px;
    margin-bottom: 20px;
    padding-left: 12px;
    border-left: 4px solid #667eea;
}
.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 rgba(148, 163, 184, 0.24);
    border-radius: 14px;
    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: rgba(15, 108, 189, 0.36);
    box-shadow: 0 0 0 4px rgba(15, 108, 189, 0.1);
}
.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, rgba(250, 248, 243, 0.96) 0%, rgba(255, 255, 255, 1) 42%),
        #fff;
    color: #161616;
    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: #171717;
    font-size: 0.82rem;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}
.job-public-nav a:hover {
    color: #9b6a18;
}
.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: #9b6a18;
    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 {
    margin-top: 22px;
}
.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-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 #151515;
    background: #151515;
    color: #fff;
}
.job-public-page .btn-primary:hover {
    background: #9b6a18;
    border-color: #9b6a18;
}
.job-public-page .btn-secondary {
    border: 1px solid rgba(22, 22, 22, 0.18);
    background: #fff;
    color: #151515;
}
.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 input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #151515;
}
.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: #171717;
    --jr-muted: #6a6258;
    --jr-line: rgba(23, 23, 23, 0.12);
    --jr-gold: #b77a21;
    --jr-gold-soft: #fbf4e8;
    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: rgba(183, 122, 33, 0.7);
    box-shadow: 0 0 0 3px rgba(183, 122, 33, 0.12);
}
.job-review-page .btn {
    border-radius: 0;
    font-weight: 750;
}
.job-review-page .btn-primary {
    border-color: #171717;
    background: #171717;
    color: #fff;
}
.job-review-page .btn-primary:hover {
    background: #2a2a2a;
}
.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-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-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-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;
    }
    .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;
}
.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;
}
.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: #f7fafc;
    border-radius: 8px;
    padding: 16px;
    border-left: 4px solid #667eea;
    white-space: pre-wrap;
}
.signature-canvas {
    border: 2px dashed #a0aec0;
    border-radius: 12px;
    background: #f8fafc;
    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: #102d73;
    margin-top: 50px;
}
.calendar-container {
    background: rgba(255, 255, 255, 0.78);
    border-radius: 24px;
    box-shadow: var(--sm-shadow);
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.74);
}
.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.calendar-nav h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}
.calendar-nav a {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 600;
}
.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: #6366f1;
    font-weight: 600;
}
.calendar-day {
    min-height: 110px;
    background: #f8fafc;
    border-radius: 10px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border: 1px solid transparent;
    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: #6366f1;
}
.calendar-day:hover {
    border-color: #6366f1;
}
.calendar-day--muted {
    opacity: 0.45;
}
.calendar-day--today {
    border-color: #6366f1;
    box-shadow: 0 0 0 1px #6366f1;
}
.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: 999px;
    background: #ffe4e6;
    color: #9f1239;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
}
.date-number {
    font-weight: 700;
    color: #0f172a;
}
.assignment-card {
    background: #fff;
    border-radius: 8px;
    padding: 8px;
    border: 1px solid #e2e8f0;
}
.assignment-card--interactive {
    cursor: pointer;
}
.assignment-card--interactive:hover {
    border-color: #cbd5e1;
}
.assignment-store {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
}
.assignment-time {
    font-size: 12px;
    color: #475569;
    margin-top: 2px;
}
.assignment-status {
    display: inline-block;
    margin-top: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    background: #e0e7ff;
    color: #312e81;
}
.assignment-status[data-status="confirmed"] {
    background: #dcfce7;
    color: #166534;
}
.assignment-status[data-status="tentative"] {
    background: #fef3c7;
    color: #92400e;
}
.assignment-response {
    display: inline-block;
    margin-top: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    background: #e2e8f0;
    color: #334155;
}
.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: #92400e;
}
.assignment-comment {
    margin-top: 6px;
    font-size: 12px;
    color: #64748b;
}
.assignment-override-badge {
    display: inline-flex;
    align-items: center;
    margin-top: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    background: #111827;
    color: #f8fafc;
}
.assignment-override-reason {
    margin-top: 6px;
    padding: 8px 10px;
    border-radius: 10px;
    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: rgba(15, 108, 189, 0.08);
    border-color: rgba(15, 108, 189, 0.12);
    color: var(--sm-primary);
}
.assignment-swap-trigger:hover,
.assignment-swap-trigger:focus-visible {
    background: rgba(15, 108, 189, 0.14);
    border-color: rgba(15, 108, 189, 0.2);
}
.assignment-swap-state {
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(15, 108, 189, 0.08);
    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: 14px;
    border: 1px solid rgba(180, 83, 9, 0.16);
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
}
.manager-override-title {
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9a3412;
}
.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: #475569;
}
@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 {
        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 .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 .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);
}
.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;
}
.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-card {
        flex-direction: column;
        align-items: flex-start;
    }
}
.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: 999px;
    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 .header {
        position: sticky;
        top: 0;
        z-index: 120;
        background: rgba(248, 250, 252, 0.88);
    }
    .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.03em;
        color: var(--sm-text);
    }
    .employee-mobile-logout {
        padding: 8px 12px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.8);
        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: 28px;
        background: rgba(255, 255, 255, 0.84);
        border: 1px solid rgba(255, 255, 255, 0.78);
        box-shadow:
            0 18px 48px rgba(15, 23, 42, 0.16),
            inset 0 1px 0 rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        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: 21px;
        color: #64748b;
        font-size: 11px;
        font-weight: 650;
        letter-spacing: -0.01em;
        white-space: nowrap;
    }
    .staff-app--employee .employee-tab.active {
        color: var(--sm-primary);
        background: rgba(15, 108, 189, 0.12);
        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: #64748b;
    }
    .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;
    }
}