:root {
    --fcms-bg: #0e131c;
    --fcms-bg-rgb: 14, 19, 28;
    --fcms-bg-2: #131b28;
    --fcms-bg-2-rgb: 19, 27, 40;
    --fcms-surface: #1b2534;
    --fcms-surface-rgb: 27, 37, 52;
    --fcms-surface-2: #222e40;
    --fcms-surface-2-rgb: 34, 46, 64;
    --fcms-border: #2e3c54;
    --fcms-border-rgb: 46, 60, 84;
    --fcms-text: #e8eef8;
    --fcms-text-rgb: 232, 238, 248;
    --fcms-muted: #9aa9c2;
    --fcms-muted-rgb: 154, 169, 194;
    --fcms-primary: #22b8cf;
    --fcms-primary-strong: #149eb4;
    --fcms-primary-rgb: 34, 184, 207;
    --fcms-primary-strong-rgb: 20, 158, 180;
    --fcms-success: #10b981;
    --fcms-success-rgb: 16, 185, 129;
    --fcms-danger: #ef4444;
    --fcms-danger-rgb: 239, 68, 68;
    --fcms-warning: #f59e0b;
    --fcms-warning-rgb: 245, 158, 11;
    --fcms-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
}

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html,
body {
    min-height: 100%;
    margin: 0;
    padding: 0;
}

body.fcms-body {
    --fcms-topbar-h: 34px;
    --fcms-nav-offset: 74px;
    --fcms-announcement-h: 0px;
    font-family: "Sora", "Segoe UI", "Noto Sans", sans-serif;
    color: var(--fcms-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: calc(var(--fcms-topbar-h) + var(--fcms-nav-offset) + var(--fcms-announcement-h));
    background:
        radial-gradient(1100px 700px at 90% -10%, rgba(var(--fcms-primary-rgb), 0.16), transparent 60%),
        radial-gradient(900px 700px at -10% -15%, rgba(var(--fcms-primary-strong-rgb), 0.13), transparent 62%),
        linear-gradient(180deg, var(--fcms-bg-2) 0%, var(--fcms-bg) 65%);
}

main.container {
    position: relative;
    z-index: 2;
    flex: 1 0 auto;
}

main.container::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(circle at center, black 45%, transparent 88%);
    z-index: -1;
}

/* Navbar */
.fcms-navbar {
    position: fixed;
    top: var(--fcms-topbar-h);
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1030;
    margin: 0 !important;
    background: rgba(var(--fcms-bg-rgb), 0.86) !important;
    border-bottom: 1px solid var(--fcms-border);
    backdrop-filter: blur(9px);
}

.fcms-navbar .container {
    column-gap: 1.15rem;
}

.fcms-navbar .navbar-collapse {
    min-width: 0;
    gap: 1rem;
}

.fcms-navbar .navbar-nav {
    min-width: 0;
    gap: 0.35rem;
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.02em;
}

.navbar .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    color: color-mix(in srgb, var(--fcms-text) 90%, var(--fcms-muted)) !important;
    border-radius: 0.5rem;
    padding-left: 0.65rem !important;
    padding-right: 0.65rem !important;
    line-height: 1.18;
    white-space: nowrap;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.navbar .nav-link i {
    flex: 0 0 auto;
    margin-right: 0 !important;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    background: rgba(255, 255, 255, 0.08);
    color: color-mix(in srgb, var(--fcms-text) 75%, white) !important;
}

.collapse:not(.show),
.dropdown-menu:not(.show) {
    display: none;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1050;
    min-width: 10rem;
    margin: 0.25rem 0 0;
    padding: 0.35rem;
    list-style: none;
    border-radius: 0.5rem;
}

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

.dropdown-item {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 0.45rem;
    padding: 0.45rem 0.65rem;
    clear: both;
    color: var(--fcms-text);
    text-align: inherit;
    text-decoration: none;
    white-space: nowrap;
    background: transparent;
    border: 0;
    border-radius: 0.38rem;
}

/* Panels */
.fcms-card,
.card,
.modal-content,
.dropdown-menu {
    color: var(--fcms-text);
    border: 1px solid var(--fcms-border);
    background: linear-gradient(180deg, rgba(var(--fcms-surface-2-rgb), 0.98) 0%, rgba(var(--fcms-surface-rgb), 0.98) 100%);
    box-shadow: var(--fcms-shadow);
}

.card .card-header {
    border-bottom: 1px solid var(--fcms-border);
    background: rgba(255, 255, 255, 0.02);
}

.text-secondary,
.text-muted,
small,
.small {
    color: var(--fcms-muted) !important;
}

/* Dashboard */
.fcms-stat-card {
    position: relative;
    border: 1px solid var(--fcms-border);
    border-radius: 0.45rem;
    background: rgba(var(--fcms-surface-rgb), 0.78);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    padding: 0.85rem 0.95rem;
    min-height: 96px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.fcms-stat-card .label {
    font-size: 0.8rem;
    letter-spacing: 0;
    text-transform: none;
    color: var(--fcms-muted);
    margin-bottom: 0.4rem;
}

.fcms-stat-card .value {
    font-size: clamp(1.6rem, 4vw, 2.05rem);
    font-weight: 800;
    line-height: 1;
    color: color-mix(in srgb, var(--fcms-text) 96%, white);
    white-space: nowrap;
}

.fcms-dashboard-hours-card {
    gap: 0.25rem;
}

.fcms-dashboard-hours-line {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.fcms-dashboard-hours-line > div {
    min-width: 0;
}

.fcms-dashboard-hours-value {
    display: block;
    color: color-mix(in srgb, var(--fcms-text) 96%, white);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.15;
}
/* Typography */
.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6 {
    color: color-mix(in srgb, var(--fcms-text) 96%, white);
    letter-spacing: 0.01em;
}

/* Forms */
.form-label {
    color: color-mix(in srgb, var(--fcms-text) 92%, var(--fcms-muted));
    font-size: 0.92rem;
}

.form-control,
.form-select {
    color: var(--fcms-text);
    background: var(--fcms-surface);
    border-color: var(--fcms-border);
}

.form-control::placeholder {
    color: #7f90ab;
}

.form-control:focus,
.form-select:focus {
    color: var(--fcms-text);
    background: var(--fcms-surface);
    border-color: var(--fcms-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--fcms-primary-rgb), 0.22);
}

.fcms-altcha-box {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.65rem;
    min-height: 54px;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--fcms-border);
    border-radius: 0.55rem;
    background: rgba(var(--fcms-surface-rgb), 0.76);
}

.fcms-altcha-icon {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.45rem;
    color: #c8f7ff;
    background: rgba(var(--fcms-primary-rgb), 0.14);
    border: 1px solid rgba(var(--fcms-primary-rgb), 0.28);
}

.fcms-altcha-copy {
    min-width: 0;
}

.fcms-altcha-title {
    font-size: 0.84rem;
    font-weight: 700;
    color: color-mix(in srgb, var(--fcms-text) 96%, white);
    line-height: 1.15;
}

.fcms-image-preview-modal .modal-body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    background: rgba(var(--fcms-bg-rgb), 0.72);
}

.fcms-image-preview-img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: min(78vh, 900px);
    object-fit: contain;
    border-radius: 0.45rem;
}

.fcms-inventory-thumb-cell {
    width: 4.4rem;
}

.fcms-inventory-thumb-link,
.fcms-inventory-thumb-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border: 1px solid rgba(var(--fcms-muted-rgb), 0.28);
    border-radius: 0.45rem;
    background: rgba(var(--fcms-bg-2-rgb), 0.54);
    overflow: hidden;
}

.fcms-inventory-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fcms-inventory-thumb-placeholder {
    color: #64748b;
}

.fcms-lost-found-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 285px), 1fr));
    gap: 0.9rem;
}

.fcms-lost-found-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 0.9rem;
    border: 1px solid var(--fcms-border);
    border-radius: 0.6rem;
    background: rgba(var(--fcms-bg-2-rgb), 0.9);
    box-shadow: none;
}

.fcms-lost-found-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.55rem;
}

.fcms-lost-found-title {
    margin: 0;
    color: color-mix(in srgb, var(--fcms-text) 75%, white);
    font-size: 0.98rem;
    font-weight: 720;
    line-height: 1.2;
}

.fcms-lost-found-kind {
    margin-top: 0.16rem;
    color: var(--fcms-muted);
    font-size: 0.75rem;
}

.fcms-lost-found-status {
    flex: 0 0 auto;
    padding: 0.2rem 0.45rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 0.4rem;
    font-size: 0.72rem;
    line-height: 1;
    white-space: nowrap;
}

.fcms-lost-found-status.is-found {
    color: #fde68a;
    border-color: rgba(var(--fcms-warning-rgb), 0.38);
    background: rgba(var(--fcms-warning-rgb), 0.14);
}

.fcms-lost-found-status.is-lost {
    color: #fca5a5;
    border-color: rgba(var(--fcms-danger-rgb), 0.38);
    background: rgba(var(--fcms-danger-rgb), 0.14);
}

.fcms-lost-found-status.is-returned {
    color: #5eead4;
    border-color: rgba(var(--fcms-success-rgb), 0.42);
    background: rgba(var(--fcms-success-rgb), 0.14);
}

.fcms-lost-found-description {
    display: -webkit-box;
    margin: 0.55rem 0 0.6rem;
    overflow: hidden;
    color: #c8d3e5;
    font-size: 0.84rem;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.fcms-lost-found-photo-link {
    display: block;
    margin-bottom: 0.62rem;
}

.fcms-lost-found-photo,
.fcms-lost-found-photo-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 175px;
    border-radius: 0.4rem;
}

.fcms-lost-found-photo {
    display: block;
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, 0.11);
    background: var(--fcms-bg);
}

.fcms-lost-found-photo-placeholder {
    display: grid;
    place-items: center;
    margin-bottom: 0.62rem;
    border: 1px dashed rgba(var(--fcms-muted-rgb), 0.35);
    color: var(--fcms-muted);
    background: rgba(255, 255, 255, 0.03);
}

.fcms-lost-found-meta {
    display: grid;
    gap: 0.28rem;
    color: var(--fcms-muted);
    font-size: 0.78rem;
    line-height: 1.25;
}

.fcms-lost-found-meta > div {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    min-width: 0;
}

.fcms-lost-found-meta i {
    width: 0.9rem;
    margin-top: 0.08rem;
    color: #8fb3d9;
    text-align: center;
}

.fcms-lost-found-meta span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.fcms-lost-found-return-line span {
    color: #6ee7b7;
}

.fcms-lost-found-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: auto;
    padding-top: 0.7rem;
}

.fcms-lost-found-actions .btn {
    padding: 0.24rem 0.48rem;
    font-size: 0.74rem;
}

.fcms-lost-found-wizard,
.fcms-incident-wizard,
.fcms-item-policy-wizard,
.fcms-inventory-item-wizard {
    display: grid;
    gap: 1rem;
}

.fcms-lost-found-wizard-steps,
.fcms-form-wizard-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.45rem;
    padding: 0.25rem;
    border: 1px solid rgba(var(--fcms-muted-rgb), 0.18);
    border-radius: 0.55rem;
    background: rgba(var(--fcms-bg-2-rgb), 0.42);
}

.fcms-lost-found-wizard-step,
.fcms-form-wizard-step {
    min-width: 0;
    padding: 0.52rem 0.6rem;
    border: 1px solid transparent;
    border-radius: 0.42rem;
    color: var(--fcms-muted);
    background: transparent;
    font-size: 0.78rem;
    font-weight: 650;
    text-align: left;
    line-height: 1.15;
}

.fcms-lost-found-wizard-step.is-active,
.fcms-form-wizard-step.is-active {
    color: #eaf7ff;
    border-color: rgba(var(--fcms-primary-rgb), 0.38);
    background: rgba(var(--fcms-primary-rgb), 0.12);
}

.fcms-lost-found-wizard-title,
.fcms-form-wizard-title {
    margin: 0 0 0.15rem;
    color: color-mix(in srgb, var(--fcms-text) 96%, white);
    font-size: 1rem;
    font-weight: 720;
}

.fcms-lost-found-wizard.is-enhanced .fcms-lost-found-wizard-panel[hidden],
.fcms-lost-found-wizard.is-enhanced [hidden],
.fcms-incident-wizard.is-enhanced .fcms-form-wizard-panel[hidden],
.fcms-incident-wizard.is-enhanced [hidden],
.fcms-item-policy-wizard.is-enhanced .fcms-form-wizard-panel[hidden],
.fcms-item-policy-wizard.is-enhanced [hidden],
.fcms-inventory-item-wizard.is-enhanced .fcms-form-wizard-panel[hidden],
.fcms-inventory-item-wizard.is-enhanced [hidden] {
    display: none !important;
}

.fcms-lost-found-wizard-actions,
.fcms-form-wizard-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
    padding-top: 0.25rem;
}

@media (max-width: 575.98px) {
    .fcms-lost-found-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .fcms-lost-found-card {
        padding: 0.85rem;
        border-radius: 0.55rem;
    }

    .fcms-lost-found-photo,
    .fcms-lost-found-photo-placeholder {
        aspect-ratio: 16 / 10;
        max-height: 180px;
    }

    .fcms-lost-found-wizard-steps,
    .fcms-form-wizard-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fcms-lost-found-wizard-actions,
    .fcms-form-wizard-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .fcms-lost-found-wizard-actions .btn,
    .fcms-form-wizard-actions .btn {
        width: 100%;
    }
}

.fcms-altcha-status {
    margin-top: 0.15rem;
    font-size: 0.74rem;
    color: var(--fcms-muted);
    line-height: 1.2;
}

