:root {
    --dashboard-map-width: 2.6fr;
    --dashboard-stats-width: 0.8fr;
    --dashboard-users-width: 380px;
    --dashboard-stats-display: grid;
    --colour-primary: #3BB07E;
    --muted: #ececf0;
    --bg-muted: #f3f4f6;
    --bg-amber: #fff7e6;
    --bg-pink: #fde8e7;
    --danger: #dc3545;
    --warning: #ff9900;
    --red-50: #fef2f2;
    --red-100: #ffe2e2;
    --red-200: #ffc9c9;
    --red-300: #ffa2a2;
    --red-400: #ff6467;
    --red-500: #fb2c36;
    --red-600: #e7000b;
    --red-700: #c10007;
    --red-800: #9f0712;
    --red-900: #82181a;
    --green-50: #f0fdf4;
    --green-100: #dcfce7;
    --green-200: #b9f8cf;
    --green-300: #7bf1a8;
    --green-500: #00c951;
    --green-600: #00a63e;
    --green-700: #008236;
    --green-900: #0d542b;
    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-200: #bedbff;
    --blue-300: #8ec5ff;
    --blue-400: #51a2ff;
    --blue-500: #2b7fff;
    --blue-600: #155dfc;
    --blue-700: #1447e6;
    --blue-900: #1c398e;
    --orange-50: #fff7ed;
    --orange-100: #ffedd4;
    --orange-200: #ffd6a8;
    --orange-300: #ffb86a;
    --orange-400: #ff8904;
    --orange-500: #ff6900;
    --orange-600: #f54a00;
    --orange-700: #ca3500;
    --orange-900: #7e2a0c;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #ebe6e7;
    --gray-300: #d1d5dc;
    --gray-400: #99a1af;
    --gray-500: #6a7282;
    --gray-600: #4a5565;
    --gray-700: #364153;
    --gray-800: #1e2939;
    --gray-900: #101828;
    --purple-50: #faf5ff;
    --purple-100: #f3e8ff;
    --purple-200: #e9d4ff;
    --purple-300: #dab2ff;
    --purple-400: #c27aff;
    --purple-500: #ad46ff;
    --purple-600: #9810fa;
    --purple-700: #8200db;
    --indigo-50: #eef2ff;
    --indigo-100: #e0e7ff;
    --indigo-200: #c6d2ff;
    --indigo-400: #7c86ff;
    --indigo-600: #4f39f6;
    --indigo-800: #372aac;
    --amber-50: #fffbeb;
    --amber-300: #ffd230;
    --amber-400: #ffb900;
    --amber-500: #fe9a00;
    --amber-600: #e17100;
    --amber-700: #bb4d00;
    --amber-900: #7b3306;
    --pink-50: #fdf2f8;
    --box-bg: #ffffff;
    --box-border: var(--gray-100);
    --box-padding: 10px;
    --box-margin-bottom: 0.75rem;
    --font-weight-medium: 500;
    --font-weight-normal: 400;
    --font-weight-semibold: 600;
    --text-xs: 0.75rem;
    --text-xs--line-height: calc(1 / 0.75);
    --text-sm: 0.875rem;
    --text-sm--line-height: calc(1.25 / 0.875);
    --text-base: 1rem;
    --text-base--line-height: calc(1.5 / 1);
    --text-lg: 1.125rem;
    --text-lg--line-height: calc(1.75 / 1.125);
    --text-xl: 1.25rem;
    --text-xl--line-height: calc(1.75 / 1.25);
    --text-2xl: 1.5rem;
    --muted-foreground: #717182;
}

@font-face {
    font-family: 'Poppins';
    src: url('/fonts/poppins/Poppins-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

html,
body {
    font-family: 'Poppins', sans-serif !important;
}

h1:focus {
    outline: none;
}

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

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

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

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

.mud-chip {
    max-width: 220px !important;
    white-space: nowrap;
}

.mud-main-content {
    transition: padding-left 0.3s ease;
    padding-top: var(--mud-appbar-height);
    overflow-y: auto;
    flex-grow: 1;
}

/*.mud-chip-content {
    display: flex;
    align-items: center;
    text-overflow: ellipsis;
    overflow:hidden;
}

    .mud-chip-content > span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        flex-grow: 1;
        min-width: 0;
    }

    .mud-chip-content > button {
        flex-shrink: 0;
        margin-left: 0px;*/
/* Optional spacing between text and close button */
/*}*/


#blazor-error-ui {
    background: red;
    color: #ffffff;
    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: 9999;
}

    #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: #1b6ec2;
            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;
}

img[src$="#custom_marker"] {
    border: 2px solid #090 !important;
    border-radius: 50%;
}

.highlighted-item > td {
    background-color: rgba(55, 184, 136, 0.3);
}

.highlighted-disabled-item > td {
    background-color: rgba(245, 198, 203, 0.5);
}

.highlight-item-green {
    background-color: rgba(198, 245, 203, 0.7);
}

.highlight-item-blue {
    background-color: rgba(198, 203, 245, 0.7);
}

.highlight-item-red {
    background-color: rgba(255, 190, 203, 1);
}

.highlight-item-amber {
    background-color: rgba(255, 162, 0, 0.2);
}

.traffic-light-green {
    background-color: rgba(12, 139, 68, 1);
}

.traffic-light-red {
    background-color: rgba(214, 0, 0, 1);
}

.traffic-light-amber {
    background-color: rgba(255, 106, 0, 0.2);
}

.introjs-tooltip {
    border-radius: 12px !important;
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
    animation: fadeSlideUp 0.4s ease;
    overflow: hidden;
}

.introjs-skipbutton {
    position: absolute !important;
    top: 10px;
    right: 10px;
}

.introjs-progressbar {
    background-color: #3BB07E !important;
    height: 6px;
    border-radius: 4px;
}

