/**
 * Tobalt Skelbimai - Public CSS
 *
 * Author: Tobalt — https://tobalt.lt
 */

/* Screen reader only text */
.screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ==========================================================================
   Main Container & Tabs
   ========================================================================== */

.tsk-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Tabs */
.tsk-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0;
}

.tsk-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tsk-tab:hover {
    color: #457a47;
}

.tsk-tab:focus,
.tsk-tab:focus-visible {
    outline: 3px solid #457a47 !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 4px rgba(69, 122, 71, 0.25) !important;
    z-index: 1;
}

.tsk-tab--active {
    color: #457a47;
    border-bottom-color: #457a47;
}

.tsk-tab i {
    font-size: 16px;
}

/* Panels */
.tsk-panel {
    display: none;
}

.tsk-panel--active {
    display: block;
}

/* ==========================================================================
   Filters
   ========================================================================== */

.tsk-filters {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid #e9ecef;
}

/* Search input */
.tsk-filters__search {
    margin-bottom: 16px;
}

.tsk-search-input {
    display: flex;
    align-items: center;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: #fff;
    transition: all 0.2s ease;
}

.tsk-search-input:focus-within {
    border-color: #457a47;
    outline: 2px solid #457a47;
    outline-offset: 2px;
}

.tsk-search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 8px 14px 16px;
    color: #457a47;
    font-size: 16px;
    flex-shrink: 0;
}

.tsk-search-input input {
    flex: 1;
    padding: 14px 16px;
    border: none;
    background: transparent;
    font-size: 15px;
    outline: none;
}

.tsk-search-input input::placeholder {
    color: #6c757d;
}

