@media only screen and (max-width: 768px) {
    .flip-scroll th {
        height: 40px !important;
    }

    .flip-scroll td {
        border-left: 0 !important;
        border-bottom: 1px solid #dddddd !important;
        height: 40px !important;
    }

    tr {
        margin: 0px !important;
    }
}

.top-bar-wrapper{
    background-color: #618CAF !important;
}

.page-logo{
    padding-left: 0px !important;
}

.add-row,
.edit-row,
.remove-row {
    line-height: 1!important;
    border-radius: 2px;
    width: 30px;
    height: 30px;
    padding: 0;
}

#request-detail-table {
    margin: 15px 0
}

#request-detail-table th,
#request-detail-table td {
    border: 1px solid #c2cad8;
    padding: 10px;
}

#request-detail-table td:last-child {
    text-align: center;
}

#request-detail-table td input {
    border: none;
    border-bottom: 1px solid #c2cad8;
}

/* INIZIO CSS PER IL MODAL-HOURS-INSERT */
.box-ora {
    text-align: center;
    float: left;
    border: 1px solid;
    font-size: 40px;
    margin: 5px;
    padding: 5px;
    cursor: pointer;
}

.box-ora-separator {
    float: left;
    border: 0px !important;
    font-size: 40px;
    margin: 5px;
    padding: 5px;
}

.selected {
    border: 3px solid;
    border-color: orange;
}

.btn-modal {
    margin: 5px;
}

#inserimento-ore-table table {
    border-spacing: 10px;
    border-collapse: separate;
}

#inserimento-ore-table td {
    font-size: 40px;
    margin: 5px;
    padding: 5px;
    text-align: center;
    width: 69px;
    border: 1px solid;
    cursor: pointer;
}

.modal-body {
    width: 100% !important;
}

#modal-hours-insert {
    width: 100%;
    height: 100%;
    top: 0;
}

.modal-content {
    min-width: 247px;
    overflow-x: auto;
}

/* FINE CSS PER IL MODAL-HOURS-INSERT */

.spinner-container{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    text-align: center;
    background-color: rgba(0,0,0,0.5);
}

.spinner-container img{
    max-width: 100%;
    max-height: 100%;
}

.fileinput.fileinput-exists{
    position: relative;
}

.form-row-margin {
    margin: 20px -15px;
}

#travel_details_table td, #travel_details_table th{
    padding: 10px;
    border: 1px solid #c2cad8;
    text-align: center;
}
#travel_details_table td input {
    border: 0;
    border-bottom: 1px solid #c2cad8;
}

#travel_details_going_table td, #travel_details_going_table th{
    padding: 10px;
    border: 1px solid #c2cad8;
    text-align: center;
}
#travel_details_going_table td input {
    border: 0;
    border-bottom: 1px solid #c2cad8;
}

#travel_details_return_table td, #travel_details_return_table th{
    padding: 10px;
    border: 1px solid #c2cad8;
    text-align: center;
}
#travel_details_return_table td input {
    border: 0;
    border-bottom: 1px solid #c2cad8;
}

#travel_going_details_table td, #travel_going_details_table th{
    padding: 10px;
    border: 1px solid #c2cad8;
    text-align: center;
}
#travel_going_details_table td input, #travel_going_details_table td select {
    border: 0;
    border-bottom: 1px solid #c2cad8;
    width: 100%;
}

#travel_return_details_table td, #travel_return_details_table th{
    padding: 10px;
    border: 1px solid #c2cad8;
    text-align: center;
}
#travel_return_details_table td input, #travel_return_details_table td select {
    border: 0;
    border-bottom: 1px solid #c2cad8;
}

.disabled{
    background-color: #EBEBE4;
    pointer-events: none;
    cursor: not-allowed;
}

#punches td, #punches th{
    border: 1px solid #c2cad8;
    padding: 10px;
    text-align: center;
}

#punches thead{
    background-color: #618CAF;
    color: #FFFFFF;
}

.punches_filter_container{
    margin-bottom: 50px;
}

.punches_hour_error{
    background-color: #FF6262;
    color: #FFFFFF;
}

.ui-widget-header{
    border: 1px solid #618CAF;
    background: #618CAF;
    color: #fff;
    font-weight: bold;
}
.ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active{
    border: 1px solid #618CAF;
    background: #fff url(images/ui-bg_glass_65_ffffff_1x400.png) 50% 50% repeat-x;
    font-weight: bold;
}
.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default {
    border: 1px solid #618CAF;
    background: #f6f6f6 url(images/ui-bg_glass_100_f6f6f6_1x400.png) 50% 50% repeat-x;
    font-weight: bold;
}
.ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited {
    color: #000000;
    text-decoration: none;
}

#download_month_punches{
    font-size: 20px;
    margin-left: 50px;
    display: none;
    cursor: pointer;
    position: absolute;
    bottom: -35px;
}
#download_month_punches.i{
    font-size: 25px;
}

.td-action-add-row{
    cursor: pointer;
}

.loading{
    width: 100px;
    height: 100px;
    background-image: url("/images/loader.gif");
    background-repeat: no-repeat;
    background-size: cover;
    position: fixed;
    top: 50%;
    left: 50%;
    margin-top: -50px;
    margin-left: -50px;
}

div.loading-invisible{
    /*make invisible*/
    display: none;
}

div.loading-visible{
    /*make visible*/
    display: block;

    /*position it 200px down the screen*/
    position: absolute;
    top: 0;
    left: 0;
    min-height: 100%;
    /*margin-top: 30px;*/
    padding-top: 20%;
    width: 100%;
    text-align: center;
    z-index: 10;

    /*in supporting browsers, make it
      a little transparent*/
    background: #fff;
    filter: alpha(opacity=90); /* internet explorer */
    -khtml-opacity: 0.90;      /* khtml, old safari */
    -moz-opacity: 0.90;       /* mozilla, netscape */
    opacity: 0.90;           /* fx, safari, opera */
    /*border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;*/
}

