﻿html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

:root {
    --app-grid-height: 95svh; /*  default for all grids */
    overflow-y: hidden;
}

a, .btn-link {
    color: transparent;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.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;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

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

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.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."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.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;
}

.dxbl-grid {
    font-size: 24px;
    height: var(--app-grid-height);
}

.dxbl-grid-group-row > td {
    font-size: 24px !important;
}

.dxbl-grid-header-content {
    font-size: 16px;
    color: crimson;
}

.fleet-page {
    --app-grid-height: 32svh;
}

/* Hide the whole Day column on < md screens */
@media (max-width: 767.98px) {
    .dxbl-grid .col-day {
        display: none !important;
    }
}

.dxbl-grid .alt-item > td {
    font-size: 18px !important;
    background-color: lightblue;
}

.leaflet-touch .leaflet-control-attribution, .leaflet-touch .leaflet-control-layers, .leaflet-touch .leaflet-bar {
    box-shadow: none;
    display: none;
}



.plane-badge.flash {
    animation-name: flashHide;
    animation-duration: var(--badge-flash-duration, 8s); /* make global via :root if you like */
    animation-iteration-count: infinite;
    animation-timing-function: steps(1,end); /* instant toggle */
    /* animation-delay is set inline per reg */
}


/* Badge */
.plane-badge {
    color: #fff;
    font: 600 12px/1.2 system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
    padding: 2px 6px;
    border-radius: 10px;
    box-shadow: 0 0 0 2px rgba(0,0,0,.15);
    user-select: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
/* already in your file, verify this matches */
.plane-badge-wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translate(var(--dx,0px), var(--dy,0px));
}

/* Badge flash: invisible for 50% (desynced by per-reg delay) */
@keyframes flashHide {
    0%, 49.999% {
        opacity: 1;
        visibility: visible;
    }

    50%, 100% {
        opacity: 0;
        visibility: hidden;
    }
}

:root {
    --badge-flash-duration: 4s;
    overflow-y: hidden;
}
/* change globally if you want */
.plane-badge.flash {
    animation-name: flashHide;
    animation-duration: var(--badge-flash-duration, 2s);
    animation-iteration-count: infinite;
    animation-timing-function: steps(1,end);
}

/* Plane spanner (maintenance) centered on aircraft */
.plane-svg {
    position: relative;
    zoom: 1;
}
/* Maintenance: steady halo (no pulse) */
.pulse-ring.static {
    animation: none;
    opacity: 1;
    transform: scale(1.15); /* stays around the plane */
    width: 30px;
    height: 30px; /* a touch larger than the plane */
    border-width: 2px;
    box-shadow: 0 0 8px var(--pulse-color);
}

.plane-maint-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    z-index: 2;
    pointer-events: none;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.55));
}

    .plane-maint-icon svg {
        width: 18px;
        height: 18px;
    }

    .plane-maint-icon path {
        fill: red;
        stroke: currentColor;
        stroke-width: 20;
        stroke-linejoin: round;
    }

/* Landed: plane icon flashes (unique duration/delay per reg) */
@keyframes flashPlane {
    0%, 49.999% {
        opacity: 1;
    }

    50%, 100% {
        opacity: 0;
    }
}

.flash-plane {
    animation-name: flashPlane;
    animation-duration: var(--plane-flash-duration, 2.6s);
    animation-iteration-count: infinite;
    animation-timing-function: steps(1,end);
    animation-delay: var(--plane-flash-delay, 0s);
}


/* 65/35 vertical split */
.grid-rows-65-35 {
    height: 100svh; /* fill the screen */
    display: grid;
    grid-template-rows: 100%;
    gap: 0; /* optional spacing between panes */
}

    /* Make content behave nicely inside panes */
    .grid-rows-65-35 .pane {
        min-height: 0; /* allow children to shrink */
    }

    .grid-rows-65-35 .pane-bottom {
        overflow: auto; /* scroll schedule if needed */
    }

.dxbl-drawer.dxbl-drawer-overlap > .dxbl-drawer-panel {
    z-index: 190000 !important;
}

/* Panel shell */
.tune-card {
    background: #0f172acc;
    color: #e5e7eb;
    border-radius: 10px;
    padding: 10px 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,.35);
    font: 500 12px system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Arial;
    min-width: 240px
}

.tune-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px
}

.tune-close {
    all: unset;
    cursor: pointer;
    color: #93c5fd;
    padding: 2px 6px;
    border-radius: 6px
}

    .tune-close:hover {
        background: #1f2937
    }

/* Rows */
.tune-label {
    display: block;
    margin: .4rem 0 .2rem
}

.tune-hint {
    font-size: 11px;
    color: #9ca3af;
    margin: -2px 0 6px
}

/* Stepper layout */
.tune-stepper {
    display: grid;
    grid-template-columns: 24px 1fr 24px auto;
    gap: 6px;
    align-items: center;
    margin-bottom: .35rem
}

.tune-btn {
    all: unset;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: #1f2937;
    color: #e5e7eb;
    cursor: pointer;
    user-select: none
}

    .tune-btn:active {
        transform: scale(.96)
    }

.tune-out {
    min-width: 40px;
    text-align: right;
    color: #93c5fd;
    font-weight: 600
}
/* make sure the control is clickable and above map layers */
.tune-launch-wrap {
    z-index: 1000;
    pointer-events: auto;
}

.tune-launch {
    all: unset;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: #0f172acc;
    color: #e5e7eb;
    box-shadow: 0 4px 12px rgba(0,0,0,.35);
    margin: 6px;
    font: 600 14px system-ui;
}

    .tune-launch:hover {
        background: #111827;
    }

    .tune-launch:active {
        transform: translateY(1px);
    }

/* optional: while hovering the panel, don't show the grab cursor */
.leaflet-control .tune-panel, .leaflet-control .tune-launch {
    cursor: default;
}

.leaflet-control .tune-launch {
    cursor: pointer;
}
/* pointer on the button itself */

.dxbl-modal > .dxbl-modal-root > .dxbl-popup > .dxbl-modal-content > .dxbl-modal-body {
    background-color: white;
    color: black;
}

.flash-deferred {
    animation: flashDeferred 2s linear infinite;
}

.dxc-grids-group path {
    opacity: 0.3 !important;
}

.flash-blue-reg {
    animation: flash-bluereg 2s linear infinite;
    border-color: #90caf9 !important;
}

@keyframes flash-bluereg {
    0% {
        background-color: #ccffcc;
    }

    40% {
        background-color: #ffe8cc; /* light blue */
    }

    60% {
        background-color: #e3f0ff; /* light blue */
    }

    100% {
        background-color: #ffffff;
    }
}

@keyframes flashDeferred {
    0% {
        background-color: #ffffff;
    }

    40% {
        background-color: #ffe8cc; /* light blue */
    }

    60% {
        background-color: #e3f0ff; /* light blue */
    }

    100% {
        background-color: #ffffff;
    }
}

.nowrap {
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: normal;
    white-space: nowrap;
    width: 1px;
}


.scorecard-page .dxc-val-constant-lines text {
    fill: red !important; /* your desired color */
    font-size: 12px !important;
}

.scorecard-page .cellspark .dxc-val-elements text {
    fill: red !important; /* your desired color */
    font-size: 18px !important;
}

.dxc-val-elements text {
    fill: goldenrod !important; /* your desired color */
    top: 60px !important;
    font-size: 18px !important;
}


.scorecard-page .dxc-val-constant-lines path {
    stroke: red !important;
}

.dxc-val-line path > g {
    stroke: black !important;
    stroke-width: 1;
}

.dxc-axes-group dxc-val-line path[stroke="#767676"] {
    stroke: black !important;
}
/*.dxc-markers {
    fill:cadetblue;
}*/
.legend-chart {
    background-color: transparent !important;
}

.cellspark .dxc-val-constant-lines text {
    fill: red !important;
    font-size: 12px !important;
}

.scorecard-page:not(.cellspark).dxc-val-constant-lines text {
    fill: goldenrod !important;
    font-weight: 100 !important;
    font-size: 16px !important;
}
/* Change argument axis labels */
.dxc-arg-elements text {
    fill: goldenrod !important; /* your desired color */
    font-size: 18px !important;
}
/* Optional: You can apply safe area to specific elements */
header {
    padding-top: env(safe-area-inset-top);
}


.dxbl-grid > .dxbl-grid-top-panel > .dxbl-grid-search-box-container {
    margin-left: 10px !important;
    margin-right: 10px !important;
    min-width: 270px !important;
}

/* Target the internal input */
.custom-searchbox input[type="text"] {
    font-size: 16px !important; /* Prevent iOS zoom */
    font-family: 'Segoe UI', sans-serif; /* Or your preferred font */
    color: #333;
}

.dxbl-grid .dxbl-text-edit {
    font-size: 17px !important;
    color: blue;
}

.dxbl-grid-search-box {
    font-size: 17px;
    color: brown !important;
}

