﻿@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&display=swap');

/* ── AppErrorBoundary overlay ── */
.app-error-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9999;
    padding: 20px;
    box-sizing: border-box;
}

.app-error-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px 24px;
    max-width: 360px;
    width: 100%;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.app-error-icon-wrap {
    font-size: 48px;
    color: #E71313;
    margin-bottom: 16px;
    line-height: 1;
}

.app-error-title {
    color: #3B5249;
    margin-bottom: 10px;
    font-family: 'Quicksand', sans-serif;
}

.app-error-body {
    color: #666666;
    margin-bottom: 24px;
    font-family: 'Quicksand', sans-serif;
}

.app-error-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ── Blazor infrastructure error banner (last-resort fallback) ── */
#blazor-error-ui {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #3B5249;
    z-index: 10000;
    display: none;
}

.blazor-error-ui-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    color: #ffffff;
    font-family: 'Quicksand', sans-serif;
    font-size: 14px;
    font-weight: 600;
}

.blazor-error-ui-inner i {
    font-size: 18px;
    flex-shrink: 0;
}

.blazor-error-ui-inner span {
    flex: 1;
}

#blazor-error-ui .reload {
    color: #ffffff;
    text-decoration: underline;
    font-weight: 700;
    white-space: nowrap;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    opacity: 0.75;
    font-size: 18px;
    flex-shrink: 0;
    line-height: 1;
}

@keyframes widget-highlight-fade {
    0%   { background: #bbf7d0; }
    40%  { background: #bbf7d0; }
    100% { background: transparent; }
}

@keyframes task-highlight-pulse {
    0%   {outline-color: #19b97c; }
    60%  {outline-color: #19b97c; }
    100% {outline-color: transparent; }
}

.task-highlight {
    animation: task-highlight-pulse 2.5s ease-out forwards;
    outline: 2px solid #19b97c;
    outline-offset: 1px;
    border-radius: 8px;
    position: relative;
    z-index: 1;
}

/* Highlight for a newly created time registration card (dashboard) */
.timerec-highlight {
    animation: task-highlight-pulse 2.5s ease-out forwards;
    outline: 2px solid #19b97c;
    outline-offset: 1px;
    border-radius: 8px;
    position: relative;
    z-index: 1;
}


html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
     content: "An error has occurred."
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}


.mobile-bottom-nav {
    position: fixed;
    bottom: 0px;
    width: 100%;
    display: flex;
    align-items: center;
    border-radius: 10px 10px 0 0;
    overflow: visible;
    z-index: 1;
    height: 70px; 
    padding: 6px;
    background: #3d5247;
}

.mobile-bottom-nav.mobile-bottom-nav--ios {
    height: 80px;
    padding-bottom: 18px;
}

    .mobile-bottom-nav .nav-item {
        flex: 1 1 0;
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #fff;
        text-decoration: none;
        font-size: 14px;
        background: transparent;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        height: 100%;
        cursor: pointer;
        border: none;
        outline: none;
        position: relative;
        padding: 8px 2px;
        margin: 0;
        border-radius: 16px;
    }

    .mobile-bottom-nav a .bi {
        font-size: 1.3em;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease;
    }

    .mobile-bottom-nav a .nav-label {
        font-size: 12px;
        font-weight: 600;
        font-family: 'Quicksand', Arial, sans-serif;
        font-style: normal;
        transition: color 0.3s ease;
    }

    /* Icon visibility: outline shown by default, filled shown when active */
    .mobile-bottom-nav a .icon-filled { display: none; }
    .mobile-bottom-nav a.active .icon-outline { display: none; }
    .mobile-bottom-nav a.active .icon-filled { display: inline-block; }

    /* Active state */
    .mobile-bottom-nav a.active,
    .mobile-bottom-nav a.active:focus,
    .mobile-bottom-nav a.active:visited {
        background: rgba(255, 255, 255, 0.15);
        border-radius: 10px;
        color: #fff;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

        .mobile-bottom-nav a.active .bi {
            color: #fff;
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease;
        }

        .mobile-bottom-nav a.active .nav-label {
            color: #fff;
            font-weight: 700;
        }

    .mobile-bottom-nav a:not(.active) .bi {
        color: rgba(255, 255, 255, 0.65);
        transition: color 0.3s ease;
    }

    .mobile-bottom-nav a:not(.active) .nav-label {
        color: rgba(255, 255, 255, 0.65);
    }

@media (min-width: 640px) {
    .mobile-bottom-nav {
        display: none;
    }
}

/* Color utility classes */
.text-primary {
    color: #000 !important;
}

.text-secondary {
    color: #fff !important;
}

.text-accent {
    color: #3B5249 !important;
}

.bg-primary {
    background-color: #3B5249 !important;
}

.bg-light-brown {
    background-color: #F5F3EF !important;
}

.bg-accent {
    background-color: #113628 !important;
}

.bg-sickness {
    background-color: #57B78F;
}

.bg-vacation {
    background-color: #ffefd5;
}

.bg-birthday {
    background-color: #ffe9f0;
}

/* Typography utility classes */
.h1, .heading-1 {
    font-size: 24px;
    font-weight: 700;
    font-family: 'Quicksand', Arial, sans-serif;
}

.h2, .heading-2 {
    font-size: 18px;
    font-weight: 600;
    font-family: 'Quicksand', Arial, sans-serif;
}

.h3, .heading-3 {
    font-size: 16px;
    font-weight: 600;
    font-family: 'Quicksand', Arial, sans-serif;
}

.heading-3-bold {
    font-size: 16px;
    font-weight: 700;
    font-family: 'Quicksand', Arial, sans-serif;
}

.h3, .heading-4 {
    font-size: 14px;
    font-weight: 600;
    font-family: 'Quicksand', Arial, sans-serif;
}

.p, .paragraph {
    font-size: 12px;
    font-weight: 600;
    font-family: 'Quicksand', Arial, sans-serif;
}

.font-size-20 {
    font-size: 20px;
}

@media (min-width: 641px) {
    /* Typography utility classes */
    .h1, .heading-1 {
        font-size: 34px !important;
        font-weight: 700;
        font-family: 'Quicksand', Arial, sans-serif;
    }

    .h2, .heading-2 {
        font-size: 20px !important;
        font-weight: 600;
        font-family: 'Quicksand', Arial, sans-serif;
    }

    .h3, .heading-3 {
        font-size: 18px !important;
        font-weight: 600;
        font-family: 'Quicksand', Arial, sans-serif;
    }

    .heading-3-bold {
        font-size: 18px !important;
        font-weight: 700;
        font-family: 'Quicksand', Arial, sans-serif;
    }

    .h3, .heading-4 {
        font-size: 16px !important;
        font-weight: 600;
        font-family: 'Quicksand', Arial, sans-serif;
    }

    .p, .paragraph {
        font-size: 14px!important;
        font-weight: 600;
        font-family: 'Quicksand', Arial, sans-serif;
    }
}

/* Base button style */
.btn-default {
    background-color: #3B5249;
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s;
    font-family: quicksand;
    font-weight: 600;
}

.btn-default-modal {
    background-color: #3B5249;
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s;
    font-family: quicksand;
    font-weight: 600;
}

/* Approve (green) when enabled */
.btn-default-modal.btn-approve {
    background-color: #2fa711;
}

/* Decline (red) — sits next to Godkend in the request modals */
.btn-default-modal.btn-reject {
    background-color: #dc3545;
}

/* Save inactive (no changes) -> gray */
.btn-default-modal.btn-save-inactive {
    background-color: #bdbdbd;
    cursor: not-allowed;
}

/* Disabled visual state for any modal button */
.btn-default-modal:disabled,
.btn-default-modal.btn-disabled {
    background-color: #bdbdbd !important;
    opacity: 0.9;
    cursor: not-allowed;
}


.btn-gray {
    background: #bdbdbd;
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s;
    font-family: quicksand;
    font-weight: 600;
}

.btn-gray-modal {
    background: #bdbdbd;
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s;
    font-family: quicksand;
    font-weight: 600;
}

.btn-danger-modal {
    background: #dc3545;
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s;
    font-family: quicksand;
    font-weight: 600;
}

.btn-danger-modal:hover {
    background: #c82333;
}


.btn-done {
    background-color: #3B5249;
    color: #fff;
    border: none;
    padding: 15px;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s;
    font-family: quicksand;
    font-weight: 600;
}

/* Primary button */
.btn-orange {
    background-color: #D97706;
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s;
}

    .btn-orange:hover,
    .btn-orange:focus {
        background-color: #C96422;
        color: #fff;
    }

.btn-white {
    background-color: #fff;
    color: #000;
    border: none;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s;
    border: 1px solid #000;
}

.btn-white:hover,
.btn-white:focus {
    background-color: #f5f5f5;
}

/* Secondary button */
.btn-green {
    background-color: #2FA711;
    color: #fff !important;
    border: none;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s;
}


    .btn-green:hover,
    .btn-green:focus {
        background-color: #2FA711;
    }

/* Accent button */
.btn-accent {
    background-color: #e50000;
    color: #fff;
}

    .btn-accent:hover,
    .btn-accent:focus {
        background-color: #b32121;
        color: #fff;
    }

.btn-red {
    background: #FF4B4B;
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.btn-yellow {
    background: #F4C610;
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.btn-red:hover,
.btn-red:focus {
    background: #D93636;
    color: #fff;
}


/* Btn primary */

.btn-primary:hover {
    background: #344840;
}


/* Group dot */
.group-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    margin-right: 6px;
    border: 1px solid #fff;
    background-color: #3d5247;
}

.group-dot-small {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    margin-right: 6px;
}


.required-star {
    color: #FF4B4B;
    font-size: 20px;
}

/* REGISTRATION TYPE ICONS */
.type-icon-time {
    color: #3B5249;
}

.type-icon-maternity {
    color: #aa6ec7;
}

.type-icon-holiday {
    color: #dd9232;
}

.umbrella-icon-workreport {
    width: 18px;
    height: 18px;
    display: inline-block;
    vertical-align: -0.125em;
}

.holiday-bg {
    background: #FFEADB;
}

.type-icon-sickness {
    color: #58ad9e;
}

.sickness-bg {
    background: #DBFFF4;
}

/* INFO ICON */
.type-icon-info {
    color: #5a82c4;
}

.info-bg {
    background: #D2E2F9;
    color: #2d7be5;
}

.type-icon-break {
    color: #B89900;
}

.type-icon-birthday {
    color: #FF2F74;
}

.birthday-icon {
    color: #FF2F74;
    font-size: 14px;
}

.rule-violation-icon {
    color: #FBB24B;
    font-size: 13px;
    flex-shrink: 0;
}

.type-icon-flex {
    color: #6366f1;
}

.type-icon-ffd {
    color: #f329aa; /* bright pink - Child's First Sick Day */
}

.ffd-bg {
    background: #fde8f5;
}

.type-icon-afspadsering {
    color: #6366f1; /* indigo - compensatory time */
}

.afspadsering-bg {
    background: #eef2ff;
}

.type-icon-customleave {
    color: #059669; /* emerald - custom leave types */
}

.customleave-bg {
    background: #d1fae5;
}

/* Warning shown when a person is dragged onto a shift on a day they cannot work
   (absence or an ended contract). The assignment is not written until it is confirmed. */
.drop-warning-icon {
    color: #E71313;
    font-size: 20px;
}

.drop-warning-body {
    padding: 20px 15px;
}

.drop-warning-text {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: #000;
}

.drop-warning-question {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: #666;
}






/* Flex */
.flex-row {
    display: flex;
    align-items: center;
}

.flex-1 {
    flex: 1;
}

.align-start {
    align-items: start;
}

/* Margin */
.margin-5 {
    margin: 5px;
}

.margin-10 {
    margin: 10px;
}

.margin-b-5 {
    margin-bottom: 5px;
}

.margin-b-10 {
    margin-bottom: 10px;
}

.margin-t-5 {
    margin-top: 5px;
}

.margin-t-10 {
    margin-top: 10px;
}


/* Padding */
.padding-10 {
    padding: 10px;
}

.padding-15 {
    padding: 15px;
}

.padding-b-5 {
    padding-bottom: 5px;
}

.padding-b-10 {
    padding-bottom: 10px;
}

.padding-t-5 {
    padding-top: 5px;
}

.padding-t-10 {
    padding-top: 10px;
}


/* Gap */
.gap-10 {
    gap: 10px;
}

.gap-5 {
    gap: 5px;
}

.gap-0 {
    gap: 0;
}


.color-red {
    color: #FF6D6D;
}


.form-control {
    font-weight: 600!important;
}

.validation-message {
    font-weight: 600 !important;
}
/* Fullscreen Modal

/* Fullscreen Modal Overlay */
.fullscreen-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.80);
    z-index: 3260;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    transition: background 0.3s;
    pointer-events: auto;
    touch-action: none;
}

/* Fullscreen Modal Container */
.fullscreen-modal-container {
    width: 100vw;
    height: 100vh;
    background: #fff;
    border-radius: 0;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.18);
    position: relative;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

    /* transform: none — NOT translateY(0). Any transform (and will-change: transform) makes this
       element the containing block for position:fixed descendants, and the overflow:hidden above
       then clips them. That traps every overlay opened from inside the modal (pickers, image zoom,
       assign-user dialogs) inside the modal box instead of covering the viewport. At rest
       translateY(0) is the identity transform anyway, so dropping it changes nothing visually —
       the slide-up animation still supplies the transform while it plays. */
    .fullscreen-modal-container.open {
        transform: none;
        will-change: auto;
        animation: slide-up 0.3s ease-out;
    }

/* Sticky Header */
.fullscreen-modal-header {
    position: sticky;
    top: 0;
    padding: 0 15px;
    z-index: 2;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 45px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Quicksand', Arial, sans-serif;
}

/* Sticky Header */
.fullscreen-modal-header-newobs {
    position: sticky;
    top: 0;
    padding: 0;
    z-index: 2;
    background: #fff;
    display: flex;
    align-items: center;
    min-height: 45px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Quicksand', Arial, sans-serif;
}

/* Close Button */
.fullscreen-modal-close-btn {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 2rem;
    color: #000;
    cursor: pointer;
    padding: 0;
    z-index: 3;
    transition: color 0.2s;
}

/* Close Button */
.fullscreen-modal-close-btn-newobs {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 2rem;
    color: #000;
    cursor: pointer;
    padding: 0 25px 0 20px;
    z-index: 3;
    transition: color 0.2s;
}

    .fullscreen-modal-close-btn:hover {
        color: #b32121;
    }

/* Modal Content */
.fullscreen-modal-content {
    flex: 1 1 auto;
    overflow: hidden; /* prevent outer scroll; inner container handles it */
    font-family: 'Quicksand', Arial, sans-serif;
    font-weight: 500;
    min-height: 0;
    display: flex;
    flex-direction: column;
}


.fullscreen-modal-content-wrapper {
    padding: 15px;
}

.fullscreen-modal-footer {
    display: flex;
    gap: 10px;
    padding: 12px 15px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #CCCCCC;
    flex-shrink: 0;
}


/* Slide up animation */
@keyframes slide-up {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

@media (min-width: 641px) {
    .fullscreen-modal-overlay {
        align-items: center !important;
        justify-content: center;
    }

    .fullscreen-modal-container {
        width: 100%;
        max-width: 500px;
        max-height: 90vh;
        height: auto;
        border-radius: 10px;
        margin-top: 0;
        box-shadow: 0 8px 40px rgba(0,0,0,0.18);
        position: relative;
/*        transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);*/
        will-change: transform;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .fullscreen-modal-header {
        border-radius: 10px 10px 0 0;
    }

    .plan-content-relative {
        margin-top: 0!important;
        position: relative;
        min-height: 600px; /* adjust as needed */
    }

}



/* MODAL FROM BOTTOM TO TOP

/* Overlay */
.modal-bottom-top-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(3px);
    z-index: 4000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    transition: background 0.3s;
    pointer-events: auto;
    touch-action: none;
}

    .modal-bottom-top-overlay.newobs-on-top {
        z-index: 3100;
    }

/* Modal Container (slides up) */
.modal-bottom-top-container {
    width: 100vw;
    max-width: 100vw;
    height: 90vh;
    background: #fff;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.18);
    position: relative;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-top: 4vh;
    min-height: 500px;
}

    /* Show modal (slide up). transform: none — see .fullscreen-modal-container.open above:
       a transform here would make nested position:fixed overlays resolve against this box. */
    .modal-bottom-top-container.open {
        transform: none;
        will-change: auto;
        animation: slide-up 0.3s ease-out;
    }

/* Modal Header */
.modal-bottom-top-header {
    position: relative;
    padding: 15px;
    display: flex;
    align-items: center;
    min-height: 60px;
    font-weight: 600;
    border-bottom: 1px solid #f0f0f0;
    font-family: quicksand;
    justify-content: space-between;
}

/* Swipe Line Indicator */
.modal-bottom-top-swipe-indicator {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 5px;
    border-radius: 3px;
    background: #e0e0e0;
    margin-bottom: 8px;
}


.modal-bottom-top-close-btn {
    background: none;
    border: none;
    font-size: 1.7rem;
    color: #888;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color 0.2s;
}

.modal-bottom-top-close-btn-mobile {
    position: absolute;
    top: 10px;
    right: 18px;
    background: none;
    border: none;
    font-size: 1.3rem;
    color: #000000!important;
    cursor: pointer;
    z-index: 1;
    padding: 4px;
    transition: color 0.2s;
}


/* Modal Content */
.modal-bottom-top-content {
    flex: 1 1 auto;
    /* min-height: 0 så feltet altid kan krympe under sit indhold når container'en rammer
       sit max-height — ellers klippes overskuddet af container'ens overflow: hidden,
       og der kommer ingen scrollbar. Af samme grund har feltet ikke sit eget vh-loft:
       et loft på fx 60vh kunne overstige container'ens (700px) på høje skærme. */
    min-height: 0;
    overflow-y: auto;
    font-family: Quicksand;
}

/* Modal Footer */
.modal-bottom-top-footer {
    padding: 14px 16px;
    border-top: 1px solid #eee;
    background: #fff;
    flex-shrink: 0;
    display: flex;
    gap: 10px;
}

.modal-bottom-top-footer .btn-gray-modal,
.modal-bottom-top-footer .btn-default-modal,
.modal-bottom-top-footer .btn-gray,
.modal-bottom-top-footer .btn-default {
    flex: 1;
}

.modal-bottom-top-content-box {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0; /* lets inner scroll areas shrink */
    overflow-y: auto;
}

.fullscreen-modal-container .guide-image-container {
    max-height: clamp(180px, 40vh, 360px);
}

.fullscreen-modal-container .guide-uploaded-image {
    max-height: clamp(180px, 40vh, 320px);
    object-fit: contain;
}

/* fit-content så en kort registrering ikke tvinges op i base-reglens 90vh. Loftet er nødvendigt:
   uden det voksede sheet'en forbi viewporten på mobil, og fordi .modal-bottom-top-container har
   overflow: hidden blev overskuddet klippet i stedet for at gøre .modal-bottom-top-content til
   scroller — man kunne hverken scrolle i modalen eller nå toppen, der lå uden for det fixed
   overlay. Desktop var upåvirket, fordi .modal-bottom-top-container får max-height: 700px over
   641px. min-height viger for loftet, så base-reglens 500px ikke slår max-height på lave skærme. */
.focus-component-modal {
   height: fit-content!important;
   /* vh-linjen FØR dvh-linjen er ikke overflødig. Forstår browseren ikke dvh, smides HELE
      max-height-erklæringen — og så står der en height: fit-content uden loft tilbage: sheet'en
      vokser forbi viewporten, overflow: hidden klipper resten, og der er intet at scrolle i.
      Præcis den fejl kommentaren ovenfor beskriver. vh er lidt for højt når browserlinjen er
      fremme, men et loft der er en anelse forkert slår et loft der ikke findes.
      --app-vvh (sat af keyboard-visible.js til den reelle visual-viewport-højde mens tastaturet
      er fremme) tager over fra dvh i det tilfælde — ellers kan footerens Gem-knap ende bag
      tastaturet, fordi dvh ikke krymper med det på flere mobile WebViews. */
   max-height: 90vh;
   max-height: var(--app-vvh, 90dvh);
   min-height: min(500px, 90dvh);
}

/* Admins "Besvar skemaet"-sheet (SurveyAdminBar). Samme højdeloft som .focus-component-modal og af
   samme grund, men uden dens desktop-forskydning (translateX) — dette sheet står alene og skal
   centreres. Uden loftet fik den base-reglens 90vh på mobil: et næsten tomt helskærmsark til ét
   spørgsmål, hvor headeren kunne ende over toppen på iOS. */
.survey-answer-modal {
   height: fit-content!important;
   max-height: 90vh;
   max-height: var(--app-vvh, 90dvh);
   min-height: min(500px, 90dvh);
}

@media (min-width: 641px) {
    .modal-bottom-top-close-btn {
        display: block!important;
        position: absolute;
        top: 12px;
        right: 18px;
        background: none;
        border: none;
        font-size: 1.7rem;
        color: #888;
        cursor: pointer;
        z-index: 1;
        padding: 4px;
        transition: color 0.2s;
    }

    .modal-bottom-top-overlay {
        align-items: center; /* Center vertically */
        justify-content: center; /* Center horizontally */
    }

    .modal-bottom-top-container {
        width: 100%;
        max-width: 500px;
        max-height: 700px;
        height: auto;
        border-radius: 12px;
        margin-top: 0;
        box-shadow: 0 8px 40px rgba(0,0,0,0.18);
        position: relative;
    /*    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);*/
        will-change: transform;
    }

    .focus-component-modal {
        transform: inherit;
    }

    .modal-bottom-top-swipe-indicator {
        display: none !important;
    }

    .modal-bottom-top-header {
        position: sticky;
        top: 0;
        z-index: 2;
        background: #fff;
        border-radius: 12px 12px 0 0;
        border-bottom: 1px solid #f0f0f0;
    }
}

@keyframes slide-up {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

@media (min-width: 641px) {
    /* Remove slide-up animation for Fullscreen Modal.
       transform: none + will-change: auto so nested position:fixed overlays are not trapped
       inside the 500px-wide dialog — the desktop base rules above set will-change: transform. */
    .fullscreen-modal-container.open {
        transform: none;
        will-change: auto;
        animation: none !important;
        transition: none !important;
    }

    /* Remove slide-up animation for Modal from bottom to top */
    .modal-bottom-top-container.open {
        transform: none;
        will-change: auto;
        animation: none !important;
        transition: none !important;
    }

    .task-extra-details {
        font-size: 14px !important;
    }

    .focus-component-modal {
        transform: translateX(-70px) !important;
    }


}

/* iOS safe area fix for fullscreen/side modals on mobile */
@media (max-width: 641px) {
    /* box-sizing: none of these 4 classes set it (default content-box), so padding-top
       landed ON TOP OF the explicit height:100dvh instead of being carved out of it —
       real height became 100dvh + inset, pushing whatever sits at the bottom of the flex
       column (e.g. EditShift's .side-modal-footer-with-toggle) off the visible screen by
       that same amount. border-box keeps the box at exactly 100dvh total. */
    .fullscreen-modal-container,
    .side-modal-container,
    .side-modal-container-focus,
    .side-modal-container-all-tasks {
        box-sizing: border-box;
        padding-top: env(safe-area-inset-top, 0px);
        height: 100dvh;
    }

    /* Keep bottom-sheet titles below the iOS status bar. */
    .modal-bottom-top-header {
        padding-top: calc(15px + env(safe-area-inset-top, 0px));
    }

.info-modal-custom-date-panel {
    display: flex;
    flex-direction: column!important;
}


}


/* TWO SECTION MODAL */

/* Two Section Modal Overlay */
.two-section-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 3200;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    pointer-events: auto;
    touch-action: none;
}

/* Two Section Modal Container */
.two-section-modal-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 500px;
    min-height: 650px;
    max-height: 90vh;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.18);
    overflow: hidden;
    position: relative;
    font-family: Quicksand;
}

/* Two Section Modal Header */
.two-section-modal-header {
    display: flex;
    align-items: center;
    padding: 0 20px;
    min-height: 56px;
    border-bottom: 1px solid #f0f0f0;
    background: #fff;
    position: relative;
    z-index: 2;
    gap: 24px;
}

.two-section-modal-title {
    font-size: 16px;
    font-weight: 700;
    font-family: 'Quicksand', Arial, sans-serif;
    color: #000;
    margin: 0;
    white-space: nowrap;
    margin-right: 16px;
}

/* --- Shared newobs-tabs underline for variable tab count --- */
.newobs-tabs {
    position: relative;
    display: flex;
    width: 100%;
    min-width: 150px;
}

.newobs-tab {
    flex: 1 1 0;
    text-align: center;
    padding: 14px 0;
    cursor: pointer;
    font-size: 14px;
    color: #888;
    position: relative;
    background: none;
    border: none;
    outline: none;
    transition: color 0.2s;
    font-weight: 500;
    font-family: 'Quicksand';
}

@media (min-width: 641px) {
    .newobs-tab {
        flex: 1 1 0;
        text-align: center;
        padding: 17px 0!important;
        cursor: pointer;
        font-size: 14px;
        color: #888;
        position: relative;
        background: none;
        border: none;
        outline: none;
        transition: color 0.2s;
        font-weight: 500;
        font-family: 'Quicksand';
 }

 .work-report-topbar-desktop {
background: #23312c;
min-height: 65px;
}

}

    .newobs-tab {
        font-weight: 600;
    }
    
    .newobs-tab.newobs-tab-active {
        font-weight: 700; 
        color: #000;
    }

    .two-section-modal-header .two-section-modal-close-btn {
        background: none;
        border: none;
        font-size: 2rem;
        color: #222;
        cursor: pointer;
        transition: color 0.2s;
        margin-left: auto;
        padding: 4px 8px;
    }

        .two-section-modal-header .two-section-modal-close-btn:hover {
            color: #b32121;
        }



    /* Two Section Modal Sections Row */
.two-section-modal-sections-row {
    display: flex;
    flex-direction: row;
    flex: 1 1 0;
    min-height: 0;
    z-index: 0;
    margin-bottom: 50px;
    background: #fff;
}

    /* Two Equal Sections */
    .two-section-modal-section {
        flex: 1 1 0;
        padding: 15px;
        background: #fff;
        min-width: 0;
        display: flex;
        flex-direction: column;
        overflow: auto;
    }

    .two-section-modal-section-todo {
        flex: 1 1 0;
        padding: 0;
        background: #fff;
        min-width: 0;
        display: flex;
        flex-direction: column;
    }

    .two-section-modal-section + .two-section-modal-section {
        border-left: 1px solid #e5e5e5;
        background: #F5F3EF;
    }

    .two-section-modal-footer {
        width: 100%;
        display: flex;
        justify-content: space-between;
        flex-direction: row-reverse;
        align-items: center;
        position: absolute;
        bottom: 0;
        right: 0;
        padding: 15px;
        background: #fff;
        pointer-events: none;
        border-top: 1px solid #f0f0f0;
    }

    .two-section-modal-save-btn {
        max-width: 180px;
        pointer-events: auto;
    }

    @media (max-width: 641px) {
        .two-section-modal-container {
            max-width: 100vw;
            flex-direction: column;
            min-width: 0;
            height: 100%;
            max-height: 100%;
            border-radius: 0;
        }
        
        .group-name-expanded-right {
                font-size: 10px;
         }
        

        .two-section-modal-sections-row {
            flex-direction: column;
        }

        .two-section-modal-section + .two-section-modal-section {
            border-left: none;
            border-top: 2px solid #e5e5e5;
        }

        .two-section-modal-section-todo + .two-section-modal-section-todo {
            border-left: none;
            border-top: 2px solid #e5e5e5;
        }
    }




/* SMALL MODAL */

/* Overlay */
.small-modal-overlay {
    position: fixed;
    inset: 0;
    /* Højden SKAL sættes eksplicit, ikke overlades til inset: 0.
       På en mobilbrowser måles top/bottom mod LAYOUT-viewporten, og den er højere end
       det man rent faktisk kan se, så længe adresselinjen er fremme. Overlayet blev
       altså højere end skærmen, og en lodret centrering midt i den højde landede under
       skærmens midte — dialogen så ud til at være skubbet ned, og dens nederste del lå
       uden for billedet. Det ramte hver eneste dialog med denne overlay-klasse, hvilket
       passer med at både pause-dialogen og Tilføj pause sad forkert.
       dvh følger det synlige område når adresselinjen glider ind og ud; vh-linjen står
       først som fallback, for forstår browseren ikke dvh, smides hele erklæringen. */
    height: 100vh;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.85);
    z-index: 4500;
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    /* Luften omkring dialogen ligger her frem for som margin på containeren, så
       auto-margin'en dernede kan bruges til selve centreringen. */
    padding: 10px;
    /* Er dialogen højere end skærmen, skal man kunne nå toppen af den. Uden dette
       klippes overskuddet og hverken overskrift eller knapper er til at komme til. */
    overflow-y: auto;
    transition: background 0.3s;
    pointer-events: auto;
    touch-action: none;
}

/* Modal Container */
.small-modal-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.18);
    width: 100%;
    max-width: 600px;
    min-width: 320px;
    min-height: 320px;
    max-height: 80vh;
    max-height: 80dvh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    font-family: 'Quicksand', Arial, sans-serif;
    padding: 0;
    /* margin: auto, ikke en fast margin. På et flex-barn opsuger auto-margin al ledig
       plads i BEGGE akser, så dialogen centrerer sig selv uafhængigt af justify-content
       og align-items på overlayet ovenfor. Med en fast margin afhang centreringen
       udelukkende af de to alignment-egenskaber, og gik én af dem tabt — eller blev
       overlayets flex-retning en anden — landede dialogen i et hjørne i stedet.
       Auto-margin overlever begge dele. */
    margin: auto;
    border-radius: 10px;
}