.fcms-login-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.fcms-login-convention-logo {
    display: block;
    max-width: min(220px, 82%);
    max-height: 96px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.fcms-altcha-refresh {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.fcms-altcha-box[data-state="verifying"] .fcms-altcha-icon {
    color: color-mix(in srgb, var(--fcms-warning) 35%, var(--fcms-text));
    background: rgba(var(--fcms-warning-rgb), 0.12);
    border-color: rgba(var(--fcms-warning-rgb), 0.35);
}

.fcms-altcha-box[data-state="verified"] .fcms-altcha-icon {
    color: #c9ffe4;
    background: rgba(var(--fcms-success-rgb), 0.12);
    border-color: rgba(var(--fcms-success-rgb), 0.35);
}

.fcms-altcha-box[data-state="failed"] .fcms-altcha-icon {
    color: #ffd4d7;
    background: rgba(var(--fcms-danger-rgb), 0.12);
    border-color: rgba(var(--fcms-danger-rgb), 0.35);
}

/* Buttons */
.btn {
    font-weight: 600;
    letter-spacing: 0.01em;
}

.btn-primary {
    --bs-btn-bg: var(--fcms-primary);
    --bs-btn-border-color: var(--fcms-primary);
    --bs-btn-hover-bg: var(--fcms-primary-strong);
    --bs-btn-hover-border-color: var(--fcms-primary-strong);
    --bs-btn-active-bg: var(--fcms-primary-strong);
    --bs-btn-active-border-color: var(--fcms-primary-strong);
    --bs-btn-color: #05232a;
    --bs-btn-hover-color: #021419;
}

.btn-success {
    --bs-btn-bg: var(--fcms-success);
    --bs-btn-border-color: var(--fcms-success);
    --bs-btn-hover-bg: #0ca271;
    --bs-btn-hover-border-color: #0ca271;
}

.btn-danger {
    --bs-btn-bg: var(--fcms-danger);
    --bs-btn-border-color: var(--fcms-danger);
}

.btn-outline-secondary,
.btn-outline-dark,
.btn-outline-danger,
.btn-outline-light,
.btn-outline-info {
    --bs-btn-color: color-mix(in srgb, var(--fcms-text) 88%, var(--fcms-muted));
    --bs-btn-border-color: var(--fcms-border);
    --bs-btn-hover-bg: rgba(255, 255, 255, 0.08);
    --bs-btn-hover-border-color: #7d90af;
    --bs-btn-hover-color: color-mix(in srgb, var(--fcms-text) 75%, white);
}

/* Alerts & badges */
.alert {
    border: 1px solid var(--fcms-border);
}

.alert-info {
    color: #d1f4fa;
    background: rgba(var(--fcms-primary-rgb), 0.15);
}

.alert-danger {
    color: #ffd4d7;
    background: rgba(var(--fcms-danger-rgb), 0.16);
}

.alert-success {
    color: #b8f6da;
    background: rgba(var(--fcms-success-rgb), 0.16);
}

.badge {
    border-radius: 999px;
    padding: 0.35em 0.65em;
}

/* Table */
.table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--fcms-text);
    --bs-table-border-color: var(--fcms-border);
    --bs-table-striped-bg: rgba(255, 255, 255, 0.02);
    --bs-table-striped-color: var(--fcms-text);
    --bs-table-hover-bg: rgba(var(--fcms-primary-rgb), 0.08);
    --bs-table-hover-color: color-mix(in srgb, var(--fcms-text) 75%, white);
}


.table.table-dark {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(255, 255, 255, 0.02);
    --bs-table-hover-bg: rgba(var(--fcms-primary-rgb), 0.08);
    color: var(--fcms-text);
}
.table-responsive {
    font-size: 0.95rem;
    border-radius: 0.75rem;
}

/* Timetable */
.fcms-timetable-scroll {
    overflow-x: auto;
    width: 100%;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
}

.fcms-planning-mobile {
    display: none;
}

.fcms-planning-desktop {
    display: block;
}

.fcms-timetable {
    width: max-content;
    min-width: 100%;
    display: flex;
    gap: 0.35rem;
}

.fcms-time-axis,
.fcms-day-column {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--fcms-border);
    border-radius: 0.5rem;
    background: var(--fcms-surface);
    overflow: hidden;
}

.fcms-time-axis {
    width: 78px;
    flex: 0 0 78px;
}

.fcms-day-column {
    min-width: var(--fcms-day-col-width, 0);
    flex: 1 1 var(--fcms-day-col-width, 0);
}

.fcms-day-column.is-today {
    border-color: var(--fcms-primary);
    box-shadow: inset 0 0 0 1px rgba(var(--fcms-primary-rgb), 0.35);
}

.shifts-timetable-first.fcms-planning-day .fcms-day-column {
    min-width: 0 !important;
    flex: 1 1 auto;
}

@media (min-width: 992px) {
    .shifts-timetable-first.fcms-planning-all .fcms-timetable-scroll {
        overflow-x: hidden;
    }

    .shifts-timetable-first.fcms-planning-all .fcms-timetable {
        width: 100%;
        min-width: 0;
    }

    .shifts-timetable-first.fcms-planning-all .fcms-day-column {
        min-width: 0 !important;
        flex: 1 1 0 !important;
    }
}

.fcms-day-header {
    padding: 0.5rem;
    border-bottom: 1px solid var(--fcms-border);
    background: var(--fcms-surface-2);
    text-align: center;
    min-height: 62px;
}

.fcms-day-body {
    position: relative;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.01),
        rgba(255, 255, 255, 0.01) 21px,
        rgba(255, 255, 255, 0.015) 21px,
        rgba(255, 255, 255, 0.015) 42px
    );
}

.fcms-day-poles-head {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    border-bottom: 1px solid var(--fcms-border);
    background: rgba(var(--fcms-surface-rgb), 0.78);
}

.fcms-day-pole-head {
    min-width: 0;
    padding: 0.18rem 0.24rem;
    border-right: 1px solid rgba(var(--fcms-muted-rgb), 0.18);
    font-size: 0.62rem;
    color: var(--fcms-muted);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fcms-day-pole-head:last-child {
    border-right: 0;
}

.fcms-pole-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(var(--fcms-muted-rgb), 0.18);
    z-index: 1;
    pointer-events: none;
}

.fcms-hour-line {
    position: absolute;
    left: 0;
    right: 0;
    border-top: 1px solid rgba(var(--fcms-muted-rgb), 0.22);
}

.fcms-hour-label {
    position: absolute;
    left: 0;
    right: 0;
    height: 1rem;
    transform: translateY(-50%);
    font-size: 0.75rem;
    line-height: 1rem;
    color: var(--fcms-muted);
    text-align: center;
    background: linear-gradient(to right, rgba(var(--fcms-surface-rgb), 0), rgba(var(--fcms-surface-rgb), 0.9), rgba(var(--fcms-surface-rgb), 0));
}

.fcms-hour-label.is-first {
    transform: none;
}

.fcms-hour-label.is-last {
    transform: translateY(-100%);
}

.fcms-shift-block {
    appearance: none;
    text-align: left;
    cursor: pointer;
    position: absolute;
    left: 0.35rem;
    right: 0.35rem;
    border-radius: 0.45rem;
    background: linear-gradient(180deg, color-mix(in srgb, var(--fcms-primary) 72%, white) 0%, var(--fcms-primary) 100%);
    color: var(--fcms-bg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.28rem 0.38rem;
    overflow: hidden;
    z-index: 2;
}

.fcms-shift-block.presence-present {
    background: linear-gradient(180deg, color-mix(in srgb, var(--fcms-success) 72%, white) 0%, var(--fcms-success) 100%);
}

.fcms-shift-block.presence-absent {
    background: linear-gradient(180deg, color-mix(in srgb, var(--fcms-danger) 72%, white) 0%, var(--fcms-danger) 100%);
    color: color-mix(in srgb, var(--fcms-bg) 82%, black);
}

.fcms-shift-block.presence-mixed {
    background: linear-gradient(180deg, color-mix(in srgb, var(--fcms-warning) 72%, white) 0%, var(--fcms-warning) 100%);
    color: color-mix(in srgb, var(--fcms-bg) 82%, black);
}

.fcms-shift-title {
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.1;
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fcms-shift-compact-pole-icon {
    display: none;
    position: relative;
    z-index: 1;
    align-items: center;
    justify-content: center;
    float: right;
    margin-left: 0.18rem;
    width: 1rem;
    height: 1rem;
}

.fcms-shift-compact-pole-icon .fcms-pole-icon {
    font-size: 0.82rem;
}

.fcms-shift-compact-pole-icon .fcms-pole-icon-img {
    width: 15px;
    height: 15px;
}

body.fcms-planning-edit-mode .fcms-shift-block[data-can-manage="1"] {
    cursor: move;
}

.fcms-shift-drag-ghost {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.fcms-shift-edited {
    outline: 2px dashed rgba(255, 255, 255, 0.9);
    outline-offset: -2px;
}

.fcms-shift-copied-preview {
    box-shadow: inset 0 0 0 2px rgba(250, 204, 21, 0.95), 0 6px 16px rgba(0, 0, 0, 0.32);
}

.fcms-shift-resize-handle {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 8px;
    display: none;
    cursor: ns-resize;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0.65));
}

body.fcms-planning-edit-mode .fcms-shift-block[data-can-manage="1"] .fcms-shift-resize-handle {
    display: block;
}

.fcms-shift-delete-handle {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    background: rgba(190, 24, 49, 0.92);
    color: color-mix(in srgb, var(--fcms-text) 75%, white);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    z-index: 20;
    pointer-events: auto;
}

body.fcms-planning-edit-mode .fcms-shift-block[data-can-manage="1"] .fcms-shift-delete-handle {
    display: inline-flex;
}

.fcms-shift-delete-handle:hover {
    background: rgba(220, 38, 38, 0.98);
}

.fcms-shift-marked-delete {
    opacity: 0.45 !important;
    filter: grayscale(0.35);
    outline: 2px solid rgba(248, 113, 113, 0.95);
}

.fcms-shift-block.is-resizing {
    outline: 2px solid rgba(255, 255, 255, 0.95);
}

.fcms-edit-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    display: none;
    z-index: 12;
}

.fcms-edit-snap-line {
    position: absolute;
    left: 0;
    right: 0;
    border-top: 2px dashed var(--fcms-warning);
}

.fcms-edit-time-badge {
    position: absolute;
    left: 6px;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(var(--fcms-warning-rgb), 0.95);
    color: var(--fcms-bg);
}

.fcms-shift-self-icon {
    margin-left: 0.28rem;
    font-size: 0.72em;
    opacity: 0.92;
}

.fcms-shift-hover-tooltip .tooltip-inner {
    max-width: 340px;
    text-align: left;
    white-space: pre-line;
}

.fcms-shift-meta {
    font-size: 0.68rem;
    line-height: 1.1;
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 0.08rem;
}

.fcms-shift-block.is-layout-narrow {
    padding-left: 0.28rem;
    padding-right: 0.28rem;
}

.fcms-shift-block.is-layout-narrow .fcms-shift-title,
.fcms-shift-block.is-layout-narrow .fcms-shift-meta {
    font-size: 0.58rem;
    line-height: 1.02;
}

.fcms-shift-block.is-layout-narrow .fcms-shift-self-icon {
    display: none;
}

.fcms-shift-block.is-layout-narrow .fcms-shift-compact-pole-icon,
.fcms-shift-block.is-layout-short .fcms-shift-compact-pole-icon,
.fcms-shift-block.is-layout-tiny .fcms-shift-compact-pole-icon {
    display: inline-flex;
}

.fcms-shift-block.is-layout-narrow .fcms-shift-title .fcms-pole-label,
.fcms-shift-block.is-layout-short .fcms-shift-title .fcms-pole-label,
.fcms-shift-block.is-layout-tiny .fcms-shift-title .fcms-pole-label {
    display: none;
}

.fcms-shift-block.is-layout-narrow .fcms-shift-meta.is-location,
.fcms-shift-block.is-layout-narrow .fcms-shift-meta.is-slots,
.fcms-shift-block.is-layout-micro .fcms-shift-meta.is-staff,
.fcms-shift-block.is-layout-micro .fcms-shift-meta.is-presence {
    display: none;
}

.fcms-shift-block.is-layout-tight .fcms-shift-meta.is-location,
.fcms-shift-block.is-layout-tight .fcms-shift-meta.is-slots {
    display: none;
}

.fcms-shift-block.is-layout-short {
    padding-top: 0.18rem;
    padding-bottom: 0.18rem;
}

.fcms-shift-block.is-layout-short .fcms-shift-title {
    font-size: 0.62rem;
}

.fcms-shift-block.is-layout-short .fcms-shift-meta {
    margin-top: 0;
}

.fcms-shift-block.is-layout-short .fcms-shift-meta.is-staff,
.fcms-shift-block.is-layout-short .fcms-shift-meta.is-presence,
.fcms-shift-block.is-layout-short .fcms-shift-meta.is-location,
.fcms-shift-block.is-layout-short .fcms-shift-meta.is-slots {
    display: none;
}

.fcms-shift-block.is-layout-tiny .fcms-shift-meta {
    display: none;
}

.fcms-shift-block.is-layout-tiny .fcms-shift-title {
    font-size: 0.56rem;
    line-height: 1;
}

.fcms-shift-block.is-layout-tiny {
    padding: 0.12rem 0.2rem;
}

.shifts-timetable-first.fcms-planning-dense .fcms-shift-block {
    border-radius: 0.35rem;
    padding: 0.2rem 0.26rem;
}

.shifts-timetable-first.fcms-planning-dense .fcms-shift-title {
    font-size: 0.66rem;
    line-height: 1.05;
}

.shifts-timetable-first.fcms-planning-dense .fcms-shift-meta {
    font-size: 0.56rem;
    line-height: 1.02;
}

.shifts-timetable-first.fcms-planning-dense .fcms-shift-meta.is-location,
.shifts-timetable-first.fcms-planning-dense .fcms-shift-meta.is-slots {
    display: none;
}

.fcms-now-line {
    position: absolute;
    left: 0;
    right: 0;
    border-top: 2px solid var(--fcms-danger);
    z-index: 4;
}

.fcms-now-badge {
    position: absolute;
    right: 0.35rem;
    z-index: 5;
    font-size: 0.65rem;
    font-weight: 700;
    color: color-mix(in srgb, var(--fcms-text) 75%, white);
    background: var(--fcms-danger);
    border-radius: 999px;
    padding: 0.05rem 0.35rem;
}

