:root {
    --bg: #f3f7f8;
    --bg-soft: #eef4f5;
    --bg-panel: rgba(255, 255, 255, 0.94);
    --panel: #ffffff;
    --panel-soft: #f8fbfb;
    --line: #d9e5e7;
    --line-strong: #c7d6d9;
    --text: #1b2630;
    --muted: #6b7a84;
    --navy: #20335f;
    --navy-strong: #162445;
    --navy-soft: #e9eef8;
    --sage: #6f8d76;
    --sage-soft: #edf5ef;
    --success: #2f7a48;
    --success-soft: #e7f5eb;
    --warning: #a06f11;
    --warning-soft: #fbf2df;
    --danger: #b54141;
    --danger-soft: #fdecec;
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --shadow-sm: 0 10px 22px rgba(18, 34, 54, 0.05);
    --shadow-md: 0 20px 46px rgba(18, 34, 54, 0.08);
    --shadow-lg: 0 28px 80px rgba(18, 34, 54, 0.14);
    --sidebar-width: 280px;
    --content-width: 1440px;
    --transition: 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    min-height: 100vh;
    font-family: Inter, Arial, sans-serif;
    color: var(--text);
    line-height: 1.5;
    background:
        radial-gradient(circle at top left, rgba(32, 51, 95, 0.08), transparent 28%),
        radial-gradient(circle at bottom right, rgba(111, 141, 118, 0.08), transparent 22%),
        linear-gradient(180deg, #f7fbfb 0%, #eef4f5 100%);
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
select,
textarea {
    font: inherit;
}

body.menu-open {
    overflow: hidden;
}

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

.sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    min-height: 100vh;
    padding: 20px 16px;
    background:
        linear-gradient(180deg, rgba(16, 29, 60, 0.98) 0%, rgba(28, 46, 91, 0.96) 55%, rgba(39, 58, 108, 0.94) 100%);
    color: #fff;
    box-shadow: 20px 0 46px rgba(13, 23, 43, 0.16);
    z-index: 50;
}

.sidebar-top {
    margin-bottom: 18px;
}

.sidebar-brand-card {
    padding: 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-brand-card img {
    width: 100%;
    max-width: 180px;
    margin: 0 auto 12px;
    padding: 10px;
    border-radius: 16px;
    background: #fff;
}

.sidebar-brand-copy {
    text-align: center;
}

.sidebar-brand-copy strong {
    display: block;
    font-size: 15px;
    font-weight: 800;
}

.sidebar-brand-copy span {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.72);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-section-label {
    margin-top: 10px;
    margin-bottom: 4px;
    padding: 0 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.54);
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    padding: 11px 12px;
    border-radius: 14px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid transparent;
    transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.sidebar-nav a:hover,
.sidebar-nav a:focus-visible {
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(255, 255, 255, 0.09);
    transform: translateX(2px);
}

.nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    min-width: 26px;
    height: 26px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 12px;
    font-weight: 700;
}

.logout-link {
    margin-top: 8px;
    background: rgba(255, 255, 255, 0.06);
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 16px;
}

.sidebar-user-card {
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-user-card strong {
    display: block;
    font-size: 14px;
}

.sidebar-user-card span {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.mobile-backdrop {
    display: none;
}

.mobile-topbar {
    display: none;
}

.mobile-topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-topbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-topbar-brand img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    padding: 6px;
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.mobile-topbar-brand-text strong {
    display: block;
    color: var(--navy);
    font-size: 14px;
}

.mobile-topbar-brand-text span {
    display: block;
    color: var(--muted);
    font-size: 11px;
}

.mobile-menu-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(32, 51, 95, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--navy);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.mobile-menu-btn span,
.mobile-menu-btn::before,
.mobile-menu-btn::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform var(--transition), opacity var(--transition);
}

.mobile-menu-btn::before {
    transform: translateY(-6px);
}

.mobile-menu-btn::after {
    transform: translateY(6px);
}

body.menu-open .mobile-menu-btn span {
    opacity: 0;
}

body.menu-open .mobile-menu-btn::before {
    transform: rotate(45deg);
}

body.menu-open .mobile-menu-btn::after {
    transform: rotate(-45deg);
}

.main-content {
    flex: 1;
    min-width: 0;
    padding: 26px;
}

.main-content-inner {
    max-width: var(--content-width);
    margin: 0 auto;
}

.full-width {
    width: 100%;
}

.alert,
.success-alert {
    margin-bottom: 16px;
    padding: 13px 15px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
}

.alert {
    color: var(--danger);
    background: var(--danger-soft);
    border: 1px solid rgba(181, 65, 65, 0.14);
}

.success-alert {
    color: var(--success);
    background: var(--success-soft);
    border: 1px solid rgba(47, 122, 72, 0.14);
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 460px;
    padding: 34px 28px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.76);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(14px);
    text-align: center;
}

.login-logo {
    max-width: 210px;
    margin: 0 auto 18px;
}

.login-card h1 {
    font-size: clamp(30px, 4vw, 38px);
    color: var(--navy);
    margin-bottom: 8px;
}

.login-card p {
    color: var(--muted);
    margin-bottom: 18px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-input,
.portal-form input[type="text"],
.portal-form input[type="email"],
.portal-form input[type="number"],
.portal-form input[type="password"],
.portal-form input[type="date"],
.portal-form input[type="time"],
.portal-form input[type="search"],
.portal-form input[type="file"],
.portal-form select,
.portal-form textarea,
.login-form input,
.filter-bar input,
.filter-bar select,
.report-filter-form input,
.report-filter-form select,
.sq-field input,
.sq-field select,
.sq-field textarea,
.sq-option-input input {
    width: 100%;
    min-height: 46px;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    color: var(--text);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.portal-form textarea,
.sq-field textarea {
    min-height: 110px;
    resize: vertical;
}

.form-input:focus,
.portal-form input:focus,
.portal-form select:focus,
.portal-form textarea:focus,
.login-form input:focus,
.filter-bar input:focus,
.filter-bar select:focus,
.report-filter-form input:focus,
.report-filter-form select:focus,
.sq-field input:focus,
.sq-field select:focus,
.sq-field textarea:focus,
.sq-option-input input:focus {
    border-color: rgba(32, 51, 95, 0.35);
    box-shadow: 0 0 0 4px rgba(32, 51, 95, 0.08);
}

.primary-btn,
.secondary-btn,
.btn,
.btn-primary,
.btn-secondary,
.login-form button,
.sq-inline-add,
.sq-action-btn,
.sq-add-option,
.sq-remove-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid transparent;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
}

.primary-btn,
.btn-primary,
.login-form button,
.sq-add-option {
    color: #fff;
    background: linear-gradient(135deg, var(--navy) 0%, #2c4787 100%);
    box-shadow: 0 10px 22px rgba(32, 51, 95, 0.16);
}

.primary-btn:hover,
.btn-primary:hover,
.login-form button:hover,
.sq-add-option:hover {
    transform: translateY(-1px);
}

.secondary-btn,
.btn-secondary,
.btn,
.sq-inline-add,
.sq-action-btn,
.sq-remove-option {
    color: var(--navy);
    background: rgba(255, 255, 255, 0.92);
    border-color: var(--line);
}

.secondary-btn:hover,
.btn-secondary:hover,
.btn:hover,
.sq-inline-add:hover,
.sq-action-btn:hover,
.sq-remove-option:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-sm {
    min-height: 34px;
    padding: 7px 11px;
    font-size: 13px;
}

.page-header,
.health-hero,
.service-questions-hero,
.service-question-form-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 22px;
    padding: 28px;
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(20, 36, 73, 0.98) 0%, rgba(32, 51, 95, 0.96) 52%, rgba(46, 70, 131, 0.92) 100%);
    color: #fff;
    box-shadow: var(--shadow-md);
}

.health-hero {
    display: flex;
    gap: 22px;
    justify-content: space-between;
    align-items: stretch;
    flex-wrap: wrap;
}

.health-hero::after,
.page-header::after,
.service-questions-hero::after,
.service-question-form-hero::after {
    content: "";
    position: absolute;
    right: -30px;
    bottom: -40px;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.health-hero-copy,
.health-hero-panel {
    position: relative;
    z-index: 1;
}

.health-hero-copy {
    flex: 1 1 560px;
}

.health-hero-copy h1,
.page-header h1,
.service-questions-hero h1,
.service-question-form-hero h1 {
    margin: 0 0 8px;
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.08;
}

.health-hero-copy p,
.page-header p,
.service-questions-subtitle {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
}

.eyebrow,
.service-questions-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.health-hero-panel {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-end;
    min-width: 260px;
}

.health-hero-panel-actions {
    align-items: flex-end;
}

.health-hero-stat {
    min-width: 150px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.health-hero-stat span {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.7);
}

.health-hero-stat strong {
    display: block;
    font-size: 14px;
    line-height: 1.35;
}

.health-stat-grid,
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.health-stat-grid-two,
.stats-grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.health-stat-card,
.stat-card,
.content-card,
.card,
.health-card,
.sq-section-card,
.sq-form-card,
.modal-card {
    background: var(--bg-panel);
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 22px;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(12px);
}

.health-stat-card,
.stat-card {
    padding: 20px;
}

.health-stat-card span,
.stat-card h3 {
    display: block;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.health-stat-card strong,
.stat-card p {
    display: block;
    color: var(--navy);
    font-size: clamp(30px, 4vw, 40px);
    line-height: 1;
    font-weight: 800;
}

.health-stat-card p {
    margin-top: 10px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.health-grid,
.premium-detail-grid,
.detail-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 20px;
}

.health-card,
.content-card,
.card,
.sq-section-card,
.sq-form-card {
    padding: 22px;
}

.health-card-spaced {
    margin-top: 20px;
}

.dashboard-section {
    margin-top: 20px;
}

.health-card-head,
.section-header,
.sq-section-header,
.sq-form-card-header,
.page-header-flex,
.header-actions,
.form-actions,
.sq-form-actions,
.service-questions-hero-actions,
.sq-row-actions,
.status-action-grid {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.health-card-head {
    margin-bottom: 16px;
}

.health-card-head h3,
.section-title,
.sq-section-header h2,
.sq-form-card-header h2 {
    color: var(--navy);
    font-size: 20px;
    line-height: 1.2;
}

.health-card-head p,
.section-header p,
.sq-section-header p,
.sq-form-card-header p {
    color: var(--muted);
    font-size: 13px;
}

.health-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.health-action-tile,
.vault-tile-card {
    display: block;
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfb 100%);
    border: 1px solid #e4ecee;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.health-action-tile:hover,
.vault-tile-card:hover,
.staff-folder-row:hover,
.scheduler-shift-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(18, 34, 54, 0.08);
}

.health-action-tile strong,
.vault-tile-card strong {
    display: block;
    color: var(--navy);
    font-size: 16px;
    margin-bottom: 7px;
}

.health-action-tile span,
.vault-tile-card p {
    display: block;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.vault-tile-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.vault-tile-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 14px;
    border-radius: 14px;
    background: var(--navy-soft);
    color: var(--navy);
    font-weight: 800;
}

.health-table-wrap,
.table-wrap,
.sq-table-wrap,
.scheduler-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.health-table,
.portal-table,
.sq-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.health-table th,
.health-table td,
.portal-table th,
.portal-table td,
.sq-table th,
.sq-table td {
    text-align: left;
    padding: 13px 12px;
    border-bottom: 1px solid #e8efef;
    vertical-align: top;
}

.health-table thead th,
.portal-table thead th,
.sq-table thead th {
    background: #f5f9fa;
    color: var(--navy);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    position: sticky;
    top: 0;
    z-index: 1;
}

.health-table td,
.portal-table td,
.sq-table td {
    color: #394851;
    font-size: 14px;
}

.health-table tbody tr:hover,
.portal-table tbody tr:hover,
.sq-table tbody tr:hover {
    background: rgba(32, 51, 95, 0.024);
}

.table-link {
    color: var(--navy);
    font-weight: 700;
    text-decoration: none;
}

.table-link:hover {
    text-decoration: underline;
}

.health-pill,
.status-badge,
.sq-status-pill,
.sq-type-badge,
.sq-order-badge,
.priority-low,
.priority-medium,
.priority-high,
.priority-urgent,
.task-status-pending,
.task-status-in_progress,
.task-status-completed,
.task-status-cancelled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.health-pill {
    background: var(--navy-soft);
    color: var(--navy);
}

.health-pill-soft,
.status-ceased,
.priority-low,
.task-status-pending {
    background: #eef3f6;
    color: #60707b;
}

.health-pill-success,
.status-current,
.task-status-completed {
    background: var(--success-soft);
    color: var(--success);
}

.priority-medium {
    background: var(--warning-soft);
    color: var(--warning);
}

.priority-high,
.task-status-in_progress {
    background: #eaf6ef;
    color: #2b7b4e;
}

.priority-urgent,
.task-status-cancelled {
    background: var(--danger-soft);
    color: var(--danger);
}

.empty-state {
    padding: 22px 16px;
    text-align: center;
}

.empty-state h4 {
    color: var(--navy);
    margin-bottom: 6px;
    font-size: 18px;
}

.empty-state p {
    color: var(--muted);
    font-size: 13px;
}

.client-search-bar,
.filter-bar,
.report-filter-form {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.client-search-input-wrap,
.premium-search-wrap {
    flex: 1 1 320px;
}

.primary-cell,
.premium-primary-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.primary-cell strong,
.premium-primary-text {
    color: var(--navy);
    font-weight: 700;
}

.primary-cell span,
.premium-sub-text {
    color: var(--muted);
    font-size: 12px;
}

.profile-banner,
.premium-client-hero,
.premium-shift-hero {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 22px;
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfb 100%);
    border: 1px solid #e4ecee;
    box-shadow: var(--shadow-sm);
}

.profile-banner-left,
.premium-client-hero-main,
.premium-shift-hero-main {
    display: flex;
    align-items: center;
    gap: 16px;
}

.profile-avatar,
.premium-client-avatar,
.premium-shift-badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--navy-soft) 0%, #f1f5fc 100%);
    color: var(--navy);
    font-size: 26px;
    font-weight: 800;
    box-shadow: inset 0 0 0 1px rgba(32, 51, 95, 0.08);
}

.profile-banner-left h2,
.premium-client-hero-main h2,
.premium-shift-hero-main h2 {
    color: var(--navy);
    font-size: 26px;
    line-height: 1.15;
    margin-bottom: 4px;
}

.profile-banner-left p,
.premium-client-hero-main p,
.premium-shift-hero-main p {
    color: var(--muted);
    font-size: 14px;
}

.profile-banner-grid,
.premium-client-hero-meta,
.premium-shift-hero-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 12px;
    flex: 1 1 420px;
}