/* Modal Header */
.small-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 20px 20px 0 20px;
    min-height: 48px;
    font-size: 16px;
    font-weight: 700;
    color: #000;
    background: transparent;
    border-radius: 12px 12px 0 0;
    position: relative;
}

/* Close Button */
.small-modal-close-btn {
    background: none;
    border: none;
    height: 25px;
    font-size: 2rem;
    color: rgb(34, 34, 34);
    cursor: pointer;
    display: flex;
    transition: color 0.2s;
    align-items: center;
}

    .small-modal-close-btn:hover {
        color: #b32121;
    }

/* Modal Content */
.small-modal-content {
    flex: 1 1 auto;
    font-size: 16px;
    font-family: 'Quicksand', Arial, sans-serif;
    color: #222;
    overflow-y: auto;
}

/* Modal Footer */
.small-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 0 32px 32px 32px;
    background: transparent;
    border-radius: 0 0 12px 12px;
}

/* Buttons */
.small-modal-btn-cancel {
    background: #bdbdbd;
    color: #fff;
    border: none;
    padding: 10px 28px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Quicksand', Arial, sans-serif;
    font-weight: 600;
    font-size: 16px;
    transition: background-color 0.2s;
}

    .small-modal-btn-cancel:hover {
        background: #a0a0a0;
    }

.small-modal-btn-save {
    background: #2fa711;
    color: #fff;
    border: none;
    padding: 10px 28px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Quicksand', Arial, sans-serif;
    font-weight: 600;
    font-size: 16px;
    transition: background-color 0.2s;
}

    .small-modal-btn-save:hover {
        background: #258c0d;
    }

@media (max-width: 700px) {
    .small-modal-container {
        max-width: 100vw;
        min-width: 0;
    }
    
    .small-modal-footer {
    justify-content: end!important;
    padding: 0 15px 15px 15px!important;
    }

   .small-modal-btn-cancel {
    padding: 10px 15px!important;
    font-size: 12px!important;
    }

    .small-modal-btn-save {
    padding: 10px 15px!important;
    font-size: 12px!important;
   }
}


/* MODAL FROM RIGHT */

/* Overlay */
.side-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(3px);
    z-index: 3250;
    display: flex;
    align-items: stretch;
    justify-content: flex-end; /* push panel to the right */
    transition: background 0.3s;
    pointer-events: auto;
    touch-action: none;
}

/* Panel container (single section) */
.side-modal-container {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 2;
    background: #fff;
    width: 100vw; /* mobile default */
    height: 100vh;
    border-radius: 0;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.12);
    transform: translateX(100%); /* slide in from right */
    transition: transform 0.35s cubic-bezier(.4,0,.2,1);
    will-change: transform;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: Quicksand;
}

.side-modal-container-focus {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 2;
    background: #fff;
    width: 100vw; /* mobile default */
    height: 100vh;
    border-radius: 0;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.12);
    transform: translateX(100%); /* slide in from right */
    transition: transform 0.35s cubic-bezier(.4,0,.2,1);
    will-change: transform;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: Quicksand;
}


.side-modal-container-all-tasks {
    position: fixed;
    right: 0;
    top: 0;
    z-index: 1200;
    bottom: 0;
    background: #fff;
    width: 100vw; /* mobile default */
    height: 100vh;
    border-radius: 0;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.12);
    transform: translateX(100%); /* slide in from right */
    transition: transform 0.5s cubic-bezier(.4,0,.2,1);
    will-change: transform;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: Quicksand;
}

/* Task Modal Overlay - always on top */
.side-modal-overlay.task-modal-overlay {
    z-index: 3300 !important;
}

/* Task Modal Container - always on top */
.side-modal-container.task-modal-container {
    z-index: 10 !important;
}

/* Open state */
.side-modal-container-all-tasks.open {
    transform: translateX(0);
}

  
/* Open state */
.side-modal-container.open {
    transform: translateX(0);
}

.side-modal-container-focus.open {
    transform: translateX(0);
}

/* Desktop sizing and corners */
@media (min-width: 641px) {
    .side-modal-container {
        width: 560px; /* desktop drawer width */
        max-width: 90vw;
        border-radius: 8px 0 0 8px; /* rounded left edge only */
    }

    .side-modal-container-focus  {
        width: auto; /* desktop drawer width */
        max-width: 90vw;
        min-width: 90%;
        border-radius: 8px 0 0 8px; /* rounded left edge only */
    }

    .side-modal-container-all-tasks {
        width: 300px !important; /* desktop drawer width */
        max-width: 90vw !important;
        border-radius: 8px 0 0 8px !important; /* rounded left edge only */
    }

    /* The task side-modal is only ~560px wide on desktop and uses transform + will-change, which makes
       it the containing block for position:fixed descendants (and overflow:hidden clips them). That caps
       fullscreen overlays — e.g. the task image zoom — to the drawer width. Once the drawer has slid in,
       drop the transform/will-change on its resting state so those overlays resolve against the viewport
       and fill the screen. The slide-in keyframe animation still plays normally. */
    .side-modal-container.task-modal-container.open {
        transform: none;
        will-change: auto;
    }
}

/* When image zoom is open, lift the transform on ALL side-modal containers so that
   position:fixed on the overlay resolves against the viewport on mobile too. */
body.image-zoom-open .side-modal-container,
body.image-zoom-open .side-modal-container.open {
    transform: none !important;
    will-change: auto !important;
}

/* Header */
.side-modal-header {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #fff;
    min-height: 56px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.side-modal-header-middle {
    flex: 1;
    display: flex;
    justify-content: center;
}

.side-modal-header-middle-focus {
    flex: 1;
    display: flex;
    justify-content: start;
}

.focus-description-bar {
    font-size: 1rem;
    color: #666666;
    font-weight: 500;
    line-height: 1.4;
    gap: 6px;
}

.side-modal-header-flex {
    display: flex;
    flex-direction: column;
    margin: 15px;
}

.side-modal-title {
    margin-right: 40px;
    display: flex;
    align-items: center;
}

.side-modal-text {
    font-size: 14px;
    color: #888;
    margin-right: 40px;
}

/* Optional action buttons */
.side-modal-back-btn i {
    cursor: pointer;
    font-size: 20px;
}

.side-modal-trash-btn {
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
}

/* Body */
.side-modal-body {
    flex: 1 1 auto;
    overflow: auto;
    
}


.side-modal-body-dashboard {
    flex: 1 1 auto;
    overflow: auto;
    background: #F5F3EF;
}

/* Footer */
.side-modal-footer {
    position: sticky;
    bottom: 0;
    background: #fff;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 14px;
    padding: 14px 16px;
    padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
}

.side-modal-save-btn {
    min-width: 96px;
}

.task-creator-note {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    opacity: 0.8;
    padding: 0 16px 8px;
    color: #666;
}

.side-modal-save-btn-focus {
    min-width: 96px;
}


/* transform: none at rest (not translateX(0)) so overlays opened from inside a side panel —
   the guide/focus/group pickers in TaskTemplateSidePanel, the task image zoom — resolve against
   the viewport instead of the ~560px drawer. Generalises the .task-modal-container fix above. */
.side-modal-container.open {
    transform: none;
    will-change: auto;
    animation: slide-in-right 0.35s cubic-bezier(.4,0,.2,1);
}

.side-modal-container-focus.open {
    transform: none;
    will-change: auto;
    animation: slide-in-right 0.35s cubic-bezier(.4,0,.2,1);
}

.side-modal-container-all-tasks.open {
    transform: none;
    will-change: auto;
    animation: slide-in-right 0.15s cubic-bezier(.4,0,.2,1);
}

/* ===== TASK TEMPLATE SIDE PANEL ===== */

.template-panel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 3100;
    backdrop-filter: blur(2px);
}

.template-panel {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: 420px;
    max-width: 96vw;
    background: #fff;
    z-index: 3101;
    display: flex;
    flex-direction: column;
    box-shadow: -6px 0 24px rgba(0, 0, 0, 0.14);
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(.4, 0, .2, 1);
    font-family: Quicksand, sans-serif;
}

.template-panel.open {
    transform: translateX(0);
}

.template-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid #e8e8e8;
    min-height: 60px;
    flex-shrink: 0;
}

.template-panel-title {
    font-size: 16px;
    font-weight: 700;
    color: #3B5249;
    display: flex;
    align-items: center;
    gap: 8px;
}

.template-panel-title i {
    font-size: 18px;
}

.template-panel-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #666;
    padding: 4px 6px;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
    line-height: 1;
}

.template-panel-close-btn:hover {
    background: #f0f0f0;
    color: #222;
}

.template-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

.template-panel-loading,
.template-panel-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 40px 20px;
    color: #888;
    text-align: center;
    font-size: 14px;
}

.template-panel-loading i,
.template-panel-empty i {
    font-size: 32px;
    color: #ccc;
}

.template-panel-empty p {
    margin: 0;
    line-height: 1.5;
}

.template-panel-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.template-panel-item {
    cursor: grab;
    touch-action: none;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding: 16px 12px;
    min-height: 52px;
    transition: box-shadow 0.15s;
}

/* Higher specificity to override .task-item's align-items:stretch */
.template-panel .template-panel-item {
    align-items: center;
    display: flex;
}

.template-panel-item:hover {
    box-shadow: 0 2px 10px rgba(59, 82, 73, 0.18);
}

.template-panel-item:active {
    cursor: grabbing;
}

.template-panel-item .task-title {
    font-size: 14px;
    font-weight: 600;
}

.template-panel-item .task-info {
    font-size: 14px;
}

.template-drag-grip {
    color: #ccc;
    font-size: 16px;
    flex-shrink: 0;
    cursor: grab;
}

.template-panel-hint {
    font-size: 12px;
    color: #999;
    margin: 0 0 10px 2px;
    font-family: Quicksand, sans-serif;
}

.template-panel-item-delete-btn {
    background: none;
    border: none;
    color: #bbb;
    font-size: 14px;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    flex-shrink: 0;
    transition: color 0.15s;
    line-height: 1;
}

.template-panel-item-delete-btn:hover {
    color: #dc3545;
}

.template-panel-item-edit-btn {
    background: none;
    border: none;
    color: #3B5249;
    cursor: pointer;
    padding: 4px 6px;
    font-size: 15px;
    opacity: 0.5;
    flex-shrink: 0;
}

.template-panel-item-edit-btn:hover {
    opacity: 1;
    color: #3B5249;
}

.template-panel-item--editing {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: 1px dashed #ccc;
}

.template-attach-panel {
    background: #f9f7f3;
    border: 1px solid #e0ddd8;
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 2px;
}

.template-attach-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 30px;
}

.template-attach-type-icon {
    color: #3B5249;
    font-size: 14px;
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}

