/* FORM FIELDS */
div.form-width {
    width:400px;
}
div.form-group {
    padding: 8px 8px 8px 8px;
    margin-bottom:0 !important;
}
label.form-label {
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 0;
    line-height: normal;
    padding-bottom: 0;
    text-transform: none;
    margin-left:2px;
    display:block;
    margin-bottom:0;
}
label.form-label-child {
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 0;
    line-height: normal;
    padding-bottom: 0;
    text-transform: none;
    margin-left: 2px;
    display: block;
    margin-bottom: 0;
    color: rgb(100, 100, 100);
    margin-top:8px;
}
.select2-container--default .select2-selection--single,
.select2-container .select2-selection--single,
select.form-control,
textarea.form-control,
input.form-control {
    border: 1px solid rgb(206, 212, 218) !important;
    font-family: inherit;
    border-radius: 8px !important;
    font-size: 16px;
    font-weight: 400;
    height: 40px !important;
    color: #000 !important;
    padding: 6px 6px 6px 6px !important;
}
select.form-control,
textarea.form-control,
input.form-control {
    width: 100%;
}
    select.form-control::placeholder,
    textarea.form-control::placeholder,
    input.form-control::placeholder,
    option.select-placeholder {
        color: rgb(150, 150, 150) !important;
    }
select.form-control-fixed,
textarea.form-control-fixed,
input.form-control-fixed {
    width: 260px;
}
.select2-container .select2-selection--single:hover,
select.form-control:hover,
textarea.form-control:hover,
input.form-control:hover,
select.form-control:focus,
textarea.form-control:focus,
input.form-control:focus,
select.form-control:active,
textarea.form-control:active,
input.form-control:active {
    background-color: #eaeefa;
    cursor: pointer;
    box-shadow: none;
    outline: none;
    border-color: #3257c9;
}
    input.form-control:disabled {
        background-color: rgb(242, 242, 242);
        color: rgb(153, 153, 153) !important;
        border-color: rgb(230, 230, 230);
        box-shadow: none;
        outline: none;
    }
        input.form-control:disabled i {
            background-color: rgba(0, 0, 0, .25);
            color: rgb(153, 153, 153);
        }
        input.form-control:disabled::placeholder {
            color: rgb(153, 153, 153);
        }
textarea.form-control {
    height: auto;
    min-height: 45px;
}
/*select.error,
select.error:hover,
select.error:focus,
select.error:active,
input.error,
input.error:hover,
input.error:focus,
input.error:active,
textarea.error,
textarea.error:hover,
textarea.error:focus,
textarea.error:active {
    border: 1px solid #a61119;
}*/
label.error {
    color: #a61119;
}
/* SEARCHABLE SELECT */
.select2-results__option select2-results__option--selectable:first-child {
    padding:0 !important;
    margin:0 !important;
    display:none !important;
}
input.select2-search__field {
    box-shadow: none !important;
    outline: none !important;
    border-width: 0 !important;
    background-color: #eaeefa;
    border-bottom: 1px solid #d6ddf4 !important;
}
.select2-selection__rendered,
.select2-selection__rendered:hover {
    color: #000 !important;
    padding-top: 4px !important;
}
.select2-selection__arrow {
    top:5px !important;
}
.select2-results__options {
    font-family: inherit !important;
    font-size: 14px !important;
}
/* BUTTONS */
button {
    font-size: 14px;
    border: 1px solid #2e2e2d;
    background-color: #fff;
    color: #2e2e2d;
    padding: 8px 16px 8px 16px;
    border-radius: 8px;
    margin-bottom: 8px;
    margin-right: 8px;
    cursor: pointer;
}
    button:hover {
        background-color: #eaeefa;
    }
    button:focus {
        background-color: #d6ddf4;
        color: #3257c9;
    }
    button:active {
        transform: scale(0.98);
        box-shadow: 3px 2px 8px 1px rgba(0, 0, 0, 0.24);
    }
    button i,
    button:hover i,
    button:active i {
        background-color: rgba(0, 0, 0, .25);
        border-radius: 25px;
        width: 25px;
        height: 25px;
        margin-right:3px;
        padding-top:5px;
    }
button:disabled,
button:disabled:hover,
button:disabled:active {
    background-color: #c0c0c0 !important;
    color: #979796 !important;
    border: 1px solid #c0c0c0 !important;
    cursor:default;
}
    button:disabled i {
        color: #c0c0c0 !important;
    }

/* blue */
button.btn-primary,
button.blue {
    color: #fff;
    background-color: #3257c9;
    border: 1px solid #3257c9;
}
    button.blue:hover,
    button.blue:active {
        background-color: #1C33BA;
        border: 1px solid #1C33BA;
    }

/* coral */
button.coral {
    color: #fff;
    background-color: #ff555e;
    border: 1px solid #ff555e;
}
    button.coral:hover,
    button.coral:active {
        background-color: #de333f;
        border: 1px solid #de333f;
    }

/* gray */
button.btn-secondary,
button.gray {
    color: #fff;
    background-color: #6d6d6c;
    border: 1px solid #6d6d6c;
}
    button.gray:hover,
    button.gray:active {
        background-color: #434342;
        border: 1px solid #434342;
    }

