#datetime-clock {
    padding: 15px 10px;
    border-radius: var(--spacing16);
    color: var(--interactive--text__default);
    font-size: 40px;
    background: var(--meeting--background__default);
    margin-bottom: 20px;
    box-shadow: 4px 8px 32px 0 var(--shadow1);
    display: block;
    text-align: center;
}

.dialog {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 1000 !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    max-width: 90vw !important;
    width: auto !important;
    min-width: 500px !important;
}

.dialog .dialog--content {
    max-height: 70vh !important;
    overflow-y: auto !important;
}

.dialog--overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: 999 !important;
}

@media (max-width: 768px) {
    .dialog {
        min-width: 95vw !important;
        max-width: 95vw !important;
        max-height: 95vh !important;
    }
}

#datetime-clock.datetime-clock--clocked {
    border: 1px solid var(--error600)
}
#datetime-clock.datetime-clock--not_clocked {
    border: 1px solid var(--success600);
}
#datetime-clock .datetime-clock--clocked-bg {
    background:var(--error600)
}
#datetime-clock .datetime-clock--not_clocked-bg {
    background: var(--success600);
}
#datetime-clock .datetime-clock__date {
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    letter-spacing: 3px;
    margin-bottom: 10px;
    flex-basis: 100%;
}
#datetime-clock .datetime-clock__hours {
    font-weight: 600;
    text-align: center;
    letter-spacing: 3px;
    display: inline-block;
}
#datetime-clock .datetime-clock__minutes {
    font-weight: 600;
    text-align: center;
    letter-spacing: 3px;
    display: inline-block;
}
#datetime-clock .datetime-clock__seconds {
    font-weight: 600;
    text-align: center;
    letter-spacing: 3px;
    display: inline;
}
#datetime-clock .datetime-clock__period {
    letter-spacing: 3px;
    padding: 0 5px;
    border-radius: 5px;
    font-size: 20px;
    margin-left: 5px;
    display: inline-block;
    position: relative;
    top: -7px;
}
#datetime-clock .datetime-clock--separator {
    font-weight: 600;
    text-align: center;
    letter-spacing: 3px;
    display: inline-block;
}
#datetime-clock .datetime-clock__total_time {
    font-size: 14px;
}
#datetime-clock .datetime-clock__clocked_time {
    font-size: 14px;
    margin-top: 10px;
}

#select-all{
    margin-bottom: 20px;
    margin-right: 10px;
}


.overflow--horizontal {
    overflow-x: hidden !important;
    overflow-y: auto;
    scrollbar-color: var(--scrollbar-foreground) var(--scrollbar-background);
    width: 100%;
}

.overflow--horizontal::-webkit-scrollbar {
    width: var(--spacing12);
    height: var(--spacing12);
}

.overflow--horizontal::-webkit-scrollbar-thumb {
    background: var(--scrollbar-foreground);
}

.overflow--horizontal::-webkit-scrollbar-track {
    background: var(--scrollbar-background);
}

.overflow--horizontal table {
    width: 100% !important;
    table-layout: fixed !important;
    min-width: unset !important;
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 0.75rem !important;
}

.overflow--horizontal table th,
.overflow--horizontal table td {
    min-width: 0 !important;
    vertical-align: top;
    padding: 8px 5px !important;
    overflow: visible !important;
    white-space: normal !important;
    line-height: 1.2;
}

.overflow--horizontal table th:first-child,
.overflow--horizontal table td:first-child {
    width: 16% !important;
    min-width: 110px !important;
}

.overflow--horizontal table th:not(:first-child),
.overflow--horizontal table td:not(:first-child) {
    /* width: calc(84% / 7) !important;*/
    min-width: 0 !important;
    text-align: center !important;
}

.overflow--horizontal table th {
    font-size: 0.7rem !important;
    padding: 6px 4px !important;
    font-weight: 600;
    white-space: normal !important;
}


.tag-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    min-height: 35px;
    padding: 4px 3px;
    gap: 3px;
}

.tag-wrapper .tag {
    margin: 0;
    width: 100%;
    max-width: 100%;
}

.calendar--day.is--holiday {
    border: 1px solid #ffd54f;
}

.calendar--holiday {
    font-size: 13px;
    color: #f57f17;
    margin-top: 4px;
}

.repeat-options-container .radio-group {
    display: flex !important;
    gap: 20px !important;
    margin: 15px 0 !important;
    flex-wrap: wrap;
}