.profile-banner-stat,
.premium-meta-card {
    padding: 14px;
    border-radius: 16px;
    background: var(--panel-soft);
    border: 1px solid var(--line);
}

.profile-banner-stat span,
.premium-meta-card span {
    display: block;
    margin-bottom: 5px;
    font-size: 11px;
    color: var(--muted);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.profile-banner-stat strong,
.premium-meta-card strong {
    color: var(--navy);
    font-size: 14px;
    line-height: 1.4;
}

.info-grid,
.premium-info-grid,
.form-grid,
.form-row-grid,
.sq-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.info-item,
.premium-info-item,
.form-group,
.form-field,
.sq-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.info-item span,
.premium-info-item span,
.form-group label,
.form-field label,
.sq-field label,
.sq-option-input label,
.checkbox-inline,
.sq-toggle-item {
    color: var(--navy);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.info-item strong,
.premium-info-item strong {
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
    font-weight: 600;
}

.info-item-full,
.premium-info-item-full,
.full-width,
.sq-field-full {
    grid-column: 1 / -1;
}

.note-body,
.premium-note-body {
    color: var(--text);
    line-height: 1.7;
}

.staff-folder-list,
.premium-assignment-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.staff-folder-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfb 100%);
    border: 1px solid #e4ecee;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
}

