:root {
    --body-background: #f2f6f8;
    --primary-font: 'Fira Sans', sans-serif;
    --primary-color: #333;

    --header-height: 50px;
    --aside-width: 200px;

    --panel-default-heading-color: #ab9999;
    --panel-default-heading-background: #e4eaee;

    --form-control-border: 1px solid #c6d2d9;
    --form-control-active-border-color: #90a4ae;

    --default-border: 1px solid #c6d2d9;
    --default-border-color: #c6d2d9;
    --default-border-radius: 3px;

    --dark-background: #f2f6f8;

    --border-light: 1px solid #e4eaee;

    --dropdown-background: #fff;
    --dropdowm-border: 1px solid rgb(0 0 0 / 15%);
    --dropdown-box-shadow: 0 5px 10px rgb(0 0 0 / 10%);
    --dropdown-item-color: inherit;
    --dropdown-item-hover-background: #e4eaee;
    --dropdown-button-background: #ecf4f9;
    --dropdown-separator: 1px solid #e4eaee;


    --cell-price-width: 100px;
    --cell-date-width: 120px;
    --cell-control-width: 50px;
    --table-border-color: #c6d2d9;

    --route-transfer-color: #212529;
    /*--route-arrival-color: #e66465;*/
    --route-arrival-color: #e66465;
    /*--route-departure-color: #009900;*/
    --route-departure-color: #8bc34a;
    --route-tour-color: #755fe3;


    /*--local-status-open-color: #ccc;*/
    /*--local-status-assigned-color: #00bcd4;*/
    /*--local-status-in-progress-color: #03a9f4;*/
    /*--local-status-rejected-color: #e91e63;*/
    /*--local-status-completed-color: #8bc34a;*/
    /*--local-status-canceled-color: #f44336;*/
    /*--local-status-accepted-color: #ffc107;*/
}

body {
    /*font-family: var(--primary-font);*/
    font-size: 14px;
    color: var(--primary-color);
    background: var(--body-background);
}

a {
    color: #03a9f4;
    text-decoration: none;
}


/* PANELS */
.panel {
    border-radius: 2px;
}

.panel .panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 35px;
    padding: 0 15px;
}

.panel .panel-heading .title {
    font-size: 1rem;
    color: #6f6f6f;
}

.panel .panel-heading .controls {
    margin-right: -10px;
}

.panel .panel-body {
    position: relative;
    background: #fff;
}

.panel-default {
    border: var(--default-border);
    border-bottom-width: 3px;
}

.panel-default .panel-heading {
    color: var(--panel-default-heading-color);
    background: var(--panel-default-heading-background);
    border-bottom: 1px solid var(--default-border-color);
}

.panel-simple {
    background: #fff;
    border: var(--default-border);
}

.panel-pad {
    padding: 20px;
}

.remove-panel-pad {
    margin-left: -20px;
    margin-right: -20px;
}

.panel-close {
    font-size: 1.4rem;
    line-height: 1;
    color: #878787;
    padding: 5px 10px;
    margin-right: -14px;
    cursor: pointer;
}

.panel-close:hover {
    color: #646464;
}


/* FILTER PANELS */
.panel-filters {
    background: #fff;
    border: var(--default-border);
}

.panel-filters .filter-row {
    display: flex;
}

.panel-filters .filter-col-group {
    display: flex;
}

.panel-filters .filter-col {
    padding: 5px 10px;
}

.panel-filters .filter-col.user-role {
    min-width: 200px;
}

.panel-filters .filter-col.user-name {
    width: 100%;
}

@media (max-width: 576px) {
    .panel-filters .filter-row {
        display: block;
    }

    .panel-filters .filter-col.border-after:after {
        border: none;
    }
}


/* LEGEND */

legend {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1rem;
    color: #02587f;
    background-color: #ccedfc;
    border-color: #b8e6fb;
    border-radius: 2px;
    padding: 10px 10px;
}

legend.departure {
    color: #fff;
}

legend.arrival {
    color: #fff;
}

legend.tour {
    color: #fff;
}


/* TABLES */

.table-list {
    margin-bottom: 0;
    background: #fff;
}

.table-list-border {
    border: 1px solid #c6d2d9;
}

.table-list tr th, .table-list tr td {
    border-bottom-color: #c6d2d9;
}

