.filter-table-page {
    background: #f8fafc;
    min-height: 100vh;
    margin: 0;
}

.section-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.section-card-header {
    padding: 0.45rem 0.9rem 0.4rem;
    border-bottom: 1px solid #eef2f7;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    text-align: center;
}

.section-card-header h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: #0d6efd;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 1.2;
}

.section-card-header h2 i {
    font-size: 1.05rem;
}

.section-card-body {
    padding: 0.95rem 1.25rem 1.25rem;
}

.toolbar-card {
    background: #fbfdff;
    border: 1px solid #e8eef5;
    border-radius: 18px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.toolbar-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr) auto;
    gap: 1rem;
    align-items: end;
}

.toolbar-field .mb-3,
.toolbar-field .my-2,
.toolbar-field .form-group {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
}

.toolbar-field input,
.toolbar-field select {
    border: 1px solid #dbe7f3;
    border-radius: 12px;
    padding: 0.7rem 0.9rem;
    background: #ffffff;
    color: #0f172a;
    box-shadow: none;
    width: 100%;
}

.toolbar-field input:focus,
.toolbar-field select:focus {
    border-color: #93c5fd;
    outline: none;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.toolbar-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    align-items: center;
    white-space: nowrap;
}

.btn-soft-light,
.btn-soft-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 0.72rem 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    white-space: nowrap;
}

.btn-soft-light {
    background: #f8fafc;
    color: #475569;
    border-color: #dbe7f3;
}

.btn-soft-light:hover {
    background: #eef2f7;
    color: #0f172a;
}

.btn-soft-submit {
    background: #0d6efd;
    color: #ffffff;
    border-color: #0d6efd;
}

.btn-soft-submit:hover {
    background: #0b5ed7;
    color: #ffffff;
}

.table-card {
    background: #fbfdff;
    border: 1px solid #e8eef5;
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.25s ease;
}

.table-card:hover {
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.table-card-header {
    padding: 0.85rem 1rem;
    background: #f8fbff;
    border-bottom: 1px solid #e8eef5;
    color: #0d6efd;
    font-weight: 700;
    font-size: 0.98rem;
}

.table-card-body {
    padding: 1rem;
}

.table-container-roads {
    border-radius: 14px;
    overflow-x: auto;
}

.table-container-roads table,
.table-container-roads .table {
    margin-bottom: 0 !important;
    width: 100% !important;
    border-collapse: collapse;
    background: #ffffff;
}

.table-container-roads thead th,
.table-container-roads table thead th,
.table-container-roads .table thead th {
    background: #f8fbff !important;
    color: #0f172a;
    font-weight: 700;
    border: 1px solid #e8eef5 !important;
    vertical-align: middle;
    white-space: normal;
}

.table-container-roads tbody td,
.table-container-roads table tbody td,
.table-container-roads .table tbody td {
    color: #334155;
    border: 1px solid #e8eef5 !important;
    vertical-align: top;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.table-container-roads td,
.table-container-roads th {
    padding: 0.85rem 0.6rem !important;
}

.table-container-roads a {
    text-decoration: none;
}

.table-container-roads .btn,
.table-container-roads button,
.table-container-roads a.btn {
    border-radius: 10px;
    font-weight: 600;
}

/* coloana Actiuni */
.table-container-roads table th:last-child,
.table-container-roads table td:last-child,
.table-container-roads .table th:last-child,
.table-container-roads .table td:last-child {
    white-space: nowrap !important;
    width: 1%;
    text-align: center;
    vertical-align: middle;
}

.table-container-roads table td:last-child a,
.table-container-roads .table td:last-child a,
.table-container-roads table td:last-child .btn,
.table-container-roads .table td:last-child .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    padding: 0.45rem 0.8rem;
    border-radius: 10px;
    font-weight: 600;
    margin: 0.15rem 0;
}

/* badge-uri daca exista */
.table-container-roads .badge {
    border-radius: 999px;
    padding: 0.45rem 0.7rem;
    font-weight: 700;
}

/* progres */
.progress {
    margin: 0.75rem 0 1rem;
}

@media (max-width: 992px) {
    .toolbar-grid {
        grid-template-columns: 1fr;
    }

    .toolbar-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .filter-table-page {
        padding-top: 1rem;
    }

    .section-card-header {
        padding: 0.4rem 0.8rem 0.35rem;
    }

    .section-card-header h2 {
        font-size: 1rem;
        gap: 6px;
    }

    .section-card-header h2 i {
        font-size: 0.95rem;
    }

    .section-card-body {
        padding: 0.85rem 1rem 1rem;
    }

    .table-card-body,
    .toolbar-card {
        padding: 0.85rem;
    }

    .toolbar-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-soft-light,
    .btn-soft-submit {
        width: 100%;
    }

    .table-container-roads td,
    .table-container-roads th {
        padding: 0.75rem 0.5rem !important;
    }

    .table-container-roads table td:last-child a,
    .table-container-roads .table td:last-child a,
    .table-container-roads table td:last-child .btn,
    .table-container-roads .table td:last-child .btn {
        min-width: 72px;
        padding: 0.42rem 0.7rem;
    }
}