/* Base reset-ish */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #0f172a;
    color: #e5e7eb;
}

/* App shell layout */
.app-shell {
    display: flex;
    min-height: 100vh;
}

/* Primary sidebar (icon-only) */
.sidebar {
    background-color: #020617;
    color: #e5e7eb;
}

.sidebar-primary {
    width: 75px;
    border-right: 1px solid rgba(148, 163, 184, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 0;
}

.sidebar-primary__logo {
    margin-bottom: 24px;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #22c55e, #0ea5e9);
    color: #0f172a;
    font-weight: 800;
    font-size: 18px;
}
.logo-mark--img {
    width: 70px;
    height: 70px;
    background: url('/images/transparent-kessa-logo.svg') center / contain no-repeat;
    border-radius: 10px;
}

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

.sidebar-primary__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 60px;
    border-radius: 12px;
    color: #94a3b8;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
    gap: 4px;
}

.sidebar-primary__item:hover {
    background-color: rgba(148, 163, 184, 0.2);
    color: #f9fafb;
}

.sidebar-primary__item.active {
    position: relative;
    background-color: transparent;
    color: #1e90ff;
}

.sidebar-primary__item.active::after {
    content: "";
    position: absolute;
    right: -12px;
    top: 12px;
    height: calc(100% - 24px);
    width: 3px;
    border-radius: 2px;
    background-color: #1e90ff;
}

.sidebar-primary__label {
    font-size: 10px;
    line-height: 1;
    text-align: center;
    width: 100%;
}

.sidebar-primary__item--bottom {
    margin-top: auto;
}

/* Secondary sidebar (nav with labels) */
.sidebar-secondary {
    width: 220px;
    background: radial-gradient(circle at top, #020617 0, #020617 40%, #020617 100%);
    padding: 0 12px 16px 12px;
    position: relative;
    box-sizing: border-box;
}

.sidebar-secondary::after {
    content: "";
    position: absolute;
    right: 0;
    top: calc(67px + 16px); /* start just below the slogan block */
    bottom: 0;
    width: 1px;
    background-color: rgba(148, 163, 184, 0.2);
    pointer-events: none;
}

.sidebar-secondary__section {
    margin-bottom: 24px;
}

.sidebar-secondary__slogan {
    margin: 0 -12px 16px -12px; /* extend to sidebar edges at the top */
    padding: 0 16px;
    min-height: 67px;
    display: flex;
    align-items: center;
    background-color: rgba(15, 23, 42, 0.9); /* match header feel */
    color: #8da2c2;
    font-size: 12px;
    line-height: 1.6;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.sidebar-secondary__slogan-text {
    display: block;
    width: 100%;
    text-align: center;
}

.sidebar-secondary__section-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    margin-bottom: 8px;
}

.sidebar-secondary__link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    color: #cbd5f5;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.15s ease, color 0.15s ease;
    position: relative;
}

.sidebar-secondary__link:hover {
    background-color: rgba(148, 163, 184, 0.15);
    color: #f9fafb;
}

.sidebar-secondary__link.active {
    background: transparent;
    color: #1e90ff;
}

.sidebar-secondary__link.active::after {
    content: "";
    position: absolute;
    right: -6px;
    top: 10px;
    height: calc(100% - 20px);
    width: 3px;
    border-radius: 2px;
    background-color: #1e90ff;
}

/* Main area */
.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at top, #0b1120 0, #020617 50%, #020617 100%);
    min-width: 0;
}

/* Header */
.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    backdrop-filter: blur(12px);
    background-color: rgba(15, 23, 42, 0.85);
    box-sizing: border-box;
}

.app-header__title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.app-header__subtitle {
    font-size: 12px;
    color: #64748b;
    margin-left: 8px;
}

.app-header__left {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.app-header__right {
    display: flex;
    align-items: center;
}

/* User pill */
.user-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background-color: rgba(15, 23, 42, 0.9);
    font-size: 13px;
    color: #e5e7eb;
}

.user-pill__name {
    font-weight: 600;
}

.user-pill__logout {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 8px;
    color: #cbd5f5;
    text-decoration: none;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(255, 255, 255, 0.04);
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    font-weight: 600;
}

.user-pill__logout:hover {
    background-color: rgba(148, 163, 184, 0.15);
    border-color: rgba(148, 163, 184, 0.6);
    color: #f9fafb;
}

.user-pill {
    gap: 8px;
    padding: 6px 12px;
}

/* Content area */
.app-content {
    padding: 20px 24px;
    box-sizing: border-box;
    min-width: 0;
    overflow-x: hidden;
}

.content-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    padding: 16px;
    max-width: 900px;
}

.content-card h2 {
    margin-top: 0;
    margin-bottom: 8px;
}

/* Lucide icon base */
.nav-icon {
    width: 20px;
    height: 20px;
    stroke-width: 1.8;
    vertical-align: middle;
}

/* LOGIN CARD (for landing page) */
.kessa-card {
    background-color: #0f172a;
    border: 1px solid #1e293b;
    padding: 28px;
    border-radius: 10px;
    width: 360px;
    box-shadow: 0 0 15px rgba(0,0,0,0.25);
    margin-top: 40px;
}

.kessa-card h2 {
    margin-bottom: 16px;
    font-size: 1.4rem;
}

.kessa-input {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 14px;
    border-radius: 6px;
    border: 1px solid #334155;
    background: #0a1120;
    color: #fff;
    box-sizing: border-box;
}

.kessa-input:focus {
    outline: none;
    border-color: #64748b;
}

.kessa-btn {
    background-color: #2563eb;
    color: white;
    padding: 10px 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
}

.kessa-btn:hover {
    background-color: #1e4fb8;
}