.days-checkboxes {
    display: flex !important;
    gap: 15px !important;
    margin-top: 10px !important;
    flex-wrap: wrap !important;
}

.days-checkboxes .form-selection {
    margin-bottom: 5px !important;
}



.shift-block {
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: visible !important;
    margin-bottom: 2px;
    padding: 3px 5px !important;
    font-size: 0.65rem !important;
    line-height: 1.1;
    border-radius: 0 !important;
    background-color: var(--primary100);
    color: var(--primary1000);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    height: fit-content;
    min-height: 18px;
    max-width: 100%;
    box-sizing: border-box;
    letter-spacing: 0.1px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.shift-block:hover {
    background-color: rgba(255, 255, 255, 0.1);
    /*! transform: translateY(-1px); */
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    z-index: 10;
    /*! font-size: 0.75rem !important; */
}



.shift-block .shift-actions,
.tag .shift-actions,
.shift-block:hover .shift-actions {
    z-index: 99999 !important;
    position: absolute !important;
}


.shift-actions {
    position: absolute;
    top: -35px !important;
    right: 5px !important;
    display: none;
    gap: 3px;
    background: rgba(0, 0, 0, 0.9);
    padding: 5px;
    border-radius: 6px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 9999 !important;
    white-space: nowrap !important;
    min-width: max-content !important;

}


.shift-block:hover {
    z-index: 9998 !important;
    position: relative !important;
}

.shift-block:hover .shift-actions {
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: all !important;
    display: flex !important;
    visibility: visible !important;
    z-index: 9999 !important;
}


.shift-actions:hover {
    z-index: 10000 !important;
}
.shift-action-btn {
    background: rgba(0, 0, 0, 0.9);
    border: none;
    color: #fff;
    padding: 7px 9px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    white-space: nowrap !important;
}

.edit-shift-btn:hover {
    background-color: #007bff;
    color: white;
}

.delete-shift-btn:hover {
    background-color: #dc3545;
    color: white;
}

.add-shift-btn:hover {
    background-color: #28a745;
    color: white;
}


.shift-block[data-repeated-shift-id]:not([data-repeated-shift-id=""]):before {
    content: "🔗";
    position: absolute;
    top: 1px;
    left: 1px;
    font-size: 9px;
    opacity: 0.8;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 12px;
    height: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.shift-block[data-is-series-parent="true"]:before {
    content: "⭐";
    position: absolute;
    top: 1px;
    left: 1px;
    font-size: 9px;
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 12px;
    height: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.shift-block[data-repeated-shift-id]:not([data-repeated-shift-id=""]) {
    padding-left: 18px !important;
}

.shift-block[data-is-series-parent="true"] {
    padding-left: 18px !important;
}

.tag-wrapper {
    position: relative;
    /*z-index: 1;*/
}



.past-indicator {
    color: var(--primary400) !important;
    font-size: 0.5em !important;
    font-style: italic;
    font-weight: 600;
    display: block !important;
    width: 100%;
    text-align: center;
    margin-top: 1px;
    line-height: 1;
    padding: 0;
    background: none;
    border: none;
    text-transform: uppercase;
    opacity: 0.8;
    letter-spacing: 0.3px;
    white-space: nowrap !important;
}

.shift-block.past-shift {
    opacity: 0.75;
    position: relative;
    filter: saturate(0.8);
    padding-bottom: 15px;
}

.shift-block.past-shift:hover {
    opacity: 0.9;
    filter: saturate(1);
}



.item--profile .avatar {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.65rem !important;
}

.profile--name {
    font-size: 0.8rem !important;
    line-height: 1.1;
    font-weight: 500;
    white-space: normal !important;
}

.profile--title {
    font-size: 0.8rem !important;
    margin-top: 1px;
    opacity: 0.8;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
}



.tag.is--holiday {
    font-size: 0.6rem !important;
    padding: 2px 4px !important;
    white-space: normal !important;
    text-align: center;
}

.tag-wrapper .tag:not(.shift-block) {
    font-size: 0.6rem !important;
    padding: 2px 5px !important;
    min-height: auto;
    white-space: normal !important;
    text-align: center;
}




@media (min-width: 1200px) {
    .overflow--horizontal table {
        font-size: 0.8rem !important;
    }

    .shift-block {
        font-size: 0.45rem !important;
        padding: 5px 7px !important;

    }

    .profile--name {
        /*! font-size: 0.6rem !important; */
    }

    .overflow--horizontal table th {
        font-size: 0.75rem !important;
    }

    .tag-wrapper {
        min-height: 40px !important;
        padding: 5px 3px !important;
    }
}


@media (min-width: 1400px) {
    .overflow--horizontal table {
        font-size: 0.85rem !important;
    }

    .shift-block {
        font-size: 0.65rem !important;
        padding: 6px 8px !important;

    }

    .profile--name {
        /*! font-size: 0.6rem !important; */
    }

    .overflow--horizontal table th {
        font-size: 0.8rem !important;
    }

    .tag-wrapper {
        min-height: 45px !important;
        padding: 5px 4px !important;
    }
}


@media (min-width: 1600px) {
    .overflow--horizontal table {
        font-size: 0.9rem !important;
    }

    .shift-block {
        font-size: 0.65rem !important;
        padding: 7px 9px !important;

    }

    .past-indicator {
        font-size: 0.55em !important;
    }

    .profile--name {
        /*! font-size: 0.7rem !important; */
    }

    .overflow--horizontal table th {
        font-size: 0.85rem !important;
    }

    .tag-wrapper {
        min-height: 50px !important;
        padding: 6px 4px !important;
    }
}


@media (min-width: 1024px) and (max-width: 1199px) {
    .overflow--horizontal table th:first-child,
    .overflow--horizontal table td:first-child {
        width: 15% !important;
        min-width: 100px !important;
    }

    .shift-block {
        font-size: 0.55rem !important;
        padding: 4px 5px !important;

    }

    .profile--title {
        display: none;
    }
}


@media (max-width: 1023px) {
    .overflow--horizontal {
        overflow-x: auto !important;
    }

    .overflow--horizontal table {
        min-width: 700px !important;
        width: auto !important;
        font-size: 0.7rem !important;
    }

    .overflow--horizontal table th:first-child,
    .overflow--horizontal table td:first-child {
        width: 120px !important;
        min-width: 120px !important;
    }

    .overflow--horizontal table th:not(:first-child),
    .overflow--horizontal table td:not(:first-child) {
        width: 100px !important;
        min-width: 100px !important;
    }

    .shift-block {
        font-size: 0.65rem !important;
        padding: 3px 4px !important;

    }

    .past-indicator {
        font-size: 0.45em !important;
    }
}

@media (max-width: 1200px) {
    .overflow--horizontal table {
        font-size: 0.75rem;
    }

    .shift-block {
        font-size: 0.55rem;
        padding: 4px 6px;
    }

    .shift-block[data-repeated-shift-id]:not([data-repeated-shift-id=""]),
    .shift-block[data-is-series-parent="true"] {
        padding-left: 18px !important;
    }
}

@media (max-width: 900px) {
    .overflow--horizontal table {
        font-size: 0.7rem;
    }

    .shift-block {
        font-size: 0.55rem;
        padding: 4px 5px;
    }

    .shift-block[data-repeated-shift-id]:not([data-repeated-shift-id=""]),
    .shift-block[data-is-series-parent="true"] {
        padding-left: 17px !important;
    }
}

@media (max-width: 768px) {
    .shift-actions {
        top: -42px;
        left: 50%;
        transform: translateX(-50%) translateY(10px);
        right: auto;
    }

    .shift-block:hover .shift-actions {
        transform: translateX(-50%) translateY(0);
    }

    .shift-action-btn {
        padding: 8px;
        min-width: 32px;
        height: 32px;
    }

    .tag-wrapper {
        min-height: 30px;
        padding: 3px 2px;
    }

    .repeat-options-container .radio-group {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .days-checkboxes {
        flex-direction: column !important;
        gap: 8px !important;
    }
}

@media (max-width: 1024px) {
    .overflow--horizontal table th,
    .overflow--horizontal table td {
        padding: 6px 3px;
        font-size: 0.7rem;
    }

    .shift-block {
        font-size: 0.55rem;
        padding: 3px 5px;
    }
}

@media (max-width: 600px) {
    .overflow--horizontal table th:first-child,
    .overflow--horizontal table td:first-child {
        width: 25% !important;
        min-width: 80px !important;
    }

    .overflow--horizontal table th:not(:first-child),
    .overflow--horizontal table td:not(:first-child) {
        width: calc(75% / 7) !important;
    }

    .shift-block {
        font-size: 0.55rem;
        padding: 2px 3px;
    }
}



.overtime-section {
    margin-top: 30px;
    padding: 20px;
    border-radius: 8px;
}

.overtime-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

.overtime-form {
    width: 100%;
}

.overtime-info-container {
    margin-bottom: 15px;
}

.overtime-fields-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    column-gap: 10px !important;
    width: 100% !important;
    margin-bottom: 15px !important;
}

.overtime-minutes-field {
    width: 120px;
    flex-shrink: 0;
}

.overtime-reason-field {
    flex: 2;
    min-width: 180px;
}

.overtime-project-field,
.overtime-supervisor-field {
    flex: 1;
    min-width: 150px;
}

.time-container {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    position: relative;
    min-height: 70px;
    width: 300px;
}

.stopwatch-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffab00;
    color: #333;
    border: none;
    border-radius: 4px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.stopwatch-toggle-btn:hover {
    background-color: #f09000;
}

.stopwatch-display-container {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 10px;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.05);
    z-index: 10;
}

.timer-display {
    font-family: monospace, sans-serif;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: -10px;
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 8px;
    border-radius: 4px;
}

.stopwatch-controls {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.stopwatch-controls button {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
}

.stopwatch-controls button:focus,
#stopwatch-toggle:focus,
#start-stop-btn:focus,
#reset-btn:focus,
#done-btn:focus {
    outline: none !important;
    box-shadow: none !important;
}

#start-stop-btn {
    background-color: #28a745;
    color: white;
}

#start-stop-btn:hover {
    background-color: #28a745;
}