.staff-folder-row strong {
    display: block;
    color: var(--navy);
    font-size: 15px;
}

.staff-folder-row span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

.staff-folder-row em {
    color: var(--navy);
    font-style: normal;
    font-weight: 700;
}

.roster-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.roster-toolbar-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.roster-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.roster-summary-card {
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfb 100%);
    border: 1px solid #e4ecee;
    box-shadow: var(--shadow-sm);
}

.roster-summary-card span {
    display: block;
    margin-bottom: 8px;
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 800;
}

.roster-summary-card strong {
    color: var(--navy);
    font-size: 18px;
    line-height: 1.35;
}

.scheduler-table,
.healthcare-scheduler-table {
    min-width: 940px;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #dfebed;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
}

.scheduler-table th,
.scheduler-table td {
    border-right: 1px solid #e7eff0;
    border-bottom: 1px solid #e7eff0;
    vertical-align: top;
}

.scheduler-table th:last-child,
.scheduler-table td:last-child {
    border-right: none;
}

.scheduler-table thead th {
    padding: 12px;
    background: #f6fafb;
    color: var(--navy);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    min-width: 130px;
}

.scheduler-table thead th span {
    display: inline-block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: normal;
    text-transform: none;
}

.scheduler-staff-col,
.scheduler-staff-cell {
    position: sticky;
    left: 0;
    min-width: 170px;
    width: 170px;
    background: #fbfdfe;
    z-index: 2;
}

.scheduler-staff-cell {
    padding: 14px 12px;
}

.staff-sticky-card {
    color: var(--navy);
    font-weight: 700;
}

.scheduler-day-cell {
    min-width: 130px;
    padding: 10px;
    background: #fff;
}

.scheduler-today-header,
.scheduler-day-cell-today {
    background: #eef5f9 !important;
}

.scheduler-add-link {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 8px;
}

.scheduler-add-link a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: var(--navy-soft);
    color: var(--navy);
    text-decoration: none;
    font-weight: 800;
}

.scheduler-shift-card,
.healthcare-shift-card {
    display: block;
    margin-bottom: 8px;
    padding: 10px;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbfb 100%);
    border: 1px solid #dfe8ea;
    text-decoration: none;
    color: var(--text);
    box-shadow: 0 6px 14px rgba(18, 34, 54, 0.04);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.shift-time,
.premium-shift-time {
    display: block;
    margin-bottom: 6px;
    color: var(--navy);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.scheduler-shift-card strong {
    display: block;
    color: var(--navy);
    font-size: 14px;
    margin-bottom: 5px;
}

.scheduler-shift-card small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 6px;
}

.scheduler-shift-card em,
.premium-shift-service {
    display: inline-flex;
    font-style: normal;
    font-size: 11px;
    font-weight: 800;
    color: var(--sage);
    background: var(--sage-soft);
    padding: 5px 8px;
    border-radius: 999px;
}

.scheduler-empty {
    color: #96a4ac;
    font-size: 12px;
    font-weight: 700;
    padding-top: 12px;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.pagination-info {
    color: var(--navy);
    font-weight: 700;
}

.checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.checkbox-list ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.checkbox-list li {
    padding: 12px;
    border-radius: 14px;
    background: var(--panel-soft);
    border: 1px solid var(--line);
}

input[type="checkbox"],
input[type="radio"],
.form-checkbox {
    width: 17px;
    height: 17px;
    accent-color: var(--navy);
}

.field-error,
.sq-field-error,
.alert-error {
    margin-top: 4px;
    font-size: 12px;
    color: var(--danger);
}

.tag-multiselect {
    position: relative;
}

.tag-multiselect-control {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    min-height: 48px;
    padding: 7px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
}

.tag-multiselect-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tag-multiselect-tag,
.tag-multiselect-tags .tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--navy-soft);
    color: var(--navy);
    font-size: 12px;
    font-weight: 700;
}

.tag-multiselect-input {
    flex: 1;
    min-width: 140px;
    border: none !important;
    min-height: 34px !important;
    padding: 6px !important;
    box-shadow: none !important;
}

