:root {
    --rz-primary: #4d59e3 !important;
    --rz-scheduler-event-background-color: #6d77e8 !important;
    --service-color: #fea66f;
    --service-color-light: #fff5ec;
    --housekeeping-color: #a17af0;
    --housekeeping-color-light: #ede8f6;
    --calendar-color: #fca5da;
    --calendar-color-light: #ffeffa;
    --provisioning-color: #6dd7a3;
    --provisioning-color-light: #f0fff9;
    --admin-color: #888;

    --bs-border-radius: 2rem !important;
    --bs-background-bg: #f6f6f6 !important;
}

html,
body {
    font-family: 'Garet', 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
    touch-action: manipulation;
    -ms-touch-action: manipulation;
}

/* Garet custom font */
@font-face {
    font-family: 'Garet';
    src: url('/fonts/Garet-Book.woff2') format('woff2'),
        url('/fonts/Garet-Book.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Garet';
    src: url('/fonts/Garet-Heavy.woff2') format('woff2'),
        url('/fonts/Garet-Heavy.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Apply Garet to headings H1-H5 */
h1,
h2,
h3,
h4,
h5 {
    font-family: 'Garet', 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
    font-weight: normal !important;
}

body {
    background: none !important;
}

.empty-layout {
    background: #8EA7EA !important;
    background: radial-gradient(at left top, #8EA7EA, #F2F7FF) !important;
}

html,
body,
#app,
.rz-layout {
    height: 100%;
    overflow: hidden;
}

.rz-layout {
    height: 100% !important;
}

h1:focus {
    outline: none;
}

.login-box-holder {
    min-width: 300px;
}

h1 {
    color: var(--rz-primary);
    font-size: 2.5rem;
}

h2 {
    font-size: 1.8rem;
}

h1,
h2,
h3,
h4 {
    font-weight: bolder;
    color: var(--rz-primary) !important;
}

a,
.btn-link {
    color: var(--rz-primary);
}

.btn,
.rz-button {
    align-self: center;
    padding: 10px 30px;
    font-family: 'Garet', 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
    letter-spacing: 2px;
}

.btn-primary {
    color: #fff;
    background-color: var(--rz-primary);
    border-color: #1861ac;
}

button,
.rz-card {
    border-radius: 30px !important;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

.loading-progress circle {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: var(--rz-primary);
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

code {
    color: #c02d76;
}

.form-floating>.form-control-plaintext::placeholder,
.form-floating>.form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating>.form-control-plaintext:focus::placeholder,
.form-floating>.form-control:focus::placeholder {
    text-align: start;
}

.nav-list {}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0px;
    height: 100%;
}

header ul li {
    flex-grow: 1;
    display: flex;
    align-items: center;
    flex-direction: row;
}

header ul li a {
    padding: 10px 0px;
    display: block;
    text-align: center;
    width: 100%;
    text-decoration: none;
    font-size: 1.3rem;
    color: #333;
    margin-top: 15px;
}

nav {
    flex-grow: 1;
}

.title-holder {
    margin: 25px 0px 5px 0px;
    color: var(--rz-primary);
}

.title-holder h3 {
    font-size: 3rem;
}

header {
    display: flex;
    align-items: stretch;
    border-bottom: #333 2px solid;
    margin-left: 2rem !important;
    margin-right: 1.5rem !important;
}

.header {
    display: flex;
    justify-content: space-between;
}

.boss-toggle-holder {
    display: flex;
    flex-direction: row;
    align-items: center;
}

#boss-toggle-button {
    margin-top: 10px;
}

.service-theme button.rz-primary {
    background-color: var(--service-color) !important;
    color: #fff !important;
}

.service-theme .rz-card {
    background-color: var(--service-color-light) !important;
}

.housekeeping-theme button.rz-primary {
    background-color: var(--housekeeping-color) !important;
    color: #fff !important;
}

.housekeeping-theme .rz-card {
    background-color: var(--housekeeping-color-light) !important;
}

.laundry-theme button.rz-primary {
    background-color: var(--laundry-color) !important;
    color: #fff !important;
}

.laundry-theme .rz-card {
    background-color: var(--laundry-color-light) !important;
}

.provisioning-theme button.rz-primary {
    background-color: var(--provisioning-color) !important;
    color: #fff !important;
}

.calendar-theme button.rz-primary {
    background-color: var(--calendar-color) !important;
    color: #fff !important;
}

.calendar-theme .rz-card {
    background-color: var(--calendar-color-light) !important;
}

.provisioning-theme .rz-card {
    background-color: var(--provisioning-color-light) !important;
}

.normal-case {
    text-transform: none !important;
}

.form-control {
    height: 50px !important;
}

.flex-holder {
    display: flex;
    flex-direction: row;
    height: 100%;
    align-items: center;
}

.page {
    height: 100%;
}

main {
    height: 100%;
}

.content {
    height: 100%;
}

/*
 * EmptyLayout (Login, ResetPassword, ChangePassword, ForceTwoFactorSetup,
 * YachtSelection, Home, Privacy, Terms, AcceptInvite, DeclineInvite) nests
 * `.flex-holder > .page > main > article.content`. That whole chain — plus
 * the global `html, body, #app, .rz-layout { overflow: hidden }` rule above —
 * gives every EmptyLayout page a fixed, non-scrolling 100vh box. Pages whose
 * content is taller than the viewport (e.g. the accept-invite form on a
 * small/mobile screen, or the vertically-centered login/invite forms) get
 * silently clipped with no way to reach the rest of the content.
 *
 * Scope the fix to this exact selector chain (unique to EmptyLayout — see
 * `.main .content` below, used by MainLayout/AdminLayout, which keeps its own
 * `overflow-y: hidden` untouched) so the authenticated app shell's
 * fixed-viewport + internal-scroll-pane pattern is unaffected.
 */
.flex-holder .page main .content {
    overflow-y: auto;
}

.flex-holder .page {
    flex-grow: 1;
}

.login-left {
    padding-right: 10%;
    display: flex;
    flex-direction: column;
    align-self: center;
    gap: 2rem;
}

.forgot-password {
    text-align: center;
}

.forgot-password a {
    color: var(--bs-border-color-translucent);
    text-decoration: none;
}

.rz-button-xlg {
    padding: 2rem 5rem !important;
    border-radius: 4rem !important;
    font-size: 1.5rem !important;
}

.layout {
    display: flex;
    height: 100%;
    flex-direction: column;
}

.header {
    border-bottom: 1px #ddd solid;
    padding: 10px 30px;
}

.header .logo-holder {
    height: 50px;
}

.header .logo-holder a {
    display: inline-flex;
    align-items: center;
    height: 100%;
    border-radius: 6px;
    text-decoration: none;
}

.header .logo-holder a:hover {
    opacity: 0.85;
}

.header .current-yacht {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
    font-weight: 600;
    color: var(--rz-text-color, #2a2a2a);
}

.header .current-yacht.clickable {
    cursor: pointer;
    background: none;
    border: none;
    font: inherit;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

.header .current-yacht.clickable:hover {
    background: rgba(0, 0, 0, 0.05);
}

.header .current-yacht .yacht-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 40vw;
}

.header .logo-holder img {
    height: 100%;
}

.main {
    height: calc(100% - 71px);
    display: flex;
    flex-direction: row;
}

.main .content {
    flex-grow: 1;
    overflow-y: hidden;
    display: flex;
    flex-direction: column;
}

.main .sidebar {
    width: 60px;
    min-width: 60px;
    background-color: #eee;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.main .sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.main .sidebar ul li {
    text-align: center;
    padding: 10px 0;
    width: 100%;
    padding: 10px;
    height: 60px;
}

.main .sidebar ul li a {
    text-decoration: none;
    color: #333;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    padding: 8px 0px;
}

.main .sidebar ul li a.active {
    background-color: var(--rz-primary-lighter);
}

.main .sidebar ul li a i {
    font-size: 1.5rem;
}

.page-title {
    background-color: transparent;
    padding: 20px 40px;
    font-weight: bold !important;
    margin-bottom: 0px;
}

.page-title.no-top {
    padding-top: 0px;
    margin-bottom: 0px;

}

.page-back {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--rz-primary);
    text-decoration: none;
    font-size: 1.2rem;
    padding: 20px 40px;
    width: 100%;
}

.page-back.no-bottom {
    margin-bottom: 0px;
    padding-bottom: 0px;
}

.container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0px !important;
    max-height: 100% !important;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.housekeeping-theme .page-title,
.housekeeping-theme .page-back {
    background-color: var(--housekeeping-color);
    background: linear-gradient(90deg, #00000000, var(--housekeeping-color))
}

.admin-theme .page-title,
.admin-theme .page-back {
    background-color: var(--housekeeping-color);
    background: linear-gradient(90deg, #00000000, var(--admin-color))
}

.calendar-theme .page-title,
.calendar-theme .page-back {
    background-color: var(--calendar-color);
    background: linear-gradient(90deg, #00000000, var(--calendar-color))
}

.content-container {
    padding: 10px 40px 0px 40px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    gap: 20px;
}

.section-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

.section-navigation ul li a {
    text-decoration: none;
    color: #888;
    padding: 10px 15px;
    border-radius: 10px;
    display: block;
    font-size: 1.2rem;
}

.section-navigation ul li:first-child a {
    padding-left: 0px;
}

.section-navigation ul li a.active {
    text-decoration: underline;
    color: var(--rz-primary);
}

.section-navigation.section-navigation-sub ul {
    gap: 0;
}

.section-navigation.section-navigation-sub ul li a {
    font-size: 0.9rem;
    padding: 4px 14px;
}

.section-navigation.section-navigation-sub ul li:first-child a {
    padding-left: 0;
}

.section-navigation.section-navigation-sub ul li + li {
    position: relative;
}

.section-navigation.section-navigation-sub ul li + li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 14px;
    width: 1px;
    background: #ccc;
    pointer-events: none;
}

.title-bar {
    margin-bottom: 10px !important;
    padding: 12px;
    border-radius: 40px;
    border: 1px #ccc solid !important;
    background-color: var(--rz-grid-header-background-color);
    min-height: 62px;
}

.title-bar .title-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.title-bar .title {
    margin: 0 !important;
    color: var(--rz-primary);
    font-weight: bold;
    font-size: 1.2rem;
    padding-inline: var(--rz-grid-header-title-padding-inline);
}

/* Reset countdown: small, in the accent blue, tucked under the title inside the box. */
.title-bar .reset-info {
    color: var(--rz-primary);
    font-size: 0.65rem;
    font-weight: normal;
    line-height: 1.1;
    margin-top: 1px;
    padding-inline: var(--rz-grid-header-title-padding-inline);
}

.task-list-view:last-child {
    margin-right: 0px;
}

.task-list-view {
    margin-right: 20px;
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
}

.task-list-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding-top: 16px;
    padding-bottom: 24px;
    /* Fade only the bottom (scroll cue); keep the top row fully opaque so it doesn't look faded at rest. */
    -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 32px), transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 32px), transparent 100%);
}

.daily-tasks-stack {
    flex: 1 1 auto;
    min-height: 0;
}

.task-row {
    margin-bottom: 10px;
    align-items: center !important;
    flex: 1;
}

.task-row .rz-stack {
    align-items: center !important;
}

.calendar-header h2,
.calendar-header h3 {
    margin-bottom: 0px !important;
}

.user-settings {
    position: relative;
    display: flex;
}

.user-box {
    display: flex;
    gap: 20px;
    background: #eee;
    border-radius: 30px;
    border: 1px #aaa solid;
    height: 100%;
    align-items: center;
    padding: 2px 4px;
    color: var(--rz-primary);
    cursor: pointer;
}

.user-icon {
    flex: 1;
    display: flex;
    background-color: var(--rz-primary);
    padding: 5px;
    border-radius: 30px;
    color: #fff;
    font-weight: bold;
}

.user-box .rzi {
    font-size: 30px;
}

.user-menu {
    position: absolute;
    display: flex;
    flex-direction: column;
    background-color: #eee;
    border-radius: 20px;
    width: 100%;
    margin-top: 5px;
    border: 1px #aaa solid;
    padding: 0;
    overflow: hidden;
    top: 50px;
    z-index: 100;
}

.user-menu a {
    text-decoration: none;
    display: flex;
    gap: 10px;
    padding: 10px;
    cursor: pointer;
}

.user-menu a:hover {
    background-color: var(--rz-primary-lighter);
    color: #fff;
}

.dropdown-trigger {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
}

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

.dashboard-hero {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 0.35rem;
}

.hero-heading {
    font-size: 1.45rem;
    font-weight: 700;
    color: #e5e7eb;
}

.hero-sub {
    color: #cbd5e1;
    font-size: 0.95rem;
}

.pill-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.pill {
    background: rgba(148, 163, 184, 0.12);
    color: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, 0.25);
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    backdrop-filter: blur(4px);
}

.pill.secondary {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.25);
}