.introjs-progress {
    background-color: #C6E5D5 !important;
    border-radius: 4px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.custom-cluster {
    background: radial-gradient(circle, rgba(255, 155, 34, 1) 0%, rgba(255, 155, 34, 0.6) 40%, rgba(255, 155, 34, 0.3) 70%, rgba(255, 155, 34, 0) 100%);
    border-radius: 50%;
    color: white;
    font-weight: bold;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.alert-layout,
.review-layout {
    display: flex;
    flex-direction: row;
    height: calc(100vh - 60px);
    overflow: hidden;
}

.alert-list,
.review-list,
.list {
    flex: 0 0 420px;
    overflow-y: auto;
    border-right: 2px solid #ccc;
    padding: 12px;
    background-color: #f9f9f9;
}

.list-row {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    background-color: white;
    transition: all 0.2s ease;
}

.link-row {
    padding: 0 9px;
    margin-bottom: 10px;
    border-bottom: 2px solid #BDBDBD;
}

    .link-row:hover {
        border-color: #3BB07E;
        background-color: #f0fff9;
    }

.alert-row,
.review-row {
    padding: 16px 18px;
    margin-bottom: 10px;
    border: 2px solid transparent;
    border-radius: 8px;
}

    .alert-row:hover,
    .review-row:hover {
        border-color: #3BB07E;
        background-color: #f0fff9;
    }

    .alert-row.selected,
    .review-row.selected {
        border-color: #3BB07E;
        background-color: #e6f8f0;
    }

    .review-row.selected {
        margin-bottom: 4px !important;
    }

.filter-sidebar {
    flex: 0 0 260px;
    background-color: #ffffff;
    border-right: 1px solid #e2e2e2;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    max-width: 260px;
    max-height: 100vh;
    overflow-y: auto;
    box-sizing: border-box;
}

.filter-header {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 6px;
}

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

    .filter-group label {
        font-weight: 600;
        font-size: 0.95rem;
        color: #444;
    }

    .filter-group input,
    .filter-group select {
        padding: 8px 10px;
        border: 1px solid #ccc;
        border-radius: 6px;
        font-size: 0.95rem;
        transition: border-color 0.2s;
    }

        .filter-group input:focus,
        .filter-group select:focus {
            outline: none;
            border-color: #3BB07E;
        }

.alert-icon,
.review-icon {
    height: 32px;
    width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alert-info > div,
.review-info > div {
    margin-bottom: 2px;
}

.alert-name,
.review-name,
.detail-header h3 {
    font-size: 1.125rem;
    font-weight: 700;
    max-width: 221px;
    overflow: hidden;
    color: #222;
}

.alert-type,
.alert-time,
.review-time,
.detail-meta,
.detail-ref,
.detail-desc,
.time-to-resolve,
.review-count {
    font-size: 1rem;
    color: #444;
}

.alert-detail-content,
.review-detail-content,
.detail-content {
    width: 100%;
    max-width: 1100px;
    background-color: #fafafa;
    border: 1px solid #ccc;
    border-radius: 12px;
    padding: 32px 40px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    font-size: 1.0625rem;
}

.detail-header {
    margin-bottom: 24px;
}

.detail-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #222;
}

.detail-columns {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 24px;
    gap: 40px;
}

.detail-group > strong {
    font-size: 1.375rem;
    color: #3BB07E;
    border-bottom: 1px solid #ddd;
    margin-top: 32px;
    margin-bottom: 10px;
    padding-bottom: 4px;
    display: block;
}

.detail-column {
    flex: 1 1 45%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-item {
    font-size: 1rem;
    margin-left: 12px;
    margin-top: 6px;
}

.alert-detail-panel,
.review-detail-panel,
.detail-panel {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 40px 24px;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.review-detail-panel {
    padding: 0;
}

.nothing-selected-container {
    width: 90%;
    max-width: 600px;
    text-align: center;
}

.alert-search,
.review-search {
    margin-bottom: 16px !important;
    width: 100%;
}

#app-bar {
    top: 0;
    margin-top: 0 !important;
    padding-top: 0 !important;
    z-index: 1100;
    min-height: 65px;
    height: 65px;
}

.app-bar-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    white-space: nowrap;
}

.nav-menu-logo {
    width: 11rem;
    height: 6.5rem;
    padding: 1rem 0;
    margin-top: 0.3rem;
    transform: translateX(0.7rem);
    display: inline-block;
    white-space: nowrap;
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.5s ease, opacity 0.5s ease;
    will-change: clip-path, opacity;
}

    .nav-menu-logo.expanded {
        opacity: 1;
        clip-path: inset(0 0 0 0);
    }

@media (max-width: 600px) {
    .nav-menu-logo {
        margin-top: 17px;
        transform: translateX(20px);
    }

    .app-bar-center span {
        display: none;
    }
}

.mud-drawer {
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1090;
    padding: 0;
}

.mud-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.sidebar {
    width: 250px;
    height: 100vh;
    background-color: #ffffff;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: fixed;
    transition: width 0.3s ease;
    border-right: 2px solid #3bb07e;
}

.pin-button {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    transition: background-color 0.2s, color 0.2s;
    border-radius: 8px;
    margin: 4px 12px;
    color: #000000;
    gap: 5px;
}

    .pin-button:hover {
        background-color: #d3d3d3;
        font-weight: 800;
        color: #000000;
        border-radius: 8px;
        margin: 4px 12px;
        transform: scale(1.05);
        transition: all 0.2s ease;
    }

    .pin-button:active {
        background-color: #3bb07e;
        transform: scale(0.95);
        color: #ffffff;
    }

.pin-icon {
    width: 2em;
    height: 2em;
    flex-shrink: 0;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    padding: 0;
    max-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    flex-grow: 1;
    margin-top: 3.3rem;
}

    .nav-menu::-webkit-scrollbar {
        width: 8px;
    }

    .nav-menu::-webkit-scrollbar-thumb {
        background-color: rgba(0, 0, 0, 0.3);
        border-radius: 4px;
    }

.nav-icon {
    width: 1.6em;
    height: 1.6em;
    margin-right: 0.96rem;
    margin-left: -0.33rem;
    flex-shrink: 0;
}

.nav-label {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    transition: opacity 0.3s ease, transform 0.3s ease, max-width 0.3s ease;
    opacity: 1;
    font-size: 14.4px;
    transform: translateX(0);
    max-width: 200px;
}

    .nav-label.collapsed {
        opacity: 0;
        transform: translateX(-20px);
        max-width: 0;
    }

    .nav-label.expanded {
        opacity: 1;
        transform: translateX(0);
        max-width: 250px;
    }

.nav-item {
    display: flex;
    align-items: center;
    padding: 0 16px;
    color: #4c4e52;
    text-decoration: none;
    font-size: 18px !important;
    border-radius: 8px;
    margin: 4px 12px;
    transition: background-color 0.5s ease, box-shadow 0.5s ease, color 0.5s ease, transform 0.5s ease;
    height: 50px;
    will-change: background-color, color, box-shadow;
}

    .nav-item:hover {
        background-color: #d3d3d3;
        font-weight: 800;
        color: #000000;
        border-radius: 8px;
        margin: 4px 12px;
    }

    .nav-item:active {
        background-color: #3bb07e;
        transform: scale(0.95);
        color: #ffffff;
    }

    .nav-item.active {
        background-color: #3bb07e;
        transform: scale(1.05);
        color: #ffffff;
        font-weight: bold;
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
        border-radius: 10px;
        transition: all 0.2s ease;
    }

    .nav-item img {
        will-change: transform, opacity;
    }

.nav-icon-wrapper {
    position: relative;
    display: inline-block;
}

.nav-notif-badge {
    position: absolute;
    top: 0px;
    right: 6px;
    background: linear-gradient(145deg, #ff4d4f, #d9363e);
    color: white;
    font-size: 13px;
    font-weight: bold;
    border-radius: 50%;
    padding: 2px 4px;
    min-width: 18px;
    text-align: center;
    line-height: 1;
}

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

.nav-footer-section {
    margin-top: auto;
}

.nav-footer-border {
    width: 50%;
    height: 2px;
    background-color: #3bb07e;
    margin: 10px auto 0;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    column-gap: 1.5rem;
    row-gap: 1rem;
}

.price-and-billing-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.my-form-heading3 {
    font-size: clamp(1.5rem, 5vw, 3rem);
    text-align: center;
    margin-bottom: 0.1rem;
}

.my-form-heading4 {
    font-size: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
    border-bottom: 3px solid #05c083;
    grid-column: 1 / -1;
}

.my-form-heading5 {
    font-size: 1rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    grid-column: 1 / -1;
}

.my-form-container {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 2.5rem;
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.no-scroll {
    height: 100vh;
    overflow: hidden;
}

.my-form-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

    .my-form-group label {
        width: 250px;
        font-weight: 600;
        text-align: right;
        display: flex;
        margin: 0;
        flex: 1;
    }

.form-row-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.tiny-input {
    flex: 1 1 120px;
    display: flex;
    flex-direction: column;
}


.checkbox-grid {
    transform: translateY(-14px);
    display: flex;
    gap: 1rem;
}

    .checkbox-grid label {
        display: flex;
        align-items: center;
        gap: 0.25rem;
        font-weight: 500;
        white-space: nowrap;
        flex: 1;
    }

.time-range-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.form-control {
    padding: 0.75rem 1rem;
    color: #333333;
    background-color: #f9f9f9;
    border: 1px solid #dddddd;
    border-radius: 8px;
    outline: none;
    transition: all 0.3s ease;
    flex: 2;
    box-sizing: border-box;
}

    .form-control:focus-within {
        background-color: #e6f8f0;
        outline: none !important;
        box-shadow: none !important;
        transform: scale(0.99);
    }

    .form-control::placeholder {
        color: #b0b0b0;
    }

    .form-control.valid.modified:not([type=checkbox]),
    .form-control.invalid {
        outline: none !important;
        border-color: #dddddd !important;
        /* Reset to neutral */
        box-shadow: none !important;
    }

.form-control-section {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background-color: #f9f9f9;
    outline: none !important;
    box-shadow: none !important;
}

    .form-control-section:focus {
        background-color: #e6f8f0;
    }

.btn {
    --btn-bg: #3BB07E;
    --btn-bg-hover: #04996a;
    --btn-shadow-hover: rgba(4, 153, 106, 0.4);
    color: #ffffff;
    font-weight: 600;
    border-radius: 12px;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.15s ease;
    position: relative;
    overflow: hidden;
    background-color: var(--btn-bg);
    animation: fadeSlideUp 0.4s ease;
}

    .btn:disabled,
    .btn[disabled] {
        opacity: 0.6 !important;
        cursor: not-allowed !important;
        pointer-events: none !important;
        filter: grayscale(30%) !important;
    }

    .btn:hover {
        background-color: var(--btn-bg-hover);
        box-shadow: 0 6px 18px var(--btn-shadow-hover);
        transform: translateY(-2px);
    }

    .btn:active {
        transform: translateY(0px);
        box-shadow: 0 3px 6px var(--btn-shadow-hover);
    }

    /* Glint effect */
    .btn::before {
        content: "";
        position: absolute;
        top: 0;
        left: -75%;
        width: 50%;
        height: 100%;
        background: linear-gradient(120deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
        transform: skewX(-20deg);
        transition: left 0.5s ease;
        pointer-events: none;
    }

    .btn:hover::before {
        left: 130%;
    }

    .btn:focus {
        outline: none !important;
        box-shadow: none !important;
    }

    .btn:focus-visible {
        outline: 3px solid #3BB07E !important;
        outline-offset: 2px !important;
        box-shadow: 0 0 0 6px rgba(59, 176, 126, 0.5), 0 0 8px rgba(59, 176, 126, 0.4) !important;
        transition: box-shadow 0.2s ease, outline 0.2s ease !important;
    }

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn.btn-success {
    --btn-bg: #3BB07E;
    --btn-bg-hover: #04996a;
    --btn-shadow-hover: rgba(4, 153, 106, 0.4);
}

.btn.btn-info {
    --btn-bg: #6495ed;
    --btn-bg-hover: #3b6fc4;
    --btn-shadow-hover: rgba(59, 111, 196, 0.4);
}

.btn.btn-cancel {
    --btn-bg: #ff4d4f;
    --btn-bg-hover: #d32f2f;
    --btn-shadow-hover: rgba(211, 47, 47, 0.4);
}

.btn.btn-neutral {
    --btn-bg: #424342;
    --btn-bg-hover: #2e2e2e;
    --btn-shadow-hover: rgba(66, 67, 66, 0.4);
}

.btn.btn-warning {
    --btn-bg: #ffbf00;
    --btn-bg-hover: #e6ac00;
    --btn-shadow-hover: rgba(255, 191, 0, 0.4);
}

.btn.btn-white {
    --btn-bg: #ffffff;
    --btn-bg-hover: #f0f0f0;
    --btn-shadow-hover: rgba(0, 0, 0, 0.1);
    color: #000000;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    overflow: hidden;
}

.modal-content {
    background-color: #ffffff;
    color: #424342;
    padding: 2rem;
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

    .modal-content h2 {
        color: #424342;
        font-size: 2.15rem;
        margin-bottom: 1rem;
    }

    .modal-content h3 {
        color: #424342;
        font-size: 1.7rem;
        margin-bottom: 1rem;
        margin-top: 1rem;
        border-bottom: 3px solid #05c083;
    }

    .modal-content p {
        color: #424342;
        font-size: 1.4rem;
        margin: 0.5rem 0;
    }

.modal-container {
    background-color: #f9f9f9;
    border-radius: 20px;
    padding: 1rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

    .modal-container:hover {
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
    }

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.currency-input-wrapper {
    display: flex;
    align-items: center;
}

.currency-symbol {
    padding: 0 0.5rem;
    font-weight: bold;
    font-size: 1rem;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 8px 0 0 8px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.currency-input-wrapper .form-control {
    border-radius: 0 8px 8px 0;
    border-left: none;
}

.profile-page {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.profile-header {
    position: sticky !important;
    top: 0;
    background-color: white;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.profile-header-container {
    scroll-margin-top: 60px !important;
    scroll-padding-top: 60px !important;
    width: 100%;
}

.profile-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.8rem 0.3rem;
}

.profile-header-left {
    display: flex;
    flex: 1 1 300px;
    min-width: 250px;
    margin-top: 13px;
}

.profile-header-main {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-grow: 1;
}

.profile-avatar {
    width: 70px;
    height: 70px;
    background-color: #05c083;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.profile-header-right {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
    min-width: 200px;
    margin-left: auto;
}

.profile-name {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    white-space: nowrap;
}

.profile-member-since {
    font-size: 18px;
    color: #666;
}

.stat-block {
    display: flex;
    flex-direction: column;
    min-width: 100px;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
    border-radius: 12px;
    padding: 0.6rem 0.8rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    will-change: transform, box-shadow;
    cursor: default;
}

    .stat-block:hover {
        transform: scale(1.025);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    }

.stat-icon {
    color: #05c083;
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
    transition: color 0.3s ease;
}

.stat-label {
    font-size: 18px;
    color: #666;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: #222;
}

.stat-alert {
    border: 1px solid #f44336;
    box-shadow: 0 0 10px rgba(244, 67, 54, 0.2);
}

    .stat-alert .stat-icon {
        color: #f44336;
    }

.profile-actions {
    overflow: hidden;
    white-space: nowrap;
    transition: all 0.3s ease;
    gap: 10px;
    margin-left: auto;
    opacity: 0;
    display: none;
}

    .profile-actions.visible {
        overflow: visible;
        display: flex !important;
        opacity: 1;
    }

    .profile-actions.hidden {
        max-width: 0;
        opacity: 0;
        display: none;
    }

.profile-content {
    flex: 1;
    overflow-y: auto;
}

.profile-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    grid-template-rows: auto;
    gap: 1.5rem;
}

.profile-form-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 0.5rem;
    padding-bottom: 5rem;
    box-sizing: border-box;
}

.profile-form-group label {
    flex: 0 0 auto;
    font-weight: 600;
    font-size: 18px;
    text-align: left;
    display: flex;
    min-height: fit-content;
    overflow: visible;
}

.file-input-wrapper {
    max-width: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.file-input-control {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
}

.editable-transition {
    overflow: visible;
    transition: max-height 0.35s ease, opacity 0.35s ease;
}

.edit-display,
.edit-input {
    opacity: 1;
    max-height: fit-content;
    word-wrap: break-word;
    hyphens: auto;
}

.edit-collapsed {
    opacity: 0;
    max-height: 0;
    pointer-events: none;
}

.readonly-value {
    font-size: 18px;
    color: #333;
    padding: 0.75rem 0rem;
    line-height: 1.4;
}

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

    .profile-header-row {
        padding: 0.2rem 0.1rem;
    }

    .profile-header-left {
        display: flex;
        flex-direction: column;
        gap: 0.3rem;
        margin: 0;
    }

    .profile-header-main {
        display: flex;
        flex-direction: row;
        align-items: center;
        margin: 0;
    }

    .profile-avatar {
        width: 50px;
        height: 50px;
        font-size: 1rem;
        margin: 0;
    }

    .profile-name {
        font-size: 1.1rem;
        margin: 0;
    }

    .profile-member-since {
        font-size: 0.75rem;
        margin-top: 0.2rem;
    }

    .profile-actions {
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
        width: 100%;
        margin: 10px 0;
        padding: 0.2rem 0;
    }

    .profile-header-left,
    .profile-header-right {
        width: 100%;
        margin: 0;
    }

    .stat-block {
        padding: 0.4rem 0.5rem;
        flex: 1 1 30%;
        min-width: 85px;
        max-width: 100px;
        max-height: 85px;
    }

    .stat-icon {
        font-size: 0.9rem;
        margin-bottom: 0.2rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .stat-value {
        font-size: 0.85rem;
    }

    .profile-header-right {
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem;
        justify-content: space-between;
        margin-left: 0 !important;
    }

    .filter-sidebar {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 16px;
    }

    .filter-group {
        flex-direction: column;
        gap: 16px;
    }

    .filter-sidebar input,
    .filter-sidebar select,
    .filter-sidebar button {
        width: 100%;
        max-width: 100%;
    }

    .sent-messages-panel,
    .message-detail-panel {
        height: auto !important;
    }

    .message-preview,
    .message-status {
        font-size: 0.95rem;
    }

    .compose-container {
        height: calc(100vh - 64px);
    }

    .compose-wrapper {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
    }

    .pa-4 {
        padding: 1rem !important;
    }
}

@keyframes fadeSlideIn {
    0% {
        opacity: 0;
        transform: translateY(18px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-slide-in {
    animation: fadeSlideIn 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.mud-table {
    animation: fadeSlideIn 0.5s ease-out;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    background-color: #ffffff;
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

    .mud-table thead th {
        padding: 18px 24px;
        background-color: #fafafa;
        text-align: left;
        text-transform: uppercase;
        letter-spacing: 0.7px;
        font-size: 14px;
        font-weight: 700;
        color: #2f2f2f;
        border-bottom: 2px solid #ececec;
    }


@keyframes fadeSlideIn {
    0% {
        opacity: 0;
        transform: translateY(12px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


.mud-table {
    animation: fadeSlideIn 0.5s ease-out;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    background-color: #ffffff;
    border-radius: 14px;
}

    .mud-table thead th {
        padding: 18px 24px;
        background-color: #fafafa;
        text-align: left;
        text-transform: uppercase;
        letter-spacing: 0.7px;
        font-size: 14px;
        font-weight: 700;
        color: #2f2f2f;
        border-bottom: 2px solid #ececec;
    }


    .mud-table td {
        padding: 20px 24px;
        color: #333;
        background-color: #ffffff;
        border-bottom: 1px solid #f1f1f1;
        transition: background-color 0.3s ease, box-shadow 0.3s ease;
    }

    .mud-table tbody tr {
        position: relative;
        z-index: 1;
        transition: background-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
        will-change: background-color, box-shadow;
        cursor: pointer;
        box-shadow: 0 0 0 rgba(0, 0, 0, 0);
        border-radius: 4px;
    }

        .mud-table tbody tr:hover {
            background-color: #e8f0fe;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 120, 212, 0.1);
            z-index: 2;
        }

.left-align-table .mud-table td,
.left-align-table .mud-table th {
    text-align: left !important;
}

.ios-toggle {
    position: relative;
    width: 46px;
    height: 26px;
    display: inline-block;
}

    .ios-toggle input {
        opacity: 0;
        width: 0;
        height: 0;
    }

    .ios-toggle .slider {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #ccc;
        transition: 0.4s;
        border-radius: 34px;
    }

        .ios-toggle .slider:before {
            position: absolute;
            content: "";
            height: 20px;
            width: 20px;
            left: 3px;
            bottom: 3px;
            background-color: #424342;
            transition: 0.4s;
            border-radius: 50%;
        }

    .ios-toggle input:checked + .slider {
        background-color: #3BB07E;
    }

        .ios-toggle input:checked + .slider:before {
            transform: translateX(20px);
        }

.toggle-label {
    font-weight: 500;
    font-size: 0.9rem;
    color: #424342;
}

.messaging-layout {
    padding: 16px;
    box-sizing: border-box;
}

.sent-messages-panel {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 64px);
    padding: 0.5rem;
}

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

.sent-messages-scroll {
    flex-grow: 1;
    overflow-y: auto;
    min-height: 0;
}


.selected-message {
    border-left: 4px solid var(--mud-palette-secondary);
    background-color: #e3f2fd;
}

.message-detail-panel {
    height: calc(100vh - 64px);
    overflow-y: auto;
    padding: 0.5rem;
}

.message-card {
    background-color: white;
    border-left: 4px solid var(--mud-palette-primary);
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease;
    cursor: pointer;
}

    .message-card:hover {
        background-color: #f5f5f5;
        transition: background-color 0.2s ease;
    }

.message-header {
    display: flex;
    justify-content: space-between;
    font-weight: 400;
    font-size: 1rem;
    color: #424342;
}

.message-title {
    font-weight: 600 !important;
    font-size: 1.15rem !important;
    margin-top: 2px !important;
    color: #424342 !important;
}

.message-preview {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.message-status {
    font-size: 0.85rem;
    color: var(--mud-palette-primary);
    font-weight: 500;
    margin-top: 0.25rem;
}

.empty-message-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.empty-message-container {
    width: 50%;
    max-width: 600px;
    text-align: center;
}

.compose-wrapper {
    width: 70%;
    max-width: 900px;
    margin: 64px auto 0;
}

.compose-underline .mud-input-root {
    border-bottom: 1px solid var(--mud-palette-lines-default);
    border-radius: 0;
    padding-left: 0;
    padding-right: 0;
}

.compose-underline .mud-input-input {
    font-size: 1.1rem;
    padding: 0.25rem 0;
}

.compose-underline .mud-input-label {
    font-weight: 500;
    color: var(--mud-palette-text-secondary);
}

.compose-underline .mud-input-control {
    box-shadow: none;
}

.compose-fab {
    position: sticky;
    top: 16px;
    z-index: 10;
}

.compose-header {
    display: flex;
    gap: 1rem;
}

.me-1 {
    margin-right: .4rem;
}

.me-2 {
    margin-right: .7rem;
}

.me-3 {
    margin-right: 1rem;
}

.read-user {
    color: #4caf50;
}

.unread-user {
    color: #aaa;
}

.compose-button-group {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.search-input .mud-input-control {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.pa-4-tight {
    padding: 0.5rem 1rem 0.5rem 1rem !important;
}

.compose-container {
    display: flex;
    align-items: flex-start;
    width: 100%;
}

.user-directory {
    width: 440px;
    height: calc(100vh - 128px);
    background-color: white;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.directory-header {
    font-weight: 600 !important;
    font-size: 1rem !important;
    padding: 1rem !important;
    border-bottom: 1px solid var(--mud-palette-lines-default) !important;
    background-color: white !important;
    flex-shrink: 0 !important;
}

.directory-scroll {
    overflow-y: auto !important;
    padding: 0.5rem 1rem !important;
    flex-grow: 1 !important;
}

.directory-search {
    margin-top: 0.5rem !important;
}

.directory-item {
    cursor: pointer;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.directory-entry {
    display: flex;
    flex-direction: column;
    word-break: break-word;
}

.user-name {
    font-weight: 500;
    font-size: 1rem;
    color: var(--mud-palette-text-primary);
}

.user-email {
    font-size: 0.95rem;
    color: #9e9e9e;
    margin-top: 0.1rem;
}

.message-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding: 0 4px;
}

.right-buttons {
    display: flex;
    align-items: center;
}

.page-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #424342;
}

.grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    overflow-y: auto;
    max-height: calc(100vh - @(isPinned ? "480" : "120")px);
    justify-content: center;
}

.grid-item {
    position: relative;
    height: 360px;
    width: 300px;
    border: 2px solid #424342;
    border-radius: 12px;
    background-color: white;
    color: black;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 1.2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    flex-grow: 0;
}

.alert-preview-icon {
    height: 100px;
    width: 100px;
}

.kpi-grid {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 20px;
    padding: 8px;
    max-width: 100%;
}

.kpi-item {
    background-color: white;
    color: black;
    padding: 16px;
    text-align: center;
    font-size: 1.2rem;
    border-radius: 12px;
    border: 2px solid #424342;
    height: 300px;
    width: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    cursor: default;
    position: relative;
}

.chart-container {
    position: relative;
    height: 275px;
    width: 1100px;
}

@media (max-width: 1800px) {
    .chart-container {
        width: 800px;
    }
}

@media (max-width: 1600px) {
    .chart-container {
        width: 600px;
    }

    .filter-sidebar {
        flex: 0 0 180px;
    }

    .review-list {
        flex: 0 0 240px;
    }
}

@media (max-width: 1300px) {
    .chart-container {
        display: none;
    }
}

.kpi-value {
    font-size: 2.2rem;
    font-weight: bold;
}

.kpi-label {
    font-size: 1rem;
    color: #666;
    margin-top: 0.5rem;
    text-transform: uppercase;
}

.kpi-subtext {
    font-size: 0.8rem;
    color: #999;
    margin-top: 0.25rem;
}

.kpi-item .chart-container {
    width: 90%;
    height: 90%;
    margin: auto;
    position: relative;
}

.kpi-tab {
    background-color: #3BB07E;
    color: white;
    padding: 5px 10px;
    cursor: pointer;
    width: fit-content;
    margin: 0 auto;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

    .kpi-tab:hover {
        background-color: #2a8d65;
    }

.top-section {
    position: relative;
    border-bottom: 2px solid #424342;
    padding: 16px;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    max-width: 100%;
}

    .top-section.collapsed {
        max-height: 40px;
        opacity: 1;
    }

    .top-section.expanded {
        max-height: 600px;
        opacity: 1;
    }

.pin-button-container {
    width: 100%;
    text-align: center;
    margin: 0 0;
}

.alert-top {
    border-bottom: 2px solid #424342;
    padding: 16px;
    text-align: center;
    flex-grow: 1;
    width: 100%;
}

.alert-bottom {
    padding: 16px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    border-radius: 0 0 10px 10px;
    height: 80px;
}

.kpi-content {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease 0.1s, visibility 0s linear 0s;
}

    .kpi-content.hidden {
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0s linear 0.3s;
    }

.full-screen-dialog {
    height: 90vh !important;
    padding: 16px;
    max-height: 90vh;
    overflow-y: hidden;
    padding: 16px;
    transition: margin-left 0.3s ease, width 0.3s ease;
    width: 97vw;
    margin-top: 60px;
}

.info-card {
    margin-bottom: 16px;
    border-radius: 12px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border: 2px solid #424342;
}

.selected-card {
    margin-bottom: 16px;
    border-radius: 12px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border: 4px solid #3BB07E;
}

.map-image {
    width: 100%;
    border-radius: 8px;
    margin-top: 10px;
}

.action-paper {
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.nowrap-text {
    text-align: center;
}

.custom-grid {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
    margin-bottom: 16px;
}

.action-button {
    flex: 1 1 30%;
    min-width: 0;
    height: 100px;
    padding: 10px 5px;
    margin-bottom: 8px;
    border: solid;
}

.center-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 5px;
    height: 100%;
    margin-top: 10px;
}

.button-text {
    text-align: center;
    font-size: 1.3rem;
    line-height: 1.2;
    white-space: normal;
    word-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.script-text {
    font-family: monospace;
    background-color: #f4f4f4;
    padding: 10px;
    border-left: 4px solid #ccc;
    display: block;
    white-space: pre-wrap;
}

.w3w-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
}

.w3w-link {
    display: inline-flex;
    align-items: center;
    margin-left: 5px;
}

.responsive-grid {
    height: 100%;
    position: relative;
}

.left-panel {
    position: fixed;
    width: 25%;
    max-height: calc(90vh - 80px);
    overflow-y: hidden;
    padding-right: 16px;
    display: flex;
    flex-direction: column;
}

.right-panel {
    margin-left: 25%;
    width: 75%;
    height: calc(90vh - 40px);
}

.info-card .timeline-container {
    height: calc(50vh - 40px);
    overflow-y: auto;
    overflow-x: hidden;
}

.left-panel .info-card:nth-child(1),
.left-panel .info-card:nth-child(2) {
    flex-shrink: 0;
}

.left-panel .info-card:last-child {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-height: 200px;
    margin-bottom: 0;
    max-height: calc(100% - 16px);
}

    .left-panel .info-card:last-child .mud-card-content {
        display: flex;
        flex-direction: column;
        height: 100%;
        overflow: hidden;
    }

    .left-panel .info-card:last-child .timeline-container {
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
        padding-right: 8px;
    }

@media (max-width: 1520px) and (min-width: 1280px) {
    .w3w-container {
        font-size: 1.15rem;
    }

    .w3w-link {
        font-size: 1.15rem;
    }
}

@media (max-width: 1280px) {
    .left-panel {
        position: static;
        width: 100% !important;
        height: auto;
        max-height: none;
        padding-right: 0;
        overflow: visible;
    }

        .left-panel .info-card:last-child {
            max-height: 300px;
        }

            .left-panel .info-card:last-child .timeline-container {
                max-height: 250px;
            }

    .right-panel {
        margin-left: 0;
        width: 100% !important;
        height: auto;
        max-height: none;
        overflow: visible;
    }

    .full-screen-dialog {
        overflow-y: auto;
    }
}

.safe-word {
    background-color: #fff;
    color: #424342;
    padding: 8px 16px;
    border: 2px solid #424342;
    border-radius: 8px;
    font-weight: 700;
    font-size: 34px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.05);
    white-space: nowrap;
    display: inline-block;
}

.clear-users-button {
    background-color: #f44336;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 10px;
}

    .clear-users-button:hover {
        background-color: #d32f2f;
    }

.review-map-container {
    height: 100%;
    width: 100%;
    position: relative;
}

.shift-wrapper {
    margin-bottom: 16px;
}

.panic-alert-box {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    margin: -4px 8px 8px 8px;
    padding: 12px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.05);
    animation: slideDown 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.attached-alert-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: white;
    border: 1px solid #eee;
    border-radius: 6px;
    margin-bottom: 8px;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.05);
    animation: slideDown 0.3s ease;
}

    .attached-alert-row.selected {
        border-color: #3BB07E;
        background-color: #e6f8f0;
    }

.attached-alert-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.attached-alert-info {
    display: flex;
    flex-direction: column;
}

.attached-alert-title {
    font-weight: 600;
    font-size: 1rem;
    color: #333;
}

.attached-alert-time {
    font-size: 0.9rem;
    color: #666;
}

.review-playback-box {
    position: absolute;
    bottom: 2%;
    left: 5%;
    width: 90%;
    background: white;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-sizing: border-box;
    z-index: 999;
    font-family: 'Segoe UI', sans-serif;
}

/* Grouping layout */
.timeline-controls-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    width: 100%;
    min-width: 0;
}

/* Grouped sections */
.control-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1 1 0;
    min-width: 0;
}

.animated-marker {
    will-change: transform, filter, opacity;
}

/* Timeline Buttons */
.timeline-button {
    background: white;
    border: none;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    width: 50px;
    height: 50px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

    .timeline-button:hover {
        transform: scale(1.1);
    }

/* Button variants */
.play-button {
    color: #32a06c;
}

    .play-button:hover {
        background-color: #32a06c;
        color: white;
    }

.stop-button {
    color: #d32f2f;
}

    .stop-button:hover {
        background-color: #d32f2f;
        color: white;
    }

.step-button {
    color: #6495ED;
}

    .step-button:hover {
        background-color: #6495ED;
        color: white;
    }

.speed-button,
.unlooped-button {
    color: #424242;
}

    .speed-button:hover,
    .unlooped-button:hover {
        background-color: #424242;
        color: white;
    }

.looped-button {
    color: #6495ED;
}

    .looped-button:hover {
        background-color: #6495ED;
        color: white;
    }

/* Timestamp and name boxes */
.timeline-box,
.timeline-name-box {
    flex: 1 1 100px;
    min-width: 0;
    max-width: 300px;
    background: white;
    border-radius: 6px;
    padding: 6px 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    font-size: 25px;
    text-align: center;
    white-space: nowrap;
}

.timeline-box {
    width: 300px;
    min-height: 40px;
    font-size: 25px;
    overflow: hidden;
    word-wrap: anywhere;
    text-overflow: ellipsis;
}

.timeline-name-box {
    width: 300px;
    min-height: 40px;
    font-size: 25px;
    overflow: hidden;
    word-wrap: anywhere;
    text-overflow: ellipsis;
}

.left-group,
.right-group {
    flex: 0 0 auto;
    display: flex;
    gap: 6px;
}

.middle-group {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    gap: 10px;
    min-width: 0;
}

.right-group {
    margin-left: auto;
}

/* Slider styling */
.timeline-slider {
    width: 100%;
    margin-top: 6px;
}

    .timeline-slider .mud-slider-track {
        background-color: #cde3d8;
        height: 6px;
        border-radius: 3px;
    }

    .timeline-slider .mud-slider-thumb {
        background-color: #2ca16d;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        box-shadow: 0 0 2px rgba(0, 0, 0, 0.4);
    }

.mud-list-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    white-space: normal;
    overflow: hidden;
}

.mud-list-item-content {
    white-space: normal;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-type {
    font-size: 1.125rem;
    color: #3BB07E;
    font-weight: 600;
    margin-top: 2px;
}

.label {
    font-size: 1.0625rem;
    font-weight: 600;
    color: #333;
    margin-right: 4px;
}

.timeline-container {
    padding-top: 10px;
}

.timeline-entry {
    position: relative;
    margin-bottom: 20px;
}

.timeline-dot {
    position: absolute;
    left: -29px;
    top: 6px;
    height: 12px;
    width: 12px;
    background-color: white;
    border: 3px solid #3BB07E;
    border-radius: 50%;
    z-index: 2;
}


.timeline-entry:first-child .timeline-dot,
.timeline-entry:last-child .timeline-dot {
    height: 14px;
    width: 14px;
    background-color: #3BB07E;
    border: none;
    top: 4px;
    box-shadow: 0 0 0 2px #fafafa;
}

.timeline {
    position: relative;
    margin-left: 24px;
    padding-left: 24px;
}

    .timeline::before {
        content: '';
        position: absolute;
        top: 16px;
        bottom: 30px;
        left: 0;
        width: 3px;
        background-color: #3BB07E;
        z-index: 0;
        border-radius: 2px;
    }

.timeline-content {
    display: flex;
    flex-direction: column;
}

.timeline-time {
    font-weight: 700;
    font-size: 1.1rem;
    color: #222;
    margin-bottom: 2px;
}

.timeline-event {
    font-size: 1rem;
    color: #444;
}

.alert-type-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.additional-info-form {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

    .additional-info-form label {
        font-weight: 600;
        font-size: 0.95rem;
        color: #444;
    }

    .additional-info-form select,
    .additional-info-form textarea {
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 6px;
        font-size: 1rem;
        width: 100%;
        box-sizing: border-box;
        transition: border-color 0.2s;
        resize: none;
    }

        .additional-info-form select:focus,
        .additional-info-form textarea:focus {
            outline: none;
            border-color: #3BB07E;
        }

.add-info-button {
    background-color: #3BB07E;
    color: white;
    border: none;
    padding: 10px 16px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: fit-content;
    margin-top: 8px;
}

    .add-info-button:hover {
        background-color: #32a06c;
    }

.additional-action-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #555;
}

.category {
    font-weight: 700;
    color: #3BB07E;
}

.added-by {
    font-style: italic;
}

.added-time {
    font-size: 0.85rem;
    color: #888;
}

.additional-action-text {
    font-size: 1rem;
    color: #333;
    white-space: pre-wrap;
}

.additional-action-item {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 14px;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s;
}

    .additional-action-item:hover {
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    }

.additional-action-category {
    font-size: 1.125rem;
    font-weight: 700;
    color: #424342;
}

.additional-action-meta {
    display: flex;
    gap: 12px;
    font-size: 0.95rem;
    color: #555;
}

.additional-action-user {
    font-style: italic;
}

.additional-action-time {
    font-size: 0.9rem;
    color: #999;
}

.additional-action-text {
    font-size: 1.05rem;
    color: #333;
    margin-top: 8px;
    white-space: pre-wrap;
}

.validation-error {
    color: #F44336;
    background-color: #ffe6e6;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 0.95rem;
}

.table-no-border {
    border: none !important;
    /* Remove the table border */
    box-shadow: none !important;
    /* Remove any shadow applied to the table */
}

    .table-no-border thead th,
    .table-no-border tbody td {
        border: none !important;
        /* Remove inner cell borders */
    }

.mud-popover.wide-select-popover {
    min-width: 300px;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-row {
    flex-direction: row;
}

.flex-wrap {
    flex-wrap: wrap;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

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

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

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

.gap-1 {
    gap: 0.25rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.overflow-hidden {
    overflow: hidden;
}

.overflow-y-auto {
    overflow-y: auto;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.heading6 {
    padding-bottom: 8px;
    font-weight: bold;
    font-size: 1.25rem;
    text-align: center;
    color: #424342;
}

.text-fields {
    flex-grow: 1;
    width: 95%;
}

.link-row-icon {
    height: 32px;
    width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.body-text {
    font-size: 1.125rem;
}

.login-container {
    display: flex;
    min-height: 100vh;
    height: auto;
    animation: fadeIn 1s ease-in-out forwards;
}

.login-left-half {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #3bb07e;
    color: #ffffff;
    padding: 2rem 1rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* This centers the form vertically */
.content-wrapper {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

/* This stays pinned to bottom naturally */
.footer-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.login-form {
    text-align: center;
    max-width: 400px;
    width: 100%;
    margin-bottom: 40px;
}

#welcome-text {
    font-size: 2rem;
    margin-bottom: 30px;
    font-weight: bold;
    text-align: left;
}

.form-group {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
}

    .toggle-password img {
        width: 35px;
        height: 35px;
    }

.nav-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.login-right-half {
    flex: 1;
    background: url('/assets/Login/sample_bg_img.jpg') no-repeat center center;
    background-size: cover;
}

.error-banner {
    width: 100%;
    background-color: #ff4d4f;
    color: white;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    text-align: center;
    font-size: 1.3rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.w3w-logo {
    max-width: 300px;
    margin-bottom: 2rem;
}

.terms-link {
    font-weight: 600;
    font-size: 1.2rem;
    text-decoration: underline;
    margin-bottom: 1rem;
    color: white;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.forgot-password-container {
    display: flex;
    height: 100vh;
}

.left-half {
    flex: 1;
    background: url('/assets/Login/forgot-password-left.jpg') no-repeat center center;
    background-size: cover;
}

.forgot-password-form {
    text-align: center;
    max-width: 400px;
    width: 100%;
    margin-bottom: 40px;
}

#forgot-password-text {
    font-size: 2rem;
    margin-bottom: 30px;
    font-weight: bold;
    text-align: left;
}

.right-half {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    color: #424342;
    position: relative;
}

.go-back-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #3bb07e;
    text-decoration: underline;
    transition: color 0.2s ease;
    z-index: 10;
}

    .go-back-btn:hover {
        color: #1d7a5c;
        text-decoration: underline;
    }

.collapsible-section {
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.collapsible-header {
    font-size: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
    border-bottom: 3px solid #05c083;
    grid-column: 1 / -1;
    display: flex;
}

.collapsible-body {
    overflow: hidden;
    background-color: white;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.3s ease, opacity 0.3s ease, height 0.35s ease;
}

    .collapsible-body.expanded {
        max-height: 2000px;
        opacity: 1;
        pointer-events: auto;
    }

.arrow-icon {
    transform: translateX(7px);
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    display: inline-block;
    opacity: 1;
    visibility: visible;
    will-change: transform, opacity;
}

    .arrow-icon.expanded {
        transform: translateX(7px) rotate(180deg);
    }

    .arrow-icon.hidden {
        opacity: 0;
        transform: translateX(-10px) rotate(0deg);
        visibility: hidden;
    }

.not-authorized-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #ffffff;
}

    .not-authorized-container img {
        max-width: 80%;
        max-height: 80%;
    }

.member-management-table {
    min-width: 300px;
    max-height: 500px;
    overflow-y: auto;
}

.glow {
    animation: glow 1s ease-in-out infinite;
}

@keyframes glow {

    0%, 100% {
        box-shadow: 0 0 0px var(--colour-primary);
    }

    25% {
        box-shadow: 0 0 6px var(--colour-primary);
    }

    50% {
        box-shadow: 0 0 12px var(--colour-primary);
    }

    75% {
        box-shadow: 0 0 6px var(--colour-primary);
    }
}

.image-skeleton {
    width: 60px;
    height: 60px;
    background-color: #eee;
    border-radius: 6px;
    display: inline-block;
    margin: 4px;
    animation: pulse 1.2s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        background-color: #eee;
    }

    50% {
        background-color: #ddd;
    }

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

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

    .gallery img {
        width: 60px;
        height: 60px;
        border-radius: 6px;
        object-fit: cover;
        margin: 4px;
    }

.video-thumbnail {
    position: relative;
    cursor: pointer;
    display: inline-block;
    width: 60px;
    height: 60px;
    overflow: hidden;
    border-radius: 6px;
    margin: 4px;
}

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 28px;
    color: white;
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.7);
}

.content-image {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.checkpoint-modal-content {
    max-width: 90vw;
    max-height: 90vh;
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: default;
    pointer-events: none;
    position: relative;
}

    .checkpoint-modal-content img,
    .checkpoint-modal-content video {
        display: block;
        max-width: 90vw;
        max-height: 90vh;
        width: auto;
        height: auto;
        object-fit: contain;
        pointer-events: auto;
    }

.modal-nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10000;
    user-select: none;
    pointer-events: auto;
}

    .modal-nav-button.left {
        left: 0;
    }

    .modal-nav-button.right {
        right: 0;
    }

.content-video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/*Billing Page*/
.billing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    height: calc(100vh - 140px);
    /* Adjust depending on toggle size */
    gap: 1rem;
    padding: 1rem;
    box-sizing: border-box;
}

.billing-grid-item {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 8px;
    border: 1px solid #ccc;
    overflow: hidden;
    height: 100%;
    width: 100%;
}

.billing-chart-box h3,
.billing-summary-box h3 {
    text-align: center;
    margin-bottom: 1rem;
}

.billing-grid-item.billing-chart-box {
    min-height: 300px;
    /* or whatever fits well */
}


.billing-chart-container {
    flex: 1;
    display: flex;
    justify-content: center;
    height: 85%;
    /* NEW: ensures canvas has a height to inherit */
    position: relative;
}

    .billing-chart-container canvas {
        width: 100% !important;
        height: 100% !important;
    }

.billing-total-amount {
    font-size: 2.5rem;
    font-weight: bold;
}

.billing-summary-box {
    justify-content: center;
    align-items: center;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.billing-breakdown p {
    font-size: 1.75rem;
    margin: 0.5rem 0;
}

.billing-breakdown em {
    font-size: 1.2rem;
    font-style: italic;
}

.billing-view-toggle {
    height: 50px;
    padding: 1rem;
    background-color: #f8f8f8;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.billing-view-controls {
    padding: 1rem;
    background-color: #f8f8f8;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.no-data-message {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    /* or specify a fixed height if needed */
    font-weight: bold;
    color: gray;
    text-align: center;
}

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

/*Billing Page*/

.mapboxgl-popup.clean-popup .mapboxgl-popup-content {
    background: white;
    border-radius: 10px;
    padding: 0;
    box-shadow: none;
}

.mapboxgl-popup.clean-popup .mapboxgl-popup-close-button {
    display: none;
}

.mapboxgl-popup.clean-popup .mapboxgl-popup-tip {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip {
    width: 20px;
    height: 10px;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    background: none !important;
}

.mapboxgl-popup.mapboxgl-popup-anchor-top-left .mapboxgl-popup-tip,
.mapboxgl-popup.mapboxgl-popup-anchor-top-right .mapboxgl-popup-tip,
.mapboxgl-popup.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-tip,
.mapboxgl-popup.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-tip {
    display: none !important;
}

.marker-transparent {
    opacity: 0.2 !important;
}

.mapboxgl-popup {
    z-index: 99999 !important;
    /* much higher */
}

.mapboxgl-popup-content {
    z-index: 2;
    /* ensure content is above the tip */
}

/*Billing Page*/

/*Geofence Page*/

.geofence-page {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 64px);
    overflow: hidden;
}

.geofence-create-button {
    margin-bottom: 1rem;
    width: fit-content;
    height: 46px;
    padding: 0 1rem;
    font-weight: bold;
    white-space: nowrap;
}

.active-geofences {
    flex-direction: column;
    overflow-y: scroll;
}

.geofence-list-container {
    flex: 1;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.geofence-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: .2rem;
    align-items: start;
}

.geofence-card .thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
}


.geofence-card {
    padding: 1rem;
    margin: 10px 10px 10px 5px;
    border: 1px solid #ccc;
    border-radius: 8px;
    width: 450px;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
    font-size: large;
    align-self: start;
}

    .geofence-card:hover {
        transform: scale(1.02);
        cursor: pointer;
    }

.geofence-header {
    display: flex;
    flex-direction: column;
    align-items: start;
    margin-bottom: 1rem;
    gap: 1rem;
}

@media (min-width: 768px) {
    .geofence-header {
        flex-direction: row;
        justify-content: center;
    }
}

.unified-input,
.unified-select {
    height: 46px;
    background-color: #f9f9f9;
    padding: 0 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    max-width: 20%;
}

/* ===== Modal ===== */

.geofence-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.geofence-modal-dialog {
    width: 70%;
    max-width: 70%;
    height: 80%;
    /* fixed viewport height */
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.geofence-modal-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.geofence-modal-header {
    padding: 1rem;
    background-color: white;
    border-bottom: 1px solid #ddd;
    position: relative;
}

.geofence-modal-footer {
    padding: 0.75rem 1rem;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: flex-start;
    /* buttons on the left */
    gap: 0.5rem;
}

/* Body fills remaining height; NO padding so map is flush */
.geofence-modal-body {
    flex: 1;
    display: flex;
    gap: 0;
    /* no visual gap around map */
    padding: 0;
    overflow: hidden;
}

.geofence-modal-title {
    margin: 0;
}

.geofence-close-button {
    background: none;
    border: none;
    font-size: 1.25rem;
    font-weight: bold;
    position: absolute;
    top: 1rem;
    right: 1rem;
    cursor: pointer;
}

/* Left column with its own padding and internal scroll */
.geofence-form {
    flex: 1;
    min-width: 340px;
    padding: 1rem 1rem 1rem 1rem;
    overflow: auto;
}

/* Scrollable chip area (prevents dialog growth & overflow) */
.geofence-chip-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    max-height: 180px;
    /* adjust as needed */
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.25rem;
    /* room for scrollbar */
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 0.5rem;
}

/* Right column: square map, flush to top/bottom/right */
.geofence-map-wrap {
    /* Take full available height, make width = height to be square */
    max-height: 100%;
    aspect-ratio: 1.5 / 1;
    max-width: 60%;
    margin-left: auto;
    /* push map to the far right */
    align-self: stretch;
    overflow: hidden;
}

    /* Make the map component fill its container exactly */
    .geofence-map-wrap > * {
        display: block;
        width: 100%;
        height: 100%;
    }

/* Fallback for very narrow viewports: allow map to shrink */
@media (max-width: 1100px) {
    .geofence-modal-dialog {
        width: 90%;
    }

    .geofence-map-wrap {
        aspect-ratio: auto;
        min-width: 260px;
    }
}

/* Typography + controls inside modal */
.geofence-modal-title,
.geofence-modal-subtitle,
.geofence-modal-body label,
.geofence-modal-body input,
.geofence-modal-body select,
.geofence-chip {
    font-size: 1.1rem;
}

/* Checkbox styling using primary color */
input[type="checkbox"].form-check-input:checked {
    background-color: var(--colour-primary) !important;
    border-color: var(--colour-primary) !important;
    color: white;
    box-shadow: none;
}

input[type="checkbox"].form-check-input {
    accent-color: var(--colour-primary);
}

/* Chip styling */
.geofence-chip {
    display: inline-flex;
    align-items: center;
    background-color: var(--colour-primary);
    color: white;
    padding: 0.2rem 0.85rem;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 500;
    margin: 0;
}

.geofence-chip-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    font-weight: bold;
    margin-left: 0.5rem;
    cursor: pointer;
    color: white;
}

.geofence-chip-toggler {
    background-color: #d3d3d3;
    font-weight: bold;
    cursor: pointer;
    padding: 0.4rem 0.85rem;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Autocomplete suggestion list */
.geofence-suggestion-list {
    list-style: none;
    padding: 0;
    margin-top: 0.25rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
    background-color: white;
    position: absolute;
    z-index: 1000;
    width: 100%;
}

    .geofence-suggestion-list li {
        padding: 0.5rem;
        cursor: pointer;
    }

        .geofence-suggestion-list li:hover {
            background-color: #f0f0f0;
        }


/*Geofence Page*/

#map .mapboxgl-popup {
    z-index: 1 !important;
}

.glow-red::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(225, 31, 38, .55);
    animation: sl-glow 1.8s ease-out infinite;
    pointer-events: none;
}

@keyframes sl-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(225, 31, 38, .55);
    }

    70% {
        box-shadow: 0 0 0 16px rgba(225, 31, 38, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(225, 31, 38, 0);
    }
}

/* Scheduling Page */

.scheduling-page {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 64px);
    overflow: hidden;
}

.scheduling-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    margin-bottom: .75rem;
}

    .scheduling-header > * {
        flex: 0 0 auto;
    }

@media (min-width: 768px) {
    .scheduling-header {
        flex-direction: row;
        justify-content: center;
    }
}

/* Unified controls (styled like geofence inputs, but namespaced) */
.scheduling-unified-input,
.scheduling-unified-select {
    height: 46px;
    background-color: #f9f9f9;
    padding: 0 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    width: 25%;
    min-width: 220px;
}

.scheduling-create-button {
    width: fit-content;
    height: 46px;
    padding: 0 1rem;
    font-weight: bold;
    white-space: nowrap;
}

    .scheduling-create-button:hover {
        filter: brightness(0.95);
    }

/* Section */
.scheduling-section {
    margin: 20px;
    display: flex;
    flex-direction: column;
    flex-direction: column;
    overflow: hidden;
}

.scheduling-section-title {
    margin: 0 0 .75rem 0;
}


/* Card grid */
.scheduling-list-container {
    flex: 1;
    overflow-y: auto;
}

.scheduling-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .75rem;
}

@media (max-width: 1400px) {
    .scheduling-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1100px) {
    .scheduling-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 720px) {
    .scheduling-list {
        grid-template-columns: 1fr;
    }
}

.scheduling-viewtoggle {
    display: flex;
    gap: .4rem;
}

.scheduling-toggle {
    height: 46px;
    width: 46px;
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
}

    .scheduling-toggle:hover {
        background: #f7f7f7;
    }

    .scheduling-toggle.active {
        border-color: var(--colour-primary, #198754);
        box-shadow: 0 0 0 3px rgba(25, 135, 84, .3);
    }

.scheduling-list--grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .75rem;
}

@media (max-width: 1400px) {
    .scheduling-list--grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1100px) {
    .scheduling-list--grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 720px) {
    .scheduling-list--grid {
        grid-template-columns: 1fr;
    }
}

.scheduling-list--list {
    display: grid;
    grid-template-columns: 1fr;
    /* full-width rows */
    gap: .75rem;
}

.scheduling-card {
    position: relative;
    padding: 1rem;
    margin-top: 10px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .08);
    transition: transform .18s ease, box-shadow .18s ease;
}

    .scheduling-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, .10);
        cursor: pointer;
    }

/* Title + badge */
.scheduling-card-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    overflow: hidden;
}

.scheduling-card-name-with-badge {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

.scheduling-card-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    font-size: 1rem;
    display: inline-block;
}

.scheduling-type-hint {
    color: #6b7280;
    font-size: .9rem;
    margin-top: .125rem;
}

@media (max-width: 1000px) {
    .scheduling-card-name {
        white-space: normal;
        display: block;
    }

    .scheduling-type-hint {
        display: block;
        margin-left: 0;
        margin-top: .25rem;
    }
}

/* Edit icon area (top-right), matching Geofence vibe */
.scheduling-card-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.scheduling-icon-button {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 10px;
    line-height: 1;
}

    .scheduling-icon-button:hover {
        background: #f5f5f5;
    }

/* Rows + meta */
.scheduling-row {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 8px;
    margin: 10px 0 4px 0;
}

.scheduling-label {
    color: #6b7280;
}

.scheduling-value {
    font-weight: 600;
}

.scheduling-meta {
    color: #6b7280;
    font-size: .9rem;
    margin-top: .25rem;
}

.scheduling-empty {
    color: #6b7280;
}

.scheduling-weekday-pills {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.scheduling-btn {
    min-width: 70px;
    height: 40px;
    padding: 0 .9rem;
    border-radius: 999px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.scheduling-btn--off {
    background: #f3f4f6;
    color: #374151;
    border-color: #e5e7eb;
}

    .scheduling-btn--off:hover {
        background: #e5e7eb;
        box-shadow: 0 6px 18px var(--btn-shadow-hover);
        transform: translateY(-2px);
    }

.scheduling-btn--on {
    background: #3BB07E;
    color: #ffffff;
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, .15);
}

    .scheduling-btn--on:hover {
        background: #059669;
        box-shadow: 0 6px 18px var(--btn-shadow-hover);
        transform: translateY(-2px);
    }

.scheduling-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .35);
}

.scheduling-btn-alt {
    min-width: 70px;
    height: 40px;
    padding: 0 .9rem;
    border-radius: 999px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    background: #6495ED;
    color: #ffffff;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

    .scheduling-btn-alt:hover {
        box-shadow: 0 6px 18px var(--btn-shadow-hover);
        transform: translateY(-2px);
    }

.scheduling-btn-clear {
    min-width: 70px;
    height: 40px;
    padding: 0 .9rem;
    border-radius: 999px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    background: #EA4D3E;
    color: #ffffff;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

    .scheduling-btn-clear:hover {
        box-shadow: 0 6px 18px var(--btn-shadow-hover);
        transform: translateY(-2px);
    }

.scheduling-pair-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

    .scheduling-pair-row .pair {
        flex: 1 1 260px;
        max-width: 430px;
    }

.scheduling-input-group .clear-btn {
    height: 44px;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

.scheduling-dialog-group {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    padding-top: 6vh;
}

.scheduling-modal-dialog,
.scheduling-mini-dialog {
    pointer-events: auto;
}

.mini-info {
    color: #6b7280;
}

.mini-list {
    list-style: none;
    margin: 0;
}

    .mini-list li {
        padding: .25rem 0;
    }

.mini-sep {
    margin: .5rem 0 0 0;
}

.mini-meta {
    font-size: .9rem;
    color: #6b7280;
}

.scheduling-modal-dialog {
    width: 50vw;
    max-width: 900px;
    min-width: 320px;
    height: 88vh;
    max-height: 90vh;
    min-height: 400px;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    position: relative;
    margin: 0;
}

.scheduling-mini-dialog {
    margin: 0;
    align-self: flex-start;
    flex: 0 0 340px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 0, 0, .3);
    overflow: hidden;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
}


    .scheduling-mini-dialog .geofence-modal-content {
        display: flex;
        flex-direction: column;
        padding: 16px;
        overflow-y: auto;
    }

    .scheduling-mini-dialog .geofence-modal-header {
        position: sticky;
        top: -16px;
        background: #fff;
        padding-top: 16px;
        margin: -16px -16px 8px -16px;
        border-bottom: 1px solid #e5e7eb;
    }

@media (max-width: 1100px) {
    .scheduling-dialog-group {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding-top: 4vh;
    }

    .scheduling-mini-dialog {
        width: min(340px, 92vw);
        flex: 0 0 auto;
        max-height: 50vh;
    }
}

@media (max-width: 600px) {
    .scheduling-modal-dialog {
        width: 90vw;
        height: 88vh;
        padding: 15px;
    }
}

@media (min-width: 600px) and (max-width: 1024px) {
    .scheduling-modal-dialog {
        width: 70vw;
        height: 88vh;
    }
}

@media (min-width: 1440px) {
    .scheduling-modal-dialog {
        width: 50vw;
        height: 88vh;
    }
}

.scheduling-users-section {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 250px;
    max-height: 400px;
    gap: 0.75rem;
}

.scheduling-email-header {
    display: grid;
    grid-template-columns: 1fr auto 200px;
    gap: .5rem;
    padding: .25rem .25rem;
    color: #424342;
    font-weight: 600;
    border-bottom: 1px solid #e5e7eb;
}

.scheduling-email-list {
    flex: 1 1 auto;
    max-height: 300px;
    min-height: 50px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding-right: 0.5rem;
}

.scheduling-email-row {
    display: grid;
    grid-template-columns: 1fr auto 220px auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.4rem 0.5rem;
    border-radius: 6px;
    background-color: #fff;
    border: 1px solid #e5e7eb;
    transition: background-color 0.15s ease;
}

    .scheduling-email-row:hover {
        background-color: #f9f9f9;
    }

.scheduling-remove-btn {
    padding: 0 .6rem;
    font-size: 1rem;
    line-height: 1;
}

    .scheduling-remove-btn:hover {
        font-size: 1.1rem;
    }

.scheduling-email-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.scheduling-email-mid {
    color: #424342;
    font-size: .95rem;
    white-space: nowrap;
}

.scheduling-email-select {
    width: 100%;
}

.scheduling-email-empty {
    color: #6b7280;
    padding: .5rem 0;
}


.scheduling-modal-subtitle {
    cursor: pointer;
}

/*Scheduling Page*/


/*/ Global loading animation for WASM + AccessAuthorize*/
.logo-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

    .logo-loader img {
        width: 80px;
        height: auto;
        opacity: 0.6;
        animation: pulseFade 1.6s infinite;
    }

@keyframes pulseFade {
    0% {
        opacity: 0.6;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }

    100% {
        opacity: 0.6;
        transform: scale(1);
    }
}

/*/ Global loading animation for WASM + AccessAuthorize*/

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 10px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: .80rem;
    line-height: 1.2;
    border: 1px solid transparent;
    user-select: none;
    min-width: 64px;
}

.pill--compact {
    padding: 2px 8px;
    font-size: .75rem;
    min-width: auto;
}

.pill--success {
    background: #e6f4ea;
    color: #137333;
    border-color: #a8d5b1;
}

.pill--warning {
    background: #fff7e6;
    color: #8a6a00;
    border-color: #f7d481;
}

.pill--info {
    background: #eef3fe;
    color: #185abc;
    border-color: #b6ccff;
}

.pill--danger {
    background: #fde8e7;
    color: #a50e0e;
    border-color: #f4b4ae;
}

.pill--muted {
    color: #9aa0a6;
}

.pill-note {
    font-size: .72rem;
    color: #6b7280;
    margin-top: 2px;
    max-width: 110px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pill--faded {
    opacity: .35;
    filter: grayscale(100%);
}

td.is-muted {
    background-color: #f3f4f6 !important;
}

.mud-table tr:hover td.is-muted {
    background-color: #f3f4f6 !important;
}

td.bg-muted {
    background-color: var(--bg-muted) !important;
}

td.bg-amber {
    background-color: var(--bg-amber) !important;
}

td.bg-pink {
    background-color: var(--bg-pink) !important;
}

.mud-table tr:hover td.bg-muted {
    background-color: var(--bg-muted) !important;
}

.mud-table tr:hover td.bg-amber {
    background-color: var(--bg-amber) !important;
}

.mud-table tr:hover td.bg-pink {
    background-color: var(--bg-pink) !important;
}

/* Notifications Centre */
.notification-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.notification-card {
    background: #f9fafc;
    border-radius: 18px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

    .notification-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    }

.notification-badge-circle {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #e53935;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 50%;
    width: 2em;
    height: 2em;
    align-content: center;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.notification-categories-view,
.notification-actions-view,
.notification-resolve-view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

    .notification-categories-view.slide-in {
        opacity: 1;
        transform: translateX(0);
        z-index: 2;
    }

    .notification-categories-view.slide-out {
        opacity: 0;
        transform: translateX(-100%);
        z-index: 1;
    }

/*Notifications Centre*/

#availability-table .col-name {
    width: 220px;
    min-width: 220px;
    max-width: 220px;
    box-shadow: 2px 0 0 rgba(0, 0, 0, .06);
}

#availability-table .col-day {
    width: 120px;
    min-width: 120px;
    max-width: 120px;
    text-align: center;
}

#availability-table .mud-table-container {
    overflow: auto;
}

#availability-table table {
    table-layout: fixed;
}

#availability-table th,
#availability-table td {
    overflow: hidden;
}

#availability-table .pill {
    white-space: nowrap;
    display: inline-block;
    max-width: 100%;
    text-overflow: ellipsis;
}

#availability-table thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--mud-palette-surface, #fff);
}

#availability-table tbody td.col-name {
    position: sticky;
    left: 0;
    z-index: 15;
    background: var(--mud-palette-surface, #fff);
    border-right: 1px solid var(--mud-palette-lines-default, #e0e0e0);
}

.notification-resolve-view.slide-out {
    opacity: 0;
    transform: translateX(100%);
    z-index: 1;
}

/*Notifications Centre*/
/*/ Global loading animation for WASM + AccessAuthorize*/

/* Scheduled Message Page*/
.sched-root {
    height: calc(100vh - 16px);
    display: flex;
    flex-direction: column;
}

.sched-grid {
    height: 100%;
}

.panel {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 16px;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.panel-body-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

.tight-input {
    margin-top: 0 !important;
    margin-bottom: 6px !important;
}

.truncate {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.scheduled-table {
    min-width: 640px;
}

.chip-fixed {
    display: flex;
    align-items: center;
    max-width: 250px;
    /* adjust as needed */
}

.chip-label {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 6px;
    /* space before the X */
}

/* Scheduled Message Page*/
#availability-table thead th.col-name {
    position: sticky;
    left: 0;
    top: 0;
    z-index: 20;
    background: var(--mud-palette-surface, #fff);
}

/* GLOBAL AUDIT */

.audit-main-flex-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 90vh
}

@media (min-width: 768px) {
    .audit-main-flex-container {
        flex-direction: row;
        gap: 2rem;
    }

    .audit-left-panel-width {
        width: 58.333%;
    }

    .audit-right-panel-width {
        width: 41.666%;
    }
}

/* GLOBAL AUDIT */

/* Mapmaker */
/* Configure the FAB placement once to avoid magic numbers */
:root {
    --fab-left: 16px;
    --fab-size: 56px;
    --fab-gap: 12px;
}

/* --- Pin Actions Panel (slides in beside bottom-left button) --- */
.pin-actions-panel {
    position: absolute;
    bottom: 16px;
    top: 400px;
    /* Button is at left:16px, width:56px, + 12px gap */
    left: 1330px;
    width: 300px;
    max-width: min(85vw, 360px);
    background: #ffffff;
    color: #424342;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    /* Hide fully: shift by 100% panel width + the left offset so the right edge goes off-screen */
    transform: translateX(calc(-100% - (var(--fab-left) + var(--fab-size) + var(--fab-gap))));
    transition: transform 200ms ease-in-out;
    padding: 12px 12px 16px 12px;
    z-index: 9999913;
    will-change: transform;
    height: 400px;
}

    .pin-actions-panel.open {
        display: block;
    }

    .pin-actions-panel.close {
        display: none;
    }

.pin-actions-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

/* Horizontally aligned circular buttons (matching the floating FAB) */
.pin-actions-body {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    row-gap: 12px;
    justify-content: flex-start;
}

    /* ensure each FAB keeps its circle width in the wrap */
    .pin-actions-body .sl-fab {
        flex: 0 0 56px;
        /* matches .sl-fab width/height */
    }

/* Optional: on very narrow screens, keep it usable */
@media (max-width: 480px) {
    .pin-actions-panel {
        left: var(--fab-left);
        width: calc(100vw - 32px);
        /* Hide fully on small screens as well: shift by panel width + left offset */
        transform: translateX(calc(-100% - var(--fab-left)));
    }
}

.sl-fab {
    width: 56px;
    height: 56px;
    min-width: 56px;
    padding: 0;
    border-radius: 50% !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* --- Pin details popup --- */
/* Make the Mapbox popup content size itself to the inner .sl-pin-popup */
.mapboxgl-popup-content:has(.sl-pin-popup) {
    background-color: #fff !important;
    padding: 0 !important;
    /* eliminate transparent band */
    border-radius: 10px !important;
    overflow: visible;
    /* avoid clipping controls like the close button */
}

/* Update: align popup container with its control width, avoid overflow */
.sl-pin-popup {
    display: block;
    width: 100%;
    box-sizing: border-box;
    background: #fff;
    /* ensure solid white inside too */
}

/* Ensure controls respect the container width */
.sl-pin-field > input,
.sl-pin-field > textarea {
    width: 100%;
    box-sizing: border-box;
}

.sl-pin-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

    .sl-pin-field > label {
        font-size: 12px;
        font-weight: 600;
        color: #424242;
        margin-bottom: 4px;
    }

    .sl-pin-field > input,
    .sl-pin-field > textarea {
        width: 100%;
        box-sizing: border-box;
        padding: 6px 8px;
        border: 1px solid #d0d0d0;
        border-radius: 4px;
        outline: none;
        font-size: 13px;
    }

        .sl-pin-field > input:focus,
        .sl-pin-field > textarea:focus {
            border-color: #1976d2;
            box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.15);
        }

.sl-pin-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 8px;
}

.sl-pin-btn {
    padding: 6px 10px;
    font-size: 13px;
    border-radius: 4px;
    border: 1px solid #bdbdbd;
    background: #f5f5f5;
    cursor: pointer;
}

    .sl-pin-btn:hover {
        background: #eeeeee;
    }

.sl-pin-btn-primary {
    border-color: #1976d2;
    background: #1976d2;
    color: #ffffff;
}

    .sl-pin-btn-primary:hover {
        background: #1565c0;
    }

/* GLOBAL AUDIT */

.cursor-pointer {
    cursor: pointer !important;
}

.border-danger {
    border: 1px solid var(--danger);
}

.border-bottom-danger {
    border-bottom: 1px solid var(--danger);
}

.text-danger {
    color: var(--danger) !important;
}

.text-warning {
    color: var(--warning) !important;
}

.text-white {
    color: white !important;
}

.text-muted-foreground {
    color: var(--muted-foreground);
}

.review-layout {
    display: flex;
    width: 100%;
}

.review-detail-panel {
    flex: 1;
}

/* font sizes */
.fs-1 {
    font-size: calc(1.375rem + 1.5vw) !important
}

.fs-2 {
    font-size: calc(1.325rem + .9vw) !important
}

.fs-3 {
    font-size: calc(1.3rem + .6vw) !important
}

.fs-4 {
    font-size: calc(1.275rem + .3vw) !important
}

.fs-5 {
    font-size: 1.25rem !important
}

.fs-6 {
    font-size: 1rem !important
}

.fst-italic {
    font-style: italic !important
}

.fst-normal {
    font-style: normal !important
}

.fw-lighter {
    font-weight: lighter !important
}

.fw-light {
    font-weight: 300 !important
}

.fw-normal {
    font-weight: 400 !important
}

.fw-medium {
    font-weight: 500 !important
}

.fw-semibold {
    font-weight: 600 !important
}

.fw-bold {
    font-weight: 700 !important
}

.fw-bolder {
    font-weight: bolder !important
}

.userroles-shell {
    padding-top: 0.75rem;
    padding-bottom: 0.5rem;
    background: transparent;
    border: none;
    box-shadow: none;
}

.userroles-header {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 0.35rem;
}

.userroles-header-left {
    max-width: 60%;
}

.userroles-title-row {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.userroles-title-row label {
    font-size: 1.1rem;
    font-weight: 600;
}

.userroles-subtitle {
    margin: 0.2rem 0 0;
    font-size: 0.9rem;
    color: #6b7280;
}

.userroles-header-right {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.userroles-stat-pill {
    border-radius: 999px;
    padding: 0.1rem 0.55rem;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    min-width: 72px;
}

.userroles-stat-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9ca3af;
}

.userroles-stat-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #111827;
}


.userroles-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin: 0.35rem 0 0.5rem;
    font-size: 0.85rem;
    color: #6b7280;
}

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

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #e5e7eb;
}

.legend-dot-active {
    background: #22c55e;
}

.legend-dot-inactive {
    background: #f97373;
}

.legend-chip {
    width: 18px;
    height: 10px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
}

.legend-chip-active {
    border-color: #c8e6c9;
    background: #f1f8e9;
}

.legend-chip-inactive {
    border-color: #ffcdd2;
    background: #ffebee;
}


.userroles-grid-shell {
    position: relative;
    margin-top: 0.35rem;
    max-height: 520px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.userroles-grid-shell::-webkit-scrollbar {
    width: 6px;
}

.userroles-grid-shell::-webkit-scrollbar-track {
    background: transparent;
}

.userroles-grid-shell::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 999px;
}

.userroles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

@media (max-width: 1200px) {
    .userroles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

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

.userrole-card {
    position: relative;
    border-radius: 12px;
    padding: 1rem 1.1rem 0.9rem;
    border: 2px solid #e0e0e0;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    min-height: 320px;
    max-height: 500px;
    overflow: hidden;
    transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

/* When adding/editing a tag, let the card grow vertically so everything fits */
.userrole-card:has(.userrole-addtag-panel) {
    max-height: none;
    overflow: visible;
}

.userrole-card:hover {
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.userrole-card.is-active {
    border-color: #3bb07e;
}

.userrole-card.is-inactive {
    border-color: #fecaca;
    background: #fef2f2;
}

.userrole-card.is-inactive .userrole-category-name {
    color: #4b5563;
}

.userrole-card.is-inactive .userrole-meta-label,
.userrole-card.is-inactive .userrole-meta-value,
.userrole-card.is-inactive .userrole-category-description {
    color: #6b7280;
}

.userrole-card-top {
    margin-bottom: 0.3rem;
}

.userrole-card-title-row {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    align-items: center;
}

.userrole-category-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: #111827;
}

.userrole-rule-pill {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    color: #4b5563;
    white-space: nowrap;
}

.userrole-category-description {
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
    color: #6b7280;
}

.userrole-card-meta-row {
    display: grid;
    gap: 0.4rem;
    margin-bottom: 0.35rem;
    grid-template-columns: repeat(3, 1fr);
}

.userrole-card-meta-row:has(> :nth-child(3)) {
    grid-template-columns: repeat(3, 1fr);
}

.userrole-card-meta-row:not(:has(> :nth-child(3))) {
    grid-template-columns: repeat(2, 1fr);
}

.userrole-meta-item {
    display: flex;
    flex-direction: column;
}

.userrole-meta-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9ca3af;
}

.userrole-meta-value {
    font-size: 0.9rem;
    color: #374151;
}

.userrole-tags-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    margin-bottom: 0.15rem;
    color: #6b7280;
}

.userrole-tags-header span:first-child {
    font-weight: 600;
    color: #374151;
}

.userrole-tags-count {
    font-size: 0.82rem;
}

.userrole-card-body {
    flex: 1;
    overflow-y: auto;
    padding-right: 0.15rem;
}

.userrole-card:has(.userrole-addtag-panel) .userrole-card-body {
    overflow-y: visible;
    padding-right: 0;
}

.userrole-card-body::-webkit-scrollbar {
    width: 5px;
}

.userrole-card-body::-webkit-scrollbar-track {
    background: transparent;
}

.userrole-card-body::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 999px;
}

