@import url(https://fonts.googleapis.com/css?family=Lato:400,300,700);

html,body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: 100%;
}

body {
    display: flex;
    flex-direction: row;
    min-height: 100%;
    font-family: 'lato', sans-serif;
    padding-top: 5px;
}

:active, :hover, :focus {
    outline: 0;
    outline-offset: 0;
}

/*******************************************
**************GLOBAL PANELS*****************
*******************************************/

.manage-panel {
    width: 500px;
    display: flex;
    flex-direction: column;
}

.map-panel {
    width: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

/*******************************************
************CHILDS MANAGE PANEL*************
*******************************************/
.company-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    background-color: #fff;
    cursor: default;
}

.control {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 5px;
    background-color: #fff;
}

.period-container {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    padding: 8px;
}

/*************.period-container**************/

.oneday {
    padding-bottom: 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.container-one-day {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 145px;
}

.period {
    display: flex;
    flex-direction: column;
    display: none;
    padding-bottom: 1px;
}

.showperiod {
    border: 1px solid #000000;
    border-radius: 10px;
    height: 20px;
    padding-left: 1px;
    padding-right: 7px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.showperiod:hover {
    background-color: rgb(224, 229, 231);
}

.date {
    border-radius: 8px;
}

.container-start, .container-end {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 5px;
}

.cap-date {
    min-width: 60px;
}

/**************************************/

.container-gorup, .container-find, .container-select-report {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    padding: 5px;
}

.container-select-report {
    display: none;
}

#selectRep {
    font-size: 16px;
    border-radius: 10px;
    padding: 3px;
}

.group {
    border: 1px solid #000000;
    border-radius: 10px;
    height: 20px;
    padding-left: 1px;
    padding-right: 7px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center; 
}
.group:hover {
    background-color: rgb(224, 229, 231);
}

/**************.container-cars**************/

.container-cars {
    flex-direction: column;
    justify-content: center;
    background-color: #fff;
    padding: 8px;
    overflow-x: auto;
    scroll-behavior: smooth;
}

.container-one-car {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: left;
    padding: 5px;
    margin-bottom: 5px;
    border: 1px solid #000000;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
}

.container-one-car:hover {
    background-color: rgb(224, 229, 231);
}

.filials {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 5px;
    margin-bottom: 5px;
    border: 1px solid #000000;
    border-radius: 10px;
    cursor: pointer;
}

.hidecar {
    display: none;
}

.filialcar {
    margin-left: 15px;
}

.active-element-car {
    background-color: rgb(192,192,192);
}

.preactive-element-car {
    background-color: rgb(224, 229, 231);
}

/*************BUTTONS******************/

.but-online, .but-hide-manage, .but-report, .but-manage, .standart-input {
    height: 24px;
}

.but-online, .but-report, .but-manage, .standart-input{
    margin-right: 10px;
}

.but-hide-manage {
    margin-left: auto;
}

.but-online:hover, .but-hide-manage:hover, .but-build-trip:hover, .but-findcar:hover, .but-report:hover, .but-manage:hover, .but-build-report:hover, .close-rep:hover, .standart-input:hover {
    background-color: rgb(230, 233, 229);
}

.but-build-trip, .but-findcar, .but-build-report {
    height: 24px;
}

.but-build-report {
    display: none;
}

.but-findcar {
    margin-left: 10px;
}

#findcar {
    font-size: 16px;
}

/*******************************************
**************CHILDS MAP PANEL**************
*******************************************/

.menu-map {
    display: flex;
    /*flex-direction: row;*/
    align-items: center;
    /*justify-content: space-between;*/
    padding: 5px;
}

.container-map, .report-panel {
    height: 100%;
    width: 100%;
    position: relative;
}

.report-panel {
    display: none;
    overflow: auto;
}

.distmodalwin {
    width: 50%;
    background: white;
    top: 40px;
    left: 0;
    right: 0;
    font-size: 14px;
    text-align: center;
    z-index: 5;
    margin: auto;
    display: none;  
	border-radius: 10px;
	opacity: 0.7;		
    padding: 5px;
    border: 1px solid black;
    position: absolute;
}
@media screen and (max-width: 30em) {
	.distmodalwin {
		width: 75%;
		font-size: 10px;
		top: 7%;			
	}
}