.stat-card {
    padding: 1rem;
    border-radius: 8px;
    background: linear-gradient(145deg, rgba(31, 41, 55, 0.92), rgba(15, 23, 42, 0.94));
    color: #e5e7eb;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.04);
    position: relative;
    overflow: hidden;
}

.stat-card.clickable {
    cursor: pointer;
    transition: transform 120ms ease, box-shadow 120ms ease;
}

.stat-card.clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.stat-card::after {
    content: "";
    position: absolute;
    top: -30%;
    right: -20%;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.18), transparent 60%);
    opacity: 0.8;
    pointer-events: none;
}

.stat-card.warning {
    background: linear-gradient(145deg, rgba(120, 53, 15, 0.9), rgba(88, 28, 13, 0.95));
}

.stat-card.success {
    background: linear-gradient(145deg, rgba(6, 95, 70, 0.95), rgba(5, 46, 22, 0.95));
}

.stat-label {
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #cbd5e1;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #f8fafc;
}

.stat-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.35rem;
    gap: 0.5rem;
}

.chip {
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    border-radius: 999px;
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.chip.muted {
    background: rgba(148, 163, 184, 0.08);
    color: #cbd5e1;
}

@media (max-width: 720px) {
    .dashboard-hero {
        flex-direction: column;
    }

    .pill-row {
        justify-content: flex-start;
    }
}

.loading {
    padding: 0.5rem 0;
}

.alert {
    padding: 0.4rem 0.65rem;
    border-radius: 6px;
}

.alert-danger {
    background: #7f1d1d;
    color: #fecdd3;
}

.status-column span {
    line-height: 0px !important;
    text-align: center;
}

.rz-column-title-content {
    font-size: 1.2rem !important;
    padding-inline: var(--rz-grid-header-title-padding-inline);
}

.rz-grid-table {
    margin-bottom: 20px;
}

.rz-grid-table thead tr th div {
    border-radius: 40px !important;
    min-height: 62px !important;
}

.rz-dialog-content {
    height: 100%;
}

.rz-dialog-content .rz-form {
    height: 100%;
}

.rz-dialog-content .rz-form>.rz-stack {
    height: 100%;
}

:not(.rz-form-field-content)>.rz-colorpicker.rz-state-disabled,
:not(.rz-form-field-content)>.rz-numeric.rz-state-disabled,
:not(.rz-form-field-content)>.rz-listbox.rz-state-disabled,
:not(.rz-form-field-content)>.rz-autocomplete-input:disabled,
:not(.rz-form-field-content)>.rz-state-disabled.rz-autocomplete,
:not(.rz-form-field-content)>.rz-state-disabled.rz-multiselect,
:not(.rz-form-field-content)>.rz-state-disabled.rz-dropdown,
:not(.rz-form-field-content)>.rz-colorpicker:disabled,
.rz-lookup-search :not(.rz-form-field-content)>input:disabled,
:not(.rz-form-field-content)>.rz-numeric:disabled,
.rz-datepicker:not(.rz-form-field-content)>.rz-inputtext:disabled,
:not(.rz-form-field-content)>.rz-multiselect:disabled,
:not(.rz-form-field-content)>.rz-dropdown:disabled,
:not(.rz-form-field-content)>.mask:disabled,
:not(.rz-form-field-content)>.rz-textarea:disabled,
:not(.rz-form-field-content)>.rz-textbox:disabled {
    background-color: transparent !important;
    border: none !important;
    opacity: 1 !important;
    color: var(--rz-input-value-color) !important;
    padding: 0 !important;
    justify-content: center !important;
    outline: 0px solid transparent !important;
}

:not(.rz-form-field-content)>.rz-colorpicker.rz-state-disabled .rz-inputtext,
:not(.rz-form-field-content)>.rz-numeric.rz-state-disabled .rz-inputtext,
:not(.rz-form-field-content)>.rz-listbox.rz-state-disabled .rz-inputtext,
:not(.rz-form-field-content)>.rz-autocomplete-input:disabled .rz-inputtext,
:not(.rz-form-field-content)>.rz-state-disabled.rz-autocomplete .rz-inputtext,
:not(.rz-form-field-content)>.rz-state-disabled.rz-multiselect .rz-inputtext,
:not(.rz-form-field-content)>.rz-state-disabled.rz-dropdown .rz-inputtext,
:not(.rz-form-field-content)>.rz-colorpicker:disabled .rz-inputtext,
.rz-lookup-search :not(.rz-form-field-content)>input:disabled .rz-inputtext,
:not(.rz-form-field-content)>.rz-numeric:disabled .rz-inputtext,
.rz-datepicker:not(.rz-form-field-content)>.rz-inputtext:disabled .rz-inputtext,
:not(.rz-form-field-content)>.rz-multiselect:disabled .rz-inputtext,
:not(.rz-form-field-content)>.rz-dropdown:disabled .rz-inputtext,
:not(.rz-form-field-content)>.mask:disabled .rz-inputtext,
:not(.rz-form-field-content)>.rz-textarea:disabled .rz-inputtext,
:not(.rz-form-field-content)>.rz-textbox:disabled .rz-inputtext {
    background-color: transparent !important;
    color: var(--rz-input-value-color) !important;
}


.rz-state-disabled .rz-placeholder,
.rz-state-disabled .rz-inputtext::placeholder,
.rz-state-disabled .rz-textarea::placeholder,
.rz-state-disabled .rz-dropdown-trigger,
.rz-state-disabled .rz-button-icon-left {
    display: none !important;
}

/* Stealth Mode Notice Bar */
.stealth-mode-notice {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    padding: 1rem;
    border-bottom: 3px solid #92400e;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.stealth-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 1400px;
    margin: 0 auto;
    color: white;
    font-weight: 500;
    justify-content: center;
}

.stealth-content svg {
    flex-shrink: 0;
    font-size: 1.5rem;
}

.stealth-content strong {
    font-weight: 700;
    text-decoration: underline;
}

.rz-event-content {
    background-color: transparent !important;
}
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: rgba(20, 20, 30, 0.95);
    color: #fff;
    box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.25);
    font-size: 0.9rem;
}

