#mapid .leaflet-tile-pane {
    -webkit-filter: grayscale(50%) brightness(100%);
    filter: grayscale(50%) brightness(100%)
}

#mapid {
    width: 100%;
    height: calc(100vh - 60px);
}

#sidebar {
    height: calc(100% - 20px);
    width: 400px;
    position: absolute;
    top: 0;
    right: 0;
    background-color: white;
    overflow-y: auto;
    padding: 24px;
    margin: 10px;
    border-radius: 8px;
    z-index: 9999;
    visibility: hidden;
}

@media(max-width:460px) {
    #sidebar {
        width: calc(100% - 20px);
    }
}

#sidebar_content {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

#sidebar_content>div {
    padding-bottom: 24px;
}

#close_sidebar {
    position: absolute;
    right: 20px;
    display: inline-block;
    width: 24px;
    height: 24px;
    overflow: hidden;
    cursor: pointer;
    float: right;
}

#close_sidebar:hover::before,
#close_sidebar:hover::after {
    background: #005c45;
}

#close_sidebar::before,
#close_sidebar::after {
    content: "";
    position: absolute;
    width: 100%;
    top: 50%;
    left: 0;
    height: 2px;
    margin-top: -1px;
    background: #000;
}

#close_sidebar::before {
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
}

#close_sidebar::after {
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

#sidebar h2 {
    font-size: 20px;
    margin-top: 0
}

#sidebar .list-item {
    display: grid;
    gap: 12px;
    grid-template-columns: 40px 1fr;
    margin-bottom: 16px;
}

#sidebar .list-item-icon {
    background-color: #EEF8F2;
    padding: 4px;
    border-radius: 4px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#sidebar .list-item-icon svg {
    fill: #005c45
}

#sidebar .list-item-label {
    display: block;
    opacity: 0.56;
    font-size: 14px;
}

#sidebar .list-item-status {
    display: inline-block;
    padding: 4px 8px;
    font-size: 14px;
    border-radius: 4px;
    position: relative;
    top: -12px;
    margin-bottom: 4px;
}

#sidebar .list-item-status.designing {
    background-color: #F5F3FF;
    color: #8B5CF6;
}

#sidebar .list-item-status.ongoing {
    background-color: #FFFBEB;
    color: #D97706;
}

#sidebar .list-item-status.completed {
    background-color: #F0FDF4;
    color: #16A34A;
}

#sidebar .list-item-button {
    background-color: #005c45;
    color: #fff;
    border-radius: 4px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    display: block;
    position: sticky;
    bottom: 0;
    cursor: pointer;
    margin-top: auto;
    box-shadow: 0 -8px 0 0 #fff, 0 24px 0 0 #fff;
}

#sidebar .list-item-button:hover {
    box-shadow: 0 2px 4px rgba(0, 128, 96, .16);
    background-color: #006d52;
}

#sidebar ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

#sidebar ul li {
    display: grid;
    grid-template-columns: 50% 1fr;
    padding: 12px 16px;
}

#sidebar ul li:nth-child(even) {
    background-color: #fafafa;
}

#sidebar table {
    font-size: 14px;
    margin-top: 4px;
    border: 1px solid #e5e7eb;
    border-collapse: collapse;
    width: 100%;
    text-align: left;
    margin-bottom: 16px;
}

#sidebar table td {
    border: 1px solid #e5e7eb;
    padding: 4px;
}

#sidebar table th {
    background-color: #005c45;
    color: #fff;
    font-weight: 500;
    padding: 4px;
}

.leaflet-control-layers {
    padding: 6px 8px !important;
    font: 14px/16px Arial, Helvetica, sans-serif !important;
    background: white !important;
    background: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2) !important;
    border-radius: 4px !important;
    border: 0 !important;
    width: 200px;
}

.leaflet-control-layers .leaflet-control-layers-overlays label div {
    padding: 0 8px 0 0;
    height: 32px;
    display: grid;
    grid-template-columns: 24px 1fr;
    align-items: center;
    cursor: pointer;
}

.biip_view {
    background-color: #fff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    padding: 6px;
    font-size: 14px;
    text-align: center;
    display: grid;
    grid-template-columns: 50% 1fr;
    width: 200px;
}

.biip_select select {
    width: 100%;
    min-width: 200px;
    padding: 8px 6px;
    border: 1px solid transparent;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.biip_view #biip_table_view,
.biip_view #biip_map_view {
    border: 0;
    background-color: transparent;
    cursor: pointer;
    height: 28px;
    display: flex;
    align-items: center;
    gap: 4px;
    color: #333;
    border-radius: 4px;
}

.biip_view #biip_table_view.active,
.biip_view #biip_map_view.active {
    color: #005c45;
}