.dxbl-grid {
    height: 92vh; /* 90% of the viewport height */
    max-height: calc(100vh - 20px); /* Prevents overflowing */
}
/* Unique styling for card-like buttons */
.uro-button-group {
    display: flex;
    gap: 10px;
    padding: 10px;
}

:root {
    --z-index-drawer: 1100; /* Drawer above all */
    --z-index-sticky-header: 1000; /* Sticky header below drawer */
    --z-index-overlay: 1200; /* Modal overlay if needed */
    --z-index-sidebar: 1100; /* Drawer above all */
}

.uro-card-button {
    background: linear-gradient(71deg, #0d1212, #3da077, #0d1212);
    border: none;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    min-width: 90px;
}

    .uro-card-button:hover {
        transform: translateY(-5px);
        box-shadow: 0 0 10px rgba(61, 160, 119, 0.8);
    }

    .uro-card-button:active {
        transform: translateY(0);
        box-shadow: none;
    }

    /* Red Gradient for "All" Button */
    .uro-card-button:last-child {
        background: linear-gradient(71deg, #121012, #ff4d4d, #121012);
    }

@media screen and (max-width: 768px) {
    .uro-card-button {
        padding: 8px 12px;
        font-size: 14px;
    }

    .dxc-val-constant-lines text {
        fill: Goldenrod !important;
        font-weight: 100 !important;
        font-size: 12px !important;
    }
}



/* Unique class prefix: uro- */
.uro-card {
    max-width: 100%;
    font-weight: bold;
    border-radius: 20px;
    overflow: hidden;
    margin: 10px 0;
    transition: transform 1.3s ease;
    padding: 5px;
    color: black;
}

/* Green Gradient for Closed Tasks */
.uro-bg-green-box {
    background: darkseagreen;
}

#components-reconnect-modal {
    display: none !important;
}

.components-reconnect-modal {
    display: none !important;
}
/* Red Gradient for Open Tasks */
.uro-bg-red-box {
    background: palevioletred;
}

.uro-bg-blue-box {
    background: lightblue;
}
/* Card Container */
.uro-container-card {
    padding: 8px;
    border-radius: 20px;
    background: transparent; /* Ensure the background shows the gradient */
    text-align: center;
}

/* Card Title */
.uro-card-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Card Description */
.uro-card-description {
    font-size: 16px;
    line-height: 1.6;
    text-align: left;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

/* Hover Effect */
.uro-card:hover {
    transform: translateY(-5px);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .uro-card-title {
        font-size: 20px;
    }

    .uro-card-description {
        font-size: 18px;
    }
}



/* ===== Full Calendar Modern Style ===== */

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

body {
    font-family: "Martel Sans", sans-serif;
    background: #f8f9fa;
    color: #333;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.fm-calendar {
    padding: 1rem;
}

.fm-card {
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.fm-card-header {
    display: flex;
    justify-content: space-between;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #ddd;
}

/* Calendar Wrapper */
.fm-calendar {
    padding: 0 0.1rem 0.1rem 0.1rem;
    margin: 0 auto;
}

/* Month Title */
.fm-month-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #3d7cbf;
    text-align: center;
}

/* Grid Layout: 7 Cards per Row */
.fm-card-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1rem;
    padding: 1rem 0;
}

@media (max-width: 1024px) {
    .fm-card-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .fm-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .fm-card-grid {
        grid-template-columns: 1fr;
    }
}
/* Month Title */
.fm-month-title {
    font-size: 2.2rem;
    color: #3d7cbf;
    text-align: center;
    border-bottom: 2px solid #ddd;
    padding-bottom: 0.2rem;
}
/* Individual Card */
.fm-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 300px;
}

    .fm-card:hover {
        transform: translateY(-5px);
    }

/* Card Header */
.fm-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.5rem;
}

.fm-card-date {
    font-size: 1.25rem;
    font-weight: bold;
    color: #4169e1;
}

.fm-card-tug {
    font-size: 1rem;
    color: #555;
}

/* Card Content */
.fm-card-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Content Sections */
.fm-card-section {
    padding: 0.5rem 0;
    border-top: 1px solid #eee;
}

    .fm-card-section strong {
        display: block;
        margin-bottom: 0.25rem;
        color: #333;
    }

    .fm-card-section ul {
        padding: 0;
        list-style: none;
        margin: 0;
    }

    .fm-card-section li {
        background: #f0f8ff;
        padding: 0.25rem 0.5rem;
        border-radius: 5px;
        margin-bottom: 0.25rem;
        font-size: 0.9rem;
        color: #555;
    }

/* No Data Placeholder */
.fm-no-data {
    margin: 0;
    color: #888;
    font-size: 0.9rem;
    text-align: center;
}




html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
}

/**/
/* Grid Layout for Cards */

.fuel-card {
    background-color: black;
    color: white;
    padding: 20px;
    border-radius: 10px;
    font-family: 'Consolas', monospace;
    max-width: 450px;
    margin: auto;
    text-align: center;
}

.roster-card {
    width: 350px;
    border: 1px solid black;
    border-radius: 8px;
    margin-bottom: 16px;
    padding: 18px;
    position: relative;
}

html, body {
    height: 100%;
    display: flex;
    flex-direction: column;
}

html, body {
    height: 100%;
    overflow: visible !important;
    display: flex;
    flex-direction: column;
}

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

.scorecard-container {

    display: flex;
    flex-direction: column;
}

.leave-popup {
    padding: 30px;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

.button-link {
    text-decoration: unset;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    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;
    }

.title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: 0.625rem;
}

    .title.title-secondary {
        padding-top: 0.313rem;
        padding-bottom: 0;
        color: var(--bs-secondary-color);
    }

.title-header-text {
    font-size: 2.5rem;
    line-height: 3rem;
    font-weight: 600;
    letter-spacing: 0rem;
    padding: 0.3125rem 0;
}

.title-content-text {
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 2.5rem;
    letter-spacing: 0rem;
}

.main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.block-content {
    width: 31.25rem;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    max-width: 100%;
}


.or {
    display: flex;
    flex-direction: row;
    align-items: center;
}

    .or .or-line {
        border-bottom: 1px solid var(--bs-body-color);
        width: 100%;
        opacity: 0.2;
    }

    .or .or-text {
        padding: 0 0.625rem 0px 0.625rem;
        font-size: 0.75rem;
        line-height: 1.125rem;
        color: var(--bs-body-color);
        opacity: 0.7;
    }

.links-area {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    padding-top: 0.625rem;
}

.links-container {
    display: flex;
    gap: 0.25rem;
    justify-content: center;
    align-items: center;
}

    .links-container .dot {
        height: 0.3125rem;
        width: 0.3125rem;
        margin: 0 0.1875rem;
        border-radius: 50%;
        background-color: var(--bs-body-color);
        opacity: 0.7;
    }

.manage-layout {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.info-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.15;
    background: var(--bs-primary);
    z-index: -1;
}