.userrole-tag-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.userrole-tag-chip {
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    padding: 0.22rem 0.7rem;
    border-radius: 999px;
    border: 2px solid #e5e7eb;
    background: #f3f4f6;
    white-space: nowrap;
    cursor: default;
    transition: background 120ms ease, border-color 120ms ease;
}

.userrole-tag-chip-active {
    border-color: #c8e6c9;
    background: #f1f8e9;
}

.userrole-tag-chip-inactive {
    border-color: #ffcdd2;
    background: #ffebee;
    color: #6b7280;
}

.userrole-tag-chip-add {
    border-style: dashed;
    border-width: 2px;
    border-color: #c8e6c9;
    background: #f9fafb;
    color: #16a34a;
    cursor: pointer;
}

.userrole-tag-chip-add:hover {
    background: #ecfdf3;
    border-color: #bbf7d0;
}

.userrole-addtag-empty {
    margin-top: 0.35rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    border: 1px dashed #c8e6c9;
    background: #f9fafb;
    font-size: 0.9rem;
    cursor: pointer;
}

.userrole-addtag-empty:hover {
    background: #ecfdf3;
}

.userrole-addtag-panel {
    margin-top: 0.6rem;
    padding-top: 0.6rem;
    border-top: 1px dashed #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.userrole-addtag-row {
    display: flex;
    gap: 0.5rem;
}