.fcms-now-badge-axis {
    right: auto;
    left: 0.2rem;
}

.fcms-cascade-view {
    display: grid;
    gap: 0.75rem;
}

.fcms-cascade-day {
    border: 1px solid var(--fcms-border);
    border-radius: 0.65rem;
    background: var(--fcms-surface);
    padding: 0.75rem;
    max-width: 100%;
    overflow: hidden;
}

.fcms-cascade-day.is-today {
    border-color: rgba(var(--fcms-primary-rgb), 0.75);
    box-shadow: inset 0 0 0 1px rgba(var(--fcms-primary-rgb), 0.28);
}

.fcms-cascade-day-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.fcms-cascade-now-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--fcms-danger);
    z-index: 5;
}

.fcms-cascade-grid {
    display: grid;
    gap: 0.3rem;
}

.fcms-cascade-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
}

.fcms-cascade-hours-head {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 0.45rem;
    align-items: center;
}

.fcms-cascade-hours-track {
    position: relative;
    height: 1.4rem;
    border-bottom: 1px solid rgba(var(--fcms-muted-rgb), 0.4);
}

.fcms-cascade-hour-tick {
    position: absolute;
    top: 0;
    bottom: -1px;
    width: 1px;
    background: rgba(var(--fcms-muted-rgb), 0.28);
}

.fcms-cascade-hour-tick span {
    position: absolute;
    top: 0;
    left: 0.24rem;
    font-size: 0.7rem;
    color: #b7c3d7;
}

.fcms-cascade-rows {
    display: grid;
    gap: 0.3rem;
}

.fcms-cascade-pole-row {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 0.45rem;
    align-items: stretch;
}

.fcms-cascade-pole-label {
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 0.35rem 0.4rem;
    border: 1px solid rgba(var(--fcms-muted-rgb), 0.18);
    border-radius: 0.45rem;
    background: rgba(var(--fcms-surface-rgb), 0.85);
    font-size: 0.78rem;
    font-weight: 700;
}

.fcms-cascade-timeline {
    position: relative;
    border: 1px solid rgba(var(--fcms-muted-rgb), 0.18);
    border-radius: 0.45rem;
    background: rgba(var(--fcms-surface-rgb), 0.85);
    overflow: hidden;
}

.fcms-cascade-gridline {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(var(--fcms-muted-rgb), 0.2);
}

.fcms-cascade-chip {
    position: absolute;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 0.38rem;
    color: #08131f;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.1;
    text-align: left;
    padding: 0.2rem 0.32rem;
    overflow: hidden;
    z-index: 3;
}

.fcms-cascade-chip-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.fcms-cascade-now-caption {
    font-size: 0.72rem;
    font-weight: 700;
    color: #ff8b8b;
}

@media (max-width: 768px) {
    .fcms-cascade-grid {
        min-width: 860px;
    }

    .fcms-cascade-hours-head,
    .fcms-cascade-pole-row {
        grid-template-columns: 110px 1fr;
        gap: 0.35rem;
    }

    .fcms-cascade-pole-label {
        font-size: 0.7rem;
        padding: 0.3rem 0.3rem;
    }

    .fcms-cascade-chip {
        font-size: 0.62rem;
        padding: 0.18rem 0.24rem;
    }
}

.fcms-mobile-timebar {
    position: relative;
    height: 1.5rem;
    border: 1px solid rgba(var(--fcms-muted-rgb), 0.14);
    border-radius: 0.4rem;
    background: rgba(var(--fcms-surface-rgb), 0.55);
    margin-bottom: 0.45rem;
    overflow: hidden;
}

.fcms-mobile-timebar-tick {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 0;
    background: transparent;
}

.fcms-mobile-timebar-tick span {
    position: absolute;
    top: 0.2rem;
    left: 0;
    transform: translateX(-50%);
    font-size: 0.58rem;
    color: #95a7bf;
    white-space: nowrap;
}

.fcms-mobile-timebar-live {
    position: absolute;
    top: 0.16rem;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    z-index: 3;
}

.fcms-mobile-timebar-live-dot {
    width: 0.44rem;
    height: 0.44rem;
    border-radius: 999px;
    background: var(--fcms-danger);
    box-shadow: 0 0 0 2px rgba(var(--fcms-danger-rgb), 0.25);
}

.fcms-mobile-timebar-live-label {
    font-size: 0.52rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #ffd6da;
    background: rgba(255, 77, 87, 0.2);
    border: 1px solid rgba(255, 77, 87, 0.45);
    border-radius: 999px;
    padding: 0.02rem 0.22rem;
}

/* Presence */
.fcms-presence-badge {
    display: inline-block;
    border-radius: 999px;
    padding: 0.15rem 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    border: 1px solid transparent;
}

.fcms-presence-badge.presence-pending {
    background: rgba(var(--fcms-muted-rgb), 0.25);
    border-color: rgba(var(--fcms-muted-rgb), 0.4);
}

.fcms-presence-badge.presence-present {
    background: rgba(var(--fcms-success-rgb), 0.24);
    border-color: rgba(var(--fcms-success-rgb), 0.45);
    color: #86efac;
}

.fcms-presence-badge.presence-absent {
    background: rgba(var(--fcms-danger-rgb), 0.2);
    border-color: rgba(var(--fcms-danger-rgb), 0.45);
    color: #fca5a5;
}

.fcms-presence-badge.presence-mixed {
    background: rgba(var(--fcms-warning-rgb), 0.22);
    border-color: rgba(var(--fcms-warning-rgb), 0.45);
    color: #fcd34d;
}

/* Range picker */
.fcms-range-picker {
    background: rgba(var(--fcms-surface-rgb), 0.55);
    border-color: var(--fcms-border) !important;
}

.fcms-picker-days {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.fcms-picker-wrap {
    display: flex;
    gap: 0.5rem;
}

.fcms-picker-axis {
    width: 70px;
    min-width: 70px;
    position: relative;
    border: 1px solid var(--fcms-border);
    border-radius: 0.5rem;
    background: var(--fcms-surface);
}

.fcms-picker-col {
    flex: 1;
    min-width: 0;
}

.fcms-picker-body {
    position: relative;
    border: 1px solid var(--fcms-border);
    border-radius: 0.5rem;
    overflow: hidden;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.01),
        rgba(255, 255, 255, 0.01) 21px,
        rgba(255, 255, 255, 0.018) 21px,
        rgba(255, 255, 255, 0.018) 42px
    );
    touch-action: none;
    cursor: crosshair;
}

.fcms-picker-line {
    position: absolute;
    left: 0;
    right: 0;
    border-top: 1px solid rgba(var(--fcms-muted-rgb), 0.2);
}

.fcms-picker-hour {
    position: absolute;
    left: 0;
    right: 0;
    height: 1rem;
    transform: translateY(-50%);
    font-size: 0.75rem;
    line-height: 1rem;
    color: var(--fcms-muted);
    text-align: center;
}

.fcms-picker-axis .fcms-picker-hour:first-child {
    transform: none;
}

.fcms-picker-axis .fcms-picker-hour:last-child {
    transform: translateY(-100%);
}

.fcms-picker-selection {
    position: absolute;
    left: 0.4rem;
    right: 0.4rem;
    border-radius: 0.45rem;
    background: rgba(var(--fcms-primary-rgb), 0.2);
    border: 1px solid rgba(var(--fcms-primary-rgb), 0.55);
}

.fcms-picker-selection-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #d9f8fd;
    padding: 0.2rem 0.35rem;
}

/* Dropdown-style details panels */
.fcms-drop {
    border: 1px solid var(--fcms-border);
    border-radius: 0.75rem;
    background: linear-gradient(180deg, rgba(var(--fcms-surface-2-rgb), 0.98) 0%, rgba(var(--fcms-surface-rgb), 0.98) 100%);
}

.fcms-drop-summary {
    cursor: pointer;
    list-style: none;
    padding: 0.85rem 1rem;
    font-weight: 700;
    color: color-mix(in srgb, var(--fcms-text) 96%, white);
    border-bottom: 1px solid transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fcms-drop-summary::-webkit-details-marker {
    display: none;
}

.fcms-drop-summary::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.85rem;
    color: #8fb3d9;
    transition: transform 0.18s ease, color 0.18s ease;
}

.fcms-drop[open] .fcms-drop-summary {
    border-bottom-color: var(--fcms-border);
}

.fcms-drop[open] .fcms-drop-summary::after {
    transform: rotate(180deg);
    color: #d8e9ff;
}

.modal {
    z-index: 2000 !important;
}

.modal-backdrop {
    z-index: 1990 !important;
}

.modal.show .modal-dialog {
    pointer-events: auto;
}

.fcms-settings-nav {
    gap: 0.25rem;
    padding: 0.25rem;
    border: 1px solid rgba(var(--fcms-muted-rgb), 0.18);
    border-radius: 0.65rem;
    background: rgba(var(--fcms-bg-2-rgb), 0.42);
}

.fcms-settings-nav .nav-link {
    border: 1px solid transparent;
    color: color-mix(in srgb, var(--fcms-text) 82%, var(--fcms-muted));
    padding: 0.38rem 0.72rem;
    border-radius: 0.48rem;
    white-space: nowrap;
}

.fcms-settings-nav .nav-link.active {
    border-color: rgba(var(--fcms-muted-rgb), 0.22);
    background: rgba(var(--fcms-muted-rgb), 0.12);
    color: color-mix(in srgb, var(--fcms-text) 98%, white);
}

.fcms-settings-tabs .tab-pane {
    min-height: 18rem;
}

.fcms-shift-modal-header {
    align-items: flex-start;
    gap: 0.75rem;
}

.fcms-shift-modal-title {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
    line-height: 1.35;
}

.fcms-shift-modal-actions {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-left: auto;
}