/* Auth split layout */
.auth-body {
    background: linear-gradient(135deg, #0b1120 0%, #0f172a 50%, #0b1120 100%);
    color: #0b1220;
}

.auth-shell {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

.auth-pane {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    box-sizing: border-box;
}

.auth-pane--form {
    background: #f9fafb;
}

.auth-pane--brand {
    background: radial-gradient(circle at top, #0b1120 0, #020617 50%, #020617 100%);
    color: #e5e7eb;
}

.auth-card {
    width: 380px;
}

.auth-links {
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.auth-links a {
    color: #2563eb;
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

.auth-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    text-align: left;
}

.auth-brand-logo {
    width: clamp(180px, 30vw, 300px);
    height: clamp(180px, 30vw, 300px);
    background: url('/images/transparent-kessa-logo.svg') center / contain no-repeat;
    margin-bottom: clamp(-48px, -10vw, -64px);
}

.auth-brand-title {
    font-size: 24px;
    font-weight: 800;
}

.auth-brand-subtitle {
    font-size: clamp(18px, 3vw, 24px);
    color: #94a3b8;
    margin-top: clamp(-12px, -2vw, 0px);
    line-height: 1.3;
}

/* Utility + content styles */
.card {
    background-color: #0f172a;
    border: 1px solid #1e293b;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

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

.table th {
    color: #cbd5e1;
    font-weight: 600;
}

.table tr:hover td {
    background-color: rgba(148, 163, 184, 0.08);
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    margin-bottom: 4px;
    color: #cbd5e1;
    font-size: 0.9rem;
}

.text-danger {
    color: #f87171;
    margin-bottom: 8px;
}

.text-muted {
    color: #94a3b8;
}

.alert {
    position: relative;
    padding: 12px 16px 12px 20px;
    border-radius: 12px;
    border: 1px solid transparent;
    margin-bottom: 16px;
    font-weight: 600;
    background: rgba(15, 23, 42, 0.6);
    color: #e2e8f0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.alert::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 10px;
    bottom: 10px;
    width: 4px;
    border-radius: 999px;
    background: var(--alert-accent, #38bdf8);
}

.alert-danger {
    --alert-accent: #f87171;
    border-color: rgba(248, 113, 113, 0.6);
    background: rgba(127, 29, 29, 0.35);
    color: #fecaca;
}

.alert-success {
    --alert-accent: #34d399;
    border-color: rgba(52, 211, 153, 0.6);
    background: rgba(5, 46, 22, 0.35);
    color: #bbf7d0;
}

.alert-warning {
    --alert-accent: #fbbf24;
    border-color: rgba(251, 191, 36, 0.6);
    background: rgba(120, 53, 15, 0.35);
    color: #fde68a;
}

/* Staff form layout */
.staff-form-shell .card-body {
    padding: 24px;
}

.staff-form-shell {
    margin-bottom: 10px;
}

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

.staff-form-main,
.staff-form-side {
    min-width: 0;
}

.staff-form-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.staff-form-actions {
    display: flex;
    justify-content: flex-start;
    padding-top: 4px;
}

.field-row {
    display: block;
}

.field-row.two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.field-row.three-col {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.flags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.staff-skill-divider {
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    margin: 12px 0;
}

.staff-skill-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.staff-skill-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    font-weight: 600;
    color: #e2e8f0;
}

.staff-skill-panel-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skill-level-row {
    display: grid;
    grid-template-columns: minmax(140px, 1fr) minmax(140px, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.6);
}

.skill-level-name {
    font-weight: 600;
    color: #e2e8f0;
}

.skill-level-range {
    width: 100%;
}

.skill-level-value {
    font-weight: 600;
    color: #e2e8f0;
    min-width: 18px;
    text-align: right;
}

.skill-level-remove {
    border: none;
    background: transparent;
    color: #f87171;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
}

.skill-level-remove:hover {
    color: #ef4444;
}

.staff-form-panel {
    overflow: hidden;
}

.staff-form .form-control,
.staff-form .form-select,
.staff-form textarea.form-control {
    max-width: 100%;
    box-sizing: border-box;
}

.staff-form .form-control,
.staff-form .form-select,
.staff-form textarea.form-control,
.staff-form .form-check-label,
.staff-form .form-label {
    font-size: 18px;
}

.staff-form .form-label {
    font-weight: 600;
}

.asset-section {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.asset-section-title {
    margin: 0 0 12px 0;
    font-size: 16px;
}

.asset-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.asset-repeater {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.asset-repeater-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.45);
    align-items: end;
}

.asset-repeater-row .btn {
    justify-self: start;
}

.asset-form .checkbox-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.catalog-setup .card-body {
    padding: 24px;
}

.catalog-setup {
    margin-top: 10px;
}

.catalog-setup .card-header h4 {
    font-size: 18px;
}

.catalog-setup .form-label {
    margin-bottom: 4px;
    font-size: 18px;
}

.catalog-stack {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.catalog-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.35);
}

.catalog-form form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.catalog-form .form-control {
    width: 70%;
}

.catalog-form button {
    align-self: flex-start;
    font-size: 18px;
    padding: 10px 16px;
}

.catalog-list {
    background: rgba(2, 6, 23, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 14px;
    padding: 14px;
    min-height: 120px;
}

.catalog-list-title {
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 10px;
}

.catalog-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip-picker__selected,
.chip-picker__list {
    background: rgba(2, 6, 23, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    padding: 12px;
    min-height: 72px;
    max-height: 140px;
    overflow-y: auto;
}

.chip-picker__list {
    margin-top: 10px;
}

.catalog-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: #e5e7eb;
}

.catalog-chip--selectable {
    cursor: pointer;
}

.catalog-chip--selectable.is-selected {
    opacity: 0.55;
}

.catalog-chip__delete {
    border: none;
    background: transparent;
    color: #f87171;
    font-size: 16px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.catalog-chip__delete:hover {
    color: #ef4444;
}

.catalog-empty {
    color: #94a3b8;
    font-size: 0.95rem;
}

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

    .catalog-form .form-control {
        width: 100%;
    }
}

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

@media (max-width: 900px) {
    .field-row.two-col,
    .field-row.three-col {
        grid-template-columns: 1fr;
    }
}

/* Directory tabs */
.directory-tabs {
    display: flex;
    gap: 10px;
    padding-top: 15px;
    margin-bottom: 16px;
}

.tab-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 600;
    background: rgba(15, 23, 42, 0.4);
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.tab-button:hover {
    color: #e5e7eb;
    border-color: rgba(148, 163, 184, 0.6);
    background: rgba(56, 189, 248, 0.12);
}

.tab-button.is-active {
    color: #e5e7eb;
    border-color: rgba(56, 189, 248, 0.7);
    background: rgba(56, 189, 248, 0.2);
    box-shadow: 0 8px 18px rgba(56, 189, 248, 0.18);
}
.directory-filters {
    margin-bottom: 18px;
}
.directory-filters .form-check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.directory-actions-cell {
    white-space: nowrap;
}

.directory-actions-cell .btn + .btn {
    margin-left: 20px;
}

.btn-view {
    border-color: rgba(148, 199, 255, 0.65);
    background: rgba(148, 199, 255, 0.22);
    color: #eaf6ff;
    border-radius: 999px;
    padding: 8px 16px;
    box-shadow: none;
}

.btn-view:hover {
    border-color: rgba(148, 199, 255, 0.85);
    background: rgba(148, 199, 255, 0.32);
    color: #ffffff;
}

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

.profile-item {
    min-width: 0;
}

.profile-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(188, 208, 235, 0.8);
    margin-bottom: 2px;
}

.profile-value {
    color: #f2f7ff;
    word-break: break-word;
}

@media (max-width: 900px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }
}

.directory-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.directory-card {
    margin-bottom: 0;
}

.directory-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 600;
}

.directory-tab.active {
    background: rgba(56, 189, 248, 0.18);
    border-color: rgba(56, 189, 248, 0.6);
    color: #e5e7eb;
}

/* Modern form styling */
.form-label {
    display: block;
    margin-bottom: 6px;
    color: #cbd5e1;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-control,
.form-select,
textarea.form-control {
    width: 100%;
    background: rgba(2, 6, 23, 0.85);
    color: #e5e7eb;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 10px;
    padding: 10px 12px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    font-size: 16px;
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
    outline: none;
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
    background: rgba(2, 6, 23, 0.95);
}

.form-select[multiple] {
    padding: 8px 10px;
    min-height: 160px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-check-input {
    width: 18px;
    height: 18px;
    accent-color: #38bdf8;
}

.form-check-label {
    color: #cbd5e1;
    font-size: 0.9rem;
}

.btn {
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 600;
    border: 1px solid transparent;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #38bdf8);
    color: #0f172a;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.35);
}

.btn-outline-light {
    background: rgba(15, 23, 42, 0.7);
    color: #e5e7eb;
    border-color: rgba(148, 163, 184, 0.4);
}

.btn-outline-light:hover {
    background: rgba(148, 163, 184, 0.2);
}

.card-header {
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    margin-bottom: 16px;
}

.card-body {
    padding: 0;
}

.card .card {
    background: rgba(2, 6, 23, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: none;
}

small.text-muted a {
    color: #38bdf8;
    text-decoration: none;
}

small.text-muted a:hover {
    text-decoration: underline;
}

.schedule-panel {
    background: rgba(2, 6, 23, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 16px;
    padding: 18px;
}

.schedule-slot-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.jobs-list {
    margin-top: 15px;
}

.job-edit > summary {
    list-style: none;
}

.job-edit > summary::-webkit-details-marker {
    display: none;
}

.job-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.job-edit {
    display: inline-block;
}

.jobs-cards-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.jobs-dashboard {
    display: grid;
    gap: 16px;
}

.job-card {
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 14px;
    padding: 16px;
    background: rgba(15, 23, 42, 0.45);
}

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

.job-title {
    font-weight: 600;
    font-size: 1.05rem;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
    color: rgba(226, 232, 240, 0.75);
    font-size: 0.9rem;
}

.job-requirements-summary {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.job-requirements-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.job-requirements-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    font-weight: 600;
}

.job-requirements-items {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
}

.job-requirements-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(30, 41, 59, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.2);
    font-size: 0.75rem;
    color: #e2e8f0;
    gap: 6px;
}

.job-requirements-chip__meta {
    color: rgba(148, 163, 184, 0.9);
    font-weight: 600;
}

.time-block-list {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
}

.time-block-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.2);
    font-size: 0.85rem;
}

.time-block-open {
    border: none;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
    padding: 0;
}

.time-block-open:hover {
    color: #e2e8f0;
}

.time-block-delete-form {
    display: inline-flex;
}

.time-block-delete {
    border: none;
    background: transparent;
    color: rgba(248, 113, 113, 0.9);
    font-weight: 600;
    padding: 0;
    line-height: 1;
    cursor: pointer;
}

.job-kebab {
    position: relative;
}

.job-kebab > summary {
    list-style: none;
}

.job-kebab > summary::-webkit-details-marker {
    display: none;
}

.job-kebab-menu {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 10px;
    padding: 8px;
    min-width: 180px;
    z-index: 10;
}

.job-kebab-menu form {
    margin: 0;
}

.catalog-form .btn,
.catalog-stack .btn {
    margin-top: 10px;
}

.job-form-actions {
    margin-top: 16px;
}

.job-requirements {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

.job-days {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(2, 6, 23, 0.45);
}

.job-days .form-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.job-requirement-section {
    padding: 14px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(2, 6, 23, 0.45);
}

.job-requirement-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.job-requirement-title {
    font-weight: 600;
    color: #e2e8f0;
}

.job-requirement-options {
    display: grid;
    gap: 10px;
}

.job-requirement-options.is-collapsed {
    display: none;
}

.job-requirement-check {
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.job-skill-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.6);
}

.job-skill-level {
    display: flex;
    align-items: center;
    gap: 10px;
}

.job-skill-level .form-label {
    margin: 0;
    min-width: 50px;
}

.job-skill-level .form-range {
    flex: 1;
}

.job-skill-value {
    min-width: 18px;
    text-align: right;
    font-weight: 600;
    color: #e2e8f0;
}

.timeblock-actions {
    margin-top: 14px;
}

.timeblock-actions .btn {
    display: inline-flex;
}

.schedule-slot-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.45);
}

.schedule-slot-row.form-check {
    justify-content: flex-start;
}

.is-hidden {
    display: none !important;
}

.schedule-slot-card {
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 14px;
    padding: 16px;
    background: rgba(15, 23, 42, 0.45);
}

.schedule-slot-card.is-selected {
    border-color: rgba(96, 165, 250, 0.65);
    box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.2);
}

.schedule-slot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.schedule-slot-header--link {
    color: inherit;
    text-decoration: none;
    padding: 2px;
    border-radius: 12px;
    transition: background-color 0.15s ease;
}

.schedule-slot-header--link:hover {
    text-decoration: none;
    background: rgba(30, 41, 59, 0.35);
}

.schedule-slot-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.schedule-template-blocks {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.schedule-template-block__actions {
    flex-wrap: wrap;
}

.btn-schedule-manual {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 31px;
    padding: 0.375rem 0.75rem;
    white-space: nowrap;
    color: #dcfce7;
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.92), rgba(5, 150, 105, 0.92));
    border: 1px solid rgba(34, 197, 94, 0.65);
    box-shadow: 0 10px 18px rgba(6, 95, 70, 0.18);
}