.template-attach-name {
    flex: 1;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.template-attach-remove {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 2px 4px;
    font-size: 14px;
    flex-shrink: 0;
}

.template-attach-remove:hover {
    color: #dc3545;
}

.template-attach-add-btn {
    background: none;
    border: 1px dashed #bbb;
    border-radius: 5px;
    color: #3B5249;
    cursor: pointer;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.template-attach-add-btn:hover {
    border-color: #3B5249;
    background: #eef1ef;
}

.template-attachment-badges {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    flex-shrink: 0;
}

.template-attach-badge {
    font-size: 11px;
    color: #3B5249;
    opacity: 0.7;
}

.template-panel-item-delete-confirm {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #666;
    flex-shrink: 0;
}

.template-delete-yes,
.template-delete-no {
    padding: 2px 8px;
    border-radius: 4px;
    border: none;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.template-delete-yes {
    background: #dc3545;
    color: #fff;
}

.template-delete-no {
    background: #e0e0e0;
    color: #333;
}

.template-panel-footer {
    padding: 14px 14px 18px;
    border-top: 1px solid #e8e8e8;
    flex-shrink: 0;
}

.template-panel-add-btn {
    width: 100%;
    padding: 11px;
    background: #3B5249;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: Quicksand, sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.15s;
}

.template-panel-add-btn:hover {
    background: #23312C;
}

.template-new-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.template-new-input {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #3B5249;
    border-radius: 8px;
    font-family: Quicksand, sans-serif;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}

.template-new-form-btns {
    display: flex;
    gap: 8px;
}

.template-new-form-btns .btn-gray-modal,
.template-new-form-btns .btn-default-modal {
    flex: 1;
    padding: 10px;
    font-family: Quicksand, sans-serif;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.template-new-form-btns .btn-gray-modal {
    background: #BDBDBD;
    color: #fff;
}

.template-new-form-btns .btn-default-modal {
    background: #3B5249;
    color: #fff;
}

.template-new-form-btns .btn-default-modal:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Template button in top bar */
.template-panel-btn {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ===== END TASK TEMPLATE SIDE PANEL ===== */

.side-modal-close-btn {
    position: absolute;
    top: 8px;
    right: 18px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #000;
    cursor: pointer;
    z-index: 1;
    padding: 4px;
    transition: color 0.2s;
}


    /* Slide-in animation for mobile only */
    @keyframes slide-in-right {
        from {
            transform: translateX(100%);
        }

        to {
            transform: translateX(0);
        }
    }



/* DESKTOP-RIGHT-MOBILE-BOTTOM MODAL */

.desktop-right-mobile-bottom-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 5100;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    transition: background 0.3s;
    pointer-events: auto;
    touch-action: none;
}

/* Modal Container */
.desktop-right-mobile-bottom-container {
    width: 100vw;
    max-width: 100vw;
    height: 90vh;
    background: #fff;
    border-radius: 14px 14px 0 0;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.18);
    position: relative;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-top: 4vh;
    min-height: 400px;
}

.desktop-right-mobile-bottom-content {
    flex: 1 1 auto;
    overflow-y: auto;
    font-family: Quicksand;
}


    .desktop-right-mobile-bottom-container.open {
        transform: translateY(0);
        animation: slide-up 0.3s ease-out;
    }

/* Header: mobile style by default */
.desktop-right-mobile-bottom-header {
    position: relative;
    padding: 0;
    display: flex;
    gap: 15px;
    align-items: center;
    min-height: 60px;
    font-weight: 600;
    border-bottom: 1px solid #f0f0f0;
    font-family: quicksand;
    background: #fff;
}

/* Close button: mobile style by default */
.desktop-right-mobile-bottom-close-btn {
    position: absolute;
    top: 8px;
    right: 18px;
    background: none;
    border: none;
    font-size: 1.7rem;
    color: #888;
    cursor: pointer;
    z-index: 1;
    padding: 4px;
    transition: color 0.2s;
}

    .desktop-right-mobile-bottom-close-btn:hover {
        color: #b32121;
    }

/* Desktop overrides */
@media (min-width: 641px) {
    .desktop-right-mobile-bottom-overlay {
        align-items: stretch;
        justify-content: flex-end;
    }

    .desktop-right-mobile-bottom-container {
        width: 560px;
        max-width: 90vw;
        height: 100vh;
        border-radius: 8px 0 0 8px;
        margin-top: 0;
        box-shadow: -8px 0 24px rgba(0, 0, 0, 0.12);
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(.4,0,.2,1);
    }

        .desktop-right-mobile-bottom-container.open {
            transform: translateX(0);
            animation: slide-in-right 0.35s cubic-bezier(.4,0,.2,1);
        }
    /* Header: desktop style */
    .desktop-right-mobile-bottom-header {
        position: sticky;
        top: 0;
        z-index: 2;
        background: #fff;
        min-height: 56px;
        border-bottom: 1px solid #f0f0f0;
        display: flex;
        align-items: center;
        gap: 12px;
        font-weight: 600;
        font-family: Quicksand;
        padding: 0;
    }
    /* Close button: desktop style */
    .desktop-right-mobile-bottom-close-btn {
        position: absolute;
        top: 8px;
        right: 18px;
        background: none;
        border: none;
        font-size: 2rem;
        color: #000;
        cursor: pointer;
        z-index: 1;
        padding: 4px;
        transition: color 0.2s;
    }

    .side-modal-save-btn-focus {
        max-width: 300px;
        min-width: 96px;
    }
}

/* Animations */
@keyframes slide-up {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes slide-in-right {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}


/* ==========================================
   ALL TASKS BIG MODAL STYLES
   ========================================== */

/* Overlay */
.all-tasks-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.80);
    z-index: 1200;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    transition: background 0.3s;
    pointer-events: auto;
    touch-action: none;
}

/* Container - Mobile (slide from bottom like existing modals) */
.all-tasks-modal-container {
    width: 100vw;
    height: 90vh;
    background: #fff;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.18);
    position: relative;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(.4, 0, .2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: quicksand;
}

    .all-tasks-modal-container.open {
        transform: translateY(0);
        animation: slide-up 0.3s ease-out;
    }

/* Header */
.all-tasks-modal-header {
    padding: 20px 20px 15px 20px;
    background: #fff;
}

.all-tasks-modal-title {
    font-size: 16px;
    font-weight: 700;
    font-family: 'Quicksand', Arial, sans-serif;
    margin: 0;
    color: #000;
}


/* Footer */
.all-tasks-modal-footer {
    padding: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    gap: 0;
    justify-content: end;
    display: flex;
    background: #fff;

}

    .all-tasks-modal-footer button {
        border-radius: 0;
        min-width: 0px;
    }

/* ==========================================
   DESKTOP STYLES (641px and up)
   ========================================== */
@media (min-width: 641px) {
    .all-tasks-modal-overlay {
        align-items: center;
        justify-content: center;
    }

    .all-tasks-modal-container {
        width: 90%;
        max-width: 1200px;
        height: auto;
        max-height: 90vh;
        border-radius: 10px;
        margin: 0;
        min-height: 80vh;
    }

        .all-tasks-modal-container.open {
            animation: none;
            transition: none;
        }

    .all-tasks-modal-title {
        font-size: 24px;
    }
 

    .all-tasks-modal-footer {
        padding: 20px 40px;
    }

        .all-tasks-modal-footer button {
            border-radius: 8px !important;
            max-width: 200px !important;
        }

    .all-tasks-modal-footer {
        gap: 10px!important;

    }

  
}


/* Modal from bottom to top - FULLSCREEN VERSION */

/* Overlay */
.modal-bottom-top-fullscreen-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 4000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    transition: background 0.3s;
    pointer-events: auto;
    touch-action: none;
}

/* Modal Container (fullscreen, slides up) */
.modal-bottom-top-fullscreen-container {
    width: 100vw;
    max-width: 100vw;
    height: 90vh;
    background: #fff;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.18);
    position: relative;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(.4, 0, .2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-top: 4vh;
    min-height: 500px;
    /* Set by keyboard-visible.js to the real visual-viewport height while the on-screen keyboard
       is up. dvh tracks the *layout* viewport, which several mobile WebViews never shrink for the
       keyboard - without this the sheet (and the Save button in its footer, outside the scrollable
       body) can end up capped taller than what's actually visible and sit behind the keys. Unset
       (var() falls through) the rest of the time, so this changes nothing with the keyboard down. */
    max-height: var(--app-vvh, 90dvh);
}


/* Brugervælgeren er to smalle kolonner og går selv i stå ved 600px (.assign-users-container),
   så i fuld skærmbredde lå resten af arket tomt ved siden af listen. Modalen er delt med andet
   indhold — guides, opgaver, tidsanmodninger — så den smalles kun ind, når den faktisk rummer
   brugervælgeren. Overlayet centrerer vandret (justify-content: center), så arket lander i
   midten. På smalle skærme giver min() stadig fuld bredde. */
.modal-bottom-top-fullscreen-container:has(.assign-users-content) {
    width: min(640px, 100vw);
    max-width: 100vw;
}

.modal-bottom-top-fullscreen-container .guide-content-area-simple {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto; /* this becomes the scroll container */
}

/* Keep the bottom actions always visible inside the modal */
.modal-bottom-top-fullscreen-container .guide-bottom-actions {
    position: sticky;
    bottom: 0;
    z-index: 5;
    background: #fff;
    border-top: 1px solid #eee;
}

/* Make uploaded image responsive to viewport height (fullscreen modal only) */
.modal-bottom-top-fullscreen-container .guide-image-container {
    max-height: clamp(180px, 40vh, 360px);
}

.modal-bottom-top-fullscreen-container .guide-uploaded-image {
    max-height: clamp(180px, 40vh, 320px);
    object-fit: contain;
}

    /* Let the guide layout fill the available height and enable inner scroll */
    .modal-bottom-top-fullscreen-container .guide-modal-section {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        min-height: 0; /* critical so child scrollers can shrink */
    }

    /* Show modal (slide up) */
    .modal-bottom-top-fullscreen-container.open {
        transform: translateY(0);
        animation: slide-up-fullscreen 0.3s ease-out;
    }

/* Modal Header */
.modal-bottom-top-fullscreen-header {
    position: relative;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    min-height: 60px;
    font-weight: 600;
    border-bottom: 1px solid #f0f0f0;
    background: #fff;
    z-index: 2;
}

/* Swipe Line Indicator */
.modal-bottom-top-fullscreen-swipe-indicator {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 5px;
    border-radius: 3px;
    background: #e0e0e0;
    margin-bottom: 8px;
}

/* Close Button (mobile) */
.modal-bottom-top-fullscreen-close-btn-mobile {
    position: absolute;
    right: 18px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #888;
    cursor: pointer;
    z-index: 1;
    padding: 4px;
    transition: color 0.2s;
}

.modal-bottom-top-fullscreen-delete-btn {
    position: absolute;
    left: 18px;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: #E71313;
    cursor: pointer;
    z-index: 1;
    padding: 4px;
    transition: color 0.2s;
}

/* Close Button (desktop) */
.modal-bottom-top-fullscreen-close-btn {
    display: none;
}

    .modal-bottom-top-fullscreen-close-btn:hover {
        color: #b32121;
    }

/* Modal Content */
.modal-bottom-top-fullscreen-content {
    flex: 1 1 auto;
    overflow-y: auto;
    font-family: Quicksand;
    min-height: 0;
}

@media (min-width: 641px) {
    .modal-bottom-top-fullscreen-close-btn {
        display: block !important;
        position: absolute;
        top: 12px;
        right: 18px;
        background: none;
        border: none;
        font-size: 1.7rem;
        color: #888;
        cursor: pointer;
        z-index: 1;
        padding: 4px;
        transition: color 0.2s;
    }

    .modal-bottom-top-fullscreen-overlay {
        align-items: flex-end;
        justify-content: center;
    }

    .modal-bottom-top-fullscreen-container {
        width: 100vw;
        max-width: 100vw;
        height: 90vh;
        background: #fff;
        border-radius: 10px 10px 0 0;
        box-shadow: 0 4px 32px rgba(0, 0, 0, 0.18);
        position: relative;
        transform: translateY(100%);
        transition: transform 0.35s cubic-bezier(.4, 0, .2, 1);
        display: flex;
        flex-direction: column;
        overflow: hidden;
        margin-top: 4vh;
        min-height: 500px;
        /* See the base rule above - kept in sync for touch tablets that hit this breakpoint. */
        max-height: var(--app-vvh, 90dvh);
    }

    .modal-bottom-top-fullscreen-swipe-indicator {
        display: none !important;
    }

    .modal-bottom-top-fullscreen-header {
        position: sticky;
        top: 0;
        z-index: 2;
        background: #fff;
        border-radius: 16px 16px 0 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .modal-bottom-top-fullscreen-content {
        max-height: calc(100vh - 60px - 40px);
        overflow-y: auto;
    }
}

/* Slide up animation for fullscreen modal */
@keyframes slide-up-fullscreen {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

/* MOBILE-ONLY MODAL FROM BOTTOM TO TOP (no desktop override) */
.mobile-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 5000;
    display: flex;
    align-items: flex-end;
    justify-content: end;
    transition: background 0.3s;
    pointer-events: auto;
    touch-action: none;
    font-family: Quicksand;
}

.mobile-modal-container {
    width: 560px;
    max-width: 100vw;
    height: 90vh;
    background: #fff;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.18);
    position: relative;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-top: 4vh;
    min-height: 500px;
    font-family: Quicksand;
}

    .mobile-modal-container.open {
        transform: translateY(0);
        animation: slide-up 0.3s ease-out;
    }

.mobile-modal-header {
    position: relative;
    padding: 15px;
    display: flex;
    align-items: center;
    min-height: 60px;
    font-weight: 600;
    border-bottom: 1px solid #f0f0f0;
    font-family: quicksand;
}

.mobile-modal-swipe-indicator {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 5px;
    border-radius: 3px;
    background: #e0e0e0;
    margin-bottom: 8px;
}

.mobile-modal-close-btn {
    position: absolute;
    top: 8px;
    right: 18px;
    background: none;
    border: none;
    font-size: 1.7rem;
    color: #888;
    cursor: pointer;
    z-index: 1;
    padding: 4px;
    transition: color 0.2s;
}

.mobile-modal-content {
    flex: 1 1 auto;
    overflow-y: auto;
    font-family: Quicksand;
}

    .plan-content-relative {
        margin-top: 0;
        position: relative;
        min-height: 600px; /* adjust as needed */
    }

    .plan-setup-modal-fade {
        position: absolute;
        inset: 0;
        bottom: 105px;
        top: -120px;
        background: rgba(240, 240, 240, 0.7);
        z-index: 3;
        pointer-events: auto;
        min-height: 70vh;
        height: auto;
        margin-bottom: 112px;
    }

    .plan-setup-modal-centered {
        position: absolute;
        top: 30%;
        left: 50%;
        z-index: 3;
        transform: translate(-50%, -50%);
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 400px;
        font-family: quicksand;
    }

    .plan-setup-modal-card {
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 4px 24px rgba(0,0,0,0.12);
        padding: 25px;
        max-width: 500px;
        width: 90vw;
        min-width: 280px;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .plan-setup-modal-header {
        font-size: 1.2rem;
        font-weight: 800;
        margin-bottom: 0.5rem;
    }

    .plan-setup-modal-title {
        display: block;
    }

    .plan-setup-modal-label {
        font-size: 1rem;
        margin-bottom: 1rem;
        color: #222;
        font-weight: 600;
    }

    .plan-setup-week-dropdown {
        margin-bottom: 1.5rem;
    }

    .plan-setup-modal-footer {
        display: flex;
        justify-content: flex-end;
    }

    .plan-setup-modal-next-btn {
        min-width: 120px;
        background: #355A47;
        color: #fff;
        border-radius: 6px;
        font-weight: 500;
        border: none;
    }

    @media (max-width: 600px) {
        .plan-setup-modal-card {
            padding: 1rem;
            max-width: 98vw;
        }
    }

    .setup-shift-remove-row {
        display: flex;
        align-items: center;
        color: #FF6D6D;
        font-weight: 600;
        font-size: 14px;
        gap: 10px;
        font-family: quicksand;
        cursor: pointer;
    }

    .setup-shift-remove-icon {
        font-size: 1.3em;
    }


/*     Shadows */
.custom-shadow {
   box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
}

 .custom-shadow:hover {
     box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
 }


.started-time {
    color: #000;
}


    /* SPACE BETWEEN */

    .space-between {
        justify-content: space-between;
    }



/* GROUP CARD (SHIFT) & TASK ITEM */


.group-card {
    border-radius: 5px;
    user-select: none;
    -webkit-user-select: none; /* Chrome/Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none;
}

/* Bruger-klik-filter: nedton vagter der ikke tilhører den valgte bruger. */
.shift-user-dimmed {
    opacity: 0.3;
    transition: opacity 0.15s ease;
}

/* Intet vw-loft her: et max-width i vw gjorde rækkevisningens kort smallere end de samme kort
   i kolonne- og timevisningen på brede skærme. Kortet fylder cellen, som i de to andre. */
.group-card-rows {
    margin-bottom: 10px;
    max-width: 100%;
}


.group-header {
    display: flex;
    width: 100%;
    align-items: stretch;
    cursor: grab;
    background: #fff;
    border-radius: 5px;
    transition: background-color 0.2s ease;
    font-family: 'Quicksand';
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
}

.draggable-group-card.dragging .group-header {
    cursor: grabbing;
}

    .group-indicator {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        flex-shrink: 0;
        margin-top: 5px;
    }

    .group-info {
        flex: 1;
        min-width: 0;
        padding: 2px;
        cursor: pointer;
    }

.group-info-template {
    flex: 1;
    min-width: 0;
    padding: 8px;
}

.group-title-rows {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 0;
    font-weight: 800;
    font-size: 14px;
    color: #000;
    font-family: 'Quicksand';
    min-width: 0;
    /* Always two lines */
    /* Indholdet holdes inde i kortet, så hverken tid eller navn kan flyde ud under
       nabo-boksene i headeren. */
    max-width: 100%;
    overflow: hidden;
}

/* Assigned layout for collapsed group header */
.group-title-rows--assigned {
    display: flex;
    align-items: start;
    flex-direction: column;
}

    /* Name should truncate with ellipsis */
    .group-title-rows--assigned .group-name {
        flex: 1 1 auto;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 12px!important; /* requested */
        font-weight: 800;
    }

    /* Put time on the same row, fully visible */
    .group-title-rows--assigned .group-title-bottom-row {
        display: contents; /* flatten wrapper so .group-time sits inline with name */
    }

/* Defensive: avoid any inherited max-width constraints fighting truncation */
.group-title-rows,
.group-title-rows--assigned {
    min-width: 0;
}

    .group-title-rows--assigned .group-time,
    .group-time--assigned {
        flex: 0 0 auto;
        white-space: nowrap;
        overflow: visible;
        text-overflow: clip;
        min-width: max-content; /* ensure time is fully visible */
        font-size: 12px!important; /* requested */
    }

/* Assigned user line under the row (as in the screenshot).
   Navnet må kun fylde én linje: brød et langt navn om, voksede kortet i højden og stod ikke
   længere i takt med de andre kort — derfor klippes det med ellipse i stedet. Reglen ligger
   globalt, så alle kalendervisningerne tegner kortet ens. */
.group-info .group-assigned-user {
    font-weight: 600;
    font-size: 12px;
    line-height: 1.2;
    color: #000;
    display: block;
    min-width: 0;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Rækkerne om navnet skal kunne krympe, ellers har ellipsen ingen plads at klippe i:
   et flex-element må som udgangspunkt ikke blive smallere end sit eget indhold. */
.group-name-row,
.group-assigned-users {
    min-width: 0;
    overflow: hidden;
}

/* Avatar must not grow or shrink */
.group-assigned-row .add-user-avatar,
.group-assigned-row .add-user-avatar-placeholder {
    flex: 0 0 auto;
}


/* Hide the small name under the avatar when we show the name under the title row */
.group-header:has(.group-assigned-user) .add-user-name {
    display: none !important;
}


    .group-title.expanded {
        flex-direction: column;
    }


    .group-title {
        display: flex;
        align-items: start;
        font-weight: 800;
        font-size: 14px;
        justify-content: space-between;
        color: #000;
        font-family: 'Quicksand';
        min-width: 0;
    }

        .group-title .group-name {
            min-width: 0;
            max-width: 120px; /* Adjust as needed */
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            display: inline-block;
            vertical-align: bottom;
            font-weight: 800;
            line-height: normal;
        }

.group-title-rows .group-name {
    min-width: 0;
    max-width: 100%; 
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    font-weight: 800;
}

.group-title-rows .group-title-bottom-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
}

.group-title-bottom-row--ml {
    justify-content: space-between;
}

    .group-title-bottom-row--ml .group-assigned-user {
        margin-left: auto;
        font-size: 12px;
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        color: #666;
    }

.group-time {
    color: #000;
    font-weight: 600;
    font-size: 12px;
}


.group-title-rows .group-time {
    color: #000;
    font-weight: 600;
    font-size: 14px;
    flex: 1 1 auto;
    white-space: nowrap;
    /* Bliver kortet alligevel for smalt, klippes tiden med ellipse i sin egen boks. Uden det
       flød den ud af .group-info og blev malet hen over af .edit-shift-box, der har uigennem-
       sigtig baggrund og ligger senere i DOM'en — så stod vagten med "05:00 - 13:0". */
    overflow: hidden;
    text-overflow: ellipsis;
}

.group-title-rows .group-task-count {
    font-size: 10px;
    color: #ccc;
    font-weight: 600;
    margin-left: auto;
    white-space: nowrap;
}

.group-title-rows .collapse-icon {
    color: #ccc;
    cursor: pointer;
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    height: 18px;
}


    /* When expanded, allow wrapping and show full name */
    .group-title.expanded .group-name {
        max-width: none;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        display: inline;
    }

    /* When expanded, allow wrapping and show full name */
    .group-title-rows.expanded .group-name {
        max-width: none;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        display: inline;
    }


    .group-location {
        font-size: 14px;
        color: #6b7280;
        font-weight: 600;
        justify-content: space-between;
        display: flex;
        flex-direction: row;
        gap: 5px;
    }


.collapse-icon svg {
    transition: transform 0.25s cubic-bezier(0.4, 0.2, 0.2, 1);
    display: inline-block;
}

.collapse-icon.expanded svg {
    transform: rotate(180deg);
}
     

.ungrouped-tasks-collapse-icon {
    transition: transform 0.2s;
    display: flex;
    align-items: center;
}

    .ungrouped-tasks-collapse-icon.collapsed svg {
        transform: rotate(0deg);
    }

    .ungrouped-tasks-collapse-icon.expanded svg {
        transform: rotate(180deg);
    }


.group-content {
    display: flex;
    flex-direction: column;
    background: transparent;
    transition: all 0.3s ease;
    overflow: hidden;
}


        .group-content.collapsed {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s;
        }

        .group-content.expanded {
            padding: 0;
        }


.group-info-expanded-flex {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.group-task-count {
    font-size: 10px;
    display: flex;
     color: #ccc;
    align-items: center;
    flex-direction: column;
}


.group-header-expanded {
    width: 100%;
    margin-top: 10px;
}

.group-header-expanded-locked {
    width: 100%;
}

.group-hide-tasks {
    font-size: 14px;
    font-weight: 800;
    padding: 5px 10px;
    border-radius: 5px;
    font-family: 'Quicksand';
    white-space: nowrap;
    cursor: pointer;
    height: 30px;
}

.group-name {
    font-size: 14px;
    font-weight: 800;
    width: 100%;
    font-family: quicksand;
}

.group-name-expanded {
    font-size: 12px;
    font-weight: 700;
    display: inline; /* keep overall inline behavior */
}

.group-name-expanded-name {
    /* Allow wrapping normally for the name */
    white-space: normal;
}


.group-name-expanded-right {
    display: inline-block; /* creates a clean wrap point before the time */
    white-space: nowrap; /* prevents the time (and user) from splitting into two lines */
}

/* Optional: prevent breaking inside the time range itself (e.g., around hyphen) */
.group-name-expanded-right {
    word-break: normal;
}

/* Medarbejdernavnet er den ene del af headeren der kan være vilkårligt lang. Uden dette arver den
   nowrap fra .group-name-expanded-right, og et langt navn blev klippet af kortkanten ("Lasse
   Svensso"). Tid og pause holdes fortsat sammen på én linje — kun navnet må bryde, og et enkelt
   meget langt navn brydes hvor som helst frem for at stikke ud af kortet. */
.group-name-expanded-user {
    white-space: normal;
    overflow-wrap: anywhere;
}

.group-info-expanded {
    font-family: quicksand;
    display: flex;
    align-items: center;
    padding: 5px;
    cursor: pointer;
    margin: 0;
    max-width: 80%;
    /* Flex-items har min-width:auto som standard: uden 0 kan teksten ikke krympe under sin egen
       bredde, og så hjælper ombrydningen ikke — kortet bliver bare sprængt indefra. */
    min-width: 0;
    font-size: 12px;
    font-weight: 800;
}

/* Remove box-shadow when a group is expanded (simplified header variant) */
.group-card .group-header-wrap .group-header--expanded {
    box-shadow: none !important;
    background: transparent;
    border-radius: 0; /* optional: match your screenshot */
    /* If the shadow comes from the wrapper, clear it too */
}


.group-card .group-header-wrap {
    box-shadow: none; /* ensures wrapper has no shadow when expanded */
}
/* If a generic .group-header applies shadow globally, neutralize it only for expanded */
.group-header--expanded,
.group-header--expanded * {
    box-shadow: none !important;
    padding: 1px 0 0 0;
    font-weight: 800;
    font-size: 12px;
}

    /* Dot before group name in expanded header */
    .group-header--expanded .group-info {
        display: flex;
        align-items: center;
        gap: 4px; /* space between dot and name */
    }

    .group-header--expanded .group-dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        margin-right: 0;
        flex-shrink: 0;
        display: inline-block;
    }

    /* Ensure the name and chevron align nicely */
    .group-header--expanded .group-name {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

.group-assigned-row {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    min-width: 0; /* critical for children to be able to shrink */
    overflow: hidden;
}

    /* Name: the only flexible item, with ellipsis */
   .group-assigned-row .group-assigned-user {
       flex: 1 1 0; /* flexible and allowed to shrink */
       min-width: 0; /* enables ellipsis inside flex item */
       white-space: nowrap;
       overflow: hidden;
       text-overflow: ellipsis;
       font-weight: 800;
       font-size: 12px;
       line-height: 1.2;
   }

    

    /* Time: fixed on the right, never truncates */
    .group-assigned-row .group-time.group-time--assigned {
        flex: 0 0 auto;
        margin-left: auto; /* push to the far right */
        white-space: nowrap;
        min-width: max-content;
        color: #888;
        font-weight: 600;
        font-size: 12px!important;
    }

.group-header-wrap {
    display: flex;
    align-items: start;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
    flex-direction: column;
}

.add-user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #fff;
    font-size: 14px;
    vertical-align: middle;
}

.add-user-avatar-placeholder {
    background: #3B5249;
}

.edit-box:hover {
    background: #f0f0f0;
}

.edit-shift-box {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: #f9f9f9;
    align-items: center;
    justify-content: center;
    padding: 5px;
    border-radius: 0 5px 5px 0;
    transition: background 0.2s;
    font-size: 14px;
    font-weight: 600;
    /* Vagtens tidspunkt er kortets vigtigste oplysning og må ikke klippes. Task-tælleren stod
       med faste 50px og flex-shrink: 0, så den tog sin plads først og skar enden af tiden
       ("05:00 - 13:0"). Nu fylder den sit indhold og viger, når kortet bliver smalt. */
    min-width: 40px;
    flex: 0 1 auto;
    cursor: pointer;
}

.edit-shift-box .group-task-count,
.edit-shift-box .group-task-number,
.edit-shift-box .group-task-label {
    white-space: nowrap;
}

.edit-shift-box:hover {
    background: #f0f0f0;
}

.edit-shift-box--empty {
    opacity: 0.6;
    pointer-events: auto;
}

/* Planens "Kun vagter": opgaverne er taget af kortene, så tælleren og fold-ud-pilen har intet at vise. */
.plan-only-shifts .edit-shift-box,
.plan-only-shifts .group-hide-tasks {
    display: none;
}


/* Empty cell styling */
.empty-group-cell {
    min-height: 80px;
    background: transparent;
}

.add-new-shift-btn-dropup {
    width: 100%;
}


/* DRAG DROP STYLE */

.draggable-mirror {
    z-index: 9999 !important;
}

.group-card.drop-highlight {
    border-left: none;
    border-right: 2px solid #35BF12 !important;
    border-top: 2px solid #35BF12 !important;
    border-bottom: 2px solid #35BF12 !important;
    transition: box-shadow 0.2s, border-color 0.2s;
    background: #E7F5EF !important;
}

/*.group-card.morning-group.drop-mode {
    border-left: 2px dashed #3B5249 !important;
    border-right: 2px dashed #3B5249 !important;
    border-bottom: 2px dashed #3B5249 !important;
    background: #F5FFFB !important;
    transition: border-color 0.2s, box-shadow 0.2s;
}*/

.group-card.morning-group.drop-mode.drop-highlight,
.group-card.morning-group.drop-highlight {
    border-left: none;
    border-right: 2px solid #35BF12 !important;
    border-top: 2px solid #35BF12 !important;
    border-bottom: 2px solid #35BF12 !important;
    transition: box-shadow 0.2s, border-color 0.2s;
    background: #E7F5EF !important;
}

.drag-mirror-avatar {
    display: inline-block;
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    min-height: 56px !important;
    max-width: 56px !important;
    max-height: 56px !important;
    box-sizing: border-box;
    border: 2px solid #3B5249;
    border-radius: 50%;
    background: #eaf6ff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    overflow: hidden;
    padding: 0;
    vertical-align: middle;
}

.group-card.morning-group {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    position: relative;
}

.calendar-cell {
    height: 100%;
    vertical-align: top;
}

.drag-mirror-avatar .plan-page-users-avatar,
.drag-mirror-avatar .plan-page-users-avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.group-card.morning-group.drop-disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

.group-card.morning-group.drop-mode.drop-mode-already-exists {
    background: #ffeaea !important;
    border-left: 2px dashed #d32f2f !important;
    border-right: 2px dashed #d32f2f !important;
    border-bottom: 2px dashed #d32f2f !important;
    opacity: 0.7;
    cursor: not-allowed;
}

.add-user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #fff;
    font-size: 16px;
    vertical-align: middle;
}

.add-user-avatar-placeholder {
    background: #3B5249;
}

/* TASK ITEM */

    .task-item-draggable-mirror {
        z-index: 9999 !important;
        opacity: 0.85;
        box-shadow: none;
        border: 2px dashed #3B5249;
        background: white;
        border-radius: 0;
        transform: rotate(2deg);
    }

.task-item {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: space-between;
    padding: 4px 5px 4px 5px;
    gap: 0;
    border: 1px solid #ccc;
    background: #FFFBEB;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    position: relative;
    overflow: visible;
    margin-bottom: 5px;
}

.task-item--one-time {
    /* background: #FFFBEB;
    border-color: #FDE68A; */
}

.sortable-tasks {
    gap: 6px;
    display: flex;
    flex-direction: column;
    margin-bottom: 6px;
}

.task-item, .task-item-ungrouped {
    cursor: grab;
}

.task-item[data-performed], .task-item-ungrouped[data-performed] {
    cursor: pointer;
}

.sortable-cell-tasks .task-item {
    touch-action: none;
}

    .task-item.is-dragging, .task-item-ungrouped.is-dragging {
        cursor: grabbing !important;
    }


.task-item-draggable-mirror {
    z-index: 9999 !important;
    opacity: 0.95;
    box-shadow: none;
    border: 2px dashed #3B5249;
    background: #fff;
    border-radius: 0;
    pointer-events: none;
    transform: rotate(2deg);
}

.task-item-ungrouped {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    padding: 10px;
    gap: 0;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin: 8px;
    cursor: pointer;
    box-shadow: none;
}


.task-group-type {
    display: flex;
    align-items: center;
}

.task-group-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
    flex-shrink: 0;
}

.task-group-name {
    font-size: 14px;
    color: #000;

}

.task-meta-label {
    font-size: 14px;
}


.ungrouped-group-label {
    margin: 5px 0;
    font-size: 12px;
    font-weight: 600;
    color: #000;
    display: flex;
    font-family: Quicksand;
    align-items: center;
}

.ungrouped-tasks-section {
    display: flex;
    align-items: start;
    flex-direction: column;
    border: none;
    margin: 20px 0;
    padding: 10px;
    border-radius: 5px;
    color: #d9d9d9;
    cursor: pointer;
    transition: box-shadow 0.2s, color 0.2s;
    flex-shrink: 0;
    width: auto;
    overflow: auto;
    user-select: none;
    -webkit-user-select: none; /* Chrome/Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none;
}

.open-ungrouped-tasks-section {
    display: flex;
    align-items: start;
    flex-direction: column;
    background: #ffffff;
    border: none;
    margin: 0 5px;
    padding: 10px;
    border-radius: 5px;
    color: #d9d9d9;
    cursor: pointer;
    transition: box-shadow 0.2s, color 0.2s;
    flex-shrink: 0;
    width: auto;
    overflow: auto;
    user-select: none;
    -webkit-user-select: none; /* Chrome/Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none;
}

.ungrouped-tasks-header {
    font-weight: 800;
    font-size: 14px;
    display: flex;
    color: black;
    width: 100%;
    align-items: center;
    margin: 0;
    font-family: Quicksand;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: start;
}

.chevron-icon {
    margin-left: 8px;
    font-size: 1.2em;
}

.ungrouped-tasks-list {
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.ungrouped-task {
    margin: 8px!important;
}

.task-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    vertical-align: middle;
}


    .task-img {
        width: 30px;
        height: 30px;
        border-radius: 5px;
        object-fit: cover;
        vertical-align: middle;
    }

    .task-item-routine {
        display: flex;
        align-items: end;
        justify-content: space-between;
        padding: 8px;
        border-bottom: 1px solid #ccc;
        gap: 5px;
        transition: background 0.2s;
        cursor: pointer;
        background: #fff;
    }

        .task-item-routine:first-child {
            border-top: 1px solid #ccc;
        }

        .task-item-routine:hover {
            background: #f9f9f9;
        }

    .task-info {
        display: flex;
        flex-direction: column;
        flex: 1 1 0;
        min-width: 0;
        font-family: 'Quicksand', Arial, sans-serif;
        justify-content: flex-start;
    }

    .task-title {
        font-size: 18px;
        font-weight: 600;
        color: #000;
        flex: 1 1 0;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.2;
        margin-right: 5px;
    }

    .task-title-routine {
        font-size: 14px;
        color: #000;
        font-weight: 700;
        font-family: 'Quicksand';
        line-height: 1.4;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 0;
        flex: 1 1 0%;
    }

.routine-icon {
    flex-shrink: 0;
    color: #D97706;
    font-size: 12px;
    line-height: 1;
    align-self: center;
}

.task-checkbox-mustdo-wrap {
    position: relative;
    display: inline-block;
    line-height: 0;
}
.task-checkbox-mustdo-wrap::after {
    content: "!";
    position: absolute;
    top: -6px;
    right: -6px;
    width: 13px;
    height: 13px;
    background: #E71313;
    color: #fff;
    border-radius: 50%;
    font-size: 9px;
    font-weight: 700;
    line-height: 13px;
    text-align: center;
    pointer-events: none;
}

.routine-icon-simple {
    position: absolute;
    top: -5px;
    right: -5px;
    color: #000000;
    font-size: 12px;
    background: #fff;
    border: px solid #ccc;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

    .task-title-row {
        display: flex;
        align-items: center;
        width: 100%;
        min-width: 0;
        overflow: hidden;
        gap: 4px;
    }

    .task-private-icon {
        font-size: 15px;
        color: #9ca3af;
        flex-shrink: 0;
        line-height: 1;
        align-self: center;
        display: inline-flex;
        align-items: center;
    }

    /* Hasteopgave-trekanten (TaskUrgentIcon). Rød frem for den grå nuance de øvrige række-ikoner
       har: den skal kunne ses på et fyldt kort uden at man læser titlen først. */
    .task-urgent-icon {
        font-size: 14px;
        color: #dc2626;
        flex-shrink: 0;
        line-height: 1;
        align-self: center;
        display: inline-flex;
        align-items: center;
    }

    .user-dots {
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .task-checkbox-col {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        flex-shrink: 0;
        /* Bagerst i .task-item, så .task-performed-meta lander til venstre for
           afkrydsningsfeltet i stedet for under det. Se .task-performed-meta. */
        order: 1;
    }

.task-details {
    font-size: 12px;
    color: #888;
    gap: 4px;
    font-weight: 600;
    display: flex;
}

.hero-task-time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    font-family: 'Quicksand', sans-serif;
    margin-top: 1px;
}

.hero-task-users {
    color: #9ca3af;
    font-weight: 500;
}


.task-details-column {
    font-size: 12px;
    color: #888;
    font-weight: 600;
    display: flex;
    gap: 0;
    flex-direction: column;
}

.task-details-row {
    font-size: 12px;
    color: #00000094;
    font-weight: 600;
    display: flex;
    gap: 4px;
    flex-direction: row;
}

/* Navn og klokkeslæt skal blive på samme linje. Et flex-element krymper ikke under sit indhold
   uden min-width:0, så uden det her træder ellipsen på .task-user aldrig i kraft — navnet skubber
   i stedet linjen fra hinanden. Hele kæden skal kunne krympe; .task-info har min-width:0 i forvejen. */
.task-details-flex,
.task-details-flex-box,
.task-details {
    min-width: 0;
}

/* Navnet på den, opgaven står på. Klippes med ellipse frem for at bryde linjen. Klokkeslættet ved
   siden af har min-width:auto og viger derfor ikke — det er navnet der giver plads. */
.task-user {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.task-details-flex {
    display: flex;
    align-items: start;
    gap: 8px;
    justify-content: space-between;
    margin-right: 8px;
}

.task-details-flex-box {
    display: flex;
    width: 100%;
    align-items: start;
    justify-content: space-between;
}

.task-icons-vertical {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: flex-start;
}

.task-icons-vertical i {
   font-size: 14px;
}


.task-extra-details {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #222;
    font-weight: 500;
    margin-top: 4px;
    flex-wrap: wrap;
}

    .task-actions {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
    }

    .task-extra-details:empty {
        display: none !important;
    }

    .task-checkbox-col:empty {
        display: none !important;
    }

    .comment-icon {
        color: #9ca3af;
        cursor: pointer;
    }

.task-checkbox {
    width: 26px;
    height: 26px;
    border: 2px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    flex-shrink: 0;
    appearance: none;
    -webkit-appearance: none;
    background: #fff;
    outline: none;
    transition: background 0.2s, border-color 0.2s;
    align-self: center;
    position: relative; /* Needed for ::after positioning */
}

.task-checkbox--missed {
    border-color: #ffc3c3;
    background-color: #ffffff;
}

        .task-checkbox:hover {
            border-color: #3B5249;
        }

        .task-checkbox:checked {
            background-color: #3d5247;
            border-color: #3d5247;
            accent-color: #3d5247;
        }

            /* Add checkmark icon in the center when checked */
            .task-checkbox:checked::after {
                content: "";
                position: absolute;
                left: 50%;
                top: 50%;
                width: 16px;
                height: 16px;
                transform: translate(-50%, -50%);
                background: url("data:image/svg+xml;utf8,<svg viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'><polyline points='4,11 9,16 16,6'/></svg>") center center no-repeat;
                background-size: 16px 16px;
                pointer-events: none;
            }

.task-checkbox-monthlist {
    width: 30px !important;
    height: 30px !important;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    border: 2px solid #ccc;
    border-radius: 5px;
    background: #fff;
    outline: none;
    transition: background 0.2s, border-color 0.2s;
    flex-shrink: 0;
    position: relative;
}

.task-checkbox-monthlist:hover {
    border-color: #3d5247;
}

.task-checkbox-monthlist:checked,
.task-checkbox-monthlist:checked:disabled {
    background-color: #3d5247 !important;
    border-color: #3d5247 !important;
}

.task-checkbox-monthlist:checked::after,
.task-checkbox-monthlist:checked:disabled::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 13px;
    height: 13px;
    transform: translate(-50%, -50%);
    background: url("data:image/svg+xml;utf8,<svg viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'><polyline points='4,11 9,16 16,6'/></svg>") center center no-repeat;
    background-size: 13px 13px;
    pointer-events: none;
}

.task-checkbox-checkin {
    width: 28px !important;
    height: 28px !important;
}

.task-checkbox-checkin:checked::after,
.task-checkbox-checkin:checked:disabled::after {
    width: 16px;
    height: 16px;
    background-size: 16px 16px;
}

/* Udført-af og klokkeslæt står på egen linje nederst i .task-item (flex-wrap:wrap), trukket helt
   mod højre så højrekanten flugter med afkrydsningsfeltet ovenover.

   order:2 er det afgørende: .task-checkbox-col har order:1 og er derfor sidste element i rækken.
   Uden en højere order ville dette element lande FØR checkboksen — enten klemt ind til venstre
   for den, eller, hvis det fylder en hel linje, med checkboksen skubbet ned på næste linje.

   Ingen max-width: den gamle grænse på 50% klippede klokkeslættet til "0…" i smalle rækkeceller. */
.task-performed-meta {
    order: 2;
    flex: 0 0 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
    font-family: 'Quicksand';
    font-size: 0.6rem;
    font-weight: 600;
    color: #00000094;
    line-height: 1.2;
    pointer-events: none;
}

    .task-performed-meta span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Er der to spans, er den første navnet på den der udførte opgaven — kun det må klippes.
       Er der kun én, er det klokkeslættet, og så skal :not(:last-child) netop ikke ramme. */
    .task-performed-meta span:first-child:not(:last-child) {
        min-width: 0;
    }

/* Mobilvisningernes modstykke til .task-performed-meta. Samme placering, samme grund til order.
   Elementet er width:100% i månedslisten, swiperen og forsidens gitter. Uden order landede det
   FØR .task-checkbox-col (order:1) og lagde beslag på linje 1: titlen blev klemt til nul bredde,
   og afkrydsningsfeltet røg ned på linje 2, hvor space-between lagde det i VENSTRE side. Feltet
   flyttede sig altså, i det øjeblik opgaven blev krydset af. Med order:2 bliver linje 1 = titel +
   afkrydsningsfelt (uændret placering), og udført-linjen står alene nedenunder.

   I MinPlanWidget ligger elementet inde i .task-checkbox-col og er allerede sidste barn — order
   ændrer intet der. */
.task-performed-info-small {
    order: 2;
}

    .edit-shift-btn {
        border: none;
        border-radius: 3px;
        box-shadow: none;
        font-size: 16px;
        background: transparent;
    }

    .edit-box {
        display: flex;
        flex-direction: column;
        gap: 3px;
        background: #f9f9f9;
        align-items: center;
        cursor: pointer;
        max-width: 55px;
        justify-content: center;
        padding: 3px;
        transition: background 0.2s;
        font-size: 20px;
        align-self: center;
    }

        .edit-box:hover {
            background: #f0f0f0;
        }


    .time-edit-footer {
        display: flex;
        gap: 14px;
        font-family: 'Quicksand';
        padding: 14px 16px;
        padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid #eee;
        background: #fff;
    }

    .time-edit-cancel {
        width: 50%;
        background: #bdbdbd;
        color: #fff;
        padding: 10px;
        font-size: 1.1em;
        font-weight: 600;
        border: none;
        outline: none;
        cursor: pointer;
        border-radius: 8px;
        width: 100%;
    }

    .time-edit-save {
        background: #3b5c4d;
        color: #fff;
        width: 50%;
        padding: 10px;
        font-size: 1.1em;
        font-weight: 600;
        border: none;
        outline: none;
        cursor: pointer;
        border-radius: 8px;
        width: 100%;
    }


    .remove-user {
        width: 50%;
        background: #ffb3ac;
        color: #fff;
        padding: 14px 0;
        font-size: 1.1em;
        font-weight: 600;
        border: none;
        outline: none;
        cursor: pointer;
        border-radius: 0;
        width: 100%;
    }

    .remove-user {
        width: 50%;
        background: #ffb3ac;
        color: #fff;
        padding: 14px 0;
        font-size: 1.1em;
        font-weight: 600;
        border: none;
        outline: none;
        cursor: pointer;
        border-radius: 8px;
        width: 100%;
    }

        .remove-user:hover {
            width: 50%;
            background: #e74c3c;
            color: #fff;
            padding: 14px 0;
            font-size: 1.1em;
            font-weight: 600;
            border: none;
            outline: none;
            cursor: pointer;
            border-radius: 0;
            width: 100%;
        }

    /* CUSTOM ASSIGN BOX DROPDOWN */

    .custom-box-dropdown {
        width: 100%;
    }

    .custom-box-dropdown-container {
        max-width: 500px;
        font-family: quicksand;
    }

    .custom-box-dropdown-main-flex {
        display: flex;
        flex-direction: column;
        width: 100%;
        display: flex;
        align-items: center;
        gap: 40px;
        flex-direction: row;
        background: white;
        border-radius: 8px;
    }

    .add-subgroup {
        background: transparent;
        text-align: right;
        border: none;
        color: #ccc;
        padding: 5px;
        font-size: 14px;
        color: #9CA3AF;
        font-family: quicksand;
        font-weight: 500;
        cursor: pointer;
        transition: background-color 0.2s;
    }

        .add-subgroup:hover {
            color: #000;
        }

    .custom-box-dropdown-main {
        display: flex;
        align-items: center;
        flex-direction: column;
        gap: 15px;
        padding: 15px;
        background: white;
        border: 1px solid #E5E7EB;
        border-radius: 8px;
    }

    .custom-box-dropdown-avatar {
        flex-shrink: 0;
        width: 40px;
        height: 40px;
        position: relative;
    }

    .custom-box-dropdown-avatar-placeholder {
        width: 40px;
        height: 40px;
        background: #F3F4F6;
        border-radius: 50%;
        border: 2px solid #E5E7EB;
        margin-left: 10px;
    }

    .custom-box-dropdown-avatar-stack {
        position: relative;
        width: 60px;
        height: 60px;
    }

    .custom-box-dropdown-avatar-img {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        border: 2px solid white;
        position: absolute;
        top: 0;
        left: 0;
    }

        .custom-box-dropdown-avatar-img:nth-child(2) {
            left: 14px;
            z-index: 1;
        }

        .custom-box-dropdown-avatar-img:nth-child(3) {
            left: 28px;
            z-index: 2;
        }

    .custom-box-dropdown-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .custom-box-dropdown-dropdown {
        position: relative;
        cursor: pointer;
        width: 100%;
    }

    .custom-box-dropdown-select {
        width: 100%;
        padding: 8px 32px 8px 12px;
        border: 1px solid #E5E7EB;
        border-radius: 5px;
        background: white;
        font-size: 14px;
        font-weight: 500;
        color: #374151;
        appearance: none;
        cursor: pointer;
    }

        .custom-box-dropdown-select:focus {
            outline: none;
            border-color: #3B82F6;
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
        }

    .custom-box-dropdown-assignment-display {
        width: 100%;
        padding: 8px 32px 8px 12px;
        border: 1px solid #E5E7EB;
        border-radius: 6px;
        background: white;
        font-size: 14px;
        font-weight: 500;
        min-height: 36px;
        display: flex;
        align-items: center;
    }

    .custom-box-dropdown-assignment-text {
        color: #374151;
    }

    .custom-box-dropdown-assignment-placeholder {
        color: #9CA3AF;
    }

    .custom-box-dropdown-
    
    
    
    -arrow {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        pointer-events: none;
    }

        .custom-box-dropdown-dropdown-arrow svg {
            width: 10px;
            height: 8px;
            display: block;
        }

    .custom-group-dropdown {
        position: relative;
    }

    .custom-box-dropdown-select-display {
        display: flex;
        align-items: center;
        position: relative;
        border: 1px solid #ccc;
        padding: 8px 32px 8px 12px;
        border-radius: 5px;
        font-size: 14px;
        font-weight: 500;
        background: white;
        width: 100%;
        box-sizing: border-box;
        font-family: quicksand;
        color: #000;
    }

    .custom-box-dropdown-group-dropdown-list {
        position: absolute;
        background: #fff;
        border: 1px solid #ccc;
        z-index: 10;
        width: 100%;
    }

    .custom-box-dropdown-group-dropdown-item {
        display: flex;
        align-items: center;
        padding: 6px 12px;
        cursor: pointer;
    }

        .custom-box-dropdown-group-dropdown-item:hover {
            background: #f0f0f0;
        }


    /* CHOOSE TIME & SHOULD REPEAT */


    .pick-time-row {
        display: flex;
        flex-direction: column;
    }

    .pick-time-date-row .pick-time-labels {
        display: flex;
        justify-content: space-between;
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 2px;
        padding: 0 30px 0 30px;
    }

    .pick-time-date-row .pick-time-label {
        color: #000;
        font-weight: 500;
    }

    .pick-time-date-inputs {
        display: flex;
        gap: 8px;
        flex-direction: column;
    }

    .pick-time-clock-icon {
        color: #23312c;
        font-size: 1.1em;
        margin-right: 6px;
    }

    .start-date-input,
    .end-date-input {
        border: 1.5px solid #ccc;
        border-radius: 5px;
        background: white;
        padding: 6px 10px;
        font-size: 14px;
        min-width: 110px;
        font-family: 'Quicksand';
        font-weight: 600;
        width: 100%;
    }

    .pick-time-arrow {
        font-size: 1.2em;
        color: #888;
    }

    .repeat-row {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        padding-bottom: 10px;
    }

    .repeat-label {
        font-size: 1em;
        font-weight: 500;
        color: #222;
    }

.is-from-task-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.multi-weekday-dropdown-container,
.start-day-picker-container-from-task {
    flex: 1 1 0;
}

 .multi-weekday-dropdown-container {
        width: 100%;
 }

    .calendar-popup-row {
        width: 100%;
        display: flex;
        justify-content: center;
        position: relative;
        margin-top: 16px;
    }

.calendar-popup-from-task {
    z-index: 10;
    min-width: 320px;
    max-width: 400px;
    margin: 0 auto;
    margin-bottom: 0;
    /* max-width: 95vw; */
    width: auto;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.10);
}

.calendar-backdrop-from-task {
    inset: 0;
    z-index: 9;
}

@media (max-width: 641px) {
    .calendar-popup-from-task {
        position: fixed;
        top: 50%;
        left: 50%;
        background: #fff;
        height: fit-content;
        transform: translate(-50%, -50%);
        margin-bottom: 0;
        min-width: 90vw;
        width: auto;
        z-index: 1001;
        box-shadow: 0 2px 24px rgba(0, 0, 0, 0.30);
    }

    .calendar-backdrop-from-task {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1000;
        background: rgba(0,0,0,0.25);
    }

}


    /* REPEAT SWITCH */

    .repeat-switch {
        position: relative;
        display: inline-block;
        width: 40px;
        height: 22px;
    }

        .repeat-switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

    .repeat-slider {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #d5d5d5;
        border-radius: 22px;
        transition: background 0.2s;
    }

    .repeat-switch input:checked + .repeat-slider {
        background-color: #3B5249;
    }

    .repeat-slider:before {
        position: absolute;
        content: "";
        height: 14px;
        width: 14px;
        left: 4px;
        bottom: 4px;
        background-color: #fff;
        border-radius: 50%;
        transition: transform 0.2s;
    }

    .repeat-switch input:checked + .repeat-slider:before {
        transform: translateX(18px);
    }

    .pick-time-date-flex {
        display: flex;
        flex-direction: row;
        align-items: center;
    }



    /* EDIT SHIFT MODAL */
    .modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.3);
        display: none;
        z-index: 1000;
    }

        .modal-overlay.active {
            display: block;
        }

    .edit-modal {
        position: absolute;
        background: white;
        border-radius: 8px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
        padding: 20px;
        width: 400px;
        max-width: 90vw;
        z-index: 1001;
        display: none;
        font-family: 'Quicksand';
    }

        .edit-modal.active {
            display: block;
        }

    .modal-section {
        margin-bottom: 20px;
    }

        .modal-section:last-child {
            margin-bottom: 0;
        }

    .remove-shift-btn {
        border: none;
        background: transparent;
        color: #FF6D6D;
        font-family: 'Quicksand';
        font-weight: 500;
        font-size: 14px;
        display: flex;
        align-items: center;
        gap: 5px;
    }

        .remove-shift-btn i {
            font-size: 16px;
        }

    .remove-shift-section {
        float: right;
    }

    /* CHECKBOX */

    .custom-checkbox {
        appearance: none;
        -webkit-appearance: none;
        width: 28px;
        height: 28px;
        border: 1px solid #ccc;
        border-radius: 6px;
        background: #fff;
        flex-shrink: 0;
        outline: none;
        cursor: pointer;
        position: relative;
        transition: background 0.2s, border-color 0.2s;
    }

        .custom-checkbox:checked {
            background: #3B5249;
            border-color: #3B5249;
        }

            .custom-checkbox:checked::after {
                content: "";
                position: absolute;
                left: 50%;
                top: 50%;
                width: 16px;
                height: 16px;
                transform: translate(-50%, -50%);
                display: block;
                background: url("data:image/svg+xml;utf8,<svg viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'><polyline points='4,11 9,16 16,6'/></svg>") center center no-repeat;
                background-size: 16px 16px;
                pointer-events: none;
            }


    /* CUSTOM SELECT */

    .custom-select {
        width: 100%;
        border: 1px solid #ccc;
        padding: 8px 32px 8px 12px; /* right padding for arrow */
        border-radius: 5px;
        background: #fff url("data:image/svg+xml;utf8,<svg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M1 1L5 5L9 1' stroke='%233B5249' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat right 12px center;
        font-size: 14px;
        font-family: 'Quicksand', Arial, sans-serif;
        color: #000;
        font-weight: 500;
        appearance: none;
        cursor: pointer;
        transition: border-color 0.2s;
    }

        .custom-select:focus {
            border-color: #3B5249;
            outline: none;
            box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.15);
        }

.dropdown-menu {
    max-height: 250px;
    overflow-y: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.20);
    width: 100%;
    border: 1px solid #3b5249;
    padding: 0;
    margin-top: 5px;
}