.tag-multiselect-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 30;
    display: none;
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
}

.tag-multiselect-dropdown.show {
    display: block;
}

.tag-multiselect-option {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid #eef3f4;
    font-size: 14px;
}

.tag-multiselect-option:last-child {
    border-bottom: none;
}

.tag-multiselect-option:hover {
    background: #f5f9fa;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(5px);
}

.modal-card {
    width: calc(100% - 28px);
    max-width: 700px;
    margin: 24px auto;
    padding: 20px;
}

.service-questions-page,
.service-question-form-page {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sq-section-card,
.sq-form-card {
    padding: 0;
    overflow: hidden;
}

.sq-section-header,
.sq-form-card-header {
    padding: 18px 20px 14px;
    margin-bottom: 0;
    border-bottom: 1px solid #edf2f4;
}

.sq-table {
    min-width: 920px;
}

.sq-question-main {
    min-width: 220px;
}

.sq-question-label {
    font-weight: 700;
    color: var(--text);
    margin-bottom: 3px;
}

.sq-question-help,
.sq-empty-text {
    color: var(--muted);
    font-size: 12px;
}

.sq-options-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.sq-option-chip {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #eef4f8;
    color: var(--navy);
    font-size: 11px;
    font-weight: 700;
}

.sq-empty-state {
    padding: 22px 20px;
    text-align: center;
    color: var(--muted);
}

.sq-empty-state h3 {
    color: var(--navy);
    margin-bottom: 6px;
}

.sq-form-shell {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sq-form-grid {
    padding: 20px;
}

.sq-toggle-row {
    grid-column: 1 / -1;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.sq-toggle-item {
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel-soft);
}

.sq-options-builder {
    padding: 20px;
}

.sq-option-rows {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sq-option-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
    background: var(--panel-soft);
    border: 1px solid var(--line);
}

.sq-option-remove-wrap {
    display: flex;
    align-items: end;
}

.availability-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.availability-subtitle {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.availability-card {
    position: relative;
    z-index: 1;
}

.availability-toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.bottom-toolbar {
    margin-top: 16px;
    margin-bottom: 0;
}

.availability-legend {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text);
}

.legend-swatch {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    border: 1px solid rgba(20, 36, 60, 0.12);
}

.legend-available {
    background: #3fbf73;
}

.legend-unavailable {
    background: #e45454;
}

.legend-shift {
    background: #4f7cff;
}

.legend-leave {
    background: #9c6bff;
}

.legend-conflict {
    background: #ff9800;
}

.mobile-grid-tip {
    display: none;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--muted);
}

.availability-grid-wrap {
    overflow-x: auto;
    overflow-y: visible;
    border: 1px solid var(--line);
    border-radius: 16px;
    -webkit-overflow-scrolling: touch;
    background: #fff;
}

.availability-grid {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    table-layout: fixed;
    user-select: none;
}

.availability-grid th,
.availability-grid td {
    border: 1px solid var(--line);
    text-align: center;
}

.availability-grid thead th {
    background: #f7f9fc;
    color: var(--navy);
    font-weight: 700;
    padding: 12px 8px;
    font-size: 14px;
}

.availability-grid .time-column {
    width: 110px;
    min-width: 110px;
    background: #fbfcfe;
    color: var(--muted);
    font-weight: 600;
    font-size: 13px;
    padding: 10px 8px;
    position: sticky;
    left: 0;
    z-index: 2;
}

.availability-grid tbody td.time-column {
    z-index: 1;
}

.availability-cell {
    height: 34px;
    cursor: crosshair;
    position: relative;
    transition: background 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.readonly-cell {
    cursor: default;
}

.availability-cell.is-available {
    background: #3fbf73;
}

.availability-cell.is-unavailable {
    background: #e45454;
}

.availability-cell.has-shift::after {
    content: '';
    position: absolute;
    inset: 6px 6px auto auto;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #4f7cff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85);
}

.availability-cell.has-leave::before {
    content: '';
    position: absolute;
    inset: auto 6px 6px auto;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #9c6bff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85);
}

.availability-cell.is-conflict {
    box-shadow: inset 0 0 0 3px #ff9800;
}

.availability-cell.hover-row,
.availability-cell.hover-col {
    filter: brightness(1.05);
}

.availability-team-card {
    margin-top: 24px;
}

.availability-team-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.availability-team-header h2 {
    margin: 0 0 4px;
    font-size: 20px;
    color: var(--navy);
}

.availability-team-header p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

::-webkit-scrollbar {
    height: 9px;
    width: 9px;
}

::-webkit-scrollbar-thumb {
    background: #c7d4d8;
    border-radius: 999px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

@media (max-width: 1280px) {
    .health-stat-grid,
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .health-grid,
    .premium-detail-grid,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .vault-tile-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 980px) {
    .mobile-topbar {
        position: sticky;
        top: 0;
        z-index: 45;
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 14px;
        padding: 12px 14px;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.88);
        border: 1px solid rgba(255, 255, 255, 0.76);
        box-shadow: var(--shadow-sm);
        backdrop-filter: blur(10px);
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        transform: translateX(-100%);
        transition: transform var(--transition);
    }

    body.menu-open .sidebar {
        transform: translateX(0);
    }

    .mobile-backdrop {
        position: fixed;
        inset: 0;
        display: block;
        z-index: 35;
        background: rgba(15, 23, 42, 0.4);
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--transition);
    }

    body.menu-open .mobile-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .main-content {
        padding: 14px;
    }

    .health-hero,
    .page-header,
    .service-questions-hero,
    .service-question-form-hero,
    .health-card,
    .content-card,
    .card,
    .stat-card,
    .health-stat-card,
    .login-card {
        border-radius: 22px;
    }

    .health-hero,
    .page-header,
    .service-questions-hero,
    .service-question-form-hero,
    .health-card,
    .content-card,
    .card,
    .stat-card,
    .health-stat-card,
    .sq-form-grid,
    .sq-options-builder {
        padding: 16px;
    }

    .health-hero-panel,
    .health-hero-panel-actions,
    .header-actions,
    .health-card-head,
    .form-actions,
    .sq-form-actions,
    .service-questions-hero-actions,
    .sq-row-actions,
    .status-action-grid {
        width: 100%;
    }

    .health-action-grid,
    .vault-tile-grid,
    .info-grid,
    .premium-info-grid,
    .form-grid,
    .form-row-grid,
    .sq-form-grid,
    .sq-option-row,
    .roster-summary-grid,
    .profile-banner-grid,
    .premium-client-hero-meta,
    .premium-shift-hero-meta {
        grid-template-columns: 1fr;
    }

    .client-search-bar,
    .filter-bar,
    .report-filter-form,
    .roster-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .roster-toolbar-group {
        width: 100%;
    }

    .roster-toolbar-group > * {
        flex: 1 1 100%;
    }

    .primary-btn,
    .secondary-btn,
    .btn,
    .btn-primary,
    .btn-secondary,
    .login-form button,
    .sq-inline-add,
    .sq-action-btn,
    .sq-add-option,
    .sq-remove-option {
        width: 100%;
    }

    .scheduler-staff-col,
    .scheduler-staff-cell {
        min-width: 145px;
        width: 145px;
    }

    .mobile-grid-tip {
        display: block;
    }

    .availability-grid {
        min-width: 640px;
        font-size: 11px;
    }

    .availability-grid .time-column {
        width: 72px;
        min-width: 72px;
        font-size: 10px;
        padding: 8px 6px;
    }

    .availability-cell {
        height: 28px;
        min-width: 32px;
        cursor: pointer;
    }
}

@media (max-width: 700px) {
    .health-stat-grid,
    .stats-grid,
    .health-stat-grid-two,
    .stats-grid-two,
    .vault-tile-grid {
        grid-template-columns: 1fr;
    }

    .health-hero-copy h1,
    .page-header h1,
    .service-questions-hero h1,
    .service-question-form-hero h1 {
        font-size: 25px;
    }

    .profile-banner-left h2,
    .premium-client-hero-main h2,
    .premium-shift-hero-main h2 {
        font-size: 22px;
    }

    .health-table,
    .portal-table,
    .sq-table {
        min-width: 700px;
    }

    .scheduler-table {
        min-width: 840px;
    }

    .checkbox-list ul {
        grid-template-columns: 1fr;
    }
}
.dashboard-shell {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.dashboard-hero-clean {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 24px;
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(20, 36, 73, 0.98) 0%, rgba(32, 51, 95, 0.96) 100%);
    color: #ffffff;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.dashboard-hero-clean__content {
    min-width: 0;
}

.dashboard-kicker {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.dashboard-hero-clean__content h1 {
    margin: 0 0 8px;
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.08;
}

.dashboard-hero-clean__content p {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 14px;
    line-height: 1.55;
}

.dashboard-hero-clean__actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.dashboard-stats-clean {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.dashboard-stats-clean--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-stat-clean {
    min-width: 0;
    padding: 18px;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfb 100%);
    border: 1px solid #e2ecee;
    box-shadow: var(--shadow-sm);
}

.dashboard-stat-clean span {
    display: block;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.dashboard-stat-clean strong {
    display: block;
    color: var(--navy);
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1;
    font-weight: 800;
    word-break: break-word;
}

.dashboard-stat-clean p {
    margin-top: 10px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.dashboard-quick-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.dashboard-quick-link {
    display: block;
    min-width: 0;
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfb 100%);
    border: 1px solid #e2ecee;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.dashboard-quick-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(18, 34, 54, 0.08);
}

.dashboard-quick-link strong {
    display: block;
    margin-bottom: 6px;
    color: var(--navy);
    font-size: 16px;
}

.dashboard-quick-link span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.dashboard-panels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

.dashboard-panel {
    min-width: 0;
    padding: 20px;
    border-radius: 22px;
    background: var(--bg-panel);
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(12px);
}

.dashboard-panel__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.dashboard-panel__head h3 {
    margin: 0 0 4px;
    color: var(--navy);
    font-size: 20px;
    line-height: 1.2;
}

.dashboard-panel__head p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.dashboard-mobile-cards {
    display: none;
}

.dashboard-mobile-card {
    display: block;
    padding: 14px;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfb 100%);
    border: 1px solid #e2ecee;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
}

.dashboard-mobile-card + .dashboard-mobile-card {
    margin-top: 10px;
}

.dashboard-mobile-card strong {
    display: block;
    margin-bottom: 4px;
    color: var(--navy);
    font-size: 15px;
}

.dashboard-mobile-card span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.dashboard-mobile-card em {
    display: inline-block;
    font-style: normal;
    font-size: 12px;
    font-weight: 700;
    color: var(--navy);
    background: var(--navy-soft);
    padding: 5px 8px;
    border-radius: 999px;
}

.dashboard-table-desktop {
    display: block;
}

@media (max-width: 1180px) {
    .dashboard-stats-clean,
    .dashboard-quick-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-panels {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .dashboard-hero-clean {
        grid-template-columns: 1fr;
        padding: 18px;
        border-radius: 20px;
    }

    .dashboard-hero-clean__actions {
        justify-content: stretch;
    }

    .dashboard-hero-clean__actions .primary-btn,
    .dashboard-hero-clean__actions .secondary-btn {
        flex: 1 1 100%;
    }

    .dashboard-stats-clean,
    .dashboard-stats-clean--two,
    .dashboard-quick-links {
        grid-template-columns: 1fr;
    }

    .dashboard-panel {
        padding: 16px;
        border-radius: 18px;
    }

    .dashboard-table-desktop {
        display: none;
    }

    .dashboard-mobile-cards {
        display: block;
    }
}

@media (max-width: 700px) {
    .main-content {
        padding: 10px;
    }

    .main-content-inner {
        max-width: 100%;
    }

    .mobile-topbar {
        margin-bottom: 10px;
        padding: 10px 12px;
        border-radius: 14px;
    }

    .mobile-topbar-brand img {
        width: 36px;
        height: 36px;
    }

    .mobile-topbar-brand-text strong {
        font-size: 13px;
    }

    .mobile-topbar-brand-text span {
        font-size: 10px;
    }

    .dashboard-hero-clean__content h1 {
        font-size: 24px;
    }

    .dashboard-hero-clean__content p {
        font-size: 13px;
    }

    .dashboard-stat-clean {
        padding: 16px;
        border-radius: 16px;
    }

    .dashboard-quick-link {
        padding: 16px;
        border-radius: 16px;
    }

    .dashboard-panel__head h3 {
        font-size: 18px;
    }
}
.sidebar {
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

body.menu-open .sidebar {
    overflow-y: auto;
    overflow-x: hidden;
}

@media (max-width: 980px) {
    .sidebar {
        height: 100dvh;
        max-height: 100dvh;
        padding-bottom: 28px;
    }

    .sidebar-nav {
        padding-bottom: 18px;
    }

    .sidebar-footer {
        margin-top: 18px;
        padding-bottom: 18px;
    }
}

.roster-desktop-view {
    display: block;
}

.roster-mobile-view {
    display: none;
}

.roster-mobile-day {
    margin-bottom: 16px;
    padding: 16px;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfb 100%);
    border: 1px solid #e2ecee;
    box-shadow: var(--shadow-sm);
}

.roster-mobile-day--today {
    border-color: rgba(32, 51, 95, 0.18);
    background: linear-gradient(180deg, #f8fbff 0%, #f1f7fb 100%);
}

.roster-mobile-day__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.roster-mobile-day__label {
    display: inline-block;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.roster-mobile-day__head h3 {
    color: var(--navy);
    font-size: 20px;
    line-height: 1.2;
}

.roster-mobile-shift-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.roster-mobile-shift-card {
    display: block;
    padding: 14px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #e0e9eb;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(18, 34, 54, 0.05);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.roster-mobile-shift-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(18, 34, 54, 0.07);
}

.roster-mobile-shift-card__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.roster-mobile-shift-time {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--navy-soft);
    color: var(--navy);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.roster-mobile-shift-service {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--sage-soft);
    color: var(--sage);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.roster-mobile-shift-card strong {
    display: block;
    margin-bottom: 8px;
    color: var(--navy);
    font-size: 16px;
    line-height: 1.35;
}

.roster-mobile-shift-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.roster-mobile-shift-meta span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.roster-mobile-day__empty {
    padding: 12px 0 2px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.roster-mobile-has-data,
.roster-mobile-hidden-marker,
.roster-mobile-day__spacer,
.roster-mobile-empty-check,
.roster-mobile-empty-fallback {
    display: none;
}

@media (max-width: 900px) {
    .roster-desktop-view {
        display: none;
    }

    .roster-mobile-view {
        display: block;
    }

    .roster-summary-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .roster-mobile-day {
        padding: 14px;
        border-radius: 18px;
    }

    .roster-mobile-day__head h3 {
        font-size: 18px;
    }

    .roster-mobile-day__head .secondary-btn {
        width: 100%;
    }

    .roster-mobile-shift-card {
        padding: 12px;
        border-radius: 14px;
    }

    .roster-mobile-shift-card strong {
        font-size: 15px;
    }

    .roster-mobile-shift-meta span {
        font-size: 12px;
    }
}
.sidebar {
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

body.menu-open .sidebar {
    overflow-y: auto;
    overflow-x: hidden;
}

@media (max-width: 980px) {
    .sidebar {
        height: 100dvh;
        max-height: 100dvh;
        padding-bottom: 28px;
    }

    .sidebar-nav {
        padding-bottom: 18px;
    }

    .sidebar-footer {
        margin-top: 18px;
        padding-bottom: 18px;
    }
}

.task-detail-shell,
.task-form-shell,
.client-list-shell {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.task-detail-hero,
.task-form-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 24px;
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(20, 36, 73, 0.98) 0%, rgba(32, 51, 95, 0.96) 100%);
    color: #ffffff;
    box-shadow: var(--shadow-md);
}

.task-detail-hero__main,
.task-form-hero__copy {
    min-width: 0;
}

.task-detail-kicker {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.task-detail-hero__main h1,
.task-form-hero__copy h1 {
    margin: 0 0 8px;
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.08;
}

.task-detail-hero__main p,
.task-form-hero__copy p {
    max-width: 700px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 14px;
    line-height: 1.55;
}

.task-detail-hero__actions,
.task-form-hero__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.task-alert-card {
    padding: 18px;
    border-radius: 20px;
    background: linear-gradient(180deg, #fff6ef 0%, #fff1e4 100%);
    border: 1px solid rgba(255, 152, 0, 0.22);
    box-shadow: var(--shadow-sm);
}

.task-alert-card__head h3 {
    color: #8f5600;
    margin-bottom: 4px;
    font-size: 18px;
}

.task-alert-card__head p {
    color: #9d6b1a;
    font-size: 13px;
    margin-bottom: 10px;
}

.task-alert-list {
    margin: 0;
    padding-left: 18px;
    color: #734b0a;
    line-height: 1.6;
    font-size: 14px;
}

.task-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.task-summary-card {
    padding: 18px;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfb 100%);
    border: 1px solid #e2ecee;
    box-shadow: var(--shadow-sm);
}

.task-summary-card span {
    display: block;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.task-summary-card strong {
    display: block;
    color: var(--navy);
    font-size: 18px;
    line-height: 1.35;
}

.task-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.task-section-card,
.task-form-card {
    padding: 22px;
    border-radius: 22px;
    background: var(--bg-panel);
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(12px);
}

.task-section-card__head,
.task-form-section__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.task-section-card__head h3,
.task-form-section__head h3 {
    color: var(--navy);
    font-size: 20px;
    line-height: 1.2;
    margin-bottom: 4px;
}

.task-section-card__head p,
.task-form-section__head p {
    color: var(--muted);
    font-size: 13px;
}

.task-info-grid,
.task-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.task-info-item {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.task-info-item span {
    color: var(--navy);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.task-info-item strong {
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
    font-weight: 600;
}

.task-info-item--full,
.task-form-group--full {
    grid-column: 1 / -1;
}

.task-assignment-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.task-assignment-card {
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfb 100%);
    border: 1px solid #e1ebed;
    box-shadow: var(--shadow-sm);
}

.task-assignment-card__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.task-assignment-person {
    display: flex;
    align-items: center;
    gap: 12px;
}

.task-assignment-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--navy-soft);
    color: var(--navy);
    font-size: 18px;
    font-weight: 800;
}

.task-assignment-person h4 {
    color: var(--navy);
    font-size: 16px;
    line-height: 1.3;
    margin-bottom: 3px;
}

.task-assignment-person p {
    color: var(--muted);
    font-size: 12px;
}

.task-assignment-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.task-metric {
    padding: 12px;
    border-radius: 14px;
    background: #f7fbfb;
    border: 1px solid #e5eeef;
}

.task-metric span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.task-metric strong {
    color: var(--navy);
    font-size: 13px;
    line-height: 1.45;
}

.task-assignment-actions,
.task-form-actions,
.task-notes-modal__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.task-form-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.task-form-section {
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fcfc 100%);
    border: 1px solid #e2ecee;
}

.task-tag-multiselect .tag-multiselect-control {
    min-height: 50px;
    border-radius: 16px;
}

.task-tag-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 999px;
    background: rgba(32, 51, 95, 0.1);
    color: var(--navy);
    cursor: pointer;
    font-weight: 800;
}

.task-field-help {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.task-notes-modal {
    max-width: 760px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--shadow-lg);
}

.task-notes-modal__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.task-notes-modal__head h2 {
    color: var(--navy);
    font-size: 28px;
    line-height: 1.15;
    margin-bottom: 6px;
}

.task-notes-modal__head p {
    color: var(--muted);
    font-size: 14px;
}

.client-table-desktop {
    display: block;
}

.client-mobile-cards {
    display: none;
}

.client-mobile-card {
    display: block;
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfb 100%);
    border: 1px solid #e2ecee;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
}

.client-mobile-card + .client-mobile-card {
    margin-top: 12px;
}

.client-mobile-card__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.client-mobile-card__number {
    display: inline-block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.client-mobile-card__top h3 {
    color: var(--navy);
    font-size: 18px;
    line-height: 1.25;
}

.client-mobile-card__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.client-mobile-card__grid span {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.client-mobile-card__grid strong {
    color: var(--text);
    font-size: 13px;
    line-height: 1.45;
}

@media (max-width: 1180px) {
    .task-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .task-detail-grid {
        grid-template-columns: 1fr;
    }

    .task-assignment-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .task-detail-hero,
    .task-form-hero {
        grid-template-columns: 1fr;
        padding: 18px;
        border-radius: 20px;
    }

    .task-detail-hero__actions,
    .task-form-hero__actions {
        justify-content: stretch;
    }

    .task-detail-hero__actions .primary-btn,
    .task-detail-hero__actions .secondary-btn,
    .task-form-hero__actions .secondary-btn,
    .task-form-actions .primary-btn,
    .task-form-actions .secondary-btn,
    .task-assignment-actions .primary-btn,
    .task-notes-modal__actions .primary-btn {
        flex: 1 1 100%;
    }

    .task-summary-grid,
    .task-info-grid,
    .task-form-grid,
    .client-mobile-card__grid {
        grid-template-columns: 1fr;
    }

    .task-info-item--full,
    .task-form-group--full {
        grid-column: auto;
    }

    .task-section-card,
    .task-form-card,
    .task-form-section,
    .task-alert-card {
        padding: 16px;
        border-radius: 18px;
    }

    .task-assignment-metrics {
        grid-template-columns: 1fr;
    }

    .client-table-desktop {
        display: none;
    }

    .client-mobile-cards {
        display: block;
    }
}

@media (max-width: 700px) {
    .task-detail-hero__main h1,
    .task-form-hero__copy h1 {
        font-size: 24px;
    }

    .task-detail-hero__main p,
    .task-form-hero__copy p {
        font-size: 13px;
    }

    .task-summary-card {
        padding: 16px;
        border-radius: 16px;
    }

    .task-summary-card strong {
        font-size: 16px;
    }

    .task-assignment-card {
        padding: 14px;
        border-radius: 16px;
    }

    .task-assignment-person h4 {
        font-size: 15px;
    }

    .task-notes-modal {
        width: calc(100% - 16px);
        margin: 12px auto;
        padding: 16px;
        border-radius: 18px;
    }

    .task-notes-modal__head h2 {
        font-size: 22px;
    }

    .client-mobile-card {
        padding: 14px;
        border-radius: 16px;
    }

    .client-mobile-card__top h3 {
        font-size: 16px;
    }
}
.customer-detail-shell {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.customer-detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 24px;
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(20, 36, 73, 0.98) 0%, rgba(32, 51, 95, 0.96) 100%);
    color: #ffffff;
    box-shadow: var(--shadow-md);
}

.customer-detail-hero__main {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.customer-detail-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 28px;
    font-weight: 800;
    flex-shrink: 0;
}

.customer-detail-hero__copy {
    min-width: 0;
}

.customer-detail-kicker {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.customer-detail-hero__copy h1 {
    margin: 0 0 8px;
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.08;
}

.customer-detail-hero__copy p {
    color: rgba(255, 255, 255, 0.84);
    font-size: 14px;
    line-height: 1.55;
}

.customer-detail-hero__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.customer-overview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.customer-overview-card {
    padding: 18px;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfb 100%);
    border: 1px solid #e2ecee;
    box-shadow: var(--shadow-sm);
}

.customer-overview-card span {
    display: block;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.customer-overview-card strong {
    display: block;
    color: var(--navy);
    font-size: 18px;
    line-height: 1.35;
}

.customer-detail-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 18px;
}

.customer-section-card {
    padding: 22px;
    border-radius: 22px;
    background: var(--bg-panel);
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(12px);
}

.customer-section-card--spaced {
    margin-top: 2px;
}

.customer-section-card__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.customer-section-card__head h3 {
    color: var(--navy);
    font-size: 20px;
    line-height: 1.2;
    margin-bottom: 4px;
}

.customer-section-card__head p {
    color: var(--muted);
    font-size: 13px;
}

.customer-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.customer-info-item {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.customer-info-item span {
    color: var(--navy);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.customer-info-item strong {
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
    font-weight: 600;
}

.customer-info-item--full {
    grid-column: 1 / -1;
}

.customer-summary-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.customer-summary-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 14px;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfb 100%);
    border: 1px solid #e3ecee;
}

.customer-summary-row span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.customer-summary-row strong {
    color: var(--navy);
    font-size: 14px;
    line-height: 1.5;
}

.customer-service-table-desktop,
.customer-history-table-desktop {
    display: block;
}

.customer-service-mobile-cards,
.customer-history-mobile-cards {
    display: none;
}

.customer-service-card,
.customer-history-card {
    display: block;
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfb 100%);
    border: 1px solid #e2ecee;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
}

.customer-service-card + .customer-service-card,
.customer-history-card + .customer-history-card {
    margin-top: 12px;
}

.customer-service-card__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.customer-service-card__date {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.customer-service-card strong {
    display: block;
    margin-bottom: 8px;
    color: var(--navy);
    font-size: 16px;
}

.customer-service-card__meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.customer-service-card__meta span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.customer-history-card__row {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.customer-history-card__row + .customer-history-card__row {
    margin-top: 10px;
}

.customer-history-card__row span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.customer-history-card__row strong {
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
}

@media (max-width: 1180px) {
    .customer-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .customer-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .customer-detail-hero {
        grid-template-columns: 1fr;
        padding: 18px;
        border-radius: 20px;
    }

    .customer-detail-hero__main {
        align-items: flex-start;
    }

    .customer-detail-hero__actions {
        justify-content: stretch;
    }

    .customer-detail-hero__actions .primary-btn,
    .customer-detail-hero__actions .secondary-btn {
        flex: 1 1 100%;
    }

    .customer-overview-grid,
    .customer-info-grid {
        grid-template-columns: 1fr;
    }

    .customer-info-item--full {
        grid-column: auto;
    }

    .customer-section-card {
        padding: 16px;
        border-radius: 18px;
    }

    .customer-service-table-desktop,
    .customer-history-table-desktop {
        display: none;
    }

    .customer-service-mobile-cards,
    .customer-history-mobile-cards {
        display: block;
    }
}

@media (max-width: 700px) {
    .customer-detail-hero__copy h1 {
        font-size: 24px;
    }

    .customer-detail-hero__copy p {
        font-size: 13px;
    }

    .customer-detail-avatar {
        width: 60px;
        height: 60px;
        border-radius: 18px;
        font-size: 22px;
    }

    .customer-overview-card {
        padding: 16px;
        border-radius: 16px;
    }

    .customer-service-card,
    .customer-history-card {
        padding: 14px;
        border-radius: 16px;
    }

    .customer-service-card strong {
        font-size: 15px;
    }
}
#managing-company-group {
    transition: all 0.2s ease;
}
#copayment-amount-group {
    transition: all 0.2s ease;
}
.roster-planner-shell {
    gap: 1.5rem;
}

.roster-planner-hero {
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.96));
}

.roster-planner-card {
    overflow: visible;
}

.roster-planner-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(340px, 0.9fr);
    gap: 1.5rem;
}

.roster-planner-sidebar {
    display: grid;
    gap: 1.5rem;
}

.roster-planner-section {
    height: 100%;
}

.roster-planner-form-grid {
    gap: 1.15rem;
}

.task-single-select .tag-multiselect-control {
    min-height: 52px;
    align-items: center;
}

.planner-info-stack {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.planner-info-card {
    padding: 0.95rem 1rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.65);
}

.planner-info-card span {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
}

.planner-info-card strong {
    display: block;
    color: #0f172a;
    line-height: 1.45;
}

.planner-detail-block + .planner-detail-block {
    margin-top: 1rem;
}

.planner-detail-block h4 {
    margin: 0 0 0.4rem;
    font-size: 0.92rem;
    color: #0f172a;
}

.planner-detail-block p {
    margin: 0;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.16);
    color: #334155;
    white-space: pre-line;
}