.info-message {
    padding: 0.625rem 1rem 0.625rem 1rem;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .info-message.info-panel {
        margin-bottom: 0.625rem;
    }

.manage-content {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.large-input {
    height: 4.3125rem;
    font-size: 1.875rem;
}

.title-content-text-secondary {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.button-group {
    display: flex;
    flex-direction: row;
    gap: 0.625rem;
}

.confirm-button {
    margin-top: 0.3125rem;
}

.display-desktop {
    display: block;
}

.display-mobile {
    display: none;
}

.icon-external-provider {
    width: 1rem;
    height: 1rem;
}

.icon-google {
    background-image: url("/images/account/providers/google-logo.svg")
}

.icon-facebook {
    background-image: url("/images/account/providers/facebook-logo.svg")
}

.icon-microsoft {
    background-image: url("/images/account/providers/microsoft-logo.svg")
}

.icon-twitter {
    background-image: url("/images/account/providers/x-logo.svg")
}

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

    .display-mobile {
        display: block;
    }
}


/*# OLD CSS */

.card-wrapper-DCS {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    background-color: #000;
    padding: 20px;
}

/* Individual Card */
.card-for-DCS {
    background-color: #000;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 16px;
    flex: 1 1 calc(33.333% - 20px); /* Three columns */
    max-width: calc(33.333% - 20px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    color: #fff;
}

@media (max-width: 1024px) {
    .card-for-DCS {
        flex: 1 1 calc(50% - 20px); /* Two columns on medium screens */
        max-width: calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .card-for-DCS {
        flex: 1 1 100%; /* Single column on smaller screens */
        max-width: 100%;
    }
}

/* Group Header */
.group-header-DCS {
    font-size: 1.2rem;
    font-weight: bold;
    color: limegreen;
    margin-bottom: 12px;
    border-bottom: 2px solid limegreen;
    padding-bottom: 4px;
}

/* Row Styling */
.row-DCS {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

/* Header and Value Styling */
.label-DCS {
    font-weight: bold;
    color: limegreen;
}

.value-DCS {
    color: white;
}

.value-DCS-red {
    color: limegreen;
    font-weight: bold;
    text-decoration: underline;
}

.row-two-columns-DCS {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    gap: 20px;
}

.column-DCS {
    flex: 1;
    display: flex;
    justify-content: space-between;
}

.card-container2 {
    padding: 16px;
    display: flex;
    justify-content: center;
}

.card2 {
    background-color: black; /* Black background */
    border: 1px solid #444; /* Subtle border */
    border-radius: 8px;
    padding: 12px;
    width: 100%;
    max-width: 900px;
}

.grid-container2 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
    align-items: center;
    color: white; /* Green font for headers */
}

.row2 {
    display: contents; /* Ensures rows align properly */
}

.header2 {
    font-weight: bold;
    text-align: left;
    grid-column: span 2;
    color: limegreen; /* Green font for headers */
    display: flex;
    align-items: center; /* Align items vertically */
    gap: 1rem; /* Add spacing between items */
}

.value21 {
    text-align: left;
    grid-column: span 4;
    color: white !important; /* Fix misplaced `!important` */
    font-size: 1.2rem;
    flex: 1;
}

.group-header2 {
    grid-column: span 6; /* Make the header span the entire row */
    font-size: 1.3rem; /* Larger font size for headers */
    font-weight: bold;
    color: limegreen; /* Green font for group headers */
    margin-top: 16px;
    text-align: left;
    padding: 8px 0;
    border-bottom: 2px solid limegreen; /* Underline for separation */
}

@media (max-width: 600px) {
    .grid-container2 {
        grid-template-columns: 1fr; /* Single column layout for smaller screens */
    }

    .header2,
    .value2,
    .group-header2 {
        grid-column: span 1; /* Full-width for smaller screens */
    }

    .group-header2 {
        text-align: center; /* Center-align group headers on small screens */
    }
}


@media (max-width: 600px) {
    .grid-container {
        grid-template-columns: 1fr; /* Single column layout for small screens */
    }

    .header, .value {
        grid-column: span 1; /* Each takes up a full row */
    }
}


@media screen and (max-width: 768px) {
    .dx-form-layout-item {
        width: 100% !important;
    }
}


.form-grid-container {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr; /* Adjust column widths as needed */
    gap: 10px 20px; /* Add spacing between rows and columns */
    align-items: center;
    padding: 20px;
    background-color: #f8f9fa; /* Light background for contrast */
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.form-label {
    font-weight: bold;
    color: #333; /* Label color */
    text-align: right;
}

.form-value {
    color: #555; /* Value color */
    background: #f0f0f0; /* Light background for values */
    padding: 5px 10px;
    border-radius: 4px;
}

/* Apply gray background to FormLayout groups */
.dx-form-group {
    background-color: gray;
    padding: 10px;
    border-radius: 5px;
}

/* Style text boxes with black background and green font */
.dxbl-input-editor {
    background-color: black;
    color: black;
}

/* Ensure captions have green font */
.dx-form-item-label {
    color: green;
}

/* Optional: Style borders and padding for text boxes */
.dx-textbox input {
    border: 1px solid green;
    padding: 5px;
}

.bottom-memo {
    position: absolute;
    align-content: end;
}

.card-memo2a {
    background-color: cornsilk;
    top: 17px;
    width: 100%;
    border-radius: 4px;
    border: 1px solid groove;
    margin-top: 10px; /* Space to push it below the day-number-container */
    border: 1px solid blue;
}

.dxbl-memo-editor {
    background-color: transparent;
}

.card-memo2 {
    top: 40px;
    position: absolute !important;
    align-self: flex-end !important;
    width: 100%;
    border: 1px solid blue;
    border-radius: 4px;
    left: 0 !important;
}

.card-AppointmentMemo {
    position: absolute !important;
    align-self: flex-end !important;
    width: 100%;
    background-color: #ffe6e6;
    border: 1px solid green;
    border-radius: 4px;
    left: 0 !important;
}

.card-leave-memo {
    position: absolute !important;
    align-self: flex-end !important;
    width: 100%;
    background-color: #ffe6e6;
    border: 1px solid #cc0000;
    border-radius: 4px;
    left: 0 !important;
}

.leave-label {
    margin-top: 5px;
    font-size: 0.9rem;
    color: indianred;
}

.day-number-container {
    background-color: cornsilk;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    border-start-end-radius: 16px;
    border-start-start-radius: 16px;
    text-align: center;
    background-color: #f8f9fa; /* Optional: Background for better visibility */
    font-size: 1.2rem;
    font-weight: bold;
    z-index: 1; /* Ensure it stays on top */
    border-bottom: 1px solid #ddd; /* Optional: Separator line */
}

    .day-number-container.weekend {
        background-color: indianred; /* Light red background for weekends */
        color: black; /* Dark red text color for weekends */
        font-weight: bold; /* Emphasize weekends */
        border: groove;
    }

.calendar-card {
    position: relative;
    border: 1px solid #ccc;
    border-radius: 16px;
    padding: 10px;
    margin: 5px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 450px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px; /* Space between memo and day number */
}



.day-number {
    font-size: 1.2rem;
    font-weight: bold;
    margin-left: auto;
    white-space: nowrap;
}

.calendar-container {
    width: 100%;
    padding: 20px;
}

.calendar-header {
    text-align: center;
    margin-bottom: 20px;
}

.calendar-grid {
    display: grid;
    gap: 10px;
}

.header {
    grid-template-columns: repeat(7, 1fr);
}

.days {
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}



.calendar-card.empty {
    background-color: transparent;
    border: none;
    box-shadow: none;
}



.card-middle {
    position: absolute; /* Positions the day number absolutely */
    top: 0; /* Aligns to the top */
    right: 0; /* Aligns to the right */
    text-align: right; /* Ensures text is aligned to the right */
    padding: 5px;
    background-color: rgba(255, 255, 255, 0.9); /* Optional background for better visibility */
    border-radius: 4px; /* Optional rounded corners */
    font-size: 1rem;
    font-weight: bold;
    z-index: 1; /* Ensures it appears above other elements */
}

.card-bottom {
    align-self: flex-end !important;
    margin-bottom: 20px;
}

.card-memo {
    left: 0;
    top: 0;
    width: 90%; /* Set memo width to 90% */
    background-color: #fff;
    border: 1px solid #ccc;
}



.labels-container {
    align-self: flex-end !important;
    display: flex !important;
    left: 0 !important;
    justify-content: space-between; /* Push items to the left and right edges */
    padding: 0 10px; /* Optional: Add padding for spacing */
    width: 100%; /* Ensure full width of the container */
}







html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.content {
    padding-top: 1.1rem;
}

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

.invalid {
    outline: 1px solid red;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.calendar-day-header {
    text-align: center;
    padding: 10px;
    font-weight: bold;
    border: 1px solid #ddd;
}

.weekday {
    background-color: #f9f9f9; /* Light gray for weekdays */
    color: #000; /* Black text */
}

.weekend {
    background-color: #ffe6e6; /* Light red for weekends */
    color: #d00; /* Dark red text */
}

.validation-message {
    color: red;
}
/* Default image size (for desktop) */
.responsive-image {
    width: auto;
    height: auto;
    zoom: 60%;
}

/* For screens less than 768px (mobile) */
@media (max-width: 768px) {
    .responsive-image {
        width: auto;
        height: auto;
    }

    .fuel-card {
        background-color: black;
        color: white;
        padding: 20px;
        border-radius: 10px;
        font-family: 'Consolas', monospace;
        width: 95%;
        margin: auto;
        text-align: center;
    }
}



#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    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;
    }

.test1 {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 90%;
}

.col {
    flex: 1;
    text-align: center;
    font-size: 1rem; /* Medium font size */
    padding: 2px; /* Smaller padding for each column */
}

.colv {
    flex: 1;
    text-align: center;
    font-size: 1.2rem; /* Medium font size */
    padding: 2px; /* Smaller padding for each column */
    color: green;
}

.col:first-child {
    text-align: left;
}

.col:last-child {
    text-align: right;
}

.card .row:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for alternating rows */
    border-radius: 4px;
}

.tug-label-red {
    display: flex; /* To center the content inside the circle */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    font-size: 1rem; /* Adjust font size as needed */
    color: #333; /* Text color */
    background-color: red; /* White background */
    border: 2px solid #ccc; /* Optional: Add a border */
    border-radius: 30%; /* Makes it a circle */
    width: 60px; /* Fixed width for the circle */
    height: 30px; /* Fixed height for the circle */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Optional: Add a subtle shadow */
    text-align: center; /* Center text */
    white-space: nowrap; /* Prevent text wrapping */
    padding: 5px 20px 5px 20px; /* Correct syntax with units */
}

.tug-label {
    display: flex; /* To center the content inside the circle */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    font-size: 1rem; /* Adjust font size as needed */
    color: #333; /* Text color */
    background-color: lightgreen; /* White background */
    border: 2px solid #ccc; /* Optional: Add a border */
    border-radius: 30%; /* Makes it a circle */
    width: 60px; /* Fixed width for the circle */
    height: 30px; /* Fixed height for the circle */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Optional: Add a subtle shadow */
    text-align: center; /* Center text */
    white-space: nowrap; /* Prevent text wrapping */
    padding: 5px 20px 5px 20px; /* Correct syntax with units */
}

.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."
    }

.calendar-container {
    background: linear-gradient(45deg, #88bdbc, #5a7d7c);
    display: flex;
    flex-direction: column; /* Stack header and grid vertically */
    gap: 0; /* Remove any gap between elements */
    margin: 0;
    padding: 0;
}

.calendar-grid.header {
    display: grid;
    grid-template-columns: repeat(7, 1fr); /* 7 equal columns for days of the week */
    height: 40px; /* Header height */
    margin: 0;
    padding: 0;
    background-color: #f9f9f9; /* Optional background */
    border-bottom: 1px solid #ddd; /* Optional: separator line */
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr); /* 7 equal columns for days */
    margin: 0;
    padding: 0;
    gap: 3px; /* Remove spacing between cells */
}

.calendar-day-header {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: black;
    padding: 0;
    background: grey;
}

.calendar-day .day-number {
    position: absolute;
    top: 5px; /* Align to top */
    right: 5px; /* Align to right */
    font-size: 28px; /* Larger font size */
    font-weight: bold; /* Bold font */
    color: #333; /* Neutral color */
}

.calendar-day .day-Task {
    position: absolute;
    top: 0px; /* Align to top */
    left: 5px; /* Align to right */
    width: 75%; /* Ensure it takes most of the width */
}

.calendar-day .day-Leave {
    position: absolute;
    bottom: 20px; /* Align to top */
    left: 5px; /* Align to right */
    width: 75%; /* Ensure it takes most of the width */
}

.day-listbox-container {
    position: absolute;
    bottom: 0px; /* Place the ListBox near the bottom */
    left: 5px; /* Place the ListBox near the left */
    width: 50%; /* Ensure it takes most of the width */
    height: auto;
}

.grid-popup-style {
    min-width: 60%;
}

.cw-400 {
    width: 100%; /* Ensure the ListBox fits the container width */
}

.calendar-day .day-number-sm {
    display: none;
}

.chi-220 {
    height: auto; /* Optional: Control the ListBox height */
    max-height: 90px; /* Optional: Limit the ListBox height */
    overflow-y: auto; /* Add a scrollbar if content overflows */
}

.calendar-day {
    position: relative; /* Allows positioning of children */
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px; /* Height of the calendar day */
    background-color: #f0f8ff; /* Default background color */
    border: 1px solid #ddd; /* Border around the day */
    font-size: 14px;
    margin: 0;
    padding: 0;
}


    .calendar-day.current-month {
        background-color: #e6f7ff;
    }

    .calendar-day.other-month {
        background-color: #f9f9f9;
        color: #aaa;
    }

.day-leave-label {
    position: absolute;
    text-align: left;
    font-size: 0.8em;
    left: 5px;
    bottom: -20px;
    color: red;
}

@media (max-width: 768px) {
    .calendar-container {
        padding: 0.5rem;
    }

    .day-listbox-container {
        background-color: antiquewhite;
        position: absolute;
        bottom: 0px; /* Place the ListBox near the bottom */
        left: 0px; /* Place the ListBox near the left */
        width: 40%; /* Ensure it takes most of the width */
        height: auto;
    }

    .calendar-day {
        padding: 0.5rem;
    }

    .day-listbox-container-label {
        display: flex;
        color: red;
        top: 0px; /* Place the ListBox near the bottom */
        left: 0px; /* Place the ListBox near the left */
    }

    .calendar-day .day-number {
        position: absolute;
        top: 5px; /* Align to top */
        right: 5px; /* Align to right */
        font-size: 12px; /* Larger font size */
        font-weight: bold; /* Bold font */
        color: #333; /* Neutral color */
    }

    .calendar-container {
        width: 100%;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
    }

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

    .calendar-grid {
        display: grid;
        gap: 10px;
    }

    .header {
        grid-template-columns: repeat(7, 1fr); /* Always show days of the week */
    }

    .days {
        grid-template-columns: repeat(7, 1fr); /* Full month layout by default */
    }

    .calendar-day {
        border: 1px solid #ddd;
        padding: 10px;
        text-align: center;
        position: relative;
        background-color: #f9f9f9;
    }

        .calendar-day.empty {
            background-color: transparent;
            border: none;
        }

    .day-number {
        font-weight: bold;
        margin-bottom: 5px;
        display: block;
    }

    .day-listbox-container {
        margin-top: 5px;
        font-size: 0.9rem;
        color: #555;
    }

    .day-number-sm {
        display: none;
    }
    /* Responsive Layout */
    @media (max-width: 768px) {
        .calendar-grid header {
            display: none; /* Hide day headers on small screens */
        }

        .calendar-day-header {
            display: none;
        }

        .calendar-day .day-number-sm {
            display: block;
            position: absolute;
            top: 5px; /* Align to top */
            right: 5px; /* Align to right */
            font-size: 12px; /* Larger font size */
            font-weight: bold; /* Bold font */
            color: #333; /* Neutral color */
        }

        .day-number {
            display: none;
        }

        .days {
            grid-template-columns: 1fr; /* Show one day per row */
        }

        .calendar-dayempty {
            display: none;
        }

        .calendar-day {
            padding: 15px;
            font-size: 1.2rem;
        }

        .day-listbox-container {
            font-size: 1rem;
        }
    }

    @media (min-width: 769px) {
        .days {
            grid-template-columns: repeat(7, 1fr); /* Full month layout on large screens */
        }
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: white;
    overflow-y: hidden !important;
}

/* Container for each gauge */
.circle-gauge-container {
    display: flex;
    padding: 10px 0;
    border-radius: 8px;
    background-color: white;
    flex-direction: column;
    align-items: center;
}

/* Circular Progress */
.circular-progress {
    position: relative;
    height: 150px;
    width: 150px;
    border-radius: 50%;
    background: conic-gradient(#7d2ae8 3.6deg, #ededed 0deg);
    display: flex;
    align-items: center;
    justify-content: center;
}

    /* Inner white circle */
    .circular-progress::before {
        content: "";
        position: absolute;
        height: 130px;
        width: 130px;
        border-radius: 50%;
        background-color: #fff;
    }

/* Progress value text */
.progress-value {
    position: relative;
    font-size: 24px;
    font-weight: 600;
    color: green;
}

/* Label below the gauge */
.text {
    font-size: 18px;
    font-weight: bold;
    color: #606060;
}

.status-label {
    font-size: 1.2rem;
    font-weight: bold;
    padding: 1px 0px;
}
    /* ========================================= */
    /* ✅ Reduce Gauge Size by Another 10% for Small Screens ✅ */
    /* ========================================= */
    .status-label.apu-info {
        font-size: 1.4rem !important;
        font-weight: bold;
        padding: 1px 0px;
    }

@media (max-width: 768px) {
    .circle-gauge-container {
        width: 90px; /* Further reduced from 100px */
        padding: 4px 0;
    }

    .status-label.apu-info {
        font-size: 1.2rem;
        font-weight: bold;
        padding: 1px 0px;
    }

    .circular-progress {
        height: 70px; /* Further reduced from 80px */
        width: 70px; /* Further reduced from 80px */
    }

        .circular-progress::before {
            height: 55px; /* Further reduced from 60px */
            width: 55px; /* Further reduced from 60px */
        }

    .progress-value {
        font-size: 14px; /* Reduce font size for better fit */
    }

    .text {
        font-size: 12px;
        font-weight: bold
    }
}

/* ========================================= */
/* ✅ Grid Layout Adjustments for Small Screens ✅ */
/* ========================================= */

.gauge-container {
    display: flex;
    flex-direction: column;
    gap: 4px; /* Reduce gap for small screens */
    max-width: 900px;
    margin: auto;
}

/* Default row styling */
.gauge-row {
    display: flex;
    justify-content: center;
    gap: 8px; /* Reduced gap */
}

/* Grid layout to enforce row structure */
.four-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px; /* Reduce gap to fit all 4 gauges */
}

.three-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.two-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

/* Ensure all 4 gauges fit properly in first row */
@media (max-width: 768px) {
    .four-items {
        grid-template-columns: repeat(4, 1fr);
        gap: 3px; /* Reduce gap further */
    }

    .three-items {
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
    }

    .two-items {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
    }
}

.status-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 5px; /* Space between gauge and status labels */
    margin-bottom: 15px;
}

.status-label {
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: white;
    padding: 4px;
    border-radius: 5px;
    width: 70%; /* Matches the width of the gauge */
}

.section-divider-with-title {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1rem 0;
    font-weight: bold;
    color: #333;
}

    .section-divider-with-title::before,
    .section-divider-with-title::after {
        content: '';
        flex: 1;
        border-bottom: 1px solid #007bff; /* Blue line */
        margin: 0 1rem;
    }

/* Responsive Adjustments */
@media (max-width: 768px) {
    .status-label {
        font-size: 11px; /* Adjust size for smaller screens */
        font-weight: bold;
    }
}

.apu-text {
    font-weight: bold;
    color: #007bff; /* Blue */
}

.gauge-row.four-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 equal columns */
    gap: 8px; /* Space between items */
    justify-content: center; /* Center items */
    align-items: center;
}

.empty-item {
    visibility: hidden; /* Makes the placeholder occupy space without being visible */
}

.section-divider {
    border: none; /* Remove default border */
    height: 4px; /* Thickness */
    background-color: #007bff; /* Blue color */
    margin: 20px 0; /* Add spacing around the line */
    border-radius: 2px; /* Slightly rounded edges */
}

.dxbl-text-edit-input[type=search] {
    font-size: 17px !important;
    color: black !important;
}

.dxbl-text-edit-input {
    font-size: 17px !important;
    color: black !important;
}

.dxbl-grid .dxbl-text-edit {
    font-size: 17px !important;
    color: black;
}

.dxbl-text-edit {
    font-size: 17px !important;
    color: blue;
}
/* Spanner next to badge text */
.badge-maint-icon {
    display: inline-flex;
    width: 14px;
    height: 14px;
    margin-right: 6px;
    vertical-align: middle;
}

    .badge-maint-icon svg {
        width: 14px;
        height: 14px;
        fill: #fff; /* keeps it visible on any badge color */
    }
/* Apply to both the summary + schedule panels (adjust selectors if needed) */
.plane-summary,
.plane-schedule {
    /* Firefox */
    scrollbar-width: thin; /* thinner bar */
    scrollbar-color: rgba(148,163,184,.7) transparent; /* thumb + track */
}

    /* Chromium/Safari (WebKit/Blink) */
    .plane-summary::-webkit-scrollbar,
    .plane-schedule::-webkit-scrollbar {
        width: 6px; /* thinner vertical bar */
        height: 6px; /* thinner horizontal bar (if ever shown) */
    }

    .plane-summary::-webkit-scrollbar-button,
    .plane-schedule::-webkit-scrollbar-button {
        display: none; /* hides the up/down (stepper) arrows */
        width: 0;
        height: 0;
    }

    .plane-summary::-webkit-scrollbar-thumb,
    .plane-schedule::-webkit-scrollbar-thumb {
        background: rgba(148,163,184,.7); /* slate-400-ish */
        border-radius: 8px;
    }

        .plane-summary::-webkit-scrollbar-thumb:hover,
        .plane-schedule::-webkit-scrollbar-thumb:hover {
            background: rgba(148,163,184,.9);
        }

    .plane-summary::-webkit-scrollbar-track,
    .plane-schedule::-webkit-scrollbar-track,
    .plane-summary::-webkit-scrollbar-corner,
    .plane-schedule::-webkit-scrollbar-corner {
        background: transparent;
    }
/* Make only the inside list scroll, keep header fixed */
.plane-schedule {
    display: flex;
    flex-direction: column;
    max-height: 55vh; /* or keep your 55% if you prefer */
    overflow: visible; /* panel itself doesn't scroll */
}

    .plane-schedule .sch-body {
        overflow-y: auto; /* scroll INSIDE here */
        overscroll-behavior: contain; /* prevent scroll chaining */
        padding-bottom: 12px; /* spacing before bottom edge */
        margin-bottom: 6px; /* visual gap below last row */
    }

        /* Extra “breathing room” at the end so last row isn’t flush */
        .plane-schedule .sch-body::after {
            content: "";
            display: block;
            height: 16px; /* tweak as you like */
        }

    /* Thin scrollbar + no arrows on the internal scroller */
    .plane-schedule .sch-body {
        scrollbar-width: thin; /* Firefox */
        scrollbar-color: rgba(148,163,184,.7) transparent;
    }

        .plane-schedule .sch-body::-webkit-scrollbar {
            width: 6px;
            height: 6px;
        }

        .plane-schedule .sch-body::-webkit-scrollbar-button {
            display: none;
            width: 0;
            height: 0;
        }

        .plane-schedule .sch-body::-webkit-scrollbar-thumb {
            background: rgba(148,163,184,.7);
            border-radius: 8px;
        }

            .plane-schedule .sch-body::-webkit-scrollbar-thumb:hover {
                background: rgba(148,163,184,.9);
            }

        .plane-schedule .sch-body::-webkit-scrollbar-track,
        .plane-schedule .sch-body::-webkit-scrollbar-corner {
            background: transparent;
        }
/* Put with your injected CSS */
/* Base layout (desktop/tablet) */
.flight-layout {
    display: grid;
    grid-template-columns: 420px 1fr;
    grid-template-rows: auto 1fr;
    gap: 12px;
    height: 100svh; /* use dynamic viewport on mobile too */
}

.summary-card {
    grid-column: 1 / 2;
    grid-row: 1 / 3; /* tall left column by default */
    overflow: auto;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
    background: var(--card, #fff);
}

#leaflet-map {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
}

/* Mobile: summary on top, map in a bottom sheet/window */
@media (max-width: 640px) {
    .flight-layout {
        display: block;
        height: 100svh;
    }

    .summary-card {
        margin: 8px;
        border-radius: 14px;
    }

    .map-sheet {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--sheet-bg, #0b1220);
        border-top-left-radius: 16px;
        border-top-right-radius: 16px;
        box-shadow: 0 -8px 24px rgba(0,0,0,.28);
        /* default compact height for phones */
        height: 42svh;
        transition: height .25s ease;
        display: flex;
        flex-direction: column;
    }

        .map-sheet.expanded {
            height: 72svh;
        }
    /* tap to expand */
    .map-sheet__handle {
        width: 48px;
        height: 6px;
        border-radius: 999px;
        background: rgba(255,255,255,.4);
        margin: 8px auto;
        cursor: pointer;
        touch-action: manipulation;
    }

    .map-sheet__content {
        flex: 1 1 auto;
        min-height: 0;
    }

    /* Map needs full size inside the sheet */
    #leaflet-map {
        width: 100%;
        height: 100%;
    }
}
/* Portal overlays the Leaflet map area */
.map-ui-portal {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
}

    /* Re-enable interaction per button */
    .map-ui-portal > button {
        pointer-events: auto;
    }

/* Match your JS positions (top-right cluster) */
.plane-settings-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
}
/* gear */
.leaf-theme-toggle {
    position: absolute;
    top: 10px;
    right: 52px;
}
/* next to gear */
.plane-defers-toggle {
    position: absolute;
    top: 10px;
    right: 124px;
}
/* from your CSS */
.plane-gantt-toggle {
    position: absolute;
    top: 10px;
    right: 90px;
}
/* near defers */
.plane-info-toggle {
    position: absolute;
    top: 10px;
    right: 158px;
}
/* summary */