.biip_view #biip_table_view.active svg,
.biip_view #biip_map_view.active svg {
    fill: #005c45;
}

.biip_view #biip_table_view:hover,
.biip_view #biip_map_view:hover {
    background-color: #EEF8F2;
}

.biip-select {
    display: block;
    width: 100%;
    padding: 0.6125rem 3rem 0.6125rem 1rem;
    -moz-padding-start: calc(1rem - 3px);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #1e2022;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2371869d' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px 12px;
    border: 0.0625rem solid rgba(33, 50, 91, .1);
    border-radius: 0.3125rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    appearance: none;


    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    padding-left: 1rem;
    font-size: .875rem;
    border-radius: 0.3125rem;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.biip-select:focus-visible {
    outline: none;
}

.table_view_header {
    display: flex;
    justify-content: space-between;
    padding: 10px;
}

#zeldynai_table_wrapper {
    background-color: #fff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    margin: 16px 10px 16px 10px;
    padding: 24px;
    border-radius: 8px;
}

.biip_table_header {
    font-size: 20px;
    font-weight: 700;
}

#zeldynai_table_wrapper tbody {
    color: rgb(107 114 128);
    font-size: 14px;
}

#zeldynai_table_wrapper tbody td:first-child {
    color: rgb(17 24 39);
}

#zeldynai_table.dataTable tbody th,
#zeldynai_table.dataTable tbody td {
    padding: 11px 10px;
    border-top: 1px solid #e5e7eb;
}

#zeldynai_table.dataTable thead th,
#zeldynai_table.dataTable thead td {
    padding: 10px;
    border-bottom: none;
}

#zeldynai_table_wrapper .dataTable.no-footer {
    border-bottom: 1px solid #e5e7eb;
}

#zeldynai_table_wrapper thead {
    color: rgb(17 24 39);
    font-size: 14px;
    background-color: #EEF8F2;
}

#zeldynai_table_wrapper .bottom {
    margin-top: 16px;
    border: none
}

#zeldynai_table_wrapper .top {
    margin-bottom: 16px;
    border: none;
    display: flex;
    justify-content: space-between;
}

#zeldynai_table_wrapper .dataTables_info {
    color: rgb(107 114 128);
    font-size: 14px;
}

#zeldynai_table_wrapper .dataTables_paginate span a,
#zeldynai_table_wrapper .dataTables_paginate a {
    font-size: 14px;
    color: rgb(107 114 128);
}

#zeldynai_table_wrapper .dataTables_paginate span a {
    color: #fff;
    background-color: #fff;
    border-color: #fff;
    box-shadow: none;
}

#zeldynai_table_wrapper .dataTables_paginate span a.current {
    background-color: #005c45;
    color: #fff !important;
    box-shadow: none;
    border-radius: 4px;
}

#zeldynai_table_wrapper .dataTables_paginate .paginate_button:hover {
    color: white !important;
    border: 1px solid #005c45 !important;
    background: #005c45 !important;
}

#zeldynai_table_filter input {
    margin: 0;
    padding: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding: 0.5rem 0.75rem;
    outline: 0;
    width: 100%;
    background-color: white;
    font-size: 1rem;
    color: var(--am-text-color);
    border: 1px solid var(--am-border-color);
    border-radius: 4px;
    height: 40px;
    line-height: 27px;
    font-family: inherit;
}

#zeldynai_table_filter input:focus {
    border-color: var(--am-secondary-color);
    box-shadow: var(--am-box-shadow);
}

#zeldynai_table_filter label {
    display: flex;
    align-items: center;
    gap: 16px;
}

.c-address {
    width: 30%;
}

.map-scroll:before {
    content: 'Naudokite Ctrl + pelės ratuką, norėdami padidinti ar sumažinti žemėlapio mastelį.';
    position: absolute;
    line-height: 1.5rem;
    display:flex;
    color:#fff;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    font-size: 24px;
    width: 100vw;
    height: 100vh;
    padding:20px;
}

.map-scroll:after {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    content: '';
    background: #005c45e0;
    z-index: 999;
    transition: background 0.3s, border-radius 0.3s, opacity 0.3s;
}

@media(max-width:768px) {
    .c-address {
        min-width: 200px;
    }

    #zeldynai_table_filter {
        margin-top: 8px;
    }

    #zeldynai_table_wrapper .top {
        display: block;
    }

    .dataTables_wrapper .dataTables_filter {
        float: initial;
    }

    table.dataTable.dtr-inline.collapsed>tbody>tr>td.dtr-control,
    table.dataTable.dtr-inline.collapsed>tbody>tr>th.dtr-control {
        padding-left: 30px !important;
    }
}