@import url('https://fonts.googleapis.com/css2?family=Kumbh+Sans:wght@400;500;700;800&display=swap');

.roteiros-page {
    --roteiros-green: #73a641;
    --roteiros-dark-green: #3c8f3c;
    padding: 52px 0 88px;
    color: #151515;
    font-family: 'Kumbh Sans', sans-serif;
}

.roteiros-page__inner {
    width: min(80%, 1000px);
    margin: 0 auto;
}

.roteiros-page__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 36px;
}

.roteiros-page__header .roteiros-page__title {
    margin: 0;
}

.roteiros-search {
    position: relative;
    flex: 0 1 445px;
    width: min(100%, 445px);
    margin: 0;
}

.roteiros-search__label,
.roteiros-table__caption,
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.roteiros-search__input {
    width: 100%;
    height: 58px;
    margin: 0;
    padding: 0 24px 0 58px;
    border: 2px solid var(--roteiros-green);
    border-radius: 30px;
    background: #fff;
    color: #333;
    font: inherit;
    font-size: 17px;
    box-shadow: none;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.roteiros-search__input:focus {
    border-color: var(--roteiros-dark-green);
    box-shadow: 0 0 0 4px rgba(115, 166, 65, .16);
}

.roteiros-search__input::placeholder {
    color: #8a8a8a;
    opacity: 1;
}

.roteiros-search__icon {
    position: absolute;
    z-index: 1;
    top: 17px;
    left: 21px;
    width: 17px;
    height: 17px;
    border: 3px solid var(--roteiros-green);
    border-radius: 50%;
    pointer-events: none;
}

.roteiros-search__icon::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 3px;
    right: -8px;
    bottom: -5px;
    border-radius: 2px;
    background: var(--roteiros-green);
    transform: rotate(45deg);
}

.roteiros-page__title {
    margin: 0 0 36px;
    color: var(--roteiros-dark-green);
    font-size: clamp(30px, 2.25vw, 42px);
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}

.roteiros-page__section {
    margin-top: 140px;
}

.roteiros-table-wrap {
    overflow: hidden;
    overflow-x: auto;
    border: 0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(21, 21, 21, .05), 0 8px 24px rgba(21, 21, 21, .06);
}

.roteiros-table {
    width: 100%;
    min-width: 620px;
    margin: 0;
    border: 0;
    border-collapse: collapse;
    table-layout: fixed;
}

.roteiros-table__cnae {
    width: 14%;
}

.roteiros-table__activity {
    width: 64%;
}

.roteiros-table__roteiro {
    width: 12%;
}

.roteiros-table__revision {
    width: 10%;
}

.roteiros-table th,
.roteiros-table td {
    padding: 18px 24px;
    border: 0;
    vertical-align: middle;
    font-size: 16px;
    line-height: 1.45;
}

.roteiros-table thead th {
    padding-top: 20px;
    padding-bottom: 20px;
    background: var(--roteiros-green);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.roteiros-table th,
.roteiros-table td {
    text-align: left;
}

.roteiros-table th:first-child,
.roteiros-table td:first-child,
.roteiros-table th:nth-child(3),
.roteiros-table td:nth-child(3),
.roteiros-table th:last-child,
.roteiros-table td:last-child {
    text-align: center;
}

.roteiros-table tbody tr {
    background: #fff;
    transition: background-color .15s ease;
}

.roteiros-table tbody tr:nth-child(even) {
    background: #f6f8f3;
}

.roteiros-table tbody tr:hover {
    background: rgba(115, 166, 65, .14);
}

.roteiros-table tbody td:first-child {
    color: #5b5b5b;
    font-variant-numeric: tabular-nums;
}

.roteiros-table tbody td:nth-child(3),
.roteiros-table tbody td:last-child {
    color: #5b5b5b;
    font-variant-numeric: tabular-nums;
}

/* Atividades sem roteiro disponível: exibidas como texto simples. */
.roteiros-table__text {
    display: inline-block;
    color: #151515;
    font-weight: 500;
}

.roteiros-table__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #151515;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
}

.roteiros-table__link-text {
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 3px;
    transition: text-decoration-color .15s ease, color .15s ease;
}

.roteiros-table__link-icon {
    flex: none;
    color: var(--roteiros-green);
    opacity: 0;
    visibility: hidden;
    transition: opacity .15s ease, transform .15s ease, color .15s ease, visibility .15s ease;
}

.roteiros-table__link:hover,
.roteiros-table__link:focus-visible {
    color: var(--roteiros-dark-green);
}

.roteiros-table__link:hover .roteiros-table__link-text,
.roteiros-table__link:focus-visible .roteiros-table__link-text {
    text-decoration-color: currentColor;
}

.roteiros-table tbody tr:hover .roteiros-table__link-icon,
.roteiros-table__link:hover .roteiros-table__link-icon,
.roteiros-table__link:focus-visible .roteiros-table__link-icon {
    color: var(--roteiros-dark-green);
    opacity: 1;
    visibility: visible;
    transform: translate(2px, -2px);
}

