.category-floor-map {
    overflow: hidden;
    user-select: none;
}
.map-layout-wrapper {
    display: flex;
    position: relative;
}
.col-table-viewport {
    height: 100%;
    overflow: scroll;
    padding-top: 1rem;
    flex: 0 0 25%;
    max-width: 25%;
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    border-right: 1px solid rgba(128, 128, 128, 0.2);
    transition: all 0.2s ease-in-out;
}
.col-map-viewport {
    border: none;
    overflow: hidden;
    padding: 0;
    height: 100%;
    flex: 0 0 75%;
    max-width: 75%;
    position: relative;
    width: 100%;
}
.map-layout-wrapper.table-viewport-closed .col-table-viewport {
    flex: 0 0 2%;
    max-width: 2%;
}
.map-layout-wrapper.table-viewport-closed .col-map-viewport {
    flex: 0 0 98%;
    max-width: 98%;
}
.table-viewport-toggle-btn {
    position: absolute;
    top: calc(50% - 24px);
    left: calc(25% - 1px);
    z-index: 1030;
    transition: all 0.2s ease-in-out;
}
.table-viewport-toggle-btn button:focus-visible {
    outline: none;
}
.map-layout-wrapper.table-viewport-closed .table-viewport-toggle-btn {
    left: max(30px, calc(2% - 1px));
}
.map-layout-wrapper .table-viewport-toggle-btn img {
    transform: scaleX(1);
}
.map-layout-wrapper.table-viewport-closed .table-viewport-toggle-btn img {
    transform: scaleX(-1);
}
.table-viewport-toggle-btn button {
    width: 23px;
    height: 48px;
    border: 0;
    cursor: pointer;
    border: 1px solid rgba(128, 128, 128, 0.2);
    border-left: none;
    border-radius: 0 8px 8px 0;
    background: #fff 7px center / 7px 10px no-repeat;
    padding: 0;
}
.table-viewport-toggle-btn img {
    width: 22px;
    height: 22px;
}
#map-container {
    width: 800px;
    position: relative;
    border: none; 
    line-height: 0;
    transform-origin: center center;
    transition: transform 0.2s ease-in-out;
    user-select: none;
}
#map-container.is-panning {
    cursor: grabbing;
}
#map-background {
    width: 800px;
    height: auto;
    display: block;
}
.map-navigation {
    position: absolute;
    top: 1rem;
    left: 1rem;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    z-index: 1028;
}
.map-hotspot {
    position: absolute;
    box-sizing: border-box;
    cursor: help;
    background: rgba(0, 123, 255, 0.0);
    border: 1px dashed rgba(0, 123, 255, 0.0);
    transition: all 0.2s ease-in-out;
}
.map-hotspot:hover,
.map-hotspot.popover-highlight {
    background: rgba(0, 123, 255, 0.0);
    border: 1px dashed rgba(0, 123, 255, 0.0);
}

/*.map-hotspot::before {
    content: '\f05a';
    font-family: FontAwesome;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    color: #fff;
    opacity: 0.7;
    pointer-events: none;
    transition: all 0.2s ease-in-out;
}

.map-hotspot:hover::before {
    opacity: 1;
    color: #007bff;
}*/

.popover-entity-image {
    width: 100%;
    min-width: 250px;
    height: 150px;
    object-fit: cover;
}

#custom-map-popover {
    position: absolute;
    display: none;
    z-index: 1029;
    max-width: 250px;
    min-width: 150px;
    font-size: 1.25rem;
    font-weight: 400;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0.3, 0.3, 0.3, 0.4);
    border-radius: 0.3rem;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    user-select: none;
}

#custom-map-popover .popover-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0.75rem;
    margin-bottom: 0;
    font-size: 1rem;
    font-weight: bold;
    border-top-left-radius: 0.2rem;
    border-top-right-radius: 0.2rem;
    border-bottom: none;
}

#custom-map-popover .close {
    position: absolute;
    right: 0;
    padding: 0.5rem 0.75rem;
    font-size: 1.5rem;
    opacity: 0.5;
    text-shadow: none;
    color: inherit;
}
.popover-title-text {
    width: 100%;
    text-align: center;
    padding: 0 1.25rem;
    margin-bottom: 0;
}
#custom-map-popover .close:hover {
    opacity: 0.8;
}

#custom-map-popover .popover-body {
    padding: 0;
    color: #212529;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}