#start-stop-btn.stopping {
    background-color: #dc3545;
}

#start-stop-btn.stopping:hover {
    background-color: #c82333;
}

#reset-btn {
    background-color: #6c757d;
    color: white;
}

#reset-btn:hover {
    background-color: #5a6268;
}

#done-btn {
    background-color: #ffab00;
    color: #333;
}

#done-btn:hover {
    background-color: #f09000;
}

@media (max-width: 768px) {
    .stopwatch-controls {
        flex-direction: column;
    }

    .stopwatch-controls button {
        width: 100%;
    }
}

.overtime-form .form--field {
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 992px) {
    .overtime-fields-row {
        flex-wrap: wrap;
    }

    .overtime-minutes-field {
        width: 100%;
        max-width: 100px;
    }

    .overtime-reason-field,
    .overtime-project-field,
    .overtime-supervisor-field {
        flex: 1 1 200px;
    }
}

.horizontal-form-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    column-gap: 10px !important;
    width: 100% !important;
    margin-bottom: 15px !important;
}

.add-entry-button{
    margin-bottom: 20px !important;
    height: 48px;
}

.form--stepper {
    display: flex;
    background-color: var(--primary900);
    border: 1px solid var(--primary500);
    color: var(--primary100);
    font-size: 1rem;
    line-height: 1.23536;
    font-weight: 400;
    height: 2rem;
    border-radius: 8px;
    margin-bottom: 0;
    padding: 0;
    transition: all .3s ease;
}