.fcms-shift-modal-info {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

.fcms-shift-modal-info > div,
.fcms-shift-modal-notes {
    background: rgba(var(--fcms-bg-2-rgb), 0.7);
    border: 1px solid rgba(var(--fcms-muted-rgb), 0.18);
    border-radius: 8px;
    padding: 0.65rem 0.75rem;
}

.fcms-shift-modal-info span {
    display: block;
    color: var(--fcms-muted);
    font-size: 0.78rem;
    margin-bottom: 0.15rem;
}

.fcms-shift-modal-info strong {
    display: block;
    color: color-mix(in srgb, var(--fcms-text) 98%, white);
    font-size: 0.92rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}

@media (max-width: 575.98px) {
    .fcms-settings-nav {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .fcms-settings-nav::-webkit-scrollbar {
        display: none;
    }

    .fcms-settings-nav .nav-link {
        width: auto;
        min-height: 2.35rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .fcms-shift-modal-header {
        flex-wrap: wrap;
    }

    .fcms-shift-modal-actions {
        width: 100%;
    }

    .fcms-shift-modal-info {
        grid-template-columns: 1fr;
    }
}

.fcms-incident-row td .badge.incident-status-open {
    background: rgba(var(--fcms-primary-rgb), 0.24);
    color: color-mix(in srgb, var(--fcms-primary) 34%, var(--fcms-text));
}

.fcms-incident-row td .badge.incident-status-resolved {
    background: rgba(var(--fcms-success-rgb), 0.24);
    color: #86efac;
}

.fcms-incident-row td .badge.incident-priority-1 {
    background: rgba(var(--fcms-danger-rgb), 0.24);
    color: #fca5a5;
}

.fcms-incident-row td .badge.incident-priority-2 {
    background: rgba(var(--fcms-warning-rgb), 0.24);
    color: #fcd34d;
}

.fcms-incident-row td .badge.incident-priority-3 {
    background: rgba(196, 181, 253, 0.24);
    color: #ddd6fe;
}

tr.fcms-incident-row.incident-status-open.incident-priority-1 {
    box-shadow: inset 4px 0 0 #ef4444;
}

tr.fcms-incident-row.incident-status-open.incident-priority-2 {
    box-shadow: inset 4px 0 0 #f59e0b;
}

tr.fcms-incident-row.incident-status-open.incident-priority-3 {
    box-shadow: inset 4px 0 0 #c4b5fd;
}

tr.fcms-incident-row.incident-status-resolved {
    box-shadow: inset 4px 0 0 #10b981;
}


/* Footer */
footer {
    flex-shrink: 0;
    margin-top: auto;
    background: rgba(var(--fcms-bg-rgb), 0.92) !important;
    border-top: 1px solid var(--fcms-border) !important;
}

footer a {
    color: #9aeaf5;
}

.fcms-footer-top,
.fcms-footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 1rem;
}

.fcms-footer-top {
    justify-content: space-between;
}

.fcms-footer-links {
    margin-top: 0.45rem;
    padding-top: 0.45rem;
    border-top: 1px solid rgba(var(--fcms-muted-rgb), 0.22);
    justify-content: flex-start;
}

@media (max-width: 991.98px) {
    .fcms-footer-top,
    .fcms-footer-links {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 0.42rem;
        width: 100%;
    }

    .fcms-footer-links {
        margin-top: 0.6rem;
        padding-top: 0.6rem;
    }

    .fcms-footer-links > * {
        width: 100%;
    }
}

.navbar .navbar-text {
    color: #e6edf7 !important;
}
/* Mobile */
@media (max-width: 991.98px) {
    body.fcms-body {
        --fcms-topbar-h: 30px;
        --fcms-nav-offset: 74px;  
        --fcms-announcement-h: 0px;
    }
}


@media (max-width: 991.98px) {
    .navbar .navbar-collapse {
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        border-top: 1px solid var(--fcms-border);
    }
}

@media (max-width: 576px) {
    .btn,
    .form-control,
    .form-select {
        min-height: 44px;
    }

    .fcms-planning-desktop {
        display: none;
    }

    .fcms-planning-mobile {
        display: block;
    }

    .fcms-mobile-day {
        border: 1px solid var(--fcms-border);
        border-radius: 0.65rem;
        background: var(--fcms-surface);
        padding: 0.7rem;
        margin-bottom: 0.75rem;
    }

    .fcms-mobile-day.is-today {
        border-color: rgba(var(--fcms-primary-rgb), 0.75);
        box-shadow: inset 0 0 0 1px rgba(var(--fcms-primary-rgb), 0.3);
    }

    .fcms-mobile-day-head {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        gap: 0.5rem;
        margin-bottom: 0.55rem;
        padding-bottom: 0.45rem;
        border-bottom: 1px solid rgba(var(--fcms-muted-rgb), 0.2);
    }

    .fcms-mobile-shifts {
        display: grid;
        gap: 0.5rem;
    }

    .fcms-mobile-shift {
        appearance: none;
        border: 1px solid rgba(var(--fcms-muted-rgb), 0.22);
        border-left: 4px solid var(--mobile-shift-accent, #0EA5E9);
        border-radius: 0.6rem;
        background: var(--fcms-bg-2);
        color: inherit;
        text-align: left;
        padding: 0.62rem 0.64rem;
        width: 100%;
    }

    .fcms-mobile-shift.presence-present {
        border-color: rgba(var(--fcms-success-rgb), 0.45);
    }

    .fcms-mobile-shift.presence-absent {
        border-color: rgba(var(--fcms-danger-rgb), 0.45);
    }

    .fcms-mobile-shift.presence-mixed {
        border-color: rgba(var(--fcms-warning-rgb), 0.5);
    }

    .fcms-mobile-shift-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 0.28rem;
    }

    .fcms-mobile-shift-time {
        font-size: 0.8rem;
        font-weight: 700;
        color: #c7f6ff;
    }

.fcms-mobile-shift-staff {
    font-size: 0.68rem;
    color: var(--fcms-muted);
    white-space: nowrap;
}

.fcms-mobile-live-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.02rem 0.32rem;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #ffd6da;
    background: rgba(255, 77, 87, 0.2);
    border: 1px solid rgba(255, 77, 87, 0.45);
}

    .fcms-mobile-shift-title {
        font-size: 0.8rem;
        font-weight: 700;
        line-height: 1.2;
        margin-bottom: 0.15rem;
    }

    .fcms-mobile-shift-location {
        font-size: 0.72rem;
        color: var(--fcms-muted);
        line-height: 1.2;
    }

    .fcms-shift-title {
        font-size: 0.66rem;
    }

    .fcms-shift-meta {
        font-size: 0.58rem;
    }

    .fcms-shift-meta.is-location,
    .fcms-shift-meta.is-slots {
        display: none;
    }

    main.container {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }

    .table-responsive {
        font-size: 0.9rem;
    }
}

@media (min-width: 577px) and (max-width: 991.98px) {
    .fcms-planning-desktop {
        display: none;
    }

    .fcms-planning-mobile {
        display: block;
    }

    .fcms-mobile-day {
        border: 1px solid var(--fcms-border);
        border-radius: 0.7rem;
        background: var(--fcms-surface);
        padding: 0.8rem;
        margin-bottom: 0.85rem;
    }

    .fcms-mobile-day.is-today {
        border-color: rgba(var(--fcms-primary-rgb), 0.75);
        box-shadow: inset 0 0 0 1px rgba(var(--fcms-primary-rgb), 0.3);
    }

    .fcms-mobile-day-head {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        gap: 0.75rem;
        margin-bottom: 0.6rem;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid rgba(var(--fcms-muted-rgb), 0.2);
    }

    .fcms-mobile-shifts {
        display: grid;
        gap: 0.55rem;
    }

    .fcms-mobile-shift {
        appearance: none;
        border: 1px solid rgba(var(--fcms-muted-rgb), 0.22);
        border-left: 4px solid var(--mobile-shift-accent, #0EA5E9);
        border-radius: 0.65rem;
        background: var(--fcms-bg-2);
        color: inherit;
        text-align: left;
        padding: 0.66rem 0.72rem;
        width: 100%;
    }

    .fcms-mobile-shift.presence-present {
        border-color: rgba(var(--fcms-success-rgb), 0.45);
    }

    .fcms-mobile-shift.presence-absent {
        border-color: rgba(var(--fcms-danger-rgb), 0.45);
    }

    .fcms-mobile-shift.presence-mixed {
        border-color: rgba(var(--fcms-warning-rgb), 0.5);
    }

    .fcms-mobile-shift-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0.75rem;
        margin-bottom: 0.28rem;
    }

    .fcms-mobile-shift-time {
        font-size: 0.84rem;
        font-weight: 700;
        color: #c7f6ff;
    }

    .fcms-mobile-shift-staff {
        font-size: 0.72rem;
        color: var(--fcms-muted);
        white-space: nowrap;
    }

    .fcms-mobile-shift-title {
        font-size: 0.83rem;
        font-weight: 700;
        line-height: 1.2;
        margin-bottom: 0.15rem;
    }

    .fcms-mobile-shift-location {
        font-size: 0.74rem;
        color: var(--fcms-muted);
        line-height: 1.2;
    }
}

.fcms-planning-mobile .fcms-mobile-shift {
    position: relative;
    overflow: hidden;
    border-left-width: 1px !important;
    border-left-color: rgba(var(--fcms-muted-rgb), 0.22) !important;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--mobile-shift-accent, #0EA5E9) 14%, transparent) 0%, transparent 42%),
        var(--fcms-bg-2) !important;
}

.fcms-planning-mobile .fcms-mobile-shift.is-self-open {
    background:
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.055) 0 2px, transparent 2px 9px),
        linear-gradient(135deg, color-mix(in srgb, var(--mobile-shift-accent, #0EA5E9) 14%, transparent) 0%, transparent 42%),
        var(--fcms-bg-2) !important;
}

.fcms-planning-mobile .fcms-mobile-shift.needs-staff {
    background:
        repeating-linear-gradient(135deg, rgba(250, 204, 21, 0.09) 0 2px, transparent 2px 9px),
        linear-gradient(135deg, color-mix(in srgb, var(--mobile-shift-accent, #0EA5E9) 14%, transparent) 0%, transparent 42%),
        var(--fcms-bg-2) !important;
}

.fcms-planning-mobile .fcms-mobile-shift::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 2.15rem;
    height: 2.15rem;
    background: var(--mobile-shift-accent, #0EA5E9);
    clip-path: polygon(100% 0, 100% 100%, 0 0);
    opacity: 0.9;
    pointer-events: none;
}

.fcms-planning-mobile .fcms-mobile-shift::after {
    content: "";
    position: absolute;
    top: 0.42rem;
    right: 0.42rem;
    width: 0.34rem;
    height: 0.34rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 0 0 1px rgba(7, 11, 18, 0.38);
    pointer-events: none;
}

.fcms-planning-mobile .fcms-mobile-shift-top,
.fcms-planning-mobile .fcms-mobile-shift-title,
.fcms-planning-mobile .fcms-mobile-shift-location {
    position: relative;
    z-index: 1;
}

.fcms-planning-mobile .fcms-mobile-shift-top > .d-flex {
    position: relative;
    z-index: 2;
}

.fcms-shift-block::before,
.fcms-cascade-chip::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    z-index: 0;
}

.fcms-shift-block.is-self-open::before,
.fcms-cascade-chip.is-self-open::before {
    opacity: 0.16;
    background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0 2px, transparent 2px 8px);
}

.fcms-shift-block.needs-staff::before,
.fcms-cascade-chip.needs-staff::before {
    opacity: 0.24;
    background-image: repeating-linear-gradient(135deg, rgba(250, 204, 21, 0.95) 0 2px, transparent 2px 8px);
}

.fcms-shift-block.is-mine,
.fcms-cascade-chip.is-mine,
.fcms-mobile-shift.is-mine {
    border-color: rgba(255, 255, 255, 0.95);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.96), 0 0 0 2px rgba(var(--fcms-primary-rgb), 0.62), 0 3px 10px rgba(0, 0, 0, 0.22);
}

.fcms-shift-block .fcms-shift-title,
.fcms-shift-block .fcms-shift-meta,
.fcms-cascade-chip-title {
    position: relative;
    z-index: 1;
}

.fcms-planning-mobile .fcms-mobile-shift-staff {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.15rem;
    padding: 0.08rem 0.42rem;
    border: 1px solid rgba(var(--fcms-muted-rgb), 0.28);
    border-radius: 999px;
    background: rgba(9, 14, 22, 0.82);
    color: #dbeafe;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(5px);
}















.live-status-pill {
    display: inline-block;
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid transparent;
}

.live-status-available {
    background: rgba(var(--fcms-success-rgb), 0.2);
    border-color: rgba(var(--fcms-success-rgb), 0.45);
    color: #86efac;
}

.live-status-on-call {
    background: rgba(var(--fcms-primary-rgb), 0.2);
    border-color: rgba(var(--fcms-primary-rgb), 0.45);
    color: color-mix(in srgb, var(--fcms-primary) 36%, var(--fcms-text));
}

.live-status-in-shift {
    background: rgba(var(--fcms-primary-strong-rgb), 0.2);
    border-color: rgba(var(--fcms-primary-strong-rgb), 0.45);
    color: color-mix(in srgb, var(--fcms-primary-strong) 32%, var(--fcms-text));
}

.live-status-task {
    background: rgba(var(--fcms-warning-rgb), 0.2);
    border-color: rgba(var(--fcms-warning-rgb), 0.45);
    color: #fcd34d;
}

.live-status-off-shift {
    background: rgba(var(--fcms-primary-rgb), 0.2);
    border-color: rgba(var(--fcms-primary-rgb), 0.45);
    color: #9ff4ff;
}

.live-status-busy {
    background: rgba(var(--fcms-danger-rgb), 0.2);
    border-color: rgba(var(--fcms-danger-rgb), 0.45);
    color: #fca5a5;
}
.fcms-live-status-toolbar {
    align-items: end;
}

.fcms-live-status-toolbar .form-label {
    font-size: 0.8rem;
    color: var(--fcms-muted);
}

.fcms-live-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

.fcms-live-col {
    border: 1px solid var(--fcms-border);
    border-radius: 0.6rem;
    background: linear-gradient(180deg, rgba(24, 33, 47, 0.94) 0%, rgba(19, 27, 38, 0.95) 100%);
    overflow: hidden;
    min-height: 180px;
}

.fcms-live-col-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
    padding: 0.4rem 0.5rem;
    border-bottom: 1px solid rgba(var(--fcms-muted-rgb), 0.22);
}

.fcms-live-col-count {
    font-size: 0.72rem;
    color: var(--fcms-muted);
    font-weight: 700;
}

.fcms-live-col-body {
    padding: 0.32rem;
    display: grid;
    gap: 0.26rem;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    max-height: 62vh;
    overflow: auto;
}

.fcms-live-card {
    border: 1px solid rgba(var(--fcms-muted-rgb), 0.24);
    border-radius: 0.38rem;
    background: rgba(13, 20, 31, 0.78);
    padding: 0.24rem 0.3rem;
}

.fcms-live-card.is-draggable {
    cursor: grab;
}

.fcms-live-card.is-draggable.is-dragging {
    opacity: 0.55;
    cursor: grabbing;
}

.fcms-live-col.is-drop-target {
    outline: 2px dashed rgba(var(--fcms-primary-rgb), 0.8);
    outline-offset: 3px;
}

.fcms-live-main {
    display: flex;
    gap: 0.42rem;
    align-items: baseline;
    min-width: 0;
}

.fcms-live-id {
    font-size: 0.72rem;
    color: #b5c5db;
    font-weight: 700;
    white-space: nowrap;
}

.fcms-live-id-link {
    text-decoration: none;
}

.fcms-live-id-link:hover .fcms-live-id,
.fcms-live-id-link:focus .fcms-live-id {
    color: color-mix(in srgb, var(--fcms-text) 75%, white);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.fcms-live-name {
    font-size: 0.8rem;
    color: #eff6ff;
    font-weight: 700;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fcms-live-meta {
    margin-top: 0.16rem;
    display: flex;
    align-items: center;
    gap: 0.22rem;
    flex-wrap: wrap;
}

.fcms-live-poles {
    display: inline-flex;
    align-items: center;
    gap: 0.22rem;
}

.fcms-live-pole-icon {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(var(--fcms-muted-rgb), 0.34);
    border-radius: 0.32rem;
    background: rgba(255, 255, 255, 0.04);
    color: #d9e4f6;
    cursor: pointer;
}

.fcms-live-pole-icon .fcms-pole-icon-img {
    width: 11px;
    height: 11px;
}

.fcms-live-pole-fallback {
    font-size: 0.62rem;
    font-weight: 800;
}

@media (max-width: 1399.98px) {
    .fcms-live-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .fcms-live-columns {
        grid-template-columns: 1fr;
    }

    .fcms-live-col-body {
        max-height: none;
        grid-template-columns: repeat(auto-fill, minmax(138px, 1fr));
    }
}

.fcms-live-clock {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid var(--fcms-border);
    border-radius: 999px;
    padding: 0.24rem 0.62rem;
    background: linear-gradient(180deg, rgba(20, 30, 46, 0.9) 0%, rgba(14, 20, 30, 0.92) 100%);
    color: #d7e6fb;
    font-size: 0.76rem;
    line-height: 1;
    white-space: nowrap;
}

.fcms-live-clock i {
    font-size: 0.78rem;
    color: #9dd6ff;
}

.fcms-live-clock-date {
    opacity: 0.82;
}

.fcms-live-clock-time {
    font-weight: 700;
    color: #f5fbff;
    font-variant-numeric: tabular-nums;
}

.fcms-navbar .dropdown-menu {
    min-width: 14rem;
    border-color: var(--fcms-border);
    background: linear-gradient(180deg, rgba(var(--fcms-surface-2-rgb), 0.98) 0%, rgba(var(--fcms-surface-rgb), 0.98) 100%);
}

.fcms-navbar .dropdown-item {
    color: color-mix(in srgb, var(--fcms-text) 88%, var(--fcms-muted));
}

.fcms-navbar .dropdown-item:hover,
.fcms-navbar .dropdown-item:focus {
    color: color-mix(in srgb, var(--fcms-text) 75%, white);
    background: rgba(255, 255, 255, 0.08);
}

.fcms-navbar .dropdown-item.active,
.fcms-navbar .dropdown-item:active {
    color: #062028;
    background: var(--fcms-primary);
}

@media (max-width: 1399.98px) {
    .fcms-navbar .navbar-collapse > .d-flex {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 0.35rem;
        margin-top: 0.6rem;
    }
}
.fcms-lang-toggle {
    min-width: 5.75rem;
}

.fcms-lang-menu {
    min-width: 10.5rem;
}

.fcms-lang-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.fcms-lang-flag {
    font-size: 0.95rem;
    line-height: 1;
}

.fcms-lang-flag-img {
    width: 16px;
    height: 12px;
    object-fit: cover;
    border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.fcms-public-lang-actions {
    margin-left: auto;
    flex: 0 0 auto;
}

.fcms-public-lang-actions .fcms-lang-toggle {
    min-width: 0;
}
.fcms-self-signup-box {
    border: 1px solid rgba(var(--fcms-primary-rgb), 0.45);
    border-radius: 0.5rem;
    background: rgba(var(--fcms-primary-rgb), 0.14);
    color: #d8f7fb;
}




.fcms-planning-inline-controls {
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.fcms-planning-inline-left,
.fcms-planning-inline-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.fcms-planning-view-dropdown .btn {
    min-width: 9rem;
}

.fcms-planning-view-dropdown .dropdown-menu {
    background: linear-gradient(180deg, rgba(var(--fcms-surface-2-rgb), 0.98) 0%, rgba(var(--fcms-surface-rgb), 0.98) 100%);
    border-color: var(--fcms-border);
    width: 100%;
    min-width: 15rem;
    max-width: min(92vw, 24rem);
    margin-top: 0.35rem;
    inset: auto auto auto 0 !important;
    top: 100% !important;
    transform: none !important;
}

.fcms-planning-view-dropdown .dropdown-header {
    color: #9fb4d2;
    white-space: normal;
}

.fcms-planning-view-dropdown .dropdown-item {
    color: color-mix(in srgb, var(--fcms-text) 88%, var(--fcms-muted));
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.25;
}

.fcms-planning-view-dropdown .dropdown-item:hover,
.fcms-planning-view-dropdown .dropdown-item:focus {
    color: color-mix(in srgb, var(--fcms-text) 75%, white);
    background: rgba(255, 255, 255, 0.08);
}

.fcms-planning-view-dropdown .dropdown-item.active,
.fcms-planning-view-dropdown .dropdown-item:active {
    color: color-mix(in srgb, var(--fcms-text) 75%, white);
    background: rgba(255, 255, 255, 0.12);
}

.fcms-planning-view-dropdown .dropdown-divider {
    border-top-color: var(--fcms-border);
}

.fcms-planning-inline-left {
    margin-right: auto;
}

.fcms-planning-legend {
    display: flex;
    align-items: center;
    gap: 0.45rem 0.85rem;
    flex-wrap: wrap;
    color: var(--fcms-muted);
    font-size: 0.82rem;
}

.fcms-planning-legend-title {
    color: color-mix(in srgb, var(--fcms-text) 82%, var(--fcms-muted));
    font-weight: 600;
}

.fcms-planning-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.fcms-planning-legend-swatch {
    width: 1.35rem;
    height: 0.85rem;
    border-radius: 4px;
    border: 1px solid rgba(var(--fcms-muted-rgb), 0.35);
    background: rgba(var(--fcms-bg-2-rgb), 0.9);
}

.fcms-planning-legend-swatch.needs-staff {
    background:
        repeating-linear-gradient(135deg, rgba(250, 204, 21, 0.45) 0 2px, transparent 2px 7px),
        rgba(var(--fcms-bg-2-rgb), 0.9);
}

.fcms-planning-legend-swatch.self-open {
    background:
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0 2px, transparent 2px 7px),
        rgba(var(--fcms-bg-2-rgb), 0.9);
}

.fcms-planning-legend-swatch.is-mine {
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.88), 0 0 0 1px rgba(var(--fcms-primary-rgb), 0.55);
}

@media (max-width: 576px) {
    .fcms-planning-inline-controls {
        align-items: stretch;
        gap: 0.55rem;
    }

    .fcms-planning-inline-left,
    .fcms-planning-inline-right {
        width: 100%;
    }

    .fcms-planning-view-dropdown,
    .fcms-planning-view-dropdown .btn {
        width: 100%;
    }

    .fcms-planning-inline-right .btn {
        flex: 1 1 0;
        min-width: 0;
    }
}

.fcms-day-column.is-selected {
    border-color: rgba(var(--fcms-primary-rgb), 0.9);
    box-shadow: inset 0 0 0 1px rgba(var(--fcms-primary-rgb), 0.55);
}

.fcms-day-header-link {
    display: block;
    padding: 0.1rem 0.25rem;
    border-radius: 0.4rem;
    color: inherit;
    text-decoration: none;
}

.fcms-day-header-link:hover,
.fcms-day-header-link:focus {
    color: color-mix(in srgb, var(--fcms-text) 75%, white);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.06);
}

.fcms-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    min-width: 0;
    flex: 0 1 auto;
    margin-right: 0.35rem;
}

.fcms-brand-logo {
    width: 92px;
    height: auto;
    object-fit: contain;
    flex: 0 0 auto;
    filter: drop-shadow(0 0 6px rgba(var(--fcms-primary-rgb), 0.18));
}

.fcms-brand-text {
    display: inline-block;
    max-width: min(42vw, 460px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1.06rem;
    font-weight: 700;
    line-height: 1.1;
}

@media (max-width: 575.98px) {
    .fcms-brand-logo {
        width: 72px;
        height: auto;
    }

    .fcms-brand-text {
        max-width: 50vw;
        font-size: 0.92rem;
        line-height: 1.05;
    }
}




.fcms-logo-partnership {
    display: inline-flex;
    align-items: center;
    gap: 0.22rem;
    margin-left: 0;
}

.fcms-logo-separator {
    display: inline-block;
    width: 1px;
    height: 1.85rem;
    flex: 0 0 1px;
    margin: 0 0.18rem;
    border-radius: 999px;
    background: linear-gradient(180deg, transparent, rgba(203, 213, 225, 0.72), transparent);
}

.fcms-convention-logo {
    width: 120px;
    height: auto;
    max-height: 44px;
    object-fit: contain;
    flex: 0 0 auto;
    margin-left: 0;
}

@media (max-width: 575.98px) {
    .fcms-convention-logo {
        width: 92px;
        max-height: 34px;
        margin-left: -0.04rem;
    }

    .fcms-logo-partnership {
        gap: 0.06rem;
    }

    .fcms-logo-separator {
        height: 1.45rem;
        margin: 0 0.12rem;
    }
}






.fcms-pole-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
}

.fcms-pole-icon {
    font-size: 0.86rem;
    line-height: 1;
    color: inherit;
    opacity: 0.95;
}

.fcms-pole-icon-img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
    border-radius: 0.2rem;
}