.userrole-addtag-input {
    width: 100%;
    font-size: 0.9rem;
    line-height: 1.4;
}

.userrole-addtag-field label {
    font-size: 0.8rem;
    color: #6b7280;
    display: block;
    margin-bottom: 0.1rem;
}

.userrole-flag-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
}

.userrole-addtag-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.2rem;
    gap: 0.5rem;
}

.userrole-addtag-active-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9rem;
    color: #374151;
}

.userrole-addtag-actions {
    display: inline-flex;
    gap: 0.35rem;
}

.userrole-tag-chip-editing {
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.35);
}

.userrole-card.userrole-card-new {
    min-height: 230px;
    max-height: none;
    overflow: visible;
}

.userrole-card-new-empty {
    border-style: dashed;
    border-color: #c8e6c9;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.userrole-card-new-active {
    border-style: solid;
    border-color: #3bb07e;
    background: #ffffff;
}

.userrole-newcategory-trigger {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    border: 1px dashed #a7f3d0;
    background: #ecfdf3;
    font-size: 0.95rem;
    font-weight: 600;
    color: #15803d;
    cursor: pointer;
    transition: background 150ms ease, border-color 150ms ease, transform 120ms ease;
}

.userrole-newcategory-trigger:hover {
    background: #d1fae5;
    border-color: #22c55e;
    transform: translateY(-1px);
}

