html,
body {
    height: 100%;
    font-family: 'Roboto', sans-serif; /* Tipo cambiada a una sans-serif moderna */
    font-size: 0.9rem;
}

.wrap {
    min-height: 100%;
    height: auto;
    margin: 0 auto -60px;
    padding: 0 0 60px;
}

.wrap > .container {
    padding: 70px 15px 20px;
}

.footer {
    height: 60px;
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

.jumbotron {
    text-align: center;
    background-color: transparent;
}

.jumbotron .btn {
    font-size: 21px;
    padding: 14px 24px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    position: relative;
    top: 1px;
    display: inline-block;
    font-family: 'Glyphicons Halflings';
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    padding-left: 5px;
}

a.asc:after {
    content: /*"\e113"*/ "\e151";
}

a.desc:after {
    content: /*"\e114"*/ "\e152";
}

.sort-numerical a.asc:after {
    content: "\e153";
}

.sort-numerical a.desc:after {
    content: "\e154";
}

.sort-ordinal a.asc:after {
    content: "\e155";
}

.sort-ordinal a.desc:after {
    content: "\e156";
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding: 15px;
    border: none;
}

@media(max-width:767px) {
    .nav li > form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 15px;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
}

.nav > li > form > button.logout:focus {
    outline: none;
}

/**
Sobreescriure color header top bar amb RGB TMH
 */
.skin-red-light .main-header .navbar {
    background-color: #c8102e;
}

.skin-red-light .main-header .logo {
    background-color: #c8102e;
    color: #fff;
    border-bottom: 0 solid transparent;
}

.skin-red-light .main-header li.user-header {
    background-color: #c8102e;
}

/**
Sobreescriure estil breadcrumb
 */
.breadcrumb {
    margin-bottom: 0px !important;
}

/**
Show red asterisk at mandatory fields
 */
form div.required label.control-label:after {
    content:" * ";
    color:red;
}

/**
Sobreescriure stil file-input per mostrar les miniatures a tamany petit.
 */
.file-preview-image {
    max-height: 160px;
    max-width: 213px;
}


/**
Estilant menu
*/

.sidebar-menu>li>a {
    text-transform: uppercase;
}

.sidebar-menu>li.active>a {
    color: #1b74a8 !important;
}

.sidebar-menu .treeview-menu>li.active>a {
    color: #1b74a8 !important;
}


/**
Estils Expand-Row
*/
.kv-expand-detail-row.info>td {
    background: #f1f4f7 !important;
}

.kv-expand-detail-row.info>td:hover {
    background: #ddecf7 !important;
}

/**
Estils Vista Detail
*/
.chat-comments .direct-chat-messages {
    height: auto !important;
    max-height: 660px;
    overflow-y: auto;
}

/* Per detail Pedidos Venta (menys altura) */
.chat-comments-lowheight .direct-chat-messages {
    height: auto;
    max-height: 250px !important;
    overflow-y: auto;

}

/* Patch per tipo massa gran en file-preview (tab documents) en Chrome */
.kv-file-content .file-preview-image {
    font-family: 'Roboto', sans-serif;
    font-size: 1.1em !important;
}

/* Per guardar marge inferior taula del componet kartik gripview */
.panel > .table, .panel > .table-responsive > .table, .panel > .panel-collapse > .table {
    margin-bottom: 150px;
}

/* Ajust z-index Sidebar Dreta */
.control-sidebar-bg {
    z-index: 1005 !important;
}

/* Ajust z-index Dropdown Acciones expand-row viatges */
.skip-export.kv-align-center.kv-align-middle.requestedDailyTravels .dropdown.open .dropdown-menu {
    z-index: 1004 !important;
}

/* Ajust z-index DatePicker Road Trips */
.datepicker.datepicker-dropdown.dropdown-menu.datepicker-orient-left.datepicker-orient-bottom {
    z-index: 1005 !important;
}

/* Styles for control tab */
#slideOut {
    color: #555555;
    position: fixed;
    width: 800px;
    height: 70%;
    bottom: -70%;
    right: 0;
    /* Animation  */
    transition-property: all;
    transition-duration: 1s;
    transition-timing-function: cubic-bezier(0, 1, 0.5, 1);
    transition-timing-function: ease-in-out;
    z-index: 1020 !important;
}

/* Display slideOut */
.showSlideOut {
    top: 25%;
}

/* Tab */
.slideOutTab {
    margin-top: 50px;
    position: absolute;
    right: 15px;
    top: -90px;
    height: 40px;
    width: 150px;
    -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, .5);
    box-shadow: 0 5px 15px rgba(0, 0, 0, .5);
    background: #1b74a8;
    border-radius: 10px 10px 0px 0px;
    cursor: pointer;
}

.slideOutTab div {
    text-align: center;
    color: #FFF;
    position: relative;
    left: auto;
    top: 13px;
    /* width: auto; */
    background: #1b74a8;
    width: 150px;
    /* -webkit-transform: rotate(270deg);
    -moz-transform: rotate(270deg);
    -o-transform: rotate(270deg);
    writing-mode: lr-tb; */
}