.roteiros-table__link:focus-visible {
    outline: 2px solid var(--roteiros-dark-green);
    outline-offset: 3px;
}

.roteiros-table__placeholder td {
    height: 60px;
    color: #9a9a9a;
    font-size: 18px;
}

.roteiros-page__note {
    margin: 18px 5.8% 0;
    font-size: 16px;
    line-height: 1.5;
}

.roteiros-page__guidance {
    display: block;
    width: min(86%, 1390px);
    margin: 164px auto 0;
    padding: 18px 28px;
    border-radius: 20px;
    background: var(--roteiros-green);
    color: #fff;
    font-size: 17px;
    line-height: 1.45;
    text-align: center;
    text-decoration: none;
    transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.roteiros-page__guidance:hover,
.roteiros-page__guidance:focus-visible {
    background: var(--roteiros-dark-green);
    color: #fff;
    box-shadow: 0 10px 24px rgba(60, 143, 60, .22);
    transform: translateY(-2px);
}

/* Bloco recolhível com as orientações de preenchimento. */
.roteiros-guia {
    margin: 0 0 36px;
    border: 2px solid var(--roteiros-green);
    border-radius: 20px;
    background: #fff;
    overflow: hidden;
}

.roteiros-guia__summary {
    padding: 20px 28px;
    color: var(--roteiros-dark-green);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.45;
    cursor: pointer;
    list-style: none;
    transition: background-color .2s ease;
}

.roteiros-guia__summary::-webkit-details-marker {
    display: none;
}

.roteiros-guia__summary::after {
    content: '';
    float: right;
    width: 10px;
    height: 10px;
    margin: 6px 0 0 16px;
    border-right: 3px solid currentColor;
    border-bottom: 3px solid currentColor;
    border-radius: 2px;
    transform: rotate(45deg);
    transition: transform .32s cubic-bezier(.4, 0, .2, 1);
}

.roteiros-guia[open] .roteiros-guia__summary::after {
    transform: rotate(-135deg);
}

/*
 * O conteúdo é animado via JS (webroot/js/roteiros.js), que define a altura
 * inicial/final para que a transição funcione mesmo com <details> nativo.
 */
.roteiros-guia__content {
    overflow: hidden;
}

.roteiros-guia__content.is-animating {
    transition: height .32s cubic-bezier(.4, 0, .2, 1), opacity .32s ease;
}

.roteiros-guia__list {
    transition: transform .32s cubic-bezier(.4, 0, .2, 1);
}

.roteiros-guia__content.is-collapsing .roteiros-guia__list,
.roteiros-guia__content.is-expanding .roteiros-guia__list {
    transform: translateY(-8px);
}

.roteiros-guia__content.is-expanding.is-animating .roteiros-guia__list {
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .roteiros-guia__content.is-animating,
    .roteiros-guia__summary::after,
    .roteiros-guia__list {
        transition: none;
    }
}

.roteiros-guia__summary:hover,
.roteiros-guia__summary:focus-visible {
    background: rgba(115, 166, 65, .1);
}

.roteiros-guia__summary:focus-visible {
    outline: 2px solid var(--roteiros-dark-green);
    outline-offset: -4px;
}

.roteiros-guia__list {
    margin: 0;
    padding: 4px 28px 24px 52px;
}

.roteiros-guia__list li {
    margin-bottom: 14px;
    font-size: 16px;
    line-height: 1.55;
    text-align: justify;
}

.roteiros-guia__list li:last-child {
    margin-bottom: 0;
}

.roteiros-page__no-results {
    margin: 28px 0 0;
    color: #555;
    text-align: center;
}

@media (max-width: 768px) {
    .roteiros-page {
        padding: 32px 0 64px;
    }

    .roteiros-page__inner {
        width: min(100% - 40px, 1620px);
    }

    .roteiros-page__header {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        margin-bottom: 24px;
    }

    .roteiros-search {
        flex: 1 1 auto;
        width: 100%;
    }

    .roteiros-page__section {
        margin-top: 80px;
    }

    .roteiros-table th,
    .roteiros-table td {
        padding: 14px 16px;
        font-size: 15px;
    }

    .roteiros-table thead th {
        font-size: 12px;
    }

    .roteiros-page__note {
        margin-inline: 0;
        font-size: 14px;
    }

    .roteiros-page__guidance {
        width: 100%;
        margin-top: 88px;
        padding: 16px 20px;
        border-radius: 16px;
        font-size: 15px;
    }

    .roteiros-guia {
        margin-bottom: 24px;
        border-radius: 16px;
    }

    .roteiros-guia__summary {
        padding: 16px 20px;
        font-size: 15px;
    }

    .roteiros-guia__list {
        padding: 4px 20px 20px 40px;
    }

    .roteiros-guia__list li {
        font-size: 14px;
    }
}

.aviso-asterisco{
    text-indent: 25px;
    margin: 0;
    margin-block: 30px;
    padding: 20px;
    border: 2px solid #ff010126;
    border-radius: 20px;
    background-color: #ff000008;
}