.userrole-addcategory-panel {
    margin-top: 0.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.userrole-card.userrole-card-new .userrole-card-body {
    overflow: visible;
    padding-right: 0;
}

.userrole-card:has(.userrole-editcategory-footer) {
    max-height: none;
    overflow: visible;
}

.userrole-card-title-right {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.userrole-editcategory-trigger {
    border: none;
    background: transparent;
    font-size: 0.78rem;
    color: #2563eb;
    cursor: pointer;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
}

.userrole-editcategory-trigger:hover {
    background: #eff6ff;
}

.userrole-editcategory-flags {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 0.85rem;
}

.userrole-editcategory-footer {
    margin-top: 0.35rem;
}

.required-label::after {
    content: "*";
    color: var(--danger);
    margin-left: 5px;
}

/* Shifts Page Styles */
.shifts-page {
    background-color: #f9fafb;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: auto !important;
    min-height: calc(100vh - 64px);
}

.shifts-page-header-container {
    margin-left: 20px;
    margin-right: 20px;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.shifts-page-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.shifts-page-subtitle {
    margin: 0.5rem 0 0 0;
    color: #666;
    font-size: 0.875rem;
}

.shifts-loading-container {
    position: relative;
}

.shifts-content-container {
    background-color: white;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-left: 20px;
    margin-right: 20px;
    margin-bottom: 1rem;
}

.shifts-date-nav-container {
    margin-top: 50px;
    margin-bottom: 50px;
    margin-left: 20px;
    margin-right: 20px;
}

.shifts-date-nav-row {
    width: 100%;
    display: flex;
    position: relative;
    align-items: center;
}

.shifts-date-nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.shifts-date-nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: flex-end;
}

.shift-type-toggle-container {
    display: flex;
    align-items: center;
    background-color: #f9fafb;
    border-radius: 8px;
    padding: 6px;
}

.shift-type-toggle-btn {
    min-width: 80px;
    border-radius: 6px;
    border: none;
    background-color: transparent;
    color: #666;
    padding: 6px 12px;
    transition: background-color 0.2s;
}

    .shift-type-toggle-btn.active {
        background-color: #000000;
        color: white;
    }

    .shift-type-toggle-btn:hover:not(.active) {
        background-color: #e9ecef;
    }

    .shift-type-toggle-btn.active:hover {
        background-color: #333333;
    }

.today-button {
    min-width: 100px;
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    color: #666;
    text-transform: none;
}

    .today-button:hover {
        background-color: #e9ecef !important;
    }

.refresh-button {
    min-width: 110px;
}

.date-nav-button {
    padding: 1px !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.shifts-legend-container {
    background-color: #f9fafb;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    margin-left: 20px;
    margin-right: 20px;
}

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

.shifts-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-square {
    width: 25px;
    height: 25px;
    border-radius: 4px;
}

.legend-empty {
    background-color: white;
    border: 1px solid #d1d5db;
}

.legend-filled {
    background-color: #10b981;
}

.legend-past {
    background-color: #f3f4f6;
}

.legend-next-week {
    background-color: #fff7e6;
}

.legend-future {
    background-color: #fde8e7;
}

.legend-label {
    font-size: 0.875rem;
    color: #666;
    line-height: 25px;
}

/* Shifts page filter styles */
.shifts-filter-card {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 0.6rem;
    margin-left: 20px;
    margin-right: 20px;
}

.shifts-filter-container {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1.5rem;
}

.shifts-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 200px;
    flex: 1;
    max-width: 300px;
}

.shifts-filter-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #424342;
    margin: 0;
}

.shifts-dropdown {
    color: #666;
    background-color: #f3f3f5 !important;
    border: none !important;
}

    .shifts-dropdown:focus,
    .shifts-dropdown:focus-within {
        background-color: #f3f3f5 !important;
        border: none !important;
        box-shadow: none !important;
        outline: none !important;
    }

@media (max-width: 1024px) {
    .shifts-page-header-container {
        margin-left: 15px;
        margin-right: 15px;
    }

    .shifts-content-container {
        margin-left: 15px;
        margin-right: 15px;
        padding: 0.75rem;
    }

    .shifts-filter-card {
        margin-left: 15px;
        margin-right: 15px;
        padding: 1rem;
    }

    .shifts-date-nav-container {
        margin-left: 15px;
        margin-right: 15px;
    }

    .shifts-legend-container {
        margin-left: 15px;
        margin-right: 15px;
    }
}

@media (max-width: 768px) {
    .shifts-page-header-container {
        margin-left: 10px;
        margin-right: 10px;
    }

    .shifts-page-title {
        font-size: 1.25rem;
    }

    .shifts-page-subtitle {
        font-size: 0.8rem;
    }

    .shifts-content-container {
        margin-left: 10px;
        margin-right: 10px;
        padding: 0.5rem;
    }

    .shifts-filter-card {
        margin-left: 10px;
        margin-right: 10px;
        padding: 1rem;
    }

    .shifts-filter-container {
        flex-direction: column;
        gap: 1rem;
    }

    .shifts-filter-group {
        max-width: 100%;
        width: 100%;
    }

    .shifts-date-nav-container {
        margin-left: 10px;
        margin-right: 10px;
        margin-top: 30px;
        margin-bottom: 30px;
    }

    .shifts-date-nav-row {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }

    .shifts-date-nav-left {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .shifts-date-nav-right {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .shift-type-toggle-container {
        width: 100%;
        justify-content: center;
    }

    .shift-type-toggle-btn {
        flex: 1;
        min-width: 0;
        font-size: 0.875rem;
        padding: 8px 10px;
    }

    .today-button {
        width: 100%;
        min-width: 0;
    }

    .refresh-button {
        min-width: 0;
        flex: 1;
    }

    .shifts-legend-container {
        margin-left: 10px;
        margin-right: 10px;
        padding: 0.75rem;
    }

    .shifts-legend-row {
        gap: 12px;
    }

    .shifts-legend-item {
        flex: 1 1 calc(50% - 6px);
        min-width: 120px;
    }
}

@media (max-width: 600px) {
    .shifts-page-header-container {
        margin-left: 8px;
        margin-right: 8px;
    }

    .shifts-content-container {
        margin-left: 8px;
        margin-right: 8px;
        padding: 0.5rem;
    }

    .shifts-filter-card {
        margin-left: 8px;
        margin-right: 8px;
        padding: 0.75rem;
    }

    .shifts-date-nav-container {
        margin-left: 8px;
        margin-right: 8px;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .shifts-date-nav-left {
        gap: 6px;
    }

        .shifts-date-nav-left .mud-text {
            font-size: 0.875rem;
        }

    .date-nav-button {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        min-height: 28px !important;
    }

    .shift-type-toggle-btn {
        font-size: 0.8rem;
        padding: 6px 8px;
    }

    .shifts-legend-container {
        margin-left: 8px;
        margin-right: 8px;
        padding: 0.5rem;
    }

    .shifts-legend-row {
        gap: 8px;
    }

    .shifts-legend-item {
        flex: 1 1 100%;
        min-width: 100%;
    }

    .legend-label {
        font-size: 0.8rem;
    }

    .shifts-date-full {
        display: none;
    }

    .shifts-date-short {
        display: inline;
    }
}

.shifts-date-short {
    display: none;
}

@media (min-width: 601px) {
    .shifts-date-short {
        display: none;
    }

    .shifts-date-full {
        display: inline;
    }
}

.text-black {
    color: black;
}

.text-blue-300 {
    color: var(--blue-300);
}

.text-blue-400 {
    color: var(--blue-400);
}

.text-blue-500 {
    color: var(--blue-500);
}

.text-blue-600 {
    color: var(--blue-600);
}

.text-blue-700 {
    color: var(--blue-700);
}

.text-gray-300 {
    color: var(--gray-300);
}

.text-gray-400 {
    color: var(--gray-400);
}

.text-gray-500 {
    color: var(--gray-500);
}

.text-gray-600 {
    color: var(--gray-600);
}

.text-gray-700 {
    color: var(--gray-700);
}

.text-orange-300 {
    color: var(--orange-300);
}

.text-orange-400 {
    color: var(--orange-400);
}

.text-orange-500 {
    color: var(--orange-500);
}

.text-orange-600 {
    color: var(--orange-600);
}

.text-orange-700 {
    color: var(--orange-700);
}

.text-amber-300 {
    color: var(--amber-300);
}

.text-amber-400 {
    color: var(--amber-400);
}

.text-amber-500 {
    color: var(--amber-500);
}

.text-amber-600 {
    color: var(--amber-600);
}

.text-amber-700 {
    color: var(--amber-700);
}

.box-shadow {
    border: 1px var(--box-border) solid;
    padding: var(--box-padding);
    background: var(--box-bg);
    border-radius: 12px;
    margin-bottom: var(--box-margin-bottom);
    overflow: hidden;
    font-size: 0.9rem;
    transition: box-shadow 0.15s ease;
}

.box-shadow-2 {
    border: 1px var(--box-border) solid;
    background: var(--box-bg);
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.15s ease;
}

.align-top-cell {
    vertical-align: top;
}

.disabled-row {
    opacity: 0.5;
}

/* Disabled control styling � light gray background for read-only state */
input:disabled,
textarea:disabled,
select:disabled {
    background-color: #f0f0f0 !important;
    color: inherit;
    cursor: not-allowed;
    opacity: 1;
    /* keep text legible */
}

/* Numeric inputs and checkboxes */
input[type="number"]:disabled,
input[type="checkbox"]:disabled {
    background-color: #f0f0f0 !important;
    cursor: not-allowed;
}

/* Buttons: keep default disabled look, but ensure consistent cursor */
button:disabled,
.btn:disabled {
    cursor: not-allowed;
}

/* MudBlazor components */
.mud-input-root.mud-disabled,
.mud-input-slot.mud-disabled,
.mud-select.mud-disabled,
.mud-picker.mud-disabled,
.mud-timepicker.mud-disabled,
.mud-autocomplete.mud-disabled {
    background-color: #f0f0f0 !important;
}

/* Inline pickers often render an inner container; tint it too */
.mud-picker-inline.mud-disabled .mud-picker-content,
.mud-timepicker.mud-disabled .mud-input-control {
    background-color: #f0f0f0 !important;
}

.shifts-total {
    border-radius: 12px;
    border: solid 1px var(--blue-200);
    background: var(--blue-100);
    color: var(--blue-500);
    cursor: pointer;
}

.shifts-total .text-darkblue {
    color: var(--blue-900);
}

.shifts-total:hover {
    border: solid 2px var(--blue-500);
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--blue-50);
}

.shifts-total--active {
    background: linear-gradient( 180deg, var(--blue-200), var(--blue-100) );
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.shifts-allocated {
    border-radius: 12px;
    border: solid 1px var(--green-200);
    background: var(--green-100);
    color: var(--green-500);
    cursor: pointer;
}

.shifts-allocated-nh {
    border-radius: 12px;
    border: solid 1px var(--green-200);
    background: var(--green-100);
    color: var(--gray-600);
    cursor: pointer;
}

.shifts-allocated .text-darkgreen {
    color: var(--green-900);
}

.shifts-allocated .text-green {
    font-size: medium;
    color: var(--green-500);
}

.shifts-allocated:hover {
    border: solid 2px var(--green-500);
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--green-50);
}

.shifts-unallocated {
    border-radius: 12px;
    border: solid 1px var(--orange-200);
    background: var(--orange-100);
    color: var(--orange-500);
    cursor: pointer;
}

.shifts-unallocated .text-darkorange {
    color: var(--orange-900);
}

.shifts-unallocated .text-orange {
    font-size: medium;
    color: var(--orange-500);
}

.shifts-unallocated:hover {
    border: solid 2px var(--orange-500);
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--orange-50);
}

.shifts-unallocated--active {
    background: linear-gradient( 180deg, var(--orange-200), var(--orange-100) );
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.shifts-blowout-nh {
    border-radius: 12px;
    border: solid 1px var(--red-200);
    background: var(--red-100);
    color: var(--gray-600);
    cursor: pointer;
}

.shifts-rejected-nh {
    border-radius: 12px;
    border: solid 1px #dc3545;
    background: #fee;
    color: var(--gray-600);
    cursor: pointer;
}

.shifts-published {
    border-radius: 12px;
    border: solid 1px var(--gray-300);
    background: var(--gray-100);
    color: var(--gray-600);
    cursor: pointer;
}

    .shifts-published .text-darkgray {
        color: var(--gray-700);
    }

    .shifts-published--active {
        background: linear-gradient( 180deg, var(--gray-300), var(--gray-100) );
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
    }

.tags-scroll-when-viewing {
    max-height: 700px;
    overflow-y: auto;
}

.btn-adhoc {
    background: #7c3aed;
    border-color: #7c3aed;
}

    .btn-adhoc:hover {
        background: #7c3aed;
        border-color: #7c3aed;
    }

    .btn-adhoc:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

.btn-blue {
    background: var(--blue-500);
    border-color: var(--blue-700);
}

    .btn-blue:hover {
        background: var(--blue-500);
        border-color: var(--blue-700);
    }

    .btn-blue:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

.btn-copy {
    background: #159588;
    border-color: #159588;
}

    .btn-copy:hover {
        background: #159588;
        border-color: #159588;
    }

    .btn-copy:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

.btn-gray {
    background: var(--gray-50);
    border: solid 1px var(--gray-300);
    color: var(--gray-900);
}

    .btn-gray:hover {
        background: var(--gray-100);
        border: solid 2px var(--gray-300);
    }

    .btn-gray:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

.shift-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1040;
}

.shift-modal {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow: hidden;
}

.shift-modal-header {
    padding: 20px 24px 0 24px;
}

.shift-modal-header h3 {
    margin: 0;
    font-weight: 700;
}

.shift-modal-body {
    padding: 8px 24px 24px 24px;
}

.shift-modal-subtitle {
    color: #6b7280;
    margin-bottom: 12px;
}

.shift-modal-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px 0;
    margin-bottom: 12px;
}

.shift-modal-alert {
    border: 1px solid #f6c26b;
    background: #fff8e6;
    color: #7a4d00;
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0 18px 0;
}

.shift-modal-alert i {
    font-size: 18px;
}

.shift-modal-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 24px;
    margin-bottom: 14px;
}

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