.form--stepper:hover {
    border-color: rgb(60, 130, 249);
}

.form--stepper:focus-within {
    outline: 4px solid rgb(0 125 250 / 60%);
    outline-offset: 1px;
}

.form--stepper input {
    background-color: var(--primary900);
    color: var(--primary100);
    font-size: 0.9rem;
    max-width: 1.5rem;
    outline: none;
    text-align: center;
    text-overflow: ellipsis;
    -webkit-appearance: none;
    appearance: none;
}

.stepper--control {
    background-color: transparent;
    color: rgb(60, 130, 249);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    outline: none;
    padding: 0 0.5rem;
    transition: all .3s ease;
}

.stepper--control:hover {
    color: rgb(118, 169, 255);
}
.stepper--control--plus{
    color: rgb(60, 130, 249)!important;
}
.stepper--control--minus{
    color: rgb(60, 130, 249);
}

.stepper--control--minus, .stepper--control--plus {
    color: rgb(60, 130, 249);
}

.stepper--control:hover {
    color: rgb(118, 169, 255);
}

.fa-minus, .fa-plus {
    color: rgb(60, 130, 249);
}


.choice-modal {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    margin: 0 auto;
}

.choice-modal .dialog--title {
    padding: 20px;
    border-bottom: 1px solid #dee2e6;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.choice-modal .dialog--content {
    padding: 20px;
}


