﻿/* Optional mobile tweaks (can be deleted if you only want icons). */

/*
 * Match the look of the “Tema / Sav / Mėn / Met” header row used in the
 * HTML *_naujausi_.html pages (e.g. ChemTeisEP_mob/_naujausi_.html).
 *
 * Applied to TablePress 98/99 (Liko laiko pages):
 * - background: #ffba00
 * - font: Roboto 14px
 */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

:is(#tablepress-95, #tablepress-98, #tablepress-99, #tablepress-108, #tablepress-109, #tablepress-201, #tablepress-95_wrapper, #tablepress-98_wrapper, #tablepress-99_wrapper, #tablepress-108_wrapper, #tablepress-109_wrapper, #tablepress-201_wrapper, .likolaiko-page) {
    --tttp-header-bg: #ffba00;
    --tttp-timestrip-day: 0.85rem;
    --tttp-timestrip-arrow: 0.65rem;
    --tttp-timestrip-gap: 3px;
}

/*
 * Liko laiko pages (TablePress 98/99) used to include a page-level title block:
 * “Lietuvos ... teisinių aktų PROJEKTŲ apžvalga ...”.
 * Titles are now intentionally removed to avoid layout regressions.
 *
 * Hide it via CSS (prevents flicker before JS removes it).
 */