.btn-schedule-manual:hover,
.btn-schedule-manual:focus {
    color: #f0fdf4;
    background: linear-gradient(135deg, rgba(21, 128, 61, 1), rgba(4, 120, 87, 1));
    border-color: rgba(74, 222, 128, 0.7);
}

.schedule-focused-slot--expanded-below {
    margin-top: 8px;
}

.schedule-assignment-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.schedule-assignment-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.4);
}

.template-assignments {
    display: grid;
    gap: 16px;
}

.template-assignments__title {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    font-weight: 600;
    margin-bottom: 6px;
}

.template-assignments__picker,
.template-assignments__apply {
    margin-top: 10px;
}

.template-assignments__picker > summary,
.template-assignments__apply > summary {
    list-style: none;
}

.template-assignments__picker > summary::-webkit-details-marker,
.template-assignments__apply > summary::-webkit-details-marker {
    display: none;
}

.template-section {
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    padding: 12px;
    background: rgba(2, 6, 23, 0.45);
}

.template-section + .template-section {
    margin-top: 12px;
}

.template-section > summary {
    list-style: none;
    cursor: pointer;
}

.template-section > summary::-webkit-details-marker {
    display: none;
}

.template-section__body {
    margin-top: 12px;
}

.calendar-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.calendar-day-card {
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 16px;
    padding: 16px;
    background: rgba(15, 23, 42, 0.45);
}