.dropdown-item {
    font-size: 1rem;
    padding: 0.75rem 1rem;
    font-family: quicksand;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.dropdown-item i{
    font-size: 20px;
  
}

    .dropdown-item:hover, .dropdown-item:focus {
        background-color: #f5f5f5!important; /* your desired background color */
        color: #000; /* your desired text color */
    }

    .btn.dropdown-toggle {
        border-radius: 5px;
        background-color: #fff;
        color: #333;
        border: 1px solid #ccc;
        display: flex;
        align-items: center;
        width: 100%;
        justify-content: space-between;
        font-family: quicksand;
        font-weight: 600;
        font-size: 14px;
    }

.dropdown {
    width: 100%;
    height: 100%;
}

.dropdown-toggle::after {
    display: none!important;
}

.dropdown-toggle-truncate-text {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

.dropdown-item.active {
    background: #3B5249!important;
    color: #fff!important;
}

.dropdown-user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 15px;
    background: #fff;
    border: 1px solid #d1d1d1;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    color: #222;
    cursor: pointer;
    transition: 0.2s;
}

.dropdown-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 8px;
    object-fit: cover;
    vertical-align: middle;
}

@media (max-width: 641px) {
    .mobile-dropdown-down {
        position: relative;
    }

        .mobile-dropdown-down .dropdown-menu {
            top: 0 !important;
            bottom: auto !important;
        }
}

    .swiper-autoheight {
        min-height: unset;
    }


    /* REPEAT TOGGLE, INPUTS, CALENDAR */

.setup-shift-page {
    padding: 15px;
    height: 100%;
    display: flex;
    flex-direction: column;
}
    .setup-shift-title {
        font-size: 16px;
        font-weight: 700;
        font-family: 'Quicksand', Arial, sans-serif;
        margin-bottom: 4px;
    }

    .setup-shift-subtitle {
        color: #9ca3af;
        font-size: 14px;
        font-family: 'Quicksand', Arial, sans-serif;
    }


    .setup-shift-section-time {
        margin-bottom: 16px;
    }

    .setup-shift-section-group {
        display: flex;
        align-items: start;
        gap: 20px;
    }

    .setup-shift-pick-time-flex {
        display: flex;
        flex-direction: column;
        gap: 5px;
        width: 100%;
    }

    .setup-shift-section-title {
        font-size: 14px;
        font-weight: 700;
        font-family: 'Quicksand', Arial, sans-serif;
        display: flex;
        gap: 8px;
        align-items: center;
    }

       .setup-shift-section-title i{
        font-size: 1rem;
  
    }

    .setup-shift-time-row {
        gap: 12px;
    }

    .setup-shift-repeat-row {
        display: flex;
        align-items: center;
        gap: 16px;
        margin: 10px 0;
    }

    .setup-shift-checkbox-label {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .setup-shift-checkbox-text {
        font-size: 14px;
        font-weight: 600;
        font-family: 'Quicksand', Arial, sans-serif;
    }

    .setup-shift-stop-row {
        display: flex;
        align-items: center;
        gap: 16px;
        margin-top: 12px;
    }

    .setup-shift-stop-label {
        font-size: 12px;
        color: #9ca3af;
        font-weight: 600;
        font-family: 'Quicksand', Arial, sans-serif;
    }

    .dropdown-group {
        display: flex;
        align-items: center;
    }

    .start-day-picker-container {
        position: relative;
        display: inline-block;
    }

    .choose-start-day-input {
        width: 100%;
        padding: 6px 12px;
        font-size: 14px;
        border-radius: 5px;
        border: 1px solid #ccc;
        background: #fff;
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
        font-family: quicksand;
        font-weight: 600;
        min-width: 0;
        max-width: 170px;
    }

    .choose-start-day-text {
        flex: 1 1 auto;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        margin-right: 0.5rem; /* space between text and icon */
    }

    .calendar-icon {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
    }

    .calendar-popup {
        position: absolute;
        z-index: 1001;
        left: 0;
        bottom: 100%;
        margin-bottom: 8px;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 12px rgba(0,0,0,0.20);
        padding: 18px 20px 12px 20px;
        min-width: 320px;
    }


    .calendar-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1000;
    }

    @media (max-width: 641px) {
        .calendar-popup {
            position: fixed;
            top: 50%;
            left: 50%;
            height: fit-content;
            transform: translate(-50%, -50%);
            margin-bottom: 0;
            min-width: 90vw;
            /* max-width: 95vw; */
            width: auto;
            z-index: 1001;
            box-shadow: 0 2px 24px rgba(0, 0, 0, 0.30);
        }

        .calendar-backdrop {
            display: block;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 1000;
            background: rgba(0,0,0,0.25);
        }
    }



    .repeat-template-text {
        color: #9ca3af;
        font-size: 14px;
        font-family: 'Quicksand', Arial, sans-serif;
        margin-bottom: 24px;
    }


    .setup-template-repeat {
        display: flex;
        margin-top: 30px;
        flex-direction: column;
    }


    .newobs-option-btn.active {
        background: #e0e0e0;
        color: #1976d2;
        border-radius: 4px;
    }


    /* Locking body via position:fixed with no explicit height lets it shrink to its own
       in-flow content height; combined with overflow:hidden that clips fixed children
       (.newobs-tab-menu, .mobile-bottom-nav) to that shrunk box. Pinning to viewport
       height while locked is the standard fix for this iOS scroll-lock pattern. */
    body.modal-open {
        overflow: hidden !important;
        height: 100vh;
        height: 100dvh;
    }

    .guide-content-editor img {
        height: 250px !important;
        object-fit: contain !important;
    }

    body.dashboard-modal-open {
        scrollbar-width: none; /* Firefox */
      
    }

        body.dashboard-modal-open::-webkit-scrollbar {
            display: none!important; /* Chrome, Safari, Opera, Edge Chromium */
        }




    /* DROPDOWN POPUP */

    .dropdown-overlay {
        position: fixed;
        inset: 0;
        z-index: 1000;
        background: transparent;
    }

    .dropdown-modal {
        position: absolute;
        top: 100%;
        right: 0;
        min-width: 220px;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 8px 16px rgba(0,0,0,0.14);
        display: flex;
        flex-direction: column;
        gap: 2px;
        z-index: 1001;
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
        pointer-events: none;
        transition: opacity 0.22s cubic-bezier(.4,0,.2,1), transform 0.22s cubic-bezier(.4,0,.2,1);
    }

    .user-checkin-request-container .dropdown-modal.show {
        opacity: 1;
        transform: translateY(0) scale(1);
        pointer-events: auto;
    }

    .dropdown-modal-item {
        display: flex;
        align-items: center;
        gap: 12px;
        background: none;
        border: none;
        width: 100%;
        padding: 14px 20px;
        font-weight: 600;
        font-size: 1.1rem;
        color: #222;
        text-align: left;
        border-radius: 12px;
        transition: background 0.15s;
    }

        .dropdown-modal-item:hover, .dropdown-modal-item:focus {
            background: #f5f5f5;
            outline: none;
            border-radius: 8px;
        }

    .dropdown-modal.show {
        opacity: 1;
        transform: translateY(0) scale(1);
        pointer-events: auto;
    }


    .custom-date-input {
        display: flex;
        align-items: center;
        gap: 6px !important;
        background: #fff;
        border-radius: 5px;
        padding: 4px 8px;
        border: 1px solid #ccc;
        cursor: pointer;
        font-weight: 500;
    }

/*    NEW SIDEBAR*/

/* ===== SIDEBAR BASE ===== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 70px;
    background-color: #23312c;
    transition: width 0.25s ease;
    overflow-x: visible;
    overflow-y: clip;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    font-family: quicksand;
}

.sidebar:not(.expanded) {
    cursor: pointer;
}

.sidebar.expanded {
    width: 260px;
    overflow: hidden;
}

.sidebar.expanded {
    cursor: pointer;
}

.sidebar.expanded .sidebar-menu-item,
.sidebar.expanded .sidebar-submenu-item {
    cursor: default;
}

.sidebar.expanded .sidebar-link,
.sidebar.expanded .sidebar-toggle-btn,
.sidebar.expanded .sidebar-submenu-link {
    cursor: pointer;
}

/* ===== SIDEBAR NAV ===== */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 16px 12px;
    box-sizing: border-box;
}

/* ===== SIDEBAR HEADER / BRANDING ===== */
.sidebar-header {
    margin-bottom: 20px;
}


.sidebar-branding {
    display: flex;
    gap: 12px;
    margin: 0;
    padding: 8px;
    min-height: 48px;
}

.sidebar-logo-wrapper {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sidebar-user-info {
    opacity: 0;
    white-space: nowrap;
    max-width: 0;
    overflow: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, max-width 0.25s ease;
}

.sidebar.expanded .sidebar-user-info {
    opacity: 1;
    max-width: 200px;
    pointer-events: auto;
}

.sidebar-user-name {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}

.sidebar-user-role {
    margin: 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

/* ===== SIDEBAR CONTENT ===== */
.sidebar-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
    overflow: visible;
    min-height: 0;
}

.sidebar.expanded .sidebar-content {
    overflow-y: auto;
    overflow-x: hidden;
}

/* ===== SIDEBAR MENU ===== */
.sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-menu-primary {
    flex: 1;
}

.sidebar-menu-secondary {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-menu-item {
    position: relative;
}

/* ===== SIDEBAR LINK ===== */
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 14px;
    border: none;
    padding: 12px 14px;
    border-radius: 8px;
    background-color: #ffffff30;
    color: #ffffff;
    text-decoration: none;
    transition: background-color 0.15s ease;
    cursor: pointer;
    position: relative;
    min-height: 48px;
    box-sizing: border-box;
    width: 100%;
}

.sidebar-link:hover {
    background-color: #566868;
}

.sidebar.no-tooltip .sidebar-link:hover {
    background-color: transparent;
}

.sidebar-link.active {
    background-color: #6B8F71;
    color: #ffffff !important;
}

.sidebar-link.active .sidebar-link-icon i,
.sidebar-link.active .bi,
.sidebar-link.active .sidebar-link-text {
    color: #ffffff !important;
}

/* ===== SIDEBAR ICON ===== */
.sidebar-link-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
}

.sidebar-link-icon i {
    font-size: inherit;
    line-height: 1;
}

.sidebar-link-icon .user-avatar {
    width: 20px;
    height: 20px;
}

/* ===== SIDEBAR AVATAR ===== */
.sidebar-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #5a6a6a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-left: -6px;
    object-fit: cover;
}

/* ===== SIDEBAR LINK TEXT ===== */
.sidebar-link-text {
    opacity: 0;
    white-space: nowrap;
    overflow: hidden;
    max-width: 0;
    transition: opacity 0.25s ease, max-width 0.25s ease;
    font-size: 15px;
    font-weight: 500;
}

.sidebar.expanded .sidebar-link-text {
    opacity: 1;
    max-width: 200px;
}

/* ===== SIDEBAR BADGE ===== */
.sidebar-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background-color: #e53935;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

/* Expanded: show numeric badge aligned to the right and centered vertically */
.sidebar.expanded .sidebar-link .sidebar-badge {
    position: absolute;
    right: 12px !important; /* stick to the right edge inside the pill */
    left: auto !important; /* cancel any collapsed-left positioning */
    top: 50% !important; /* center vertically in the pill */
    transform: translateY(-50%) !important;
    /* badge sizing/appearance */
    min-width: 22px;
    height: 22px;
    padding: 0 8px;
    border-radius: 11px;
    font-size: 12px;
    font-weight: 700;
    opacity: 1;
    /* stay above content and ignore clicks */
    z-index: 1;
    pointer-events: none;
}

/* Collapsed: keep tiny dot indicator to the left of the icon */
.sidebar:not(.expanded) .sidebar-badge {
    opacity: 1;
    top: 8px;
    right: auto;
    left: 32px;
    width: 8px;
    height: 8px;
    min-width: 8px;
    padding: 0;
    font-size: 0;
    transform: none; /* ensure no vertical centering in collapsed mode */
}
.sidebar.expanded .sidebar-badge {
    opacity: 1;
}

/* ===== TOOLTIP (collapsed state only) ===== */
.sidebar:not(.expanded) .sidebar-link::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    padding: 8px 12px;
    background-color: #23312c;
    color: #ffffff!important;
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 1001;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sidebar:not(.expanded).mouse-inside .sidebar-link:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Hide tooltips on touch devices */
@media (hover: none) and (pointer: coarse) {
    .sidebar:not(.expanded) .sidebar-link::after {
        display: none;
    }
}

/* Hide tooltips on native/touch (set via C# platform detection) */
.sidebar.no-tooltip .sidebar-link::after {
    display: none !important;
}

/* ===== SIDEBAR SUBMENU ===== */
.sidebar-menu-item.has-submenu {
    position: relative;
}

.sidebar-chevron {
    margin-left: auto;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    font-size: 12px;
}

.sidebar.expanded .sidebar-chevron {
    opacity: 1;
}

.sidebar-menu-item.submenu-open .sidebar-chevron {
    transform: rotate(180deg);
}

.sidebar-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: none;
    background-color: rgba(0, 0, 0, 0.15);
    border-radius: 0 0 8px 8px;
}

.sidebar.expanded .submenu-open .sidebar-submenu {
    display: block;
    padding: 4px 0;
}

.sidebar-submenu-item {
    margin: 0;
}

.sidebar-submenu-link {
    display: flex;
    align-items: center;
    padding: 8px 14px 10px 8px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: background-color 0.15s ease;
    border-radius: 4px;
    margin: 0 8px;
}

.sidebar-submenu-link:hover {
     font-weight: 500;
}

.sidebar-submenu-link.active {

    font-weight: 600;
}

.sidebar-submenu-link,
.sidebar-submenu-link:link,
.sidebar-submenu-link:visited,
.sidebar-submenu-link:active,
.sidebar-submenu-link:focus {
    color: #fff !important;
}

.sidebar-submenu-text {
    white-space: nowrap;
}

@media (max-width: 1899px) {
    .sidebar-header {
        margin-bottom: 10px!important;
    }

    .sidebar-link {
        padding: 8px 14px!important;
        min-height: 44px!important;
    }

    .sidebar-submenu-link {
       padding: 8px 14px 8px 14px !important;
    }
}