body.page-id-6638 .likolaiko-title,
body.page-id-6640 .likolaiko-title,
body:has(#tablepress-108) .likolaiko-title,
body:has(#tablepress-109) .likolaiko-title {
    display: none !important;
}

/*
 * Liko laiko toprow: flex container so the triangle stretches to the full
 * height of the two-line meta block.
 */
.likolaiko-toprow {
    display: flex !important;
    align-items: stretch !important;
}

/* Meta block takes all remaining horizontal space */
.likolaiko-meta {
    flex: 1 !important;
    text-align: right !important;
}

/*
 * Liko laiko nav triangle link.
 * The &#9668; Unicode glyph is hidden (font-size:0); a perfectly equilateral
 * CSS-border triangle is drawn via ::before instead.
 * For an equilateral left-pointing triangle: W = H*sqrt(3).
 * H=16px → W≈28px gives ~32px total height ≈ two lines of font-size:small text.
 */
.likolaiko-triangle,
.likolaiko-triangle:link,
.likolaiko-triangle:visited,
.likolaiko-triangle:hover,
.likolaiko-triangle:active {
    font-size: 0 !important;       /* hide the Unicode char */
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    transform: none !important;
    color: transparent !important;
}

/* CSS border triangle removed — triangle is now part of nav_strips.png image */
.likolaiko-triangle::before {
    content: none !important;
    display: none !important;
}

/*
 * TablePress 95/98/99 tweaks:
 * - Header borders: white 1px (instead of dark/black)
 * - Iš/Tags icons: slightly smaller and top-aligned
 */

/*
 * Keep the built-in TablePress/DataTables search box visible.
 * Some site CSS hides these controls for tables 95/98/99; users requested
 * the search input to remain available.
 */
/* Keep the built-in DT search box hidden on all LikoLaiko tables. */
#tablepress-95_wrapper .dt-search,
#tablepress-98_wrapper .dt-search,
#tablepress-99_wrapper .dt-search,
#tablepress-108_wrapper .dt-search,
#tablepress-109_wrapper .dt-search,
#tablepress-201_wrapper .dt-search,
#tablepress-95_wrapper div.dt-search,
#tablepress-98_wrapper div.dt-search,
#tablepress-99_wrapper div.dt-search,
#tablepress-108_wrapper div.dt-search,
#tablepress-109_wrapper div.dt-search,
#tablepress-201_wrapper div.dt-search,
#tablepress-95_wrapper .dataTables_filter,
#tablepress-98_wrapper .dataTables_filter,
#tablepress-99_wrapper .dataTables_filter,
#tablepress-108_wrapper .dataTables_filter,
#tablepress-109_wrapper .dataTables_filter,
#tablepress-201_wrapper .dataTables_filter,
#tablepress-95_wrapper div.dataTables_filter,
#tablepress-98_wrapper div.dataTables_filter,
#tablepress-99_wrapper div.dataTables_filter,
#tablepress-108_wrapper div.dataTables_filter,
#tablepress-109_wrapper div.dataTables_filter,
#tablepress-201_wrapper div.dataTables_filter {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Also hide the DT info text (e.g. "Rodomi įrašai nuo 1 iki 16 iš 16 įrašų"). */
#tablepress-95_wrapper .dt-info,
#tablepress-98_wrapper .dt-info,
#tablepress-99_wrapper .dt-info,
#tablepress-108_wrapper .dt-info,
#tablepress-109_wrapper .dt-info,
#tablepress-201_wrapper .dt-info,
#tablepress-95_wrapper .dataTables_info,
#tablepress-98_wrapper .dataTables_info,
#tablepress-99_wrapper .dataTables_info,
#tablepress-108_wrapper .dataTables_info,
#tablepress-109_wrapper .dataTables_info,
#tablepress-201_wrapper .dataTables_info {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Hide the entire non-table layout row on mobile/tablet so no empty gap remains
   when .dt-search / .dt-info are hidden. */
@media (max-width: 782px) {
    #tablepress-95_wrapper .dt-layout-row:not(.dt-layout-table),
    #tablepress-98_wrapper .dt-layout-row:not(.dt-layout-table),
    #tablepress-99_wrapper .dt-layout-row:not(.dt-layout-table),
    #tablepress-108_wrapper .dt-layout-row:not(.dt-layout-table),
    #tablepress-109_wrapper .dt-layout-row:not(.dt-layout-table),
    #tablepress-201_wrapper .dt-layout-row:not(.dt-layout-table) {
        display: none !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

#tablepress-95_wrapper .dt-search label,
#tablepress-98_wrapper .dt-search label,
#tablepress-99_wrapper .dt-search label,
#tablepress-108_wrapper .dt-search label,
#tablepress-109_wrapper .dt-search label,
#tablepress-201_wrapper .dt-search label,
#tablepress-95_wrapper .dataTables_filter label,
#tablepress-98_wrapper .dataTables_filter label,
#tablepress-99_wrapper .dataTables_filter label,
#tablepress-108_wrapper .dataTables_filter label,
#tablepress-109_wrapper .dataTables_filter label,
#tablepress-201_wrapper .dataTables_filter label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

/* Header: no visible borders between cells. */
:is(#tablepress-95, #tablepress-98, #tablepress-99, #tablepress-108, #tablepress-109, #tablepress-201) thead :is(th, td),
:is(#tablepress-95_wrapper, #tablepress-98_wrapper, #tablepress-99_wrapper, #tablepress-108_wrapper, #tablepress-109_wrapper, #tablepress-201_wrapper) :is(table.tablepress, table.dataTable) thead :is(th, td) {
    border: 0 !important;
}

/*
 * Iš dropdown (tables 95/98/99)
 * Ensure the menu is an overlay anchored to the header cell,
 * not a block that expands the header and ends up “at the bottom”.
 */

/* Global menu styling (menu may be moved to <body> for fixed positioning). */
.tttp-ish-filter-menu {
    display: none;
    flex-direction: column !important;
    align-items: stretch;
    gap: 0;

    z-index: 9999 !important;
    width: max-content;
    min-width: 0;
    max-width: 85vw;
    max-height: 42vh;
    overflow: auto;
    padding: 2px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #ffffff;
    color: #000000;
    box-shadow: none;
}

.tttp-ish-filter-menu.is-open {
    display: flex !important;
}

.tttp-ish-filter-menu .tttp-ish-filter-item {
    display: flex;
    align-items: center;
    gap: 4px;
    width: auto;
    min-height: 20px;
    padding: 1px 4px;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 11.5px;
    line-height: 1.05;
}

@media (max-width: 782px) {
    .tttp-ish-filter-menu {
        max-width: 92vw;
        padding: 4px;
    }
    .tttp-ish-filter-menu .tttp-ish-filter-item {
        min-height: 28px;
        padding: 5px 8px;
        font-size: 13px;
        gap: 6px;
    }
    .tttp-ish-filter-menu .tttp-ish-filter-item img {
        height: 14px;
    }
}

.tttp-ish-filter-menu .tttp-ish-filter-item + .tttp-ish-filter-item {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.tttp-ish-filter-menu .tttp-ish-filter-item img {
    height: 11px;
    width: auto;
    display: block;
}

/* LikoLaiko (98/99): back button in the empty top-left corner (above “Nr”). */
:is(.likolaiko-toprow.tttp-likolaiko-toprow, .likolaiko-meta.tttp-likolaiko-meta) {
    position: relative;
    /* Don't reserve extra space; keep layout unchanged. */
    min-height: 0;
}

/* LikoLaiko pages: keep the nav/meta row sticky above the table.
   (The JS sticky module offsets table headers by this element's height.) */
.likolaiko-page .likolaiko-toprow {
    position: sticky !important;
    top: var(--tttp-sticky-top, 0px) !important;
    z-index: 10000 !important;
    background: #ffffff !important;
}

:is(.likolaiko-toprow.tttp-likolaiko-toprow, .likolaiko-meta.tttp-likolaiko-meta) .tttp-likolaiko-back5boxes {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    transform: none;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 10px;
    line-height: 1;
    font-weight: 700;
    padding: 0 10px;
    border: 0;
    background: #00818F;
    color: #ffffff;
    opacity: 0.95;
}

:is(.likolaiko-toprow.tttp-likolaiko-toprow, .likolaiko-meta.tttp-likolaiko-meta) .tttp-likolaiko-back5boxes:hover {
    filter: brightness(0.95);
}

@media (max-width: 782px) {
    :is(.likolaiko-toprow.tttp-likolaiko-toprow, .likolaiko-meta.tttp-likolaiko-meta) .tttp-likolaiko-back5boxes {
        font-size: 11px;
        padding: 0 11px;
    }
}
:is(#tablepress-95, #tablepress-98, #tablepress-99, #tablepress-108, #tablepress-109, #tablepress-201) thead th,
:is(#tablepress-95_wrapper, #tablepress-98_wrapper, #tablepress-99_wrapper, #tablepress-108_wrapper, #tablepress-109_wrapper, #tablepress-201_wrapper) :is(table.tablepress, table.dataTable) thead th {
    position: relative !important;
    overflow: visible !important;
}

/* DataTables scroll-head wrappers can clip dropdown overlays; allow them to overflow vertically. */
:is(#tablepress-95_wrapper, #tablepress-98_wrapper, #tablepress-99_wrapper, #tablepress-108_wrapper, #tablepress-109_wrapper, #tablepress-201_wrapper) :is(.dataTables_scrollHead, .dt-scroll-head, .dataTables_scrollHeadInner, .dt-scroll-headInner) {
    overflow: visible !important;
}

:is(#tablepress-95, #tablepress-98, #tablepress-99, #tablepress-108, #tablepress-109, #tablepress-201, #tablepress-95_wrapper, #tablepress-98_wrapper, #tablepress-99_wrapper, #tablepress-108_wrapper, #tablepress-109_wrapper, #tablepress-201_wrapper) .tttp-ish-filter-menu {
    position: absolute !important;
    top: calc(100% + 2px) !important;
    left: 0 !important;
    z-index: 9999 !important;
    display: none;
    flex-direction: column;
    gap: 0;
    min-width: 110px;
    max-width: min(260px, 85vw);
    max-height: 42vh;
    overflow: auto;
    padding: 2px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #ffffff;
    color: #000000;
    box-shadow: none;
}

:is(#tablepress-95, #tablepress-98, #tablepress-99, #tablepress-108, #tablepress-109, #tablepress-201, #tablepress-95_wrapper, #tablepress-98_wrapper, #tablepress-99_wrapper, #tablepress-108_wrapper, #tablepress-109_wrapper, #tablepress-201_wrapper)
    .tttp-ish-filter-menu.is-open {
    display: flex !important;
}

:is(#tablepress-95, #tablepress-98, #tablepress-99, #tablepress-108, #tablepress-109, #tablepress-201, #tablepress-95_wrapper, #tablepress-98_wrapper, #tablepress-99_wrapper, #tablepress-108_wrapper, #tablepress-109_wrapper, #tablepress-201_wrapper)
    .tttp-ish-filter-menu .tttp-ish-filter-item {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
    min-height: 20px;
    padding: 1px 4px;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 11.5px;
    line-height: 1.05;
}

:is(#tablepress-95, #tablepress-98, #tablepress-99, #tablepress-108, #tablepress-109, #tablepress-201, #tablepress-95_wrapper, #tablepress-98_wrapper, #tablepress-99_wrapper, #tablepress-108_wrapper, #tablepress-109_wrapper, #tablepress-201_wrapper)
    .tttp-ish-filter-menu .tttp-ish-filter-item + .tttp-ish-filter-item {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

:is(#tablepress-95, #tablepress-98, #tablepress-99, #tablepress-108, #tablepress-109, #tablepress-201, #tablepress-95_wrapper, #tablepress-98_wrapper, #tablepress-99_wrapper, #tablepress-108_wrapper, #tablepress-109_wrapper, #tablepress-201_wrapper)
    .tttp-ish-filter-menu .tttp-ish-filter-item img {
    height: 11px;
    width: auto;
    display: block;
}

:is(#tablepress-95, #tablepress-98, #tablepress-99, #tablepress-108, #tablepress-109, #tablepress-201, #tablepress-95_wrapper, #tablepress-98_wrapper, #tablepress-99_wrapper, #tablepress-108_wrapper, #tablepress-109_wrapper, #tablepress-201_wrapper)
    .tttp-ish-filter-menu .tttp-ish-filter-item.is-active {
    font-weight: 700;
}

/* Header background + font (TablePress 95/98/99/108/109). */
:is(#tablepress-95, #tablepress-98, #tablepress-99, #tablepress-108, #tablepress-109, #tablepress-201) thead :is(th, td),
:is(#tablepress-95_wrapper, #tablepress-98_wrapper, #tablepress-99_wrapper, #tablepress-108_wrapper, #tablepress-109_wrapper, #tablepress-201_wrapper) :is(table.tablepress, table.dataTable) thead :is(th, td),
.likolaiko-page :is(#tablepress-95, #tablepress-98, #tablepress-99, #tablepress-108, #tablepress-109, #tablepress-201) thead :is(th, td),
.likolaiko-page :is(#tablepress-95_wrapper, #tablepress-98_wrapper, #tablepress-99_wrapper, #tablepress-108_wrapper, #tablepress-109_wrapper, #tablepress-201_wrapper) :is(table.tablepress, table.dataTable) thead :is(th, td),
:is(table.tablepress-id-95, table.tablepress-id-98, table.tablepress-id-99, table.tablepress-id-108, table.tablepress-id-109, table.tablepress-id-201) thead :is(th, td),
:is(table.tablepress-id-95, table.tablepress-id-98, table.tablepress-id-99, table.tablepress-id-108, table.tablepress-id-109, table.tablepress-id-201).fixedHeader-floating thead :is(th, td),
:is(table.tablepress-id-95, table.tablepress-id-98, table.tablepress-id-99, table.tablepress-id-108, table.tablepress-id-109, table.tablepress-id-201).fixedHeader-locked thead :is(th, td) {
    background: #ffba00 !important;
    background-image: none !important;
    color: #ffffff !important;
    font-family: 'Roboto', Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    padding-left: 5px !important;
}

/*
 * Liko laiko title row (logo + title) INSIDE the TablePress table.
 * Implemented as an extra <thead> row above the yellow header row.
 */
:is(#tablepress-95, #tablepress-98, #tablepress-99, #tablepress-108, #tablepress-109, #tablepress-201) thead tr.tttp-likolaiko-title-row > th,
:is(#tablepress-95_wrapper, #tablepress-98_wrapper, #tablepress-99_wrapper, #tablepress-108_wrapper, #tablepress-109_wrapper, #tablepress-201_wrapper) :is(table.tablepress, table.dataTable) thead tr.tttp-likolaiko-title-row > th {
    background-image: none !important;
    border: 0 !important;
    color: #ffffff !important;
    font-family: 'Roboto', Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    padding: 6px 0 6px 8px !important;
    text-align: right !important;
}

/* Color convention from the corresponding mobile “_naujausi_” pages */
:is(#tablepress-98, #tablepress-108) thead tr.tttp-likolaiko-title-row > th,
:is(#tablepress-98_wrapper, #tablepress-108_wrapper) :is(table.tablepress, table.dataTable) thead tr.tttp-likolaiko-title-row > th {
    background: #913F3D !important;
}

:is(#tablepress-99, #tablepress-109) thead tr.tttp-likolaiko-title-row > th,
:is(#tablepress-99_wrapper, #tablepress-109_wrapper) :is(table.tablepress, table.dataTable) thead tr.tttp-likolaiko-title-row > th {
    background: #3D5D75 !important;
}

:is(#tablepress-95, #tablepress-98, #tablepress-99, #tablepress-108, #tablepress-109, #tablepress-201) thead tr.tttp-likolaiko-title-row .tttp-likolaiko-titlebar {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
    max-width: 100% !important;
}

/*
 * Liko laiko SUPER-HEADER row:
 * an extra 1-cell row (colspan=N) ABOVE the normal header row for TablePress 98/99/108/109.
 */
:is(#tablepress-95, #tablepress-98, #tablepress-99, #tablepress-108, #tablepress-109, #tablepress-201) thead tr.tttp-likolaiko-superheader-row > :is(th, td),
:is(#tablepress-95_wrapper, #tablepress-98_wrapper, #tablepress-99_wrapper, #tablepress-108_wrapper, #tablepress-109_wrapper, #tablepress-201_wrapper) :is(table.tablepress, table.dataTable) thead tr.tttp-likolaiko-superheader-row > :is(th, td) {
    text-align: center !important;
    padding: 6px 5px !important;
    line-height: 1.2 !important;
    /* Critical: do not allow the superheader text to widen the table/columns. */
    white-space: normal !important;
    /* Do not hijack sorting click targets. */
    pointer-events: none !important;
}

:is(#tablepress-95, #tablepress-98, #tablepress-99, #tablepress-108, #tablepress-109, #tablepress-201, #tablepress-95_wrapper, #tablepress-98_wrapper, #tablepress-99_wrapper, #tablepress-108_wrapper, #tablepress-109_wrapper, #tablepress-201_wrapper) thead tr.tttp-likolaiko-superheader-row .tttp-likolaiko-superheader {
    display: block !important;
    width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}

@media (min-width: 783px) {
    /*
     * DataTables scroll containers can cause the header table to be slightly narrower
     * than the visible table/wrapper, leaving the last header cell border “floating”
     * inside the table area. Force the scroll head/body tables to fill the wrapper.
     */
    :is(#tablepress-95_wrapper, #tablepress-98_wrapper, #tablepress-99_wrapper, #tablepress-108_wrapper, #tablepress-109_wrapper, #tablepress-201_wrapper) :is(
            .dataTables_scrollHeadInner,
            .dataTables_scrollHeadInner table,
            .dataTables_scrollBody table,
            .dt-scroll-headInner,
            .dt-scroll-headInner table,
            .dt-scroll-body table
        ) {
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

.tttp-likolaiko-titlebar__link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
    flex-direction: row-reverse !important;
    text-decoration: none !important;
    color: inherit !important;
    flex: 0 1 auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
}

.tttp-likolaiko-titlebar__logo {
    flex: 0 0 auto !important;
}

.tttp-likolaiko-titlebar__search {
    flex: 0 0 auto !important;
}

/* Search must live in the yellow header row (Dokumentas), not in the title row. */
:is(#tablepress-95_wrapper, #tablepress-98_wrapper, #tablepress-99_wrapper, #tablepress-108_wrapper, #tablepress-109_wrapper, #tablepress-201_wrapper) .tttp-likolaiko-titlebar__search {
    display: none !important;
}

/*
 * LikoLaiko tables (98/99): prevent DataTables FixedHeader from creating
 * floating/cloned header tables that can visually duplicate header labels
 * (e.g., an extra white “Iš” over the title/superheader).
 *
 * We rely on CSS sticky headers instead.
 */
/* Preferred: hide any FixedHeader floating/locked elements within the 95/98/99/108/109 wrappers. */
:is(#tablepress-95_wrapper, #tablepress-98_wrapper, #tablepress-99_wrapper, #tablepress-108_wrapper, #tablepress-109_wrapper, #tablepress-201_wrapper) :is(.fixedHeader-floating, .fixedHeader-locked) {
    display: none !important;
}

/* Fallback: if the clone table keeps the tablepress-id class, hide it directly too. */
:is(table.tablepress-id-95, table.tablepress-id-98, table.tablepress-id-99, table.tablepress-id-108, table.tablepress-id-109, table.tablepress-id-201).fixedHeader-floating,
:is(table.tablepress-id-95, table.tablepress-id-98, table.tablepress-id-99, table.tablepress-id-108, table.tablepress-id-109, table.tablepress-id-201).fixedHeader-locked {
    display: none !important;
}

/* Extra fallback: FixedHeader sometimes appends clones outside the wrapper; hide by content when supported. */
@supports selector(:has(*)) {
    :is(.fixedHeader-floating, .fixedHeader-locked):has(table.tablepress.tablepress-id-95),
    :is(.fixedHeader-floating, .fixedHeader-locked):has(table.tablepress.tablepress-id-98),
    :is(.fixedHeader-floating, .fixedHeader-locked):has(table.tablepress.tablepress-id-99) {
        display: none !important;
    }
}

/*
 * FixedHeader clones can also be appended outside the TablePress wrapper,
 * and some browsers/environments may not support :has reliably.
 * Scope tightly to the two liko-laiko pages.
 */
body.page-id-6638 :is(.fixedHeader-floating, .fixedHeader-locked),
body.page-id-6640 :is(.fixedHeader-floating, .fixedHeader-locked),
body:has(#tablepress-95) :is(.fixedHeader-floating, .fixedHeader-locked),
body:has(#tablepress-108) :is(.fixedHeader-floating, .fixedHeader-locked),
body:has(#tablepress-109) :is(.fixedHeader-floating, .fixedHeader-locked),
body:has(#tablepress-201) :is(.fixedHeader-floating, .fixedHeader-locked) {
    display: none !important;
}

/* Hide the title row in DataTables FixedHeader clones (keep only the yellow column header row). */
:is(table.tablepress-id-95, table.tablepress-id-98, table.tablepress-id-99, table.tablepress-id-108, table.tablepress-id-109, table.tablepress-id-201).fixedHeader-floating thead tr.tttp-likolaiko-title-row,
:is(table.tablepress-id-95, table.tablepress-id-98, table.tablepress-id-99, table.tablepress-id-108, table.tablepress-id-109, table.tablepress-id-201).fixedHeader-locked thead tr.tttp-likolaiko-title-row {
    display: none !important;
}

/* Right-align the “Šiandien … / Sąrašas atnaujintas …” block to the table edge. */
.likolaiko-page .likolaiko-toprow {
    display: flex !important;
    justify-content: flex-end !important;
}

.likolaiko-page .likolaiko-toprow :is(.likolaiko-today, .likolaiko-updated, .likolaiko-updated-at, .likolaiko-updated-time) {
    /* Keep text tight (no extra vertical spacing) */
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-weight: normal !important;
}

.likolaiko-page .likolaiko-toprow :is(.likolaiko-today, .likolaiko-updated) {
    display: block !important;
    margin: 0 !important;
}

.likolaiko-page .likolaiko-toprow .likolaiko-today {
    margin-bottom: 0 !important;
}

.likolaiko-page .likolaiko-toprow .likolaiko-meta {
    margin-left: auto !important;
    text-align: right !important;
}

.likolaiko-page .likolaiko-toprow .likolaiko-meta small {
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Hide the N/T navigation boxes on liko-laiko pages (they live in .likolaiko-nav). */
.likolaiko-page .likolaiko-nav {
    display: none !important;
}

/* Once JS has moved the search input into the header (Dokumentas), hide the original DT search container. */
:is(#tablepress-95_wrapper, #tablepress-98_wrapper, #tablepress-99_wrapper, #tablepress-108_wrapper, #tablepress-109_wrapper, #tablepress-201_wrapper).tttp-likolaiko-search-in-header :is(.dt-search, .dataTables_filter) {
    display: none !important;
}

/* Search input styling (magnifier icon + in-field placeholder). */
:is(#tablepress-95, #tablepress-98, #tablepress-99, #tablepress-201, #tablepress-95_wrapper, #tablepress-98_wrapper, #tablepress-99_wrapper, #tablepress-201_wrapper, .likolaiko-page) .tttp-likolaiko-search-input {
    box-sizing: border-box !important;
    width: 280px !important;
    max-width: 100% !important;
    height: 34px !important;
    padding: 6px 10px 6px 4px !important;
    border: 1px solid rgba(0, 0, 0, 0.35) !important;
    border-radius: 6px !important;
    background-color: #ffffff !important;
    background-image: none !important;
    font-family: 'Roboto', Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    text-align: left !important;
    text-indent: 0 !important;
}

/* In-header variant: fill the header cell and always show black text.
   The parent <th> has color:transparent (to hide the column label); the input
   must override that inheritance explicitly or typed text becomes invisible. */
th.tttp-likolaiko-docsearch .tttp-likolaiko-search-input {
    width: 100% !important;
    color: #000 !important;
    -webkit-text-fill-color: currentColor !important;
}

/* Hide DataTables sort/order indicators inside the search header cell.
   DT2 injects <span class="dt-column-order"> and DT1 uses ::after pseudo-elements.
   These elements appear to the left of the input and shift the placeholder text
   rightward — the visual "indentation" effect seen on tables 95/201. */
th.tttp-likolaiko-docsearch .dt-column-order,
th.tttp-likolaiko-docsearch .sorting_indicator {
    display: none !important;
}
th.tttp-likolaiko-docsearch.sorting::after,
th.tttp-likolaiko-docsearch.sorting_asc::after,
th.tttp-likolaiko-docsearch.sorting_desc::after,
th.tttp-likolaiko-docsearch.dt-ordering-asc::after,
th.tttp-likolaiko-docsearch.dt-ordering-desc::after {
    display: none !important;
    content: none !important;
}

/* Header-embedded search: fit the yellow header height and avoid clipping/collapsing. */
:is(#tablepress-95, #tablepress-98, #tablepress-99, #tablepress-108, #tablepress-109, #tablepress-201, #tablepress-95_wrapper, #tablepress-98_wrapper, #tablepress-99_wrapper, #tablepress-108_wrapper, #tablepress-109_wrapper, #tablepress-201_wrapper) th.tttp-likolaiko-docsearch {
    padding-top: 2px !important;
    padding-bottom: 2px !important;
}

:is(#tablepress-95, #tablepress-98, #tablepress-99, #tablepress-108, #tablepress-109, #tablepress-201, #tablepress-95_wrapper, #tablepress-98_wrapper, #tablepress-99_wrapper, #tablepress-108_wrapper, #tablepress-109_wrapper, #tablepress-201_wrapper) th.tttp-likolaiko-docsearch .tttp-likolaiko-search-input {
    height: 24px !important;
    padding: 2px 8px 2px 4px !important;
    background-image: none !important;
    border-radius: 4px !important;
    text-align: left !important;
    text-indent: 0 !important;
}

:is(#tablepress-95, #tablepress-98, #tablepress-99, #tablepress-201, #tablepress-95_wrapper, #tablepress-98_wrapper, #tablepress-99_wrapper, #tablepress-201_wrapper, .likolaiko-page) .tttp-likolaiko-search-input::placeholder {
    color: rgba(0, 0, 0, 0.55) !important;
    opacity: 1 !important;
}

@media (max-width: 782px) {
    :is(#tablepress-95, #tablepress-98, #tablepress-99, #tablepress-201, #tablepress-95_wrapper, #tablepress-98_wrapper, #tablepress-99_wrapper, #tablepress-201_wrapper, .likolaiko-page) .tttp-likolaiko-search-input {
        width: 100% !important;
    }
}

.tttp-likolaiko-titlebar__logo {
    height: 24px !important;
    width: auto !important;
    max-width: 100% !important;
    margin-right: 0 !important;
}

.tttp-likolaiko-titlebar__title {
    line-height: 1.25 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    min-width: 0 !important;
    flex: 0 1 auto !important;
}

/* Align the Iš/Tags column content to the top within row height. */
:is(#tablepress-95, #tablepress-98, #tablepress-99, #tablepress-108, #tablepress-109, #tablepress-201) :is(th:nth-child(3), td:nth-child(3)),
:is(#tablepress-95_wrapper, #tablepress-98_wrapper, #tablepress-99_wrapper, #tablepress-108_wrapper, #tablepress-109_wrapper, #tablepress-201_wrapper) table.tablepress :is(th:nth-child(3), td:nth-child(3)) {
    vertical-align: top !important;
}

/* Header: keep the Iš/From cell vertically centered (minimal/clean look).
   white-space: nowrap prevents "Iš ▾" / "From ▾" from wrapping onto two lines
   when the column is narrower than the EN "From ▾" label.
   min-width ensures DataTables cannot narrow this column below a readable size
   (DT sets plain inline width without !important — a CSS class !important beat it). */
:is(#tablepress-95, #tablepress-98, #tablepress-99, #tablepress-108, #tablepress-109, #tablepress-201) thead th:nth-child(3),
:is(#tablepress-95_wrapper, #tablepress-98_wrapper, #tablepress-99_wrapper, #tablepress-108_wrapper, #tablepress-109_wrapper, #tablepress-201_wrapper) table.tablepress thead th:nth-child(3) {
    vertical-align: middle !important;
    white-space: nowrap !important;
    min-width: 60px !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
}

/* DataTables 2.x wraps header text in .dt-column-title with word-break: break-word.
   Override on the Iš/From column so "From ▾" stays on one line. */
:is(#tablepress-95, #tablepress-98, #tablepress-99, #tablepress-108, #tablepress-109, #tablepress-201) thead th:nth-child(3) :is(.dt-column-title, .dt-column-header),
:is(#tablepress-95_wrapper, #tablepress-98_wrapper, #tablepress-99_wrapper, #tablepress-108_wrapper, #tablepress-109_wrapper, #tablepress-201_wrapper) table.tablepress thead th:nth-child(3) :is(.dt-column-title, .dt-column-header) {
    white-space: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
}

/* Smaller, top-aligned Lithuania icon (now labeled LT). */
table.tablepress img[data-tttp-token="LT"] {
    height: 14px !important;
    width: auto !important;
    vertical-align: top !important;
}

/*
 * Fix TimeStrip rendering inside TablePress cells.
 *
 * Symptom (seen on https://www.chemija.lt/wordpress/liko-laiko-98/ etc):
 * the TimeStrip "day" blocks stack vertically, creating a tall broken column
 * with an inner scrollbar.
 *
 * Root cause: some CSS reset/override causes `.timestrip > .day` blocks to
 * behave like normal block elements (no float/inline layout). Force a
 * deterministic horizontal layout in TablePress tables.
 */
table.tablepress td .timestrip {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    /* Keep the arrow (triangle) below the deadline/today box visible. */
    align-items: flex-start !important;
    gap: var(--tttp-timestrip-gap, 3px) !important;
    column-gap: var(--tttp-timestrip-gap, 3px) !important;
    overflow: visible !important;
    width: 100% !important;
    margin-top: 0 !important;
}

/*
 * LikoLaiko (95/98/99/108/109): ensure only ONE countdown label is visible.
 * Source of duplicates:
 * - TimeStrip core renders `.deadline-wrapper .deadline-far-future-label` (date string)
 * - Older/legacy scripts may inject `.deadline-far-future-label.tttp-*-countdown`
 * We keep only the overlay labels from `tablepress-likolaiko-sort`:
 * `.tttp-timestrip-overlay-label` (rendered bold).
 */
:is(#tablepress-95, #tablepress-98, #tablepress-99, #tablepress-108, #tablepress-109, #tablepress-201, #tablepress-95_wrapper, #tablepress-98_wrapper, #tablepress-99_wrapper, #tablepress-108_wrapper, #tablepress-109_wrapper, #tablepress-201_wrapper) table.tablepress td .timestrip .deadline-wrapper .deadline-far-future-label,
:is(#tablepress-95, #tablepress-98, #tablepress-99, #tablepress-108, #tablepress-109, #tablepress-201, #tablepress-95_wrapper, #tablepress-98_wrapper, #tablepress-99_wrapper, #tablepress-108_wrapper, #tablepress-109_wrapper, #tablepress-201_wrapper) table.tablepress td .timestrip .deadline-far-future-label.tttp-workingdays-countdown,
:is(#tablepress-95, #tablepress-98, #tablepress-99, #tablepress-108, #tablepress-109, #tablepress-201, #tablepress-95_wrapper, #tablepress-98_wrapper, #tablepress-99_wrapper, #tablepress-108_wrapper, #tablepress-109_wrapper, #tablepress-201_wrapper) table.tablepress td .timestrip .deadline-far-future-label.tttp-far-future-countdown {
    display: none !important;
}

/* Also match DataTables/FixedHeader clones (these tables may not be nested under the wrapper). */
:is(table.tablepress-id-95, table.tablepress-id-98, table.tablepress-id-99, table.tablepress-id-108, table.tablepress-id-109, table.tablepress-id-201, #tablepress-95, #tablepress-98, #tablepress-99, #tablepress-108, #tablepress-109, #tablepress-201) td .timestrip .deadline-wrapper .deadline-far-future-label,
:is(table.tablepress-id-95, table.tablepress-id-98, table.tablepress-id-99, table.tablepress-id-108, table.tablepress-id-109, table.tablepress-id-201, #tablepress-95, #tablepress-98, #tablepress-99, #tablepress-108, #tablepress-109, #tablepress-201) td .timestrip .deadline-far-future-label.tttp-workingdays-countdown,
:is(table.tablepress-id-95, table.tablepress-id-98, table.tablepress-id-99, table.tablepress-id-108, table.tablepress-id-109, table.tablepress-id-201, #tablepress-95, #tablepress-98, #tablepress-99, #tablepress-108, #tablepress-109, #tablepress-201) td .timestrip .deadline-far-future-label.tttp-far-future-countdown {
    display: none !important;
}

/* If something still injects duplicate overlays, keep only the first visible one. */
:is(#tablepress-95, #tablepress-98, #tablepress-99, #tablepress-108, #tablepress-109, #tablepress-201, #tablepress-95_wrapper, #tablepress-98_wrapper, #tablepress-99_wrapper, #tablepress-108_wrapper, #tablepress-109_wrapper, #tablepress-201_wrapper, table.tablepress-id-95, table.tablepress-id-98, table.tablepress-id-99, table.tablepress-id-108, table.tablepress-id-109, table.tablepress-id-201)
    td > .tttp-timestrip-overlay-label.tttp-workingdays ~ .tttp-timestrip-overlay-label.tttp-workingdays,
:is(#tablepress-95, #tablepress-98, #tablepress-99, #tablepress-108, #tablepress-109, #tablepress-201, #tablepress-95_wrapper, #tablepress-98_wrapper, #tablepress-99_wrapper, #tablepress-108_wrapper, #tablepress-109_wrapper, #tablepress-201_wrapper, table.tablepress-id-95, table.tablepress-id-98, table.tablepress-id-99, table.tablepress-id-108, table.tablepress-id-109, table.tablepress-id-201)
    td > .tttp-timestrip-overlay-label.tttp-far-future ~ .tttp-timestrip-overlay-label.tttp-far-future {
    display: none !important;
}

/* Fallback if duplicates are inserted in reverse order: show only the last label node. */
:is(#tablepress-95, #tablepress-98, #tablepress-99, #tablepress-108, #tablepress-109, #tablepress-201, #tablepress-95_wrapper, #tablepress-98_wrapper, #tablepress-99_wrapper, #tablepress-108_wrapper, #tablepress-109_wrapper, #tablepress-201_wrapper, table.tablepress-id-95, table.tablepress-id-98, table.tablepress-id-99, table.tablepress-id-108, table.tablepress-id-109, table.tablepress-id-201)
    td > .tttp-timestrip-overlay-label.tttp-workingdays {
    display: none !important;
}
:is(#tablepress-95, #tablepress-98, #tablepress-99, #tablepress-108, #tablepress-109, #tablepress-201, #tablepress-95_wrapper, #tablepress-98_wrapper, #tablepress-99_wrapper, #tablepress-108_wrapper, #tablepress-109_wrapper, #tablepress-201_wrapper, table.tablepress-id-95, table.tablepress-id-98, table.tablepress-id-99, table.tablepress-id-108, table.tablepress-id-109, table.tablepress-id-201)
    td > .tttp-timestrip-overlay-label.tttp-workingdays:last-of-type {
    display: block !important;
}

:is(#tablepress-95, #tablepress-98, #tablepress-99, #tablepress-108, #tablepress-109, #tablepress-201, #tablepress-95_wrapper, #tablepress-98_wrapper, #tablepress-99_wrapper, #tablepress-108_wrapper, #tablepress-109_wrapper, #tablepress-201_wrapper, table.tablepress-id-95, table.tablepress-id-98, table.tablepress-id-99, table.tablepress-id-108, table.tablepress-id-109, table.tablepress-id-201)
    td > .tttp-timestrip-overlay-label.tttp-far-future {
    display: none !important;
}
:is(#tablepress-95, #tablepress-98, #tablepress-99, #tablepress-108, #tablepress-109, #tablepress-201, #tablepress-95_wrapper, #tablepress-98_wrapper, #tablepress-99_wrapper, #tablepress-108_wrapper, #tablepress-109_wrapper, #tablepress-201_wrapper, table.tablepress-id-95, table.tablepress-id-98, table.tablepress-id-99, table.tablepress-id-108, table.tablepress-id-109, table.tablepress-id-201)
    td > .tttp-timestrip-overlay-label.tttp-far-future:last-of-type {
    display: block !important;
}

table.tablepress td .timestrip .day,
table.tablepress td .timestrip .arrow-wrapper,
table.tablepress td .timestrip .deadline-wrapper {
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
}

/* Use `gap` for spacing; avoid inconsistent margins from theme CSS. */
table.tablepress td .timestrip .day {
    margin: 0 !important;
    width: var(--tttp-timestrip-day, 0.85rem) !important;
    height: var(--tttp-timestrip-day, 0.85rem) !important;
}

table.tablepress td .timestrip .arrow-wrapper .day.arrow {
    width: var(--tttp-timestrip-arrow, 0.65rem) !important;
    height: var(--tttp-timestrip-arrow, 0.65rem) !important;
}

/* Preserve the original TimeStrip layout: box on top, triangle below. */
table.tablepress td .timestrip .arrow-wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

/* Keep the TimeStrip column aligned with other cells in the row. */
:is(#tablepress-95, #tablepress-98, #tablepress-99, #tablepress-108, #tablepress-109, #tablepress-201) :is(th:nth-child(5), td:nth-child(5)),
:is(#tablepress-95_wrapper, #tablepress-98_wrapper, #tablepress-99_wrapper, #tablepress-108_wrapper, #tablepress-109_wrapper, #tablepress-201_wrapper) table.tablepress :is(th:nth-child(5), td:nth-child(5)) {
    vertical-align: top !important;
}

/* Same intent as above, but based on the stable TablePress column class. */
:is(#tablepress-95, #tablepress-98, #tablepress-99, #tablepress-108, #tablepress-109, #tablepress-201) :is(th.column-5, td.column-5),
:is(#tablepress-95_wrapper, #tablepress-98_wrapper, #tablepress-99_wrapper, #tablepress-108_wrapper, #tablepress-109_wrapper, #tablepress-201_wrapper) :is(table.tablepress, table.dataTable) :is(th.column-5, td.column-5) {
    vertical-align: top !important;
}

/* Liko laiko (95/98/99/108/109): remove extra top space above the TimeStrip in column 5. */
:is(#tablepress-95, #tablepress-98, #tablepress-99, #tablepress-108, #tablepress-109, #tablepress-201) tbody td:nth-child(5),
:is(#tablepress-95_wrapper, #tablepress-98_wrapper, #tablepress-99_wrapper, #tablepress-108_wrapper, #tablepress-109_wrapper, #tablepress-201_wrapper) :is(table.tablepress, table.dataTable) tbody td:nth-child(5) {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    line-height: 1 !important;
}

/*
 * Same as above, but key off the real TablePress column class.
 * This catches DataTables/FixedHeader clones where column indices can differ.
 */
:is(#tablepress-95, #tablepress-98, #tablepress-99, #tablepress-108, #tablepress-109, #tablepress-201) tbody td.column-5,
:is(#tablepress-95_wrapper, #tablepress-98_wrapper, #tablepress-99_wrapper, #tablepress-108_wrapper, #tablepress-109_wrapper, #tablepress-201_wrapper) :is(table.tablepress, table.dataTable) tbody td.column-5 {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    line-height: 1 !important;
}

/* Ultimate fallback: JS tags the real TimeStrip parent cell on redraws. */
:is(#tablepress-95, #tablepress-98, #tablepress-99, #tablepress-108, #tablepress-109, #tablepress-201) tbody td.tttp-timestrip-cell,
:is(#tablepress-95_wrapper, #tablepress-98_wrapper, #tablepress-99_wrapper, #tablepress-108_wrapper, #tablepress-109_wrapper, #tablepress-201_wrapper) :is(table.tablepress, table.dataTable) tbody td.tttp-timestrip-cell {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    line-height: 1 !important;
    vertical-align: top !important;
}

/* If any responsive/table CSS injects label pseudo-content, kill it for the strip cell. */
:is(#tablepress-95, #tablepress-98, #tablepress-99, #tablepress-108, #tablepress-109, #tablepress-201) tbody td.tttp-timestrip-cell::before,
:is(#tablepress-95, #tablepress-98, #tablepress-99, #tablepress-108, #tablepress-109, #tablepress-201) tbody td.tttp-timestrip-cell::after,
:is(#tablepress-95_wrapper, #tablepress-98_wrapper, #tablepress-99_wrapper, #tablepress-108_wrapper, #tablepress-109_wrapper, #tablepress-201_wrapper) :is(table.tablepress, table.dataTable) tbody td.tttp-timestrip-cell::before,
:is(#tablepress-95_wrapper, #tablepress-98_wrapper, #tablepress-99_wrapper, #tablepress-108_wrapper, #tablepress-109_wrapper, #tablepress-201_wrapper) :is(table.tablepress, table.dataTable) tbody td.tttp-timestrip-cell::after {
    content: none !important;
    display: none !important;
}

/* Date column: align with weekday labels inside the strip. */
:is(#tablepress-95, #tablepress-98, #tablepress-99, #tablepress-108, #tablepress-109, #tablepress-201) :is(th:nth-child(4), td:nth-child(4)),
:is(#tablepress-95_wrapper, #tablepress-98_wrapper, #tablepress-99_wrapper, #tablepress-108_wrapper, #tablepress-109_wrapper, #tablepress-201_wrapper) table.tablepress :is(th:nth-child(4), td:nth-child(4)) {
    vertical-align: top !important;
}

@media (min-width: 783px) {
    :is(#tablepress-95, #tablepress-98, #tablepress-99, #tablepress-108, #tablepress-109, #tablepress-201, #tablepress-95_wrapper, #tablepress-98_wrapper, #tablepress-99_wrapper, #tablepress-108_wrapper, #tablepress-109_wrapper, #tablepress-201_wrapper, .likolaiko-page) {
        --tttp-timestrip-day: clamp(0.95rem, 0.8rem + 0.35vw, 1.25rem);
        --tttp-timestrip-arrow: calc(var(--tttp-timestrip-day) * 0.76);
        --tttp-timestrip-gap: 2px;
    }

    /* Desktop (98/99/108/109): add top spacing for the Date column (col 4). */
    :is(#tablepress-98, #tablepress-99, #tablepress-108, #tablepress-109) tbody td:nth-child(4),
    :is(#tablepress-98_wrapper, #tablepress-99_wrapper, #tablepress-108_wrapper, #tablepress-109_wrapper) :is(table.tablepress, table.dataTable) tbody td:nth-child(4) {
        padding-top: 4px !important;
    }

    /* Remove the visible gap above the strip in desktop rows. */
    :is(#tablepress-95, #tablepress-98, #tablepress-99, #tablepress-108, #tablepress-109, #tablepress-201) tbody td:nth-child(5),
    :is(#tablepress-95_wrapper, #tablepress-98_wrapper, #tablepress-99_wrapper, #tablepress-108_wrapper, #tablepress-109_wrapper, #tablepress-201_wrapper) table.tablepress tbody td:nth-child(5) {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        line-height: 1 !important;
    }

    /* Desktop (95/98/99/108/109/201): pull the TimeStrip up 4 px — equal offset for all tables. */
    :is(#tablepress-95, #tablepress-98, #tablepress-99, #tablepress-108, #tablepress-109, #tablepress-201) tbody td:nth-child(5) .timestrip,
    :is(#tablepress-95_wrapper, #tablepress-98_wrapper, #tablepress-99_wrapper, #tablepress-108_wrapper, #tablepress-109_wrapper, #tablepress-201_wrapper) :is(table.tablepress, table.dataTable) tbody td:nth-child(5) .timestrip {
        margin-top: 4px !important;
    }

    /*
     * Desktop (98/99/108/109): eliminate any blank line box above the strip.
     * Even “empty” whitespace text nodes before a <div.timestrip> can create a
     * line box in a <td>, which shows up as empty space above the strip.
     * JS tags strip cells with `.tttp-timestrip-cell` on desktop.
     */
    :is(#tablepress-95, #tablepress-98, #tablepress-99, #tablepress-108, #tablepress-109, #tablepress-201) tbody td.tttp-timestrip-cell,
    :is(#tablepress-95_wrapper, #tablepress-98_wrapper, #tablepress-99_wrapper, #tablepress-108_wrapper, #tablepress-109_wrapper, #tablepress-201_wrapper) :is(table.tablepress, table.dataTable) tbody td.tttp-timestrip-cell {
        font-size: 0 !important;
        line-height: 0 !important;
    }

    :is(#tablepress-95) tbody td:nth-child(4),
    :is(#tablepress-95_wrapper) table.tablepress tbody td:nth-child(4) {
        padding-top: 4px !important;
        line-height: 1 !important;
    }
}

@media (max-width: 782px) {
    /*
     * Mobile: the generated `.likolaiko-page` wrapper is inline-reset to
     * `padding: 0; margin: 0;`. Override that to restore a small top breathing
     * room on mobile.
     */
    /* 108/109/201: .likolaiko-page wrapper exists in HTML */
    body:has(#tablepress-95) .likolaiko-page,
    body:has(#tablepress-108) .likolaiko-page,
    body:has(#tablepress-109) .likolaiko-page,
    body:has(#tablepress-201) .likolaiko-page {
        padding-top: 12px !important;
    }
    /* 98/99: no .likolaiko-page wrapper — target toprow directly */
    body.page-id-6638 .likolaiko-toprow,
    body.page-id-6640 .likolaiko-toprow,
    body:has(#tablepress-98) .likolaiko-toprow,
    body:has(#tablepress-99) .likolaiko-toprow {
        margin-top: 12px !important;
    }

    /* Mobile (95/98/99/108/109/201): keep document titles clear of the right-side `d.d.`/`w.d.` overlay labels. */
    :is(#tablepress-95, #tablepress-98, #tablepress-99, #tablepress-108, #tablepress-109, #tablepress-201, table.tablepress-id-95, table.tablepress-id-98, table.tablepress-id-99, table.tablepress-id-108, table.tablepress-id-109, table.tablepress-id-201) tbody td.column-2 > a {
        display: block !important;
        padding-right: 35px !important;
    }

    /* Mobile: make Vytis/LT/other injected token icons a bit bigger. */
    :is(#tablepress-95, #tablepress-98, #tablepress-99, #tablepress-108, #tablepress-109, #tablepress-201, table.tablepress-id-95, table.tablepress-id-98, table.tablepress-id-99, table.tablepress-id-108, table.tablepress-id-109, table.tablepress-id-201) img[data-tttp-token] {
        height: 18px !important;
        width: auto !important;
    }

    table.tablepress {
        border-collapse: collapse !important;
        border-spacing: 0 !important;
    }

    table.tablepress td,
    table.tablepress th {
        border: 0 !important;
        box-shadow: none !important;
    }

/* =====================================================================
 * EN tables (108/109): data-cell parity with LT tables (95/98/99).
 *
 * The WP Additional CSS (PASTE_INTO_WORDPRESS_ADMIN.css) historically
 * targeted only .tablepress-id-95/98/99.  The rules below replicate
 * the data-cell portion of those rules for the EN tables.
 * ===================================================================== */

/* Dim Nr (col 1) + From/Iš (col 3) + tag text — 32 % opacity, same as LT. */
:is(#tablepress-108, #tablepress-109) :is(
    tbody tr > *:nth-child(1),
    tbody tr > *:nth-child(3),
    .table-tags
),
:is(#tablepress-108_wrapper, #tablepress-109_wrapper) table.tablepress :is(
    tbody tr > *:nth-child(1),
    tbody tr > *:nth-child(3),
    .table-tags
) {
    color: rgba(0, 0, 0, 0.32) !important;
}

/* Tag links inherit the dimmed color. */
:is(#tablepress-108, #tablepress-109) tbody tr > *:nth-child(3) a,
:is(#tablepress-108_wrapper, #tablepress-109_wrapper) table.tablepress tbody tr > *:nth-child(3) a {
    color: inherit !important;
    text-decoration: none !important;
    text-decoration-line: none !important;
}

/* Hide inline token text; keep icon images visible. */
:is(#tablepress-108, #tablepress-109) .tttp-token-text,
:is(#tablepress-108_wrapper, #tablepress-109_wrapper) table.tablepress .tttp-token-text {
    display: none !important;
}
:is(#tablepress-108, #tablepress-109) td:nth-child(3) img[data-tttp-token],
:is(#tablepress-108_wrapper, #tablepress-109_wrapper) table.tablepress td:nth-child(3) img[data-tttp-token] {
    display: inline-block !important;
    opacity: 1 !important;
}

/* Weekday abbreviation labels under today/deadline arrow tiles. */
:is(#tablepress-108, #tablepress-109, #tablepress-108_wrapper, #tablepress-109_wrapper)
    table.tablepress .timestrip .arrow-wrapper .tttp-dow-label,
:is(#tablepress-108, #tablepress-109, #tablepress-108_wrapper, #tablepress-109_wrapper)
    table.tablepress .timestrip .deadline-wrapper .tttp-dow-label {
    display: block !important;
    margin-top: 1px !important;
    font-size: 0.96rem !important;
    line-height: 1 !important;
    font-weight: normal !important;
    text-align: center !important;
    white-space: nowrap !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    text-overflow: clip !important;
    padding: 0 1px !important;
    color: #111 !important;
    opacity: 1 !important;
    flex: 0 0 auto !important;
}

/* Far-future deadline countdown: position at strip end, small font. */
:is(#tablepress-108, #tablepress-109, #tablepress-108_wrapper, #tablepress-109_wrapper)
    table.tablepress td:nth-child(5) .timestrip > .deadline-far-future-label.tttp-far-future-countdown,
:is(#tablepress-108, #tablepress-109, #tablepress-108_wrapper, #tablepress-109_wrapper)
    table.tablepress td.tttp-timestrip-cell .timestrip > .deadline-far-future-label.tttp-far-future-countdown {
    position: absolute !important;
    right: 0 !important;
    bottom: 0 !important;
    left: auto !important;
    display: block !important;
    font-size: 0.96rem !important;
    line-height: 1 !important;
    font-weight: normal !important;
    white-space: nowrap !important;
    text-align: right !important;
    padding: 0 1px !important;
    color: #111 !important;
    opacity: 1 !important;
    pointer-events: none !important;
    width: max-content !important;
    max-width: 100% !important;
    overflow: visible !important;
    text-overflow: initial !important;
}

/* Position the strip cell relative so the absolute countdown label anchors to it. */
:is(#tablepress-108, #tablepress-109, #tablepress-108_wrapper, #tablepress-109_wrapper)
    table.tablepress td:nth-child(5) .timestrip {
    position: relative !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    padding-bottom: 0 !important;
}

/* Reserve bottom space when the countdown label is present. */
@supports selector(:has(*)) {
    :is(#tablepress-108, #tablepress-109, #tablepress-108_wrapper, #tablepress-109_wrapper)
        table.tablepress td:nth-child(5)
        .timestrip:has(> .deadline-far-future-label.tttp-far-future-countdown),
    :is(#tablepress-108, #tablepress-109, #tablepress-108_wrapper, #tablepress-109_wrapper)
        table.tablepress td:has(.timestrip)
        .timestrip:has(> .deadline-far-future-label.tttp-far-future-countdown) {
        padding-bottom: 1.05rem !important;
    }
}

@media (min-width: 768px) {
    /* Desktop: center-align icons in From/Iš (col 3). */
    :is(#tablepress-108, #tablepress-109, #tablepress-108_wrapper, #tablepress-109_wrapper)
        table.tablepress tbody tr td:nth-child(3) {
        text-align: center !important;
        vertical-align: middle !important;
    }
    :is(#tablepress-108, #tablepress-109, #tablepress-108_wrapper, #tablepress-109_wrapper)
        table.tablepress tbody tr td:nth-child(3) img[data-tttp-token] {
        vertical-align: middle !important;
    }
}

/* ── Mobile likolaiko: override CSS-sticky on scroll-head so JS (position:fixed) controls it ── */
@media screen and (max-width: 767px) {
    :is(#tablepress-95_wrapper, #tablepress-98_wrapper, #tablepress-99_wrapper,
        #tablepress-108_wrapper, #tablepress-109_wrapper, #tablepress-201_wrapper) .dataTables_scrollHead {
        position: static !important;
        top: auto !important;
    }
}

/* Title/superheader rows hidden when JS has fixed the scroll-head (likolaiko mode) */
.tttp-likolaiko-scrollhead-fixed .tttp-likolaiko-title-row,
.tttp-likolaiko-scrollhead-fixed .tttp-likolaiko-superheader-row {
    display: none !important;
}