@media (max-width: 1100px) {
    .roster-planner-grid {
        grid-template-columns: 1fr;
    }
}

.roster-shell {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 1.25rem;
}

.roster-sidebar-card,
.roster-main-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    padding: 1.25rem;
}

.roster-sidebar-head h1 {
    margin: 0.35rem 0;
    font-size: 1.8rem;
}

.roster-sidebar-head p {
    margin: 0;
    color: #52607a;
}

#roster-mini-calendar {
    margin-top: 1rem;
    border: 1px solid #e5ebf5;
    border-radius: 18px;
    overflow: hidden;
}

.roster-staff-section,
.roster-legend-card {
    margin-top: 1rem;
}

.roster-section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.roster-staff-list,
.roster-assignee-list {
    display: grid;
    gap: 0.55rem;
}

.roster-staff-item,
.roster-assignee-pill {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.75rem 0.9rem;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e5ebf5;
}

.roster-staff-dot,
.roster-assignee-pill__dot {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    flex: 0 0 14px;
}

#roster-calendar {
    min-height: 78vh;
}

.fc .fc-toolbar.fc-header-toolbar {
    margin-bottom: 1rem;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.fc .fc-button {
    border-radius: 999px;
    border: none;
    background: #0f4c81;
    padding: 0.5rem 0.9rem;
}

.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:not(:disabled):active {
    background: #143f63;
}

.fc .fc-timegrid-slot,
.fc .fc-timegrid-axis {
    height: 2.65rem;
}

.fc .fc-timegrid-axis-cushion,
.fc .fc-timegrid-slot-label-cushion {
    color: #52607a;
    font-weight: 600;
}

.fc .fc-col-header-cell-cushion {
    padding: 0.9rem 0.4rem;
    font-weight: 700;
    color: #183b56;
}

.fc-event {
    border-radius: 18px;
    padding: 0.2rem 0.3rem;
    min-height: 52px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
}

.fc-event-title {
    white-space: normal;
    font-weight: 700;
    font-size: 0.84rem;
    line-height: 1.15;
}

.fc-shift-staff {
    display: block;
    margin-top: 0.15rem;
    font-weight: 600;
    font-size: 0.72rem;
    opacity: 0.95;
}

.roster-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1200;
}