#slideOut .modal-content {
    width: auto;
    border-radius: 4px 0 0 0;
    border-color: rgb(190, 190, 190);
    -webkit-box-shadow: -1px -1px 5px -1px rgba(0,0,0,0.75);
    box-shadow: -1px -1px 5px -1px rgba(0,0,0,0.75);
    /* height: 500px; */
}

#slideOut .modal-body {
    padding: 1rem;
    /* height: 500px; */
}

#slideOut .nav-tabs {
    position: fixed;
}

#slideOut .tab-content {
    margin-top: 3.5rem;
    height: 400px;
    /* width: 90%; */
    overflow-y: scroll;
    overflow-x: hidden;
}

/* Control Tab loading styles */
#slideOut .modal-content .loading-container {
    /* height: 300px;
    width: 300px;
    margin-left: auto;
    margin-right: auto; */
    background-color: rgba(255,255,255,.95);
    height: 500px;
    width: 100%;
    float: left;
    margin: 5px;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
/* Spinner Control tab */ 
.loader {
  width: fit-content;
  height: fit-content;
  display: flex;
  align-items: center;
  justify-content: center;
}

.truckWrapper {
  width: 200px;
  height: 100px;
  display: flex;
  flex-direction: column;
  position: relative;
  align-items: center;
  justify-content: flex-end;
  overflow-x: hidden;
}

.truckBody {
  width: 130px;
  height: fit-content;
  margin-bottom: 6px;
  animation: motion 1s linear infinite;
}

@keyframes motion {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(3px);
  }
  100% {
    transform: translateY(0px);
  }
}

.truckTires {
  width: 130px;
  height: fit-content;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0px 10px 0px 15px;
  position: absolute;
  bottom: 0;
}
.truckTires svg {
  width: 24px;
}

.road {
  width: 100%;
  height: 1.5px;
  background-color: #282828;
  position: relative;
  bottom: 0;
  align-self: flex-end;
  border-radius: 3px;
}
.road::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 100%;
  background-color: #282828;
  right: -50%;
  border-radius: 3px;
  animation: roadAnimation 1.4s linear infinite;
  border-left: 10px solid white;
}
.road::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 100%;
  background-color: #282828;
  right: -65%;
  border-radius: 3px;
  animation: roadAnimation 1.4s linear infinite;
  border-left: 4px solid white;
}

.lampPost {
  position: absolute;
  bottom: 0;
  right: -90%;
  height: 90px;
  animation: roadAnimation 1.4s linear infinite;
}

@keyframes roadAnimation {
  0% {
    transform: translateX(0px);
  }
  100% {
    transform: translateX(-350px);
  }
}
/* End Spinner Control tab */ 

#slideOut .modal-content .loading-container .spinningCircle {
    height: 120px;
    width: 120px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0);
    border-top-color: 4px solid #7fc4d1;
    border-right-color: 4px solid #7fc4d1;
    -webkit-animation: single2 4s infinite linear;
    animation: single2 4s infinite linear;
}

@-webkit-keyframes single2 {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
        border-top-color: #7fc4d1;
        border-right-color: #7fc4d1;
    }
    50% {
        border-top-color: #1f4f58;
        border-right-color: #1f4f58;
    }
    100% {
        -webkit-transform: rotate(720deg);
        transform: rotate(720deg);
        border-top-color: #7fc4d1;
        border-right-color: #7fc4d1;
    }
}

@keyframes single2 {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
        border-top-color: #7fc4d1;
        border-right-color: #7fc4d1;
    }
    50% {
        border-top-color: #1f4f58;
        border-right-color: #1f4f58;
    }
    100% {
        -webkit-transform: rotate(720deg);
        transform: rotate(720deg);
        border-top-color: #7fc4d1;
        border-right-color: #7fc4d1;
    }
}

/* Dashboard Styles */
.widget-dash .box-footer {
    border: 1px solid #e4e4e4 !important;
}

.widget-dash .widget-icon {
    max-width: 25% !important;
    display: inline-block;
}

.widget-dash .widget-header {
    width: 75% !important;
    display: inline-block;
}

.widget-dash .widget-header .widget-user-username,
.widget-dash .widget-header .widget-user-desc {
    margin-left: 16px;
}

#slideOut .modal-content { position: relative; }           
#slideOut .controltab-inline-overlay{
  position:absolute; inset:0; display:none;
  align-items:center; justify-content:center;
  background:rgba(255,255,255,.95); z-index:2000;
}
body.dark-mode #slideOut .controltab-inline-overlay{
  background:rgba(24,31,37,.95);
}

.truckBody { position: relative; }            
.truckLogo {
  position: absolute;
  left: 4px;
  top: 22px;
  height: 15px;
  width: auto;
  max-width: 100%;
  pointer-events: none;
}