.teritory__iframe iframe{
    height:350px;
    width:100%;
    border:0;
}
table.dataTable>tbody>tr.dt-hasChild+tr ul.dtr-details {
    display: flex;
    list-style-type: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    flex-direction: column;
}
table.dataTable>tbody>tr.dt-hasChild+tr ul.dtr-details>li:first-child {
    padding-top: 0;
}
table.dataTable>tbody>tr.dt-hasChild+tr ul.dtr-details>li {
    border-bottom: 1px solid #efefef;
    padding: 0.5em 0;
    display: grid;
    grid-template-columns: 200px 1fr;
}
@media(max-width:425px){
    table.dataTable>tbody>tr.dt-hasChild+tr ul.dtr-details>li {
        grid-template-columns: 1fr;
    }
}
.teritory__areas h2{
    margin-top: 0;
}
table.dataTable>tbody>tr.dt-hasChild+tr span.dtr-title {
    display: inline-block;
    min-width: 75px;
    font-weight: bold;
}
.btn-ico{
    width:24px;
    height:24px;
    display: inline-block;
}
.suvestine-wrapper .teritory__details,
.suvestine-wrapper .teritory__areas,
.suvestine-wrapper .headline-container{
    margin:0 auto;
    max-width:100%;
    width: 1100px;
}

@media(max-width:1170px){
    .suvestine-wrapper .teritory__details,
    .suvestine-wrapper .teritory__areas,
    .suvestine-wrapper .headline-container{
        padding: 20px;
    }
    .suvestine-wrapper .teritory__areas{
        padding: 40px 20px;
    }
}
.teritory__details .headline__list{
    display: grid;
    gap: 30px;
    list-style-type: none;
    padding-left: 0;
    grid-template-columns: repeat(3, 1fr);
}
@media(max-width:768px){
    .teritory__details .headline__list{
        grid-template-columns: repeat(2, 1fr);
    }
}
@media(max-width:425px){
    .teritory__details .headline__list{
        grid-template-columns: repeat(1, 1fr);
    }
}
.teritory__details .headline__list li span{
    display:block;
}

.teritory__details .stats{
    font-size: 22px;
    font-weight: 700;
    line-height: 26px;
}
.teritory__details .headline__list li span.text{
    font-size: 14px;
    color: var(--e-global-color-text);
    font-weight: 500;
    line-height: 16px;
    margin-top:5px;
}
.suvestine-wrapper .headline{
    background-color: var(--e-global-color-ec0246e );
    padding-top: 40px;
    position: relative;
}
.suvestine-wrapper .headline:after {
    content: '';
    width: 100%;
    height: 20%;
    background-color: #fff;
    position: absolute;
    bottom: 0;
    left: 0;
}
.suvestine-wrapper .headline-container{
    position: relative;
    z-index: 1;
}
#teritory-areas_wrapper {
    border: 1px solid rgba(205, 213, 223, 1);
    border-radius: 8px;
}
#teritory-areas_wrapper .top {
    padding: 8px;
    height: 56px;
}
#teritory-areas th{
    font-size: 14px;
    line-height: 16px;
    font-weight: 400;
    color: var(--am-label-color);
    border-bottom: 1px solid rgba(205, 213, 223, 1);
    background-color: rgb(248, 250, 252);
    border-top: 1px solid rgba(205, 213, 223, 1);
    text-shadow: var(--am-label-shadow);
}
#teritory-areas td {
    font-size: 14px;
    line-height: 19px;
    color: rgba(16, 24, 40, 1);
    border-bottom: 1px solid rgba(205, 213, 223, 1);
    border-top: none;
}
#teritory-areas_wrapper.dataTables_wrapper .dataTables_paginate .paginate_button{
    padding:0.15em 1em;
    border:0;
}
#teritory-areas_wrapper.dataTables_wrapper .dataTables_paginate .paginate_button.current{
    border:0;
    background:#dfdfdf;
}
#teritory-areas_wrapper.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover,
#teritory-areas_wrapper.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    border: 0 !important;
    background: var(--e-global-color-ec0246e ) !important;
    color: var(--am-label-color) !important;
}