/* ===== SIDEBAR LINK WRAPPER & TOGGLE BUTTON ===== */
.sidebar-link-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
}

    .sidebar-link-wrapper .sidebar-link {
        flex: 1;
        padding-right: 40px;
    }

.sidebar:not(.expanded) .sidebar-link-wrapper {
    display: block;
}

.sidebar:not(.expanded) .sidebar-link-wrapper .sidebar-link {
    padding-right: 14px;
}

.sidebar-toggle-btn {
    display: none;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #fff;
    padding: 8px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.25s ease;
    border-radius: 8px;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
}

    .sidebar-toggle-btn i {
        font-size: 14px;
        transition: transform 0.25s ease;
    }

    .sidebar-toggle-btn:hover {
        background: rgba(255, 255, 255, 0.15);
    }

.sidebar.expanded .sidebar-toggle-btn {
    display: flex;
}

.sidebar-menu-item.submenu-open .sidebar-toggle-btn i {
    transform: rotate(180deg);
}

.sidebar-menu-item.submenu-open .sidebar-toggle-btn {
    transform: translateY(-50%);
}

/* Ensure badge stays visible with chevron */
.sidebar-menu-item.has-submenu .sidebar-badge {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    margin-left: auto;
    margin-right: 8px;
}

.sidebar.expanded .sidebar-menu-item.has-submenu .sidebar-badge {
    position: relative !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
}

/* ===== MAIN CONTENT OFFSET ===== */
.main-content {
    margin-left: 70px;
    transition: margin-left 0.25s ease;
    min-height: 100vh;
}

/* Optional: expand main content margin when sidebar is expanded */
.sidebar.expanded ~ .main-content {
    margin-left: 260px;
}

.sidebar.expanded .sidebar-link:hover {
    background-color: #ffffff4a; /* your desired hover color */
    color: #fff; /* optional: ensure text is readable on the new bg */
}

 .sidebar.expanded .sidebar-link:hover .sidebar-link-icon i,
 .sidebar.expanded .sidebar-link:hover .sidebar-link-text {
     color: #fff; /* optional: keep icon/text consistent on hover */
 }

/* Sidebar links: force white in all anchor states, including visited */
.sidebar-link,
.sidebar-link:link,
.sidebar-link:visited,
.sidebar-link:active,
.sidebar-link:focus {
    color: #fff !important;
}

/* Ensure the icon inherits the intended color, not the global a color */
.sidebar-link .sidebar-link-icon i,
.sidebar-link .bi {
    color: #fff !important;
}

/* Active link overrides: #6B8F71 bg, white icon/text */
.sidebar-link.active,
.sidebar-link.active:link,
.sidebar-link.active:visited,
.sidebar-link.active:focus {
    color: #ffffff !important;
}

.sidebar-link.active .sidebar-link-icon i,
.sidebar-link.active .bi,
.sidebar-link.active .sidebar-link-text {
    color: #ffffff !important;
}

/* ===== SIDEBAR OVERLAY (touch devices when expanded) ===== */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.30);
    z-index: 999; /* below .sidebar (1000) so the sidebar remains clickable */
    touch-action: none; /* avoid scrolling the page underneath */
}

    .setup-shift-page {
        padding: 15px!important;
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    /*SELECT*/

    .week-form-select {
        background: #fff;
        border: none;
        border-radius: 5px;
        padding: 0 8px;
        display: flex;
        align-items: center;
        cursor: pointer;
        font-size: 14px;
        font-family: 'Quicksand', sans-serif;
        font-weight: 600;
        color: #222;
        gap: 5px;
        transition: background 0.2s;
        height: 30px;
        min-width: 40px;
        border: 1px solid #d5d5d5;
    }

    .setup-form-select {
        background: #fff;
        border: none;
        border-radius: 5px;
        padding: 0 8px;
        display: flex;
        align-items: center;
        cursor: pointer;
        font-size: 14px;
        font-family: 'Quicksand', sans-serif;
        font-weight: 600;
        color: #222;
        gap: 5px;
        transition: background 0.2s;
        height: 35px;
        min-width: 40px;
        border: 1px solid #d5d5d5;
    }

@media (min-width: 641px) {
    .week-form-select {
        background: #fff;
        border: none;
        border-radius: 5px;
        padding: 0 8px;
        display: flex;
        align-items: center;
        cursor: pointer;
        font-size: 14px;
        font-family: 'Quicksand', sans-serif;
        font-weight: 600;
        color: #222;
        gap: 5px;
        transition: background 0.2s;
        height: 35px !important;
        min-width: 40px;
        border: 1px solid #d5d5d5;
    }

    .plan-setup-modal-centered {
        position: absolute;
        top: 50% !important;
        left: 50%;
        z-index: 3;
        transform: translate(-50%, -50%);
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 400px;
        font-family: quicksand;
    }

    .plan-setup-modal-fade {
        position: absolute;
        inset: 0;
        bottom: 0 !important;
        top: 0 !important;
        background: rgba(240, 240, 240, 0.7);
        z-index: 3;
        pointer-events: auto;
        min-height: 100vh !important;
        height: auto;
        margin-bottom: inherit !important;
    }

}

@media (min-width: 1000px) {

    .group-time {
        color: #000;
        font-weight: 600;
        font-size: 14px !important;
    }
}


  .mobile-topbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: calc(55px + env(safe-area-inset-top, 0px));
        border-radius: 0 0 10px 10px;
        padding: env(safe-area-inset-top, 0px) 0.8rem 0 1rem;
        background: #23312c;
        color: #fff;
        position: fixed;
        top: 0;
        left: 0;
        gap: 8px;
        right: 0;
        z-index: 1112;
        font-family: Quicksand;
    }

.topbar-title {
   font-size: 14px;
    line-height: normal;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
}

    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.3);
        z-index: 1000;
    }

        .mobile-menu-overlay.open {
            display: block;
        }

    .mobile-menu {
        position: fixed;
        top: 35px;
        left: 0;
        right: 0;
        height: 0;
        overflow: hidden;
        background: #3B5249;
        color: #fff;
        z-index: 1111;
        transition: height 0.3s cubic-bezier(.4,0,.2,1);
    }

        .mobile-menu.open {
            height: 100%;
            overflow-y: auto;
        }

    /* Custom menu layout */
    .mobile-menu-list {
        list-style: none;
        padding: 4rem 1rem;
        margin: 0;
    }

    .mobile-menu-item {
        padding: 10px 12px;
        border-radius: 5px;
    }

        .mobile-menu-item > a,
        .mobile-menu-item > .nav-link {
            display: flex;
            align-items: center;
            gap: 4px;
            color: #fff;
            font-size: 14px;
            font-weight: 600;
            text-decoration: none;
            font-family: 'Quicksand', Arial, sans-serif;
        }

        .mobile-menu-item i,
        .mobile-menu-item span.bi {
            font-size: 1.3rem;
            margin-right: 0.5rem;
        }


        .mobile-menu-item:active {
            background: #23312c;
        }

    /* Expandable grid items (white button style) */
    .mobile-menu-grid-expandable {
        display: flex;
        flex-direction: column;
    }

    .mobile-menu-grid-expand-btn {
        justify-content: flex-start;
        position: relative;
        cursor: pointer;
    }

    .mobile-menu-grid-chevron {
        position: absolute;
        right: 10px;
        font-size: 0.8rem;
        transition: transform 0.25s ease;
        margin: 0 !important;
    }

    .mobile-menu-grid-expandable.expanded .mobile-menu-grid-chevron {
        transform: rotate(180deg);
    }

    .mobile-menu-grid-submenu {
        list-style: none;
        padding: 0;
        margin: 0;
        display: none;
        background-color: #f0f0f0;
        border-radius: 0 0 5px 5px;
        margin-top: -5px;
        overflow: hidden;
    }

    .mobile-menu-grid-expandable.expanded .mobile-menu-grid-submenu {
        display: block;
    }

    .mobile-menu-grid-expandable.expanded .mobile-menu-grid-expand-btn {
        border-radius: 5px 5px 0 0;
    }

        .mobile-menu-grid-submenu li {
            padding: 0;
        }

        .mobile-menu-grid-submenu a {
            display: block;
            padding: 10px 12px 10px 36px;
            color: #222;
            text-decoration: none;
            font-size: 13px;
            font-weight: 500;
            font-family: 'Quicksand', Arial, sans-serif;
            transition: background 0.18s;
        }

            .mobile-menu-grid-submenu a:hover,
            .mobile-menu-grid-submenu a:active {
                background: #e0e0e0;
            }

    .mobile-menu-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem 1rem;
        margin: 4rem 0 2rem 0;
    }

    .mobile-menu-grid-btn {
        display: flex;
        align-items: center;
        gap: 4px;
        background: #fff;
        color: #222;
        border-radius: 5px;
        padding: 10px 12px;
        font-size: 14px;
        font-family: 'Quicksand', Arial, sans-serif;
        font-weight: 600;
        box-shadow: 0 2px 8px rgba(0,0,0,0.04);
        border: none;
        text-decoration: none;
        transition: background 0.18s, color 0.18s, box-shadow 0.18s;
    }

        .mobile-menu-grid-btn i,
        .mobile-menu-grid-btn .bi {
            font-size: 1.3rem;
            color: #222;
            margin-right: 0.5rem;
        }

        .mobile-menu-grid-btn:focus,
        .mobile-menu-grid-btn.active {
            background: #DDE3DE;
            color: #000000;
        }

        .mobile-menu-grid-btn:hover {
            background: #DDE3DE;
            color: #000000;
        }

    /* --- Custom Animated Burger Button --- */
.burger-btn {
    background: none;
    border: none;
    padding: 0;
    border-radius: 8px;
    margin: 0;
    cursor: pointer;
    background-color: #3d5247;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
}

    .burger-icon-custom {
        display: inline-block;
        width: 32px;
        height: 32px;
        position: relative;
        transition: transform 0.3s cubic-bezier(.4,0,.2,1);
    }

    .burger-line {
        display: block;
        position: absolute;
        left: 4px;
        right: 4px;
        height: 0.14rem;
        background: #fff;
        border-radius: 2px;
        transition: all 0.33s cubic-bezier(.4,0,.2,1);
    }

        .burger-line:nth-child(1) {
            top: 8px;
        }

        .burger-line:nth-child(2) {
            top: 15px;
        }

        .burger-line:nth-child(3) {
            top: 22px;
        }

    /* Animation to X */
    .burger-icon-custom.open .burger-line:nth-child(1) {
        top: 14px;
        transform: rotate(45deg);
    }

    .burger-icon-custom.open .burger-line:nth-child(2) {
        opacity: 0;
        transform: scaleX(0.2);
    }

    .burger-icon-custom.open .burger-line:nth-child(3) {
        top: 14px;
        transform: rotate(-45deg);
    }

    @media (min-width: 641px) {
        .mobile-topbar, .mobile-menu, .mobile-menu-overlay, .mobile-topbar-container,
        .mobile-menu-list, .mobile-menu-item, .mobile-menu-grid, .mobile-menu-grid-btn {
            display: none !important;
        }
    }

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.notification-btn {
    border: none;
    color: inherit;
    background-color: #3d5247;
    font-size: 1.30rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    border-radius: 8px;
    height: 38px;
    text-decoration: none;
}


    .notification-btn:hover {
        opacity: 0.8;
    }

    .notification-btn:link,
    .notification-btn:visited,
    .notification-btn:active,
    .notification-btn:focus {
        color: inherit;
        text-decoration: none;
        outline: none;
    }

/* Mobile Menu Button - TopBar */
.mobile-menu-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    background: #fff;
    color: #222;
    border-radius: 8px;
    padding: 12px 12px;
    font-size: 12px;
    font-family: 'Quicksand', Arial, sans-serif;
    font-weight: 600;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.4);
    border: none;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}

    .mobile-menu-btn i,
    .mobile-menu-btn .bi {
        font-size: 1.3rem;
        color: #222;
    }

    .mobile-menu-btn:hover,
    .mobile-menu-btn:focus,
    .mobile-menu-btn.active {
        background: #DDE3DE;
        color: #000;
        box-shadow: none;
        text-decoration: none;
    }

/* Mobile language accordion */
.mobile-lang-btn-active {
    background: #DDE3DE !important;
    color: #000 !important;
}

    .mobile-lang-btn-active i,
    .mobile-lang-btn-active .bi {
        color: #000 !important;
    }

.mobile-lang-accordion {
    margin-top: 0.75rem;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
}

.mobile-lang-list {
    border-top: 1px solid #eee;
    max-height: 220px;
    overflow-y: auto;
}

.mobile-lang-search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-bottom: 1px solid #eee;
    background: #fff;
    position: sticky;
    top: 0;
}

    .mobile-lang-search-wrap .bi {
        color: #999;
        font-size: 0.85rem;
        flex-shrink: 0;
    }

.mobile-lang-search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 13px;
    font-family: 'Quicksand', Arial, sans-serif;
    outline: none;
    color: #222;
}

.mobile-lang-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    padding: 11px 16px;
    font-size: 13px;
    font-family: 'Quicksand', Arial, sans-serif;
    font-weight: 600;
    color: #222;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s;
}

    .mobile-lang-item:last-child {
        border-bottom: none;
    }

    .mobile-lang-item:hover {
        background: #f5f5f5;
    }

    .mobile-lang-item.active {
        background: #DDE3DE;
        color: #000;
    }

.mobile-lang-native {
    font-size: 11px;
    font-weight: 400;
    color: #aaa;
    margin-left: 6px;
    flex-shrink: 0;
}

.mobile-lang-loading {
    padding: 12px 16px;
    font-size: 13px;
    color: #888;
}

.mobile-menu-btn-logout {
    background: #fff;
    color: #FF6D6D;
}

    .mobile-menu-btn-logout i,
    .mobile-menu-btn-logout .bi {
        color: #FF6D6D;
    }

    .mobile-menu-btn-logout:hover {
        background: #ffecec;
    }

/* TASK DONE & ROUTINE BTN */

@media (min-width: 641px) {
    .side-modal-header-right {
        display: flex;
        align-items: center;
        gap: 15px !important;
    }

    }

.side-modal-header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mark-done-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid #bbb;
    background: #fff;
    color: #111;
    border-radius: 5px;
    padding: 2px 10px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
}

    .mark-done-btn.Done,
    .mark-done-btn.active {
        border: 1.5px solid #2FA711;
        background: #D9FFCF;
        color: #000;
    }

    .mark-done-btn i {
        font-size: 1rem;
    }

.task-performed-info {
    font-size: 12px;
    color: #000000;
    display: flex;
    gap: 6px;
    font-family: 'Quicksand';
}

.routine-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid #bbb;
    background: #fff;
    color: #111;
    border-radius: 5px;
    padding: 2px 10px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
}

.make-routine-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #3B5249;
    color: #fff;
    border-radius: 5px;
    padding: 2px 10px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
}

    .make-routine-btn i {
        font-size: 1rem;
    }

.make-routine-btn.active {
      border-color: #E71313;
    background: transparent;
    color: #E71313;
    border: 1px solid;
    font-weight: 500;
}

@media (max-width: 641px) {
    .make-routine-btn  {
         font-size: 12px!important;
    }

    .setup-shift-repeat-row {
        flex-direction: column!important;
        gap: 20px !important;
        align-items: start !important;
    }

      .setup-shift-repeat-row {
        display: flex;
        align-items: center;
        gap: 16px;
        margin: 20px 0;
    }
  }
.routine-btn i {
    font-size: 1rem;
}



/* ============================
   TASK ROUTINE BOX
   ============================ */
.task-routine-box {
    border: 2px solid #3B5249;
    border-radius: 10px;
    background: #f7faf9;
    overflow: visible;
    width: 100%;
    padding: 20px;
    margin-bottom: 10px;
}

.repeat-title-collapsible {
    cursor: pointer;
    user-select: none;
    justify-content: space-between;
}

.repeat-collapse-arrow {
    margin-left: auto;
    font-size: 14px;
}

.task-routine-box-header {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #3B5249;
    color: #fff;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    font-family: 'Quicksand', Arial, sans-serif;
    border-radius: 8px 8px 0 0;
}

/* Repeat type tab toggle (Daily / Weekly) */
.repeat-type-tabs {
    display: flex;
    gap: 4px;
    background: #e8eeec;
    border-radius: 8px;
    width: 100%;
    padding: 4px;
    max-width: 100%;
}

.repeat-type-tab {
    padding: 5px 14px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    width: 100%;
    font-family: 'Quicksand', Arial, sans-serif;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

    .repeat-type-tab:hover {
        background: #d4ddd9;
        color: #333;
    }

    .repeat-type-tab.active {
        background: #3B5249;
        color: #fff;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    }

.task-routine-box-header i {
    font-size: 15px;
}


/* Title row layout when Remove routine button is on the left */
.setup-shift-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
}

.setup-shift-title-action {
    flex-shrink: 0;
}

.setup-shift-title-row .setup-shift-section-title-repeat {
    flex: 1;
    text-align: right;
    word-break: break-word;
}

.task-routine-box-annualwheel {
    border-top: 1px solid #c8dcd5;
    padding: 10px 0 0 0;
}

.task-annualwheel-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #3B5249;
    font-weight: 600;
    user-select: none;
    font-family: 'Quicksand', Arial, sans-serif;
}

.task-annualwheel-label {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ============================
   CREATE ROUTINE TASK MODAL
   ============================ */
.routine-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: routineFadeIn 0.2s ease-out;
    padding: 20px;
}

@keyframes routineFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.routine-modal-container {
    background: #fff;
    width: 100%;
    max-width: 800px;
    max-height: 85vh;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    animation: routineScaleIn 0.25s ease-out;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

@keyframes routineScaleIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.routine-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e0e0e0;
}

.routine-modal-title {
    font-size: 20px;
    font-weight: 700;
    font-family: 'Quicksand', sans-serif;
    color: #333;
}

.routine-modal-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
}

.routine-modal-close-btn:hover {
    background: #f5f5f5;
    color: #333;
}

.routine-modal-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
}

.routine-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.routine-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 16px;
    font-family: 'Quicksand', sans-serif;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.routine-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.routine-card.in-calendar {
    border-color: #19b97c;
    background: #f0fdf7;
}

.routine-add-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    cursor: pointer;
    border: 2px dashed #d0d0d0;
    background: #fafafa;
}

.routine-add-card:hover {
    border-color: #19b97c;
    background: #f0fdf7;
}

.routine-add-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #666;
}

.routine-add-icon {
    width: 40px;
    height: 40px;
    background: #19b97c;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.routine-add-card-content span:last-child {
    font-size: 14px;
    font-weight: 600;
}

.routine-form-card {
    border: 2px solid #19b97c;
}

.routine-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.routine-form-title {
    font-size: 14px;
    font-weight: 700;
    color: #333;
}

.routine-form-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.routine-form-close:hover {
    color: #333;
}

.routine-form-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.routine-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Quicksand', sans-serif;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.routine-input:focus {
    outline: none;
    border-color: #19b97c;
    box-shadow: 0 0 0 3px rgba(25, 185, 124, 0.1);
}

.routine-input::placeholder {
    color: #999;
}

.routine-save-btn {
    padding: 10px 16px;
    background: #19b97c;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Quicksand', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.2s;
}

.routine-save-btn:hover {
    background: #15a36d;
}

.routine-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.routine-card-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.routine-card-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.routine-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #333;
}

.routine-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.routine-card-count {
    background: #e8e8e8;
    color: #666;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

.routine-card-toggle {
    background: #f5f5f5;
    border: none;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.routine-card-toggle:hover {
    background: #e8e8e8;
}

.routine-card-toggle.active {
    background: #19b97c;
    color: #fff;
}

.routine-card-toggle.active:hover {
    background: #15a36d;
}

.routine-card-tasks {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.routine-card-task {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    background: #f8f8f8;
    border-radius: 6px;
    transition: all 0.2s;
}

.routine-card-task:hover {
    background: #f0f0f0;
}

.routine-card-task.highlighted {
    background: #e8f5e9;
    box-shadow: 0 0 0 2px rgba(25, 185, 124, 0.2);
}

.routine-card-task-name {
    font-size: 13px;
    color: #333;
    flex: 1;
}

.routine-card-task-delete {
    background: none;
    border: none;
    color: #bbb;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    opacity: 0;
    transition: all 0.2s;
}

.routine-card-task:hover .routine-card-task-delete {
    opacity: 1;
}

.routine-card-task-delete:hover {
    color: #d32f2f;
}

.routine-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: #999;
}

.routine-empty-state i {
    font-size: 56px;
    opacity: 0.4;
    margin-bottom: 16px;
}

.routine-empty-state span:first-of-type {
    font-size: 16px;
    font-weight: 600;
    font-family: 'Quicksand', sans-serif;
    margin-bottom: 8px;
}

.routine-empty-hint {
    font-size: 14px;
    opacity: 0.7;
}

.routine-modal-footer {
    padding: 16px 24px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

@media (max-width: 640px) {
    .routine-modal-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .routine-modal-container {
        max-width: 100%;
        max-height: 90vh;
        border-radius: 16px 16px 0 0;
        animation: routineSlideUp 0.3s ease-out;
    }

    @keyframes routineSlideUp {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }

    .routine-cards-grid {
        grid-template-columns: 1fr;
    }

    .routine-modal-header {
        padding: 16px;
    }

    .routine-modal-content {
        padding: 16px;
    }

    .routine-modal-footer {
        padding: 16px;
        padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    }

    .repeat-type-tab {
        padding: 5px 10px!important;
        font-size: 10px!important;

}

.task-routine-box {
padding: 10px!important;
}
}


.side-modal-trash-btn {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 15px;
}

.side-modal-header-left {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 15px;
}

/*GROUP CARD ADD USER*/

.add-user-name {
    text-align: center;
    font-size: 12px;
    white-space: nowrap;
    max-width: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #333;
    font-weight: 800;
}

.add-user-box {
    display: flex;
    align-items: center;
    flex-direction: column;
}


/* ADD NEW TODO */


.add-new-todo-btn {
    display: flex;
    align-items: center;
    border: none;
    background: transparent;
    color: #b9b9b9;
    cursor: pointer;
    transition: border 0.2s, color 0.2s;
    flex-shrink: 0;
    width: 100%;
    margin-top: auto;
}

    .add-new-todo-btn:hover {
        color: #000;
        width: 100%;
    }

.add-new-todo-icon {
    margin-right: 4px;
    font-size: 16px;
}

.add-new-todo-text {
    font-weight: 600;
    font-size: 12px;
    font-family: quicksand;
}


/* MOBILE & DESKTOP ONLY */

/* Hide on desktop */
.mobile-only {
    display: flex;
}

.desktop-only {
    display: none;
}

.auto-setup-desktop-only {
    display: flex;
}

@media (min-width: 641px) {
    .mobile-only {
        display: none !important;
    }

    .desktop-only {
        display: flex !important;
    }

}

@media (max-width: 900px) {
    .auto-setup-desktop-only {
        display: none!important;
    }
}


/* SHOW USERS/DRAGGABLE USERS */

.plan-page-users-list {
    display: flex;
    align-items: center;
    gap: 30px;
    overflow: auto;
    width: 100%;
    padding: 15px 15px 10px 15px;
    font-family: quicksand;
    padding-right: 3.5rem;
}


.plan-page-users-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.plan-page-users-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background: #31443c;
}

.plan-page-users-avatar-placeholder {
    background: #31443c;
}

.plan-page-users-name {
    margin-top: 4px;
    font-size: 14px;
    font-weight: 600;
    color: #31443c;
    text-align: center;
}

.plan-page-users-count {
    font-size: 12px;
    color: #888;
    font-weight: 500;
    text-align: center;
}

.plan-page-users-showall {
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    color: #31443c;
    cursor: pointer;
}

.plan-page-users-showall-icon {
    margin-left: 6px;
    font-size: 18px;
}

.plan-page-users-item {
    transition: background 0.2s;
}

    .plan-page-users-item:active {
        background: white;
    }

.plan-page-users-item {
    cursor: grab;
    user-select: none;
}

.draggable-mirror {
    z-index: 9999 !important;
}


/*SET UP SHIFT TODO BTN*/

.setup-shift-todo-btn {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    color: #888;
    display: flex;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    border: none;
    transition: box-shadow 0.2s, color 0.2s;
    flex-shrink: 0;
    position: sticky;
    background: transparent;
    bottom: 0;
    width: 100%;
    min-height: 40px;
    gap: 10px;
    align-items: center;
}

    .setup-shift-todo-btn i {
        font-size: 20px;
    }

    .setup-shift-todo-btn:hover {
        color: #000;
    }

/*    FOCUS SHOW CONTROLS STYLE*/

@media (max-width: 641px) {
    .focus-order-dropdown {
        justify-content: start !important;
    }

    .focus-dropdown-trigger {
        width: 100% !important;
    }
    }


.ungrouped-title {
    font-weight: 800;
    font-size: 14px;
    color: rgb(68, 68, 68);
    font-family: quicksand;
    margin: 5px 10px 0 10px;
}

/* Example: scale up typography */

@media (min-width: 2000px) {


    /* FONT VW */
    .vw-xs {
        font-size: 0.4vw !important;
    }

    .vw-s {
        font-size: 0.6vw !important;
    }

    .vw-m {
        font-size: 0.8vw !important;
    }

    .vw-l {
        font-size: 1vw !important;
    }

    .vw-xl {
        font-size: 1.4vw !important;
    }

    /* WIDTH VW */

    .w-vw-xs {
        width: 0.4vw !important;
    }

    .w-vw-s {
        width: 0.6vw !important;
    }

    .w-vw-m {
        width: 0.8vw !important;
    }

    .w-vw-l {
        width: 1vw !important;
    }

    .w-vw-xl {
        width: 1.4vw !important;
    }

    /* HEIGHT VW */

    .h-vw-xs {
        height: 0.4vw !important;
    }

    .h-vw-s {
        height: 0.6vw !important;
    }

    .h-vw-m {
        height: 0.8vw !important;
    }

    .h-vw-l {
        height: 1vw !important;
    }

    .h-vw-xl {
        height: 1.4vw !important;
    }

}


/* Business Dropdown Styles */
.user-checkin-name.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    background: none;
    border: none;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

    .user-checkin-name.dropdown-toggle::after {
        display: none; /* Remove default Bootstrap caret */
    }

    .user-checkin-name.dropdown-toggle i {
        font-size: 12px;
        color: #666;
    }

.dropdown-business-multiselect .dropdown-menu {
    min-width: 280px;
    max-height: 400px;
    max-width: fit-content;
    overflow: hidden;
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid #e5e7eb;
}

.business-select-search {
    padding: 14px;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
}

.business-search-input {
    font-size: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 14px;
    width: 100%;
    font-family: 'Quicksand', sans-serif;
}

    .business-search-input:focus {
        outline: none;
        border-color: #3B5249;
        box-shadow: 0 0 0 3px rgba(59, 82, 73, 0.1);
    }

.business-select-list {
    max-height: 280px;
    overflow-y: auto;
    padding: 8px;
}

.business-select-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.15s;
    border-radius: 8px;
    margin-bottom: 4px;
}

    .business-select-item:hover {
        background: #f5f5f5;
    }

    .business-select-item.selected {
        background: #f0f7f4;
        border: 1px solid #3B5249;
    }

.business-icon {
    font-size: 18px;
    color: #666;
}

.business-select-name {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

.business-selected-check {
    color: #2fa711;
    font-size: 18px;
}

.business-select-item.no-results {
    color: #888;
    font-style: italic;
    pointer-events: none;
    justify-content: center;
}

.mobovi-onboarding-logo-wrapper img {
    width: 150px;
}


/*FOCUS LIST STYLES*/

.focus-edit-input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    background: #fff;
    color: #222;
    transition: border-color 0.2s;
}

    .focus-edit-input:focus {
        border-color: #3182ce;
        outline: none;
    }

/* ── Long text in a Text column ─────────────────────────────────────
   A note column routinely holds several sentences, and a single-line input showed
   only the first. The ::after mirror gives the textarea auto-height with no JS
   resize handler — same trick as .desc-line-grow in TaskComponent.

   These rules live in app.css (not scoped css) because the fields are built with
   RenderTreeBuilder and therefore never get the CSS-isolation attribute. */

.focus-edit-grow {
    display: grid;
    flex: 1;
    min-width: 0;
    /* A pasted essay must not push the modal's Save button off screen. The textarea
       itself keeps its full natural height and scrolls inside this wrapper. */
    max-height: 40vh;
    overflow-y: auto;
}

    /* Trailing space so text ending in a newline still reserves that last line. */
    .focus-edit-grow::after {
        content: attr(data-replicated-value) " ";
        white-space: pre-wrap;
        word-break: break-word;
        visibility: hidden;
    }

    /* Mirror and field share one grid cell, so every box- and text-metric must match
       or the mirror sizes the row to the wrong height. */
    .focus-edit-grow > .focus-edit-input--grow,
    .focus-edit-grow::after {
        grid-area: 1 / 1 / 2 / 2;
        padding: 0.5rem 0.75rem;
        border: 1px solid transparent;
        border-radius: 6px;
        font-family: inherit;
        font-size: 1rem;
        font-weight: 600;
        line-height: 1.4;
        margin: 0;
    }

    /* Same specificity as the shared rule above, declared after it, so the field gets
       a visible border back while the mirror stays invisible. */
    .focus-edit-grow > .focus-edit-input--grow {
        width: 100%;
        border-color: #cbd5e1;
        resize: none;
        overflow: hidden;
    }

        .focus-edit-grow > .focus-edit-input--grow:focus {
            border-color: #3182ce;
            outline: none;
        }

/* ── Checklist column ───────────────────────────────────────────────
   These rules live in app.css (not scoped css) because the checklist
   inputs are built with RenderTreeBuilder and therefore never get the
   CSS-isolation attribute. */

.focus-checklist {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    min-width: 0;
    margin-top: 4px;
}

.focus-checklist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

    .focus-checklist-item:hover {
        border-color: #3B5249;
    }

.focus-checklist-item--checked {
    border-color: #3B5249;
    background: #eef3f0;
}

.focus-checklist-checkbox {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    margin: 0;
    accent-color: #3B5249;
    cursor: pointer;
}

.focus-checklist-text {
    font-size: 1rem;
    font-weight: 600;
    color: #222;
    overflow-wrap: anywhere;
}

.focus-checklist-item--checked .focus-checklist-text {
    color: #23312C;
}

.focus-checklist-empty {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

/* Table + card display */
.focus-checklist-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    white-space: normal;
}

.focus-checklist-chips {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.focus-checklist-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
}

.focus-checklist-chip--on {
    background: #eef3f0;
    color: #23312C;
    border: 1px solid #c3d2ca;
}

.focus-checklist-chip--off {
    background: transparent;
    color: #999;
    border: 1px dashed #d4d4d4;
}

.focus-checklist-chip i {
    font-size: 11px;
}

.focus-date-value {
    font-size: 13px;
    color: #000;
}

.focus-created-by {
    font-size: 12px;
    color: #666;
}

.focus-mobile-card-created-by {
    padding: 0 10px;
    font-size: 12px;
    font-weight: 600;
}

/* ── Focus widget modal: card/table view (global so it works outside FocusComponent) ── */
.focus-wm-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
}