.shift-modal-muted {
    color: #6b7280;
    font-weight: 400;
}

.shift-modal-input {
    position: relative;
}

.shift-modal-input input[type="time"] {
    width: 100%;
    border: none;
    background: #f3f4f6;
    padding: 14px 42px 14px 14px;
    border-radius: 10px;
    font-size: 16px;
    outline: none;
}

.shift-modal-input i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.shift-modal-input-readonly {
    width: 100%;
    border: none;
    background: #f3f4f6;
    padding: 14px;
    border-radius: 10px;
    font-size: 16px;
}

.shift-modal-footer {
    padding: 16px 24px 22px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Responsive */
@media (max-width: 620px) {
    .shift-modal-meta {
        grid-template-columns: 1fr;
    }

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

.btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

.highlight-animation {
    animation: pulse-bg 2s ease-in-out;
}

@keyframes pulse-bg {
    0% {
        background-color: #dc3545; /* strong red */
    }

    50% {
        background-color: #f5b5b9; /* faded red */
    }

    100% {
        background-color: #dc3545; /* back to original */
    }
}

.shift-notif-badge {
    position: relative;
    font-size: 10px;
    font-weight: bold;
    min-width: 18px;
    text-align: center;
    line-height: 1;
    background: linear-gradient(145deg, rgb(255, 77, 79), rgb(217, 54, 62));
    border-radius: 50%;
    padding: 3px 5px;
    color: white;
    float: right;
}

.font-semibold {
    --tw-font-weight: var(--font-weight-semibold);
    font-weight: var(--font-weight-semibold);
}

.font-medium {
    --tw-font-weight: var(--font-weight-medium);
    font-weight: var(--font-weight-medium) 500;
}

.font-normal {
    --tw-font-weight: var(--font-weight-normal);
    font-weight: var(--font-weight-normal) 400;
}

.text-sm {
    font-size: var(--text-sm);
    line-height: var(--tw-leading, var(--text-sm--line-height));
}

.text-xs {
    font-size: var(--text-xs);
    line-height: var(--tw-leading, var(--text-xs--line-height));
}

.text-base {
    font-size: var(--text-base);
    line-height: var(--tw-leading, var(--text-base--line-height));
}

.text-lg {
    font-size: var(--text-lg);
    line-height: var(--tw-leading, var(--text-lg--line-height));
}

/*Incident Reports page*/
.ir-page {
    background-color: #f9fafb;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: calc(100vh - 64px) !important;
}

.ir-page-header-container {
    position: relative;
    margin-left: 30px;
    margin-right: 20px;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

    .ir-page-header-container .ir-page-title-button-right {
        position: absolute;
        top: 20px;
        right: 10px;
        transform: translateY(-50%);
    }

.ir-page-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.ir-page-subtitle {
    margin: 0.5rem 0 0 0;
    color: #666;
    font-size: 0.875rem;
}

.ir-loading-container {
    position: relative;
}

.ir-content-wrapper {
    display: grid;
    grid-template-rows: auto 1fr; /* Header + Content */
    grid-template-columns: 27% 73%; /* 30% 1st column */
}

.ir-content-container-left {
    padding: 10px;
    margin-left: 20px;
    margin-right: 10px;
    margin-bottom: 1rem;
}

.ir-content-left-header {
    padding: 0.5rem;
    margin-top: 2px;
    margin-bottom: 1rem;
}

.ir-content-left-header-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.ir-content-left-header-subtitle {
    margin: 0.2rem 0 0 0;
    color: #666;
    font-size: 0.875rem;
}

.ir-filter-card {
    background-color: white;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 10px;
}

    .ir-filter-card .text {
        color: var(--gray-900);
    }

    .ir-filter-card .selections {
        border-radius: 6px;
        padding: .6rem;
        border: solid 1px var(--gray-200);
        background: var(--gray-100);
        box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
        cursor: pointer;
        overflow-wrap: break-word; /* Standard way to handle long words */
        word-break: break-word; /* For older browser compatibility */
    }

        .ir-filter-card .selections:hover {
            border: solid 2px var(--gray-300);
            background: var(--gray-100);
            transform: scale(1.02);
            box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
        }

    .ir-filter-card .selected {
        border-radius: 6px;
        padding: .6rem;
        border: solid 2px var(--gray-600);
        background: var(--gray-100);
        transform: scale(1.02);
        box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
        cursor: pointer;
        overflow-wrap: break-word; /* Standard way to handle long words */
        word-break: break-word; /* For older browser compatibility */
    }

.ir-content-container-right {
    padding: 10px;
    margin-left: 10px;
    margin-right: 20px;
    margin-bottom: .1rem;
}

    .ir-content-container-right .card-right {
        background-color: #f9fafb;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        height: auto !important;
    }

.pill-blue {
    /* Sizing and spacing */
    padding: 6px 12px; /* Adjust padding for desired size */
    margin: 5px;

    /* Appearance */
    border: solid 1px var(--blue-200);
    background: var(--blue-100);
    color: var(--blue-500);
    text-align: center;
    text-decoration: none;
    display: inline-block; /* Allows the div to wrap its content and sit inline */
    border-radius: 18px; /* A large value ensures full rounding */
}

.pill-gray {
    /* Sizing and spacing */
    padding: 6px 12px; /* Adjust padding for desired size */
    margin: 5px;
    /* Appearance */
    border: solid 1px var(--gray-200);
    background: var(--gray-100);
    color: var(--gray-500);
    text-align: center;
    text-decoration: none;
    display: inline-block; /* Allows the div to wrap its content and sit inline */
    border-radius: 18px; /* A large value ensures full rounding */
}

.pill-orange {
    /* Sizing and spacing */
    padding: 6px 12px; /* Adjust padding for desired size */
    margin: 5px;
    /* Appearance */
    border: solid 1px var(--orange-200);
    background: var(--orange-100);
    color: var(--orange-500);
    text-align: center;
    text-decoration: none;
    display: inline-block; /* Allows the div to wrap its content and sit inline */
    border-radius: 18px; /* A large value ensures full rounding */
}

.pill-orange-2 {
    /* Sizing and spacing */
    padding: 1px; /* Adjust padding for desired size */
    margin: 1px;
    /* Appearance */
    border: solid 1px var(--orange-200);
    background: var(--orange-100);
    color: var(--orange-900);
    text-align: center;
    text-decoration: none;
    display: inline-block; /* Allows the div to wrap its content and sit inline */
    border-radius: 6px; /* A large value ensures full rounding */
}

.pill-red {
    /* Sizing and spacing */
    padding: 6px 12px; /* Adjust padding for desired size */
    margin: 5px;
    /* Appearance */
    border: solid 1px var(--red-200);
    background: var(--red-100);
    color: var(--red-500);
    text-align: center;
    text-decoration: none;
    display: inline-block; /* Allows the div to wrap its content and sit inline */
    border-radius: 18px; /* A large value ensures full rounding */
}

.pill-gray {
    /* Sizing and spacing */
    padding: 6px 12px; /* Adjust padding for desired size */
    margin: 5px;
    /* Appearance */
    border: solid 1px var(--gray-200);
    background: var(--gray-100);
    color: var(--gray-700);
    text-align: center;
    text-decoration: none;
    display: inline-block; /* Allows the div to wrap its content and sit inline */
    border-radius: 18px; /* A large value ensures full rounding */
}

.pill-green {
    /* Sizing and spacing */
    padding: 6px 12px; /* Adjust padding for desired size */
    margin: 5px;
    /* Appearance */
    border: solid 1px var(--green-200);
    background: var(--green-100);
    color: var(--green-500);
    text-align: center;
    text-decoration: none;
    display: inline-block; /* Allows the div to wrap its content and sit inline */
    border-radius: 18px; /* A large value ensures full rounding */
}

.pill-green-2 {
    /* Sizing and spacing */
    padding: 1px; /* Adjust padding for desired size */
    margin: 1px;
    /* Appearance */
    border: solid 1px var(--green-200);
    background: var(--green-100);
    color: var(--green-900);
    text-align: center;
    text-decoration: none;
    display: inline-block; /* Allows the div to wrap its content and sit inline */
    border-radius: 6px; /* A large value ensures full rounding */
}

.border-gray {
    border: solid 2px var(--gray-200);
    background: var(--gray-50);
}

.border-amber {
    border: solid 2px var(--amber-300);
    background: var(--amber-50);
}

.bg-white {
    background: white;
}

.bg-green {
    background: green;
}

.bg-green-600 {
    background-color: var(--green-600);
}

.bg-gray-300 {
    background: var(--gray-300);
}

.bg-gray-400 {
    background: var(--gray-400);
}

.bg-gray-500 {
    background: var(--gray-500);
}

.bg-gray-600 {
    background: var(--gray-600);
}

hr.styled-line {
    border: 0; /* Remove default border */
    height: 1px;
    background-color: #999; /* Sets the line color */
    margin: 20px 0;
}

hr.blue-line {
    border: 0; /* Remove default border */
    height: 1px;
    background-color: var(--blue-300);
    margin: 12px 0;
}

hr.blue-line-2 {
    border: 0; /* Remove default border */
    height: 1px;
    background-color: var(--blue-300);
    margin: 4px 0;
}

hr.modified {
    border: 0; /* Remove default border */
    height: 1px;
    margin: 12px 0;
}

.appresponse-card {
    background-color: var(--blue-50);
    padding: .5rem !important;
    border: 1px solid var(--blue-400);
    border-radius: 12px;
}
    .appresponse-card .response {
        background-color: white;
        padding: .5rem !important;
        border: 1px solid var(--gray-100);
        border-radius: 8px;
        box-shadow: none;
    }

/* Shift copy forward modal */
.copy-forward-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 1200;
}

.copy-forward-modal {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(920px, 96vw);
    max-height: 92vh;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.25);
    z-index: 1210;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-size: var(--text-sm);
}

.copy-forward-modal-header {
    padding: 18px 24px 12px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.copy-forward-modal-header h3 {
    margin: 0;
    font-weight: 600;
    color: var(--gray-900);
    font-size: 1.5rem;
}

.copy-forward-modal-subtitle {
    margin: 4px 0 0;
    color: var(--gray-600);
    font-size: var(--text-sm);
}

.copy-forward-modal-close {
    border: none;
    background: transparent;
    color: var(--gray-700);
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.copy-forward-modal-close:hover {
    background: var(--gray-100);
}

.copy-forward-modal-close:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.copy-forward-modal-body {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
}

.copy-forward-modal-loading {
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    padding: 24px;
}

.copy-forward-loading-title {
    margin: 6px 0 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
}

.copy-forward-loading-subtitle {
    margin: 0;
    color: var(--gray-600);
    font-size: var(--text-sm);
}

.copy-forward-source-card {
    border-radius: 10px;
    border: 1px solid var(--blue-200);
    background: #f2f6ff;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.copy-forward-source-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: #2f4dab;
}

.copy-forward-source-icon {
    color: var(--blue-500);
}

.copy-forward-source-week {
    color: #2f4dab;
    font-size: 1.2rem;
    line-height: 1.2;
    font-weight: 600;
    margin-top: 4px;
}

.copy-forward-source-count {
    margin-top: 6px;
    color: var(--blue-600);
    font-size: var(--text-sm);
}

.copy-forward-section-title {
    font-size: 1.28rem;
    font-weight: 600;
    color: var(--gray-900);
    line-height: 1.2;
}

.copy-forward-section-subtitle {
    margin-top: 3px;
    color: var(--gray-600);
    font-size: var(--text-sm);
}

.copy-forward-selected-banner {
    margin-top: 12px;
    margin-bottom: 10px;
    border: 1px solid #8de1ce;
    color: #1f5f57;
    background: #e7f8f3;
    border-radius: 10px;
    padding: 9px 12px;
    font-weight: 500;
}

.copy-forward-target-list {
    margin-top: 8px;
    border: 1px solid var(--gray-300);
    border-radius: 10px;
    max-height: 300px;
    overflow-y: auto;
}

.copy-forward-target-item {
    width: 100%;
    border: none;
    border-bottom: 1px solid var(--gray-200);
    background: #ffffff;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray-900);
    text-align: left;
}

.copy-forward-target-item:last-child {
    border-bottom: none;
}

.copy-forward-target-empty {
    padding: 12px 14px;
    color: var(--gray-600);
    font-size: var(--text-sm);
}

.copy-forward-target-item:hover {
    background: var(--gray-50);
}

.copy-forward-target-item.selected {
    background: #e9f6f3;
    box-shadow: inset 3px 0 0 #16a085;
}

.copy-forward-target-check.muted {
    color: var(--gray-400);
}

.copy-forward-target-check.selected {
    color: #9b2fae;
}

.copy-forward-summary {
    margin-top: 14px;
    border: 1px solid var(--gray-300);
    border-radius: 10px;
    background: var(--gray-50);
    padding: 12px 14px;
}

.copy-forward-summary-title {
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: 7px;
}

.copy-forward-summary-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 6px;
}

.copy-forward-summary-note {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--gray-300);
    font-size: var(--text-xs);
    color: var(--gray-600);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.copy-forward-summary-note-icon {
    color: var(--blue-500);
}

.copy-forward-error {
    margin-top: 12px;
    border-radius: 8px;
    border: 1px solid var(--red-300);
    background: var(--red-100);
    color: var(--red-700);
    padding: 9px 11px;
}

.copy-forward-modal-footer {
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.copy-forward-footer-status {
    color: var(--gray-600);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.copy-forward-footer-status.ready {
    color: #0b8f7a;
}

.copy-forward-footer-status.warning {
    color: #ca3500;
}

.copy-forward-footer-status-icon {
    font-size: 1rem;
}

.copy-forward-footer-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.copy-forward-results-body {
    display: grid;
    gap: 14px;
}

.copy-forward-results-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.copy-forward-metric-card {
    border-radius: 10px;
    padding: 12px 14px;
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 10px;
}

.copy-forward-metric-icon-wrap {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.72);
}

.copy-forward-metric-icon {
    font-size: 1.25rem;
}

.copy-forward-metric-icon.attempted {
    color: #2d5bff;
}

.copy-forward-metric-icon.success {
    color: #05a860;
}

.copy-forward-metric-icon.failed {
    color: #ff2f2f;
}

.copy-forward-metric-attempted {
    background: #f2f6ff;
    border-color: var(--blue-200);
}

.copy-forward-metric-success {
    background: #eaf9f0;
    border-color: var(--green-200);
}

.copy-forward-metric-failed {
    background: #fff1f1;
    border-color: var(--red-200);
}

.copy-forward-metric-value {
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1;
}

.copy-forward-metric-label {
    margin-top: 4px;
    font-size: var(--text-sm);
    color: var(--gray-700);
}

.copy-forward-metric-attempted .copy-forward-metric-value,
.copy-forward-metric-attempted .copy-forward-metric-label {
    color: #2d46b8;
}

.copy-forward-metric-success .copy-forward-metric-value,
.copy-forward-metric-success .copy-forward-metric-label {
    color: #0f7b4a;
}

.copy-forward-metric-failed .copy-forward-metric-value,
.copy-forward-metric-failed .copy-forward-metric-label {
    color: #aa2626;
}

.copy-forward-results-card {
    border: 1px solid var(--gray-300);
    border-radius: 10px;
    background: var(--gray-50);
    padding: 12px 14px;
}

.copy-forward-results-card-title {
    font-weight: 600;
    margin-bottom: 7px;
}

.copy-forward-results-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 6px;
}

.copy-forward-warning {
    border: 1px solid #f3d078;
    background: #fff9e6;
    color: #a05d00;
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    gap: 10px;
}

.copy-forward-warning-icon {
    color: #f59e0b;
    font-size: 1.3rem;
    margin-top: 1px;
}

.copy-forward-warning-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 2px;
    line-height: 1.15;
}

.copy-forward-success {
    border: 1px solid var(--green-200);
    background: var(--green-100);
    color: #0b542a;
    border-radius: 10px;
    padding: 11px 13px;
    font-weight: 500;
}

.copy-forward-failures {
    border: 1px solid var(--gray-300);
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
}

.copy-forward-failures-toggle {
    width: 100%;
    border: none;
    border-bottom: 1px solid var(--gray-200);
    background: #ffffff;
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
}

.copy-forward-failures-heading {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.copy-forward-failures-icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: var(--red-100);
    color: var(--red-500);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.copy-forward-failures-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gray-900);
    line-height: 1.15;
}