.calendar-day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    margin-bottom: 12px;
}

.calendar-day-slots {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.calendar-slot-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 16px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.35);
}

.calendar-slot-time {
    font-weight: 600;
    color: #e2e8f0;
}

.calendar-month-label {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #e2e8f0;
    font-weight: 600;
}

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

.calendar-grid-header {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: #94a3b8;
    padding: 8px 4px;
}

.calendar-cell {
    min-height: 140px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.45);
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.calendar-cell.is-camp-season {
    background: linear-gradient(135deg, rgba(186, 230, 253, 0.22), rgba(226, 232, 240, 0.12));
    border-color: rgba(191, 219, 254, 0.5);
    box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.08);
}

.calendar-cell.is-muted {
    opacity: 0.45;
}

.calendar-cell-header {
    font-weight: 600;
    color: #e2e8f0;
}

.calendar-cell-slots {
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow: hidden;
}

.calendar-pill {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #e2e8f0;
    font-size: 0.75rem;
    position: relative;
}

.calendar-pill::before {
    content: "";
    position: absolute;
    left: -1px;
    top: -1px;
    bottom: -1px;
    width: 4px;
    border-radius: 10px 0 0 10px;
    background: var(--calendar-pill, #2563eb);
}

.calendar-pill small {
    color: #94a3b8;
}

.calendar-more {
    font-size: 0.75rem;
    color: #94a3b8;
    padding-left: 4px;
}

.season-date-picker {
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.45);
    padding: 16px;
}

.season-date-picker__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.season-date-picker__legend {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.75rem;
    color: #94a3b8;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.35);
    border: 1px solid rgba(148, 163, 184, 0.6);
}

.legend-dot.is-available {
    background: rgba(15, 23, 42, 0.6);
}

.legend-dot.is-booked {
    background: rgba(248, 113, 113, 0.6);
    border-color: rgba(248, 113, 113, 0.85);
}

.legend-dot.is-selected {
    background: rgba(59, 130, 246, 0.6);
    border-color: rgba(147, 197, 253, 0.8);
}

.season-date-picker__grid {
    display: grid;
    gap: 16px;
}

.season-date-picker__summary {
    margin: 8px 0 12px;
    font-size: 0.85rem;
    color: #e2e8f0;
}

.season-date-picker__actions {
    margin-bottom: 12px;
}

.season-month {
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.35);
    padding: 12px;
}

.season-month__title {
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 8px;
}

.season-month__weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    margin-bottom: 6px;
}

.season-month__grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
}

.season-day {
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.6);
    color: #e2e8f0;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.season-day:hover {
    border-color: rgba(148, 163, 184, 0.6);
    transform: translateY(-1px);
}

.season-day.is-empty {
    visibility: hidden;
}

.season-day.is-booked {
    background: rgba(248, 113, 113, 0.2);
    color: #fecaca;
    border-color: rgba(248, 113, 113, 0.6);
    border-style: solid;
    cursor: not-allowed;
}

