﻿
/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/* Set width on the form input elements since they're 100% wide by default */
input,
select,
textarea {
    /*max-width: 280px;*/
}


.login-box, .register-box {
    min-width: 450px;
}

.validation-summary-errors ul {
    list-style-type: none;
}

.dt-bootstrap4 .dt-buttons {
    float: right;
    margin-left: 10px;
}


/* RESET COUNTER AREA */
/*.reset-counter-input {
    width: 240px;
    font-size: 50px;
    padding: 30px !important;
    font-weight: 900;
}*/

.reset-counter-button {
}


input[type="number"].reset-counter-input {
    -webkit-appearance: textfield;
    -moz-appearance: textfield;
    appearance: textfield;
    background: #000;
}

input[type=number].reset-counter-input::-webkit-inner-spin-button,
input[type=number].reset-counter-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

.number-input {
    border: 2px solid #ddd;
    display: inline-flex;
    width: 300px;
}

    .number-input,
    .number-input * {
        box-sizing: border-box;
    }

        .number-input button {
            outline: none;
            -webkit-appearance: none;
            background-color: transparent;
            border: none;
            align-items: center;
            justify-content: center;
            width: 3rem;
            height: 3.2rem;
            cursor: pointer;
            margin: 0;
            position: relative;
        }

            .number-input button:after {
                display: inline-block;
                position: absolute;
                font-family: "Font Awesome 5 Free";
                font-weight: 900;
                content: '\f077';
                transform: translate(-50%, -50%) rotate(180deg);
            }

            .number-input button.plus:after {
                transform: translate(-50%, -50%) rotate(0deg);
            }

        .number-input input[type=number],
        .number-input input[type=text] {
            font-family: sans-serif;
            /*max-width: 5rem;*/
            padding: .5rem;
            border: solid #ddd;
            border-width: 0 2px;
            font-size: 3rem;
            height: 3.5rem;
            font-weight: bold;
            text-align: center;
        }

.number-input-label {
    font-size: 2.4rem;
    display: block;
    font-weight: bold;
    text-align: center;
    border: 2px solid #ddd;
    padding-left: 10px;
    padding-right: 10px;
    height: 3.7rem;
}

.reset-counter-button {
    font-weight: bold;
    font-size: 2rem;
    /*padding: 1rem;
    height: 3.2rem;
    margin-left: 1rem;
    margin-top: 5px;*/
}

/* Date format changes  https://www.tjvantoll.com/2013/04/15/list-of-pseudo-elements-to-style-form-controls  */

/*
input[type="date"]::-webkit-datetime-edit,
input[type="date"]::-webkit-inner-spin-button,
input[type="date"]::-webkit-clear-button {
    color: #fff;
    position: relative;
}

input[type="date"]::-webkit-datetime-edit-year-field {
    position: absolute !important;
    border-left: 1px solid #8c8c8c;
    padding: 2px;
    color: #000;
    left: 56px;
}

input[type="date"]::-webkit-datetime-edit-month-field {
    position: absolute !important;
    border-left: 1px solid #8c8c8c;
    padding: 2px;
    color: #000;
    left: 30px;
}


input[type="date"]::-webkit-datetime-edit-day-field {
    position: absolute !important;
    color: #000;
    padding: 2px;
    left: 5px;
}
*/


input[type="date"] {
    /*position: relative;
    width: 150px;
    height: 20px;
    color: white;*/
}

    input[type="date"]:before {
        /*position: absolute;
        top: 3px;
        left: 3px;*/
        content: attr(data-date);
        display: inline-block;
        color: black;
    }

body.dark-mode input[type="date"]:before {
    color: #fff;
}

    input[type="date"]::-webkit-datetime-edit, input[type="date"]::-webkit-inner-spin-button, input[type="date"]::-webkit-clear-button {
        display: none;
    }

    input[type="date"]::-webkit-calendar-picker-indicator {
        position: absolute;
        top: 10px;
        right: 10px;
        color: black;
        opacity: 1;
    }


.img-responsive {
    max-width: 100%;
    height: auto;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #007bff !important;
}

.input-group > .multiselect-native-select{
    width: auto !important;
	max-width: 350px;
}


#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Ensure it's on top */
}

.loader {
    border: 16px solid #f3f3f3; /* Light grey */
    border-top: 16px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 80px;
    height: 80px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}