/* Small visual parity (shadows, round, hover) to match your JS styles */
.map-ui-portal > button {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,.25);
    background: #1f2937;
    color: #e5e7eb;
    transition: transform .12s ease, filter .12s ease;
}

    .map-ui-portal > button:hover {
        filter: brightness(1.06);
        transform: translateY(-1px);
    }

    .map-ui-portal > button:active {
        transform: translateY(0);
    }

.leaf-theme-light .map-ui-portal > button {
    background: #f8fafc;
    color: #0f172a;
}

.leaf-theme-light .plane-gantt-toggle {
    background: #f59e0b;
    color: #0b1b10
}

.leaf-theme-dark .plane-gantt-toggle {
    background: #1f2937;
    color: #e5e7eb
}
/* ===== Modern Collapsible ===== */
:root {
    --c-radius: 16px;
    --c-shadow: 0 6px 20px rgba(0,0,0,.08);
    --c-border: rgba(0,0,0,.08);
    --c-body-bg: #fff;
    --c-text: #0f172a;
    --c-muted: #64748b;
    --c-focus: 0 0 0 4px rgba(59,130,246,.25); /* blue focus */
}


/* -------- required variables (were missing) -------- */
:root {
    --c-radius: 16px;
    --c-shadow: 0 6px 20px rgba(0,0,0,.08);
    --c-border: rgba(0,0,0,.12);
    --c-body-bg: #ffffff;
    --c-text: #0f172a;
    --c-focus: 0 0 0 4px rgba(59,130,246,.25);
}