.roster-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.98);
    width: min(1100px, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
    overflow: auto;
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
    padding: 1.25rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 1300;
}

.roster-modal.show,
.roster-modal-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

.roster-modal.show {
    transform: translate(-50%, -50%) scale(1);
}

.roster-modal__header,
.roster-modal__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.roster-modal__body {
    margin: 1rem 0;
}

.roster-modal__close {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: none;
    background: #eff3f8;
    font-size: 1.6rem;
    cursor: pointer;
}

.roster-form-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.roster-field-full {
    grid-column: 1 / -1;
}

.roster-agreement-preview {
    margin-top: 1rem;
    border: 1px solid #e5ebf5;
    border-radius: 18px;
    background: #f8fafc;
    padding: 1rem;
}

.roster-agreement-preview__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 1rem;
}

.roster-agreement-preview__grid .full {
    grid-column: 1 / -1;
}

.roster-agreement-preview span {
    display: block;
    font-size: 0.74rem;
    color: #52607a;
    margin-bottom: 0.15rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.roster-agreement-preview strong {
    color: #16324f;
}

.roster-warning-box {
    display: none;
    margin-top: 1rem;
    background: #fff6da;
    color: #6d4f00;
    border: 1px solid #f3d06b;
    padding: 0.9rem 1rem;
    border-radius: 16px;
}

.roster-modal__actions-right {
    display: flex;
    gap: 0.75rem;
}

.roster-small-btn {
    padding: 0.55rem 0.9rem;
}

@media (max-width: 1180px) {
    .roster-shell {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .roster-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 580px) {
    .roster-form-grid,
    .roster-agreement-preview__grid {
        grid-template-columns: 1fr;
    }
}
.page-shell {
  padding: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
}

.card {
  background: #ffffff;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  margin-bottom: 20px;
}

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

.button-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 12px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}

.btn {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.btn-primary {
  background: #0f172a;
  color: #ffffff;
}

.btn-secondary {
  background: #e5e7eb;
  color: #111827;
}

.onboarding-item {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .page-shell {
    padding: 14px;
  }

  .page-header {
    flex-direction: column;
    align-items: stretch;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .table {
    font-size: 13px;
  }
}
.colour-grid{
display:flex;
flex-wrap:wrap;
gap:10px;
margin:15px 0;
}

.colour-option input{
display:none;
}

.colour-option span{
display:block;
width:34px;
height:34px;
border-radius:50%;
cursor:pointer;
border:3px solid #fff;
box-shadow:0 0 0 1px #d1d5db;
}
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
}

.form-group ul {
  list-style: none;
  padding-left: 0;
  margin: 8px 0;
}

.form-group li {
  margin-bottom: 6px;
}

.colour-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 20px;
}

.colour-option input {
  display: none;
}

.colour-option span,
.colour-dot {
  display: inline-block;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 1px #cbd5e1;
  vertical-align: middle;
}

.colour-option input:checked + span {
  box-shadow: 0 0 0 4px #0f172a;
}