.tsk-search-clear {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 14px 16px;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.tsk-search-clear:hover {
    color: #6c757d;
}

/* Filter row */
.tsk-filters__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

/* Filter groups */
.tsk-filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Status buttons */
.tsk-filter-group--status {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 4px;
}

.tsk-status-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: transparent;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tsk-status-btn:hover {
    background: #fff;
    color: #495057;
}

.tsk-status-btn:focus {
    outline: 2px solid #457a47;
    outline-offset: 2px;
}

.tsk-status-btn--active {
    background: #fff;
    color: #457a47;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-weight: 600;
}

.tsk-status-btn i {
    font-size: 12px;
}

/* Select dropdowns */
.tsk-filter-group--selects {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tsk-select {
    padding: 10px 36px 10px 14px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 13px;
    color: #495057;
    background: #fff url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="%23457a47" d="M8 11L3 6h10z"/></svg>') no-repeat right 12px center;
    background-size: 10px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    min-width: 160px;
    transition: all 0.2s ease;
}

.tsk-select:focus {
    outline: 2px solid #457a47;
    outline-offset: 2px;
    border-color: #457a47;
}

/* Date inputs */
.tsk-filter-group--dates {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tsk-date-label {
    font-size: 13px;
    font-weight: 500;
    color: #6c757d;
    white-space: nowrap;
}

.tsk-date-field {
    padding: 10px 14px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 13px;
    width: 120px;
    transition: all 0.2s ease;
}

.tsk-date-field:focus {
    outline: 2px solid #457a47;
    outline-offset: 2px;
    border-color: #457a47;
}

.tsk-date-separator {
    color: #6c757d;
    font-size: 14px;
}

/* Clear filters button */
.tsk-clear-filters {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid #dc3545;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #dc3545;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-left: auto;
}

.tsk-clear-filters:hover {
    background: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

.tsk-clear-filters:focus {
    outline: 2px solid #dc3545;
    outline-offset: 2px;
}

/* ==========================================================================
   Results
   ========================================================================== */

.tsk-results__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    min-height: 24px;
}

.tsk-results__count {
    font-size: 14px;
    color: #6c757d;
}

.tsk-results__count strong {
    color: #495057;
}

.tsk-results__loading {
    display: none;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #457a47;
}

.tsk-results__list {
    transition: opacity 0.2s ease;
}

.tsk-results__list.tsk-loading {
    opacity: 0.5;
    pointer-events: none;
}

/* No results */
.tsk-no-results {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.tsk-no-results i {
    font-size: 48px;
    color: #dee2e6;
    margin-bottom: 16px;
    display: block;
}

.tsk-no-results p {
    font-size: 16px;
    color: #6c757d;
    margin: 0;
}

/* Pagination */
.tsk-pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 24px;
}

.tsk-page-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tsk-page-btn:hover {
    background: #f8f9fa;
    border-color: #457a47;
}

.tsk-page-btn:focus {
    outline: 2px solid #457a47;
    outline-offset: 2px;
}

.tsk-page-btn--active {
    background: #457a47;
    border-color: #457a47;
    color: #fff;
}

.tsk-page-btn--active:hover {
    background: #3a6a3c;
}

.tsk-page-btn--active:focus {
    outline-color: #2d5a2f;
}

.tsk-page-btn--prev,
.tsk-page-btn--next {
    padding: 0 10px;
}

.tsk-page-btn--prev i,
.tsk-page-btn--next i {
    font-size: 12px;
}

.tsk-page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    color: #6c757d;
    font-size: 14px;
}

/* Responsive filters */
@media (max-width: 992px) {
    .tsk-filters__row {
        flex-direction: column;
        align-items: stretch;
    }

    .tsk-filter-group {
        width: 100%;
    }

    .tsk-filter-group--status {
        justify-content: center;
    }

    .tsk-filter-group--selects {
        flex-direction: column;
    }

    .tsk-select {
        width: 100%;
    }

    .tsk-filter-group--dates {
        justify-content: center;
    }

    .tsk-date-field {
        width: 110px;
    }
}

@media (max-width: 576px) {
    .tsk-tabs {
        flex-direction: column;
        gap: 0;
    }

    .tsk-tab {
        justify-content: center;
        border-bottom: none;
        border-left: 2px solid transparent;
        margin-bottom: 0;
        margin-left: -2px;
    }

    .tsk-tab--active {
        border-left-color: #457a47;
        border-bottom-color: transparent;
    }

    .tsk-status-btn {
        flex: 1;
        justify-content: center;
        padding: 8px 8px;
        font-size: 12px;
    }

    .tsk-filter-group--dates {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .tsk-date-label {
        width: 100%;
        margin-bottom: 4px;
    }

    .tsk-date-field {
        flex: 1;
        width: auto;
        min-width: 100px;
    }
}

/* Legacy container support */
.tobalt-skelbimai-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Legacy Tabs */
.tobalt-skelbimai-container .nav-tabs .nav-link {
    color: #495057;
    border: 1px solid transparent;
}

.tobalt-skelbimai-container .nav-tabs .nav-link.active {
    color: #9dc09f;
    border-color: #dee2e6 #dee2e6 #fff;
    font-weight: 600;
}

.tobalt-skelbimai-container .nav-tabs .nav-link:hover {
    border-color: #e9ecef #e9ecef #dee2e6;
}

.tobalt-skelbimai-container .tab-content {
    padding: 20px 0;
}

/* Legacy Filters */
.tobalt-skelbimai-filters .accordion-button:not(.collapsed) {
    background-color: #f8f9fa;
    color: #212529;
}

.tobalt-skelbimai-filters .accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(69, 122, 71, 0.25);
}

/* ==========================================================================
   Modern Card Design (tsk- prefix)
   ========================================================================== */

.tobalt-skelbimai-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tsk-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e9ecef;
    transition: all 0.25s ease;
    position: relative;
}

.tsk-card:hover {
    border-color: #457a47;
    box-shadow: 0 8px 24px rgba(69, 122, 71, 0.15);
    transform: translateY(-2px);
}

.tsk-card--expired {
    border-left: 4px solid #f44;
}

.tsk-card--valid {
    border-left: 4px solid #9c0;
}

/* Status Row */
.tsk-card__status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.tsk-status-badge,
.tsk-single .tsk-status-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 4px 12px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    font-family: inherit !important;
    line-height: 1.4 !important;
}