/* -------- accent variants -------- */
.collapsible[data-accent="blue"] {
    --c-accent: #2563eb;
    --c-accent-weak: rgba(37,99,235,.10);
}

.collapsible[data-accent="purple"] {
    --c-accent: #7c3aed;
    --c-accent-weak: rgba(124,58,237,.12);
}

.collapsible[data-accent="teal"] {
    --c-accent: #0d9488;
    --c-accent-weak: rgba(13,148,136,.12);
}

.collapsible[data-accent="amber"] {
    --c-accent: #d97706;
    --c-accent-weak: rgba(217,119,6,.12);
}

.collapsible[data-accent="rose"] {
    --c-accent: #e11d48;
    --c-accent-weak: rgba(225,29,72,.12);
}

/* -------- container -------- */
.collapsible {
    border: 1px solid var(--c-border);
    border-radius: var(--c-radius);
    background: var(--c-body-bg);
    box-shadow: var(--c-shadow);
    overflow: clip;
    transition: box-shadow .25s ease, transform .2s ease;
    color: var(--c-text);
    margin-bottom: 12px;
}

    .collapsible:hover {
        transform: translateY(-1px);
    }

/* -------- top bar -------- */
.collapsible-bar {
    list-style: none;
    cursor: pointer;
    user-select: none;
    padding: 12px 14px;
    background: linear-gradient(180deg, var(--c-accent-weak), transparent 70%);
    border-bottom: 1px solid var(--c-border);
}