.distmodalwin-content {
    max-height: 300px;
    overflow: auto;
    scroll-behavior: smooth; 
}

.dist-caption {
    position: -webkit-sticky;
    position: sticky;
    top: -1px;
    padding: 5px;
}

.table-rep {
    margin-top: 40px;
}

.find-win {
    border: 3px outset gray; 
    background: white;
    top: 45%; 
    right: 0;
    left: 0;
    font-size: 14px; 
    margin: 0 auto;
    z-index:9999; 
    display: none;  
    position: fixed; 
    padding: 15px;
    border: 1px solid black;
    border-radius: 10px;
}

#shadow { 
    position: fixed;
    width:100%;
    height:100%;
    z-index:9998; 
    background:#000;
    opacity: 0.5; 
    left:0;
    top:0;
}

/*************BUTTONS******************/

.but-show-manage {
    display: none;
    height: 24px;
}

.but-show-manage:hover, .but-user-manage:hover {
    background-color: rgb(230, 233, 229);
}

.but-img-exit, .but-user-manage {
    height: 24px;
    margin-left: auto;
    margin-right: 10px;
}

.but-user-manage {
    margin-top: -3px;
}

.but-img-exit:hover {
    background-color: rgb(240, 210, 210);
}

.close-dist {
    position: absolute;
    cursor: pointer;
    right: 0px;
    top: 0px;
    margin: 2px;
    height: 16px;
    width: 16px;
    font-size: 10px;
    padding: 0px;
    border: 0px;
    border-radius: 5px;
}

.close-rep {
    position: absolute;
    right: 5px;
    top: 5px;
    height: 24px;
    width: 24px;
    cursor: pointer;
}

.save-excel {
    position: absolute;
    left: 5px;
    top: 5px;
    height: 24px;
    width: 24px;
    display: none;
}

#modalwinsavereport { 
    height: 30px;  
    width: 200px;
    border: 3px outset gray; 
    background: white;
    top: 45%; 
    right: 0;
    left: 0;
    font-size: 18px; 
    margin: 0 auto;
    z-index:9999; 
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed; 
    padding: 15px;
    border: 1px solid black;
    border-radius: 10px;
    text-decoration: none;
    color: #000;
}

/**************************************************************
*********************Manage back panel*************************
**************************************************************/
.manage-back-panel {
    position: fixed;
    width:100%;
    height:100%;
    z-index:10; 
    background: white;
    opacity: 1; 
    left:0;
    top:0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-x: auto;
    scroll-behavior: smooth;
}

.but-close-manage-back-panel {
    position: absolute;
    z-index: 2; 
    right: 0px;
    top: 0px;
    margin: 4px;
    height: 24px;
    width: 24px;
    font-size: 16px;
    border: 0px;
    border-radius: 5px;
    cursor: pointer;
}

.cap-manage-panel {
    font-size: 16px;
    text-align: center;
    border: 0px;
    margin-bottom: 5px;
    cursor :default;
}

.panel-manage-bottom-buttons {
    min-height: 50px;
    margin-top: auto;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: flex-start;
}