.tsk-status-badge--valid {
    background: rgba(69, 122, 71, 0.15);
    color: #2d5a2f;
}

.tsk-status-badge--expired {
    background: rgba(255, 68, 68, 0.1);
    color: #d63333;
}

.tsk-status-badge i {
    font-size: 14px;
}

.tsk-card__dates {
    font-size: 13px;
    color: #6c757d;
}

.tsk-card__dates-label {
    font-weight: 500;
    color: #495057;
    margin-right: 4px;
}

/* Title */
.tsk-card__title {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.tsk-card__title a,
.tsk-card .tsk-card__title a,
article.tsk-card .tsk-card__title a,
.tsk-container .tsk-card__title a,
.tobalt-skelbimai-list .tsk-card__title a {
    color: #212529 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.tsk-card__title a:hover,
.tsk-card .tsk-card__title a:hover,
article.tsk-card .tsk-card__title a:hover,
.tsk-container .tsk-card__title a:hover,
.tobalt-skelbimai-list .tsk-card__title a:hover {
    color: #457a47 !important;
}

/* Meta Row (Organization + Badges) */
.tsk-card__meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
    flex-wrap: wrap;
}

.tsk-card__org {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tsk-meta-label {
    font-size: 15px;
    font-weight: 500;
    color: #495057;
}

.tsk-meta-code {
    font-size: 13px;
    color: #636b73;
}

.tsk-card__badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tsk-badge,
.tsk-single .tsk-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    line-height: 1.4 !important;
}

.tsk-badge--value {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

.tsk-badge--green {
    background: rgba(69, 122, 71, 0.15);
    color: #2d5a2f;
}

.tsk-badge i {
    font-size: 12px;
}

/* Info Grid */
.tsk-card__details {
    margin-bottom: 16px;
}

.tsk-card__info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.tsk-info-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tsk-info-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #636b73;
}

.tsk-info-value {
    font-size: 14px;
    color: #495057;
}

a[href^="mailto:"],
a[href^="tel:"],
.tsk-info-value a,
.tsk-info-value a[href^="mailto:"],
.tsk-info-value a[href^="tel:"],
.tsk-card .tsk-info-value a,
.tsk-container .tsk-info-value a,
span.tsk-info-value a,
.tsk-card__info-grid a,
.tsk-info-item a {
    color: #457a47 !important;
    text-decoration: none !important;
    background-color: transparent !important;
}

a[href^="mailto:"]:hover,
a[href^="tel:"]:hover,
.tsk-info-value a:hover,
.tsk-info-value a[href^="mailto:"]:hover,
.tsk-info-value a[href^="tel:"]:hover,
.tsk-info-item a:hover {
    text-decoration: underline !important;
    color: #2d5a2f !important;
}

/* Footer */
.tsk-card__footer {
    display: flex;
    justify-content: flex-end;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.tsk-card__link,
.tsk-card .tsk-card__link,
a.tsk-card__link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 16px !important;
    background: #457a47 !important;
    color: #fff !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.tsk-card__link:hover,
.tsk-card .tsk-card__link:hover,
a.tsk-card__link:hover {
    background: #3a6a3c !important;
    color: #fff !important;
    transform: translateX(2px);
}

.tsk-card__link:visited,
.tsk-card .tsk-card__link:visited,
a.tsk-card__link:visited {
    color: #fff !important;
}

.tsk-card__link:focus {
    outline: 2px solid #2d5a2f;
    outline-offset: 2px;
}

.tsk-card__link i {
    font-size: 11px;
    transition: transform 0.2s ease;
}

.tsk-card__link:hover i {
    transform: translateX(3px);
}

/* Legacy card support (remove after testing) */
.tobalt-skelbimas-card {
    transition: box-shadow 0.2s ease;
}

.tobalt-skelbimas-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.tobalt-skelbimas-card .card-title a {
    color: #212529;
    text-decoration: none;
}

.tobalt-skelbimas-card .card-title a:hover {
    color: #457a47;
}

/* Status icons */
.tobalt-skelbimas-card .fa-check-circle-o {
    color: #9c0 !important;
}

.tobalt-skelbimas-card .fa-minus-circle {
    color: #f44 !important;
}

/* Responsive Cards */
@media (max-width: 768px) {
    .tsk-card {
        padding: 16px;
    }

    .tsk-card__title {
        font-size: 16px;
    }

    .tsk-card__meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .tsk-card__info-grid {
        grid-template-columns: 1fr;
    }

    .tsk-card__footer {
        justify-content: stretch;
    }

    .tsk-card__link {
        width: 100%;
        justify-content: center;
    }
}

/* Pagination */
.tobalt-pagination {
    margin-top: 30px;
}

.tobalt-pagination .page-numbers {
    display: inline-flex;
    padding: 0;
    margin: 0;
    list-style: none;
}

.tobalt-pagination .page-numbers li {
    margin: 0 2px;
}

.tobalt-pagination .page-numbers a,
.tobalt-pagination .page-numbers span {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: #495057;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tobalt-pagination .page-numbers a:hover {
    background-color: #e9ecef;
}

.tobalt-pagination .page-numbers .current {
    background-color: #457a47;
    border-color: #457a47;
    color: #fff;
}

/* Form */
.tobalt-skelbimai-form-wrap {
    max-width: 900px;
}

.tobalt-skelbimai-form .required {
    color: #dc3545;
}

.tobalt-skelbimai-form .form-control:focus,
.tobalt-skelbimai-form .form-select:focus {
    border-color: #457a47;
    box-shadow: 0 0 0 0.25rem rgba(69, 122, 71, 0.25);
}

.tobalt-skelbimai-form .btn-primary {
    background-color: #457a47;
    border-color: #457a47;
}

.tobalt-skelbimai-form .btn-primary:hover {
    background-color: #3a6a3c;
    border-color: #3a6a3c;
}

.tobalt-skelbimai-form .btn-primary:focus {
    box-shadow: 0 0 0 0.25rem rgba(69, 122, 71, 0.5);
}

.tobalt-form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
}

/* Drag & Drop Zone */
.tobalt-dropzone {
    position: relative;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.tobalt-dropzone:hover,
.tobalt-dropzone.dragover {
    border-color: #457a47;
    background: rgba(69, 122, 71, 0.1);
}

.tobalt-dropzone.has-file {
    border-color: #457a47;
    border-style: solid;
    background: rgba(69, 122, 71, 0.15);
}

.tobalt-dropzone .tobalt-file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.tobalt-dropzone-content {
    pointer-events: none;
}

.tobalt-dropzone-content i {
    font-size: 36px;
    color: #457a47;
    margin-bottom: 10px;
    display: block;
}

.tobalt-dropzone-content p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
}

.tobalt-dropzone .tobalt-file-name {
    display: block;
    margin-top: 10px;
    font-weight: 600;
    color: #212529;
    word-break: break-all;
}

.tobalt-dropzone .tobalt-file-remove {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 12px;
    background: #dc3545;
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    pointer-events: auto;
}

.tobalt-dropzone .tobalt-file-remove:hover {
    background: #c82333;
}

.tobalt-form-message.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.tobalt-form-message.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Datepicker customization */
.ui-datepicker {
    font-family: inherit;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.ui-datepicker .ui-datepicker-header {
    background: #457a47;
    border: none;
    border-radius: 4px 4px 0 0;
}

.ui-datepicker .ui-datepicker-title {
    color: #fff;
}

.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
    cursor: pointer;
}

.ui-datepicker .ui-datepicker-prev:hover,
.ui-datepicker .ui-datepicker-next:hover {
    background: rgba(255, 255, 255, 0.2);
    border: none;
}

.ui-datepicker td a {
    text-align: center;
}

.ui-datepicker td a:hover {
    background: #457a47;
    color: #fff;
}

.ui-datepicker .ui-state-active {
    background: #457a47 !important;
    color: #fff !important;
    border: none !important;
}

/* Datepicker input icon */
.tobalt-datepicker,
.tobalt-datepicker-future {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="%23457a47" d="M152 64H296V24C296 10.75 306.7 0 320 0C333.3 0 344 10.75 344 24V64H384C419.3 64 448 92.65 448 128V448C448 483.3 419.3 512 384 512H64C28.65 512 0 483.3 0 448V128C0 92.65 28.65 64 64 64H104V24C104 10.75 114.7 0 128 0C141.3 0 152 10.75 152 24V64zM48 448C48 456.8 55.16 464 64 464H384C392.8 464 400 456.8 400 448V192H48V448z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 36px;
}

/* ==========================================================================
   Single Page Design (tsk-single)
   ========================================================================== */

.tsk-single {
    padding: 80px 16px 48px;
    background: #f8f9fa;
    min-height: 100vh;
    position: relative;
    z-index: 1;
    margin-top: 0 !important;
    overflow: visible;
}

/* Reset any theme negative margins on main content */
.single-skelbimas .site-main,
.single-skelbimas .entry-content,
.single-skelbimas main,
.single-skelbimas article,
.single-skelbimas .elementor-section,
body.single-skelbimas .elementor-widget-container {
    margin-top: 0 !important;
    padding-top: 0 !important;
    overflow: visible !important;
}

.tsk-single__container {
    max-width: 1000px;
    margin: 0 auto;
}

/* Back Button */
.tsk-single__back {
    margin-bottom: 24px;
}

.tsk-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    color: #495057;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tsk-back-btn:hover {
    background: #457a47;
    border-color: #457a47;
    color: #fff;
}