.fcms-pole-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.12rem 0.45rem;
    border: 1px solid var(--fcms-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--fcms-text);
    font-size: 0.78rem;
    line-height: 1.15;
    max-width: 100%;
}

.fcms-pole-badge > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 16rem;
}

.fcms-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1035;
    height: var(--fcms-topbar-h);
    display: flex;
    align-items: center;
    background: rgba(6, 10, 16, 0.9);
    border-bottom: 1px solid rgba(var(--fcms-border-rgb), 0.7);
    backdrop-filter: blur(8px);
}

.fcms-topbar .fcms-live-clock {
    padding: 0.16rem 0.5rem;
    font-size: 0.72rem;
    border-color: rgba(var(--fcms-border-rgb), 0.75);
    background: rgba(var(--fcms-surface-rgb), 0.78);
}

.fcms-nav-actions {
    flex-wrap: nowrap;
    flex: 0 0 auto;
    margin-left: 0.85rem;
}

.fcms-btn-compact {
    min-height: 32px;
    padding: 0.28rem 0.55rem;
    font-size: 0.78rem;
    line-height: 1.1;
    border-radius: 0.45rem;
}

.fcms-lang-toggle {
    min-width: auto;
}

.fcms-lang-flag {
    font-size: 0.82rem;
    line-height: 1;
}
@media (max-width: 575.98px) {
    .fcms-nav-actions {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .fcms-topbar .fcms-live-clock {
        padding: 0.12rem 0.4rem;
        font-size: 0.68rem;
    }.fcms-btn-compact {
        min-height: 30px;
        padding: 0.24rem 0.46rem;
        font-size: 0.74rem;
    }
}

.fcms-btn-compact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.32rem;
}

.fcms-btn-compact i {
    font-size: 0.84rem;
    line-height: 1;
}

.fcms-profile-icon-btn {
    width: 2.15rem;
    padding-left: 0;
    padding-right: 0;
}

.fcms-quick-actions {
    position: fixed;
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
    z-index: 1045;
}

.fcms-quick-actions-toggle {
    width: 2.85rem;
    height: 2.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(var(--fcms-primary-rgb), 0.38);
    border-radius: 999px;
    color: color-mix(in srgb, var(--fcms-text) 96%, white);
    background: rgba(var(--fcms-bg-2-rgb), 0.94);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(10px);
}

.fcms-quick-actions-toggle:hover,
.fcms-quick-actions-toggle:focus {
    color: color-mix(in srgb, var(--fcms-text) 75%, white);
    border-color: rgba(var(--fcms-primary-rgb), 0.62);
    background: rgba(18, 29, 44, 0.96);
}

.fcms-quick-actions-toggle.dropdown-toggle::after {
    display: none;
}

.fcms-quick-actions-menu {
    width: min(17rem, calc(100vw - 2rem));
    max-height: min(27rem, calc(100vh - 7rem));
    overflow-y: auto;
    margin-bottom: 0.65rem !important;
}

.fcms-quick-actions-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 2.25rem;
}

.fcms-quick-actions-menu .dropdown-item i {
    flex: 0 0 1.05rem;
    width: 1.05rem;
    text-align: center;
}

.fcms-quick-actions-menu .dropdown-item span {
    min-width: 0;
}

.fcms-quick-actions-menu .fcms-profile-icon-btn {
    width: 100%;
    padding: 0.45rem 0.65rem;
    justify-content: flex-start;
    border-radius: 0.38rem;
}

.fcms-quick-actions-user {
    min-width: 0;
    padding: 0.45rem 0.65rem 0.35rem;
}

.fcms-lang-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.fcms-lang-toggle::after {
    margin-left: 0.22rem;
    vertical-align: middle;
}

.fcms-lang-toggle .fcms-lang-flag {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

@media (min-width: 1400px) and (max-width: 1599.98px) {
    .fcms-navbar .container {
        max-width: 100%;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
        column-gap: 0.9rem;
    }

    .fcms-brand {
        margin-right: 0.2rem;
    }

    .fcms-brand-logo {
        width: 84px;
    }

    .fcms-convention-logo {
        width: 104px;
        max-height: 40px;
    }

    .fcms-navbar .navbar-nav {
        gap: 0.12rem;
    }

    .navbar .nav-link {
        gap: 0.24rem;
        padding-left: 0.46rem !important;
        padding-right: 0.46rem !important;
        font-size: 0.88rem;
    }

    .fcms-nav-actions {
        margin-left: 0.55rem;
        gap: 0.35rem !important;
    }

    .fcms-btn-compact {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .fcms-profile-icon-btn {
        width: 2.05rem;
        padding-left: 0;
        padding-right: 0;
    }
}

@media (min-width: 1400px) {
    .fcms-navbar .navbar-nav .nav-link {
        white-space: nowrap;
    }

    .fcms-navbar .navbar-collapse {
        align-items: center;
    }
}

@media (max-width: 575.98px) {
    .fcms-topbar .fcms-live-clock-date,
    .fcms-topbar .fcms-live-clock-dot {
        display: inline;
    }
}

#fcmsTopbarStatusForm.is-saving .fcms-topbar-status-select {
    opacity: 0.75;
}


.fcms-topbar-center {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

#fcmsTopbarStatusForm {
    margin: 0;
    min-width: 0;
    flex: 0 0 auto;
}

.fcms-topbar-status-select {
    width: 128px;
    min-width: 128px;
    max-width: 128px;
    height: 28px;
    padding: 0.14rem 1.5rem 0.14rem 0.46rem;
    font-size: 0.67rem;
    line-height: 1;
    color: var(--fcms-text);
    background: rgba(var(--fcms-surface-rgb), 0.88);
    border: 1px solid rgba(var(--fcms-border-rgb), 0.85);
    border-radius: 999px;
    box-shadow: none;
    text-overflow: ellipsis;
}

.fcms-topbar-status-select option {
    color: var(--fcms-text);
    background: var(--fcms-bg-2);
}

.fcms-topbar-status-select:focus {
    border-color: rgba(var(--fcms-primary-rgb), 0.9);
    box-shadow: 0 0 0 0.16rem rgba(var(--fcms-primary-rgb), 0.18);
}

#fcmsTopbarStatusForm.status-available .fcms-topbar-status-select {
    background: rgba(var(--fcms-success-rgb), 0.16);
    border-color: rgba(var(--fcms-success-rgb), 0.45);
}

#fcmsTopbarStatusForm.status-on_call .fcms-topbar-status-select {
    background: rgba(var(--fcms-primary-rgb), 0.16);
    border-color: rgba(var(--fcms-primary-rgb), 0.45);
}

#fcmsTopbarStatusForm.status-in_shift .fcms-topbar-status-select {
    background: rgba(var(--fcms-primary-strong-rgb), 0.16);
    border-color: rgba(var(--fcms-primary-strong-rgb), 0.45);
}

#fcmsTopbarStatusForm.status-task_in_progress .fcms-topbar-status-select {
    background: rgba(var(--fcms-warning-rgb), 0.16);
    border-color: rgba(var(--fcms-warning-rgb), 0.45);
}

#fcmsTopbarStatusForm.status-off_shift_available .fcms-topbar-status-select {
    background: rgba(var(--fcms-primary-rgb), 0.16);
    border-color: rgba(var(--fcms-primary-rgb), 0.45);
}