#orders_paginator{
    text-align: center;
}

#orders_table td, #orders_table th{
    border: 1px solid #ddd;
    text-align: center;
    padding: 8px;
}

.alert-ore-container{
    background-color: #ffcece !important;
    color: #c40000 !important;
}

.alert-ore-container a{
    text-decoration: none;
    padding: 8px 15px;
    background-color: #c40000;
    color: #ffcece;
    border-radius: 10px;
    margin-left: 50px;
}

.alert-ore-container i{
    position: relative;
    margin-right: 50px;
}

.alert-ore-container i:before{
    font-size: 34px;
    top: -11px;
    position: absolute;
}

.nopadding {
    padding: 0 !important;
    margin: 0 !important;
}

.custom-label-logo-topbar{
    width: 500px;
    text-align: center;
    height: 70px;
    line-height: 75px;
    font-size: 26px;
    margin-left: 50%;
    color: white;
}

.custom-table-import-dates-topbar-container{
    position: absolute;
    right: 0;
    padding: 5px;
}
.custom-table-import-dates-topbar-container td{
    padding-left: 5px;
    padding-right: 5px;
    text-align: right;
    color: white;
}

.custom-user-menu-topbar-container{
    margin-top: 10px !important;
    padding: 0px !important;
    /*position: absolute !important;*/
    right: 0;
    /*width: max-content;*/
    bottom: 5px;
    background-color: #618CAF !important;
}
.custom-user-menu-topbar-container span{
    color: white !important;
}

.nav-link-selected{
    background-color: #618CAF !important;
    color: white !important;
}

.dropdown.dropdown-user,.dropdown.dropdown-user.open{
    padding: 0 !important;
}

.page-title h1, .page-title h2, .page-title h3, .page-title h4{
    margin: 5px 0 !important;
}

.custom-table-import-dates-topbar-container li{
    bottom: 0 !important;
    position: inherit;
}

.result_request_container_ok{
    background-color: #4caf50;
    color: white;
    padding: 8px 15px;
    margin-bottom: 20px;
}

.result_request_container_ko{
    background-color: #ffcece !important;
    color: #c40000 !important;
    padding: 8px 15px;
    margin-bottom: 20px;
}

.communication-filter-container{
    padding: 10px;
    border: 1px solid #e1e1e1;
    cursor: pointer;
}

.communication-filter-content{
    padding: 5px;
    border: 1px solid #e1e1e1;
}

.communication-filter-content input{
    margin: 0px;
    padding: 0px;
    cursor: pointer;
}
.communication-filter-content label{
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 0px;
    padding: 0px;
    line-height: 14px;
    cursor: pointer;
}

#communications_table td, #communications_table th{
    border: 1px solid #e7ecf1;
}
#communications_table tbody td{
    cursor: pointer;
}

#my_communications tbody tr{
    cursor: pointer;
}

.modal-body-width-50{
    width: 50% !important;
}

.absences-report-filter-container div{
    display: inline-block;
    margin-right: 20px;
}

#btn-add-row{
    margin-bottom: 20px;
}

.datepicker.datepicker-dropdown{
    z-index: 9999;
}


#order_details_modal{
    display: none;
    top: 0;
    left: 0%;
    padding: 20px;
    width: 100%;
}
#order_details_modal .modal-header{
    display: block;
    width: 100% !important;
    background-color: #618CAF;
    color: #FFFFFF;
}
#order_details_modal .modal-body{
    display: block;
    width: 100% !important;
}
#order_details_modal .modal-footer{
    display: block;
    width: 100% !important;
}

#order_details_modal .modal-body h4{
    margin-top: 50px;
}

#order_details_modal table{
    width: 100%;
    margin-bottom: 15px;
    margin-top: 15px;
}
#order_details_modal table th, #order_details_modal table td{
    text-align: center;
    border: 1px solid #ddd;
    padding: 8px;
}

#orders_table tbody tr{
    cursor: pointer;
}

#manual_punches_details_table td, #travel_details_table th{
    padding: 10px;
    border: 1px solid #c2cad8;
    text-align: center;
}
#manual_punches_details_table td input {
    border: 0;
    border-bottom: 1px solid #c2cad8;
}

.users_container{
    width: 100%;
    padding: 6px 12px;
    border: 1px solid #c2cad8;
    border-radius: 4px;
    overflow-y: scroll;
    max-height: 260px;
}
.user-checkbox{
    display: none;
}
.user-row-selected{
    background-color: #1E90FF;
    color: #ffffff;
}
.user_row {
    width: 100%;
    min-height: 1.2em;
    padding: 0px 2px 1px;
}

table#departments tbody tr{
    cursor: pointer;
}



.invisible-item{
    display: none;
}

#delete_attachment{
    cursor: pointer;
}

.tmp-alert-icon{
    color: #FBBC05;
    float: right;
}

@media screen and (max-width: 1024px){
    table{
        overflow-x: scroll;
        /*display: inline-block;*/
    }
    table tr{
        width: 100%;
    }
}

@media screen and (max-width: 991px) {
    .custom-table-import-dates-topbar-container #topbar_import_export_table{
        display: none;
    }
    .alert-ore-container div{
        line-height: 30px;
    }
}

@media screen and (max-width: 767px) {
    .hidden-xs {
        display: none;
    }
    .ui-tabs-anchor {
        font-size: 12px;
    }
    .table-responsive {
        border:none;
    }
}

@media screen and (min-width: 768px) and (max-width: 1279px){
    .custom-label-logo-topbar{
        margin-left: 25%;
    }
}