.cookie-consent-banner__text {
    flex: 1 1 320px;
    line-height: 1.4;
}

.cookie-consent-banner__text a {
    color: #ffd97a;
    text-decoration: underline;
}

.cookie-consent-banner__actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

/*
 * The banner is `position: fixed` at the bottom, and `html, body` are a fixed
 * 100% box with `overflow: hidden`, so padding on the body would create no
 * usable space - the reservation has to go on whichever element actually
 * scrolls. Both layouts get it:
 *
 *   .flex-holder .page main .content  EmptyLayout's scroll pane (Login et al)
 *   .main .content                    MainLayout/AdminLayout's app shell
 *
 * --cookie-banner-height is published by neatYacht.cookieBanner (core.js) from
 * the banner's measured height. The fallback covers the window between the
 * banner rendering and the measurement landing, and browsers without
 * ResizeObserver; it is deliberately generous, since reserving slightly too
 * much space is invisible whereas too little puts a control back under the
 * banner.
 */
body.cookie-banner-visible .flex-holder .page main .content,
body.cookie-banner-visible .main .content {
    padding-bottom: var(--cookie-banner-height, 12rem);
}

.legal-page {
    max-width: 760px;
    margin: 2rem auto;
    padding: 1.5rem;
    line-height: 1.55;
}