#fcmsTopbarStatusForm.status-busy .fcms-topbar-status-select {
    background: rgba(var(--fcms-danger-rgb), 0.16);
    border-color: rgba(var(--fcms-danger-rgb), 0.45);
}

@media (max-width: 991.98px) {
    .fcms-topbar-center {
        gap: 0.24rem;
    }

    .fcms-topbar-status-select {
        width: 112px;
        min-width: 112px;
        max-width: 112px;
        height: 26px;
        font-size: 0.62rem;
        padding: 0.1rem 1.25rem 0.1rem 0.38rem;
    }
}

@media (max-width: 575.98px) {
    .fcms-topbar .container {
        padding-left: 0.4rem;
        padding-right: 0.4rem;
    }

    .fcms-topbar-center {
        width: 100%;
        justify-content: space-between;
        gap: 0.14rem;
    }

    .fcms-topbar .fcms-live-clock {
        min-width: 0;
        max-width: calc(100% - 102px);
        padding: 0.1rem 0.35rem;
        font-size: 0.62rem;
    }

    .fcms-topbar .fcms-live-clock-date {
        display: inline-block;
        max-width: 72px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        vertical-align: bottom;
    }

    .fcms-topbar-status-select {
        width: 96px;
        min-width: 96px;
        max-width: 96px;
        font-size: 0.6rem;
    }
}
/* Topbar strict compact override */
.fcms-topbar .container {
    overflow: hidden;
}

.fcms-topbar-center {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.26rem !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

.fcms-topbar .fcms-live-clock {
    height: 28px !important;
    padding: 0.12rem 0.44rem !important;
    display: inline-flex !important;
    align-items: center !important;
    background: linear-gradient(180deg, rgba(20, 30, 46, 0.9) 0%, rgba(14, 20, 30, 0.92) 100%) !important;
    border: 1px solid var(--fcms-border) !important;
    border-radius: 999px !important;
    max-width: calc(100% - 104px) !important;
    overflow: hidden !important;
}

.fcms-topbar .fcms-live-clock-date {
    display: inline-block !important;
    max-width: 74px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

#fcmsTopbarStatusForm {
    display: inline-flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    width: 98px !important;
    min-width: 98px !important;
    max-width: 98px !important;
    overflow: hidden !important;
}

.fcms-topbar-status-select {
    width: 98px !important;
    min-width: 98px !important;
    max-width: 98px !important;
    height: 28px !important;
    padding: 0.12rem 1.25rem 0.12rem 0.4rem !important;
    font-size: 0.62rem !important;
    line-height: 1 !important;
    color: var(--fcms-text) !important;
    background: linear-gradient(180deg, rgba(20, 30, 46, 0.9) 0%, rgba(14, 20, 30, 0.92) 100%) !important;
    border: 1px solid var(--fcms-border) !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    text-overflow: ellipsis !important;
}

.fcms-topbar-status-select option {
    color: var(--fcms-text) !important;
    background: var(--fcms-bg-2) !important;
}

@media (min-width: 992px) {
    #fcmsTopbarStatusForm,
    .fcms-topbar-status-select {
        width: 122px !important;
        min-width: 122px !important;
        max-width: 122px !important;
        font-size: 0.68rem !important;
    }

    .fcms-topbar .fcms-live-clock {
        max-width: calc(100% - 130px) !important;
    }
}
/* Mobile topbar hard overflow fix */
@media (max-width: 575.98px) {
    .fcms-topbar {
        overflow: hidden;
    }

    .fcms-topbar .container {
        padding-left: 0.28rem !important;
        padding-right: 0.28rem !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .fcms-topbar-center {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 40vw) !important;
        align-items: center !important;
        gap: 0.28rem !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .fcms-topbar .fcms-live-clock {
        min-width: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        justify-content: center !important;
        font-size: 0.61rem !important;
        padding: 0.12rem 0.32rem !important;
    }

    #fcmsTopbarStatusForm {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .fcms-topbar-status-select {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        padding: 0.12rem 1.1rem 0.12rem 0.34rem !important;
        font-size: 0.6rem !important;
        appearance: none !important;
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
    }
}

/* Mobile topbar tuning: smaller and uniform pills with full datetime */
@media (max-width: 575.98px) {
    .fcms-topbar {
        overflow: hidden !important;
    }

    .fcms-topbar .container {
        padding-left: 0.22rem !important;
        padding-right: 0.22rem !important;
    }

    .fcms-topbar-center {
        display: grid !important;
        grid-template-columns: minmax(0, 58%) minmax(0, 42%) !important;
        align-items: center !important;
        gap: 0.2rem !important;
    }

    .fcms-topbar .fcms-live-clock,
    .fcms-topbar-status-select {
        height: 26px !important;
        min-height: 26px !important;
        border-radius: 999px !important;
    }

    .fcms-topbar .fcms-live-clock {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        padding: 0.1rem 0.28rem !important;
        justify-content: center !important;
        font-size: 0.56rem !important;
        gap: 0.14rem !important;
    }

    .fcms-topbar .fcms-live-clock-date,
    .fcms-topbar .fcms-live-clock-time {
        min-width: 0 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    #fcmsTopbarStatusForm {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .fcms-topbar-status-select {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        font-size: 0.56rem !important;
        padding: 0.1rem 1.02rem 0.1rem 0.3rem !important;
        line-height: 1 !important;
        text-overflow: ellipsis !important;
        appearance: none !important;
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
    }
}

/* Topbar status: centered label + status color pill */
#fcmsTopbarStatusForm {
    display: inline-flex;
    align-items: center;
}

.fcms-topbar-status-select {
    text-align: center !important;
    text-align-last: center !important;
    -moz-text-align-last: center !important;
    padding-left: 0.5rem !important;
}

.fcms-topbar-status-select option {
    text-align: left;
}

#fcmsTopbarStatusForm.status-available .fcms-topbar-status-select {
    color: #c9ffe4 !important;
    background: linear-gradient(180deg, rgba(var(--fcms-success-rgb), 0.28) 0%, rgba(var(--fcms-success-rgb), 0.18) 100%) !important;
    border-color: rgba(var(--fcms-success-rgb), 0.6) !important;
}

#fcmsTopbarStatusForm.status-on_call .fcms-topbar-status-select {
    color: color-mix(in srgb, var(--fcms-primary) 30%, var(--fcms-text)) !important;
    background: linear-gradient(180deg, rgba(var(--fcms-primary-rgb), 0.28) 0%, rgba(var(--fcms-primary-rgb), 0.18) 100%) !important;
    border-color: rgba(var(--fcms-primary-rgb), 0.62) !important;
}

#fcmsTopbarStatusForm.status-in_shift .fcms-topbar-status-select {
    color: color-mix(in srgb, var(--fcms-primary-strong) 28%, var(--fcms-text)) !important;
    background: linear-gradient(180deg, rgba(var(--fcms-primary-strong-rgb), 0.28) 0%, rgba(var(--fcms-primary-strong-rgb), 0.18) 100%) !important;
    border-color: rgba(var(--fcms-primary-strong-rgb), 0.62) !important;
}

#fcmsTopbarStatusForm.status-task_in_progress .fcms-topbar-status-select {
    color: color-mix(in srgb, var(--fcms-warning) 35%, var(--fcms-text)) !important;
    background: linear-gradient(180deg, rgba(var(--fcms-warning-rgb), 0.30) 0%, rgba(var(--fcms-warning-rgb), 0.20) 100%) !important;
    border-color: rgba(var(--fcms-warning-rgb), 0.62) !important;
}

#fcmsTopbarStatusForm.status-off_shift_available .fcms-topbar-status-select {
    color: #d7fbff !important;
    background: linear-gradient(180deg, rgba(var(--fcms-primary-rgb), 0.30) 0%, rgba(var(--fcms-primary-rgb), 0.20) 100%) !important;
    border-color: rgba(var(--fcms-primary-rgb), 0.62) !important;
}

#fcmsTopbarStatusForm.status-busy .fcms-topbar-status-select {
    color: #ffe0e0 !important;
    background: linear-gradient(180deg, rgba(var(--fcms-danger-rgb), 0.30) 0%, rgba(var(--fcms-danger-rgb), 0.20) 100%) !important;
    border-color: rgba(var(--fcms-danger-rgb), 0.62) !important;
}

/* Topbar refined compact look */
body.fcms-body {
    --fcms-topbar-h: 30px;
}

.fcms-topbar {
    height: var(--fcms-topbar-h) !important;
    min-height: var(--fcms-topbar-h) !important;
    background: rgba(var(--fcms-bg-rgb), 0.96) !important;
    border-bottom: 1px solid rgba(var(--fcms-muted-rgb), 0.16) !important;
    box-shadow: none !important;
    backdrop-filter: blur(10px);
}

.fcms-topbar .container {
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
}

.fcms-topbar-center {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.55rem !important;
    width: auto !important;
    max-width: 100% !important;
    overflow: visible !important;
}

.fcms-topbar .fcms-live-clock {
    height: auto !important;
    max-width: none !important;
    padding: 0 !important;
    gap: 0.28rem !important;
    color: #aebbd0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    font-size: 0.72rem !important;
    line-height: 1 !important;
    box-shadow: none !important;
}

.fcms-topbar .fcms-live-clock i {
    color: #7f8da3 !important;
    font-size: 0.74rem !important;
    opacity: 0.95;
}

.fcms-topbar .fcms-live-clock-date,
.fcms-topbar .fcms-live-clock-time {
    max-width: none !important;
    color: inherit !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
    font-weight: 500 !important;
}

.fcms-topbar .fcms-live-clock-time {
    color: #d5deeb !important;
    font-variant-numeric: tabular-nums;
}

#fcmsTopbarStatusForm {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    overflow: visible !important;
}

.fcms-topbar-status-select {
    width: fit-content !important;
    min-width: 6.4rem !important;
    max-width: 10.5rem !important;
    height: 22px !important;
    min-height: 22px !important;
    padding: 0 1.35rem 0 0.75rem !important;
    color: #d9e2ef !important;
    background: rgba(255, 255, 255, 0.045) !important;
    border: 1px solid rgba(var(--fcms-muted-rgb), 0.24) !important;
    border-radius: 0.35rem !important;
    box-shadow: none !important;
    font-size: 0.68rem !important;
    line-height: 1 !important;
    text-align: center !important;
    text-align-last: center !important;
}

.fcms-topbar-status-select:focus {
    border-color: rgba(var(--fcms-primary-rgb), 0.55) !important;
    box-shadow: 0 0 0 0.12rem rgba(var(--fcms-primary-rgb), 0.12) !important;
}

#fcmsTopbarStatusForm.status-available .fcms-topbar-status-select {
    border-color: rgba(var(--fcms-success-rgb), 0.48) !important;
    background: rgba(var(--fcms-success-rgb), 0.08) !important;
    color: #d9f7e8 !important;
}

#fcmsTopbarStatusForm.status-on_call .fcms-topbar-status-select,
#fcmsTopbarStatusForm.status-in_shift .fcms-topbar-status-select,
#fcmsTopbarStatusForm.status-off_shift_available .fcms-topbar-status-select {
    border-color: rgba(var(--fcms-primary-rgb), 0.42) !important;
    background: rgba(var(--fcms-primary-rgb), 0.08) !important;
    color: color-mix(in srgb, var(--fcms-primary) 24%, var(--fcms-text)) !important;
}

#fcmsTopbarStatusForm.status-task_in_progress .fcms-topbar-status-select {
    border-color: rgba(var(--fcms-warning-rgb), 0.45) !important;
    background: rgba(var(--fcms-warning-rgb), 0.08) !important;
    color: color-mix(in srgb, var(--fcms-warning) 30%, var(--fcms-text)) !important;
}

#fcmsTopbarStatusForm.status-busy .fcms-topbar-status-select {
    border-color: rgba(var(--fcms-danger-rgb), 0.45) !important;
    background: rgba(var(--fcms-danger-rgb), 0.08) !important;
    color: #ffe1e1 !important;
}

@media (max-width: 575.98px) {
    body.fcms-body {
        --fcms-topbar-h: 28px;
    }

    .fcms-topbar .container {
        padding-left: 0.55rem !important;
        padding-right: 0.55rem !important;
    }

    .fcms-topbar-center {
        display: flex !important;
        justify-content: space-between !important;
        gap: 0.5rem !important;
        width: 100% !important;
    }

    .fcms-topbar .fcms-live-clock {
        width: auto !important;
        min-width: 0 !important;
        max-width: calc(100% - 7rem) !important;
        justify-content: flex-start !important;
        font-size: 0.58rem !important;
        gap: 0.16rem !important;
    }

    .fcms-topbar .fcms-live-clock-date {
        display: inline-block !important;
        max-width: 4.6rem !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    .fcms-topbar .fcms-live-clock-dot {
        display: inline !important;
    }

    .fcms-topbar-status-select {
        min-width: 6.4rem !important;
        max-width: 6.8rem !important;
        height: 22px !important;
        min-height: 22px !important;
        font-size: 0.6rem !important;
        padding-left: 0.52rem !important;
        padding-right: 1.12rem !important;
    }
}

/* Mobile lang dropdown viewport safety */
@media (max-width: 575.98px) {
    .fcms-nav-actions .dropdown:not(.fcms-lang-dropdown) {
        position: static;
    }

    .fcms-nav-actions .fcms-lang-dropdown {
        position: relative;
    }

    .fcms-lang-menu,
    .fcms-lang-menu.dropdown-menu-end,
    .fcms-lang-menu[data-bs-popper] {
        position: fixed !important;
        top: calc(var(--fcms-topbar-h) + var(--fcms-nav-offset) + 0.35rem) !important;
        right: 0.7rem !important;
        left: 0.7rem !important;
        transform: none !important;
        min-width: 0 !important;
        width: auto !important;
        max-width: calc(100vw - 1.4rem) !important;
        max-height: calc(100vh - var(--fcms-topbar-h) - var(--fcms-nav-offset) - 0.9rem);
        max-height: calc(100dvh - var(--fcms-topbar-h) - var(--fcms-nav-offset) - 0.9rem);
        overflow-x: hidden;
        overflow-y: auto;
        z-index: 1060;
        box-sizing: border-box;
    }

    .fcms-lang-menu .dropdown-item {
        white-space: normal;
        word-break: break-word;
    }
}

/* Mobile navigation and topbar refinements */
.fcms-navbar .container {
    gap: 0.65rem;
}

.fcms-navbar .navbar-toggler {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 2.45rem;
    height: 2.25rem;
    padding: 0;
    border: 0;
    border-radius: 0.55rem;
    background: transparent;
    box-shadow: none;
}

.fcms-navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 0.12rem rgba(154, 234, 245, 0.16);
}

