:root {
    --body-background: #edf0f5;
    --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 / 10%);
    --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;
}

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: 3px;
}

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

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

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

.panel-default > .panel-heading:first-child, .panel-default > .panel-body:first-child {
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
}

.panel-default > .panel-body:last-child {
    border-bottom-left-radius: 3px;
    border-bottom-right-radius: 3px;
}

.panel-default {

    /*border-bottom-width: 3px;*/
}

.panel-default .panel-heading {
    color: #6a6c6f;
    background-color: #f5f7f9;
    border-color: #f5f7f9;
}

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

.panel-pad {
    padding: 20px;
}

.panel .full-hr {
    margin-left: -20px;
    margin-right: -20px;
}

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

/* BOX SHADOW */

.box-shadow {
    -webkit-box-shadow: 0 1px 2px #ccc;
    box-shadow: 0 1px 2px #ccc;
}

.box-border {
    border: 1px solid #d4d5d7;
}


.list-group {
    border-radius: 2px;
}


.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.heading {
    color: #6a6c6f;
    background: #f5f7f9;
}

.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 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 td .form-control-immediate {
    /*width: 100%;*/
    font-size: 1rem;
}

.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-hover:hover .form-control-immediate {
    border-color: #c6d2d9;
}

.numeric-column {
    width: 80px;
}

.price-column {
    width: 80px;
}

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

.date-column {
    width: 110px;
}

.datetime-column {
    width: 150px;
}

.user-md-column {
    width: 24px;
}

.icon-column {
    width: 50px;
}

.button-column {
    width: 50px;
    text-align: center;
    padding: 0 !important;
}

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

.users-column {
    width: 40px;
}

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


.table td .button {
    border: none;
    background: transparent;
    padding: 8px 0;
    margin: 2px;
    cursor: pointer;
}

.table td .button:hover {
    color: #000;
}

.table td .button.disabled, .table td .button[disabled] {
    color: #ccc !important;
    cursor: unset;
}

.table td .button.active {
    color: #03a9f4;
}


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

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

.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;
}


/* DROP DOWN */

.dropdown-container {
    position: relative;
}

.dropdown-container .dropdown,
.dropdown-container ul.dropdown {
    position: absolute;
    top: 100%;
    min-width: max-content;
    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: 0px;
}

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

.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 {
    border-color: transparent;
}

.form-control.minimal:hover, .form-control.minimal:focus {
    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);
}


.form-control-container {
    position: relative;
}

.form-control-container .label {
    position: absolute;
    top: -6px;
    left: 11px;
    font-size: 0.55rem;
    color: #979a9d;
    background: #fff;
    padding: 0 2px;
}

.form-control-container .label.bottom {
    top: unset;
    bottom: -5px;
}


.btn {
    /*font-size: 0.9rem;*/
    border-radius: 2px;
}

.btn-reset {
    text-align: left;
    padding: unset;
    border: unset;
    background: unset;
}

.btn-normal {
    font-size: 1rem;
    min-height: 38px;
}

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

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

.btn:disabled.btn-default {
    border-color: #ccc;
}

.btn-primary {
    color: #fff;
    background-color: #188ae2;
    border-color: #188ae2;
}

.btn-primary:hover {
    background-color: #1576c2;
    border-color: #1268ab;
}

.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:disabled.btn-link {
    border: none;
}

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

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

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

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

.btn:disabled, .btn.disabled {
    /*border-color: #ccc;*/
}

.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;
}

.is-link {
    cursor: pointer;
}

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

.pointer {
    cursor: pointer;
}

.not-active {
    position: relative;
}

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

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

.text-gray {
    color: #666;
}

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

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

.full-width {
    width: 100%;
}

.smaller {
    /*font-size: 0.8em;*/
    font-size: 10px;
}

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

.w-full {
    width: 100%;
}

/* Alerts */

.alert-warning {
    color: #8a6d3b;
    background-color: #fcf8e3;
    border-color: #faebcc;
}

/* 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);
    }
}

/*@keyframes identifier {*/
/*  0% {*/
/*    top: 0;*/
/*    left: -500px;*/
/*  }*/
/*  100% {*/
/*    top: 0;*/
/*    left: 100%;*/
/*  }*/
/*}*/


/* SM TABLE */

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

.sm-table .sm-row {
    position: relative;
    background: #fff;
    border-bottom: 1px solid #ccc;
}

.sm-table .sm-row.hover:hover, .sm-table .sm-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;
}

.sm-table .cell-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sm-table .cell {
    display: flex;
    align-items: center;

}

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


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

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

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

.cell-date {
    width: var(--cell-date-width);
}

.cell-price {
    width: var(--cell-price-width);
}

.cell-controls {
    justify-content: flex-end;
}

.cell-control {
    width: var(--cell-control-width);
    text-align: center;
}

@media (max-width: 576px) {
    .sm-table .sm-row {
        border: 1px solid var(--table-border-color);
    }

    .sm-table .sm-row .cell-group {
        width: 100%;
    }

    .sm-table .sm-row .cell-group.border-after:after, .sm-table .sm-row .cell.border-after:after {
        display: none;
    }

    .sm-table .label {
        display: block !important;
    }

    .sm-table .cell-group {
        border-bottom: 1px dotted #ccc;
    }

    .sm-table .cell-group:last-of-type {
        border-bottom: none;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 767px) {
    .sm-table .sm-row {
        display: block;
        border: 1px solid var(--table-border-color);
        margin: 10px 0;
    }

    .sm-table .sm-row .cell-group {
        width: 100%;
    }

    .sm-table .sm-row .cell-group.border-after:after, .sm-table .sm-row .cell.border-after:after {
        display: none;
    }

    .sm-table .cell-group {
        border-bottom: 1px dotted #ccc;
    }

    .sm-table .cell-group:last-of-type {
        border-bottom: none;
    }

    .sm-table .label.sm {
        display: block !important;
    }

    .sm-table .cell-controls {
        justify-content: center;
    }
}

/* Medium devices (tablets, 768px and up) (col-sm) */
@media (min-width: 768px) and (max-width: 991px) {
    .sm-table .sm-row {
        display: block;
        border: 1px solid var(--table-border-color);
        margin: 10px 0;
    }

    .sm-table .sm-row-md {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }


    .sm-table .sm-row .cell-group {
        width: 100%;
    }

    .sm-table .sm-row .cell-group.border-after:after, .sm-table .sm-row .cell.border-after:after {
        display: none;
    }

    .sm-table .cell-group {
        border-bottom: 1px dotted #ccc;
    }

    .sm-table .cell-group:last-of-type {
        border-bottom: none;
    }

    .sm-table .label.md {
        display: block !important;
    }

    .sm-table .cell-controls {
        justify-content: center;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199px) {
    .sm-table {
        border: 1px solid var(--table-border-color);
    }

    .sm-table .sm-row.lg {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .sm-table {
        border: 1px solid var(--table-border-color);
    }

    .sm-table .sm-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .sm-table .label.lg {
        display: block !important;
    }
}


/* GENERAL MEDIA QUERIES */

.hidden {
    display: none !important;
}

/* 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;
    }
}