.season-day.is-selected-range {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(147, 197, 253, 0.5);
}

.season-day.is-selected-start,
.season-day.is-selected-end {
    background: rgba(59, 130, 246, 0.45);
    border-color: rgba(147, 197, 253, 0.9);
    color: #f8fafc;
}

.season-date-picker__message {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #94a3b8;
}

.season-date-picker__message.is-error {
    color: #fca5a5;
}

.schedule-filter {
    background: rgba(15, 23, 42, 0.6);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.schedule-filter--dashboard {
    padding: 18px;
}

.schedule-command-center {
    display: grid;
    gap: 14px;
    margin-bottom: 18px;
}

.schedule-command-center__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.schedule-command-center__eyebrow {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #93c5fd;
    margin-bottom: 4px;
}

.schedule-command-center__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.schedule-command-center__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px;
}

.schedule-dashboard-card {
    display: grid;
    gap: 10px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.48));
}

.schedule-dashboard-card__label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #cbd5e1;
}

.schedule-dashboard-card__value {
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1;
    font-weight: 800;
    color: #f8fafc;
}

.schedule-dashboard-card__meta {
    color: #94a3b8;
    font-size: 0.9rem;
}

.schedule-dashboard-card--alert {
    border-color: rgba(251, 191, 36, 0.3);
    background: linear-gradient(180deg, rgba(120, 53, 15, 0.45), rgba(15, 23, 42, 0.55));
}

.schedule-dashboard-card--needs {
    border-color: rgba(248, 113, 113, 0.32);
    background: linear-gradient(180deg, rgba(127, 29, 29, 0.38), rgba(15, 23, 42, 0.55));
}

.schedule-dashboard-card--over {
    border-color: rgba(251, 191, 36, 0.32);
    background: linear-gradient(180deg, rgba(113, 63, 18, 0.38), rgba(15, 23, 42, 0.55));
}

.schedule-dashboard-card--covered {
    border-color: rgba(52, 211, 153, 0.3);
    background: linear-gradient(180deg, rgba(6, 78, 59, 0.35), rgba(15, 23, 42, 0.55));
}

.schedule-filter-actions {
    margin-left: auto;
}

.schedule-filter-dropdown {
    position: relative;
}

.schedule-filter-dropdown summary {
    list-style: none;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.6);
    color: #cbd5e1;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.schedule-filter-dropdown summary::-webkit-details-marker {
    display: none;
}

.schedule-filter-dropdown[open] summary {
    border-color: rgba(56, 189, 248, 0.6);
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.schedule-filter-dropdown summary::after {
    content: "▾";
    font-size: 0.75rem;
    color: #94a3b8;
}

.schedule-filter-dropdown--right {
    margin-left: auto;
}

.schedule-filter-dropdown summary::after {
    content: "\25BE";
}

.schedule-filter-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 220px;
    max-height: 70vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(148, 199, 255, 0.22);
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.35);
    z-index: 20;
    backdrop-filter: blur(8px);
}

.schedule-filter-dropdown--right .schedule-filter-menu {
    left: auto;
    right: 0;
}

.schedule-filter-dropdown--mega .schedule-filter-menu--mega {
    min-width: 520px;
    max-width: 720px;
    display: block;
    column-count: 2;
    column-gap: 24px;
}

.schedule-filter-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    break-inside: avoid;
    margin-bottom: 14px;
}

.schedule-filter-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #ffffff;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
    margin-bottom: 4px;
}

.schedule-filter-menu .text-muted {
    color: rgba(15, 23, 42, 0.7);
}

.schedule-filter-actions--inline {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    padding-top: 6px;
}

.schedule-filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e2e8f0;
    font-size: 0.85rem;
}

.schedule-filter-option input {
    accent-color: #38bdf8;
}

.schedule-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.schedule-card-header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.schedule-card-meta {
    font-size: 0.9rem;
}

.schedule-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 100%;
}

.schedule-employee-block {
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.45);
    padding: 12px;
}

.schedule-employee-block.is-slot-match {
    border-color: rgba(96, 165, 250, 0.75);
    box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.3);
}

.schedule-focused-slot {
    border: 1px solid rgba(96, 165, 250, 0.45);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 18px;
    background:
        linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(15, 23, 42, 0.75)),
        rgba(15, 23, 42, 0.65);
    box-shadow: 0 12px 24px rgba(2, 6, 23, 0.2);
}

.schedule-slot-chooser {
    margin-bottom: 18px;
}

.schedule-slot-chooser__header {
    margin-bottom: 10px;
}

.schedule-slot-browser__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.schedule-slot-browser__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.schedule-slot-browser__filter {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(15, 23, 42, 0.4);
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
}

.schedule-slot-browser__filter:hover {
    text-decoration: none;
    border-color: rgba(96, 165, 250, 0.45);
    color: #eff6ff;
}

.schedule-slot-browser__filter.is-active {
    border-color: rgba(96, 165, 250, 0.65);
    background: rgba(37, 99, 235, 0.22);
    color: #eff6ff;
}

.schedule-slot-browser__groups {
    display: grid;
    gap: 12px;
}

.schedule-job-group {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.32);
    overflow: hidden;
}

.schedule-job-group__summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    padding: 14px 16px;
}

.schedule-job-group__summary::-webkit-details-marker {
    display: none;
}

.schedule-job-group__title {
    font-weight: 700;
    color: #e5e7eb;
}

.schedule-job-group .schedule-slot-chooser__grid {
    padding: 0 16px 16px;
}

.schedule-slot-chooser__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.schedule-slot-chooser__card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.4);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.schedule-slot-chooser__card:hover {
    border-color: rgba(96, 165, 250, 0.55);
    transform: translateY(-1px);
    text-decoration: none;
}

.schedule-slot-chooser__card.is-selected {
    border-color: rgba(96, 165, 250, 0.8);
    box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.35);
}