.fcms-navbar .navbar-toggler-icon {
    position: relative;
    width: 1.25rem;
    height: 0.9rem;
    background-image: none !important;
    background-color: currentColor;
    background-clip: content-box;
    color: #dbeafe;
    padding-top: 0.39rem;
    padding-bottom: 0.39rem;
    transition: background-color 0.16s ease;
}

.fcms-navbar .navbar-toggler-icon::before,
.fcms-navbar .navbar-toggler-icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.18s ease, top 0.18s ease, bottom 0.18s ease;
}

.fcms-navbar .navbar-toggler-icon::before {
    top: 0;
}

.fcms-navbar .navbar-toggler-icon::after {
    bottom: 0;
}

.fcms-navbar .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background-color: transparent;
}

.fcms-navbar .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
    top: 0.39rem;
    transform: rotate(45deg);
}

.fcms-navbar .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
    bottom: 0.39rem;
    transform: rotate(-45deg);
}

#fcmsTopbarStatusForm {
    position: relative;
}

#fcmsTopbarStatusForm::before {
    content: none;
}

#fcmsTopbarStatusForm.status-available::before {
    background: var(--fcms-success);
}

#fcmsTopbarStatusForm.status-on_call::before,
#fcmsTopbarStatusForm.status-in_shift::before,
#fcmsTopbarStatusForm.status-off_shift_available::before {
    background: var(--fcms-primary);
}

#fcmsTopbarStatusForm.status-task_in_progress::before {
    background: var(--fcms-warning);
}

#fcmsTopbarStatusForm.status-busy::before {
    background: var(--fcms-danger);
}

.fcms-topbar-status-select,
#fcmsTopbarStatusForm.status-available .fcms-topbar-status-select,
#fcmsTopbarStatusForm.status-on_call .fcms-topbar-status-select,
#fcmsTopbarStatusForm.status-in_shift .fcms-topbar-status-select,
#fcmsTopbarStatusForm.status-task_in_progress .fcms-topbar-status-select,
#fcmsTopbarStatusForm.status-off_shift_available .fcms-topbar-status-select,
#fcmsTopbarStatusForm.status-busy .fcms-topbar-status-select {
    padding-left: 0.7rem !important;
    padding-right: 0.7rem !important;
    color: #dbe7f5 !important;
    background-image: none !important;
    border-color: rgba(var(--fcms-muted-rgb), 0.28) !important;
    text-align: center !important;
    text-align-last: center !important;
}

.fcms-topbar-status-select.dropdown-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.fcms-topbar-status-select.dropdown-toggle::after {
    margin-left: 0;
    color: currentColor;
    opacity: 0.82;
    transform: translateY(1px);
}

.fcms-topbar-status-menu {
    z-index: 1065;
    min-width: 11rem;
    max-width: min(18rem, calc(100vw - 1rem));
    box-sizing: border-box;
    margin-top: 0.35rem !important;
    padding: 0.25rem;
    background: linear-gradient(180deg, rgba(var(--fcms-surface-2-rgb), 0.98) 0%, rgba(var(--fcms-surface-rgb), 0.98) 100%);
    border-color: var(--fcms-border);
}

.fcms-topbar-status-menu .dropdown-item {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    min-height: 1.85rem;
    border-radius: 0.42rem;
    color: #dbe7f5;
    font-size: 0.78rem;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
}

.fcms-topbar-status-menu .dropdown-item:hover,
.fcms-topbar-status-menu .dropdown-item:focus {
    color: color-mix(in srgb, var(--fcms-text) 75%, white);
    background: rgba(255, 255, 255, 0.08);
}

.fcms-topbar-status-menu .dropdown-item.active,
.fcms-topbar-status-menu .dropdown-item:active {
    color: #062028;
    background: var(--fcms-primary);
}

#fcmsTopbarStatusForm.status-available .fcms-topbar-status-select {
    color: #e7fff2 !important;
    background-color: rgba(var(--fcms-success-rgb), 0.2) !important;
    border-color: rgba(var(--fcms-success-rgb), 0.5) !important;
}

#fcmsTopbarStatusForm.status-on_call .fcms-topbar-status-select {
    color: color-mix(in srgb, var(--fcms-primary) 30%, var(--fcms-text)) !important;
    background-color: rgba(var(--fcms-primary-rgb), 0.2) !important;
    border-color: rgba(var(--fcms-primary-rgb), 0.5) !important;
}

#fcmsTopbarStatusForm.status-in_shift .fcms-topbar-status-select {
    color: color-mix(in srgb, var(--fcms-primary-strong) 28%, var(--fcms-text)) !important;
    background-color: rgba(var(--fcms-primary-strong-rgb), 0.2) !important;
    border-color: rgba(var(--fcms-primary-strong-rgb), 0.5) !important;
}

#fcmsTopbarStatusForm.status-task_in_progress .fcms-topbar-status-select {
    color: color-mix(in srgb, var(--fcms-warning) 30%, var(--fcms-text)) !important;
    background-color: rgba(var(--fcms-warning-rgb), 0.22) !important;
    border-color: rgba(var(--fcms-warning-rgb), 0.52) !important;
}

#fcmsTopbarStatusForm.status-off_shift_available .fcms-topbar-status-select {
    color: #dcfbff !important;
    background-color: rgba(var(--fcms-primary-rgb), 0.2) !important;
    border-color: rgba(var(--fcms-primary-rgb), 0.5) !important;
}

#fcmsTopbarStatusForm.status-busy .fcms-topbar-status-select {
    color: #ffe7e7 !important;
    background-color: rgba(var(--fcms-danger-rgb), 0.2) !important;
    border-color: rgba(var(--fcms-danger-rgb), 0.52) !important;
}

.fcms-topbar-status-select option {
    color: #e5edf8;
    background: var(--fcms-bg);
}

@media (max-width: 1399.98px) {
    .fcms-navbar .navbar-collapse {
        margin-top: 0.65rem;
        padding: 0.55rem;
        border: 1px solid rgba(var(--fcms-muted-rgb), 0.16);
        border-radius: 0.75rem;
        background: rgba(var(--fcms-bg-2-rgb), 0.96);
        transform-origin: top center;
        transition: opacity 0.18s ease, transform 0.18s ease;
    }

    .fcms-navbar .navbar-collapse.collapsing {
        opacity: 0.45;
        transform: translateY(-0.35rem);
    }

    .fcms-navbar .navbar-collapse.show {
        opacity: 1;
        transform: translateY(0);
    }

    .fcms-navbar .navbar-nav {
        gap: 0.2rem;
    }

    .fcms-navbar .nav-link {
        display: flex;
        align-items: center;
        min-height: 2.35rem;
        padding: 0.48rem 0.65rem !important;
    }

    .fcms-navbar .dropdown-menu {
        margin: 0.15rem 0 0.35rem;
        padding: 0.25rem;
        border-radius: 0.6rem;
        box-shadow: none;
    }

    .fcms-navbar .navbar-nav .dropdown-menu.show {
        position: static !important;
        transform: none !important;
        float: none;
        width: 100%;
    }

    .fcms-navbar .dropdown-item {
        border-radius: 0.45rem;
        padding: 0.48rem 0.65rem;
    }

    .fcms-navbar .navbar-collapse > .d-flex.fcms-nav-actions {
        padding-top: 0.45rem;
        border-top: 1px solid rgba(var(--fcms-muted-rgb), 0.14);
    }
}

@media (max-width: 575.98px) {
    .fcms-navbar .container {
        padding-left: 0.65rem;
        padding-right: 0.65rem;
    }

    .fcms-brand {
        flex: 1 1 auto;
        max-width: calc(100% - 3.15rem);
        gap: 0.22rem;
        overflow: hidden;
    }

    .fcms-public-lang-actions + .navbar-toggler {
        margin-left: 0.25rem;
    }

    .fcms-public-lang-actions .fcms-lang-toggle {
        min-width: 2.65rem;
        height: 2.1rem;
        padding-left: 0.55rem;
        padding-right: 0.55rem;
    }

    .fcms-navbar .fcms-public-lang-actions .fcms-lang-menu,
    .fcms-navbar .fcms-public-lang-actions .fcms-lang-menu.dropdown-menu-end,
    .fcms-navbar .fcms-public-lang-actions .fcms-lang-menu[data-bs-popper] {
        top: calc(var(--fcms-topbar-h) + var(--fcms-nav-offset) + 0.25rem) !important;
    }

    .fcms-brand-logo {
        width: 76px;
        max-width: 32vw;
    }

    .fcms-logo-partnership {
        display: inline-flex;
        align-items: center;
        min-width: 0;
        flex: 1 1 auto;
        gap: 0.1rem;
        overflow: hidden;
    }

    .fcms-logo-separator {
        height: 1.35rem;
        margin: 0 0.08rem;
    }

    .fcms-convention-logo {
        width: auto;
        max-width: min(34vw, 88px);
        max-height: 32px;
        object-fit: contain;
    }

    .fcms-navbar .navbar-collapse {
        width: 100%;
        max-height: calc(100vh - var(--fcms-topbar-h) - 4.5rem);
        overflow-y: auto;
    }

    .fcms-nav-actions {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch !important;
        gap: 0.4rem !important;
    }

    .fcms-nav-actions .btn,
    .fcms-nav-actions .dropdown,
    .fcms-nav-actions form {
        width: 100%;
    }

    .fcms-nav-actions .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .fcms-topbar-status-select,
    #fcmsTopbarStatusForm.status-available .fcms-topbar-status-select,
    #fcmsTopbarStatusForm.status-on_call .fcms-topbar-status-select,
    #fcmsTopbarStatusForm.status-in_shift .fcms-topbar-status-select,
    #fcmsTopbarStatusForm.status-task_in_progress .fcms-topbar-status-select,
    #fcmsTopbarStatusForm.status-off_shift_available .fcms-topbar-status-select,
    #fcmsTopbarStatusForm.status-busy .fcms-topbar-status-select {
        min-width: 6.9rem !important;
        max-width: 7.4rem !important;
        padding-left: 0.55rem !important;
        padding-right: 0.55rem !important;
    }

    #fcmsTopbarStatusForm::before {
        content: none;
    }
}

/* Final responsive fixes for mobile menus */
.fcms-topbar,
.fcms-topbar .container,
.fcms-topbar-center,
#fcmsTopbarStatusForm {
    overflow: visible !important;
}

.fcms-topbar-status-dropdown {
    position: relative;
}

.fcms-topbar-status-menu {
    z-index: 1065;
}

@media (min-width: 1400px) {
    .fcms-navbar .navbar-toggler {
        display: none !important;
    }
}

@media (max-width: 1399.98px) {
    .fcms-navbar .container {
        position: relative;
    }

    .fcms-navbar .navbar-collapse {
        position: absolute;
        top: calc(100% + 0.35rem);
        left: var(--bs-gutter-x, 0.75rem);
        right: var(--bs-gutter-x, 0.75rem);
        z-index: 1040;
        margin-top: 0;
    }
}

@media (max-width: 1399.98px) {
    .fcms-navbar {
        background: rgba(var(--fcms-bg-rgb), 0.97) !important;
        backdrop-filter: none;
    }

    .fcms-navbar .navbar-collapse {
        position: absolute !important;
        top: calc(100% + 0.25rem) !important;
        left: 0.65rem !important;
        right: 0.65rem !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: calc(100vw - 1.3rem) !important;
        box-sizing: border-box !important;
        max-height: calc(100vh - var(--fcms-topbar-h) - 4.25rem);
        max-height: calc(100dvh - var(--fcms-topbar-h) - 4.25rem);
        overflow-x: hidden;
        overflow-y: auto;
        transition: none !important;
        transform: none !important;
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34);
    }

    .fcms-navbar .navbar-collapse.collapsing,
    .fcms-navbar .navbar-collapse.show {
        opacity: 1;
        transform: none !important;
    }

    .fcms-navbar .navbar-collapse.collapsing {
        height: auto !important;
    }
}

