@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap');

*, ::after, ::before {
    box-sizing: border-box;
}

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}
body {
    /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#f9fbfd+0,ffffff+100 */
    background: #f9fbfd; /* Old browsers */
    background: -moz-linear-gradient(top,  #f9fbfd 0%, #ffffff 100%); /* FF3.6-15 */
    background: -webkit-linear-gradient(top,  #f9fbfd 0%,#ffffff 100%); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(to bottom,  #f9fbfd 0%,#ffffff 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f9fbfd', endColorstr='#ffffff',GradientType=0 ); /* IE6-9 */
    color: #161c2d;

    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 130%;
}

body.modal,
body.travels,
body.drivers,
body.products,
body.users {
    background: #FFF;
}

body.pwa {
    background: #FFFFFF; /* Old browsers */
    background: -moz-linear-gradient(top,  #FFFFFF 0%, #f9fbfd 100%); /* FF3.6-15 */
    background: -webkit-linear-gradient(top,  #FFFFFF 0%,#f9fbfd 100%); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(to bottom,  #FFFFFF 0%,#f9fbfd 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#FFFFFF', endColorstr='#f9fbfd',GradientType=0 ); /* IE6-9 */
}  

h1 {
    font-weight: 500;
    font-size: 32px;
    line-height: 120%;
    margin: 0;
}

h1 + p {
    margin-top: 8px;
}

h2,
h1 .subtitle {
    margin: 0px;
    margin-top: 4px;
    font-weight: 400;
    color: #777;
}

h1 .subtitle {
    display: block;
    font-size: 24px;
    margin-top: 0;
    line-height: 130%;
}

a {
    text-decoration: none;
}

a,
input {
    transition: all 0.4s;
    font-family: 'Roboto', sans-serif !important;
}


/* LAYOUT */

    .wrapper {
        width: 92%;
        margin: 0 auto;
        position: relative;
    }

    .wrapper.wide {
        max-width: 1080px;
    }

    .wrapper.narrow {
        max-width: 520px;
    }

    .logo {
        margin-bottom: 48px !important;
    }

    .login {
        padding: 48px 40px 32px 40px;
        width: 100%;
        max-width: 540px;
    }

    .row {
        display: flex;
        justify-content: space-between;
    }

    .form_group {
        width: 48%;
    }

    .form_group_full {
        width: 100%;
    }

    .form_group_18 {
        width: 18%;
    }

    .form_group_15 {
        width: 15%;
    }

    .form_group_32 {
        width: 32%;
    }

    .v_centered {
        display: flex;
        align-items: center;
    }

    .modal header {
        padding: 24px 0px;
        margin-bottom: 36px;
    }

    .section_header {
        margin-top: 36px;
        margin-bottom: 24px;
    }

    .screen_buttons .btn {
        margin-left: 8px;
    }

    .section_header.details h1 {
        position: relative;
        padding-left: 48px;
    }

    .section_header.details h1 i {
        position: absolute;
        left: 0;
    }
    
    .details .date_selector {
        width: 50%;
        display: flex;
        flex-wrap: wrap;
        justify-content: end;
        align-items: end;
    }

    .details .date_selector .date_field {
        width: 40%;
        max-width: 175px;
        margin-right: 12px;
    }

    .details .date_selector .form-control {
        padding: 8px 12px;
        margin-bottom: 0;
    }

    .details .date_selector .btn {
        height: 100%;
    }

/* HELPERS */
    .box {
        border-radius: 8px;
        background: #FFF;
        border: solid 1.5px rgba(0,0,0,0.15);
    }

    .align_center {
        display: block;
        margin: 0 auto;
    }

    header.dark {
        color: #FFF;
    }

    .text_align_right {
        text-align: right;
    }

    .text_align_center {
        text-align: center;
    }

    .nomargin {
        margin: 0px !important;
    }

    .flex_center_both {
        display: flex;
        justify-content: center;
        align-items: center;
        align-content: center;
        height: 100%;
        min-height: 100vh;
        flex-wrap: wrap;
    }

    .justify_center {
        justify-content: center;
    }

    .flex_center_between {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
    }

    .light {
        color: #869ab8;
    }

    .blue_color,
    a:hover {
        color: #043E87;
    }

    .blue_bg {
        background: #043E87;
    }

    .blue_light_color,
    a {
        color: #608BBF;
    }

    .blue_light_bg {
        background: #608BBF;
    }

    .shadow-lg {
        box-shadow: 0 1rem 3rem rgba(0,0,0,.175) !important;
    }

    .shadow {
        box-shadow: 0 .5rem 1rem rgba(0,0,0,.15) !important;
    }

    .form_divider {
        width: 100%;
        border-bottom: 1px dashed #BBB;
        height: 1px;
        margin-bottom: 24px;
        display: block;
    }

    .form_divider.solid {
        border-bottom: 2px solid #999;
    }

    .form_divider.margin_top {
        margin-top: 24px;
    }

    .overflow_x {
        overflow-x: scroll;
    }

    .tv_48 {
        min-width: 48px;
    }

    .tv_100 {
        min-width: 100px;
    }

    .tv_120 {
        min-width: 120px;
    }

    .tv_170 {
        min-width: 170px;
    }

    .tv_175 {
        min-width: 175px;
    }

    .tv_200 {
        min-width: 200px;
    }

    .invisible {
        display: none;
    }

    /* Change Autocomplete styles in Chrome*/
    input:-webkit-autofill,
    input:-webkit-autofill:hover, 
    input:-webkit-autofill:focus,
    textarea:-webkit-autofill,
    textarea:-webkit-autofill:hover,
    textarea:-webkit-autofill:focus,
    select:-webkit-autofill,
    select:-webkit-autofill:hover,
    select:-webkit-autofill:focus {
        -webkit-text-fill-color: #161c2d;
        transition: background-color 5000s ease-in-out 0s;
    }


/* COMPONENTS */
    header .wrapper {
        border-bottom: 1px solid #dee2e6;
    }

    header nav ul {
        margin: 0px;
        padding: 0;
        list-style: none;
    }

    header nav ul li {
        display: inline-block;
        padding: 24px 0px;
        margin: 0px 16px;
    }

    header a {
        color: #161c2d;
    }

    header nav a {
        text-transform: uppercase;
        letter-spacing: 2px;
    }

    .users .users_link,
    .drivers .drivers_link,
    .travels .travels_link,
    .products .products_link {
        border-bottom: 4px solid #dee2e6;
    }

    .loading {
        position: fixed;
        z-index: 3;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        background: rgba(22, 45, 75, 0.9);
        backdrop-filter: blur(8px);
        display: none;
    }
    
    .loading img {
        position: absolute;
        margin: 0;
        padding: 0;
        display: block;
        transform: translateY(-50%) translateX(-50%);
        top: 50%;
        left: 50%;
        width: 64px;
        height: 64px;
    }

    label {
        display: block;
        margin-bottom: -16px;
    }

    label.secondary {
        display: inline-block;
    }

    .label_radios {
        margin-bottom: 19px;
    }

    .v_centered label {
        margin: 0;
    }

    select {
        background-image: url("data:image/svg+xml,<svg viewBox='0 0 16 16' fill='%23161c2d' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>");
        background-repeat: no-repeat;
        background-size: 1rem 1rem;
        background-position: right 19px center;
    }

    select[disabled=disabled] {
        opacity: 0.5;
    }

    .passtrengthMeter>input,
    .form-control {
        font-size: 16px;
        display: block;
        width: 100%;
        padding: 11px 20px;
        font-size: 1rem;
        font-weight: 400;
        line-height: 1.5;
        color: #161c2d;
        background-color: #fff;
        background-clip: padding-box;
        border: 1px solid #ced4da;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        border-radius: 4px;
        margin-top: 24px;
        margin-bottom: 24px;
    }

    .form-control.error {
        border-color: #DF4759;
        color: #DF4759;
        background: rgba(223,71,89,0.1);
    }

    .form-control:focus {
        color: #161c2d;
        background-color: #fff;
        border-color: #86b7fe;
        outline: 0;
        box-shadow: 0 0 0 0.25rem rgb(13 110 253 / 25%);
    }

    .form-control.checkbox,
    .form-control.radio {
        width: 24px;
        height: 24px;
        margin: 0px 12px 0px 0px;
        padding: 0;
    }

    .form-control.radio {
        -moz-border-radius: 200px;
        -webkit-border-radius: 200px;
        border-radius: 200px;
        display: inline-block;
        margin-right: 4px;
        margin-bottom: -5px;
        margin-left: 12px;
        background-repeat: no-repeat;
        background-position: center center;
    }

    .form-control.radio:first-of-type {
        margin-left: 0;
    }

    .form-control.radio:checked {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23FFFFFF' class='bi bi-record-fill' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M8 13A5 5 0 1 0 8 3a5 5 0 0 0 0 10z'/%3E%3C/svg%3E");
        background-color: #043E87;
        background-repeat: no-repeat;
        background-position: center center;
    }

    .form-control.checkbox:checked {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
        background-color: #043E87;
    }

    #prod_peligroso.form-control.checkbox:checked {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
        background-color: #DF4759;
    }

    .btn {
        background: #043E87;
        border: solid 1px #043E87;
        color: #FFF;
        cursor: pointer;
        display: inline-block;
        padding: 8px 20px;
        font-weight: 400;
        line-height: 1.5;
        border-radius: 4px;
        text-align: center;
    }

    .btn:hover,
    .btn:focus,
    .btn:active,
    .btn.outline:hover,
    .btn.outline:focus,
    .btn.outline:active {
        background: #162D4B;
        border-color: #162D4B;
        color: #FFF;
    }

    .btn.outline {
        background: transparent;
        color: #043E87;
        border: solid 1px #043E87;
    }

    .btn i {
        margin-right: 2px;
    }

    #pass_edit {
        margin-bottom: 24px;
        width: 100%;
    }

    .close {
        color: #FFF;
        font-size: 24px;
    }

    .close:hover {
        color: #FFF;
        opacity: 0.5;
    }

    .alert {
        border-radius: 12px;
        padding: 0px 16px;
        margin-top: 24px;
        margin-bottom: 24px;
        overflow: hidden;
        position: relative;
        display: none;
    }

    .alert_wrapper {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .alert i {
        font-size: 24px;
        margin-right: 16px;
    }

    .alert.error {
        background: #DF4759;
        color: #FFF;
    }

    .alert.success {
        background: #42BA96;
        color: #FFF;
    }

    .alert.warning {
        background: #FAD776;
        color: #161c2d;
    }

    .alert.info {
        background: #608BBF;
        color: #FFF;
    }

    .alert.error a,
    .alert.success a,
    .alert.info a {
        color: #FFF;
    }

    .alert.warning a {
        color: #161c2d;
    }

    .alert a {
        text-decoration: underline;
    }

    .fancybox__content {
        padding: 0px;
        -moz-box-shadow: 0px 0px 48px rgba(0,0,0,0.5);
        -webkit-box-shadow: 0px 0px 48px rgba(0,0,0,0.5);
        box-shadow: 0px 0px 48px rgba(0,0,0,0.5);
    }

    .fancybox__content > .carousel__button.is-close {
        top: 25px;
        right: 4%;
        display: none !important;
    }

    .fancybox__backdrop {
        background: rgba(22, 45, 75, 0.9);
        backdrop-filter: blur(8px);
    }

    .dataTables_wrapper .dataTables_length, .dataTables_wrapper .dataTables_filter, .dataTables_wrapper .dataTables_info, .dataTables_wrapper .dataTables_processing, .dataTables_wrapper .dataTables_paginate {
        margin-bottom: 24px;
        margin-top: 12px;
    }

    table.dataTable thead th, table.dataTable thead td {
        text-align-last: left;
    }

    table.dataTable tbody th, table.dataTable tbody td {
        padding: 8px 18px;
    }

    table.dataTable tbody tr.no_res,
    table.dataTable tbody tr.odd {
        background-color: rgba(0,0,0,0);
    }

    table.dataTable tbody tr.even {
        background: rgba(0,0,0,0.05);
    }

    table.dataTable tbody tr:hover {
        background: #043E87;
        color: #FFF;
    }

    .dataTables_wrapper .dataTables_filter input,
    table.dataTable.no-footer,
    table.dataTable thead th, 
    table.dataTable thead td,
    .dataTables_wrapper .dataTables_length select {
        border-color: #ced4da !important;
    }

    .dataTables_wrapper.no-footer .dataTables_scrollBody {
        border-bottom: 1px solid #ced4da !important;
    }

    .dataTables_wrapper .dataTables_length select {
        background: none;
        margin: 0px 4px ;
    }
    
    .dataTables_wrapper .dataTables_filter input {
        margin-left: 8px;
    }

    table.dataTable thead .sorting {
        background-image: url(../images/sort_both.svg) !important;
    }

    table.dataTable thead .sorting_desc {
        background-image: url(../images/sort_desc.svg) !important;
    }

    table.dataTable thead .sorting_asc {
        background-image: url(../images/sort_asc.svg) !important;
    }

    .travel_status_td {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .travel_status {
        display: inline-block;
        width: 10px;
        height: 10px;
        border-radius: 200px;
        margin-bottom: 0px;
    }

    .travel_status.current {
        background: #42BA96;
        box-shadow: 0 0px 0px rgba(66,186,150, 0);
        animation: pulse 1s infinite;
    }

    .travel_status.finalizado {
        background: rgba(160,160,160, 1);
        box-shadow: 0 0px 4px rgba(160,160,160, 0.9);
    }

    .travel_status.programado {
        background: #608BBF;
        box-shadow: 0 0px 4px rgba(96,139,191, 0.9);
    }

    .table_actions {
        width: 75px !important;
        min-width: 75px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .travel_date {
        padding-left: 8px !important;
    }

    .drivers .table_actions,
    .travels .table_actions {
        width: 120px !important;
        min-width: 120px !important;
    }

    .edit_row,
    .delete_row,
    .exp_detail,
    .km_detail {
        display: inline-block;
        width: 16px;
        height: 16px;
        display: none;
        background-repeat: no-repeat;
        background-position: center center;
        background-size: contain;
        overflow: hidden;
        text-indent: -999px;
        margin: 0px 0px 0px 8px;
    }

    table.dataTable tbody tr:hover .exp_detail,
    table.dataTable tbody tr:hover .km_detail,
    table.dataTable tbody tr:hover .edit_row,
    table.dataTable tbody tr:hover .delete_row {
        display: inline-block;
    }

    .exp_detail {
        background-image: url(../images/coin.svg);
    }

    .km_detail {
        background-image: url(../images/speedometer.svg);
    }

    .edit_row {
        background-image: url(../images/edit_white.svg);
    }

    .delete_row {
        background-image: url(../images/delete_white.svg);
    }

    .dataTables_wrapper .dataTables_paginate .paginate_button.current {
        background: transparent !important;
        color: #043E87 !important;
        border: solid 1px #043E87 !important;
    }

    .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover,
    .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
        background: #043E87 !important;
        border: solid 1px #043E87 !important;
        color: #FFF !important;
    }

    .dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
        color: #666 !important;
        border: 1px solid transparent !important;
        background: transparent !important;
        box-shadow: none;
    }

    .dt-buttons {
        display: none;
    }

    .detail_screen .dt-buttons {
        display: block;
        margin-left: 20px;
        float: right;
    }

    .detail_screen .dt-buttons button {
        background: #FFF;
        color: #043E87;
        border: solid 1px #043E87;
        font-size: 14px;
        cursor: pointer;
        font-family: 'Roboto', sans-serif;
        padding: 5px 10px;
        border-radius: 4px;
        margin-top: 12px;
    }

    .detail_screen .dt-buttons button:hover {
        background: #043E87;
        color: #FFF;
    }

    .detail_header {
        display: flex;
        border-bottom: dotted 1px #CCC;
        padding-bottom: 20px;
        margin-bottom: 0px;
        background: #f1f1f1;
        padding: 20px 0px;
        border-top: solid 1px #CCC;
        margin-top: 32px;
        justify-content: center;
    }

    .detail_header > span {
        display: inline-block;
        margin-right: 36px;
    }

    .detail_header > span:last-child {
        margin-right: 0;
    }

    .detail_header span.label {
        font-weight: bold;
    }

    

    .extra_stay {
        display: flex;
        justify-content: center;
        align-items: center;
        background: #f1f1f1;
        border-bottom: solid 1px #CCC;
        margin-bottom: 20px;
        padding: 10px 0px;
    }

    .extra_stay .btn {
        margin: 0 12px;
        background: transparent;
        border: none;
        color: #043E87;
    }

    .extra_stay .btn:hover,
    .extra_stay .btn:focus,
    .extra_stay .btn:active {
        color: #162D4B;
        background: transparent;
        border: none;
    }

    .kms table,
    .expense table {
        min-width: 100%;
    }

    .kms table.table a {
        border-bottom: 1px dashed #608BBF;
    }

    .kms table.table a:hover,
    .kms table.table tr:hover a {
        color: #FFF;
        border-bottom-color: #FFF;
    }

    .kms table.table a.camera {
        border-bottom: 0px;
        color: #000;
        margin-right: 4px;
    }

    #reparto_toggle {
        padding-top: 24px;
        display: none;
    }

    .driver_row {
        border-bottom: 1px dashed #BBB;
        margin-bottom: 20px;
    }

    .driver_row:last-child {
        border-bottom: 0;
        margin-bottom: 0;
    }

    .driver_row:first-child .remove_driver {
        visibility: hidden;
    }

    .editing .driver_row:first-child .remove_driver {
        visibility: visible;
    }

    .fletero {
        display: none;
    }

    .form-control.ars,
    .form-control.uru,
    .form-control.clp,
    .form-control.usd,
    .form-control.brs {
        padding-left: 60px;
    }

    .money {
        position: relative;
    }

    .currency {
        position: absolute;
        z-index: 2;
        top: 37px;
        left: 20px;
        color: #777;
    }  

    /* EXCLUSIVO PWA */
    .pwa .logo {
        margin-bottom: 32px !important;
    }

    .dashboard.pwa .wrapper {
        display: flex;
        justify-content: start;
        
        align-content: space-between;
        height: 100%;
        min-height: 95vh;
        flex-wrap: wrap;
    }

    .pwa footer {
        padding: 20px 0px 24px 0px;
        border-top: solid 1px #DDD;
        width: 100%;
        text-align: center;
    }

    .pwa footer a {
        padding: 15px 40px;
        color: #DF4759;
    }

    .pwa header {
        margin-top: 64px;
        margin-left: 5%;
        margin-right: 5%;
    }

    #patente {
        text-transform: uppercase;
    }
    #patente::-webkit-input-placeholder { /* WebKit browsers */
        text-transform: none;
    }
    #patente:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
        text-transform: none;
    }
    #patente::-moz-placeholder { /* Mozilla Firefox 19+ */
        text-transform: none;
    }
    #patente:-ms-input-placeholder { /* Internet Explorer 10+ */
        text-transform: none;
    }
    #patente::placeholder { /* Recent browsers */
        text-transform: none;
    }

    .travel_details {
        list-style: none;
        margin: 0;
        margin-left: 5%;
        margin-right: 5%;
        padding: 0;
        line-height: 150%;
    }

    .travel_details strong,
    .travel_details span {
        display: block;
    }

    .travel_details li {
        margin-bottom: 18px;
        position: relative;
        padding-left: 36px;
    }

    .travel_details li i {
        position: absolute;
        top: 0;
        left: 0;
        font-size: 24px;
        color: #043E87;
    }

    .travel_details li:last-child {
        margin-bottom: 0;
    }

    .pwa .actions {
        width: 100%;
        text-align: center;
    }

    .actions .play {
        background: #42BA96;
        color: #FFF;
        font-weight: bold;
        font-size: 18px;
        padding: 18px 36px;
        border-radius: 4px;
    }

    .actions i {
        margin-right: 6px;
        font-size: 22px;
        vertical-align: middle;
    }

    .actions .play:hover {
        background: #2F876D;
        color: #FFF;
    }

    @media (max-width: 480px) {
        .login {
            padding-left: 32px;
            padding-right: 32px;
            padding-top: 32px;
            padding-bottom: 20px;
        }

        .wrapper {
            width: 90%;
        }
    }

    @-webkit-keyframes pulse {
        0% {
            -webkit-box-shadow: 0 0 0 0 rgba(66,186,150, 0.8);
        }
        70% {
            -webkit-box-shadow: 0 0 0 5px rgba(66,186,150, 0);
        }
        100% {
            -webkit-box-shadow: 0 0 0 0 rgba(66,186,150, 0);
        }
    }
      @keyframes pulse {
        0% {
          -moz-box-shadow: 0 0 0 0 rgba(66,186,150, 0.8);
          box-shadow: 0 0 0 0 rgba(66,186,150, 0.8);
        }
        70% {
            -moz-box-shadow: 0 0 0 5x rgba(66,186,150, 0);
            box-shadow: 0 0 0 5px rgba(66,186,150, 0);
        }
        100% {
            -moz-box-shadow: 0 0 0 0 rgba(66,186,150, 0);
            box-shadow: 0 0 0 0 rgba(66,186,150, 0);
        }
      }