/* centered title + chevron right */
.cb-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
}

.cb-spacer {
    width: 24px;
    height: 24px;
}

.cb-title {
    justify-self: center;
    font-weight: 700;
    letter-spacing: .2px;
}

.cb-chev {
    justify-self: end;
    transition: transform .2s ease;
    font-size: 18px;
    opacity: .85;
}

/* rotate chevron when open */
.collapsible[open] .cb-chev {
    transform: rotate(180deg);
}

/* -------- body -------- */
.collapsible-body {
    background: var(--c-body-bg);
}

/* focus ring */
.collapsible-bar:focus {
    outline: none;
    box-shadow: var(--c-focus);
    border-radius: var(--c-radius) var(--c-radius) 0 0;
}

/* layout helper */
.cw-480 {
    max-width: 800px;
    margin: 0 auto;
    padding: 6px;
}

@media (prefers-reduced-motion: reduce) {
    .collapsible, .cb-chev {
        transition: none;
    }
}

.map-box {
    height: 85vh;
}


.sr-page {
    height: 96svh;
    overflow-y: auto;
}

.sr-embed {
    height: auto;
    overflow: visible;
}

    /* More compact header when embedded */
    .sr-embed .sr-embed-header {
        position: static;
        padding: .5rem .75rem;
        border-bottom: 1px solid rgba(0,0,0,.08);
        background: transparent;
    }



.reconnecting-banner {
    display: none;
    position: fixed;
    left: 50%;
    bottom: 50%;
    transform: translateX(-50%);
    background: #ffc107;
    color: #222;
    padding: 26px 10px;
    border-radius: 6px;
    z-index: 9999999;
    box-shadow: 0 2px 10px rgba(0,0,0,.2);
    font: 14px/1.2 system-ui,sans-serif;
}

/* Toggle button */
.leaf-theme-toggle {
    position: absolute;
    top: 10px;
    right: 124px;
    z-index: 9999;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,.25);
    transition: transform .12s ease, filter .12s ease;
}

    .leaf-theme-toggle svg {
        display: block;
    }

    .leaf-theme-toggle:hover {
        filter: brightness(1.08);
        transform: translateY(-1px);
    }

    .leaf-theme-toggle:active {
        transform: translateY(0);
    }

    .leaf-theme-toggle:focus-visible {
        outline: 2px solid currentColor;
        outline-offset: 2px;
    }

/* Theme-aware colors */
.leaf-theme-dark .leaf-theme-toggle {
    background: #1f2937;
    color: #fff;
}

.leaf-theme-light .leaf-theme-toggle {
    background: #0ea5e9;
    color: #fff;
}

/* LIGHT panels */
.leaf-theme-light .plane-summary,
.leaf-theme-light .plane-schedule,
.leaf-theme-light .plane-settings {
    background: rgba(248,250,252,.95);
    color: #0f172a;
    box-shadow: 0 4px 14px rgba(0,0,0,.18);
}

.leaf-theme-light .sch-day {
    background: rgba(248,250,252,.95);
    color: #0f172a;
    border: 2px solid #cbd5e1;
}

.leaf-theme-light .sch-row {
    background: #eef2ff;
}

    .leaf-theme-light .sch-row.dep {
        background: #ecfeff;
    }

    .leaf-theme-light .sch-row.arr {
        background: #fef3c7;
    }

/* DARK panels */
.leaf-theme-dark .plane-summary,
.leaf-theme-dark .plane-schedule,
.leaf-theme-dark .plane-settings {
    background: #0f172acc;
    color: #e5e7eb;
    box-shadow: 0 4px 14px rgba(0,0,0,.25);
}

.leaf-theme-dark .sch-day {
    background: #0f172acc;
    color: #e5e7eb;
    border: 2px solid #2a3042;
}

.leaf-theme-dark .sch-row {
    background: #1f2937;
}

    .leaf-theme-dark .sch-row.dep {
        background: #0b3a46;
    }

    .leaf-theme-dark .sch-row.arr {
        background: #3a2e0b;
    }

/* schedule row text uses reg color if provided */
.sch-row {
    color: var(--reg-color, inherit);
}

.uk-board-hidden {
    display: none !important;
}

.bar.pinned ~ .bar-tip,
.bar.pinned .bar-tip,
.bar-tip.pinned {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto;
}

.bar {
    position: relative; /* ensure overlay positions correctly */
}

.crew-pin {
    position: absolute;
    top: 6px;
    right: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
    cursor: pointer;
    user-select: none;
    font: 500 12px/1.2 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: rgba(255,255,255,0.85);
    padding: 3px 6px;
    border-radius: 999px;
    box-shadow: 0 1px 3px rgba(0,0,0,.15);
}

.crew-pin-input {
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 3px;
    border: 1px solid rgba(0,0,0,.35);
    display: inline-block;
    position: relative;
    outline: none;
}

    .crew-pin-input:checked {
        background: #10b981; /* emerald-ish */
        border-color: #10b981;
    }

        .crew-pin-input:checked::after {
            content: '';
            position: absolute;
            left: 3px;
            top: 0px;
            width: 4px;
            height: 8px;
            border: solid white;
            border-width: 0 2px 2px 0;
            transform: rotate(45deg);
        }

/* keep things visible even if :hover styles would hide them */
.bar .bar-tip,
.bar.crew-chain .bar-tip {
    pointer-events: auto;
}
/* block selection by default inside the gantt */
.no-select, .no-select * {
    user-select: none;
    -webkit-user-select: none;
}

/* optional: always block selection inside your gantt container */
.gantt, .gantt * {
    user-select: none;
    -webkit-user-select: none;
}

/* iOS long-press callout */
.gantt {
    -webkit-touch-callout: none;
}

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

/* Shell that respects iOS safe areas */
.page.ios-safe-shell {
    min-height: 100svh;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    /* iOS 11+ safe area */
    padding-top: env(safe-area-inset-top);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}



.page-main {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

@supports (padding-top: env(safe-area-inset-top)) {
    .ios-safe-top {
        /* Push the whole header below the notch */
        padding-top: max(env(safe-area-inset-top), 0px);
    }
}

@media (max-width: 600px) {
    .ios-safe-top .navbar-brand {
        margin-top: 6px;
    }

    .ios-safe-top {
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
        padding: .25rem .75rem;
        display: flex;
        align-items: center;
        gap: .5rem;
        position: fixed;
        top: 0;
        z-index: 1000;
        background-color: transparent;
    }
}

.dxbs-modal,
.dxbs-modal-backdrop {
    z-index: 20000;
}

.dxbl-popup-cell {
    z-index: 20000 !important;
}

/*Setting UI simmilar to iOS*/
/* ===== iOS-style settings ===== */
.ios-settings-root {
    background: #f2f2f7;
    padding: 8px 0 16px 0;
}

.ios-settings-section {
    margin: 12px 16px 24px 16px;
}

.ios-settings-header {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #6e6e73;
    margin-bottom: 4px;
    padding-left: 4px;
}

.ios-settings-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 0 0 rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.04);
}

.ios-settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    font-size: 0.95rem;
    color: #111827;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

    .ios-settings-row:last-child {
        border-bottom: none;
    }

.ios-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ios-label-main {
    font-weight: 400;
}

.ios-label-sub {
    font-size: 0.78rem;
    color: #6b7280;
}


/* ===== Smaller gauges when used in the Service Report side panel ===== */
.sr-panel .circle-gauge-container {
    padding: 6px 0;
    background-color: transparent; /* keep panel background */
}

/* shrink the circle */
.sr-panel .circular-progress {
    width: 100px;
    height: 100px;
}

    /* inner circle scaled down too */
    .sr-panel .circular-progress::before {
        width: 88px;
        height: 88px;
    }

/* text sizes inside the panel */
.sr-panel .progress-value {
    font-size: 18px;
}

.sr-panel .text {
    font-size: 14px;
}
/* Outer carousel container – fixed height, no stupid extra gap */
.sr-carousel .dxbl-carousel {
    height: 460px !important; /* same as Height in Razor */
}