#teritory-areas_wrapper .bottom .dataTables_info {
    font-size: 14px;
    color: var(--am-label-color);
}

#teritory-areas_wrapper .bottom {
    padding: 8px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}
.dataTables_wrapper .dataTables_paginate .paginate_button {
    box-sizing: border-box;
    display: inline-block;
    min-width: 1.5em;
    padding: 0 1em;
    margin-left: 2px;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    color: #333 !important;
    border: 1px solid transparent;
    border-radius: 2px;
}
.paging_simple_numbers {
    font-size: 14px;
    font-weight: 400;
    color: var(--am-label-color);
    text-shadow: var(--am-label-shadow);
}
.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #aaa;
    border-radius: 3px;
    padding: 5px;
    background-color: transparent;
    margin-left: 3px;
}
#teritory-areas_filter input {
    border-color: rgba(205, 213, 223, 1);
    height: 40px;
    min-width: 300px;
    padding: 0 12px;
}
#teritory-areas_filter label{
    font-size: 14px;
    font-weight: 400;
    color: var(--am-label-color);
    text-shadow: var(--am-label-shadow);
}
.space-40{
    display:block;
    height:40px;
    width:100%;
}
.suvestine-wrapper{
    display: flex;
    flex-direction: column;
    gap: 30px;
}
li.dfx {
    grid-template-columns: 1fr !important;
}
li.dfx .dfx-row,
li.dfx > p{
    display:grid;
    gap:8px;
    grid-template-columns: repeat(3, 1fr);
}
li.dfx p{
    padding: 2px 4px;
    margin:0;
}
li.dfx .dfx-row span.dtr-title{
    display:none !important;
}
li.dfx .dfx-row{
    border-top:1px solid #efefef;
    padding: 4px 0
}
@media(max-width:660px){
    li.dfx .dfx-row{
        border-top:1px solid #efefef;
        padding: 16px 0
    }
    li.dfx .dfx-row span.dtr-title{
        display: inline-block !important;
    }
    li.dfx > p{
        display:none;
    }
    li.dfx .dfx-row p{
        display:grid;
        grid-template-columns: 1fr 1fr !important;
        gap:4px;
    }
    li.dfx .dfx-row{
        grid-template-columns: 1fr !important;
    }
    li.dfx > p{
        grid-template-columns: 1fr !important;
    }
}

/* Taškinio tvarkymo ploto žyma plotų lentelėje (issue #72, 1 punktas) */
.plot-type {
    display: inline-block;
    margin-left: 6px;
    padding: 0 6px;
    border-radius: 10px;
    font-size: 11px;
    line-height: 18px;
    vertical-align: middle;
    background: #e8f0fe;
    color: #121a55;
    white-space: nowrap;
}

/* GIS atsisiuntimas (issue #72, 4 punktas) */
.gis-download { margin-top: 24px; }
.gis-download__title { font-size: 18px; margin: 0 0 12px; }
.gis-download__group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.gis-download__label { flex-basis: 100%; font-weight: 600; }
.gis-download__btn {
    display: inline-block; padding: 6px 14px; border: 1px solid #121a55; border-radius: 4px;
    color: #121a55; text-decoration: none; font-size: 14px; line-height: 20px;
}
.gis-download__btn:hover, .gis-download__btn:focus-visible { background: #121a55; color: #fff; outline-offset: 2px; }
/* Tik ekrano skaitytuvams – nuorodos tekstas be konteksto („GeoJSON“) būtų dviprasmis. */
.gis-download__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gis-download__empty { color: #666; font-style: italic; }
.gis-download__note { font-size: 12px; color: #666; margin: 4px 0 0; }