.table-list tr th {
    position: relative;
    font-size: .8rem;
    font-weight: normal;
    letter-spacing: 1px;
    color: #999;
    padding: 10px 15px;
}

.table-list tr th .column-title {
    display: flex;
    align-items: center;
}

.table-list tr th .column-title:hover {
    color: #666;
}

.table-list tr th .sort-arrows {
    color: #ccc;
    margin-left: 5px;
}

.table-list tr th .sort-arrows .arrow-up {
    line-height: 0;
    margin-bottom: -9px;
}

.table-list tr th .sort-arrows .arrow-down {
    line-height: 0;
    margin-top: -9px;
}

.table-list tr th .sort-arrows .arrow-up.active, .table-list tr th .sort-arrows .arrow-down.active {
    color: #666;
}

.table-list tr.edit-row {
    background: var(--dark-background);
}

.table-list tr td {
    position: relative;
    vertical-align: middle;
    padding: 15px 15px;
}

.table-list.table-sm tr th, .table-list.table-sm tr td {
    padding: 10px 10px;
}

.table-list tr td.pad-sm {
    padding: 10px 15px;
}

.table-list tr td:after {
    position: absolute;
    content: " ";
    display: block;
    clear: both;
    top: 10px;
    bottom: 10px;
    right: 0;
    border-right: 1px dotted #c6d2d9;
}

.table-list tr td:last-child:after,
.table-list tr td.no-border:after {
    border-right: unset;
}

.table-list tr:last-child td {
    border-bottom: none;
}

.table-list td .form-control-immediate {
    font-size: 1rem;
}

.table-list td .small {
    font-size: 0.6rem;
    line-height: 1;
    color: #999;
}

.table-list tr.row-hover {
    transition: all .2s ease-in-out;
}

.table-list tr.row-hover:hover, .table-list tr.row-selected {
    transform: scale(1);
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    box-shadow: 0px 1px 15px rgba(0, 0, 0, 0.15);
    -webkit-box-shadow: 0px 1px 15px rgba(0, 0, 0, 0.15);
    -moz-box-shadow: 0px 1px 15px rgba(0, 0, 0, 0.15);
}

.table-list tr.row-active {
    /*color: #fff;*/
    /*background: #03a9f4;*/
    background: var(--dropdown-item-hover-background);
}

.table-list tr.row-hover:hover .form-control-immediate {
    border-color: #c6d2d9;
}

.checkbox-column {
    position: relative;
    width: 50px;
}

.numeric-column {
    width: 80px;
}

.price-column {
    width: 100px;
}

.big-price-column {
    width: 120px;
}

.date-column {
    width: 100px;
}

.time-column {
    width: 55px;
}

.datetime-column {
    width: 150px;
}

.icon-column {
    width: 50px;
}

.button-column {
    width: 50px;
    text-align: center;
    color: #7c8e97;
    padding: 0 !important;
    /*cursor: pointer;*/
}

.button-column:hover {
    color: #566166;
}

.container-column {
    background: var(--body-background) !important;
}


.table td .button {
    color: inherit;
    background: #fff;
    border: none;
    cursor: pointer;
    padding: 10px 10px;
    margin: 2px;
}

.table td .button[disabled] {
    color: #ccc;
    cursor: default;
}


/* GRID TABLE */

.table-grid {
    /*border: 1px solid #c6d2d9;*/
}

.table-grid .grid-row {
    position: relative;
    background: #fff;
}

.table-grid .grid-row.hover:hover, .table-grid .grid-row.row-selected {
    transform: scale(1);
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    box-shadow: 0 1px 15px rgba(0, 0, 0, 0.15);
    -webkit-box-shadow: 0 1px 15px rgba(0, 0, 0, 0.15);
    -moz-box-shadow: 0 1px 15px rgba(0, 0, 0, 0.15);
    transition: all .2s ease-in-out;
    z-index: 3000;
}


.table-grid .cell-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /*min-height: 50px;*/
}

.table-grid .cell {
    /*display: flex;*/
    /*align-items: center;*/
    /*min-height: 50px;*/
}

.table-grid .sm-tbody .cell {
    /*min-height: 50px;*/
}


.table-grid .cell-group .content, .table-grid .cell .content {
    width: 100%;
}

.table-grid .cell-pad {
    padding: 15px 15px;
}

.table-grid .heading-group {
    font-size: 1rem;
}

.table-grid .border-bottom {
    border-bottom: 1px dotted var(--table-border-color) !important;
}