/* red */
button.red {
    color: #fff;
    background-color: #a61119;
    border: 1px solid #a61119;
}
    button.red:hover,
    button.red:active {
        background-color: #850a11;
        border: 1px solid #850a11;
    }

/* green */
button.green {
    color: #fff;
    background-color: #6eae05;
    border: 1px solid #6eae05;
}
    button.green:hover,
    button.green:active {
        background-color: #568902;
        border: 1px solid #568902;
    }

/* LEGEND */
fieldset.toolbar,
fieldset.scheduler-border {
    background-color: #f9f9f9;
    max-width: 800px !important;
    border: 1px solid #c0c0c0 !important;
    border-radius: 8px !important;
    padding: 0 1.4em 1.4em 1.4em !important;
    margin: 25px 0 0 0 !important;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
}
fieldset.toolbar legend,
fieldset.scheduler-border legend {
    width:auto !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-align: left !important;
    padding: 0 5px 15px 5px; /* To give a bit of padding on the left and right */
    border-bottom: none;
}
fieldset.toolbar {
    background-color: #eaeefa !important;
    border-color: #c1cdef !important;
    margin: 0px 0px 16px 0px !important;
    padding: 0px 8px 16px 8px !important;
    width: 100% !important;
    display: flex !important;
    align-items: center;
}
    fieldset.toolbar legend {
        width: auto !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        text-align: left !important;
        border-bottom: none;
        margin-bottom: 0;
    }
    fieldset.toolbar div.form-group {
        margin: 0 !important;
        height: 60px !important;
    }
    fieldset.toolbar label {
        margin-top: -10px !important;
        font-size:12px;
    }
    fieldset.toolbar select.form-control,
    fieldset.toolbar textarea.form-control,
    fieldset.toolbar input.form-control {
        font-size: 12px;
        height: 30px;
    }
    button.go {
        height:40px;
        width:40px;
        border-radius:50%;
        display:flex;
        align-items:center;
        justify-content:center;
        margin:0;
    }

/* SEARCHABLE SELECT */
.select2-results__option select2-results__option--selectable:first-child {
    padding: 0 !important;
    margin: 0 !important;
    display: none !important;
}
input.select2-search__field {
    box-shadow: none !important;
    outline: none !important;
    border-width: 0 !important;
    background-color: #eaeefa;
    border-bottom: 1px solid #d6ddf4 !important;
}
.select2-selection__rendered,
.select2-selection__rendered:hover {
    color: #000 !important;
    padding-top: 4px !important;
}
.select2-selection__arrow {
    top: 5px !important;
}
.select2-results__options {
    font-family: inherit !important;
    font-size: 14px !important;
}
div.date-append {
/*    padding-top: 8px;
    padding-right: 8px;
    padding-left: 8px;*/
    background-color: rgb(233, 236, 239);
    font-size: 18px;
    border: 1px solid rgb(206, 212, 218);
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}
div.prepend {
    background-color: rgb(233, 236, 239);
    font-size: 18px;
    border: 1px solid rgb(206, 212, 218);
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}
/* TOGGLE BUTTON */
button.toggle-button,
button.toggle-button-on {
    font-size: 12px;
    font-weight: 700;
    border-radius: 8px;
    border: 1px solid transparent;
    color: #2e2e2d;
    background-color: #eaeefa;
    padding: 4px 12px 4px 12px;
    cursor: pointer;
    margin-right: 8px;
    margin-bottom:2px;
}
    button.toggle-button i,
    button.toggle-button:hover i,
    button.toggle-button:active i,
    button.toggle-button-on i,
    button.toggle-button-on:hover i
    button.toggle-button-on:active i {
        width: 20px !important;
        height: 20px !important;
        border-radius:20px !important;
        background-color: #d6ddf4;
        padding-top:3px !important;
    }
    button.toggle-button:hover {
        background-color: #d6ddf4;
    }
        button.toggle-button:hover i {
            background-color: #c1cdef;
        }
    button.toggle-button:focus {
        outline-style: none;
    }
button.toggle-button-on {
    background-color: #d6ddf4;
    color: #3257c9;
    border-color: #3257c9;
}
    button.toggle-button-on i {
        background-color: #3257c9;
        color: #fff;
    }
/* MOBILE */
@media (min-width: 768px) {
}

/* Flex container for the form fields */
.form-flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
/* Flex items for each field */
.form-flex-item {
    flex: 1 1 calc(50% - 16px); /* Adjusts to two columns, accounting for gap */
    min-width: 200px;
    box-sizing: border-box;
}
/* Flex items for time fields (three columns) */
.form-flex-item-time {
    flex: 1 1 calc(33.333% - 16px); /* Adjusts to three columns, accounting for gap */
    min-width: 150px;
    box-sizing: border-box;
}
/* Full-width flex item (used for labels and button) */
.form-flex-item-full {
    flex: 1 1 100%;
}
/* Button container */
.button-container {
    text-align: right;
}
/* Responsive adjustments for mobile devices */
@media screen and (max-width: 600px) {
    .form-flex-item,
    .form-flex-item-time,
    .form-flex-item-full {
        flex: 1 1 100%;
    }

    .button-container {
        text-align: center;
    }
}