@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

html, body {
    font-family: "Inter",'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+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAu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etreten"
    }

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

a:hover {
    text-decoration: none !important;
}

/* Globales Überschreiben Radzen Variablen */
:root {
    --rz-primary: #1d488e;
    --rz-primary-dark: #183a70;
    --rz-primary-darker: #122b52;
    --primary: #1d488e;
    --rz-danger: #ad1717;
    --rz-danger-dark: #8f0d0d;
    --rz-text-font-family: "Inter", sans-serif;
    --rz-panel-menu-item-border: none;
}

.rz-fieldset-content > div {
    margin-bottom: 20px;
}

.rz-form-field-end {
    padding-right: 0 !important;
}

.rz-message.rz-messages-error.rz-message-popup {
    z-index: 1000;
}

.rz-messages-error.rz-message-popup {
    display: block;
}

ul[role=tablist] {
    flex-wrap: wrap !important;
}

.subtitle {
    font-weight: 550;
    color: black;
    margin: 7px 0px 7px 0px;
}

.rz-data-row {
    cursor: pointer;
}

.rzi {
    font-variation-settings: 'FILL' 1;
}

.stopwatch-popup {
    display: none;
    position: absolute;
    overflow: hidden;
    height: 120px;
    width: 100%;
    padding: 10px;
    margin-top: 0.6rem;
    margin-left: 0;
    left: 0;
    background-color: var(--rz-panel-background-color);
    box-shadow: rgba(0, 0, 0, 0.4) 0px 30px 90px;
    border-radius: var(--rz-border-radius);
    font-size: 1.2rem;
}

@media (min-width: 768px) {
    .min-width-lg {
        min-width: 550px;
    }
}

@media (max-width: 767px) {
    .min-width-lg {
        min-width: unset;
    }
}

@media (min-width: 641px) {
    .stopwatch-popup {
        margin-top: 0.4rem;
        width: 480px;
        margin-left: -1.85rem;
    }
}

.popup-table-container {
    display: flex;
    align-items: center;
    position: absolute;
    height: calc(100% - 20px);
    width: calc(100% - 20px);
    top: 10px;
    left: 10px;
}

.stopwatch-popup-icon {
    cursor: pointer;
    font-size: 2rem;
    padding: 8px;
}

.stopwatch-truncate-cell {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 3em;
    line-height: 1.5em;
}

table.details-table th {
    padding-right: 50px;
}

.details-table td {
    padding: 0 10px 5px 0;
}

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

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

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

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

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

code {
    color: #c02d76;
}

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

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

/* Error UI */

#blazor-error-ui {
    position: fixed;
    top: 16px;
    left: 0;
    width: 100%;
    display: none;
    z-index: 1000;
    font-family: system-ui, -apple-system, sans-serif;
}

    #blazor-error-ui .error-popup {
        position: relative;
        width: 400px;
        max-width: 95vw;
        margin: 0 auto;
        background: white;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        border-left: 4px solid #dc3545;
        padding: 12px 16px;
        animation: slideDown 0.3s ease-out;
    }

    #blazor-error-ui .error-content {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    #blazor-error-ui .error-icon {
        color: #dc3545;
        font-style: normal;
        font-weight: bold;
        font-size: 18px;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px solid currentColor;
        border-radius: 50%;
    }

    #blazor-error-ui .error-text {
        color: #333;
        flex-grow: 1;
    }

    #blazor-error-ui .reload {
        color: #0066cc;
        text-decoration: none;
        font-weight: 500;
        padding: 4px 8px;
        border-radius: 4px;
        transition: background-color 0.2s;
    }

        #blazor-error-ui .reload:hover {
            background-color: rgba(0, 102, 204, 0.1);
        }

    #blazor-error-ui .dismiss {
        position: absolute;
        right: 8px;
        top: 10px;
        border: none;
        background: none;
        color: #666;
        font-size: 20px;
        cursor: pointer;
        padding: 4px;
        line-height: 1;
    }

        #blazor-error-ui .dismiss:hover {
            color: #333;
        }

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

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