.table-grid .label {
    display: none;
    font-size: 10px;
    line-height: 1;
    color: #999;
}

@media (max-width: 576px) {
    .table-grid .grid-row {
        position: relative;
        background: #fff;
        border: 1px solid var(--table-border-color);
        margin-bottom: 15px;
    }

    .table-grid .label {
        display: block;
    }
}


/* Icons */
.blue-icon {
    color: #03a9f4;
}

.gray-icon {
    color: #90a4ae;
}


/* ALERTS */
.alert {
    border-radius: 2px;
}


/* DROP DOWN */

.dropdown-container {
    position: relative;
    width: 100%;
}

.dropdown-container .dropdown,
.dropdown-container ul.dropdown {
    position: absolute;
    top: 100%;
    min-width: max-content;
    width: 100%;
    background: #fff;
    border: var(--dropdowm-border);
    border-radius: var(--default-border-radius);
    box-shadow: var(--dropdown-box-shadow);
    z-index: 5000;
}

.dropdown-container ul.dropdown {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-container .dropdown.right {
    right: 0;
}

.dropdown-container .dropdown .separator {
    height: 1px;
    border-top: var(--dropdowm-border);
}

.dropdown-container .dropdown .dropdown-item {
    padding: 10px;
}

.dropdown-container .dropdown .dropdown-item:hover,
.dropdown-container .dropdown .dropdown-item.selected {
    background: var(--dropdown-item-hover-background);
}

.dropdown-container .dropdown .dropdown-item.disabled {
    color: #ccc;
}


.dropdown-menu {
    border: none;
    border-radius: 0;
    box-shadow: 0 10px 17px -8px rgba(0, 0, 0, 0.41);
    -webkit-box-shadow: 0 10px 17px -8px rgba(0, 0, 0, 0.41);
    -moz-box-shadow: 0 10px 17px -8px rgba(0, 0, 0, 0.41);
}

.dropdown-divider {
    border-top: var(--border-light);
}

.dropdown-item.pointer .form-check-input, .dropdown-item.pointer label {
    cursor: pointer;
}


hr {
    border-top-color: #e4eaee;
    opacity: 1;
}

label {
    color: #333333;
    margin-bottom: 5px;
}

label.label-sm {
    font-size: 0.7rem;
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 15px;
}

@media (max-width: 576px) {
    .form-group-sm {
        margin-bottom: 0.5rem;
    }
}

@media (min-width: 577px) and (max-width: 767px) {
    .form-group-sm {
        margin-bottom: 0.5rem;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .form-group-md {
        margin-bottom: 0.5rem;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .form-group-lg {
        margin-bottom: 0.5rem;
    }
}

.input-group-text {
    border-radius: 2px;
}

.form-control, .form-select {
    border: var(--form-control-border);
    border-radius: 2px;
}

.form-control:hover,
.form-control:focus,
.form-select:hover,
.form-select:focus {
    border-color: var(--form-control-active-border-color);
    box-shadow: none;
}

.form-control::placeholder {
    /*font-size: 0.9rem;*/
    color: rgba(0, 0, 0, 0.4);
}

.form-control-immediate {
    border-color: transparent;
}

.form-control-immediate:hover, .form-control-immediate:focus {
    border-color: #c6d2d9;
}

.form-control.minimal, .form-select.minimal {
    border-color: transparent;
}

.form-control.minimal:hover, .form-control.minimal:focus, .form-select.minimal:hover, .form-select.minimal:focus {
    border-color: #c6d2d9;
}


.form-control.minimal-light, .form-select.minimal-light {
    border-color: transparent;
}

.form-control.minimal-light:hover, .form-control.minimal-light:focus, .form-select.minimal-light:hover, .form-select.minimal-light:focus {
    border-color: #f2f6f8;
}


.table-list tr:hover .minimal {
    border-color: #c6d2d9;
}

.form-item {
    position: relative;
}

.form-item-info {
    position: absolute;
    left: 0.75rem;
    bottom: -5px;
    max-width: calc(100% - 2 * 0.75rem);
    font-size: 0.6rem;
    line-height: 1;
    color: #999;
    background: #fff;
    border-radius: 2px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    padding: 1px 2px;
}

.form-item-info.top {
    top: -5px;
    bottom: unset;
}


.unbox-control,
.unbox-control:focus,
.unbox-control:active {
    color: #666666;
    border-color: transparent;
}

.unbox-control:hover {
    border-color: transparent;
}

.input-group.unbox-control .input-group-text {
    background: transparent;
    border-color: transparent;
}

.input-group.unbox-control .form-control, .form-control.unbox-control {
    border-color: transparent;
}

.input-group.unbox-control .form-control:hover,
.input-group.unbox-control .form-control:focus,
.form-control.unbox-control:hover,
.form-control.unbox-control:focus {
    border-color: #f2f6f8;
}


.form-floating > .form-control:focus, .form-floating > .form-control:not(:placeholder-shown), .form-floating > .form-control-plaintext:focus, .form-floating > .form-control-plaintext:not(:placeholder-shown) {
    padding-top: 1.35rem;
    padding-bottom: 0.625rem;
}

.form-floating > .form-control:focus ~ label, .form-floating > .form-control:not(:placeholder-shown) ~ label, .form-floating > .form-control-plaintext ~ label, .form-floating > .form-select ~ label {
    opacity: 0.65;
    transform: scale(0.70) translateY(-0.5rem) translateX(0.15rem);
}

.form-floating > .form-control, .form-floating > .form-control-plaintext, .form-floating > .form-select {
    height: calc(3rem + 2px);
}


.btn {
    font-size: 0.9rem;
    border-radius: 2px;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.btn-normal {
    font-size: 1rem;
}

.btn-xs {
    padding: 2px 5px;
}

.btn-xs.btn-flex {
    /*padding-bottom: 5px;*/
}

.btn-default {
    color: #7d6695;
    background: #ffffff;
    border-color: #c6d2d9;
}

.btn-default:hover {
    color: #666666;
    background: #e4eaee;
    border-color: #c6d2d9;
}

.btn-primary {
    color: #fff;
    background: #03a9f4;
    border-color: #03a9f4;
}

.btn-primary:hover {
    background: #038fce;
    border-color: #038fce;
}

.btn-danger {
    background: #f44336;
    border-color: #f44336;
}

.btn-danger:hover {
    background: #f22112;
    border-color: #f22112;
}

.btn-outline {
    color: #03a9f4;
    background: #fff;
    border-color: #03a9f4;
}

.btn-outline:hover {
    color: #fff;
    background: #03a9f4;
    border-color: #03a9f4;
}

.btn-link {
    font-weight: 500;
    color: #31b8f6;
    text-decoration: none;
}

.btn-link:hover {
    color: #0275a8;
    text-decoration: underline;
}

.btn-link .svg-icon {
    margin-right: 5px;
}

.btn-icon {
    line-height: 1;
    border: none;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-group-block {
    width: 100%;
}

.btn-flex {
    display: flex;
    align-items: center;
    line-height: 1;
}

.close-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    color: #d2d2d2;
    line-height: 1;
    cursor: pointer;
}

.close-button:hover {
    color: #bcbcbc;
}

.form-switch .form-check-input {
    cursor: pointer;
}

.tools-box {
    display: flex;
    align-items: stretch;
}

.tools-box .container {
    display: flex;
    align-items: stretch;
    max-width: unset;
    padding: unset;
    margin: unset;
}

.is-link {
    cursor: pointer;
}

.is-link:hover {
    text-decoration: underline;
}

.pointer {
    cursor: pointer;
}

.not-active {
    position: relative;
    /*background-image: -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop(0.63em, transparent), color-stop(0.63em, #ff0000), color-stop(0.7em, #ff0000), color-stop(0.7em, transparent), to(transparent));*/
    /*background-image: -webkit-linear-gradient(top, transparent 0em, transparent 0.63em, #ff0000 0.63em, #ff0000 0.7em, transparent 0.7em, transparent 1.4em);*/
    /*background-image: -o-linear-gradient(top, transparent 0em, transparent 0.63em, #ff0000 0.63em, #ff0000 0.7em, transparent 0.7em, transparent 1.4em);*/
    /*background-image: linear-gradient(to bottom, transparent 0em, transparent 0.63em, #ff0000 0.63em, #ff0000 0.7em, transparent 0.7em, transparent 1.4em);*/
    /*-webkit-background-size: 1.4em 1.4em;*/
    /*background-size: 1.4em 1.4em;*/
    /*background-repeat: repeat;*/
}

.not-active:after {
    position: absolute;
    content: " ";
    display: block;
    clear: both;
    top: 55%;
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.4);
}

.min-height-0 {
    min-height: unset;
}

.line-height-1 {
    line-height: 1;
}

.text-gray {
    color: #666;
}

.text-dark {
    color: #212529;
}

.text-light {
    color: #d3d3d3 !important;
}

.icon-gray {
    color: #90a4ae;
}

.smaller {
    font-size: 0.6rem;
    line-height: 1;
    color: #999;
}

.mb-5 {
    margin-bottom: 2rem !important;
}

.mb-6 {
    margin-bottom: 2.5rem !important;
}

.full-width {
    width: 100%;
}

.width-50 {
    width: 50%;
}


/* BORDERS */
.border-after {
    position: relative;
}

.border-after:after {
    position: absolute;
    content: " ";
    display: block;
    clear: both;
    top: 10px;
    bottom: 10px;
    right: 0;
    border-right: 1px dotted #c6d2d9;
}

.border-before {
    position: relative;
}

.border-before:before {
    position: absolute;
    content: " ";
    display: block;
    clear: both;
    top: 10px;
    bottom: 10px;
    left: 0;
    border-left: 1px dotted #c6d2d9;
}

.border-default {
    border: var(--default-border);
}

.border-none {
    border: none !important;
}

.border-bottom-dotted {
    border-bottom: 1px dotted #c6d2d9;
}

@media (max-width: 576px) {
    .border-bottom-dotted-xs {
        border-bottom: 1px dotted #c6d2d9;
    }
}

@media (min-width: 577px) and (max-width: 767px) {
    .border-bottom-dotted-sm {
        border-bottom: 1px dotted #c6d2d9;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .border-bottom-dotted-md {
        border-bottom: 1px dotted #c6d2d9;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .border-bottom-dotted-lg {
        border-bottom: 1px dotted #c6d2d9;
    }
}

@media (min-width: 1200px) {
    .border-bottom-dotted-xl {
        border-bottom: 1px dotted #c6d2d9;
    }
}


/* Animations */

@keyframes shake {
    10%, 90% {
        transform: translate3d(-1px, 0, 0);
    }
    20%, 80% {
        transform: translate3d(2px, 0, 0);
    }
    30%, 50%, 70% {
        transform: translate3d(-4px, 0, 0);
    }
    40%, 60% {
        transform: translate3d(4px, 0, 0);
    }
}

/* Tabs */

.tab-nav {
    border-bottom: 1px solid #eff2f7;
}

.tab-nav:after {
    content: "";
    clear: both;
    display: table;
}

.tab-nav ul.tabs {
    list-style: none;
    border-bottom: 1px solid #dfdfdf;
    padding: 0;
    margin: 0 2px 0 2px;
}

.tab-nav ul.tabs:after {
    content: "";
    clear: both;
    display: table;
}

.tab-nav .content .tab-content {
    display: none
}

.tab-nav .content .tab-content.visible {
    display: block;
}

.tab-nav .content {
    background: #fff;
    border: var(--border-light);
    padding: 20px;
    margin-top: -1px;
}


/* transfer status */

/* on progress */
.status-0-background {
    background: #fff;
}

/* new */
.status-1-background {
    background: #fff;
}

/* WAITING_FOR_ACCEPTANCE */
.status-2-background {
    background: #fff;
}

/* ACCEPTED */
.status-3-background {
    background: rgba(0, 255, 0, 0.10);
}

/* REJECTED */
.status-4-background {
    background: rgba(255, 0, 0, 0.10);
}

/* COMPLETED */
.status-5-background {
    background: rgba(0, 0, 255, 0.10);
}

/* CANCELED */
.status-6-background {
    background: rgba(255, 0, 0, 0.10);
}

/* CANCELED_BY_CLIENT */
.status-6-background {
    background: rgba(255, 0, 0, 0.10);
}


/* GENERAL MEDIA QUERIES */

/* Extra small devices */
@media (max-width: 576px) {
    .hidden-xs {
        display: none !important;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 577px) and (max-width: 767px) {
    .hidden-sm {
        display: none !important;
    }
}

/* Medium devices (tablets, 768px and up) (col-sm) */
@media (min-width: 768px) and (max-width: 991px) {
    .hidden-md {
        display: none !important;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199px) {
    .hidden-lg {
        display: none !important;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hidden-xl {
        display: none !important;
    }
}