.tsk-back-btn i {
    transition: transform 0.2s ease;
}

.tsk-back-btn:hover i {
    transform: translateX(-3px);
}

/* Header */
.tsk-single__header {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid #e9ecef;
    border-left: 4px solid #9c0;
}

.tsk-single__header--expired {
    border-left-color: #f44;
}

.tsk-single__status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.tsk-single__dates,
.tsk-single .tsk-single__dates {
    font-size: 14px !important;
    color: #6c757d !important;
    font-family: inherit !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
}

.tsk-single__dates-label,
.tsk-single .tsk-single__dates-label {
    font-weight: 500 !important;
    color: #495057 !important;
    margin-right: 6px !important;
}

.tsk-single__title,
.tsk-single .tsk-single__title,
h1.tsk-single__title {
    margin: 0 0 16px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #212529 !important;
    line-height: 1.4 !important;
    font-family: inherit !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.tsk-single__badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Content Grid */
.tsk-single__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

/* Section Card */
.tsk-section {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.tsk-section--full {
    grid-column: 1 / -1;
}

.tsk-section__title,
.tsk-single .tsk-section__title,
h2.tsk-section__title {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 12px 16px !important;
    background: #f8f9fa !important;
    border-bottom: 2px solid #457a47 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #495057 !important;
    font-family: inherit !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    line-height: 1.4 !important;
}

.tsk-section__title i {
    color: #457a47;
    font-size: 14px;
}

.tsk-section__content {
    padding: 14px 16px;
}

/* Data Rows */
.tsk-data-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    padding: 8px 0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
    margin: 0 !important;
}

.tsk-data-row:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.tsk-data-row:first-child {
    padding-top: 0 !important;
}

.tsk-single .tsk-section .tsk-data-row .tsk-data-label,
.tsk-section__content .tsk-data-row .tsk-data-label,
.tsk-data-row span.tsk-data-label,
.tsk-data-label {
    display: block !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: #636b73 !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
}

.tsk-single .tsk-section .tsk-data-row .tsk-data-value,
.tsk-section__content .tsk-data-row .tsk-data-value,
.tsk-data-row span.tsk-data-value,
.tsk-data-value {
    display: block !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    color: #212529 !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
}

.tsk-data-value a,
.tsk-data-value a[href^="mailto:"],
.tsk-data-value a[href^="tel:"],
.tsk-single .tsk-data-value a,
.tsk-section .tsk-data-value a {
    color: #457a47 !important;
    text-decoration: none !important;
}

.tsk-data-value a:hover,
.tsk-data-value a[href^="mailto:"]:hover,
.tsk-data-value a[href^="tel:"]:hover {
    text-decoration: underline !important;
}

.tsk-single .tsk-section .tsk-data-row .tsk-data-value--highlight,
.tsk-data-value--highlight {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #495057 !important;
}

/* Tags */
.tsk-tag,
.tsk-single .tsk-tag {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 4px 10px !important;
    border-radius: 4px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    font-family: inherit !important;
    line-height: 1.4 !important;
}

.tsk-tag--green {
    background: rgba(69, 122, 71, 0.15);
    color: #2d5a2f;
}

.tsk-tag--neutral {
    background: #f0f0f0;
    color: #6c757d;
}

/* Description */
.tsk-description,
.tsk-single .tsk-description {
    font-size: 15px !important;
    line-height: 1.7 !important;
    color: #495057 !important;
    font-family: inherit !important;
    font-weight: 400 !important;
}

/* Attachments */
.tsk-attachments {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tsk-attachment {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tsk-attachment:hover {
    background: #fff;
    border-color: #457a47;
    box-shadow: 0 4px 12px rgba(69, 122, 71, 0.15);
}

.tsk-attachment__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.tsk-attachment__icon i {
    font-size: 24px;
    color: #457a47;
}

.tsk-attachment__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tsk-attachment__name,
.tsk-single .tsk-attachment__name {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #212529 !important;
    word-break: break-all !important;
    font-family: inherit !important;
    line-height: 1.4 !important;
}

.tsk-attachment__action,
.tsk-single .tsk-attachment__action {
    font-size: 12px !important;
    color: #457a47 !important;
    font-family: inherit !important;
    font-weight: 400 !important;
}

.tsk-attachment__download {
    font-size: 18px;
    color: #457a47;
    transition: transform 0.2s ease;
}

.tsk-attachment:hover .tsk-attachment__download {
    transform: translateY(2px);
}

/* Single Page Responsive */
@media (max-width: 768px) {
    .tsk-single {
        padding: 16px 12px 32px;
    }

    .tsk-single__header {
        padding: 16px;
    }

    .tsk-single__title {
        font-size: 20px;
    }

    .tsk-single__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .tsk-section__content {
        padding: 16px;
    }

    .tsk-attachment {
        padding: 12px;
    }

    .tsk-attachment__icon {
        width: 40px;
        height: 40px;
    }

    .tsk-attachment__icon i {
        font-size: 20px;
    }
}

/* Legacy single page support */
.tobalt-skelbimai-single .card-header {
    background-color: #f8f9fa;
    border-bottom: 2px solid #457a47;
}

.tobalt-skelbimai-single .card-header h5 {
    color: #495057;
}

.tobalt-skelbimai-single table th {
    width: 40%;
    color: #6c757d;
    font-weight: 500;
}

.tobalt-skelbimai-single .btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.tobalt-skelbimai-single .btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

/* Status colors on single page */
.tobalt-skelbimai-single .text-success {
    color: #9c0 !important;
}

.tobalt-skelbimai-single .text-danger {
    color: #f44 !important;
}

/* Badges */
.tobalt-skelbimai-container .badge.bg-success {
    background-color: #457a47 !important;
}

/* Button group */
.tobalt-skelbimai-filters .btn-check:checked + .btn-outline-success {
    background-color: #457a47;
    border-color: #457a47;
}

.tobalt-skelbimai-filters .btn-outline-success {
    color: #457a47;
    border-color: #457a47;
}

.tobalt-skelbimai-filters .btn-outline-success:hover {
    background-color: #457a47;
    border-color: #457a47;
    color: #fff;
}

/* Alert */
.tobalt-skelbimai-container .alert-info {
    background-color: #e7f3ff;
    border-color: #b6d4fe;
    color: #084298;
}

/* Responsive */
@media (max-width: 768px) {
    .tobalt-skelbimai-container {
        padding: 15px;
    }

    .tobalt-skelbimas-card .row > div {
        margin-bottom: 10px;
    }

    .tobalt-skelbimai-single table th {
        width: 35%;
    }
}