#update-banner {
    position: fixed;
    top: 16px;
    left: 0;
    width: 100%;
    z-index: 1000;
    font-family: system-ui, -apple-system, sans-serif;
}

    #update-banner .update-popup {
        position: relative;
        width: 400px;
        max-width: 95vw;
        margin: 0 auto;
        background: white;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        border-left: 4px solid #1d488e;
        padding: 12px 16px;
        animation: slideDown 0.3s ease-out;
    }

    #update-banner .update-content {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    #update-banner .update-icon {
        color: #1d488e;
        font-style: normal;
        font-weight: bold;
        font-size: 14px;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px solid currentColor;
        border-radius: 50%;
        flex-shrink: 0;
    }

    #update-banner .update-text {
        color: #333;
        flex-grow: 1;
    }

        #update-banner .update-text .title {
            font-weight: 600;
            margin-bottom: 4px;
        }

        #update-banner .update-text .message {
            font-size: 14px;
            color: #666;
        }

    #update-banner .update-btn {
        background: #1d488e;
        color: white;
        border: none;
        padding: 8px 16px;
        border-radius: 4px;
        cursor: pointer;
        font-size: 14px;
        font-weight: 500;
        margin-right: 8px;
    }

        #update-banner .update-btn:hover {
            background: #164079;
        }

    #update-banner .dismiss-btn {
        background: transparent;
        color: #666;
        border: 1px solid #ddd;
        padding: 8px 12px;
        border-radius: 4px;
        cursor: pointer;
        font-size: 14px;
    }

        #update-banner .dismiss-btn:hover {
            background: #f5f5f5;
            color: #333;
        }
/* ------------------------------------------- Time Tracking Colors -------------------------------------------*/

.calendar-default {
    background-color: #F8F8F8;
    /*border-left: 4px solid #28363C;*/
    color: #333 !important;
}

.calendar-time-entry {
    background-color: #E6F2F5;
    border-left: 4px solid #1D7AA2;
    color: #333 !important;
}

.calendar-time-entry-report {
    background-color: #F2EBD9;
    border-left: 4px solid #F2CC8F;
    color: #333 !important;
}

.calendar-absence-default {
    background-color: #EAEAEA;
    color: #333 !important;
}

.calendar-absence-mixed-day {
    background-color: #EAEAEA;
}

/* Absence Types - Confirmed (Solid Colors) */
.calendar-absence-sick {
    background-color: #D64045;
    color: white !important;
}

.calendar-absence-accident {
    background-color: #E3B505;
    color: white !important;
}

.calendar-absence-childsick {
    background-color: #B0343A;
    color: white !important;
}

.calendar-absence-school {
    background-color: #7765E3;
    color: white !important;
}

.calendar-absence-ük {
    background-color: #5A4FB2;
    color: white !important;
}

.calendar-absence-overtime {
    background-color: #28363C;
    color: white !important;
}

.calendar-absence-vacation {
    background-color: #6B9080;
    color: white !important;
}

.calendar-absence-specialvacation {
    background-color: #1D7268;
    color: white !important;
}

.calendar-absence-military {
    background-color: #345876;
    color: white !important;
}

.calendar-absence-undetermined {
    background-color: #999999;
    color: white !important;
}

/* Absence Types - Requests (Striped Pattern) */
.calendar-absence-sick-request {
    background: repeating-linear-gradient(
            45deg,
            #D64045,
            #D64045 8px,
            #E67075 8px,
            #E67075 16px
    );
    color: white !important;
}

.calendar-absence-accident-request {
    background: repeating-linear-gradient( 
            45deg, 
            #E3B505, 
            #E3B505 8px, 
            #F1D953 8px, 
            #F1D953 16px 
    );
    color: white !important;
}

.calendar-absence-childsick-request {
    background: repeating-linear-gradient(
            45deg,
            #B0343A,
            #B0343A 8px,
            #C5545A 8px,
            #C5545A 16px
    );
    color: white !important;
}

.calendar-absence-school-request {
    background: repeating-linear-gradient(
            45deg,
            #7765E3,
            #7765E3 8px,
            #9A8EEA 8px,
            #9A8EEA 16px
    );
    color: white !important;
}

.calendar-absence-ük-request {
    background: repeating-linear-gradient(
            45deg,
            #5A4FB2,
            #5A4FB2 8px,
            #7B71C5 8px,
            #7B71C5 16px
    );
    color: white !important;
}

.calendar-absence-overtime-request {
    background: repeating-linear-gradient(
            45deg,
            #28363C,
            #28363C 8px,
            #435761 8px,
            #435761 16px
    );
    color: white !important;
}