.copy-forward-failures-subtitle {
    color: var(--gray-600);
    font-size: var(--text-sm);
}

.copy-forward-failures-list {
    max-height: 380px;
    overflow-y: auto;
}

.copy-forward-failure-severity-key {
    padding: 10px 14px;
    border-bottom: 1px solid var(--gray-200);
    background: var(--gray-50);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: var(--text-xs);
    color: var(--gray-700);
}

.copy-forward-failure-severity-key-label {
    font-weight: 600;
    color: var(--gray-800);
}

.copy-forward-failure-severity-chip {
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 2px 8px;
    display: inline-flex;
    align-items: center;
    font-weight: 500;
}

.copy-forward-failure-severity-chip.low {
    background: #fffbeb;
    border-color: #facc15;
    color: #92400e;
}

.copy-forward-failure-severity-chip.medium {
    background: #fff7ed;
    border-color: #fb923c;
    color: #9a3412;
}

.copy-forward-failure-severity-chip.high {
    background: #fef2f2;
    border-color: #ef4444;
    color: #991b1b;
}

.copy-forward-failure-week {
    border-bottom: 1px solid var(--gray-200);
}

.copy-forward-failure-week:last-child {
    border-bottom: none;
}

.copy-forward-failure-week-title {
    padding: 11px 14px;
    font-weight: 600;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.copy-forward-failure-item {
    padding: 11px 14px 13px;
    border-bottom: 1px solid var(--gray-100);
    background: #ffffff;
}

.copy-forward-failure-item:last-child {
    border-bottom: none;
}

.copy-forward-failure-item:nth-child(even) {
    background: #ffffff;
}

.copy-forward-failure-site {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.copy-forward-failure-site-icon {
    font-size: 1rem;
    color: var(--red-500);
}

.copy-forward-failure-meta {
    margin-top: 3px;
    color: var(--gray-600);
}

.copy-forward-failure-user {
    margin-top: 4px;
    font-weight: 500;
    color: var(--gray-700);
}

.copy-forward-failure-reason {
    margin-top: 9px;
    border-radius: 8px;
    border: 1px solid transparent;
    padding: 9px 11px;
    display: grid;
    gap: 4px;
    position: relative;
    font-size: var(--text-sm);
}

.copy-forward-failure-view-link {
    position: absolute;
    top: 6px;
    right: 8px;
    color: var(--blue-600);
    font-size: var(--text-xs);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.copy-forward-failure-reason:hover .copy-forward-failure-view-link {
    opacity: 1;
    pointer-events: auto;
}

.copy-forward-failure-view-link:hover {
    color: var(--blue-700);
}

.copy-forward-failure-reason-title {
    display: block;
    padding-right: 78px;
    font-weight: 600;
}

.copy-forward-emphasis {
    font-weight: 600;
    color: var(--gray-800);
}

.copy-forward-failure-reason[data-severity="1"],
.copy-forward-failure-reason-severity-1 {
    background: #fffbeb !important;
    border-color: #facc15 !important;
    color: #92400e !important;
    box-shadow: inset 3px 0 0 #facc15;
}

.copy-forward-failure-reason[data-severity="2"],
.copy-forward-failure-reason-severity-2 {
    background: #fff7ed !important;
    border-color: #fb923c !important;
    color: #9a3412 !important;
    box-shadow: inset 3px 0 0 #fb923c;
}

.copy-forward-failure-reason[data-severity="3"],
.copy-forward-failure-reason-severity-3 {
    background: #fef2f2 !important;
    border-color: #ef4444 !important;
    color: #991b1b !important;
    box-shadow: inset 3px 0 0 #ef4444;
}

@media (max-width: 860px) {
    .copy-forward-modal {
        width: 96vw;
        max-height: 95vh;
    }

    .copy-forward-modal-header,
    .copy-forward-modal-body {
        padding-left: 14px;
        padding-right: 14px;
    }

    .copy-forward-results-metrics {
        grid-template-columns: 1fr;
    }

    .copy-forward-modal-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .copy-forward-footer-actions {
        justify-content: flex-end;
    }

    .copy-forward-target-item {
        font-size: 0.98rem;
    }
}