.button-bottom-manage-panel {
    margin-right: 10px;
    height: 40px;
    width: 100px;
    border: 0px;
    border-radius: 10px;
    background-color: rgb(245, 245, 245);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.button-bottom-manage-panel:hover {
    background-color: rgb(230, 233, 229);
}

.service-manage-form {
    background: white;
    width: 400px;
    height: 250px;
    z-index: 1; 
    position: relative;
    padding: 5px;
    border: 1px solid black;
    border-radius: 10px;
    display: flex;
    flex-direction: column;    
}

.menu-service-manage-form {
    height: 24px;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
}

.panel-service-manage-form {
    font-size: 16px;
    border: 0px;
    min-height: 50px;
    cursor: pointer;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: left;
}


.panel-service-manage-form:hover {
    background-color: rgb(230, 233, 229);
}

.span-service-manage-form {
    text-align:center;
    margin-left: 100px;
}

/*buttons service*/
.add-service, .del-service, .edit-service, .load-service, .trash-service, .but-up-service, .but-down-service {
    height: 24px;
    margin-left: 10px;
    margin-right: 10px;
}

.trash-service {
    margin-left: auto;
    margin-right: 20px;
}

.activate-trash {
    border: 3px solid rgb(248, 64, 64);
    border-radius: 6px;
}

.add-service:hover, .del-service:hover, .edit-service:hover, .load-service:hover, .trash-service:hover, .but-up-service:hover, .but-down-service:hover {
    background-color: rgb(230, 233, 229);
}

/*user manage block*/
.user-manage-form {
    background: white;
    width: 400px;
    height: 200px;
    z-index: 1; 
    position: relative;
    padding: 5px;
    border: 1px solid black;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
}

@media screen and (max-width: 400px) {
	.user-manage-form, .service-manage-form {
		width: 350px;
        height: auto;			
    }
    .span-service-manage-form {
        margin-left: 75px; 
    }
    .manage-back-panel {
        justify-content: end;
    }
}

.panel-user-manage-form {
    font-size: 16px;
    border: 0px;
    min-height: 50px;
    cursor: pointer;
    border-radius: 10px;
    display: flex;
    align-items: center;
}

.panel-user-manage-form:hover {
    background-color: rgb(230, 233, 229);
}

.first-span-usermanage-form, .label-usermanage-form {
    min-width: 120px;
    margin-left: 5px;
    font-weight: bold;
}

.second-span-usermanage-form {
    margin-left: 5px;
}

.panel-user-manage-form-edit {
    font-size: 16px;
    border: 0px;
    min-height: 50px;
    cursor: default;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.panel-user-manage-form-edit:hover {
    background-color: rgb(230, 233, 229);
}

.edit-usermanage-form {
    margin-left: 25px;
    height: 30px; 
    border-radius: 10px; 
    font-size: 18px;
    min-width: 200px;
}

.edit-usermanage-form-error {
    border: 2px solid red;
}

.container-find-service {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    padding: 5px;    
}


/*manage block*/
/*
.manage-form {
    background: white;
    width: 400px;
    height: 500px;
    z-index: 1; 
    position: relative;
    padding: 5px;
    border: 1px solid black;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
}
*/
.manage-active-element {
    background: rgb(224, 229, 231);
}

.manage-selected-element {
    background-color: rgb(192,192,192);
}

.pan-grid-admin {
    margin-top: 10px;
    display: flex;
    flex-direction: row;
    overflow: auto;
    scroll-behavior: smooth;
}

@media screen and (max-width: 400px) {
	.manage-form {
		width: 350px;
        height: 700px;			
    }
    .edit-usermanage-form {
        font-size: 14px;
    }
}

input[readonly="readonly"] {
    background-color: rgba(245, 243, 243, 0.89);
}

.element-form-select-fils-cars {
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: center;
    padding: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    min-height: 200px;
}

.pan-grid-select-fils-cars {
    min-width: 100%;
    display: flex;
    flex-direction: row;
    overflow: auto;
    scroll-behavior: smooth;
}

/*******************************************
**************PROGRESS BAR******************
*******************************************/
.lds-hourglass {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;

    top: 45%; 
    right: 0;
    left: 0;
    margin: 0 auto;
    z-index:9999; 
    display: none;  
    position: fixed; 
  }
  .lds-hourglass:after {
    content: " ";
    display: block;
    border-radius: 50%;
    width: 0;
    height: 0;
    margin: 8px;
    box-sizing: border-box;
    border: 32px solid #cef;
    border-color: #cef transparent #cef transparent;
    animation: lds-hourglass 1.2s infinite;
  }
  @keyframes lds-hourglass {
    0% {
      transform: rotate(0);
      animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
    }
    50% {
      transform: rotate(900deg);
      animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    }
    100% {
      transform: rotate(1800deg);
    }
  }