.legal-page h1 {
    margin-top: 0;
}

.legal-page h2 {
    margin-top: 1.5rem;
}

.legal-placeholder {
    background: #fff7e6;
    border-left: 4px solid #ffc857;
    padding: 0.75rem 1rem;
    border-radius: 0 4px 4px 0;
}

.legal-effective {
    color: rgba(0, 0, 0, 0.6);
    font-size: 0.9rem;
}

.legal-nav {
    margin-top: 2.5rem;
    color: rgba(0, 0, 0, 0.6);
}

.legal-footer {
    text-align: center;
    padding: 1rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
}

.legal-footer a {
    color: inherit;
    text-decoration: underline;
}

.legal-footer span {
    margin: 0 0.4rem;
    opacity: 0.6;
}

/* Blocking gate shown until the user accepts the current legal documents. */
.terms-gate-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    padding: 1rem;
}

.terms-gate-card {
    background: #fff;
    color: #1f1f1f;
    border-radius: 10px;
    padding: 1.5rem;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.terms-gate-card h3 {
    margin-top: 0;
}

/* Groups the lower nav + legal links as one flex child so the sidebar's
   space-between layout keeps them pinned to the bottom. */
.sidebar-bottom {
    display: flex;
    flex-direction: column;
}

/* Privacy/Terms links pinned at the bottom of the main sidebar. */
.sidebar-legal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.5rem 0;
    font-size: 0.7rem;
}

.sidebar-legal a {
    color: #8a8a8a;
    text-decoration: none;
}

.sidebar-legal a:hover {
    text-decoration: underline;
}
