:root {
    --bs-gutter-x: 0;
}

body {
    overflow-x: hidden;
}

.container-fluid {
    padding-left: 0;
    padding-right: 0;
    height: 100% !important;
}

.container {
    height: 100% !important;
}

div.body-row {
    margin-left: 0;
    margin-right: 0;
}

.navbar {
    border: none;
}

.padding-for-navbar {
    padding-top: 20px !important;
}

.profile-image {
    max-height: 100px;
    max-width: 100px;
}

.table-form {
    min-width: 70px;
    max-width: 80px;
}

.select-cantiere, .notes {
    min-width: 150px;
}

.a-bit-larger {
    min-width: 300px
}

table td {
    padding: 0;
}

/* Fancy hr with word inside */
.hr-sect {
    display: flex;
    flex-basis: 100%;
    align-items: center;
    color: rgba(0, 0, 0, 0.55);
    margin: 8px 0px;
    font-size: 150%;
}

.hr-sect::before,
.hr-sect::after {
    content: "";
    flex-grow: 1;
    background: rgba(0, 0, 0, 0.55);
    height: 1px;
    font-size: 0px;
    line-height: 0px;
    margin: 0px 8px;
}

.gantt_container {
    border-radius: 5px;
}

@media (prefers-color-scheme: dark) {
    .hr-sect {
        color: white;
    }

    .gantt_container {
        background-color: #333 !important;
        border: 1px solid rgba(250,250,250,.125) !important;
    }

    .gantt_layout_cell_border_right {
        border-right: 1px solid #222 !important;
    }

    .gantt_row, .gantt_task_row {
        background-color: #333 !important;
        border-bottom: 1px solid #222 !important;
    }

    .gantt_grid_scale, .gantt_task_scale {
        border-bottom: 1px solid #222 !important;
        color: #dcd3d3 !important;
    }

    .gantt_grid_scale {
        background-color: #333 !important;
        color: #dcd3d3 !important;
    }

    .gantt_cell {
        color: #dcd3d3 !important;
    }

    .gantt_task_scale {
        background-color: #333 !important;
    }

    .gantt_task .gantt_task_scale .gantt_scale_cell {
        border-right: 1px solid #222 !important;
    }

    .gantt_task_cell {
        color: #dcd3d3 !important;
        border-right: 1px solid #222 !important;
    }

    .gantt_scale_line {
        border-top: 1px solid #222 !important;
    }


}

/* Timepicker */
.only-timepicker .datepicker--nav,
.only-timepicker .datepicker--content {
    display: none;
}

.only-timepicker .datepicker--time {
    border-top: none;
}

.without_ampm::-webkit-datetime-edit-ampm-field {
   display: none;
 }

 input[type=time]::-webkit-clear-button {
   -webkit-appearance: none;
   -moz-appearance: none;
   -o-appearance: none;
   -ms-appearance:none;
   appearance: none;
   margin: -10px;
 }

/* Takes out system arrow from select fields */
select {
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Remove annoying movement of stuff when modals open and close */
#sidebar-container {
    padding-right: 0 !important;
    margin-right: 0 !important;
}

/* Makes datepicker visible over modal body (which have a z-index of 1050) */
div.datepickers-container, div.pac-container {
    z-index: 1100 !important;
}

/* Notification dropdown should never go off the page like this */
div.no-overflow-right {
    left: auto;
    right: 0;
}

.close-x {
    cursor: pointer;
    font-size: 24px;
}

.close-x:hover {
    color: red;
}

.close-x:active {
    color: orangered;
}

/* Styles to render the file input personalizable */
.file {
    position: relative;
    width: 100%;
}

.file input {
    opacity: 0;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
    cursor: pointer !important;
    width: 100%;
}

/* Holiday background */
.bg-holiday {
    background-color: #98FF9B;
}

/* Weekend background */
.bg-weekend {
    background-color: #E0FF6F;
}

/* Ferie background */
.bg-ferie {
    background-color: #66DCFF;
}

/* Malattia background */
.bg-malattia {
    background-color: #FFDC4C;
}

/* Infortunio background */
.bg-infortunio {
    background-color: #FF4C4C;
}

#GanttChart {
    width: 100%;
    height: 400px;
}

#OverviewGanttChart {
    width: 100%;
    height: 400px;
}

/* dropdown menu scroll fix */

.dropdown-menu {
    max-height: 280px;
    overflow-y: auto;
}