/* Portal de gestão de licitações — layout app */

.cmtb-portal-licitacoes-body {
    margin: 0;
    min-height: 100vh;
    background: #f0f2f5;
    color: #1a1d24;
}

.cmtb-portal-licitacoes-body.pl-login-page {
    background: #f0f2f5;
}

.cmtb-portal-licitacoes-body .site-header,
.cmtb-portal-licitacoes-body .site-footer,
.cmtb-portal-licitacoes-body .skip-link {
    display: none !important;
}

/* —— Login —— */
.pl-login {
    display: grid;
    min-height: 100vh;
    grid-template-columns: 1fr;
}

@media (min-width: 900px) {
    .pl-login {
        grid-template-columns: minmax(280px, 42%) 1fr;
    }
}

.pl-login__brand {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.75rem;
    color: #fff;
    background:
        radial-gradient(ellipse 120% 80% at 20% 0%, rgba(255, 255, 255, .08) 0%, transparent 55%),
        linear-gradient(165deg, #5c0f1c 0%, #741322 42%, #8b1a28 100%);
}

.pl-login__brand-inner {
    width: 100%;
    max-width: 22rem;
}

.pl-login__logo .pl-sidebar__logo-badge {
    margin-bottom: 1.5rem;
    padding: .85rem 1rem;
}

.pl-login__brand-kicker {
    margin: 0 0 .5rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .88;
}

.pl-login__brand-title {
    margin: 0 0 .75rem;
    font-size: clamp(1.45rem, 3vw, 1.85rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.02em;
}

.pl-login__brand-text {
    margin: 0;
    font-size: .95rem;
    line-height: 1.55;
    opacity: .92;
}

.pl-login__panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
    background: #f0f2f5;
}

.pl-login__card {
    width: 100%;
    max-width: 400px;
    padding: 2rem 1.75rem 1.5rem;
    border: 1px solid #e2e6ed;
    border-radius: .85rem;
    background: #fff;
    box-shadow: 0 8px 32px rgba(26, 29, 36, .08);
}

.pl-login__header {
    margin-bottom: 1.35rem;
}

.pl-login__title {
    margin: 0 0 .35rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: #741322;
    letter-spacing: -.02em;
}

.pl-login__subtitle {
    margin: 0;
    font-size: .9rem;
    line-height: 1.45;
    color: #5c6370;
}

.pl-login__form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pl-login__form .pl-field {
    margin: 0;
}

.pl-login__submit {
    width: 100%;
    margin-top: .35rem;
    padding: .7rem 1rem;
    font-size: .95rem;
}

.pl-login__footer {
    margin: 1.35rem 0 0;
    padding-top: 1.15rem;
    border-top: 1px solid #eef1f5;
    text-align: center;
    font-size: .9rem;
}

.pl-login__footer a {
    font-weight: 600;
    color: #741322;
    text-decoration: none;
}

.pl-login__footer a:hover {
    text-decoration: underline;
}

.pl-login__card .portal-licitacoes__alert {
    margin-bottom: 1rem;
    border-radius: .4rem;
}

/* —— App shell —— */
.pl-app {
    display: flex;
    min-height: 100vh;
}

.pl-sidebar {
    flex: 0 0 260px;
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1rem;
    background: linear-gradient(180deg, #741322 0%, #5c0f1c 100%);
    color: #fff;
}

.pl-sidebar__brand {
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.pl-sidebar__logo-link {
    display: block;
    margin-bottom: .85rem;
    text-decoration: none;
}

.pl-sidebar__logo-badge {
    display: block;
    padding: .7rem .75rem;
    border-radius: .55rem;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}

.pl-sidebar__logo {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.pl-sidebar__title {
    margin: 0;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    opacity: .85;
}

.pl-nav {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    flex: 1;
}

.pl-nav__link {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .65rem .85rem;
    border-radius: .5rem;
    color: rgba(255, 255, 255, .88);
    font-weight: 600;
    font-size: .92rem;
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}

.pl-nav__link:hover {
    color: #fff;
    background: rgba(255, 255, 255, .1);
}

.pl-nav__link.is-active {
    color: #741322;
    background: #fff;
}

.pl-nav__link--muted {
    opacity: .9;
    font-weight: 500;
}

.pl-nav__icon {
    width: 1.25rem;
    text-align: center;
    font-size: 1rem;
    opacity: .9;
}

.pl-sidebar__user {
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.pl-sidebar__user-name {
    margin: 0 0 .5rem;
    font-size: .88rem;
    font-weight: 600;
    opacity: .95;
}

.pl-sidebar__logout {
    width: 100%;
    padding: .5rem .75rem;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: .4rem;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease;
}

.pl-sidebar__logout:hover {
    background: rgba(255, 255, 255, .12);
}

/* Portal de Gestão: atalhos para as outras áreas do usuário, acima do nome. */
.pl-areas {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.pl-areas__title {
    margin: 0 0 .35rem .85rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    opacity: .7;
}

.pl-areas .pl-nav__link {
    padding-block: .5rem;
    font-size: .88rem;
}

/* Na tela inicial do portal sem área escolhida, o rodapé da barra fica no
   fim: não há menu da área para empurrá-lo. */
.pl-sidebar__brand + .pl-areas {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.pl-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.pl-main__header {
    padding: 1.5rem 2rem 1rem;
    background: #fff;
    border-bottom: 1px solid #e2e6ed;
}

.pl-main__title {
    margin: 0;
    font-size: clamp(1.35rem, 2.5vw, 1.65rem);
    font-weight: 800;
    color: #741322;
    letter-spacing: -.02em;
}

.pl-main__content {
    flex: 1;
    width: 100%;
    max-width: none;
    padding: 1.5rem 2rem 2.5rem;
    box-sizing: border-box;
}

/* —— Toolbar & buttons —— */
.pl-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.pl-toolbar--list {
    margin-bottom: 1rem;
}

.pl-list-filters {
    margin-bottom: 1.25rem;
}

.pl-list-pagination {
    margin-top: 1.25rem;
}

.pl-list-pagination .pagination {
    margin-top: 0;
    margin-bottom: .75rem;
    justify-content: center;
}

.pl-list-pagination__meta {
    margin: 0;
    text-align: center;
    color: #5c6370;
    font-size: .88rem;
}

.pl-toolbar__meta {
    margin: 0;
    color: #5c6370;
    font-size: .9rem;
}

.pl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .55rem 1.15rem;
    border-radius: .45rem;
    border: 1px solid transparent;
    font: inherit;
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.pl-btn--primary {
    color: #fff;
    background: #a51c30;
}

.pl-btn--primary:hover {
    color: #fff;
    background: #741322;
}

.pl-btn--ghost {
    color: #741322;
    background: #fff;
    border-color: #d8dce3;
}

.pl-btn--ghost:hover {
    background: #f5f6f8;
}

.pl-btn--danger {
    color: #b42318;
    background: #fff;
    border-color: #fecdca;
}

.pl-btn--danger:hover {
    background: #fef3f2;
}

.pl-link {
    font-weight: 700;
    font-size: .88rem;
    text-decoration: none;
    color: #a51c30;
}

.pl-link:hover {
    color: #741322;
    text-decoration: underline;
}

.pl-link--ghost {
    color: #5c6370;
    font-weight: 600;
}

.pl-link + .pl-link {
    margin-left: .85rem;
}

.pl-link--danger {
    color: #b42318;
}

.pl-link--danger:hover {
    color: #912018;
}

button.pl-link {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    font-family: inherit;
    cursor: pointer;
}

.pl-row-actions {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: .85rem;
}

.pl-inline-form--actions {
    display: inline-flex;
    margin: 0;
}

.pl-empty {
    padding: 3rem 2rem;
    text-align: center;
    background: #fff;
    border-radius: .65rem;
    border: 1px dashed #d8dce3;
}

.pl-empty p {
    margin: 0 0 1rem;
    color: #5c6370;
}

/* —— Legacy / shared —— */
.portal-licitacoes {
    padding-block: 0;
}

.portal-licitacoes__card {
    max-width: 420px;
    margin-inline: auto;
    padding: 2rem 1.75rem;
    border: 1px solid var(--color-line, #e2e6ed);
    border-radius: .65rem;
    background: #fff;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .06);
}

.portal-licitacoes__card h1 {
    margin: 0 0 .75rem;
    color: var(--color-brand-dark, #741322);
    font-size: 1.5rem;
}

.portal-licitacoes__intro {
    margin: 0 0 1.25rem;
    color: var(--color-muted, #5c6370);
    font-size: .95rem;
    line-height: 1.5;
}

.portal-licitacoes__alert {
    margin: 0 0 1rem;
    padding: .75rem 1rem;
    border-left: 4px solid var(--color-brand, #a51c30);
    background: #fff5f6;
    color: var(--color-brand-dark, #741322);
    border-radius: 0 .35rem .35rem 0;
}

.portal-licitacoes__form label {
    display: block;
    margin-bottom: .35rem;
    font-weight: 600;
    font-size: .9rem;
}

.pl-form .portal-licitacoes__input {
    margin-bottom: 0;
}

.portal-licitacoes__input {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
    padding: .6rem .8rem;
    border: 1px solid #d8dce3;
    border-radius: .45rem;
    font: inherit;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.portal-licitacoes__input:focus {
    outline: none;
    border-color: #a51c30;
    box-shadow: 0 0 0 3px rgba(165, 28, 48, .12);
}

.portal-licitacoes__submit {
    width: 100%;
}

.portal-licitacoes__hint {
    margin: 1.25rem 0 0;
    font-size: .9rem;
    text-align: center;
}

.portal-licitacoes__notice {
    margin: 0 0 1rem;
    padding: .75rem 1rem;
    border-left: 4px solid #2e7d32;
    background: #f1f8f4;
    border-radius: 0 .35rem .35rem 0;
}

.portal-licitacoes__notice--erro {
    border-left-color: #b3261e;
    background: #fdf1f0;
    color: #7f1d1a;
    font-weight: 600;
}

.pl-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: none;
    border-radius: .65rem;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}

.pl-table {
    width: 100%;
    table-layout: fixed;
    font-size: .9rem;
}

.pl-table th {
    background: #f5f6f8;
    color: #3d4450;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.pl-table td {
    vertical-align: middle;
}

.pl-table:not(.pl-table--inscricoes):not(.pl-table--expediente):not(.pl-table--audiencias):not(.pl-table--cursos) th:nth-child(1),
.pl-table:not(.pl-table--inscricoes):not(.pl-table--expediente):not(.pl-table--audiencias):not(.pl-table--cursos) td:nth-child(1) {
    width: 8%;
    min-width: 5.25rem;
}

.pl-table:not(.pl-table--inscricoes):not(.pl-table--expediente):not(.pl-table--audiencias):not(.pl-table--cursos) th:nth-child(2),
.pl-table:not(.pl-table--inscricoes):not(.pl-table--expediente):not(.pl-table--audiencias):not(.pl-table--cursos) td:nth-child(2) {
    width: 44%;
}

.pl-table:not(.pl-table--inscricoes):not(.pl-table--expediente):not(.pl-table--audiencias):not(.pl-table--cursos) th:nth-child(3),
.pl-table:not(.pl-table--inscricoes):not(.pl-table--expediente):not(.pl-table--audiencias):not(.pl-table--cursos) td:nth-child(3) {
    width: 22%;
}

.pl-table:not(.pl-table--inscricoes):not(.pl-table--expediente):not(.pl-table--audiencias):not(.pl-table--cursos) th:nth-child(4),
.pl-table:not(.pl-table--inscricoes):not(.pl-table--expediente):not(.pl-table--audiencias):not(.pl-table--cursos) td:nth-child(4) {
    width: 26%;
    text-align: right;
}

.pl-table__title {
    line-height: 1.45;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

.pl-table__date {
    font-size: .86rem;
    color: #3d4450;
    white-space: normal;
    line-height: 1.35;
}

.pl-table__actions {
    text-align: right;
}

.pl-table tbody tr:hover {
    background: #fafbfc;
}

.pl-table__num {
    display: inline-block;
    padding: .2rem .5rem;
    border-radius: .35rem;
    background: #f3e8eb;
    color: #741322;
    font-weight: 700;
    font-size: .85rem;
}

.portal-licitacoes__table th,
.portal-licitacoes__table td {
    padding: .85rem 1.1rem;
    border-bottom: 1px solid #eef1f5;
    text-align: left;
}

.portal-licitacoes__row-actions {
    white-space: nowrap;
}

.pl-form-panel {
    width: 100%;
    max-width: none;
    padding: 0;
    border: none;
    border-radius: .75rem;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
    overflow: hidden;
}

.pl-form-section {
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid #eef1f5;
}

.pl-form-section--last {
    border-bottom: none;
}

.pl-form-section__head {
    margin-bottom: 1.15rem;
}

.pl-form-section__title {
    margin: 0 0 .25rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: #741322;
    letter-spacing: -.01em;
}

.pl-form-section__desc {
    margin: 0;
    font-size: .88rem;
    color: #5c6370;
    line-height: 1.45;
}

.pl-form-section__body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pl-form-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 640px) {
    .pl-form-grid {
        grid-template-columns: 1fr 1fr;
    }

    .pl-form-grid--3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .pl-form-grid--3 {
        grid-template-columns: 1fr;
    }
}

.pl-field {
    margin: 0;
}

.pl-field--full {
    grid-column: 1 / -1;
}

.pl-field__label {
    display: block;
    margin-bottom: .4rem;
    font-size: .88rem;
    font-weight: 700;
    color: #2a2f38;
}

.pl-field__hint {
    margin: 0 0 .5rem;
    font-size: .82rem;
    color: #8b919c;
}

.pl-field__control {
    margin-bottom: 0;
}

.pl-field__control--money {
    font-variant-numeric: tabular-nums;
    letter-spacing: .02em;
}

.pl-field__control--textarea {
    min-height: 9rem;
    resize: vertical;
    line-height: 1.5;
}

.pl-field--file {
    padding: 1.1rem 1.15rem;
    border: 2px dashed #d8dce3;
    border-radius: .55rem;
    background: #fafbfc;
    transition: border-color .15s ease, background .15s ease;
}

.pl-field--file:focus-within {
    border-color: #a51c30;
    background: #fff;
}

.pl-field__file {
    display: block;
    width: 100%;
    font-size: .88rem;
    color: #3d4450;
}

.pl-anexos-upload {
    padding: 1.1rem 1.15rem;
    border: 2px dashed #d8dce3;
    border-radius: .55rem;
    background: #fafbfc;
}

.pl-anexos-upload:focus-within {
    border-color: #a51c30;
    background: #fff;
}

.pl-anexos-upload__rows {
    margin: 0 0 .75rem;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .65rem;
}

.pl-anexos-upload__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto;
    gap: .65rem;
    align-items: center;
}

@media (max-width: 640px) {
    .pl-anexos-upload__row {
        grid-template-columns: 1fr;
    }
}

.pl-anexos-upload__input {
    width: 100%;
    font-size: .86rem;
}

.pl-anexos-upload__name {
    font-size: .86rem;
    color: #3d4450;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pl-anexos-upload__remove {
    padding: .35rem .65rem;
    border: 1px solid #e2e6ed;
    border-radius: .35rem;
    background: #fff;
    color: #5c6370;
    font: inherit;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
}

.pl-anexos-upload__remove:hover {
    border-color: #fecdca;
    color: #912018;
    background: #fff5f5;
}

.pl-anexos-upload__add {
    margin-top: .15rem;
}

.pl-anexos-list {
    margin: 0 0 .5rem;
    padding: 0;
    list-style: none;
    border: 1px solid #e2e6ed;
    border-radius: .5rem;
    overflow: hidden;
}

.pl-anexos-list__item + .pl-anexos-list__item {
    border-top: 1px solid #eef1f5;
}

.pl-anexos-list__label {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .65rem .85rem;
    margin: 0;
    font-size: .9rem;
    cursor: pointer;
    background: #fff;
}

.pl-anexos-list__label:hover {
    background: #fafbfc;
}

.pl-form-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .65rem;
    padding: 1.15rem 1.75rem;
    background: #f5f6f8;
    border-top: 1px solid #eef1f5;
}

.pl-form-danger {
    margin-top: 1.25rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid #fecdca;
    border-radius: .65rem;
    background: #fff;
}

.pl-form-danger__title {
    margin: 0 0 .35rem;
    font-size: .95rem;
    font-weight: 800;
    color: #912018;
}

.pl-form-danger__desc {
    margin: 0 0 .85rem;
    font-size: .88rem;
    color: #5c6370;
}

.pl-form-delete {
    margin: 0;
    padding: 0;
    border: none;
}

.pl-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    align-items: center;
    margin-top: .25rem;
}

.portal-licitacoes__grid {
    display: grid;
    gap: 0 1rem;
}

@media (min-width: 640px) {
    .portal-licitacoes__grid {
        grid-template-columns: 1fr 1fr;
    }
}

.portal-licitacoes__fieldset {
    margin: 1rem 0;
    padding: 1rem 1.15rem;
    border: 1px solid #e2e6ed;
    border-radius: .45rem;
    background: #fafbfc;
}

.portal-licitacoes__anexos {
    margin: 0 0 .75rem;
    padding: 0;
    list-style: none;
}

.portal-licitacoes__anexos li {
    margin-bottom: .35rem;
}

/* —— Mobile —— */
@media (max-width: 900px) {
    .pl-app {
        flex-direction: column;
    }

    .pl-sidebar {
        flex: none;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: .75rem 1rem;
        padding: 1rem;
    }

    .pl-sidebar__brand {
        flex: 1 1 100%;
        margin-bottom: 0;
        padding-bottom: .75rem;
    }

    .pl-sidebar__logo-badge {
        display: inline-block;
        max-width: 220px;
        padding: .5rem .65rem;
    }

    .pl-sidebar__logo {
        max-height: 40px;
        width: auto;
        max-width: 100%;
    }

    .pl-nav {
        flex: 1 1 auto;
        flex-direction: row;
        flex-wrap: wrap;
        gap: .35rem;
    }

    .pl-nav__link {
        padding: .45rem .65rem;
        font-size: .85rem;
    }

    .pl-sidebar__user {
        flex: 0 0 auto;
        margin-top: 0;
        padding-top: 0;
        border-top: none;
        display: flex;
        align-items: center;
        gap: .65rem;
    }

    .pl-sidebar__user-name {
        margin: 0;
    }

    .pl-sidebar__logout {
        width: auto;
    }

    .pl-main__header,
    .pl-main__content {
        padding-inline: 1.15rem;
    }
}

@media (max-width: 640px) {
    .pl-table thead {
        display: none;
    }

    .pl-table tr {
        display: block;
        padding: .85rem 1rem;
        border-bottom: 1px solid #eef1f5;
    }

    .pl-table td {
        display: block;
        padding: .25rem 0;
        border: none;
    }

    .pl-table td::before {
        content: attr(data-label);
        display: block;
        font-size: .72rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .04em;
        color: #8b919c;
        margin-bottom: .15rem;
    }

    .pl-table__actions::before {
        margin-top: .5rem;
    }
}

.pl-inline-form {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
}

.pl-inline-form select {
    min-width: 9rem;
}

.pl-presence-checks {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
}

.pl-presence-check {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin: 0;
    padding: .35rem .55rem;
    border: 1px solid #d8dee8;
    border-radius: .4rem;
    background: #fff;
    font-size: .875rem;
    font-weight: 600;
    color: #3d4450;
    cursor: pointer;
    user-select: none;
}

.pl-presence-check:has(input:checked) {
    border-color: #741322;
    background: #f9eef0;
    color: #741322;
}

.pl-presence-check input {
    width: 1rem;
    height: 1rem;
    margin: 0;
    accent-color: #741322;
}

.pl-btn--small {
    padding: .35rem .75rem;
    font-size: .875rem;
}

.pl-pagination {
    margin-top: 1.25rem;
}

.pl-pagination .page-numbers {
    display: inline-block;
    margin-right: .35rem;
    padding: .25rem .55rem;
    border-radius: .35rem;
    text-decoration: none;
}

.pl-pagination .page-numbers.current {
    font-weight: 700;
    background: #eef2ff;
}

/* Tabela de inscrições da escola (8 colunas). */
.pl-table-wrap--inscricoes {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.pl-table--inscricoes {
    table-layout: fixed;
    width: 100%;
    min-width: 76rem;
}

.pl-table--inscricoes th,
.pl-table--inscricoes td {
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.pl-table--inscricoes th:nth-child(1),
.pl-table--inscricoes td:nth-child(1) {
    width: 3.25rem;
}

.pl-table--inscricoes th:nth-child(2),
.pl-table--inscricoes td:nth-child(2) {
    width: 16%;
}

.pl-table--inscricoes th:nth-child(3),
.pl-table--inscricoes td:nth-child(3) {
    width: 15%;
}

.pl-table--inscricoes th:nth-child(4),
.pl-table--inscricoes td:nth-child(4) {
    width: 10%;
}

.pl-table--inscricoes th:nth-child(5),
.pl-table--inscricoes td:nth-child(5) {
    width: 9%;
}

.pl-table--inscricoes th:nth-child(6),
.pl-table--inscricoes td:nth-child(6) {
    width: 16%;
}

.pl-table--inscricoes th:nth-child(7),
.pl-table--inscricoes td:nth-child(7) {
    width: 10%;
    white-space: nowrap;
}

.pl-table--inscricoes th:nth-child(8),
.pl-table--inscricoes td:nth-child(8) {
    width: 13%;
    min-width: 10.5rem;
}

.pl-table--inscricoes th:nth-child(9),
.pl-table--inscricoes td:nth-child(9) {
    width: 8%;
    min-width: 6rem;
    white-space: nowrap;
}

.pl-table__muted {
    color: #8b919c;
}

.pl-link--certificado {
    white-space: nowrap;
}

.pl-cert-preview__meta {
    margin: 0 0 1rem;
    color: #3d4450;
}

.pl-cert-preview__frame,
.cmtb-cert-preview {
    margin: 1.25rem 0;
    padding: 1rem;
    border: 1px solid #eef1f5;
    border-radius: .65rem;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
    overflow-x: auto;
}

.pl-cert-preview__image,
.cmtb-cert-preview__image {
    display: block;
    width: 100%;
    max-width: 980px;
    height: auto;
    margin: 0 auto;
}

.pl-cert-preview__actions,
.cmtb-cert-preview__actions {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: center;
}

.pl-cert-email-form,
.cmtb-cert-email-form {
    display: inline;
    margin: 0;
}

.pl-notice {
    margin: 0 0 1rem;
    padding: .75rem 1rem;
    border-radius: .5rem;
    font-size: .95rem;
}

.pl-notice--success {
    background: #ecfdf3;
    border: 1px solid #abefc6;
    color: #067647;
}

.pl-notice--error {
    background: #fef3f2;
    border: 1px solid #fecdca;
    color: #b42318;
}

.pl-cert-config__form {
    max-width: 420px;
    margin-top: 1.5rem;
}

.pl-cert-config__fields {
    display: grid;
    gap: 1rem;
}

.pl-cert-config__field label {
    display: block;
    margin-bottom: .35rem;
    font-weight: 600;
    color: #3d4450;
}

.pl-cert-config__actions {
    margin-top: 1.25rem;
}

.pl-cert-preview__meta-line,
.cmtb-cert-preview__meta-line {
    margin: 0 0 1rem;
    color: #5c6578;
    font-size: .95rem;
}

.pl-cert-preview__meta-line .pl-link,
.cmtb-cert-preview__meta-line a {
    font-weight: 600;
}

.pl-btn--secondary {
    background: #fff;
    color: #1e4a8c;
    border: 1px solid #c7d7ef;
}

.pl-table--inscricoes .pl-table__presence {
    overflow: visible;
}

.pl-table--inscricoes .pl-table__details td {
    background: #fafbfc;
    border-bottom: 1px solid #eef1f5;
    padding-top: 0;
}

.pl-table--inscricoes .pl-table__details:hover {
    background: #fafbfc;
}

.pl-table--inscricoes .cmtb-inscricao-detalhe {
    margin: 0;
}

.pl-table--inscricoes .pl-inline-form {
    flex-direction: column;
    align-items: stretch;
}

.pl-table--inscricoes .pl-presence-checks {
    justify-content: flex-start;
}

.pl-table--inscricoes .pl-inline-form .pl-btn--small {
    width: 100%;
}

@media (min-width: 1100px) {
    .pl-table--inscricoes .pl-inline-form {
        flex-direction: row;
        align-items: center;
    }

    .pl-table--inscricoes .pl-inline-form .pl-btn--small {
        width: auto;
        flex-shrink: 0;
    }
}

@media (max-width: 900px) {
    .pl-table--inscricoes {
        min-width: 0;
        table-layout: auto;
    }

    .pl-table--inscricoes thead {
        display: none;
    }

    .pl-table--inscricoes .pl-table__data-row {
        display: block;
        padding: 1rem 1.1rem .35rem;
        border-bottom: none;
    }

    .pl-table--inscricoes .pl-table__data-row td {
        display: block;
        width: 100% !important;
        min-width: 0 !important;
        padding: .35rem 0;
        border: none;
        text-align: left !important;
        white-space: normal !important;
    }

    .pl-table--inscricoes .pl-table__data-row td::before {
        content: attr(data-label);
        display: block;
        font-size: .72rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .04em;
        color: #8b919c;
        margin-bottom: .15rem;
    }

    .pl-table--inscricoes .pl-table__details {
        display: block;
        border-bottom: 1px solid #eef1f5;
    }

    .pl-table--inscricoes .pl-table__details td {
        display: block;
        padding: 0 1.1rem 1rem;
    }

    .pl-table--inscricoes .pl-table__details td::before {
        display: none;
    }

    .pl-table--inscricoes .pl-inline-form {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }

    .pl-table--inscricoes .pl-inline-form .pl-btn--small {
        width: auto;
        flex: 0 0 auto;
    }
}

.pl-cursos-gestao__help {
    margin: 0 0 1rem;
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.5;
}

.pl-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 1.25rem;
    padding: 0.35rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
}

.pl-tabs__link {
    flex: 1 1 12rem;
    padding: 0.85rem 1.1rem;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #374151;
    background: transparent;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pl-tabs__link:hover {
    color: #111827;
    background: #fff;
}

.pl-tabs__link.is-active {
    border-color: #dbeafe;
    color: #1d4ed8;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.pl-tab-panel {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
}

.pl-empty--tab {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.pl-cursos-gestao__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.pl-cursos-gestao__item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    padding: 0.85rem 0;
    border-top: 1px solid #e5e7eb;
}

.pl-cursos-gestao__item.is-selected {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    border-radius: 10px;
    background: #f8fafc;
}

.pl-cursos-gestao__info {
    display: flex;
    flex: 1 1 12rem;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.pl-cursos-gestao__nome {
    color: #111827;
    font-weight: 600;
}

.pl-cursos-gestao__meta {
    color: #6b7280;
    font-size: 0.88rem;
}

.pl-cursos-gestao__meta--link {
    color: #1d4ed8;
    font-weight: 600;
    text-decoration: none;
}

.pl-cursos-gestao__meta--link:hover {
    text-decoration: underline;
}

.pl-inscricoes-panel {
    margin-top: 1.5rem;
    padding: 1.25rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
}

.pl-inscricoes-panel__header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.pl-inscricoes-panel__title {
    margin: 0;
    color: #111827;
    font-size: 1.15rem;
}

.pl-inscricoes-panel__subtitle {
    margin: 0.25rem 0 0;
    color: #6b7280;
    font-size: 0.92rem;
}

.pl-inscricoes-panel .pl-list-filters {
    margin-bottom: 1rem;
}

.pl-cursos-gestao__item:first-child {
    border-top: 0;
    padding-top: 0;
}

.pl-cursos-gestao__status {
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.pl-cursos-gestao__status--aberto {
    color: #166534;
    background: #dcfce7;
}

.pl-cursos-gestao__status--fechado {
    color: #374151;
    background: #e5e7eb;
}

.pl-cursos-gestao__form {
    margin: 0;
}

/* Portal do expediente */
@media (min-width: 720px) {
    .licitacoes-busca-grid--expediente {
        grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto;
    }
}

.pl-table--expediente th:nth-child(1),
.pl-table--expediente td:nth-child(1) {
    width: auto;
}

.pl-table--expediente th:nth-child(2),
.pl-table--expediente td:nth-child(2) {
    width: 14%;
    min-width: 8.5rem;
}

.pl-table--expediente th:nth-child(3),
.pl-table--expediente td:nth-child(3) {
    width: 16%;
    min-width: 7rem;
}

.pl-table--expediente th:nth-child(4),
.pl-table--expediente td:nth-child(4) {
    width: 9rem;
    text-align: right;
}

.pl-expediente-ano {
    display: inline-block;
    padding: .2rem .55rem;
    border-radius: .35rem;
    background: #f3e8eb;
    color: #741322;
    font-size: .82rem;
    font-weight: 700;
    white-space: nowrap;
}

.pl-expediente-pdf-tags {
    display: inline-flex;
    flex-wrap: wrap;
    gap: .35rem;
}

.pl-expediente-pdf-tag {
    display: inline-block;
    padding: .18rem .5rem;
    border-radius: .35rem;
    background: #eef2f7;
    color: #4b5563;
    font-size: .76rem;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
}

.pl-expediente-pdf-tag--empty {
    background: transparent;
    color: #9aa3b2;
    font-weight: 600;
}

.pl-subtitle {
    margin: 1.75rem 0 .85rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #2f3440;
}

.pl-anexo-field + .pl-anexo-field {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eef1f5;
}

.pl-anexo-field__atual {
    margin: 0 0 .5rem;
    font-size: .88rem;
    color: #5c6370;
}

.pl-checkbox {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin: 0 0 .65rem;
    font-size: .88rem;
    color: #5c6370;
}

.pl-field__hint {
    margin: .35rem 0 0;
    font-size: .82rem;
    color: #8b919c;
}

/* Portal de audiências */
.pl-context-panel {
    margin: 0 0 1.25rem;
    padding: 1rem 1.15rem;
    border: 1px solid #e8ecf1;
    border-radius: .75rem;
    background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
}

.pl-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem .45rem;
    margin: 0;
    font-size: .88rem;
    line-height: 1.45;
}

.pl-breadcrumb__link {
    color: #741322;
    font-weight: 600;
    text-decoration: none;
}

.pl-breadcrumb__link:hover {
    text-decoration: underline;
}

.pl-breadcrumb__sep {
    color: #b8bec8;
}

.pl-breadcrumb__current {
    color: #4b5563;
    font-weight: 600;
}

.pl-context-panel__desc {
    margin: .55rem 0 0;
    color: #6b7280;
    font-size: .92rem;
    line-height: 1.5;
}

.pl-doc-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 0 0 1rem;
}

.pl-doc-tabs__link {
    padding: .55rem .95rem;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    color: #4b5563;
    background: #fff;
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.pl-doc-tabs__link:hover {
    border-color: #d1d5db;
    color: #111827;
}

.pl-doc-tabs__link.is-active {
    border-color: #741322;
    color: #fff;
    background: #741322;
}

.pl-audiencia-badge {
    display: inline-block;
    padding: .22rem .6rem;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
}

.pl-audiencia-badge--ata {
    color: #065f46;
    background: #d1fae5;
}

.pl-audiencia-badge--edital {
    color: #1e40af;
    background: #dbeafe;
}

.pl-pdf-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: #741322;
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.pl-pdf-link:hover {
    text-decoration: underline;
}

.pl-pdf-link--missing {
    color: #b45309;
    cursor: help;
}

.pl-ano-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
    gap: .85rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pl-ano-card {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    min-height: 100%;
    padding: 1rem 1.05rem;
    border: 1px solid #e5e7eb;
    border-radius: .75rem;
    color: inherit;
    background: #fff;
    text-decoration: none;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.pl-ano-card:hover {
    border-color: #741322;
    box-shadow: 0 8px 20px rgba(116, 19, 34, .08);
    transform: translateY(-2px);
}

.pl-ano-card__year {
    color: #111827;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.1;
}

.pl-ano-card__meta {
    color: #6b7280;
    font-size: .82rem;
}

.pl-ano-card__action {
    margin-top: auto;
    padding-top: .35rem;
    color: #741322;
    font-size: .82rem;
    font-weight: 700;
}

/* Tela inicial do Portal de Gestão: um cartão por área, com descrição. */
.pl-ano-grid--areas {
    grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
}

.pl-ano-grid--areas .pl-ano-card {
    padding: 1.25rem;
}

.pl-form-panel--inline {
    margin-bottom: 1.25rem;
}

.pl-form-panel__row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: .75rem 1rem;
}

.pl-field--grow {
    flex: 1 1 12rem;
    min-width: 0;
}

.pl-field--actions {
    flex: 0 0 auto;
}

.pl-btn--danger-text {
    color: #b42318 !important;
}

.pl-btn--danger-solid {
    color: #fff;
    background: #741322;
    border-color: #741322;
}

.pl-btn--danger-solid:hover {
    color: #fff;
    background: #5c0f1b;
    border-color: #5c0f1b;
}

.pl-table-wrap--audiencias {
    overflow-x: auto;
}

.pl-table--audiencias-docs {
    table-layout: fixed;
    width: 100%;
}

.pl-table.pl-table--audiencias-docs th:nth-child(1),
.pl-table.pl-table--audiencias-docs td:nth-child(1) {
    width: 62%;
    min-width: 20rem;
}

.pl-table.pl-table--audiencias-docs th:nth-child(2),
.pl-table.pl-table--audiencias-docs td:nth-child(2) {
    width: 6.5rem;
}

.pl-table.pl-table--audiencias-docs th:nth-child(3),
.pl-table.pl-table--audiencias-docs td:nth-child(3) {
    width: 7rem;
}

.pl-table.pl-table--audiencias-docs th:nth-child(4),
.pl-table.pl-table--audiencias-docs td:nth-child(4) {
    width: 9.5rem;
    text-align: right;
}

.pl-table__title--doc {
    font-size: 1.05rem;
    font-weight: 650;
    line-height: 1.5;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: manual;
}

.pl-table--audiencias-docs .pl-btn--danger-solid {
    color: #fff !important;
}

.pl-table--audiencias .pl-row-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem .5rem;
}

.pl-table--audiencias .pl-inline-form--actions {
    margin: 0;
}

@media (max-width: 720px) {
    .pl-form-panel__row {
        flex-direction: column;
        align-items: stretch;
    }

    .pl-field--actions .pl-btn {
        width: 100%;
    }

    .pl-table--audiencias-docs thead {
        display: none;
    }

    .pl-table--audiencias-docs tr {
        display: block;
        margin-bottom: .85rem;
        padding: .85rem;
        border: 1px solid #e8ecf1;
        border-radius: .65rem;
        background: #fff;
    }

    .pl-table--audiencias-docs td {
        display: flex;
        justify-content: space-between;
        gap: .75rem;
        padding: .35rem 0;
        border: 0;
    }

    .pl-table--audiencias-docs td::before {
        content: attr(data-label);
        flex: 0 0 30%;
        color: #6b7280;
        font-size: .78rem;
        font-weight: 700;
        text-transform: uppercase;
    }

    .pl-table--audiencias-docs .pl-table__actions::before {
        display: none;
    }

    .pl-table--audiencias-docs .pl-table__actions {
        justify-content: flex-start;
        padding-top: .65rem;
        border-top: 1px solid #eef1f5;
    }
}

/* Portal de inscrições — cadastro de cursos */
.pl-curso-badge {
    display: inline-block;
    padding: .22rem .6rem;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
}

.pl-curso-badge--aberto {
    color: #166534;
    background: #dcfce7;
}

.pl-curso-badge--fechado {
    color: #374151;
    background: #e5e7eb;
}

.pl-curso-badge--publicado {
    color: #1e40af;
    background: #dbeafe;
}

.pl-curso-badge--rascunho {
    color: #92400e;
    background: #fef3c7;
}

.pl-curso-sub {
    display: block;
    margin-top: .2rem;
    color: #5c6370;
    font-size: .82rem;
    font-weight: 400;
}

.pl-curso-imagem {
    display: block;
    width: 100%;
    max-width: 360px;
    height: auto;
    margin: 0 0 .65rem;
    border: 1px solid #e5e7eb;
    border-radius: .45rem;
}

.pl-table--cursos th:nth-child(1),
.pl-table--cursos td:nth-child(1) {
    width: auto;
}

.pl-table--cursos th:nth-child(2),
.pl-table--cursos td:nth-child(2),
.pl-table--cursos th:nth-child(3),
.pl-table--cursos td:nth-child(3) {
    width: 8.5rem;
}

.pl-table--cursos th:nth-child(4),
.pl-table--cursos td:nth-child(4) {
    width: 11rem;
}

.pl-table--cursos th:nth-child(5),
.pl-table--cursos td:nth-child(5) {
    width: 7.5rem;
}

.pl-table--cursos th:nth-child(6),
.pl-table--cursos td:nth-child(6) {
    width: 13rem;
    text-align: right;
}