.calendar-absence-vacation-request {
    background: repeating-linear-gradient(
            45deg,
            #6B9080,
            #6B9080 8px,
            #8CB09F 8px,
            #8CB09F 16px
    );
    color: white !important;
}

.calendar-absence-specialvacation-request {
    background: repeating-linear-gradient(
            45deg,
            #1D7268,
            #1D7268 8px,
            #3D9288 8px,
            #3D9288 16px
    );
    color: white !important;
}

.calendar-absence-military-request {
    background: repeating-linear-gradient( 
            45deg, 
            #345876, 
            #345876 8px, 
            #4A5F72 8px, 
            #4A5F72 16px 
    );
    color: white !important;
}

.calendar-holiday > .rz-has-appointments, .calendar-holiday {
    background-color: #E8F5E9 !important;
    color: #4A4639 !important;
}

.calendar-priority-item > .rz-has-appointments,
.calendar-holiday > .rz-has-appointments {
    color: black !important;
}

.calendar-priority-item > .rz-has-appointments, .calendar-priority-item:not(.rz-slot) {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    color: black;
}

.calendar-priority-item > .rz-has-appointments::after, 
.calendar-priority-item:not(.rz-slot):not(.rz-event-content)::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px; /* Bottom bar */
}

/* Fallback bottom bar color */
.calendar-priority-item:not(.calendar-priority-1):not(.calendar-priority-2):not(.calendar-priority-3):not(.calendar-priority-4):not(.calendar-priority-5) > .rz-has-appointments::after,
.calendar-priority-item:not(.calendar-priority-1):not(.calendar-priority-2):not(.calendar-priority-3):not(.calendar-priority-4):not(.calendar-priority-5):not(.rz-slot)::after {
    background-color: #808080; 
}

/* Fallback background tint */
.calendar-priority-item:not(.calendar-priority-1):not(.calendar-priority-2):not(.calendar-priority-3):not(.calendar-priority-4):not(.calendar-priority-5) > .rz-has-appointments,
.calendar-priority-item:not(.calendar-priority-1):not(.calendar-priority-2):not(.calendar-priority-3):not(.calendar-priority-4):not(.calendar-priority-5):not(.rz-slot) {
    background-color: rgba(128, 128, 128, 0.15) !important;
}

/* Priority colors - bottom bar indicator */
.calendar-priority-1 > .rz-has-appointments::after, .calendar-priority-1:not(.rz-slot)::after { background-color: #3A86FF; } 
.calendar-priority-2 > .rz-has-appointments::after, .calendar-priority-2:not(.rz-slot)::after { background-color: #00B4D8; }
.calendar-priority-3 > .rz-has-appointments::after, .calendar-priority-3:not(.rz-slot)::after { background-color: #795548; }
.calendar-priority-4 > .rz-has-appointments::after, .calendar-priority-4:not(.rz-slot)::after { background-color: #E36414; }
.calendar-priority-5 > .rz-has-appointments::after, .calendar-priority-5:not(.rz-slot)::after{ background-color: #9A031E; }

/* Background tints for each priority (very subtle) */
.calendar-priority-1 > .rz-has-appointments, .calendar-priority-1:not(.rz-slot) { background-color: rgba(58, 134, 255, 0.15) !important; }
.calendar-priority-2 > .rz-has-appointments, .calendar-priority-2:not(.rz-slot)  { background-color: rgba(0, 180, 216, 0.15) !important; }
.calendar-priority-3 > .rz-has-appointments, .calendar-priority-3:not(.rz-slot)  { background-color: rgba(121, 85, 72, 0.15) !important; }
.calendar-priority-4 > .rz-has-appointments, .calendar-priority-4:not(.rz-slot)  { background-color: rgba(227, 100, 20, 0.15) !important; }
.calendar-priority-5 > .rz-has-appointments, .calendar-priority-5:not(.rz-slot)  { background-color: rgba(154, 3, 30, 0.15) !important; }

/* Stops pointer cursor on hover for CalendarHoursByMonth */
.time-grid .rz-cell:hover,
.time-grid .rz-data-row:hover,
.time-grid .rz-cell,
.time-grid .rz-data-row {
    cursor: default !important;
}

/* Stops pointer cursor on hover for HourAccountsIndex */
.custom-hour-grid .rz-data-row,
.custom-hour-grid .rz-cell {
    cursor: default !important;
}

.clickable-calendar .rz-scheduler .rz-slot:hover {
    cursor: pointer;
}