.schedule-slot-chooser__time {
    font-size: 0.85rem;
    color: #93c5fd;
}

.schedule-slot-chooser__title {
    font-weight: 600;
    color: #e5e7eb;
}

.schedule-slot-chooser__title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.schedule-slot-chooser__status {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.schedule-slot-chooser__status.is-under {
    background: rgba(248, 113, 113, 0.16);
    border: 1px solid rgba(248, 113, 113, 0.3);
    color: #fecaca;
}

.schedule-slot-chooser__status.is-good {
    background: rgba(52, 211, 153, 0.16);
    border: 1px solid rgba(52, 211, 153, 0.28);
    color: #bbf7d0;
}

.schedule-slot-chooser__status.is-over {
    background: rgba(251, 191, 36, 0.16);
    border: 1px solid rgba(251, 191, 36, 0.28);
    color: #fde68a;
}

.schedule-slot-chooser__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.8rem;
    color: #94a3b8;
}

.schedule-focused-slot__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.schedule-focused-slot__eyebrow {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #93c5fd;
    margin-bottom: 4px;
}

.schedule-focused-slot__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.schedule-focused-slot__meta-separator {
    color: #64748b;
}

.schedule-focused-slot__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.schedule-focused-slot__chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(147, 197, 253, 0.2);
    color: #dbeafe;
    font-size: 0.8rem;
}

.schedule-focused-slot__section-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #93c5fd;
    margin-bottom: 6px;
}

.schedule-focused-slot__list {
    margin: 0;
    padding-left: 18px;
    color: #e5e7eb;
}

.schedule-focused-slot__assigned-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

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

.schedule-batch-form__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
}

.schedule-batch-form__row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: flex-start;
    min-height: 100%;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.3);
}

.schedule-batch-form__check {
    padding-top: 2px;
}

.schedule-batch-form__details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.schedule-batch-form__name {
    font-weight: 600;
    color: #e5e7eb;
}

.schedule-batch-form__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.8rem;
    color: #94a3b8;
}

.schedule-batch-form__actions {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.schedule-template-action {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.schedule-template-action .form-select {
    min-width: 210px;
    flex: 0 0 210px;
}

.schedule-focused-slot--template {
    scroll-margin-top: 96px;
}

.schedule-focused-slot__ineligible {
    margin-top: 8px;
}

.schedule-focused-slot__ineligible-list {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.schedule-ineligible-row {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(248, 113, 113, 0.2);
    background: rgba(127, 29, 29, 0.12);
}

.schedule-ineligible-row__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.schedule-ineligible-row__name {
    font-weight: 600;
    color: #fecaca;
}

.schedule-ineligible-row__reasons {
    margin: 0;
    padding-left: 18px;
    color: #fca5a5;
    font-size: 0.85rem;
}

.schedule-focused-slot__hint {
    margin-top: 10px;
}

.schedule-focused-slot__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    .schedule-command-center__header,
    .schedule-slot-browser__header,
    .schedule-job-group__summary {
        flex-direction: column;
        align-items: stretch;
    }
}

.schedule-focused-slot__legacy-meta.is-hidden {
    display: none;
}

.schedule-focus-empty {
    margin-bottom: 18px;
    padding: 16px;
    border-radius: 14px;
    border: 1px dashed rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.28);
}

.schedule-focus-empty__title {
    margin-bottom: 6px;
    font-weight: 700;
    color: #e5e7eb;
}

.schedule-employee-lookup {
    margin-top: 18px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.35);
    padding: 16px;
}

.schedule-employee-lookup__header {
    margin-bottom: 12px;
}

.schedule-employee-lookup__controls {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 12px;
    margin-bottom: 16px;
}

.schedule-employee-lookup__field {
    flex: 1 1 320px;
}

.schedule-employee-lookup__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.schedule-employee-lookup__summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.schedule-employee-lookup__name {
    font-weight: 700;
    color: #e5e7eb;
    margin-bottom: 4px;
}

.schedule-employee-lookup__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.85rem;
}

.schedule-employee-lookup__days {
    display: grid;
    gap: 10px;
}

.schedule-employee-day {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.28);
    overflow: hidden;
}

.schedule-employee-day__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    cursor: pointer;
    list-style: none;
    color: #e5e7eb;
    font-weight: 600;
}

.schedule-employee-day__summary::-webkit-details-marker {
    display: none;
}

.schedule-employee-day__list {
    display: grid;
    gap: 10px;
    padding: 0 14px 14px;
}

.schedule-employee-shift {
    display: grid;
    grid-template-columns: minmax(130px, 170px) 1fr;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.38);
}

.schedule-employee-shift.is-focused {
    border-color: rgba(96, 165, 250, 0.78);
    box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.35);
}

.schedule-employee-shift__time {
    border-left: 4px solid #2563eb;
    padding-left: 10px;
    font-weight: 600;
    color: #e5e7eb;
    align-self: start;
}

.schedule-employee-shift__details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.schedule-employee-shift__title {
    font-weight: 600;
    color: #e5e7eb;
}

.schedule-employee-shift__sub {
    font-size: 0.85rem;
}

.schedule-employee-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    padding-bottom: 8px;
    margin-bottom: 8px;
}

.schedule-employee-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.schedule-employee-name {
    font-weight: 600;
    color: #e5e7eb;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.schedule-employee-role {
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.schedule-employee-hours {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    min-width: 72px;
}

.schedule-hours-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
}

.schedule-hours-value {
    font-weight: 600;
    color: #e5e7eb;
}

.schedule-grid-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    background: rgba(15, 23, 42, 0.4);
    width: 100%;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
    border-radius: 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(30, 144, 255, 0.9) rgba(167, 199, 255, 0.25);
    position: relative;
    box-sizing: border-box;
}

.schedule-employee-timeline .schedule-grid-scroll {
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.35);
}