@media (max-width: 575.98px) {
    .fcms-navbar .navbar-collapse {
        left: 0.5rem !important;
        right: 0.5rem !important;
        max-width: calc(100vw - 1rem) !important;
        max-height: calc(100vh - var(--fcms-topbar-h) - 4rem);
        max-height: calc(100dvh - var(--fcms-topbar-h) - 4rem);
    }

    .fcms-navbar .navbar-nav,
    .fcms-navbar .nav-item,
    .fcms-navbar .nav-link,
    .fcms-navbar .dropdown-menu,
    .fcms-navbar .dropdown-item,
    .fcms-nav-actions,
    .fcms-nav-actions .dropdown,
    .fcms-nav-actions form,
    .fcms-nav-actions .btn {
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    .fcms-navbar .fcms-nav-actions {
        display: none !important;
    }

    .fcms-nav-actions {
        width: 100% !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .fcms-nav-actions .btn {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

@media (max-width: 575.98px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    .fcms-topbar-status-dropdown {
        width: 100%;
        min-width: 0;
    }

    .fcms-topbar-status-menu {
        position: fixed !important;
        top: calc(var(--fcms-topbar-h) + 0.18rem) !important;
        right: 0.35rem !important;
        left: 0.35rem !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: calc(100vw - 0.7rem) !important;
        box-sizing: border-box;
        max-height: min(16rem, calc(100vh - var(--fcms-topbar-h) - 0.75rem));
        overflow-x: hidden;
        overflow-y: auto;
    }

    .fcms-topbar-status-menu .dropdown-item {
        min-height: 2.15rem;
        padding: 0.42rem 0.62rem;
        line-height: 1.18;
    }
}

/* Header announcement ticker */
.fcms-announcement-bar {
    position: fixed;
    left: 0;
    right: 0;
    top: calc(var(--fcms-topbar-h) + var(--fcms-nav-offset));
    z-index: 1029;
    margin-top: 0;
    border-bottom: 1px solid var(--fcms-border);
    background: linear-gradient(180deg, rgba(var(--fcms-surface-rgb), 0.95) 0%, rgba(var(--fcms-bg-2-rgb), 0.96) 100%);
}

.fcms-announcement-track-wrap {
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    padding: 0.18rem 0;
    min-height: 1.05rem;
}

.fcms-announcement-track {
    position: absolute;
    left: 100%;
    top: 50%;
    display: inline-flex;
    align-items: center;
    color: #d6e8ff;
    font-size: 0.76rem;
    white-space: nowrap;
    will-change: transform;
    transform: translate(0, -50%);
    animation: fcmsTickerSingle 40s linear infinite;
}

.fcms-announcement-item {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.fcms-announcement-item:not(:last-child)::after {
    content: "|";
    display: inline-block;
    margin-inline: 1rem;
    opacity: 0.72;
}

@keyframes fcmsTickerSingle {
    0% {
        transform: translate(0, -50%);
    }
    100% {
        transform: translate(calc(-100% - 100vw), -50%);
    }
}

@media (max-width: 575.98px) {
    .fcms-announcement-track-wrap {
        padding: 0.14rem 0;
    }

    .fcms-announcement-track {
        font-size: 0.7rem;
        animation-duration: 34s;
    }

    .fcms-announcement-item:not(:last-child)::after {
        margin-inline: 0.72rem;
    }
}

/* Docs */
.fcms-docs-accordion .accordion-item {
    border: 1px solid var(--fcms-border);
    background: linear-gradient(180deg, rgba(var(--fcms-surface-2-rgb), 0.98) 0%, rgba(var(--fcms-surface-rgb), 0.98) 100%);
    border-radius: 0.75rem;
    overflow: hidden;
}

.fcms-docs-accordion .accordion-button {
    color: var(--fcms-text);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: none;
}

.fcms-docs-accordion .accordion-button:not(.collapsed) {
    color: color-mix(in srgb, var(--fcms-text) 96%, white);
    background: rgba(var(--fcms-primary-rgb), 0.12);
    box-shadow: inset 0 -1px 0 rgba(var(--fcms-primary-rgb), 0.18);
}

.fcms-docs-accordion .accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(var(--fcms-primary-rgb), 0.22);
}

.fcms-docs-accordion .accordion-button::after {
    filter: invert(88%) sepia(8%) saturate(386%) hue-rotate(181deg) brightness(98%) contrast(93%);
}

.fcms-docs-accordion-body {
    background: transparent;
}

.fcms-docs-video-slot {
    border-color: var(--fcms-border) !important;
    background: rgba(var(--fcms-surface-rgb), 0.65);
}
.fcms-docs-accordion {
    --bs-accordion-bg: var(--fcms-surface);
    --bs-accordion-color: var(--fcms-text);
    --bs-accordion-border-color: var(--fcms-border);
    --bs-accordion-btn-bg: rgba(255, 255, 255, 0.03);
    --bs-accordion-btn-color: var(--fcms-text);
    --bs-accordion-active-bg: rgba(var(--fcms-primary-rgb), 0.12);
    --bs-accordion-active-color: color-mix(in srgb, var(--fcms-text) 96%, white);
}

/* Docs hard override (prevent Bootstrap white accordion blocks) */
.fcms-docs-accordion .accordion-item,
.fcms-docs-accordion .accordion-item.mb-2,
.fcms-docs-accordion .accordion-collapse,
.fcms-docs-accordion .accordion-body {
    background: linear-gradient(180deg, rgba(var(--fcms-surface-2-rgb), 0.98) 0%, rgba(var(--fcms-surface-rgb), 0.98) 100%) !important;
    background-color: var(--fcms-surface) !important;
    color: var(--fcms-text) !important;
    border-color: var(--fcms-border) !important;
}

.fcms-docs-accordion .accordion-button,
.fcms-docs-accordion .accordion-button.collapsed {
    background-color: rgba(255, 255, 255, 0.03) !important;
    color: var(--fcms-text) !important;
}

.fcms-docs-accordion .accordion-button:not(.collapsed) {
    background-color: rgba(var(--fcms-primary-rgb), 0.12) !important;
    color: color-mix(in srgb, var(--fcms-text) 96%, white) !important;
}

/* Page action buttons mobile responsiveness */
.fcms-page-actions-buttons {
    display: flex;
    flex-wrap: wrap;
}

@media (max-width: 575.98px) {
    .fcms-page-actions {
        align-items: stretch !important;
        gap: 0.7rem;
    }

    .fcms-page-actions > .h4 {
        width: 100%;
    }

    .fcms-page-actions-buttons:not(.d-none) {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem !important;
        width: 100%;
    }

    .fcms-page-actions-buttons:not(.d-none) .btn {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 420px) {
    .fcms-page-actions-buttons:not(.d-none) {
        grid-template-columns: 1fr;
    }
}

.fcms-page-actions .dropdown-menu {
    background: linear-gradient(180deg, rgba(var(--fcms-surface-2-rgb), 0.98) 0%, rgba(var(--fcms-surface-rgb), 0.98) 100%);
    border-color: var(--fcms-border);
    max-width: 100%;
    overflow-x: hidden;
}

.fcms-page-actions .dropdown-item {
    color: color-mix(in srgb, var(--fcms-text) 88%, var(--fcms-muted));
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.25;
}

.fcms-page-actions .dropdown-item:hover,
.fcms-page-actions .dropdown-item:focus {
    color: color-mix(in srgb, var(--fcms-text) 75%, white);
    background: rgba(255, 255, 255, 0.08);
}

.fcms-docs-video-slot .video-js {
    width: 100%;
    min-height: 260px;
    border: 1px solid var(--fcms-border);
    border-radius: 0.6rem;
    overflow: hidden;
    background: var(--fcms-bg-2);
}

.fcms-docs-video-slot .video-js.vjs-fluid {
    padding-top: 56.25%;
}

.fcms-docs-video-slot .vjs-control-bar,
.fcms-docs-video-slot .vjs-big-play-button {
    background: rgba(var(--fcms-bg-rgb), 0.72);
}

.fcms-docs-video-slot .vjs-big-play-button {
    border-color: rgba(255, 255, 255, 0.35);
}

.fcms-docs-video-slot .vjs-play-progress,
.fcms-docs-video-slot .vjs-volume-level {
    background-color: var(--fcms-primary);
}

.fcms-sso-review-list {
    display: grid;
    gap: 0.75rem;
}

.fcms-sso-review-card {
    padding: 0.85rem;
    border: 1px solid rgba(var(--fcms-muted-rgb), 0.22);
    border-radius: 0.5rem;
    background: rgba(var(--fcms-bg-2-rgb), 0.28);
}

.fcms-sso-review-identity {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: start;
}

.fcms-sso-provider-sub {
    max-width: 260px;
    padding: 0.25rem 0.45rem;
    border: 1px solid rgba(var(--fcms-muted-rgb), 0.18);
    border-radius: 0.35rem;
    background: rgba(0, 0, 0, 0.18);
    color: #b9c8de;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .fcms-sso-review-card {
        padding: 0.75rem;
    }

    .fcms-sso-review-identity {
        grid-template-columns: 1fr;
        gap: 0.45rem;
    }

    .fcms-sso-provider-sub {
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
    }
}

.fcms-profile-add-panel,
.fcms-profile-pole-item,
.fcms-profile-hours-panel {
    border: 1px solid rgba(var(--fcms-muted-rgb), 0.22);
    border-radius: 0.5rem;
    background: rgba(var(--fcms-bg-2-rgb), 0.28);
}

.fcms-profile-add-panel {
    padding: 0.85rem;
}

.fcms-profile-poles-list {
    display: grid;
    gap: 0.65rem;
}

.fcms-profile-pole-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem 0.85rem;
}

.fcms-profile-pole-main,
.fcms-profile-pole-name,
.fcms-profile-pole-actions,
.fcms-profile-role-form {
    display: flex;
    align-items: center;
}

.fcms-profile-pole-main,
.fcms-profile-pole-name {
    min-width: 0;
}

.fcms-profile-pole-main {
    gap: 0.7rem;
    flex-wrap: wrap;
}

.fcms-profile-pole-name {
    gap: 0.45rem;
    font-weight: 600;
}

.fcms-profile-pole-name > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fcms-profile-pole-actions,
.fcms-profile-role-form {
    gap: 0.45rem;
}

.fcms-profile-role-form .btn-group {
    flex: 0 0 auto;
}

.fcms-icon-action {
    width: 34px;
    min-width: 34px;
    height: 31px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

.fcms-profile-hours-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.fcms-profile-hours-panel {
    padding: 0.8rem 0.9rem;
}

.fcms-profile-hours-progress {
    height: 0.55rem;
    background-color: rgba(255, 255, 255, 0.08);
}

.fcms-dashboard-next-shift {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.fcms-my-shifts-overview,
.fcms-my-next-shift,
.fcms-my-shift-row {
    background: rgba(var(--fcms-bg-2-rgb), 0.92);
    border: 1px solid rgba(var(--fcms-muted-rgb), 0.22);
    border-radius: 8px;
}

.fcms-my-shifts-overview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.42fr);
    gap: 1rem;
    padding: 1rem;
}

.fcms-my-shifts-hours > .d-flex > div {
    min-width: 130px;
}

.fcms-my-shifts-hours strong {
    display: block;
    font-size: 1.15rem;
    line-height: 1.2;
}

.fcms-my-shifts-hours span {
    display: block;
    color: var(--fcms-muted);
    font-size: 0.82rem;
}

.fcms-my-next-shift,
.fcms-my-shift-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 0.9rem 1rem;
}

.fcms-my-shifts-list {
    display: grid;
    gap: 0.75rem;
}

.fcms-my-shift-main {
    min-width: 0;
}

.fcms-my-shift-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 1rem;
    color: var(--fcms-muted);
    font-size: 0.88rem;
}

.fcms-my-shift-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
    flex: 0 0 auto;
}

.fcms-color-control {
    display: inline-flex;
    align-items: center;
    max-width: 360px;
}

.fcms-color-control .fcms-color-picker-trigger {
    width: 46px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;
}

.fcms-color-control .fcms-color-picker-trigger::before {
    content: "";
    position: absolute;
    right: 6px;
    bottom: 6px;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--fcms-selected-color, #0EA5E9);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 0 0 2px rgba(var(--fcms-bg-2-rgb), 0.5);
}

.fcms-theme-color-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.fcms-theme-color-code {
    min-width: 82px;
    padding: 0.35rem 0.5rem;
    border: 1px solid var(--fcms-border);
    border-radius: 0.4rem;
    background: rgba(2, 6, 23, 0.22);
    color: var(--fcms-muted);
    font-size: 0.82rem;
}

.fcms-theme-presets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

.fcms-theme-preset-btn {
    display: inline-flex;
    align-items: center;
    min-height: 58px;
    justify-content: flex-start;
    gap: 0.75rem;
    padding: 0.7rem 0.8rem;
    text-align: left;
}

.fcms-theme-preset-btn:hover,
.fcms-theme-preset-btn:focus {
    border-color: rgba(var(--fcms-primary-rgb), 0.65);
}

.fcms-theme-preset-swatches {
    display: inline-grid;
    grid-template-columns: repeat(3, 16px);
    gap: 3px;
    flex: 0 0 auto;
}

.fcms-theme-preset-swatch {
    width: 16px;
    height: 16px;
    border: 1px solid rgba(var(--fcms-text-rgb), 0.18);
    border-radius: 0.25rem;
}

.fcms-theme-preset-label {
    min-width: 0;
    color: var(--fcms-text);
    font-weight: 600;
    line-height: 1.2;
}

.pcr-app {
    background: var(--fcms-bg);
    border: 1px solid rgba(var(--fcms-muted-rgb), 0.28);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
    color: var(--fcms-text);
    z-index: 2200;
}

.pcr-app .pcr-interaction input {
    background: var(--fcms-bg-2);
    border: 1px solid rgba(var(--fcms-muted-rgb), 0.28);
    color: var(--fcms-text);
}

.pcr-app .pcr-interaction .pcr-save {
    background: var(--fcms-primary);
    color: var(--fcms-bg);
}

@media (max-width: 767.98px) {
    .fcms-profile-pole-item,
    .fcms-profile-hours-grid {
        grid-template-columns: 1fr;
    }

    .fcms-profile-pole-actions {
        justify-content: space-between;
        width: 100%;
    }

    .fcms-profile-role-form {
        flex: 1 1 auto;
        min-width: 0;
    }

    .fcms-profile-role-form .btn-group {
        flex: 1 1 auto;
    }

    .fcms-profile-role-form .btn-group .btn {
        flex: 1 1 0;
    }

    .fcms-dashboard-next-shift {
        align-items: flex-start;
        flex-direction: column;
    }

    .fcms-dashboard-hours-line {
        grid-template-columns: 1fr;
        gap: 0.45rem;
    }

    .fcms-my-shifts-overview {
        grid-template-columns: 1fr;
    }

    .fcms-my-next-shift,
    .fcms-my-shift-row {
        align-items: stretch;
        flex-direction: column;
    }

    .fcms-my-shift-actions {
        justify-content: flex-start;
    }

    .fcms-my-shift-actions .btn,
    .fcms-my-shift-actions form,
    .fcms-my-shift-actions form .btn {
        width: 100%;
    }

    .fcms-color-control {
        max-width: none;
    }
}

@media (max-width: 576px) {
    .fcms-docs-video-slot .video-js {
        min-height: 200px;
    }
}