.focus-view-toggle {
    display: flex;
    align-items: center;
}

.focus-view-toggle-btns {
    display: flex;
    gap: 8px;
    border-radius: 8px;
    padding: 4px;
    border: 1px solid #ccc;
    align-items: center;
}

.focus-view-btn {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 6px 14px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

    .focus-view-btn i {
        font-size: 18px;
        line-height: 1;
    }

    .focus-view-btn:hover {
        color: #374151;
        background: #e5e7eb;
    }

    .focus-view-btn.active {
        background: #3B5249;
        color: #fff;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }

.focus-view-btn-text {
    display: inline-block;
}

.focus-mobile-add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #C96422;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 0.6rem;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: 0.2s;
    align-self: flex-start;
    width: auto;
    white-space: nowrap;
}

    .focus-mobile-add-btn:hover {
        background: #B75616;
    }

.focus-mobile-cards-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.focus-mobile-date-header {
    font-size: 14px;
    font-weight: 800;
    color: #000000;
    margin-bottom: 10px;
    margin-top: 5px;
    border-bottom: 1px solid #ccc;
}

.focus-mobile-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 15px;
    margin-bottom: 1rem;
}

.focus-mobile-card {
    background: white;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.focus-mobile-card-three-column {
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content: space-between;
    align-items: stretch;
}

.focus-mobile-card-column {
    min-width: 0;
    gap: 5px;
    display: flex;
    padding: 10px 0 0 10px;
    max-width: fit-content;
    flex-direction: column;
}

.focus-mobile-card-row {
    display: flex;
    gap: 3px;
    font-size: 14px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.focus-mobile-card-label {
    font-weight: 400;
    color: #9ca3af;
    flex-shrink: 0;
    font-style: normal;
}

.focus-mobile-card-value {
    color: #000;
    font-weight: 800;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
}

.focus-mobile-card-creator {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: #f0f4f3;
    border-radius: 6px;
    margin-bottom: 6px;
    font-size: 13px;
}

    .focus-mobile-card-creator i {
        color: #3b5249;
        font-size: 14px;
    }

.focus-mobile-card-creator-name {
    color: grey;
}
/* ── End focus widget modal card/table styles ── */

/* Farm Tabs Styling - Global */
.farm-tabs {
    position: relative;
    display: flex;
    border-bottom: 2px solid #e0e0e0;
}

.farm-tabs::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    height: 3px;
    width: 25%;
    background: #3B5249;
    border-radius: 2px 2px 0 0;
    transition: left 0.3s cubic-bezier(.4,0,.2,1);
}

.farm-tabs:has(.farm-tab-btn:nth-child(1).farm-tab-active)::after {
    left: 0%;
}

.farm-tabs:has(.farm-tab-btn:nth-child(2).farm-tab-active)::after {
    left: 25%;
}

.farm-tabs:has(.farm-tab-btn:nth-child(3).farm-tab-active)::after {
    left: 50%;
}

.farm-tabs:has(.farm-tab-btn:nth-child(4).farm-tab-active)::after {
    left: 75%;
}

.farm-tab-btn {
    flex: 1 1 0;
    text-align: center;
    padding: 10px 16px;
    cursor: pointer;
    font-size: 14px;
    color: #888;
    background: none;
    border: none;
    outline: none;
    transition: color 0.2s;
    font-weight: 600;
    font-family: 'Quicksand', sans-serif;
}

.farm-tab-btn:hover {
    color: #555;
}

.farm-tab-btn.farm-tab-active {
    font-weight: 700;
    color: #1f2937;
}

/*SHIFT SWAP STYLES*/

.request-shift-btn {
   width: 100%;
    padding: 10px;
    background: #ffffff;
    color: #000000;
    border: 1px solid #ccc;
    border-radius: 8px;
      font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 16px;
    transition: all 0.2s;
}

    .request-shift-btn:hover {
        background: #f5f5f5;
    }

    .request-shift-btn-admin {
    width: 100%;
    padding: 10px;
    background: #ffffff;
    color: #000000;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 16px;
    transition: all 0.2s;
    }

     .request-shift-btn-admin:hover {
        background: #f5f5f5;
    }



.request-shift-info-text {
    font-weight: 500;
}

.request-shift-info-banner {
    display: flex;
    align-items: flex-start;
    border-radius: 8px;
    margin-bottom: 18px;
}

.request-shift-info-content {
    flex: 1;
}

.request-shift-info-row {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

.request-shift-workrole-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}

.request-shift-workrole-name {
    font-weight: 600;
    margin-right: 12px;
    color: #000;
}

.request-shift-time {
    font-size: 1rem;
    color: #333;
    background: #fff;
    font-weight: 600;
    border-radius: 4px;
    padding: 2px 8px;
    margin-left: 4px;
}

/* Add these styles */

.shift-swap-pending-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
    border: 1px solid #ffc107;
    border-radius: 8px;
    margin-bottom: 16px;
}

.shift-swap-pending-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .shift-swap-pending-content i {
        font-size: 1.2rem;
        color: #856404;
    }

.shift-swap-pending-text {
    font-size: 0.9rem;
    color: #856404;
    font-weight: 500;
}

.shift-swap-cancel-btn {
    padding: 6px 12px;
    font-size: 0.85rem;
    background: transparent;
    border: 1px solid #856404;
    border-radius: 4px;
    color: #856404;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

    .shift-swap-cancel-btn:hover:not(:disabled) {
        background: #856404;
        color: white;
    }

    .shift-swap-cancel-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

.shift-swap-info-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #dbeafe;
    border: 1px solid #93c5fd;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 0.875rem;
    color: #1e40af;
}

    .shift-swap-info-banner i {
        font-size: 1rem;
        flex-shrink: 0;
    }

.request-shift-info-banner {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
}

.request-shift-info-content {
    display: flex;
    flex-direction: column;
}

.request-shift-info-row {
    display: flex;
    align-items: center;
}

.request-shift-workrole-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.request-shift-workrole-name {
    font-weight: 600;
}

.request-shift-time {
    color: #666;
    font-size: 0.9rem;
}

.request-shift-info-text {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
}

.floating-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    border-radius: 8px;
    z-index: 9999;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

    .floating-message.success {
        background: #d4edda;
        color: #155724;
        border: 1px solid #c3e6cb;
    }

    .floating-message.error {
        background: #f8d7da;
        color: #721c24;
        border: 1px solid #f5c6cb;
    }

.group-assigned-user.old-user {
    text-decoration: line-through;
    color: #888;
    margin-right: 6px;
}

.group-assigned-user.new-user {
    color: #222;
    font-weight: 500;
}

/* ===== INFO MAIN PAGE: nulstil topbar-offset da plan-top-bar er skjult ===== */
.info-plan-panel {
    --plan-topbar-height: 0px;
}

/* ===== INFO MAIN PAGE: lås højde-kæden så plan-panelet ikke vokser ud ===== */
.info-plan-panel {
    min-height: 0 !important;
    max-height: 100% !important;
    overflow: hidden !important;
}

.info-plan-panel .plan-content-relative {
    flex: 1 !important;
    min-height: 0 !important;
    max-height: 100% !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
}

@media (min-width: 641px) {
    .info-plan-panel .plan-content-relative {
        min-height: 0 !important;
        max-height: 100% !important;
    }
}

.info-plan-panel .plan-content-relative > *:not(.plan-top-bar) {
    flex: 1 !important;
    min-height: 0 !important;
    overflow: auto !important;
}

/* ===== INFO MAIN PAGE: skjul irrelevante plan-top-bar knapper ===== */
.info-plan-panel .plan-top-bar-right {
    display: none !important;
}

.info-plan-panel .plan-top-bar-buttons .open-schedules-btn-desktop,
.info-plan-panel .plan-top-bar-buttons .aarshjul-btn,
.info-plan-panel .plan-top-bar-buttons .leave-btn,
.info-plan-panel .plan-top-bar-buttons .gem-som-skabelon-btn,
.info-plan-panel .plan-top-bar-buttons .ryd-vagter-btn,
.info-plan-panel .plan-top-bar-buttons .plan-top-bar-dropdown,
.info-plan-panel .plan-top-bar-buttons .expand-groups-btn,
.info-plan-panel .plan-top-bar-buttons .har-fri-toggle-btn {
    display: none !important;
}

/* ===== SHARED ACCOUNT (sa-* and pin-*) — global so SharedAccountPanel works everywhere ===== */

.info-widget-body--sa {
    padding: 0;
    overflow-y: auto;
}

.sa-panel-wrap {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 16px;
    container-type: inline-size;
    container-name: sa-panel;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
}