.schedule-time-header {
    position: relative;
    height: 36px;
    min-width: calc(var(--timeline-minutes) * 2px);
    background: repeating-linear-gradient(
        to right,
        rgba(148, 163, 184, 0.22),
        rgba(148, 163, 184, 0.22) 1px,
        transparent 1px,
        transparent 30px
    );
}

.schedule-hour-label {
    position: absolute;
    top: 8px;
    font-size: 0.75rem;
    color: #94a3b8;
    transform: translateX(-50%);
}

.schedule-timeline-track {
    position: relative;
    height: 64px;
    min-width: calc(var(--timeline-minutes) * 2px);
    background: repeating-linear-gradient(
        to right,
        rgba(148, 163, 184, 0.16),
        rgba(148, 163, 184, 0.16) 1px,
        transparent 1px,
        transparent 30px
    );
}

.schedule-empty-row {
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.35);
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.schedule-empty-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #94a3b8;
    text-align: center;
}

.schedule-empty-message strong {
    color: #e5e7eb;
    font-size: 1rem;
}

.schedule-shift {
    position: absolute;
    top: 8px;
    bottom: 8px;
    border-radius: 8px;
    padding: 6px 8px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    overflow: hidden;
    min-width: 40px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.35);
    text-decoration: none;
}

.schedule-shift.is-focused {
    outline: 3px solid rgba(255, 255, 255, 0.92);
    box-shadow:
        0 0 0 3px rgba(59, 130, 246, 0.45),
        0 8px 20px rgba(15, 23, 42, 0.45);
    z-index: 2;
}

.schedule-shift-title {
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.schedule-shift:hover {
    text-decoration: none;
    filter: brightness(1.04);
}

.schedule-shift-sub {
    font-size: 0.7rem;
    opacity: 0.85;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.schedule-shift-tag {
    display: inline-flex;
    margin-top: 4px;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.35);
    font-size: 0.65rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

@media (max-width: 900px) {
    .schedule-slot-chooser__title-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .schedule-employee-lookup__summary {
        flex-direction: column;
        align-items: flex-start;
    }

    .schedule-employee-shift {
        grid-template-columns: 1fr;
    }

    .schedule-employee-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .schedule-focused-slot__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .schedule-ineligible-row__header {
        flex-direction: column;
        align-items: flex-start;
    }
}

.schedule-grid-scroll::-webkit-scrollbar {
    height: 10px;
}

.schedule-grid-scroll::-webkit-scrollbar-track {
    background: rgba(167, 199, 255, 0.25);
    border-radius: 999px;
}

.schedule-grid-scroll::-webkit-scrollbar-thumb {
    background: rgba(30, 144, 255, 0.9);
    border-radius: 999px;
}

.schedule-grid-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 1);
}

/* Time block modal */
.tb-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(2, 6, 23, 0.65);
    z-index: 2000;
    padding: 20px;
    box-sizing: border-box;
}

.tb-modal.is-open {
    display: flex;
}

.tb-modal__panel {
    width: min(900px, 96vw);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 18px;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.tb-modal__header {
    position: sticky;
    top: 0;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(12px);
    padding: 16px 20px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    z-index: 2;
}

.tb-modal__title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.tb-modal__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    color: rgba(226, 232, 240, 0.75);
    font-size: 0.9rem;
    margin-top: 6px;
}

.tb-modal__coverage {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.6);
    min-width: 150px;
}

.tb-coverage-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.tb-coverage-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #f87171;
}

.tb-coverage-dot.is-yellow {
    background: #fbbf24;
}

.tb-coverage-dot.is-green {
    background: #34d399;
}

.tb-modal__body {
    padding: 18px 20px 22px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tb-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(2, 6, 23, 0.45);
}

.tb-section__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.tb-section__title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.tb-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tb-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.5);
}

.tb-list-item.is-disabled {
    opacity: 0.5;
}

.tb-item-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tb-item-meta small {
    color: rgba(148, 163, 184, 0.8);
}

.tb-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.tb-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}

.tb-divider {
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.tb-modal__close {
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 0;
    cursor: pointer;
    padding: 0;
    width: 1.5rem;
    height: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tb-modal__close::before {
    content: "\00D7";
    font-size: 1.3rem;
    line-height: 1;
}

.tb-modal__close:hover {
    color: #e2e8f0;
}

.tb-loading {
    color: #94a3b8;
}

.calendar-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
}

.calendar-filter-field {
    min-width: 200px;
    flex: 1 1 220px;
}

.calendar-filter-checks {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.staff-calendar-board .card-body {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.staff-calendar-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.staff-calendar-toolbar__nav,
.staff-calendar-toolbar__modes {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.staff-calendar-toolbar__modes .btn.is-active {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(96, 165, 250, 0.6);
    color: #dbeafe;
}

.staff-calendar-toolbar__label {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.46);
    color: #f8fafc;
    font-weight: 700;
    text-align: center;
    min-width: 220px;
}

.staff-calendar-toolbar__label small {
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 500;
}

.staff-calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.staff-calendar-day {
    min-height: 180px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.46);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    overflow: hidden;
}

.staff-calendar-day.is-today {
    border-color: rgba(96, 165, 250, 0.55);
    box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.18);
}

.staff-calendar-day.is-single {
    min-height: 260px;
}

.staff-calendar-day__header {
    width: 100%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 12px 10px;
    background: linear-gradient(180deg, rgba(51, 65, 85, 0.72), rgba(51, 65, 85, 0.44));
    color: #f8fafc;
    text-align: left;
}

.staff-calendar-day__header:hover {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.24), rgba(51, 65, 85, 0.48));
}

.staff-calendar-day__weekday {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #cbd5e1;
}

.staff-calendar-day__date {
    font-weight: 700;
    flex: 1 1 auto;
}

.staff-calendar-day__count {
    font-size: 0.76rem;
    color: #94a3b8;
    white-space: nowrap;
}

.staff-calendar-day__items {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
}

.staff-calendar-pill,
.staff-calendar-more {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.62);
    color: #e2e8f0;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.staff-calendar-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px 8px 14px;
}