#custom-map-popover .popover-details {
    margin: .5rem 0;
    font-size: .85rem;
}
#custom-map-popover::before {
    content: '';
    position: absolute;
    border-style: solid;
    top: 100%;
    left: 50%;    
    margin-left: -11px; 
    border-width: 11px;
    border-color: rgba(0.3, 0.3, 0.3, 0.4) transparent transparent transparent;
}
#custom-map-popover::after {
    content: '';
    position: absolute;
    border-style: solid;
    top: 100%;
    left: 50%;
    margin-left: -10px;
    border-width: 10px;
    border-color: #fff transparent transparent transparent;
}
.map-layout-wrapper table.dataTable {
    margin-top: 8px !important;
    min-width: 330px !important;
}
.shape-feedback-table {
    color: inherit;
    border-collapse: separate;
    border-spacing:0 .5rem;
}
.shape-feedback-table td, .shape-feedback-table th {
    border-top: 1px solid rgba(128, 128, 128, 0.2);
    border-bottom: 1px solid rgba(128, 128, 128, 0.2);
}
.shape-feedback-table td:first-of-type, .shape-feedback-table th:first-of-type {
    border-left: 1px solid rgba(128, 128, 128, 0.2);
    border-top-left-radius: .25rem;
    border-bottom-left-radius: .25rem;
}
.shape-feedback-table td:last-of-type, .shape-feedback-table th:last-of-type {
    border-right: 1px solid rgba(128, 128, 128, 0.2);
    border-top-right-radius: .25rem;
    border-bottom-right-radius: .25rem;
}
.shape-feedback-table thead th {
    border-bottom: 1px solid rgba(128, 128, 128, 0.2);
    font-size: .75rem;
}
.shape-feedback-table tbody tr {
    cursor: pointer;
    /*box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;*/
    transition: all 0.2s ease-in-out;;
}
.w-60 {
    width: 60%;
}
.fixed-column {
    width: 50px;
    text-align: right;
}
.shape-feedback-table tbody tr:hover {
    color: inherit;
}
#shape-feedback-table_length, #shape-feedback-table_filter {
    font-size: 12px;
}
#shape-feedback-table_filter input {
    border-radius: .25rem;
    margin-left: 0;
}
#shape-feedback-table_filter input::placeholder {
  color: rgba(128, 128, 128, 0.5);
}
#shape-feedback-table_filter label {
    width: 100%;
    margin-bottom: 0;
}
#shape-feedback-table_wrapper {
    display: block;
    overflow: hidden;
    position: sticky;
    top: -16px;
    background-color: white;
    z-index: 10;
    padding: 16px 15px 16px 15px;
    margin: -16px -15px -15px -15px;
    mask-image: linear-gradient(to bottom, black 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 95%, transparent 100%);
}
#shape-feedback-table_wrapper div.dataTables_paginate {
    text-align: center !important;
}
.popover-type-vendors .popover-header {
    background-color: #605ca8;
    color: white;
}

.popover-type-control_stations .popover-header {
    background-color: #5cb85c;
    color: white;
}

.popover-type-cashdesk .popover-header {
    background-color: #f0ad4e;
    color: white;
}

.popover-type-vendors:has(.popover-body:empty) .popover-header {
    border-radius: .25rem;
}
.popover-type-vendors:has(.popover-body:empty)::after {
    border-color: #605ca8 transparent transparent transparent !important;
}

.popover-type-control_stations:has(.popover-body:empty) .popover-header {
    border-radius: .25rem;
}
.popover-type-control_stations:has(.popover-body:empty)::after {
    border-color: #5cb85c transparent transparent transparent !important;
}

.popover-type-cashdesk:has(.popover-body:empty) .popover-header {
    border-radius: .25rem;
}
.popover-type-cashdesk:has(.popover-body:empty)::after {
    border-color: #f0ad4e transparent transparent transparent !important;
}

.entity-category {
    font-size: 80%;
    opacity: .5;
}
.map-layout-wrapper .form-control {
    border-color: rgba(128, 128, 128, 0.2);
}
.map-layout-wrapper table.dataTable thead .sorting:after,
.map-layout-wrapper table.dataTable thead .sorting_asc:after,
.map-layout-wrapper table.dataTable thead .sorting_desc:after {
    position: absolute;
    top: 12px;
    right: 4px;
    display: block;
    font-family: 'FontAwesome';
    opacity: 0.2;
}
.map-layout-wrapper table.dataTable thead .sorting:after {
    content: "\f0ec";
    transform: rotate(90deg);
}
.map-layout-wrapper table.dataTable thead .sorting_asc:after {
    content: "\f160";
    opacity: 1;
}
.map-layout-wrapper table.dataTable thead .sorting_desc:after {
    content: "\f161";
    opacity: 1;
}
.floor-map-icon {
    height: 22px;
}
.shape-feedback-table.table.dataTable tbody tr.active td img.floor-map-icon {
    filter: invert(1);
}
.dataTables_filter {
    position: relative;
}
.btnClrSearch {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    border: none;
    background-color: transparent;
    opacity: .5;
}
.btnClrSearch:hover {
    opacity: 1;
}
@media (min-width: 576px) {
    .form-inline .dataTables_filter label {
        justify-content: flex-start !important;
    }
}
@media only screen and (max-width: 767px) {
    .map-layout-wrapper {
        flex-direction: column-reverse;
    }
    .col-table-viewport {
        flex: .8;
        max-width: 100%;
    }
    .col-map-viewport {
        flex: 1;
        max-width: 100%;
    }
    .map-layout-wrapper.table-viewport-closed .col-table-viewport {
        flex: 0.05;
        max-width: 100%;
    }
    .map-layout-wrapper.table-viewport-closed .col-map-viewport {
        flex: 1;
        max-width: 100%;
    }

    .col-table-viewport {
        border-top: 1px solid rgba(128, 128, 128, 0.2);
        border-right: none;
    }
    .table-viewport-toggle-btn {
        transform: rotate(270deg);
        -webkit-transform: rotate(270deg);
        left: calc(50% - 12px);
        top: calc(55.5% - 43px);
    }
    .map-layout-wrapper.table-viewport-closed .table-viewport-toggle-btn {
        left: calc(50% - 12px);
        top: calc(95% - 48.5px);
    }
}
