.node--type-sedinta-guvern {
    /*max-width: 1100px;*/
    /*margin: 0 auto;*/
    /*padding: 1.5rem;*/
    /*font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;*/
    /*color: #1a202c;*/
    /*background-color: #fff;*/
}

.node--type-sedinta-guvern .content {
    margin-bottom: 30px;
}

.field--name-field-attachment {
    display: grid;
    /*grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));*/
    gap: .3rem;
    margin-bottom: 2rem;
}

.field--name-field-attachment a {
    display: flex;
    padding: .6rem 1.25rem;
    /*background-color: #f7fafc;*/
    border-radius: 0.375rem;
    /*border: 1px solid #e2e8f0;*/
    color: #2d3748;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    line-height: 1.5;
}

.field--name-field-attachment a:hover {
    background-color: #edf2f7;
    border-color: #cbd5e0;
    /*transform: translateY(-1px);*/
}

.field--name-field-attachment a:before {
    content: "";
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.15rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23e53e3e'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    flex-shrink: 0;
}

.accordion {
    margin-bottom: 2rem;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    /*background-color: #fff;*/
}

.accordion-item {
    border: none;
    border-bottom: 1px solid #e2e8f0;
    background-color: transparent;
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    margin: 0;
}

.accordion-button {
    display: flex;
    padding: 1.25rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: #343f52;
    transition: all 0.2s ease;
    border: none;
    width: 100%;
    background-color: #fff;
}

.accordion-button:not(.collapsed) {
    color: var(--bs-template);
    background-color: #eeeeee;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    outline: 2px solid #ebf4ff;
    outline-offset: -2px;
}

.accordion-button::after {
    width: 1.25rem;
    height: 1.25rem;
    background-size: 1.25rem;
    transition: transform 0.2s ease;
    opacity: 0.6;
}

.accordion-button::after {
    background-color: transparent;
    border-radius: 0;
    font-size: 16px;
    background-image: none;
    flex-shrink: 0;
    margin-left: auto;
    background-repeat: no-repeat;
    content: "\ec5d";
    text-align: center;
    font-family: "Unicons";
}

.accordion-button:not(.collapsed)::after {
    background-image: none;
    content: "\ec07";
    transform: none;
    background-color: transparent;
}

.accordion-body {
    padding: 0;
}

.accordion-body-details {
    padding: 0;
}

.table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
    padding: 0 .8rem 0 .8rem;
}

table,
table > :not(caption) > * > * {
    background-color: #fff;
    /*background-color: var(--bs-table-bg);*/
}

.table thead th {
    /*background-color: #f7fafc;*/
    color: #4a5568;
    font-weight: 600;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #e2e8f0;
    /*border-bottom: 0;*/
}

.table thead th:first-child {
    width: 3rem;
    text-align: center;
    /*border-top-left-radius: 0.375rem;*/
}

.table thead th:last-child {
    /*border-top-right-radius: 0.375rem;*/
}

.table tbody td {
    padding: .75rem;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
    /*font-size: 0.95rem;*/
}

td, tr, th {
    border-width: 0;
}

.accordion-body-details > table > tbody > tr > td:nth-child(2) {
    padding: .75rem .75rem .75rem 0;
}

.accordion-body-details > table > tbody > tr > td:nth-child(3) {
    width: 17%;
}

.table tbody tr:last-child td {
    border-bottom: none;
    /*border-bottom: 1px solid #000000;*/
}

.table tbody tr:last-child td:first-child {
    /*border-bottom-left-radius: 0.375rem;*/
}

.table tbody tr:last-child td:last-child {
    /*border-bottom-right-radius: 0.375rem;*/
}

.table tbody td:first-child {
    width: 4%;
    text-align: center;
    font-weight: 600;
    color: var(--bs-template);
    padding: 0;
}

.table a {
    color: var(--bs-template);
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-block;
}

.table a:hover {
    color: #2c5282;
    text-decoration: underline;
}

.sedinta_guvern_note .field--name-body {
    padding: 1.25rem;
    background-color: #fffaf0;
    border-radius: 0.375rem;
    border-left: 4px solid #ecc94b;
    font-style: italic;
    color: #744210;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 1.5rem;
}

/* Animații */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(10px);
    }
    to {
        transform: translateY(0);
    }
}

.accordion-item {
    opacity: 0;
    animation: fadeIn 0.4s ease forwards, slideUp 0.3s ease forwards;
}

/* Hover pentru acordeon când este închis */
.accordion-item:hover {
    background-color: #f8f9fa;
    transition: background-color 0.2s ease;
}

.accordion-button:hover {
    color: var(--bs-template);
}

/* Responsive design pentru tabel pe mobile */
@media (max-width: 768px) {
    .table {
        display: block;
        padding: 0;
        background: transparent;
        border: none;
    }

    .table thead {
        display: none;
    }

    .table tbody {
        display: grid;
        gap: 1rem;
        padding: 1rem;
        border-style: none;
    }

    .table tbody tr:last-child td {
        border-bottom: none;
    }

    .accordion-body-details > table > tbody > tr > td:nth-child(3) {
        width: 100%;
    }

    .count_delimitator {
        display: none;
    }

    .table tbody tr {
        display: block;
        background: #ffffff;
        border-radius: 0.5rem;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        padding: 1rem;
        border: 1px solid #e2e8f0;
        position: relative;
    }

    .table tbody tr:last-child {
        border: 1px solid #e2e8f0;
    }

    .table tbody td {
        display: block;
        padding: 0.25rem 0;
        border: none;
    }

    .table tbody td:first-child {
        position: absolute;
        top: -0.25rem;
        left: -.7rem;
        width: 1.5rem;
        height: 1.5rem;
        background: #3182ce;
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.8rem;
        padding: 0;
    }

    .table tbody td:nth-child(2) {
        /*padding-right: 2rem;*/
        margin-bottom: 0.5rem;
    }

    .table tbody td:nth-child(2) a {
        display: block;
        color: #2d3748;
        font-weight: 500;
        line-height: 1.4;
    }

    .table tbody td:nth-child(3) {
        font-size: 0.875rem;
        color: #718096;
        padding: 0;
        border-top: 1px solid #71809663;
    }

    .table tbody td:nth-child(3):before {
        font-weight: 500;
    }
}

@media only screen and (max-width: 760px), (min-device-width: 768px) and (max-device-width: 1024px) {
    table {
        overflow-x: unset;
        white-space: normal;
    }
}