.staff-calendar-pill::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #64748b;
}

.staff-calendar-pill.is-needs::before {
    background: #ef4444;
}

.staff-calendar-pill.is-over::before {
    background: #f59e0b;
}

.staff-calendar-pill.is-covered::before {
    background: #10b981;
}

.staff-calendar-pill:hover,
.staff-calendar-more:hover {
    border-color: rgba(96, 165, 250, 0.42);
    background: rgba(15, 23, 42, 0.76);
}

.staff-calendar-pill__main {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.staff-calendar-pill__title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.staff-calendar-pill__meta,
.staff-calendar-pill small,
.staff-calendar-pill__tag {
    font-size: 0.72rem;
    color: #94a3b8;
}

.staff-calendar-pill__tag {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.staff-calendar-more {
    padding: 7px 10px;
    color: #cbd5e1;
    font-size: 0.76rem;
}

.staff-calendar-empty {
    padding: 10px 6px;
    font-size: 0.8rem;
    color: #94a3b8;
}

.calendar-shell {
    padding: 8px;
}

.template-blocks {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.template-blocks__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.template-blocks__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.template-block-card {
    border: 1px solid #e5e7ef;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.calendar-shell .fc {
    min-height: 620px;
}

.calendar-shell .fc .fc-timegrid-event,
.calendar-shell .fc .fc-daygrid-event {
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(2, 6, 23, 0.16);
}

.calendar-shell .fc .fc-timegrid-event {
    border-width: 1px;
    overflow: hidden;
}

.calendar-shell .fc .fc-timegrid-event .fc-event-main,
.calendar-shell .fc .fc-daygrid-event .fc-event-main {
    padding: 0;
}

.calendar-shell .fc .calendar-event--needs {
    box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.28), 0 10px 18px rgba(2, 6, 23, 0.16);
}

.calendar-shell .fc .calendar-event--over {
    box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.26), 0 10px 18px rgba(2, 6, 23, 0.16);
}

.calendar-shell .fc .calendar-event--covered {
    box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.24), 0 10px 18px rgba(2, 6, 23, 0.16);
}

.calendar-shell .fc .fc-daygrid-day-frame {
    min-height: 120px;
}

.calendar-shell .fc .fc-daygrid-body {
    min-height: 520px;
}

.calendar-shell .fc .fc-timegrid-slot {
    height: 2.5em;
}

.calendar-day-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.calendar-job-card {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(15, 23, 42, 0.46);
}

.calendar-job-header {
    padding: 10px 12px;
    margin-bottom: 4px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.34);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.calendar-job-header__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.78rem;
    color: #94a3b8;
}

.calendar-slot-card {
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: rgba(15, 23, 42, 0.34);
}

.calendar-slot-card.is-needs {
    border-left: 4px solid #ef4444;
}

.calendar-slot-card.is-over {
    border-left: 4px solid #f59e0b;
}

.calendar-slot-card.is-covered {
    border-left: 4px solid #10b981;
}

.calendar-slot-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-weight: 600;
}

.calendar-slot-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.calendar-slot-badge.is-needs,
.calendar-event-status.is-needs {
    background: rgba(248, 113, 113, 0.16);
    border: 1px solid rgba(248, 113, 113, 0.3);
    color: #fecaca;
}

.calendar-slot-badge.is-over,
.calendar-event-status.is-over {
    background: rgba(251, 191, 36, 0.16);
    border: 1px solid rgba(251, 191, 36, 0.28);
    color: #fde68a;
}

.calendar-slot-badge.is-covered,
.calendar-event-status.is-covered {
    background: rgba(52, 211, 153, 0.16);
    border: 1px solid rgba(52, 211, 153, 0.28);
    color: #bbf7d0;
}

.calendar-slot-counts {
    color: #cbd5e1;
    font-size: 0.82rem;
}

.calendar-slot-staff {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.calendar-staff-chip {
    background: #f4f6fb;
    border-radius: 999px;
    padding: 4px 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.calendar-slot-actions {
    display: flex;
    gap: 8px;
}

.fc-event {
    cursor: pointer;
    pointer-events: auto;
}

.calendar-event-content {
    display: grid;
    grid-template-columns: 4px 1fr;
    gap: 8px;
    height: 100%;
    padding: 6px 8px;
    font-size: 0.72rem;
    line-height: 1.1;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.86));
}

.calendar-event-accent {
    width: 4px;
    border-radius: 999px;
    min-height: 100%;
}

.calendar-event-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.calendar-event-title {
    font-weight: 600;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calendar-event-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.calendar-event-status {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    padding: 2px 6px;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 700;
}
.calendar-event-staff,
.calendar-event-ratio {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #cbd5e1;
    opacity: 0.95;
}

.calendar-event-ratio {
    font-weight: 700;
    color: #f8fafc;
}

.calendar-shell .fc .fc-timegrid-event .calendar-event-staff {
    opacity: 0.82;
}

.calendar-shell .fc .fc-daygrid-event .calendar-event-content {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 5px 6px;
}

.calendar-shell .fc .fc-daygrid-event .calendar-event-accent {
    display: none;
}

.calendar-shell .fc .fc-daygrid-event .calendar-event-meta {
    justify-content: flex-start;
}

.calendar-shell .fc .fc-daygrid-event .calendar-event-staff {
    display: none;
}

/* Settings helpers */
.table-lite {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}
.table-lite th,
.table-lite td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    text-align: left;
}
.table-lite th {
    color: #cbd5f5;
    font-weight: 600;
}
.form-row {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}
.form-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px 16px;
}
.checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.details-panel summary {
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 10px;
}
.meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px 24px;
    margin: 14px 0;
}
.meta-label {
    font-size: 0.8rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.meta-value {
    font-size: 1rem;
    color: #e2e8f0;
}
.status-pill {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.2);
    color: #e2e8f0;
    font-size: 0.8rem;
}