/* Shifts */
.sa-shifts { margin: 0; display: flex; flex-direction: column; gap: 1.5rem; width: 100%; }
.sa-shift-section { display: flex; flex-direction: column; gap: 0.2rem; }
.sa-shift-title { display: flex; align-items: center; }
.sa-shift-indicator { width: 12px; height: 12px; border-radius: 50%; margin-right: 0.5rem; }
.sa-on-shift  { background-color: #4CAF50; }
.sa-off-shift { background-color: #9E9E9E; }
.sa-label { font-weight: 800; font-size: 1rem; font-family: 'Quicksand', sans-serif; }

/* Summary */
.sa-summary { display: flex; gap: 8px; padding-bottom: 10px; align-items: center; margin-left: auto; }
.sa-summary-item { display: inline-flex; align-items: center; gap: 6px; color: #222; opacity: 0.95; }
.sa-summary-icon { width: 20px; height: 20px; font-size: 20px; line-height: 20px; display: inline-block; vertical-align: middle; }
.sa-summary-count { font-size: 14px; font-weight: 600; min-width: 18px; text-align: left; }
.umbrella-icon-workreport { width: 20px; height: 20px; object-fit: contain; }

/* Cards grid */
.sa-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.sa-card {
    display: flex;
    background: #fff;
    align-items: center;
    border-radius: 10px;
    border: 1px solid #ccc;
    padding: 10px;
    min-height: 70px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    font-family: 'Quicksand', sans-serif;
}
.sa-card:hover  { transform: translateY(-1px); box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
.sa-card:active { transform: translateY(0);    box-shadow: 0 1px 2px rgba(0,0,0,0.1); }
.sa-card.started  { background: #e4ffd7; color: #000; }
.sa-card.vacation { background: #ffe2b6; color: #000; }
.sa-card.pause    { background: #FFF4C8; color: #000; }
.sa-card.sick     { background: #def7ed; color: #000; }

.sa-avatar {
    width: 40px; height: 40px; border-radius: 50%; background: #2d3c32;
    margin-right: 0.75rem; display: flex; align-items: center; justify-content: center;
    overflow: hidden; color: #fff; flex-shrink: 0;
}
.sa-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.sa-avatar-placeholder { font-size: 1.1rem; font-weight: 600; }

.sa-name { font-size: 16px; font-weight: 700; font-family: 'Quicksand', sans-serif; color: #2d3c32; }

.sa-status { color: #444; display: flex; font-family: 'Quicksand', sans-serif; align-items: center; font-weight: 600; font-size: 13px; gap: 6px; }
.sa-card.started  .sa-status { color: #2d6600; }
.sa-card.vacation .sa-status { color: #e96300; }
.sa-card.pause    .sa-status { color: #a89a00; }
.sa-card.sick     .sa-status { color: #00d18f; }
.sa-status i { font-size: 18px; }

/* Responsive grid columns — baseret på container-bredde */
@container sa-panel (min-width: 300px) {
    .sa-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .sa-name { font-size: 13px; }
    .sa-status { font-size: 11px; }
    .sa-card { padding: 8px; min-height: 56px; }
    .sa-avatar { width: 32px; height: 32px; }
    .sa-avatar-placeholder { font-size: 0.9rem; }
}
@container sa-panel (min-width: 480px) {
    .sa-cards-grid { grid-template-columns: repeat(3, 1fr); }
    .sa-name { font-size: 14px; }
    .sa-status { font-size: 12px; }
    .sa-card { padding: 10px; min-height: 64px; }
    .sa-avatar { width: 36px; height: 36px; }
}
@container sa-panel (min-width: 700px) {
    .sa-cards-grid { grid-template-columns: repeat(4, 1fr); }
    .sa-name { font-size: 15px; }
    .sa-status { font-size: 12px; }
    .sa-card { padding: 10px; min-height: 70px; }
    .sa-avatar { width: 40px; height: 40px; }
    .sa-status i { font-size: 18px; }
}
@container sa-panel (min-width: 900px) {
    .sa-cards-grid { grid-template-columns: repeat(5, 1fr); }
    .sa-status i { font-size: 20px; }
}
@container sa-panel (min-width: 1100px) {
    .sa-cards-grid { grid-template-columns: repeat(6, 1fr); }
    .sa-card { padding: 14px 18px; min-height: 80px; }
    .sa-status i { font-size: 22px; }
}


.ug-editor-heading {
    font-size: 1.3em;
    font-weight: 700;
    font-family: Quicksand, sans-serif;
    display: block;
    min-height: 1.4em;
}

/* ===== Violation Bootstrap Popover ===== */
.violation-bs-popover.popover {
    border-color: #FBB24B;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    max-width: 260px;
}

.violation-bs-popover .popover-body {
    padding: 8px 10px;
}

.violation-bs-popover .popover-arrow::before {
    border-bottom-color: #FBB24B;
}

/* ===== Cell Task Drag-Drop (drag-drop-taskitem.js) ===== */

.sortable-cell-tasks {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 6px;
    position: relative;
}

/* Time-slot overlay - fixed over the cell column during drag */
.cell-time-overlay {
    position: fixed;
    z-index: 9000;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
    box-shadow: 0 8px 32px rgba(0,0,0,0.13);
}

/* Mobile: bottom-sheet style */
.cell-time-overlay--mobile {
    border-radius: 16px 16px 12px 12px;
    box-shadow: 0 -4px 28px rgba(0,0,0,0.13);
}

/* Two-line guide text header */
.cell-time-overlay__header {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 8px 10px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    font-size: 10px;
    font-weight: 500;
    font-family: 'Quicksand', sans-serif;
    color: #000;
    text-align: center;
    line-height: 1.45;
    user-select: none;
    overflow: hidden;
}

.cell-time-overlay__header span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
}

.cell-time-overlay__header strong {
    font-weight: 700;
    color: #000;
}

/* Dim backdrop behind the time-slot overlay during drag */
.cell-time-overlay-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 8998;
    pointer-events: none;
    transition: background 0.2s ease;
}

.cell-time-overlay-backdrop--visible {
    background: rgba(0, 0, 0, 0.35);
}

.cell-time-overlay--visible {
    opacity: 1;
    pointer-events: none; /* clone follows cursor; slot detection is via clientY in JS */
}

.cell-time-slot {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Quicksand', sans-serif;
    color: #444;
    border-bottom: 1px solid #f0f0f0;
    white-space: nowrap;
    overflow: hidden;
}

.cell-time-slot:last-child {
    border-bottom: none;
}

.cell-time-slot--hover {
    background: rgba(59, 82, 73, 0.1);
    color: #2e5445;
}

.cell-time-slot__label {
    flex-shrink: 0;
}

.cell-time-slot__tasks {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow: hidden;
    flex: 1;
    min-width: 0;
}

.cell-time-slot__task-badge {
    display: inline-block;
    background: rgba(61, 82, 71, 0.1);
    color: #3d5247;
    border-radius: 3px;
    padding: 1px 5px;
    font-size: 10px;
    font-weight: 600;
    font-family: 'Quicksand', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.cell-time-slot--hover .cell-time-slot__task-badge {
    background: rgba(59, 82, 73, 0.2);
    color: #23312c;
}

/* Dim task items slightly while dragging so overlay is clearly separate */
.cell-tasks--dragging .task-item:not(.task-item-dragging) {
    opacity: 0.4;
}

/* ── Mobile scroll arrow inside the time-slot overlay ───────────────────── */
.cell-time-overlay__scroll-arrow {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.96) 60%);
    color: #888;
    font-size: 20px;
    pointer-events: none;
    border-top: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.cell-time-overlay__scroll-arrow i {
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.08));
}

/* ============================================================
   SHARED REQUEST FORM STYLES
   Used across request modal dialogs: sickness, vacation, etc.
   ============================================================ */

/* Form field wrapper */
.request-form-group {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

/* Field label */
.request-form-label {
    font-size: 12px;
    font-weight: 700;
    color: #555;
    letter-spacing: 0.4px;
}

/* Text / date / time / number / select inputs */
.request-form-input {
    width: 100%;
    padding: 11px 13px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-family: Quicksand;
    font-weight: 600;
    color: #222;
    background: #fafafa;
    box-sizing: border-box;
    transition: border-color 0.18s, box-shadow 0.18s;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

    .request-form-input:focus {
        border-color: #3B5249;
        box-shadow: 0 0 0 3px rgba(59, 82, 73, 0.10);
        background: #fff;
    }

    /* native select arrow */
    select.request-form-input {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23888' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 12px center;
        padding-right: 36px;
        cursor: pointer;
    }

/* Bootstrap dropdown replacing native <select> in request form dialogs */
.request-form-dropdown {
    width: 100%;
}

.request-form-dropdown-btn {
    width: 100%;
    padding: 8px 36px 8px 13px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: Quicksand;
    font-weight: 600;
    color: #222;
    background: #fafafa;
    text-align: left;
    transition: border-color 0.18s, box-shadow 0.18s;
}

.request-form-dropdown-btn:focus,
.request-form-dropdown-btn:active,
.request-form-dropdown-btn.show {
    border-color: #3B5249;
    box-shadow: 0 0 0 3px rgba(59, 82, 73, 0.10);
    background: #fff;
}

.request-form-dropdown .dropdown-menu {
    width: 100%;
    font-family: Quicksand;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    border: 1.5px solid #e0e0e0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}

.request-form-dropdown .dropdown-item {
    font-family: Quicksand;
    font-size: 15px;
    font-weight: 600;
    color: #222;
    padding: 10px 14px;
}

.request-form-dropdown .dropdown-item:hover,
.request-form-dropdown .dropdown-item:focus {
    background: #f0f4f2;
    color: #3B5249;
}

.request-form-dropdown .dropdown-item.active {
    background: #3B5249;
    color: #fff;
}

/* Checkbox toggle row */
.request-form-check-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-family: Quicksand;
    font-weight: 600;
    color: #222;
    cursor: pointer;
    user-select: none;
}

.request-form-check {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid #ccc;
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    transition: border-color 0.18s, background 0.18s;
}

    .request-form-check:checked {
        background: #3B5249;
        border-color: #3B5249;
    }

    .request-form-check:checked::after {
        content: '';
        position: absolute;
        top: 2px;
        left: 6px;
        width: 6px;
        height: 11px;
        border: 2px solid #fff;
        border-top: none;
        border-left: none;
        transform: rotate(45deg);
    }

/* Footer pinned at the bottom of modal-bottom-top-container (sibling of modal-bottom-top-content) */
.request-modal-footer {
    background: #fff;
    border-top: 1px solid #eee;
    padding: 14px 16px;
    padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

/* Primary action button (Anmod / Gem) */
.btn-request-primary {
    flex: 1;
    padding: 13px 10px;
    background: #3B5249;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-family: Quicksand;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.18s;
}

    .btn-request-primary:hover {
        background: #23312c;
    }

    .btn-request-primary:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

/* Secondary action button (Annuller) */
.btn-request-secondary {
    flex: 1;
    padding: 13px 10px;
    background: #f0f0f0;
    color: #444;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-family: Quicksand;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s;
}

    .btn-request-secondary:hover {
        background: #e0e0e0;
    }

/* Close button after success */
.btn-request-close {
    width: 100%;
    padding: 13px;
    background: #f0f0f0;
    color: #444;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-family: Quicksand;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s;
}

    .btn-request-close:hover {
        background: #e0e0e0;
    }

/* Loading state */
.request-modal-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 32px 0;
    font-size: 15px;
    font-weight: 600;
    color: #555;
    font-family: Quicksand;
}

/* Success state */
.request-modal-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px 16px;
    font-size: 17px;
    font-weight: 700;
    color: #2FA711;
    font-family: Quicksand;
}

    .request-modal-success i {
        font-size: 48px;
    }

/* Error banner */
.request-modal-error {
    background: #fff0f0;
    border: 1px solid #f5c6cb;
    color: #c0392b;
    border-radius: 8px;
    padding: 10px 13px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: Quicksand;
}

.request-time-form-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

/* ── Shift Swap Cards (shared across all swap widgets) ───────────── */
.swap-cards-list {
    display: flex;
    flex-direction: column;
}

.swap-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 15px;
    margin-bottom: 10px;
}

.swap-card--outgoing {
    background: #fafafa;
}

.swap-card--resolved {
    background: #fafafa;
    opacity: 0.82;
}

.swap-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.swap-card-header-left {
    flex: 1;
    min-width: 0;
}

.swap-card-title {
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Quicksand', sans-serif;
    color: #111827;
    line-height: 1.3;
}

.swap-card-subtitle {
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 600;
    font-family: 'Quicksand', sans-serif;
}

.swap-card-subtitle b {
    color: #111827;
    font-weight: 700;
}

.swap-card-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
}

.swap-card-meta {
    font-size: 0.76rem;
    color: #9ca3af;
    font-weight: 600;
    white-space: nowrap;
}

.swap-card-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.swap-card-users {
    display: flex;
    align-items: center;
    gap: 14px;
}

.swap-card-person {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.swap-card-person-name {
    font-size: 0.8rem;
    font-weight: 600;
    font-family: 'Quicksand', sans-serif;
    color: #374151;
    text-align: center;
}

.swap-card-swap-icon {
    font-size: 1rem;
    color: #9ca3af;
}

.swap-card-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-left: auto;
}

.swap-card-btn {
    padding: 9px 22px;
    font-size: 0.88rem;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}

.swap-card-btn--decline {
    background: #f3f4f6;
    color: #E71313;
}

.swap-card-btn--decline:hover:not(:disabled) {
    background: #fee2e2;
    color: #dc2626;
}

.swap-card-btn--accept {
    background: #f3f4f6;
    color: #2FA711;
}

.swap-card-btn--accept:hover:not(:disabled) {
    background: #dcfce7;
    color: #166534;
}

.swap-card-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 540px) {
    .swap-card-header {
        flex-direction: column;
        gap: 4px;
    }

    .swap-card-header-right {
        align-items: center;
        flex-direction: row;
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 6px;
    }

    .swap-card-body {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .swap-card-actions {
        width: 100%;
        justify-content: flex-end;
        margin-left: 0;
    }

    .swap-card-btn {
        flex: 1;
    }
}

/* Resten af vagtbytte-kortets design. Lå i EmployeeMainPage.razor.css, som er SCOPED — så da
   kortene flyttede ud i SwapRequestList-komponenten, holdt reglerne op med at ramme, og
   badges/knapper faldt tilbage til browserens standardskrift. De hører til her sammen med resten
   af familien, så kortet ser ens ud uanset hvilken side der viser det. */
.requests-section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #9ca3af;
    margin: 8px 0 4px 2px;
}

.info-no-items-text {
    font-size: 14px;
    color: #6b7280;
    text-align: center;
    padding-top: 16px;
    font-weight: 600;
}

.swap-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 99px;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.swap-type--take {
    background: #dbeafe;
    color: #1d4ed8;
}

.swap-type--give {
    background: #fef3c7;
    color: #b45309;
}

/* Holder kortets højde mens et svar er undervejs, så listen ikke hopper. */
.swap-spinner-center {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 38px;
}

.swap-resolved-badge {
    font-size: 0.82rem;
    font-weight: 700;
    font-family: 'Quicksand', sans-serif;
    border-radius: 4px;
    padding: 3px 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.swap-resolved-approved {
    color: #166534;
    background: #dcfce7;
}

.swap-resolved-pending {
    color: #92400e;
    background: #fef3c7;
}

.swap-resolved-declined {
    color: #991b1b;
    background: #fee2e2;
}

/* Annulleret er ikke afvist — neutral, ikke rød. */
.swap-resolved-cancelled {
    color: #4b5563;
    background: #f3f4f6;
}

.swap-dismiss-btn {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 1rem;
    padding: 2px 6px;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
    line-height: 1;
    margin-left: auto;
}

.swap-dismiss-btn:hover {
    color: #374151;
    background: #f3f4f6;
}

/* ========== INFO MODAL FORM (global) ========== */
.info-modal-content {
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 0;
}

.info-modal-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid #f0f0f0;
}

.info-modal-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-modal-section-label {
    font-size: 11px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: 'Quicksand', sans-serif;
}

.info-modal-textarea {
    width: 100%;
    padding: 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
    outline: none;
    resize: none;
    line-height: 1.55;
    color: #1f2937;
    background: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.info-modal-textarea:focus {
    border-color: #3B5249;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(59, 82, 73, 0.08);
}

.info-modal-char-count {
    font-size: 12px;
    color: #c0c0c0;
    text-align: right;
    font-family: 'Quicksand', sans-serif;
}

.info-modal-date-options {
    display: flex;
    gap: 8px;
}

.info-modal-date-btn {
    flex: 1;
    padding: 12px 8px 10px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    background: #fafafa;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Quicksand', sans-serif;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    line-height: 1.2;
}

.info-modal-date-btn i {
    font-size: 17px;
}

.info-modal-date-btn:hover {
    border-color: #3B5249;
    color: #3B5249;
    background: #f0f4f2;
}

.info-modal-date-btn.active {
    background: #3B5249;
    color: #fff;
    border-color: #3B5249;
    box-shadow: 0 2px 8px rgba(59, 82, 73, 0.22);
}

.info-modal-custom-date-panel {
    display: flex;
    gap: 12px;
    background: #f8faf9;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px;
}

.info-modal-custom-date-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.info-modal-custom-date-label {
    font-size: 11px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: 'Quicksand', sans-serif;
}

.info-modal-date-input {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Quicksand', sans-serif;
    color: #374151;
    background: #fff;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.info-modal-date-input:focus {
    border-color: #3B5249;
}

.info-modal-preview {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #f8faf9;
    border: 1px solid rgba(59, 82, 73, 0.15);
    border-radius: 10px;
    padding: 14px;
}

.info-modal-preview-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.info-modal-preview-avatar-initials {
    background-color: #3B5249;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Quicksand', sans-serif;
}

.info-modal-preview-content {
    flex: 1;
    min-width: 0;
}

.info-modal-preview-name {
    font-size: 13px;
    font-weight: 700;
    color: #1f2937;
    font-family: 'Quicksand', sans-serif;
}

.info-modal-preview-text {
    font-size: 14px;
    color: #374151;
    margin-top: 3px;
    font-family: 'Quicksand', sans-serif;
    word-break: break-word;
    line-height: 1.45;
}

.info-modal-preview-badge {
    margin-top: 7px;
    font-size: 11px;
    font-weight: 600;
    color: #3B5249;
    background: rgba(59, 82, 73, 0.1);
    display: inline-block;
    padding: 3px 9px;
    border-radius: 4px;
    font-family: 'Quicksand', sans-serif;
}


/* Forhåndsvisningen i tilføj-/redigér-registrering. Billedet bygges med RenderTreeBuilder
   og får derfor ALDRIG CSS-isolerings-attributten — de scoped regler i FocusComponent.razor.css
   / TaskFocusComponent.razor.css rammer det ikke. Denne globale regel er den eneste der binder
   størrelsen, så et råt kamerabillede (tusindvis af pixels) ikke sprænger modalen og skal
   panoreres. !important + width/height (ikke kun max-*) værner mod en cachet gammel app.css. */
.focus-image-upload-area,
.focus-image-preview-container {
    max-width: 100%;
}

.focus-image-preview {
    width: 100px !important;
    height: 100px !important;
    max-width: 100% !important;
    margin: 10px 0;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
}

.focus-table-thumbnail {
       width: 50px;
    max-height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

/* Miniaturen i mobilkortets medie-kolonne. Uden en størrelse her tegnes fotoet i sin egen
   opløsning — et kamerabillede er tusindvis af pixels bredt og skubbede kortet ud over
   skærmkanten. max-width er værnet hvis kolonnen selv bliver smallere end miniaturen. */
.focus-card-thumbnail {
    display: block;
    width: 64px;
    height: 64px;
    max-width: 100%;
    border-radius: 8px;
    object-fit: cover;
}

/* Medie-kolonnen kan indeholde både foto og video. Afspilningsikonet ligger oven på
   posteren, så en video kan kendes fra et billede uden at fylde en ekstra kolonne. */
.focus-media-thumb-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    min-height: 24px;
}

.focus-media-play-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 20px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    pointer-events: none;
}

.focus-image-preview-container .focus-media-play-badge {
    font-size: 32px;
    cursor: pointer;
    pointer-events: auto;
}

.focus-image-upload-placeholder {
    padding: 0.5rem 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    gap: 6px;
    background: #fff;
    display: flex;
    color: #222;
}

.focus-image-change-btn {
    padding: 0.5rem 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    gap: 6px;
    background: #fff;
    display: flex;
    color: #222;

}

.focus-image-remove-btn {
    padding: 0.5rem 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    gap: 6px;
    background: #fff;
    display: flex;
    color: #FF6D6D;
}

.focus-image-actions {
     display: flex;
    align-items: center;
    gap: 8px;
}


/* ── InfoWidget shared styles (used across InfoWidget + CustomGridDashboard) ── */

.info-edit-mode {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0;
}

.info-edit-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    border-radius: 8px;
    padding: 8px 12px;
    border: 2px dashed #d1d5db;
}

.info-edit-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.info-edit-input {
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    background: #f9fafb;
    resize: none;
    line-height: 1.5;
    box-sizing: border-box;
}

.info-edit-input:focus {
    outline: none;
    box-shadow: none;
}

.info-edit-input::placeholder {
    color: #9ca3af;
}

.info-delete-inline-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border-radius: 6px;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.info-delete-inline-btn i { font-size: 16px; }

.info-delete-inline-btn:hover,
.info-delete-inline-btn:focus {
    background: rgba(239, 68, 68, 0.06);
    outline: none;
}

.info-edit-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.info-cancel-btn {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Quicksand', sans-serif;
    color: #374151;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    width: 100%;
}

.info-cancel-btn:hover { background: #f3f4f6; border-color: #9ca3af; }

.info-save-btn {
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Quicksand', sans-serif;
    color: #fff;
    background: #2FA711;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
}

.info-save-btn:hover { background: #26860E; }

.info-date-options {
    display: flex;
    gap: 8px;
    margin: 10px 0;
    background: #f3f4f6;
    border-radius: 8px;
    padding: 4px;
}

.info-date-options .info-tab-btn,
.info-date-options .info-date-btn {
    flex: 1;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Quicksand', sans-serif;
    color: #6b7280;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
    text-align: center;
}

.info-date-options .info-tab-btn:hover,
.info-date-options .info-date-btn:hover {
    color: #374151;
    background: rgba(0,0,0,0.03);
}

.info-date-options .info-tab-btn.active,
.info-date-options .info-date-btn.active {
    background: #3B5249;
    color: #fff;
}

.info-custom-date-panel {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.info-custom-date-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-custom-date-label {
    font-size: 12px;
    font-weight: 600;
    font-family: 'Quicksand', sans-serif;
    color: #6b7280;
}

.info-date-input {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    font-family: 'Quicksand', sans-serif;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #3B5249;
    color: #fff;
    box-sizing: border-box;
}

.info-date-input:focus { outline: none; border-color: #3B5249; }

.info-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 80px;
    padding: 12px 14px;
}

.info-add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Quicksand', sans-serif;
    color: #fff;
    background: #3B5249;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 8px;
}

.info-add-btn:hover { background: #23312C; }

.iw-edit-pencil-btn {
    flex-shrink: 0;
    align-self: flex-start;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
    margin-top: 1px;
}

.iw-edit-pencil-btn:hover { background: #f3f4f6; color: #374151; }

/* ── Widget picker empty state (shared: CustomGridDashboard + EmployeeMainPage) ── */
.widget-vis-alle-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 10px 14px;
    border: none;
    border-top: 1px solid #f3f4f6;
    background: none;
    font-size: 12px;
    font-weight: 700;
    font-family: 'Quicksand', sans-serif;
    color: #3B5249;
    cursor: pointer;
    text-align: left;
}

.widget-vis-alle-btn:hover {
    background: #f9fafb;
}

.info-widget-add-info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: #3B5249;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    transition: background 0.2s;
    flex-shrink: 0;
}

.info-widget-add-info-btn:hover {
    background: #23312C;
}

.widget-picker-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px 16px;
    text-align: center;
}

.widget-picker-icon {
    font-size: 28px;
    color: #d1d5db;
}

.widget-picker-text {
    font-size: 13px;
    color: #9ca3af;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    margin: 0;
}

.widget-picker-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid #3B5249;
    border-radius: 8px;
    background: none;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Quicksand', sans-serif;
    color: #3B5249;
    cursor: pointer;
    transition: background 0.15s;
}

.widget-picker-btn i {
    font-size: 20px;
}

.widget-picker-btn:hover { background: #f0f4f2; }

/* ── Focus / Guide widget internals (used inside child components) ── */

.info-focus-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    border-bottom: 1px solid #f3f4f6;
    flex-shrink: 0;
}

.info-focus-list-name {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 6px;
}

.info-focus-change-btn {
    display: flex;
    align-items: center;
    gap: 2px;
    background: none;
    border: none;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Quicksand', sans-serif;
    color: #6b7280;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    transition: all 0.15s;
}

.info-focus-change-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

.info-focus-table-wrapper {
    overflow: auto;
    min-height: 0;
}

.info-focus-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Quicksand', sans-serif;
    font-size: 13px;
}

.info-focus-th {
    position: sticky;
    top: 0;
    background: #3B5249;
    color: #fff;
    font-weight: 700;
    padding: 8px 12px;
    text-align: left;
    white-space: nowrap;
    z-index: 1;
}

.info-focus-date-th {
    width: 60px;
    min-width: 60px;
}

.info-focus-tr:nth-child(even) {
    background: #f9fafb;
}

.info-focus-tr:hover {
    background: rgba(37, 99, 235, 0.06);
}

.info-focus-td {
    padding: 7px 12px;
    border-bottom: 1px solid #f3f4f6;
    color: #1a1a1a;
    vertical-align: middle;
}

.info-focus-date-td {
    color: #6b7280;
    font-weight: 600;
    white-space: nowrap;
}

/* Delt af alle fokusliste-widgets med en "Opret"-knap i footeren (CustomGridDashboard,
   EmployeeMainPage, FocusListWidget) — global fremfor dupliceret i hver komponents scoped CSS. */
.focus-widget-vis-alle-footer {
    display: flex;
    justify-content: center;
    padding: 6px 0 2px;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.focus-widget-vis-alle-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Quicksand', sans-serif;
    color: #3B5249;
    background: transparent;
    border: 1.5px solid #C6D9D3;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.focus-widget-vis-alle-btn:hover {
    background: #f0f5f4;
    border-color: #3B5249;
}

.info-guide-steps-scroll {
    display: flex;
    flex-direction: row;
    gap: 10px;
    overflow-x: auto;
    padding: 12px 16px;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
    flex-shrink: 0;
    height: 140px;
}

.info-guide-step-card {
    flex-shrink: 0;
    width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    border-radius: 8px;
    padding: 8px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    transition: all 0.15s;
}

.info-guide-step-card:hover {
    border-color: #5a9e78;
    background: rgba(90, 158, 120, 0.06);
}

.info-guide-step-thumb {
    width: 100%;
    height: 72px;
    object-fit: cover;
    border-radius: 5px;
    background: #e5e7eb;
}

.info-guide-step-num {
    width: 100%;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border-radius: 5px;
    font-size: 22px;
    font-weight: 700;
    color: #9ca3af;
}

.info-guide-step-text {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    text-align: center;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    width: 100%;
}

/* ── Task drag-drop: wrapper so assign-all button overlaps the "+" button ── */
.shift-add-area {
    position: relative;
    width: 100%;
}

/* Overlaps exactly on top of the "+" button — hidden until drag starts */
.assign-all-shifts-btn {
    position: absolute !important;
    inset: 0 !important;
    display: none !important;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    border: 1.5px dashed #3d5247;
    color: #3d5247;
    background: rgba(61, 82, 71, 0.06);
    font-size: 16px;
    cursor: pointer;
    z-index: 5;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.assign-all-shifts-btn.task-drag-active {
    display: flex !important;
}

.assign-all-shifts-btn.task-drag-hover {
    display: flex !important;
    border-style: solid;
    background: rgba(61, 82, 71, 0.22);
}

.tasks-accordion-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* ===== Focus Creation Wizard ===== */
.focus-wizard-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1050;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

@media (min-width: 768px) {
    .focus-wizard-overlay {
        align-items: center;
    }
}

.focus-wizard-container {
    background: #ffffff;
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-height: 94vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: 'Quicksand', sans-serif;
}

@media (min-width: 768px) {
    .focus-wizard-container {
        border-radius: 16px;
        max-width: 640px;
        width: 640px;
        max-height: 90vh;
    }
}

@media (min-width: 768px) {
    .focus-wizard-modal {
        max-width: 720px;
        max-height: 88vh;
    }
}

.focus-wizard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 10px;
    border-bottom: 1px solid #f0ede9;
    flex-shrink: 0;
}

.focus-wizard-nav-btn {
    background: none;
    border: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.1rem;
    color: #444;
    transition: background 0.15s;
}

    .focus-wizard-nav-btn:hover {
        background: #f4f1ee;
    }

.focus-wizard-nav-btn--invisible {
    visibility: hidden;
    pointer-events: none;
}

.focus-wizard-header-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
}

.focus-wizard-body {
    flex: 1;
    overflow-y: auto;
    padding: 22px 18px 10px;
}

.focus-wizard-heading {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 6px;
}

.focus-wizard-subheading {
    font-size: 0.85rem;
    color: #999;
    font-weight: 600;
    margin: 0 0 20px;
}

.focus-wizard-name-input {
    font-size: 1rem;
    border-radius: 10px;
    border: 1.5px solid #e0dbd5;
    padding: 12px 14px;
    width: 100%;
    margin-bottom: 6px;
    background: #fafafa;
    transition: border-color 0.15s;
}

    .focus-wizard-name-input:focus {
        border-color: #3c6e47;
        box-shadow: 0 0 0 3px rgba(60, 110, 71, 0.1);
        outline: none;
    }

    .focus-wizard-name-input--error {
        border-color: #e05c5c !important;
        background: #fff8f8;
        margin-bottom: 6px;
    }

    .focus-wizard-name-input--error:focus {
        border-color: #e05c5c !important;
        box-shadow: 0 0 0 3px rgba(224, 92, 92, 0.15) !important;
    }

.focus-wizard-title-error {
    font-size: 0.8rem;
    color: #e05c5c;
    margin-bottom: 16px;
    padding-left: 2px;
}

.focus-wizard-section-label {
    font-size: 0.68rem;
    font-weight: 700;
    display: flex;
    letter-spacing: 0.09em;
    color: #000;
    text-transform: uppercase;
    margin: 10px 0;
    align-items: center;
    gap: 4px;
}

.focus-wizard-section-label i {
    font-size: 18px;
}

/* Note under spørgeskema-skabelonerne: et skema oprettes som kladde og skal sendes ud bagefter,
   hvilket ikke er til at gætte af selve kortet. */
.focus-wizard-survey-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 10px 0 2px;
    padding: 10px 12px;
    border-radius: 8px;
    background-color: #eef4f8;
    color: #2b3c49;
    font-size: 0.82rem;
    line-height: 1.35;
}

.focus-wizard-survey-note i {
    flex-shrink: 0;
    margin-top: 1px;
    font-size: 15px;
}


.focus-wizard-template-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 22px;
}

.focus-wizard-template-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #ffffff;
    border: 1.5px solid #ede8e3;
    border-radius: 12px;
    padding: 13px 12px;
    cursor: pointer;
    transition: all 0.15s;
}

    .focus-wizard-template-card:hover {
        background: #f8f5f2;
        border-color: #cfc8bf;
    }

.focus-wizard-template-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #ffffff;
    flex-shrink: 0;
}

.focus-wizard-template-info {
    flex: 1;
    min-width: 0;
}

.focus-wizard-template-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1a1a1a;
    margin-bottom: 2px;
}

.focus-wizard-template-desc {
    font-size: 0.78rem;
    color: #aaa;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.focus-wizard-template-chevron {
    color: #ccc;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.focus-wizard-template-card--selected {
    border-color: #4a7c59;
    background: #f0f7f3;
}

    .focus-wizard-template-card--selected:hover {
        background: #e8f2ec;
        border-color: #4a7c59;
    }

.focus-wizard-template-check {
    color: #4a7c59;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* ── KPI WorkRole selection step ─────────────────────────────────────────── */

.focus-wizard-roles-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.focus-wizard-role-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1.5px solid #e0dbd3;
    background: #faf9f7;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

    .focus-wizard-role-item:hover {
        background: #f5f2ee;
        border-color: #c8c0b5;
    }

    .focus-wizard-role-item--selected {
        border-color: #1a6b8a;
        background: #eaf4f8;
    }

        .focus-wizard-role-item--selected:hover {
            background: #daeef5;
            border-color: #1a6b8a;
        }

.focus-wizard-role-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
}

.focus-wizard-role-name {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 500;
    color: #222;
}

.focus-wizard-role-check {
    color: #1a6b8a;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.focus-wizard-roles-loading {
    color: #888;
    font-size: 0.9rem;
    padding: 16px 0;
    text-align: center;
}

.focus-wizard-kpi-groups-panel {
    margin-top: 8px;
    border: 1.5px solid #1a6b8a33;
    border-radius: 10px;
    background: #f0f7fa;
    padding: 12px 14px 8px;
}

.focus-wizard-kpi-groups-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.focus-wizard-kpi-groups-header > .bi {
    color: #1a6b8a;
    font-size: 1.15rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.focus-wizard-kpi-groups-header-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.focus-wizard-kpi-groups-header-text span {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a3a4a;
}

.focus-wizard-kpi-groups-header-text small {
    font-size: 0.78rem;
    color: #666;
}

.focus-wizard-groups-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.focus-wizard-groups-action-btn {
    flex: 1;
    padding: 6px 8px;
    border-radius: 7px;
    border: 1.5px solid #1a6b8a;
    background: #1a6b8a;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.focus-wizard-groups-action-btn--outline {
    background: transparent;
    color: #1a6b8a;
}

.focus-wizard-period-panel {
    margin-bottom: 18px;
}

.focus-wizard-period-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.focus-wizard-period-label .bi {
    color: #1a6b8a;
    font-size: 0.9rem;
}

/* ── Computed column display ─────────────────────────────────────────────── */

/* ── Period segmented control (wizard) ───────────────────────────────────── */

.focus-period-segment {
    display: flex;
    background: #e6e2dc;
    border-radius: 10px;
    padding: 3px;
    gap: 0;
}

.focus-period-segment-btn {
    flex: 1;
    padding: 9px 0;
    border-radius: 8px;
    border: none;
    background: transparent;
    font-size: 0.875rem;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
    letter-spacing: 0.01em;
}

    .focus-period-segment-btn:hover {
        color: #333;
        background: rgba(255, 255, 255, 0.45);
    }

    .focus-period-segment-btn--active {
        background: #fff;
        color: #1a6b8a;
        font-weight: 700;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.13);
    }

    .focus-period-segment-btn--active:hover {
        background: #fff;
    }

/* kept for backward compat but no longer used in add-entry form */
.focus-kpi-period-buttons {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}

.focus-kpi-period-date {
    width: 100%;
    font-size: 0.875rem;
}

.focus-load-more-cell {
    text-align: center;
    padding: 10px 0 6px;
    border: none;
}

.focus-load-more-row {
    display: flex;
    justify-content: center;
    padding: 12px 0 4px;
}

.focus-load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 22px;
    border-radius: 20px;
    border: 1.5px solid #d8d2cb;
    background: #faf9f7;
    font-size: 0.875rem;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

    .focus-load-more-btn:hover {
        background: #f0ece7;
        border-color: #b8b0a6;
    }

.focus-load-more-spinner {
    width: 22px;
    height: 22px;
    border: 2.5px solid #e0dbd4;
    border-top-color: #1a6b8a;
    border-radius: 50%;
    animation: focus-spin 0.7s linear infinite;
    margin: 4px auto;
}

@keyframes focus-spin {
    to { transform: rotate(360deg); }
}

.focus-edit-section-divider {
    margin: 4px 0 12px;
    border: none;
    border-top: 1.5px dashed #ddd9d3;
}

.focus-kpi-period-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 7px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    background: #e6f2f7;
    color: #1a6b8a;
    vertical-align: middle;
    line-height: 1.6;
}

.focus-kpi-period-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.focus-kpi-period-nav-btn {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 7px;
    border: 1.5px solid #d8d2cb;
    background: #faf9f7;
    color: #444;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

    .focus-kpi-period-nav-btn:hover {
        background: #f0ece7;
        border-color: #b8b0a6;
    }

.focus-kpi-period-nav-label {
    flex: 1;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    background: #f4f1ee;
    border-radius: 7px;
    padding: 6px 8px;
}

.focus-kpi-period-btn {
    flex: 1;
    padding: 7px 0;
    border-radius: 8px;
    border: 1.5px solid #d8d2cb;
    background: #faf9f7;
    font-size: 0.875rem;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

    .focus-kpi-period-btn:hover {
        background: #f0ece7;
        border-color: #b8b0a6;
    }

    .focus-kpi-period-btn--active {
        background: #1a6b8a;
        border-color: #1a6b8a;
        color: #fff;
    }

        .focus-kpi-period-btn--active:hover {
            background: #155a75;
            border-color: #155a75;
        }

.focus-edit-input--computed {
    display: block;
    width: 100%;
    padding: 8px 10px;
    background: #f4f1ee;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    color: #555;
    font-style: italic;
    min-height: 36px;
    line-height: 20px;
    cursor: default;
    -moz-appearance: textfield;
}

.focus-computed-value {
    color: #1a6b8a;
    font-weight: 600;
    font-size: 0.9rem;
}

.focus-wizard-folder-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
    padding: 4px 0 12px;
}

.focus-wizard-folder-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
    white-space: nowrap;
}

.focus-wizard-folder-select {
    border: 1.5px solid #d8d1c8;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 0.85rem;
    background: #f4f1ee;
    cursor: pointer;
    color: #444;
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
}

    .focus-wizard-folder-select:focus {
        outline: none;
        border-color: #3c6e47;
    }


.focus-wizard-next-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Step 2: Fields */
.focus-wizard-fields-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 12px;
}

.focus-wizard-field-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border: 1.5px solid #ede8e3;
    border-radius: 12px;
    padding: 11px 13px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

    .focus-wizard-field-item:hover {
        background: #f8f5f2;
        border-color: #cfc8bf;
    }

.focus-field-required-badge {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

.focus-field-required--yes {
    background: #eaf4ee;
    color: #3c6e47;
}

.focus-field-required--no {
    background: #f4f1ee;
    color: #aaa;
}

.focus-field-type-icon {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #ffffff;
    flex-shrink: 0;
}

.focus-field-info {
    flex: 1;
    min-width: 0;
}

.focus-field-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #1a1a1a;
}

.focus-field-type-label {
    font-size: 0.76rem;
    color: #aaa;
}


.focus-field-order-btns {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}

.focus-field-order-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 1px 5px;
    font-size: 0.85rem;
    line-height: 1;
    transition: color 0.15s;
}

    .focus-field-order-btn:hover:not(:disabled) {
        color: #3B5249;
    }

    .focus-field-order-btn:disabled {
        opacity: 0.25;
        cursor: default;
    }

.focus-field-delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #ccc;
    padding: 4px 6px;
    font-size: 1rem;
    line-height: 1;
    transition: color 0.15s;
    flex-shrink: 0;
}

    .focus-field-delete-btn:hover {
        color: #e74c3c;
    }

.focus-wizard-field-error {
    padding: 2px 8px 4px;
}

.focus-wizard-add-field-btn {
    width: 100%;
    border: 2px dashed #d8d1c8;
    background: none;
    border-radius: 12px;
    padding: 14px;
    color: #aaa;
    font-size: 0.9rem;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 2px;
}

    .focus-wizard-add-field-btn:hover {
        border-color: #a09890;
        color: #666;
        background: #f8f5f2;
    }

.focus-wizard-visibility-row {
    margin-top: 16px;
    display: flex;
    justify-content: center;
}

.focus-wizard-visibility-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    font-size: 0.82rem;
    font-family: 'Quicksand', sans-serif;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 6px;
    transition: color 0.15s;
}

    .focus-wizard-visibility-btn:hover {
        color: #444;
    }

/* ===== Add Field Modal (mobile only) ===== */
.add-field-overlay {
    position: fixed;
    inset: 0;
    background: transparent;
    z-index: 4010;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.add-field-modal {
    background: #ffffff;
    border-radius: 10px 10px 0 0;
    width: 100%;
    max-height: 72vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: 'Quicksand', sans-serif;
    animation: slide-up 0.3s ease-out;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.28);
}

.add-field-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 20px 18px 12px;
    border-bottom: 1px solid #f0ede9;
    flex-shrink: 0;
}

.add-field-modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 3px;
    color: #1a1a1a;
}

.add-field-modal-subtitle {
    font-size: 0.82rem;
    color: #aaa;
    margin: 0;
}

.add-field-close-btn {
    background: #f0ede9;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    color: #666;
    flex-shrink: 0;
    transition: background 0.15s;
}

    .add-field-close-btn:hover {
        background: #e0dbd5;
    }

.add-field-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 18px;
}

.add-field-section-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    color: #b0a99f;
    text-transform: uppercase;
    margin-bottom: 8px;
    margin-top: 18px;
}

    .add-field-section-label:first-child {
        margin-top: 0;
    }

.add-field-name-input {
    border-radius: 10px;
    border: 1.5px solid #e0dbd5;
    padding: 12px 14px;
    width: 100%;
    font-size: 0.95rem;
    font-family: 'Quicksand', sans-serif;
    background: #fafafa;
    transition: border-color 0.15s;
}

    .add-field-name-input:focus {
        border-color: #3c6e47;
        box-shadow: 0 0 0 3px rgba(60, 110, 71, 0.1);
        outline: none;
    }