/* The inner item wrapper */
.sr-carousel-item {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* This part scrolls when content is too tall */
.sr-carousel-scroll {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 4px;
}

/* Optional: remove any DevExpress min-height if present */
.sr-carousel .dxbl-carousel-item-content {
    min-height: 0 !important;
}

@media (display-mode: standalone) {
    @supports (padding-top: env(safe-area-inset-top)) {
        .ios-safe-top {
            padding-top: max(env(safe-area-inset-top), 20px);
        }
    }
}



@media (max-width: 800px), (max-height: 600px) {
    .mini-notes__row {
        padding: 9px 10px;
    }


    .leaf-theme-light .plane-gantt {
        display: none !important;
    }

    .gantt-body {
        position: relative;
        overflow: auto;
        max-height: 500px !important;
        padding: 12px;
    }

    .bar {
        position: absolute;
        top: 3px;
        height: 22px !important;
        border-radius: 4px;
        overflow: visible;
    }

    .g-track {
        position: relative;
        flex: 1 1 auto;
        height: 32px !important;
        background: rgba(148,163,184,.15);
        border-radius: 6px;
        overflow: visible;
    }
}

:not(.dxbl-btn-plain-toolbar) > .dxbl-btn-group > .dxbl-btn-group > .dxbl-btn-split:not(:last-child):not(.dxbl-btn-last), :not(.dxbl-btn-plain-toolbar) > .dxbl-btn-group > .dxbl-btn-group > .dxbl-btn:not(:last-child):not(.dxbl-btn-last), :not(.dxbl-btn-plain-toolbar) > .dxbl-btn-group > .dxbl-btn-split:not(:last-child):not(.dxbl-btn-last), :not(.dxbl-btn-plain-toolbar) > .dxbl-btn-group > .dxbl-btn:not(:last-child):not(.dxbl-btn-last) {
    margin-right: 5px !important;
    margin-left: 5px !important;
}

.dx-tabs {
    display: flex;
    border-bottom: 2px solid #ccc;
    position: relative;
    height ="90"
}

.dxbl-tabs > .dxbl-tabs-tablist > .dxbl-scroll-viewer > .dxbl-scroll-viewer-content > ul > li > .dxbl-tabs-item {
    position: relative; /* Ensure the tab has positioning context for the indicator */
}

    /* Indicator only for the active tab */
    .dxbl-tabs > .dxbl-tabs-tablist > .dxbl-scroll-viewer > .dxbl-scroll-viewer-content > ul > li > .dxbl-tabs-item.dxbl-active::after {
        content: '';
        display: block;
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 6px;
        background-color: #007bff; /* Customize the color */
        transition: all 0.3s ease; /* Smooth animation */
    }
/* Style for each tab */
.dx-tab {
    padding: 10px 20px;
    cursor: pointer;
    border: none;
    background: none;
    outline: dotted;
    position: relative;
    color: #000;
}

/* Style for the selected tab */
.dx-tab-selected {
    font-weight: bold;
    color: #007bff;
}

.dxbl-tabs {
    position: relative;
}

.dxbl-tabs-tablist {
    display: flex;
    justify-content: space-between;
    position: relative;
}
/* Style for the tab indicator */
.dx-tabs-indicator {
    position: absolute;
    bottom: 0;
    height: 2px;
    background-color: #007bff;
    transition: all 0.3s ease;
}

.arrival-tabs {
    max-width: 1200px;
    margin: 0 auto;
}

.page {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
}


html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    min-height: 100%;
    height: auto !important;
    position: static !important;
    display: block !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    background: white;
}

#app {
    min-height: 100svh;
    background: #d9d9d9;
}

.page {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    background: white;
}

.demands-empty-state {
    min-height: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Closed faults */
.fault-closed-row {
    background-color: #e6f7e6;
    color: #2d6a2d;
    opacity: 0.85;
}

/* In Progress faults */
.fault-inprogress-row {
    background-color: #fff3cd;
    color: #8a5a00;
    font-weight: 500;
}

/* Open faults */
.fault-row {
    background-color: #f8d7da;
    color: #842029;
    font-weight: 500;
}
/* highlight UTC datetime when filled */
.utc-field.field-filled input {
    background-color: #e9f7ef !important;
    border-color: #28a745 !important;
}

/* optional nicer label color when filled */
.utc-field.field-filled .utc-label {
    color: #166534;
}

.phone-admin-grid .dxbl-grid-table > tbody > tr:nth-child(even) > td {
    background-color: #f8fbff !important;
}

.phone-admin-grid .dxbl-grid-table > tbody > tr:nth-child(odd) > td {
    background-color: #ffffff !important;
}

.phone-admin-grid .dxbl-grid-table > tbody > tr:hover > td {
    background-color: #eaf4ff !important;
}

.phone-admin-grid .dxbl-command-column .btn {
    margin-right: .25rem;
}

.phone-admin-grid .dxbl-grid {
    border-radius: 14px;
    overflow: hidden;
}

.ops-label {
    display: block;
    font-weight: 600;
    margin-bottom: .35rem;
    color: #334155;
}

.sdrp {
    position: relative;
    display: inline-block;
    min-width: 320px;
    font-family: Arial, sans-serif;
}

.sdrp-input {
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 10px 12px;
    background: white;
    cursor: pointer;
    user-select: none;
    min-height: 22px;
}

.sdrp-popup {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 1000;
    background: white;
    border: 1px solid #dcdcdc;
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.15);
    padding: 14px;
    min-width: 700px;
}

.sdrp-calendars {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.sdrp-month {
    width: 100%;
    max-width: 320px;
}

.sdrp-month-title {
    text-align: center;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 15px;
}

.sdrp-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-bottom: 6px;
}

    .sdrp-weekdays div {
        text-align: center;
        font-size: 12px;
        color: #666;
        padding: 4px 0;
    }

.sdrp-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    grid-auto-rows: 42px;
}

.sdrp-empty {
    width: 100%;
    aspect-ratio: 1 / 1;
}

.sdrp-day {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 8px;
    background: #f5f5f5;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.15s ease;
}

    .sdrp-day:hover:not(.disabled) {
        background: #e6edff;
    }

    .sdrp-day.in-range {
        background: #dfe9ff;
    }

    .sdrp-day.start,
    .sdrp-day.end {
        background: #4c7eff;
        color: white;
        font-weight: 600;
    }

    .sdrp-day.today {
        outline: 2px solid #8fb0ff;
    }

    .sdrp-day.disabled {
        opacity: 0.35;
        cursor: not-allowed;
    }