/* Schedule Week Table Styling */
.schedule-row td {
    vertical-align: top;
    padding: 10px;
}

.tag-wrapper {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.shift-block {
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85em;
    height: 35px;
}

.shift-block:hover {
    /*! transform: translateY(-2px); */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Responsive table for schedule */
#schedule-week-table .dt-table-wrapper {
    overflow-x: auto;
}

#schedule-week-table table {
    min-width: 1200px;
}

/* Day columns equal width */
#schedule-week-table td:not(:first-child) {
    width: 12%;
    min-width: 120px;
    padding: 0 5px !important;
    border: 1px solid var(--branding__default);
}

.shift-block--day {
    text-align: right;
    font-size: 11px;
    padding: 0;
    font-weight: bold;
    color: var(--branding__default);
}

.shift-block--day a {
    color: var(--branding__default);
}

/* Employee column fixed width */
#schedule-week-table td:first-child {
    min-width: 200px;
    position: sticky;
    left: 0;
    background: var(--surface);
    /*z-index: 10;*/
}



.shift-block.multi-day-shift {
    position: relative;
    border-left: 3px solid #007bff;
}

.shift-block.multi-day-first {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    background: linear-gradient(to right, var(--current-color), var(--current-color) 90%, #007bff 90%)!important;
}

.shift-block.multi-day-second {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    background: linear-gradient(to right, #007bff 10%, var(--current-color) 10%)!important;
}

.shift-block.multi-day-first::after {
    content: "→";
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    color: #007bff;
    font-weight: bold;
}

.shift-block.multi-day-second::before {
    content: "←";
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    color: #007bff;
    font-weight: bold;
}

.multi-day-indicator {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #007bff;
    color: white;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    font-size: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.multi-day-shift {
    position: relative !important;
    border: 2px solid #007bff !important;
    box-shadow: 0 0 0 1px rgba(0, 123, 255, 0.3) !important;
    z-index: 5;
}

.multi-day-first {
    order: 2;
    border-right: 3px solid #ffc107 !important;
    background: linear-gradient(to right, currentColor 85%, #ffc107 85%) !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    margin-top: auto;
}

.multi-day-second {
    order: 1;
    border-left: 3px solid #ffc107 !important;
    background: linear-gradient(to right, #ffc107 15%, currentColor 15%) !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    margin-bottom: auto;
}

.multi-day-indicator {
    color: #007bff !important;
    font-weight: bold !important;
    font-size: 12px !important;
    display: inline !important;
}

.multi-day-first .multi-day-indicator {
    color: #ffc107 !important;
}

.multi-day-second .multi-day-indicator {
    color: #ffc107 !important;
}

.tag.multi-day-shift {
    padding-right: 20px !important;
}



.shift-details {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
}

.shift-details .detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.shift-details .detail-row:last-child {
    margin-bottom: 0;
}

.shift-details .label {
    font-weight: 600;
    color: #fff5f5;
    min-width: 80px;
}

.shift-details .value {
    font-weight: 500;
    color: #fff5f5;
    text-align: right;
}

.series-parent-badge {
    margin-top: 10px;
    padding: 8px 12px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    color: #856404;
    font-weight: 500;
    font-size: 14px;
    display: inline-block;
}

.series-parent-badge.warning {
    background: #f8d7da;
    border-color: #f1aeb5;
    color: #721c24;
}

.choice-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

.option-card {
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    background: #fff;
    transition: all 0.2s ease;
}

.option-card:hover {
    border-color: #007bff;
    background: #f8f9ff;
}

.option-card.danger {
    border-color: #dc3545;
    background: #fff5f5;
}

.option-card.danger:hover {
    border-color: #c82333;
    background: #ffe6e6;
}

.option-card h4 {
    margin: 0 0 10px 0;
    color: #fff5f5;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.option-card p {
    margin: 0 0 10px 0;
    color: #fff5f5;
    font-size: 14px;
}

.option-card ul {
    margin: 0;
    padding-left: 20px;
    color: #fff5f5;
    font-size: 13px;
}

.option-card ul li {
    margin-bottom: 4px;
    color: #fff5f5;
}

.warning-message {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 12px;
    margin: 15px 0;
    color: #856404;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}



.filter-card {
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
}

.filter-form {
    padding: 20px;
}

.filter-form .form--field {
    margin-bottom: 0;
}

.filter-form label {
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
    color: #333;
}

.active-filters {
    background: #e3f2fd !important;
    border: 1px solid #bbdefb;
    border-radius: 4px;
    margin-top: 15px;
    padding: 12px;
    font-size: 14px;
}

.active-filters strong {
    color: #1976d2;
}

.filter-badge {
    display: inline-block;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 8px;
    min-width: 20px;
    text-align: center;
}


@media (max-width: 768px) {
    .filter-form {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .filter-form > div:last-child {
        grid-column: 1;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .filter-form {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .filter-form {
        grid-template-columns: repeat(4, 1fr);
    }

    .filter-form > div:last-child {
        grid-column: span 4;
        justify-self: start;
    }
}

.filter-form.loading {
    opacity: 0.6;
    pointer-events: none;
}

.filter-form.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #007bff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* =============================================================================
   ADDITIONAL UTILITY STYLES
   ============================================================================= */

.icon-edit::before {
    content: "✏️";
    margin-right: 5px;
}

.icon-delete::before {
    content: "🗑️";
    margin-right: 5px;
}

.icon-multiple::before {
    content: "📋";
    margin-right: 5px;
}

.icon-delete-multiple::before {
    content: "💥";
    margin-right: 5px;
}

.icon-close::before {
    content: "✕";
    margin-right: 5px;
}

.icon-warning::before {
    content: "⚠️";
    margin-right: 5px;
}


@media (max-width: 768px) {
    .choice-modal {
        width: 95%;
        margin: 20px auto;
    }

    .choice-modal .card--footer {
        flex-direction: column;
        align-items: stretch;
    }

    .choice-modal button {
        min-width: auto;
        width: 100%;
    }

    .choice-options {
        gap: 10px;
    }

    .option-card {
        padding: 12px;
    }

    .shift-details .detail-row {
        flex-direction: column;
        gap: 4px;
    }

    .shift-details .value {
        text-align: left;
        font-weight: 400;
    }
}


.shift-block[data-repeated-shift-id]:not([data-repeated-shift-id=""]) {
    position: relative;
}

.shift-block[data-repeated-shift-id]:not([data-repeated-shift-id=""]):before {
    content: "🔗";
    position: absolute;
    top: 2px;
    right: 5px;
    font-size: 12px;
    opacity: 0.7;
}

.shift-block[data-is-series-parent="true"]:before {
    content: "⭐";
    font-size: 14px;
    opacity: 0.9;
}



.shift-actions {
    display: none;
    position: absolute;
    top: 5px;
    left: 5px;
    z-index: 2;
    gap: 5px;
}

.shift-block:hover .shift-actions {
    display: flex;
}

.shift-action-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.shift-action-btn:hover {
    background: white;
    border-color: rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.edit-shift-btn {
    color: #007bff;
}

.edit-shift-btn:hover {
    background: #007bff;
    color: white;
}

.delete-shift-btn {
    color: #dc3545;
}

.delete-shift-btn:hover {
    background: #dc3545;
    color: white;
}

.add-shift-btn {
    color: #28a745;
}

.add-shift-btn:hover {
    background: #28a745;
    color: white;
}



.choice-modal.loading {
    opacity: 0.7;
    pointer-events: none;
}

.choice-modal button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.choice-modal button.loading {
    position: relative;
}

.choice-modal button.loading:after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.series-info-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.shift-block:hover .series-info-tooltip {
    opacity: 1;
}

.choice-modal button:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.choice-modal [role="dialog"] {
    outline: none;
}



.item--card .overflow--horizontal {
    max-width: 100vw !important;
    box-sizing: border-box !important;
}

.item--card .overflow--horizontal table {
    max-width: 100% !important;
    box-sizing: border-box !important;
    border-collapse: collapse !important;
}

.overflow--horizontal * {
    box-sizing: border-box !important;
}


.overflow--horizontal table th,
.overflow--horizontal table td {
    overflow: visible !important;
    text-overflow: clip !important;
    word-wrap: break-word !important;
}

.shift-block.past-shift {
    opacity: 0.6;
}

.shift-block.past-shift .delete-shift-btn {
    display: none;
}

.shift-block.past-shift .edit-shift-btn {
    /*background-color: #17a2b8;*/
    background: rgba(0, 0, 0, 0.9);
    color: white;

}


tr > th:first-of-type,
tr > td:first-of-type {
    padding-left: 20px !important;
}

.shift-actions a {
    color: var(--button--primary--color__default) !important;
}