.add-field-name-input--error {
    border-color: #e05c5c !important;
    background: #fff8f8;
    margin-bottom: 6px;
}

    .add-field-name-input--error:focus {
        border-color: #e05c5c !important;
        box-shadow: 0 0 0 3px rgba(224, 92, 92, 0.15) !important;
    }

.add-field-type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

.add-field-type-tile {
    border: 1.5px solid #ede8e3;
    border-radius: 12px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    gap: 10px;
    background: #ffffff;
}

    .add-field-type-tile:hover {
        background: #f8f5f2;
        border-color: #cfc8bf;
    }

    .add-field-type-tile.selected {
        border-color: #3c6e47;
        background: #f0f7f2;
    }

.add-field-tile-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    color: #ffffff;
    flex-shrink: 0;
}

.add-field-tile-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1a1a1a;
}

.add-field-tile-desc {
    font-size: 0.74rem;
    color: #aaa;
    line-height: 1.3;
}

.add-field-required-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0 4px;
    border-top: 1px solid #f0ede9;
    margin-top: 14px;
}

.add-field-required-info {
    flex: 1;
}

.add-field-required-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 2px;
}

.add-field-required-desc {
    font-size: 0.76rem;
    color: #aaa;
    line-height: 1.3;
}

.add-field-modal-footer {
    display: flex;
    gap: 10px;
    padding: 14px 18px;
    border-top: 1px solid #f0ede9;
    flex-shrink: 0;
}

    .add-field-modal-footer .btn-gray-modal,
    .add-field-modal-footer .btn-default-modal {
        flex: 1;
    }
.focus-wizard-inline {
    display: contents;
}

.focus-wizard-inline-inner {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* Inline dropdown options (wizard add/edit field) */
.inline-dropdown-options {
    margin-top: 4px;
    margin-bottom: 8px;
}

.dropdown-options-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    border-radius: 5px;
    font-weight: 600;
    font-family: 'Quicksand', Arial, sans-serif;
    padding: 8px 12px;
    border-color: #3B5249;
    color: #3B5249;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

    .dropdown-options-btn:hover {
        background-color: #3B5249;
        color: #fff;
        border-color: #3B5249;
    }

.dropdown-options-content {
    padding: 16px 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dropdown-options-add-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.dropdown-option-input {
    flex: 1;
    padding: 10px 14px;
    font-size: 14px;
    font-family: 'Quicksand', Arial, sans-serif;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
}

    .dropdown-option-input:focus {
        outline: none;
        border-color: #3B5249;
        box-shadow: 0 0 0 2px rgba(59, 82, 73, 0.1);
    }

.dropdown-option-add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 6px;
    min-width: 48px;
    max-width: 48px;
}

    .dropdown-option-add-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.dropdown-options-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
}

.dropdown-option-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

    .dropdown-option-item:hover {
        background: #f8f9fa;
        border-color: #dee2e6;
    }

    .dropdown-option-item.editing {
        background: #f0f7ff;
        border-color: #3b5249;
    }

.dropdown-option-text {
    flex: 1;
    font-weight: 500;
    color: #333;
}

.dropdown-option-usage-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: #e9ecef;
    color: #495057;
    font-size: 12px;
    font-weight: 600;
    border-radius: 11px;
    margin-right: 4px;
}
.dropdown-option-remove-btn {
    background: none;
    border: none;
    color: #999;
    padding: 4px 8px;
    cursor: pointer;
    transition: color 0.2s ease;
    font-size: 16px;
}

    .dropdown-option-remove-btn:hover {
        color: #e53935;
    }

.dropdown-options-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #999;
    gap: 12px;
}

    .dropdown-options-empty i {
        font-size: 48px;
        opacity: 0.4;
    }

    .dropdown-options-empty span {
        font-size: 14px;
        font-weight: 500;
        font-family: 'Quicksand', Arial, sans-serif;
    }

@media (max-width: 640px) {
    .dropdown-options-content {
        padding: 16px;
    }

    .dropdown-options-list {
        max-height: 250px;
    }
}

/* Inline dropdown options (wizard add/edit field) */
.inline-dropdown-options {
    margin-top: 4px;
    margin-bottom: 8px;
}

.dropdown-options-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    border-radius: 5px;
    font-weight: 600;
    font-family: 'Quicksand', Arial, sans-serif;
    padding: 8px 12px;
    border-color: #3B5249;
    color: #3B5249;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

    .dropdown-options-btn:hover {
        background-color: #3B5249;
        color: #fff;
        border-color: #3B5249;
    }

.dropdown-options-content {
    padding: 16px 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dropdown-options-add-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.dropdown-option-input {
    flex: 1;
    padding: 10px 14px;
    font-size: 14px;
    font-family: 'Quicksand', Arial, sans-serif;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
}

    .dropdown-option-input:focus {
        outline: none;
        border-color: #3B5249;
        box-shadow: 0 0 0 2px rgba(59, 82, 73, 0.1);
    }

.dropdown-option-add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 6px;
    min-width: 48px;
    max-width: 48px;
}

    .dropdown-option-add-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.dropdown-options-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
}

.dropdown-option-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

    .dropdown-option-item:hover {
        background: #f8f9fa;
        border-color: #dee2e6;
    }

    .dropdown-option-item.editing {
        background: #f0f7ff;
        border-color: #3b5249;
    }

.dropdown-option-text {
    flex: 1;
    font-weight: 500;
    color: #333;
}

.dropdown-option-usage-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: #e9ecef;
    color: #495057;
    font-size: 12px;
    font-weight: 600;
    border-radius: 11px;
    margin-right: 4px;
}
.dropdown-option-remove-btn {
    background: none;
    border: none;
    color: #999;
    padding: 4px 8px;
    cursor: pointer;
    transition: color 0.2s ease;
    font-size: 16px;
}

    .dropdown-option-remove-btn:hover {
        color: #e53935;
    }

.dropdown-options-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #999;
    gap: 12px;
}

    .dropdown-options-empty i {
        font-size: 48px;
        opacity: 0.4;
    }

    .dropdown-options-empty span {
        font-size: 14px;
        font-weight: 500;
        font-family: 'Quicksand', Arial, sans-serif;
    }

@media (max-width: 640px) {
    .dropdown-options-content {
        padding: 16px;
    }

    .dropdown-options-list {
        max-height: 250px;
    }
}

.dropdown-option-edit-btn,
.dropdown-option-remove-btn {
    padding: 4px 8px;
    font-size: 14px;
    color: #6c757d;
    transition: color 0.15s ease;
}

    .dropdown-option-edit-btn:hover {
        color: #3b5249;
    }

    .dropdown-option-remove-btn:hover {
        color: #dc3545;
    }

/* Edit mode styles */
.dropdown-option-edit-input {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.dropdown-option-edit-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dropdown-option-save-btn,
.dropdown-option-cancel-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.workflow-group-clock-btn {
    border: none !important;
    background: transparent !important;
    outline: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    box-shadow: none !important;
}

.workflow-group-clock-btn:hover {
    background: #f0fdf4 !important;
}

.workflow-group-clock-btn[data-has-time="true"] {
    color: #19B97C !important;
}

/* ===== VISIBILITY SETTINGS MODAL ===== */
.visibility-settings-container {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
    overflow-y: auto;
}

.visibility-modal-title-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.visibility-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.visibility-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.visibility-section-icon {
    font-size: 20px;
    color: #000;
}

.visibility-section-icon-edit {
    color: #000;
}

.visibility-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    font-family: 'Quicksand', sans-serif;
}

.visibility-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.visibility-option {
    display: flex;
    align-items: flex-start;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
}

.visibility-option-selected {
    border-color: #3B5249;
    background: #edf2ef;
}

.visibility-option-edit.visibility-option-selected {
    border-color: #3B5249;
    background: #edf2ef;
}

.visibility-option input[type="radio"] {
    margin-top: 1px;
    accent-color: #3B5249;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.visibility-option-edit input[type="radio"] {
    accent-color: #3B5249;
}

.visibility-option-content {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 12px;
    flex: 1;
}

.visibility-option-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.visibility-option-label {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    font-family: 'Quicksand', sans-serif;
}

.visibility-divider {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 5px 0;
}

/* ===== VISIBILITY USER DROPDOWN ===== */
.visibility-dropdown-wrapper {
    position: relative;
}

.visibility-user-dropdown {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 100;
    max-height: 400px;
    display: flex;
    flex-direction: column;
}

.visibility-dropdown-search {
    padding: 12px;
    border-bottom: 1px solid #e8e8e8;
}

.visibility-dropdown-search input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Quicksand', sans-serif;
}

.visibility-dropdown-search input:focus {
    outline: none;
    border-color: #3B5249;
}

.visibility-dropdown-list {
    flex: 1;
    overflow-y: auto;
    max-height: 250px;
}

.visibility-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid #f0f0f0;
}

.visibility-dropdown-item:hover {
    background: #f8f8f8;
}

.visibility-dropdown-item.selected {
    background: #edf2ef;
}

.visibility-dropdown-item.select-all {
    background: #f5f5f5;
    font-weight: 600;
}

.visibility-dropdown-item.select-all.selected {
    background: #dde8e3;
}

.visibility-checkbox {
    width: 22px;
    height: 22px;
    border: 2px solid #ccc;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.visibility-checkbox.checked {
    background: #3B5249;
    border-color: #3B5249;
    color: #fff;
}

.visibility-checkbox i {
    font-size: 14px;
    font-weight: bold;
}

.visibility-select-all-text {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    font-family: 'Quicksand', sans-serif;
}

.visibility-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.visibility-dropdown-item .visibility-user-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Quicksand', sans-serif;
}

.visibility-user-role-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}

.role-badge-admin {
    background: #fff3e0;
    color: #e65100;
}

.role-badge-manager {
    background: #e8eaf6;
    color: #283593;
}

.role-badge-user {
    background: #f5f5f5;
    color: #757575;
}

.visibility-dropdown-footer {
    padding: 12px;
    border-top: 1px solid #e8e8e8;
    background: #fafafa;
}

.visibility-confirm-btn {
    width: 100%;
    padding: 12px 20px;
    background: #3B5249;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-family: 'Quicksand', sans-serif;
}

.visibility-confirm-btn:hover {
    background: #23312C;
}

.visibility-option-with-summary {
    cursor: pointer;
    flex-direction: row;
    align-items: stretch;
}

.visibility-option-with-summary .visibility-option-content {
    width: 100%;
    flex-direction: row;
    align-items: center;
}

.visibility-summary-content {
    position: relative;
}

.visibility-inline-avatars {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
}

.visibility-edit-icon-inline {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 12px;
    color: #666;
    opacity: 0;
    transition: opacity 0.2s;
}

.visibility-option-with-summary:hover .visibility-edit-icon-inline {
    opacity: 1;
}

.visibility-dropdown-wrapper.has-selection {
    position: relative;
    margin-top: -8px;
}

.visibility-user-dropdown.dropdown-from-summary {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.visibility-dropdown-wrapper.has-selection .visibility-dropdown-trigger {
    display: none;
}

.btn-set-visibility {
    margin-right: 15px;
    background-color: #3B5249;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
}

@media (max-width: 640px) {
    .visibility-settings-container {
        padding: 15px;
    }

    .visibility-option {
        padding: 12px;
    }

    .visibility-option-content {
        gap: 10px;
        margin-left: 10px;
    }
}


/* ── RequestVacationModal — other-vacation dots & cards (global, not scoped) ── */
.rvm-vacation-dots {
    display: flex;
    align-items: center;
    gap: 2px;
    justify-content: center;
    margin-top: 2px;
}

.rvm-vacation-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #e96300;
    flex-shrink: 0;
    display: inline-block;
}

/* Dagen rummer kun ferie der endnu ikke er godkendt — hul prik, så den ikke læses som bekræftet.
   Er bare én af dagens ferier godkendt, står prikken fyldt som før. */
.rvm-vacation-dot--pending {
    background: transparent;
    border: 1.5px solid #e96300;
}

.rvm-vacation-dots-more {
font-size: 10px;
    font-weight: 600;
    color: #999;
    line-height: 1;
}

/* Days registered in this modal session — brand green, so it reads as "mine, just now"
   rather than as one of the orange other-people dots above. */
.rvm-created-dot {
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #3B5249;
    margin: 2px auto 0 auto;
}

.rvm-leave-cards-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
    padding: 0 4px;
}

.rvm-leave-cards-label {
    font-size: 12px;
    font-weight: 600;
    color: #000;
}

.rvm-other-leave-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 6px 10px;
    border-radius: 8px;
    background: #fff;
    box-shadow: rgba(0, 0, 0, 0.08) 0px 2px 6px;
    font-family: 'Quicksand', sans-serif;
}

.rvm-other-leave-card .rvm-card-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e96300;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 11px;
    margin-top: 1px;
}

.rvm-card-type {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    font-size: 16px;
}

.rvm-card-type-img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}


.rvm-other-leave-card .rvm-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.rvm-other-leave-card .rvm-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.rvm-other-leave-card .rvm-card-user {
    font-size: 13px;
    font-weight: 700;
    color: #333;
}

.rvm-other-leave-card .rvm-card-dates {
    font-size: 11px;
    font-weight: 500;
    color: #666;
}

.rvm-other-leave-card .rvm-card-status {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
    font-size: 11px;
    font-weight: 600;
}

.rvm-other-leave-card .rvm-card-status-approved {
    color: #15803d;
}

.rvm-other-leave-card .rvm-card-status-pending {
    color: #b45309;
}

.work-report-topbar-desktop {
background: #23312c;
}

/* ── Focus widget KPI cards (fwgt-*) ────────────────────────────────────── */
.fwgt-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px 12px 4px;
}

.fwgt-card {
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    padding: 10px 12px;
    cursor: pointer;
    transition: border-color 0.14s, box-shadow 0.14s;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    overflow: hidden;
}

.fwgt-card:hover {
    border-color: #3B5249;
    box-shadow: 0 2px 8px rgba(59,82,73,0.1);
}

.fwgt-card-cols {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 20px;
}

.fwgt-card-col {
    display: flex;
    flex-direction: column;
    flex: 0 1 auto;
    min-width: 0;
    gap: 1px;
}

.fwgt-card-col-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #9ca3af;
    white-space: nowrap;
}

.fwgt-card-col-value {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fwgt-card-footer {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;
    padding-top: 6px;
    border-top: 1px solid #f3f4f6;
}

.fwgt-card-avatar {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3B5249, #5a7d6d);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fwgt-card-time {
    font-size: 10px;
    color: #9ca3af;
    font-weight: 500;
    flex: 1;
}

.fwgt-card-check {
    font-size: 10px;
    color: #16a34a;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 2px;
}

/* ===== SESSION BANNERS: offset the plan page's fixed top bar =====
   During a temporary shared-account session OR a support impersonation session,
   MainLayout renders a fixed session banner (~50px) across the top and adds a
   "has-session-banner" class to .page. UserPlanPage's desktop toolbar is
   position:fixed; top:0, so either banner would cover it and block clicks. In-flow
   plan content is already pushed down by MainLayout's `main { padding-top:50px }`,
   so only fixed-position plan elements need to be shifted below the banner. Global
   rules because the banner and the plan elements live in different CSS-isolation
   scopes. Uses plain descendant selectors (not :has()) — some Android WebView builds
   used by the MAUI app don't support :has(), which silently no-ops selectors that
   rely on it. */
@media (min-width: 641px) {
    .page.has-session-banner .plan-top-bar {
        top: 50px !important;
    }

    /* The rows view ("dage i rækker") container is position:fixed; top:56px too, so
       it does NOT move with main's padding. Without this it stays put while the
       toolbar drops to top:50px, and the toolbar's lower half covers
       #plan-table-rows-header-row (the role/person column headers).
       56px + 50px banner height. The bottom:0 anchor keeps the height correct.
       InfoMainPage re-declares this wrapper as position:relative; top:auto !important
       in its isolated stylesheet, which is loaded after app.css and wins the
       equal-specificity tie — so the embedded plan panel is unaffected. */
    .page.has-session-banner .plan-table-rows-wrapper {
        top: 106px !important;
    }
}

/* Same overlap, different element: the floating "release changes" banner
   (.auto-preview-banner, the Frigiv button) is also position:fixed with its own
   top offset and a much lower z-index (20) than the session banner (2000), so it
   renders hidden behind it. Push it down by the session banner's height too. */
.page.has-session-banner .auto-preview-banner {
    top: 60px !important; /* normal 10px + 50px banner height */
}

@media (max-width: 768px) {
    .page.has-session-banner .auto-preview-banner {
        top: calc(110px + env(safe-area-inset-top, 0px)) !important; /* normal 60px + 50px banner height */
    }
}

/* ===== CONNECTIVITY BANNER: offset the fixed mobile topbar =====
   When there's no internet (or the backend can't be reached) MainLayout renders a fixed banner
   across the top and adds a "has-connectivity-banner" class to .page. In-flow content is already
   pushed down by MainLayout's own `main { padding-top: var(--connectivity-banner-height) }`, but
   TopBar's .mobile-topbar is position:fixed; top:0 with a lower z-index (1112 vs 1500), so the
   banner would cover it. Global rules because the banner and the topbar live in different
   CSS-isolation scopes; plain descendant selectors rather than :has() for the same reason as the
   session-banner rules above. */
@media (max-width: 640.98px) {
    .page.has-connectivity-banner .mobile-topbar {
        /* --connectivity-banner-height already includes the status-bar inset, so the topbar drops
           its own inset padding and simply sits below the banner. */
        top: var(--connectivity-banner-height);
        height: 55px;
        padding-top: 0;
    }

    /* Both banners at once: the connectivity banner is stacked below the session banner
       (MainLayout.razor.css), so the topbar has to clear both. */
    .page.has-session-banner.has-connectivity-banner .mobile-topbar {
        top: calc(50px + var(--connectivity-banner-height));
    }

    /* Same reason: without this the inset would be counted twice (once in main's padding, once
       here) and leave a gap between the topbar and the first content. */
    .page.has-connectivity-banner article:not(.ios-article) {
        padding-top: 55px;
    }
}


/* ── Helligdagsmarkering i kalenderens dag-headere ───────────────────────────
   Global frem for scoped: seks kalendervisninger bruger de samme klasser, og
   reglerne skulle ellers kopieres seks steder og holdes i sync.

   Rød frem for den orange der først stod her. Dels hedder en helligdag "en rød
   dag" på dansk, så farven siger allerede hvad chippen betyder; dels var orange
   optaget af FFD og brugerdefineret fravær i nøjagtig samme dag-header, og to
   ting i samme farve på samme række læses som det samme. */
.calendar-header-holiday {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    padding: 2px 9px 2px 7px;
    border: 1px solid #F3C9C6;
    border-radius: 999px;
    background: #FDF1F0;
    color: #B3261E;
    font-size: 11px;
    font-weight: 600;
    line-height: 16px;
    letter-spacing: 0.1px;
    white-space: nowrap;
}

    /* Farven sættes eksplicit, ikke arvet: dag-headeren har scoped regler pr.
       kalender, og de indlæses efter denne fil. */
    .calendar-header-holiday i {
        flex-shrink: 0;
        font-size: 9px;
        line-height: 1;
        color: #D2453B;
    }

.calendar-header-holiday-name {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Månedslisten stabler sine dag-elementer lodret, så chippen ville strække sig
   over hele bredden og se ud som et felt frem for en mærkat. */
.month-listselected-day-icons > .calendar-header-holiday {
    align-self: flex-start;
    margin-bottom: 6px;
}

/* Månedscellen er for smal til navnet — kun flaget, navnet ligger i title. */
.month-day-holiday-icon {
    flex-shrink: 0;
    margin-left: 4px;
    font-size: 9px;
    line-height: 1;
    color: #D2453B;
}

/* ─────────────────────────────────────────────────────────────
   Collab — midlertidigt proof-of-concept modul (Englandsturen).
   Delt mellem alle Collab-delsider. Ligger globalt (ikke scoped)
   fordi flere komponenter deler klasserne.
   ───────────────────────────────────────────────────────────── */
.collab-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 16px 60px;
    font-family: 'Quicksand', Arial, sans-serif;
}

/* Den faste bundnavigation er 70px (80px på iOS) og ligger oven på siden — uden
   denne clearance kan man ikke scrolle bunden af delsiderne frem på mobil. */
@media (max-width: 640.98px) {
    .collab-section {
        padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
    }
}

.collab-section-head {
    margin-bottom: 18px;
}

.collab-back {
    background: none;
    border: none;
    color: #3B5249;
    font-weight: 600;
    font-size: 13px;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.collab-section-title {
    margin: 8px 0 2px;
    font-size: 24px;
    font-weight: 700;
    color: #23312C;
}

.collab-section-sub {
    margin: 0;
    font-size: 13px;
    color: #666;
}

.collab-muted {
    color: #888;
    font-size: 14px;
    padding: 24px 4px;
}

.collab-picker-row {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.collab-picker {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
    max-width: 420px;
}

/* Inde i række-varianten styrer .collab-picker-row afstanden. */
.collab-picker-row .collab-picker {
    flex: 1 1 260px;
    margin-bottom: 0;
}

.collab-picker-row .collab-picker--narrow {
    flex: 0 1 180px;
}

.collab-graph-btn {
    flex: 0 0 auto;
    height: 40px;
}

.collab-picker-label {
    font-size: 12px;
    font-weight: 700;
    color: #2d3748;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.collab-select,
.collab-input,
.collab-textarea {
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    background: #fff;
    color: #222;
    font-family: inherit;
    width: 100%;
}

.collab-textarea {
    font-weight: 500;
    line-height: 1.5;
    resize: vertical;
    min-height: 68px;
}

.collab-focus-host {
    border: 1px solid #e3e3e0;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

/* Cards / panels shared by Wellbeing + Organisation + Biosecurity */
.collab-panel {
    background: #fff;
    border: 1px solid #e3e3e0;
    border-radius: 14px;
    padding: 18px 18px 20px;
    margin-bottom: 16px;
}

.collab-panel-title {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 700;
    color: #23312C;
    display: flex;
    align-items: center;
    gap: 8px;
}

.collab-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: flex-end;
    margin-bottom: 12px;
}

.collab-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1 1 160px;
}

.collab-field label {
    font-size: 11px;
    font-weight: 700;
    color: #4a5568;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.collab-btn {
    padding: 9px 16px;
    border-radius: 8px;
    border: none;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.collab-btn-primary {
    background: #3B5249;
    color: #fff;
}

.collab-btn-ghost {
    background: #f1f3f2;
    color: #23312C;
}

.collab-btn-danger {
    background: none;
    color: #E71313;
    padding: 6px 8px;
}

.collab-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.collab-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 4px;
    border-bottom: 1px solid #ececea;
}

.collab-list-item:last-child {
    border-bottom: none;
}

.collab-list-item-main {
    flex: 1;
    min-width: 0;
}

.collab-list-item-name {
    font-weight: 700;
    color: #23312C;
    font-size: 14px;
}

.collab-list-item-meta {
    font-size: 12px;
    color: #777;
    margin-top: 2px;
}

.collab-avatar {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #dde3de;
    color: #23312C;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    overflow: hidden;
}

.collab-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Wellbeing target readout */
.collab-target-readout {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 14px 0 4px;
}

.collab-target-now {
    font-size: 30px;
    font-weight: 700;
    color: #23312C;
}

.collab-target-goal {
    font-size: 14px;
    color: #666;
}

.collab-target-now.bad {
    color: #E71313;
}

/* Goals-søjlegraf: udvikling pr. valgt interval med målet som vandret linje.
   Søjlerne og akse-labels er to flex-rækker med samme antal børn, så de flugter. */
.collab-chart {
    margin-top: 10px;
}

.collab-chart-plot {
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 180px;
    padding: 0 2px;
    border-bottom: 1px solid #d9d9d5;
}

.collab-chart-col {
    flex: 1 1 0;
    min-width: 0;
    height: 100%;
    display: flex;
    align-items: flex-end;
}

.collab-chart-bar {
    width: 100%;
    min-height: 2px;
    border-radius: 5px 5px 0 0;
    background: #6d9b62;
    transition: height 0.25s ease;
}

.collab-chart-bar.bad {
    background: #E71313;
}

.collab-chart-target {
    position: absolute;
    left: 0;
    right: 0;
    bottom: var(--target-pct, 0%);
    border-top: 2px dashed #23312C;
    pointer-events: none;
}

.collab-chart-target-label {
    position: absolute;
    right: 0;
    top: -9px;
    background: #23312C;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    padding: 3px 6px;
    border-radius: 4px;
}

.collab-chart-labels {
    display: flex;
    gap: 6px;
    padding: 6px 2px 0;
}

.collab-chart-label {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
    font-size: 10px;
    font-weight: 600;
    color: #777;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Perioden hvor fristen falder. */
.collab-chart-label.deadline {
    color: #C96422;
    text-decoration: underline;
}

/* Biosecurity guide grid */
.collab-guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}

.collab-guide-card {
    text-align: left;
    background: #fff;
    border: 1px solid #e3e3e0;
    border-radius: 12px;
    padding: 14px;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    gap: 10px;
    align-items: center;
}

.collab-guide-card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.collab-guide-card-icon {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(88, 173, 158, 0.15);
    color: #58ad9e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.collab-guide-card-title {
    font-weight: 700;
    font-size: 14px;
    color: #23312C;
}

.collab-guide-card-meta {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

.collab-check-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 4px;
    border-bottom: 1px solid #ececea;
    font-size: 14px;
    color: #23312C;
}

.collab-check-row:last-child {
    border-bottom: none;
}

.collab-check-row input {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.collab-search {
    position: relative;
    margin-bottom: 10px;
}

.collab-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 14px;
    pointer-events: none;
}

.collab-search-input {
    padding-left: 34px;
    padding-right: 34px;
}

.collab-search-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    font-size: 12px;
    display: flex;
}

.collab-search-clear:hover {
    color: #475569;
}

/* Inline guide viewer (Biosecurity) */
.collab-guide-viewer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    font-family: 'Quicksand', Arial, sans-serif;
}

.collab-guide-viewer {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 720px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.collab-guide-viewer-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid #ececea;
}

.collab-guide-viewer-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #23312C;
    flex: 1;
    min-width: 0;
}

.collab-guide-viewer-close {
    background: #f1f3f2;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    color: #23312C;
    font-size: 14px;
    flex: 0 0 auto;
    order: 2;
}

.collab-guide-viewer-body {
    padding: 20px 22px;
    overflow-y: auto;
    flex: 1;
}

.collab-guide-viewer-progress {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}

.collab-guide-viewer-seg {
    flex: 1;
    height: 4px;
    border-radius: 999px;
    background: #ececea;
}

.collab-guide-viewer-seg.done {
    background: #58ad9e;
}

.collab-guide-viewer-step-title {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 700;
    color: #23312C;
}

.collab-guide-viewer-text {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.collab-guide-viewer-text :is(h1, h2, h3) {
    font-size: 15px;
    margin: 14px 0 6px;
}

.collab-guide-viewer-text img {
    max-width: 100%;
    border-radius: 8px;
}

.collab-guide-viewer-media {
    display: block;
    width: 100%;
    max-height: 55vh;
    object-fit: contain;
    border-radius: 10px;
    margin-top: 14px;
    background: #000;
}

.collab-guide-viewer-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-top: 1px solid #ececea;
}

.collab-guide-viewer-count {
    font-size: 13px;
    font-weight: 700;
    color: #777;
}