.sdrp-footer {
    margin-top: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.sdrp-preview {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #444;
}


.sdrp-footer-left {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sdrp-quick-jumps {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.sdrp-quick-btn {
    border: 1px solid #ccc;
    background: #f8f8f8;
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    transition: 0.15s;
    font-size: 13px;
}

    .sdrp-quick-btn:hover {
        background: #f0f4ff;
    }

.sdrp-nav-btn {
    width: 34px;
    height: 34px;
    border: 1px solid #d6d6d6;
    background: #ffffff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    padding: 0;
}

    .sdrp-nav-btn:hover {
        background: #f3f6ff;
        border-color: #b9c9ff;
    }

    .sdrp-nav-btn:active {
        background: #e8eeff;
    }

    .sdrp-nav-btn:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(76, 126, 255, 0.18);
    }

.sdrp-month-header {
    display: grid;
    grid-template-columns: 34px 1fr 34px;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.sdrp {
    position: relative;
    display: inline-block;
    min-width: 320px;
    font-family: Arial, sans-serif;
}

.sdrp-input {
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 10px 12px;
    background: white;
    cursor: pointer;
    user-select: none;
    min-height: 22px;
}

.sdrp-popup {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 1000;
    background: white;
    border: 1px solid #dcdcdc;
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.15);
    padding: 14px;
    min-width: 760px;
}

.sdrp-calendars {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.sdrp-month {
    width: 320px;
}

.sdrp-month-header {
    display: grid;
    grid-template-columns: 34px 1fr 34px;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.sdrp-month-title {
    text-align: center;
    font-weight: 600;
    font-size: 20px;
    line-height: 1.2;
}

.sdrp-nav-btn {
    width: 34px;
    height: 34px;
    border: 1px solid #d6d6d6;
    background: #ffffff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    padding: 0;
}

    .sdrp-nav-btn:hover {
        background: #f3f6ff;
        border-color: #b9c9ff;
    }

    .sdrp-nav-btn:active {
        background: #e8eeff;
    }

    .sdrp-nav-btn:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(76, 126, 255, 0.18);
    }

.sdrp-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 42px);
    gap: 4px;
    margin-bottom: 4px;
}

    .sdrp-weekdays div {
        width: 42px;
        text-align: center;
        font-size: 12px;
        color: #666;
        padding: 4px 0;
    }

.sdrp-grid {
    display: grid;
    grid-template-columns: repeat(7, 42px);
    gap: 4px;
    grid-auto-rows: 42px;
}

.sdrp-empty {
    width: 42px;
    height: 42px;
}

.sdrp-day {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 10px;
    background: #f5f5f5;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.15s ease;
    padding: 0;
}

    .sdrp-day:hover:not(.disabled) {
        background: #e6edff;
    }

    .sdrp-day.in-range {
        background: #dfe9ff;
    }

    .sdrp-day.start,
    .sdrp-day.end {
        background: #4c7eff;
        color: white;
        font-weight: 600;
    }

    .sdrp-day.today {
        outline: 2px solid #8fb0ff;
    }

    .sdrp-day.disabled {
        opacity: 0.35;
        cursor: not-allowed;
    }

.sdrp-footer {
    margin-top: 14px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.sdrp-footer-left {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sdrp-preview {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #444;
}

.sdrp-quick-jumps {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}


.sdrp {
    position: relative;
    display: inline-block;
    min-width: 340px;
    font-family: Arial, sans-serif;
}

.sdrp-input {
    border: 1px solid #cfcfcf;
    border-radius: 12px;
    background: #f7f7f7;
    cursor: pointer;
    user-select: none;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 4px 6px 4px 6px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

    .sdrp-input:hover {
        border-color: #bdbdbd;
        background: #f4f4f4;
    }

    .sdrp-input:focus,
    .sdrp:focus-within .sdrp-input {
        border-color: #7ea2ff;
        box-shadow: 0 0 0 3px rgba(76, 126, 255, 0.16);
        outline: none;
    }

.sdrp-input-display {
    flex: 1;
    min-width: 0;
    background: white;
    border: 1px solid #d9d9d9;
    border-radius: 10px;
    padding: 5px 4px;
    display: flex;
    align-items: center;
}

.sdrp-input-text {
    font-size: 14px;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}



.sdrp-calendar-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.sdrp-preview span {
    display: flex;
    align-items: center;
    gap: 6px;
    background: white;
    border: 1px solid #e1e6f9;
    border-radius: 8px;
    padding: 4px 8px;
    font-weight: 500;
    color: #2b2b2b;
    font-weight: 600;
}

.sdrp-preview strong {
    color: #4c7eff;
    font-weight: 600;
}

.sdrp-input-display {
    flex: 1;
    min-width: 0;
    background: white;
    border: 1px solid #d9d9d9;
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.sdrp-footer {
    margin-top: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.sdrp-footer-left {
    display: flex;
    flex-direction: column;
    gap: 10px;
}



.sdrp-quick-btn,
button {
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: 0.15s;
    font-size: 13px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

    .sdrp-quick-btn:hover,
    button:hover {
        background: #f0f4ff;
    }

.dxbl-toast-container,
.dx-toast-container,
.dxbs-toast-container {
    z-index: 99999 !important;
}

.chart-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: linear-gradient(180deg, #fafafa, #f4f6f8);
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.chart-toolbar-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding-right: 8px;
}

.chart-toolbar-title {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-right: 2px;
}

.chart-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border: 1px solid #dbe2ea;
    border-radius: 999px;
    background: white;
    cursor: pointer;
    user-select: none;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
}

    .chart-toggle input {
        display: none;
    }

    .chart-toggle .slider {
        position: relative;
        width: 38px;
        height: 20px;
        border-radius: 999px;
        background: #d1d5db;
        transition: .2s ease;
        display: inline-block;
    }

        .chart-toggle .slider::after {
            content: "";
            position: absolute;
            top: 2px;
            left: 2px;
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background: white;
            box-shadow: 0 1px 3px rgba(0,0,0,.2);
            transition: .2s ease;
        }

    .chart-toggle input:checked + .slider {
        background: #2563eb;
    }

        .chart-toggle input:checked + .slider::after {
            transform: translateX(18px);
        }

    .chart-toggle span.active {
        color: #0f172a;
        font-weight: 800;
    }

.legend-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border: 1px solid #dbe2ea;
    border-radius: 999px;
    background: white;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    user-select: none;
}

    .legend-pill input {
        margin: 0;
    }

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    border: 1px solid rgba(0,0,0,.12);
}

.chart-panel {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: white;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
    height: 72vh;
}

.toolbar-box {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 12px 14px;
    background: linear-gradient(180deg, #fafafa, #f6f8fa);
    box-shadow: 0 2px 6px rgba(0,0,0,.05);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toolbar-box-title {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .6px;
}

.toolbar-box-content {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: end;
}

.toolbar-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 150px;
}

.toolbar-label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 600;
}

.toolbar-toggle {
    justify-content: flex-end;
}

    .toolbar-toggle .chart-toggle {
        display: flex;
        align-items: center;
        gap: 8px;
    }

.engine-popup .dxbl-popup {
    transition: all 0.25s ease;
}

.engine-popup .dxbl-popup-content {
    animation: popupFadeIn 0.25s ease;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.engine-popup.dxbl-popup-closing .dxbl-popup-content {
    animation: popupFadeOut 0.2s ease forwards;
}

@keyframes popupFadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(0.96);
    }
}

@media (max-width: 800px) {
    .hide-on-mobile {
        display: none !important;
    }
}

.bar {
    overflow: visible;
}

.bar-label.outside {
    white-space: nowrap;
    z-index: 5;
}

.bar-label.outside-left {
    transform: translateY(-50%);
}

.bar-label.outside-right {
    transform: translateY(-50%);
}

.bar-small {
    min-width: 6px;
}

.bar-label.outside-left {
    text-align: right;
}

.bar-label.outside-right {
    text-align: left;
}

.dev-watermark {
    position: fixed;
    inset: 0;
    z-index: 9999; /* above map + panels */
    display: grid;
    place-items: center;
    pointer-events: none; /* IMPORTANT: doesn't block clicks/zoom */
    user-select: none;
    font: 900 clamp(42px, 8vw, 110px)/1 system-ui, Segoe UI, Roboto, Arial;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(220, 38, 38, 0.12); /* faded red */
    transform: rotate(-18deg);
}

.hide-expand-button .dxbl-grid-detail-button,
.hide-expand-button .dxbl-grid-expand-button {
    display: none !important;
}

.phone-virtual-list {
    height: 70vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.g-label {
    position: sticky;
    left: 0;
    z-index: 30;
    background-color: #fff;
}
.security-alert-row {
    background-color: rgba(255, 0, 0, 0.12);
    font-weight: 600;
}
.audit-row-mobile {
    background-color: rgba(0, 123, 255, 0.10);
}

.audit-row-sr {
    background-color: rgba(255, 193, 7, 0.16);
}
@media print {
    button,
    input[type="range"],
    .dxbl-popup,
    .popup-footer {
        display: none !important;
    }

    .planner-shell,
    .planner-container {
        overflow: visible !important;
        height: auto !important;
    }
}
.capacity-tabs,
.capacity-tabs .dxbl-tabs-content,
.capacity-tabs .dxbl-tabs-item-content {
    min-width: 0;
    min-height: 0;
}

.capacity-plan-region {
    min-width: 0;
}

.capacity-main-layout {
    min-width: 0;
}
.planner-container {
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;
    overflow-x: auto;
    overflow-y: auto;
    border: 1px solid #dbe3ee;
    border-radius: 12px;
    background: white;
    position: relative;
}
.change-label {
    color: #667085 !important;
    margin-right: 4px;
}

.change-old {
    color: #f97316 !important;
    font-weight: 600 !important;
}

.change-arrow {
    color: #98a2b3 !important;
    margin: 0 6px;
}

.change-new {
    color: #16a34a !important;
    font-weight: 700 !important;
}
.dxbl-popup-cell {
    z-index: 20000 !important;
}
.capacity-drag-date-label {
    position: fixed;
    z-index: 999999;
    background: #111827;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.capacity-drag-date-label--drag {
    background: #111827;
}

.capacity-drag-date-label--resize {
    background: #111827;
}
 .dxbl-modal > .dxbl-modal-root > .dxbl-popup > .dxbl-modal-content > .dxbl-modal-body {
    padding: var(--dxbl-popup-body-padding-y) var(--dxbl-popup-body-padding-x);
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 auto;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    overflow: auto;
}
.dxbl-modal > .dxbl-modal-root > .dxbl-popup > .dxbl-modal-content > .dxbl-modal-body {

    overflow: auto;
}

/* 1. Allow the tab content to scroll through, not clip it */
 .capacity-tabs > .dxbl-tabs-content,
.capacity-tabs > .dxbl-tabs-pages {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: visible; /* was: hidden */
}

 .capacity-tabs .dxbl-tabs-tabpage,
 .capacity-tabs .dxbl-tabs-tabpage-content {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: visible; /* was: hidden */
}

/* 2. The planner container itself is where scrolling lives */
.planner-container {
    flex: 1 1 auto;
    min-height: 0;
    position: relative;
    overflow: auto; /* both axes scroll here */
    border: 1px solid #dbe3ee;
    border-radius: 12px;
    background: #fff;
}

/* 3. The carousel shell must NOT clip either */
.planner-carousel-shell {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: visible; /* was: hidden or unset */
}

/* 4. Same for capacity-main-layout */
.capacity-main-layout {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: visible; /* don't clip children */
}