.ptab-admin, .ptab-public {
    color: #1f2937;
    font-family: Arial, Helvetica, sans-serif;
}
.ptab-toolbar {
    display: flex;
    gap: 16px;
    align-items: center;
}
.ptab-toolbar--between {
    justify-content: space-between;
}
.ptab-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.ptab-actions--wrap { flex-wrap: wrap; }
.ptab-btn, .ptab-btn-light, .ptab-btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 10px;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.1;
}
.ptab-btn {
    background: #2563eb;
    color: #fff;
}
.ptab-btn-light {
    background: #fff;
    color: #1f2937;
    border-color: #d1d5db;
}
.ptab-btn-light.is-active { border-color: #2563eb; color: #2563eb; }
.ptab-btn-danger {
    background: #b91c1c;
    color: #fff;
}
.ptab-btn-danger--sm { padding: 8px 10px; font-size: 12px; }
.ptab-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 18px 0;
}
.ptab-tab {
    padding: 10px 14px;
    border-radius: 999px;
    background: #e5e7eb;
    color: #111827;
    text-decoration: none;
}
.ptab-tab.is-active {
    background: #1d4ed8;
    color: #fff;
}
.ptab-alert {
    border-radius: 12px;
    padding: 12px 16px;
    margin: 16px 0;
}
.ptab-alert--success { background: #dcfce7; color: #166534; }
.ptab-alert--error { background: #fee2e2; color: #991b1b; }
.ptab-grid {
    display: grid;
    gap: 18px;
}
.ptab-grid--2 { grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr); }
.ptab-grid--cards { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 18px; }
.ptab-grid--stats { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-top: 18px; }
.ptab-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}
.ptab-card--hero { padding: 22px; }
.ptab-card--table { margin-top: 18px; }
.ptab-card__section { padding: 20px; }
.ptab-card > h2, .ptab-card > h3, .ptab-card > form, .ptab-card > .ptab-help-list, .ptab-card > .ptab-url-box, .ptab-card > p {
    margin-left: 20px;
    margin-right: 20px;
}
.ptab-card > h2:first-child, .ptab-card > h3:first-child { margin-top: 20px; }
.ptab-badge, .ptab-kicker {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 700;
}
.ptab-summary-card {
    background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
    border-radius: 16px;
    padding: 16px;
    border: 1px solid #e5e7eb;
}
.ptab-summary-card__label { display: block; color: #64748b; font-size: 12px; margin-bottom: 6px; }
.ptab-summary-card__value { font-size: 28px; font-weight: 700; }
.ptab-form-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 14px;
    margin: 20px;
}
.ptab-field--12 { grid-column: span 12; }
.ptab-field--8 { grid-column: span 8; }
.ptab-field--6 { grid-column: span 6; }
.ptab-field--4 { grid-column: span 4; }
.ptab-field--3 { grid-column: span 3; }
.ptab-label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
}
.ptab-input, .ptab-select, .ptab-textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 10px 12px;
    background: #fff;
}
.ptab-input--sm { padding: 8px 10px; font-size: 13px; }
.ptab-textarea { min-height: 96px; resize: vertical; }
.ptab-checkbox { display: inline-flex; gap: 8px; align-items: center; margin-top: 10px; }
.ptab-table-wrapper { width: 100%; overflow-x: auto; }
.ptab-table {
    width: 100%;
    border-collapse: collapse;
}
.ptab-table th, .ptab-table td {
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 14px;
    vertical-align: top;
    text-align: left;
}
.ptab-table th {
    background: #f8fafc;
    font-weight: 700;
}
.ptab-table-public tbody tr:nth-child(odd) { background: #fcfcfd; }
.ptab-empty-state, .ptab-empty-inline {
    padding: 24px;
    text-align: center;
    color: #64748b;
}
.ptab-help-list {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
}
.ptab-help-item {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    padding: 12px 14px;
    border-radius: 12px;
}
.ptab-breadcrumb {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 14px;
    margin-bottom: 14px;
    color: #64748b;
}
.ptab-breadcrumb a { color: #1d4ed8; text-decoration: none; }
.ptab-editor-box { margin: 0 20px 20px; padding: 18px; background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 16px; }
.ptab-table-editor-wrap { overflow-x: auto; }
.ptab-col-head {
    display: flex;
    gap: 8px;
    align-items: center;
}
.ptab-icon-btn {
    border: none;
    background: #fee2e2;
    color: #991b1b;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    cursor: pointer;
}
.ptab-meta-row {
    display: flex;
    gap: 14px;
    margin: 12px 0 14px;
    color: #64748b;
    font-size: 14px;
    flex-wrap: wrap;
}
.ptab-url-box {
    background: #0f172a;
    color: #e2e8f0;
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow-x: auto;
}
.ptab-public-tools { margin-top: 16px; }
.ptab-hero-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ptab-table-public th { position: sticky; top: 0; z-index: 1; }
.ptab-table-public thead tr:nth-child(2) th { background: #fff; }
.ptab-public .ptab-card--table { overflow: hidden; }
small { color: #64748b; }
.ptabs-subcard { margin: 20px; }
@media (max-width: 980px) {
    .ptab-grid--2 { grid-template-columns: 1fr; }
    .ptab-field--8, .ptab-field--6, .ptab-field--4, .ptab-field--3 { grid-column: span 12; }
    .ptab-toolbar, .ptab-toolbar--between { flex-direction: column; align-items: stretch; }
}


/* Ajuste da tabela principal para ocupar 100% da largura útil da página */
.ptab-public,
.ptab-public--fullwidth {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}
.ptab-public,
.ptab-public * {
    box-sizing: border-box;
}
.ptab-public .ptab-card,
.ptab-public .ptab-card--hero,
.ptab-public .ptab-card--table,
.ptab-public .ptab-card__section {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}
.ptab-public .ptab-card--table {
    overflow: hidden;
}
.ptab-public .ptab-table-wrapper {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
    overflow-y: hidden;
}
.ptab-public .ptab-table-public {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    table-layout: fixed;
}
.ptab-public .ptab-table-public th,
.ptab-public .ptab-table-public td {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    vertical-align: top;
}
.ptab-public .ptab-table-public th:not(.ptab-col-more),
.ptab-public .ptab-table-public td:not(.ptab-expand-cell) {
    width: auto;
}
.ptab-public .ptab-table-public thead tr:nth-child(2) input {
    width: 100%;
    min-width: 0;
}
@media (max-width: 980px) {
    .ptab-public .ptab-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .ptab-public .ptab-table-public {
        min-width: 980px;
    }
}

.ptab-col-more {
    width: 82px;
    min-width: 82px;
    text-align: center;
}
.ptab-expand-cell {
    width: 82px;
    min-width: 82px;
    text-align: center;
}
.ptab-expand-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}
.ptab-expand-btn:hover {
    background: #dbeafe;
}
.ptab-expand-btn.is-open {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #fff;
}
.ptab-details-row td {
    background: #f8fafc;
    white-space: normal !important;
    padding: 0;
}
.ptab-details-box {
    padding: 18px;
}
.ptab-details-title {
    font-weight: 700;
    margin-bottom: 12px;
    color: #0f172a;
}
.ptab-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}
.ptab-detail-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 14px;
}
.ptab-detail-item__label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.ptab-detail-item__value {
    color: #111827;
    white-space: normal;
    word-break: break-word;
}


/* Subtabela das colunas ocultas */
.ptab-expand-cell {
    width: 72px;
    min-width: 72px !important;
    text-align: center;
}
.ptab-expand-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #ffffff;
    color: #1d4ed8;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}
.ptab-expand-btn.is-open {
    background: #1d4ed8;
    color: #ffffff;
    border-color: #1d4ed8;
}
.ptab-details-row td {
    background: #f8fafc;
    padding: 0;
}
.ptab-details-box {
    padding: 16px;
    border-top: 1px solid #e5e7eb;
}
.ptab-details-title {
    font-weight: 700;
    color: #334155;
    margin-bottom: 10px;
}
.ptab-subtable-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    background: #ffffff;
}
.ptab-subtable {
    width: 100%;
    min-width: max-content;
    border-collapse: collapse;
}
.ptab-subtable th,
.ptab-subtable td {
    padding: 12px 14px;
    border-bottom: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
    white-space: nowrap;
    text-align: left;
    vertical-align: top;
}
.ptab-subtable th:last-child,
.ptab-subtable td:last-child {
    border-right: none;
}
.ptab-subtable thead th {
    background: #eff6ff;
    color: #1e3a8a;
    font-weight: 700;
}
.ptab-subtable tbody tr:last-child td {
    border-bottom: none;
}


.ptab-subtables-stack {
    display: grid;
    gap: 12px;
}
.ptab-subtable-group {
    display: grid;
    gap: 8px;
}
.ptab-subtable-label {
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}


.ptab-export-actions {
    justify-content: flex-end;
    gap: 8px;
}
.ptab-export-actions .ptab-badge {
    margin-right: 4px;
}
@media (max-width: 980px) {
    .ptab-export-actions {
        justify-content: flex-start;
    }
}


.ptab-export-actions--block {
    justify-content: flex-start;
    margin-top: 12px;
    margin-bottom: 12px;
}

.ptab-export-actions--block .ptab-btn-light {
    margin-right: 0;
}


/* Distribuição das 10 colunas visíveis + coluna Mais */
.ptab-public .ptab-table-public th,
.ptab-public .ptab-table-public td {
    padding: 12px 10px;
}
.ptab-public .ptab-table-public th:not(.ptab-col-more):not(.ptab-expand-cell),
.ptab-public .ptab-table-public td:not(.ptab-expand-cell) {
    width: calc((100% - 72px) / 10);
}
.ptab-col-more,
.ptab-expand-cell {
    width: 72px !important;
    min-width: 72px !important;
    max-width: 72px !important;
}

.ptab-col-financial {
    min-width: 150px;
}
.ptab-financial-cell {
    display: grid;
    gap: 6px;
    min-width: 0;
}
.ptab-financial-cell > strong {
    font-size: 13px;
    white-space: nowrap;
}
.ptab-financial-cell .ptab-progress {
    min-width: 72px;
}

/* Subtabelas também ocupando 100% do bloco interno */
.ptab-subtable-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}
.ptab-subtable {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    table-layout: fixed;
}
.ptab-subtable th,
.ptab-subtable td {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}
@media (max-width: 980px) {
    .ptab-subtable-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .ptab-subtable {
        min-width: 980px;
    }
}


/* Página pública ocupando 100% da largura útil */
.ptab-public--fullwidth,
#ptab-public-table-app,
.ptab-public--fullwidth > .ptab-breadcrumb,
.ptab-public--fullwidth > .ptab-card {
    display: block;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
}
.ptab-public--fullwidth {
    margin-left: 0 !important;
    margin-right: 0 !important;
}
.ptab-public--fullwidth .ptab-toolbar,
.ptab-public--fullwidth .ptab-grid,
.ptab-public--fullwidth .ptab-meta-row,
.ptab-public--fullwidth .ptab-actions,
.ptab-public--fullwidth .ptab-public-tools {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}


@media print {
    .ptab-hero-actions,
    .ptab-export-actions,
    .ptab-public-tools,
    #ptab-pagination,
    .ptab-expand-cell,
    .ptab-col-more { display: none !important; }
    .ptab-public .ptab-card,
    .ptab-public .ptab-summary-card { box-shadow: none !important; }
    .ptab-public .ptab-table-wrapper { overflow: visible !important; }
    .ptab-public .ptab-table-public { table-layout: auto !important; }
    .ptab-public .ptab-table-public th,
    .ptab-public .ptab-table-public td { width: auto !important; white-space: normal !important; }
}

.ptab-specific-filters {
    margin-top: 18px;
    padding: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}

.ptab-details-sections {
    display: grid;
    gap: 14px;
}

.ptab-details-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px;
}

.ptab-details-section__title {
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
}

.ptab-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.ptab-details-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
}

.ptab-details-item strong {
    font-size: 13px;
    color: #334155;
}

.ptab-details-item span {
    font-size: 14px;
    color: #0f172a;
    word-break: break-word;
}

.ptab-details-box {
    background: #eef2ff;
    border-radius: 16px;
    padding: 14px;
}

@media (max-width: 980px) {
    .ptab-specific-filters {
        padding: 14px;
    }
    .ptab-details-grid {
        grid-template-columns: 1fr;
    }
}


.ptab-checkbox-group{display:flex;flex-wrap:wrap;gap:14px}
.ptab-card--compliance{border:1px solid #d9e4ff;background:#f8fbff}
.ptab-declarations{display:grid;grid-template-columns:1fr;gap:12px;margin-top:14px}
.ptab-declaration{padding:14px 16px;border-radius:12px;background:#fff;border:1px solid #dbeafe;display:flex;flex-direction:column;gap:6px}
.ptab-declaration strong{color:#1d4ed8}

/* Guia Prático TCE/RN - Resolução nº 034/2025 */
.ptab-grid--stats-wide { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.ptab-summary-card__value--money { font-size: clamp(18px, 2vw, 25px); }
.ptab-summary-note { margin: 14px 0 0; color: #64748b; font-size: 13px; }
.ptab-filter-actions { justify-content: flex-end; margin: 0 20px 18px; }
.ptab-muted { color: #94a3b8; font-weight: 400; }
.ptab-data-link,
.ptab-inline-link { color: #1d4ed8; text-decoration: underline; text-underline-offset: 2px; word-break: break-all; }
.ptab-data-link { display: inline-flex; align-items: center; font-weight: 700; }

.ptab-compliance-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
}
.ptab-score {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 128px;
    padding: 16px;
    border-radius: 16px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}
.ptab-score strong { font-size: 30px; line-height: 1; }
.ptab-score span { margin-top: 5px; font-size: 12px; font-weight: 700; }
.ptab-score--compact { min-width: auto; padding: 7px 10px; font-size: 12px; font-weight: 700; }
.ptab-progress {
    width: 100%;
    height: 12px;
    margin-top: 16px;
    overflow: hidden;
    border-radius: 999px;
    background: #e2e8f0;
}
.ptab-progress > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2563eb, #16a34a);
}
.ptab-progress--small { height: 8px; margin-top: 8px; }
.ptab-compliance-details { margin-top: 16px; }
.ptab-compliance-details > summary {
    cursor: pointer;
    font-weight: 700;
    color: #1e3a8a;
    padding: 10px 0;
}
.ptab-compliance-list { display: grid; gap: 9px; margin-top: 8px; }
.ptab-compliance-item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 11px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
}
.ptab-compliance-item small { display: block; margin-top: 3px; }
.ptab-compliance-item__number,
.ptab-compliance-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 700;
}
.ptab-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}
.ptab-status--complete { background: #dcfce7; color: #166534; }
.ptab-status--partial { background: #fef3c7; color: #92400e; }
.ptab-status--missing { background: #fee2e2; color: #991b1b; }
.ptab-api-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    margin-top: 18px;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
}
.ptab-api-box p { margin: 6px 0 10px; }
.ptab-api-box code {
    display: block;
    max-width: 100%;
    padding: 9px 11px;
    overflow-x: auto;
    border-radius: 9px;
    background: #0f172a;
    color: #e2e8f0;
    white-space: nowrap;
}

.ptab-details-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.ptab-details-title h3 { margin: 5px 0 0; color: #0f172a; }
.ptab-detail-dashboard {
    display: grid;
    gap: 12px;
    padding: 14px;
    margin-bottom: 15px;
    border: 1px solid #bfdbfe;
    border-radius: 14px;
    background: #f8fbff;
}
.ptab-detail-metric { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; align-items: center; }
.ptab-detail-metric .ptab-progress { grid-column: 1 / -1; }
.ptab-detail-finance { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.ptab-detail-finance > div {
    padding: 10px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
}
.ptab-detail-finance span,
.ptab-detail-item > span { display: block; color: #64748b; font-size: 12px; font-weight: 700; margin-bottom: 5px; }
.ptab-detail-finance strong { display: block; color: #0f172a; font-size: 15px; }
.ptab-detail-groups { display: grid; gap: 14px; }
.ptab-detail-group {
    padding: 14px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #fff;
}
.ptab-detail-group h4 { margin: 0 0 11px; color: #1e3a8a; }
.ptab-detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.ptab-detail-item { min-width: 0; }
.ptab-detail-item > strong { display: block; color: #0f172a; font-size: 14px; font-weight: 600; word-break: break-word; }

/* Diagnóstico e ferramentas da área administrativa */
.ptab-btn-guide { background: #0f766e; color: #fff; border-color: #0f766e; }
.ptab-editor-search { margin: 0 20px 14px; }
.ptab-column-search { max-width: 460px; }
.ptab-compliance-admin { margin: 20px; padding: 18px; border: 1px solid #c7d2fe; border-radius: 16px; background: #f8fafc; }
.ptab-compliance-score { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.ptab-compliance-score strong { font-size: 28px; color: #1d4ed8; }
.ptab-compliance-score--complete strong { color: #166534; }
.ptab-compliance-admin .ptab-compliance-list { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

@media (max-width: 980px) {
    .ptab-compliance-head,
    .ptab-api-box { grid-template-columns: 1fr; }
    .ptab-score { width: 100%; }
    .ptab-api-box .ptab-actions { justify-content: flex-start; }
    .ptab-detail-finance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ptab-detail-grid { grid-template-columns: 1fr; }
    .ptab-compliance-item { grid-template-columns: 34px minmax(0, 1fr); }
    .ptab-compliance-item .ptab-status { grid-column: 2; justify-self: start; }
}

@media (max-width: 560px) {
    .ptab-detail-finance { grid-template-columns: 1fr; }
    .ptab-summary-card__value { font-size: 23px; }
    .ptab-export-actions--block .ptab-btn-light { flex: 1 1 calc(50% - 8px); }
}
.ptab-compliance-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    margin: 0;
    padding: 7px 10px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 14px;
}
.ptab-compliance-score--good { background:#dcfce7; color:#166534; }
.ptab-compliance-score--medium { background:#fef3c7; color:#92400e; }
.ptab-compliance-score--low { background:#fee2e2; color:#991b1b; }
.ptab-compliance-score--complete { background:#dcfce7; color:#166534; }

/* Administração v1.5.5 — editor reorganizado por registro */
.ptab-editor-shell {
    display: grid;
    gap: 18px;
    min-width: 0;
}
.ptab-editor-shell > form {
    display: grid;
    gap: 16px;
    min-width: 0;
}
.ptab-editor-commandbar {
    position: sticky;
    top: 10px;
    z-index: 25;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
    border: 1px solid #dbeafe;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.10);
    backdrop-filter: blur(8px);
}
.ptab-editor-commandbar__title {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}
.ptab-editor-commandbar__title h2,
.ptab-editor-commandbar__title p {
    margin: 0;
}
.ptab-editor-commandbar__title h2 {
    margin-top: 3px;
    font-size: 22px;
    color: #0f172a;
}
.ptab-editor-commandbar__title p {
    margin-top: 4px;
    color: #64748b;
    font-size: 13px;
}
.ptab-editor-commandbar__actions {
    flex-shrink: 0;
}
.ptab-editor-eyebrow {
    display: block;
    color: #2563eb;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.ptab-btn-light--compact {
    padding: 8px 10px;
    font-size: 12px;
}
.ptab-editor-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}
.ptab-editor-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    padding: 14px 15px;
    text-align: left;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    color: #0f172a;
    cursor: pointer;
    box-shadow: 0 5px 14px rgba(15, 23, 42, .04);
}
.ptab-editor-stat:hover {
    border-color: #93c5fd;
    background: #f8fbff;
}
.ptab-editor-stat span,
.ptab-editor-stat small {
    color: #64748b;
}
.ptab-editor-stat span {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.ptab-editor-stat strong {
    overflow: hidden;
    font-size: 20px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ptab-editor-stat:first-child strong {
    font-size: 15px;
}
.ptab-editor-anchor-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 9px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
}
.ptab-editor-anchor-nav a {
    padding: 8px 12px;
    border-radius: 9px;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}
.ptab-editor-anchor-nav a:hover {
    background: #fff;
    color: #1d4ed8;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .06);
}
.ptab-section-card {
    scroll-margin-top: 105px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 7px 20px rgba(15, 23, 42, .05);
}
.ptab-section-card > summary {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 32px;
    gap: 12px;
    align-items: center;
    padding: 17px 19px;
    list-style: none;
    cursor: pointer;
    background: #fff;
}
.ptab-section-card > summary::-webkit-details-marker {
    display: none;
}
.ptab-section-card > summary:hover {
    background: #f8fafc;
}
.ptab-section-card > summary strong,
.ptab-section-card > summary small {
    display: block;
}
.ptab-section-card > summary strong {
    color: #0f172a;
    font-size: 16px;
}
.ptab-section-card > summary small {
    margin-top: 3px;
    color: #64748b;
}
.ptab-section-card__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 800;
}
.ptab-section-card__chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 18px;
    transition: transform .2s ease;
}
.ptab-section-card[open] > summary {
    border-bottom: 1px solid #e2e8f0;
}
.ptab-section-card[open] > summary .ptab-section-card__chevron {
    transform: rotate(180deg);
}
.ptab-section-card__body {
    padding: 20px;
}
.ptab-section-card__body--records {
    padding: 0;
}
.ptab-form-grid--flush {
    margin: 0;
}
.ptab-form-grid--top-gap {
    margin-top: 18px;
}
.ptab-field--5 { grid-column: span 5; }
.ptab-field--7 { grid-column: span 7; }
.ptab-subsection-title {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}
.ptab-subsection-title:not(:first-child) {
    margin-top: 24px;
}
.ptab-checkbox-group--cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.ptab-checkbox-card,
.ptab-toggle-card,
.ptab-radio-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
}
.ptab-checkbox-card:hover,
.ptab-toggle-card:hover,
.ptab-radio-card:hover {
    border-color: #93c5fd;
    background: #f8fbff;
}
.ptab-checkbox-card input,
.ptab-toggle-card input,
.ptab-radio-card input {
    margin-top: 3px;
    flex: 0 0 auto;
}
.ptab-checkbox-card span,
.ptab-toggle-card span,
.ptab-radio-card span {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.ptab-checkbox-card small,
.ptab-toggle-card small,
.ptab-radio-card small {
    line-height: 1.35;
}
.ptab-public-options-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
.ptab-toggle-card--number {
    align-items: center;
    justify-content: space-between;
}
.ptab-toggle-card--number input {
    width: 86px;
    margin: 0;
}
.ptab-records-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}
.ptab-records-toolbar h3,
.ptab-records-toolbar p {
    margin: 0;
}
.ptab-records-toolbar p {
    margin-top: 4px;
    color: #64748b;
}
.ptab-records-workspace {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    min-height: 620px;
}
.ptab-records-sidebar {
    padding: 18px;
    border-right: 1px solid #e2e8f0;
    background: #f8fafc;
}
.ptab-records-sidebar__meta {
    margin: 9px 0;
    color: #64748b;
    font-size: 12px;
}
.ptab-record-list {
    display: grid;
    gap: 8px;
    max-height: 68vh;
    overflow-y: auto;
    padding-right: 3px;
}
.ptab-record-list__item {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    width: 100%;
    padding: 11px;
    text-align: left;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    background: #fff;
    cursor: pointer;
}
.ptab-record-list__item:hover {
    border-color: #93c5fd;
}
.ptab-record-list__item.is-active {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, .09);
}
.ptab-record-list__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 9px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
}
.ptab-record-list__item.is-active .ptab-record-list__number {
    background: #2563eb;
    color: #fff;
}
.ptab-record-list__text {
    min-width: 0;
}
.ptab-record-list__text strong,
.ptab-record-list__text small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ptab-record-list__text strong {
    color: #0f172a;
    font-size: 13px;
}
.ptab-record-list__text small {
    margin-top: 3px;
}
.ptab-record-editor {
    min-width: 0;
    padding: 20px;
}
.ptab-record-editor__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}
.ptab-record-editor__head h3,
.ptab-record-editor__head p {
    margin: 0;
}
.ptab-record-editor__head h3 {
    margin-top: 4px;
    color: #0f172a;
    font-size: 21px;
}
.ptab-record-editor__head p {
    margin-top: 4px;
    color: #64748b;
}
.ptab-record-filterbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
    gap: 12px;
    align-items: center;
    margin: 16px 0;
}
.ptab-record-group-tabs {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}
.ptab-record-group-tab {
    padding: 7px 10px;
    border: 1px solid #dbe3ef;
    border-radius: 999px;
    background: #fff;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.ptab-record-group-tab:hover,
.ptab-record-group-tab.is-active {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
}
.ptab-record-fields {
    display: grid;
    gap: 14px;
}
.ptab-record-field-group {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
}
.ptab-record-field-group__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}
.ptab-record-field-group__head strong {
    color: #0f172a;
}
.ptab-record-field-group__head span {
    color: #64748b;
    font-size: 12px;
}
.ptab-record-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
    padding: 14px;
}
.ptab-record-field--wide {
    grid-column: span 2;
}
.ptab-record-field .ptab-label {
    font-size: 12px;
    color: #334155;
}
.ptab-record-field .ptab-input,
.ptab-record-field .ptab-textarea {
    background: #fcfdff;
}
.ptab-record-field .ptab-input:focus,
.ptab-record-field .ptab-textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .10);
    background: #fff;
}
.ptab-advanced-grid {
    margin: 18px 20px 20px;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    background: #f8fafc;
}
.ptab-advanced-grid > summary {
    padding: 14px 16px;
    cursor: pointer;
}
.ptab-advanced-grid > summary strong,
.ptab-advanced-grid > summary small {
    display: block;
}
.ptab-advanced-grid > summary small {
    margin-top: 3px;
}
.ptab-advanced-grid__body {
    padding: 16px;
    border-top: 1px solid #dbe3ef;
}
.ptab-advanced-grid .ptab-table-editor-wrap {
    max-height: 70vh;
    margin-top: 14px;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    background: #fff;
}
.ptab-advanced-grid .ptab-table-editor {
    width: max-content;
    min-width: 100%;
}
.ptab-advanced-grid .ptab-table-editor th {
    position: sticky;
    top: 0;
    z-index: 2;
}
.ptab-advanced-grid .ptab-table-editor th,
.ptab-advanced-grid .ptab-table-editor td {
    min-width: 210px;
    padding: 9px;
}
.ptab-advanced-grid .ptab-table-editor th:last-child,
.ptab-advanced-grid .ptab-table-editor td:last-child {
    min-width: 100px;
}
.ptab-advanced-grid .ptab-table-editor tr.is-selected td {
    background: #eff6ff;
}
.ptab-save-bar {
    position: sticky;
    bottom: 10px;
    z-index: 24;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 -8px 24px rgba(15, 23, 42, .09);
    backdrop-filter: blur(8px);
}
.ptab-save-bar strong,
.ptab-save-bar small {
    display: block;
}
.ptab-save-bar strong {
    color: #166534;
}
.ptab-save-bar strong.is-dirty {
    color: #b45309;
}
.ptab-save-bar small {
    margin-top: 2px;
}
.ptab-import-layout {
    display: grid;
    grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr);
    gap: 18px;
}
.ptab-import-primary,
.ptab-import-secondary {
    display: grid;
    align-content: start;
    gap: 14px;
}
.ptab-file-drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 170px;
    padding: 20px;
    text-align: center;
    border: 2px dashed #93c5fd;
    border-radius: 15px;
    background: #f8fbff;
    cursor: pointer;
}
.ptab-file-drop:hover {
    border-color: #2563eb;
    background: #eff6ff;
}
.ptab-file-drop input {
    width: 100%;
}
.ptab-file-drop__icon {
    font-size: 30px;
    color: #2563eb;
}
.ptab-import-mode {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}
.ptab-actions--end {
    justify-content: flex-end;
    margin-top: 18px;
}
.ptab-editor-bottom-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
    gap: 18px;
    scroll-margin-top: 105px;
}
.ptab-compliance-list--compact {
    max-height: 520px;
    overflow-y: auto;
    padding-right: 3px;
}
.ptab-copy-url {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
}
.ptab-copy-url code {
    display: block;
    overflow-x: auto;
    padding: 11px 12px;
    border-radius: 10px;
    background: #0f172a;
    color: #e2e8f0;
    white-space: nowrap;
}
.ptab-help-list--compact {
    margin: 0;
}
.ptab-btn-guide {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    border: 1px solid #86efac;
    border-radius: 10px;
    background: #f0fdf4;
    color: #166534;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}
.ptab-btn-guide:hover {
    background: #dcfce7;
}

@media (max-width: 1180px) {
    .ptab-editor-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ptab-public-options-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ptab-records-workspace { grid-template-columns: 270px minmax(0, 1fr); }
    .ptab-editor-bottom-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .ptab-editor-commandbar,
    .ptab-records-toolbar,
    .ptab-record-editor__head,
    .ptab-save-bar {
        align-items: stretch;
        flex-direction: column;
    }
    .ptab-editor-commandbar {
        position: static;
    }
    .ptab-editor-commandbar__actions,
    .ptab-save-bar .ptab-actions {
        width: 100%;
    }
    .ptab-editor-commandbar__actions > *,
    .ptab-save-bar .ptab-actions > * {
        flex: 1;
    }
    .ptab-editor-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ptab-records-workspace { grid-template-columns: 1fr; }
    .ptab-records-sidebar {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }
    .ptab-record-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-height: 300px;
    }
    .ptab-record-filterbar,
    .ptab-import-layout {
        grid-template-columns: 1fr;
    }
    .ptab-save-bar {
        position: static;
    }
    .ptab-field--5,
    .ptab-field--7 {
        grid-column: span 12;
    }
}
@media (max-width: 640px) {
    .ptab-editor-commandbar__title {
        align-items: flex-start;
        flex-direction: column;
    }
    .ptab-editor-stats,
    .ptab-public-options-grid,
    .ptab-checkbox-group--cards,
    .ptab-import-mode,
    .ptab-record-list,
    .ptab-record-field-grid {
        grid-template-columns: 1fr;
    }
    .ptab-record-field--wide {
        grid-column: span 1;
    }
    .ptab-section-card > summary {
        grid-template-columns: 34px minmax(0, 1fr) 28px;
        padding: 14px;
    }
    .ptab-section-card__body,
    .ptab-record-editor {
        padding: 14px;
    }
    .ptab-editor-anchor-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    .ptab-editor-anchor-nav a {
        white-space: nowrap;
    }
}

/* Página pública v1.5.6 — consulta reorganizada e responsiva */
.ptab-public--organized {
    display: flex !important;
    flex-direction: column;
    gap: 18px;
}
.ptab-public--organized > .ptab-breadcrumb { order: 0; margin-bottom: 0; }
.ptab-public--organized > .ptab-card--hero { order: 1; }
.ptab-public--organized > .ptab-card--table { order: 2; margin-top: 0; }
.ptab-public--organized > .ptab-card--supplemental { order: 3; margin-top: 0; }

.ptab-public-hero {
    padding: 0;
    border-color: #dbeafe;
    background:
        radial-gradient(circle at 88% 12%, rgba(59,130,246,.16), transparent 28%),
        linear-gradient(135deg, #ffffff 0%, #f8fbff 58%, #eff6ff 100%);
}
.ptab-public-hero__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 26px 26px 18px;
}
.ptab-public-hero__intro { max-width: 880px; }
.ptab-public-hero__intro h1 {
    margin: 9px 0 8px;
    color: #0f172a;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.08;
}
.ptab-public-hero__intro p {
    max-width: 820px;
    margin: 0;
    color: #475569;
    font-size: 16px;
    line-height: 1.55;
}
.ptab-public-hero__guide {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin: 0 26px;
    overflow: hidden;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    background: #dbeafe;
}
.ptab-public-hero__guide > div {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 2px 10px;
    align-items: center;
    min-width: 0;
    padding: 13px 14px;
    background: rgba(255,255,255,.92);
}
.ptab-public-hero__guide > div > span {
    grid-row: 1 / 3;
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #1d4ed8;
    color: #fff;
    font-weight: 800;
}
.ptab-public-hero__guide strong { color: #0f172a; font-size: 14px; }
.ptab-public-hero__guide small { color: #64748b; font-size: 12px; line-height: 1.35; }
.ptab-public-stats {
    grid-template-columns: repeat(6, minmax(150px, 1fr));
    gap: 10px;
    margin: 18px 26px 0;
}
.ptab-public-stats .ptab-summary-card {
    min-width: 0;
    padding: 14px;
    border-radius: 13px;
    background: rgba(255,255,255,.9);
    box-shadow: 0 5px 16px rgba(15,23,42,.04);
}
.ptab-public-stats .ptab-summary-card__value { font-size: clamp(21px, 2vw, 27px); }
.ptab-public-stats .ptab-summary-card__value--money { font-size: clamp(16px, 1.45vw, 21px); }
.ptab-public-hero .ptab-summary-note {
    margin: 12px 26px 24px;
    color: #64748b;
    font-size: 12px;
}

.ptab-consultation-header { padding: 22px; }
.ptab-consultation-title {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
}
.ptab-consultation-title h2 { margin: 8px 0 6px; color: #0f172a; font-size: 24px; }
.ptab-consultation-title p { margin: 0; color: #64748b; line-height: 1.5; }
.ptab-consultation-title > .ptab-badge { flex: 0 0 auto; margin-top: 4px; }

.ptab-search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: end;
    margin-top: 18px;
    padding: 16px;
    border: 1px solid #bfdbfe;
    border-radius: 15px;
    background: #f8fbff;
}
.ptab-search-main { min-width: 0; }
.ptab-search-input-wrap { position: relative; }
.ptab-search-input-wrap > span {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 22px;
    pointer-events: none;
}
.ptab-input--search {
    min-height: 48px;
    padding-left: 44px;
    border-color: #93c5fd;
    font-size: 15px;
    box-shadow: 0 3px 10px rgba(37,99,235,.06);
}
.ptab-search-main small { display: block; margin-top: 6px; }
.ptab-search-actions { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.ptab-btn-light--sm { padding: 8px 11px; font-size: 12px; }

.ptab-export-menu { position: relative; }
.ptab-export-menu > summary { list-style: none; user-select: none; }
.ptab-export-menu > summary::-webkit-details-marker { display: none; }
.ptab-export-menu[open] > summary { background: #1d4ed8; }
.ptab-export-menu__panel {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 30;
    display: grid;
    min-width: 210px;
    padding: 8px;
    border: 1px solid #dbeafe;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 16px 38px rgba(15,23,42,.16);
}
.ptab-export-menu__panel a {
    display: flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 10px;
    border-radius: 9px;
    color: #1e293b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}
.ptab-export-menu__panel a:hover { background: #eff6ff; color: #1d4ed8; }

.ptab-quick-filters {
    display: grid;
    grid-template-columns:
        minmax(125px, .72fr)
        minmax(145px, .88fr)
        minmax(210px, 1.35fr)
        minmax(350px, 2.05fr);
    align-items: end;
    gap: 12px;
    margin-top: 15px;
}
.ptab-quick-filters__double {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr);
    align-items: end;
    gap: 12px;
    min-width: 0;
}
.ptab-quick-filters .ptab-field,
.ptab-quick-filters__double .ptab-field { min-width: 0; }
.ptab-quick-filters .ptab-label { font-size: 12px; color: #475569; }
.ptab-quick-filters .ptab-input { width: 100%; min-height: 43px; }

.ptab-advanced-filters {
    margin-top: 13px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
}
.ptab-advanced-filters > summary {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 13px 15px;
    color: #334155;
    cursor: pointer;
    font-weight: 800;
    list-style: none;
}
.ptab-advanced-filters > summary::-webkit-details-marker { display: none; }
.ptab-advanced-filters > summary::after { content: '⌄'; color: #64748b; font-size: 18px; }
.ptab-advanced-filters[open] > summary::after { transform: rotate(180deg); }
.ptab-filter-count {
    margin-left: auto;
    padding: 4px 8px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 11px;
}
.ptab-form-grid--inside {
    margin: 0;
    padding: 15px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.ptab-active-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 13px;
    padding: 11px;
    border-radius: 12px;
    background: #eff6ff;
}
.ptab-active-filters[hidden] { display: none !important; }
.ptab-filter-chip {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    max-width: 100%;
    padding: 7px 9px;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: #fff;
    color: #1e3a8a;
    cursor: pointer;
    font-size: 12px;
}
.ptab-filter-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ptab-filter-chip b { font-size: 16px; line-height: 1; }

.ptab-result-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-top: 17px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}
.ptab-result-toolbar > div { display: grid; gap: 3px; }
.ptab-result-toolbar strong { color: #0f172a; }
.ptab-result-toolbar span { color: #64748b; font-size: 12px; }

.ptab-column-filter-row[hidden] { display: none !important; }
.ptab-column-filter-row th { padding: 8px !important; background: #eff6ff !important; }

.ptab-card--table .ptab-table-wrapper {
    border-top: 1px solid #e2e8f0;
    overflow-x: auto;
    overflow-y: visible;
}
.ptab-card--table .ptab-table-public { min-width: 1120px; }
.ptab-card--table .ptab-table-public thead th {
    top: 0;
    background: #f1f5f9;
    color: #334155;
    font-size: 12px;
    line-height: 1.35;
}
.ptab-card--table .ptab-table-public tbody tr:hover:not(.ptab-details-row) { background: #f8fbff; }
.ptab-card--table .ptab-table-public td { font-size: 13px; line-height: 1.45; }
.ptab-card--table .ptab-col-more,
.ptab-card--table .ptab-expand-cell { width: 88px !important; min-width: 88px !important; max-width: 88px !important; }
.ptab-expand-btn {
    width: auto;
    min-width: 68px;
    padding: 7px 10px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 800;
}
.ptab-pagination-section { border-top: 1px solid #e2e8f0; }

.ptab-public-cards { display: none; padding: 14px; border-top: 1px solid #e2e8f0; background: #f8fafc; }
.ptab-emenda-card {
    display: grid;
    gap: 13px;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(15,23,42,.04);
}
.ptab-emenda-card + .ptab-emenda-card { margin-top: 12px; }
.ptab-emenda-card.is-open { border-color: #93c5fd; box-shadow: 0 8px 22px rgba(37,99,235,.09); }
.ptab-emenda-card__head { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; }
.ptab-emenda-card__head h3 { margin: 7px 0 0; color: #0f172a; font-size: 19px; }
.ptab-emenda-status {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    font-size: 11px;
    font-weight: 800;
}
.ptab-emenda-card__meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.ptab-emenda-card__meta span {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 9px;
    border-radius: 10px;
    background: #f8fafc;
    color: #334155;
    font-size: 12px;
    word-break: break-word;
}
.ptab-emenda-card__meta b,
.ptab-emenda-card__object b { color: #64748b; font-size: 10px; text-transform: uppercase; letter-spacing: .03em; }
.ptab-emenda-card__object { padding: 11px; border-left: 3px solid #60a5fa; background: #f8fbff; border-radius: 0 10px 10px 0; }
.ptab-emenda-card__object p { margin: 6px 0 0; color: #1e293b; font-size: 13px; line-height: 1.45; }
.ptab-emenda-card__toggle { width: 100%; }
.ptab-emenda-card__details { padding-top: 13px; border-top: 1px solid #e2e8f0; }
.ptab-emenda-card__details .ptab-details-title { align-items: flex-start; }
.ptab-emenda-card__details .ptab-detail-group { padding: 12px; }
.ptab-emenda-card__details .ptab-details-box { padding: 0; background: transparent; }

.ptab-card--supplemental { border-style: dashed; box-shadow: none; }
.ptab-card--supplemental .ptab-card__section { padding: 18px; }
.ptab-card--supplemental h2 { font-size: 20px; }

@media (max-width: 1180px) {
    .ptab-public-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
    .ptab-public-hero__top,
    .ptab-consultation-title,
    .ptab-result-toolbar { flex-direction: column; align-items: stretch; }
    .ptab-public-hero__guide { grid-template-columns: 1fr; }
    .ptab-public-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ptab-search-panel { grid-template-columns: 1fr; }
    .ptab-search-actions { justify-content: stretch; }
    .ptab-search-actions > .ptab-btn-light,
    .ptab-search-actions > .ptab-export-menu { flex: 1 1 180px; }
    .ptab-export-menu > summary { width: 100%; }
    .ptab-export-menu__panel { left: 0; right: auto; min-width: 100%; }
    .ptab-quick-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ptab-quick-filters__double { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ptab-card--table .ptab-table-wrapper { display: none; }
    .ptab-public-cards { display: block; }
    .ptab-pagination-section .ptab-toolbar { gap: 12px; }
    .ptab-pagination-section #ptab-pagination { justify-content: center; }
}

@media (max-width: 560px) {
    .ptab-public--organized { gap: 13px; }
    .ptab-public-hero__top { padding: 20px 18px 14px; }
    .ptab-public-hero__guide { margin: 0 18px; }
    .ptab-public-stats { margin: 15px 18px 0; grid-template-columns: 1fr 1fr; }
    .ptab-public-hero .ptab-summary-note { margin: 10px 18px 19px; }
    .ptab-consultation-header { padding: 16px; }
    .ptab-consultation-title h2 { font-size: 21px; }
    .ptab-search-panel { padding: 12px; }
    .ptab-search-actions { display: grid; grid-template-columns: 1fr; }
    .ptab-quick-filters { grid-template-columns: 1fr 1fr; gap: 9px; }
    .ptab-quick-filters__double { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; gap: 9px; }
    .ptab-form-grid--inside { grid-template-columns: 1fr; padding: 12px; }
    .ptab-form-grid--inside .ptab-field { grid-column: span 12; }
    .ptab-emenda-card__meta { grid-template-columns: 1fr; }
    .ptab-emenda-card__head { flex-direction: column; }
    .ptab-emenda-status { align-self: flex-start; }
    .ptab-public-stats .ptab-summary-card { padding: 11px; }
    .ptab-public-stats .ptab-summary-card__label { min-height: 28px; }
    .ptab-public-stats .ptab-summary-card__value--money { font-size: 15px; }
    .ptab-pagination-section { padding: 14px; }
    .ptab-pagination-section #ptab-pagination .ptab-btn-light { padding: 8px 10px; }
}

@media print {
    .ptab-search-panel,
    .ptab-quick-filters,
    .ptab-advanced-filters,
    .ptab-active-filters,
    .ptab-result-toolbar,
    .ptab-public-hero__guide,
    .ptab-public-cards { display: none !important; }
    .ptab-card--table .ptab-table-wrapper { display: block !important; }
}

/* Página pública v1.5.12 — expansão horizontal com margem externa fixa de 20px */
.ptab-public.ptab-public--fullwidth {
    box-sizing: border-box !important;
    width: calc(100vw - 40px) !important;
    max-width: calc(100vw - 40px) !important;
    min-width: 0 !important;
    margin-left: calc(50% - 50vw + 20px) !important;
    margin-right: calc(50% - 50vw + 20px) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.ptab-public.ptab-public--fullwidth > .ptab-breadcrumb,
.ptab-public.ptab-public--fullwidth > .ptab-card,
.ptab-public.ptab-public--fullwidth #ptab-public-table-app {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

@supports (width: 100dvw) {
    .ptab-public.ptab-public--fullwidth {
        width: calc(100dvw - 40px) !important;
        max-width: calc(100dvw - 40px) !important;
        margin-left: calc(50% - 50dvw + 20px) !important;
        margin-right: calc(50% - 50dvw + 20px) !important;
    }
}

@media print {
    .ptab-public.ptab-public--fullwidth {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}


/* Administração v1.5.13 — correção de sobreposição e organização do editor */
.ptab-admin {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}
.ptab-admin,
.ptab-admin * {
    box-sizing: border-box;
}
.ptab-admin > .ptab-toolbar--between {
    flex-wrap: wrap;
    align-items: flex-start;
}
.ptab-admin > .ptab-toolbar--between > :first-child {
    flex: 1 1 430px;
    min-width: 0;
}
.ptab-admin > .ptab-toolbar--between > .ptab-actions {
    flex: 0 1 auto;
    justify-content: flex-end;
}
.ptab-admin h1,
.ptab-admin h2,
.ptab-admin h3,
.ptab-admin p,
.ptab-admin small,
.ptab-admin strong,
.ptab-admin label,
.ptab-admin code {
    overflow-wrap: anywhere;
}
.ptab-editor-shell {
    container-type: inline-size;
    container-name: pemd-editor;
    overflow: visible;
}
.ptab-editor-shell > form,
.ptab-editor-shell > details,
.ptab-editor-bottom-grid,
.ptab-section-card,
.ptab-section-card__body,
.ptab-records-workspace,
.ptab-record-editor,
.ptab-records-sidebar,
.ptab-record-fields,
.ptab-record-field-group,
.ptab-record-field-grid,
.ptab-form-grid,
.ptab-field {
    min-width: 0;
    max-width: 100%;
}
/* A barra fixa estava cobrindo campos em alguns temas administrativos. */
.ptab-editor-commandbar,
.ptab-save-bar {
    position: relative;
    top: auto;
    bottom: auto;
}
.ptab-editor-commandbar {
    flex-wrap: wrap;
    align-items: flex-start;
}
.ptab-editor-commandbar__title {
    flex: 1 1 520px;
    align-items: flex-start;
}
.ptab-editor-commandbar__title > div {
    min-width: 0;
}
.ptab-editor-commandbar__actions {
    flex: 1 1 320px;
    justify-content: flex-end;
}
.ptab-editor-commandbar__actions > * {
    white-space: normal;
}
.ptab-editor-stats {
    align-items: stretch;
}
.ptab-editor-stat {
    height: auto;
    min-height: 104px;
    overflow: hidden;
}
.ptab-editor-stat strong,
.ptab-editor-stat small {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.3;
}
.ptab-editor-anchor-nav {
    overflow: visible;
}
.ptab-section-card {
    overflow: clip;
}
.ptab-section-card > summary > span:nth-child(2) {
    min-width: 0;
}
.ptab-section-card > summary strong,
.ptab-section-card > summary small {
    line-height: 1.35;
}
.ptab-section-card__body {
    overflow: visible;
}
.ptab-form-grid {
    align-items: start;
}
.ptab-field .ptab-label,
.ptab-field small {
    line-height: 1.35;
}
.ptab-input,
.ptab-select,
.ptab-textarea {
    max-width: 100%;
    min-width: 0;
}
.ptab-checkbox-card,
.ptab-toggle-card,
.ptab-radio-card {
    min-width: 0;
    height: 100%;
}
.ptab-checkbox-card span,
.ptab-toggle-card span,
.ptab-radio-card span {
    min-width: 0;
}
.ptab-public-options-grid,
.ptab-checkbox-group--cards {
    align-items: stretch;
}
.ptab-records-toolbar {
    flex-wrap: wrap;
    align-items: flex-start;
}
.ptab-records-toolbar > div:first-child {
    flex: 1 1 360px;
    min-width: 0;
}
.ptab-records-toolbar > .ptab-actions {
    flex: 1 1 460px;
    justify-content: flex-end;
}
.ptab-records-toolbar .ptab-btn-guide,
.ptab-records-toolbar .ptab-btn-light,
.ptab-records-toolbar .ptab-btn-danger {
    white-space: normal;
}
.ptab-records-workspace {
    overflow: hidden;
}
.ptab-records-sidebar {
    overflow: hidden;
}
.ptab-record-editor__head {
    flex-wrap: wrap;
}
.ptab-record-editor__head > div:first-child {
    flex: 1 1 320px;
    min-width: 0;
}
.ptab-record-editor__head > .ptab-actions {
    flex: 0 1 auto;
}
.ptab-record-filterbar {
    align-items: start;
}
.ptab-record-group-tabs {
    min-width: 0;
}
.ptab-record-group-tab {
    white-space: normal;
    line-height: 1.25;
}
.ptab-record-field-group__head {
    gap: 12px;
    flex-wrap: wrap;
}
.ptab-record-field-group__head strong,
.ptab-record-field-group__head span {
    min-width: 0;
}
.ptab-advanced-grid,
.ptab-advanced-grid__body,
.ptab-table-editor-wrap {
    min-width: 0;
    max-width: 100%;
}
.ptab-advanced-grid .ptab-toolbar--between {
    flex-wrap: wrap;
    align-items: flex-end;
}
.ptab-advanced-grid .ptab-editor-search {
    flex: 1 1 420px;
    min-width: 0;
    margin: 0;
}
.ptab-advanced-grid .ptab-editor-search .ptab-actions {
    align-items: stretch;
}
.ptab-advanced-grid .ptab-editor-search .ptab-input {
    flex: 1 1 260px;
}
.ptab-save-bar {
    flex-wrap: wrap;
    margin-top: 2px;
}
.ptab-save-bar > div:first-child {
    flex: 1 1 260px;
    min-width: 0;
}
.ptab-save-bar > .ptab-actions {
    flex: 0 1 auto;
}
.ptab-import-layout,
.ptab-editor-bottom-grid {
    align-items: start;
}
.ptab-compliance-admin {
    margin: 0;
}

/* O editor se adapta à largura real do conteúdo, inclusive com menu lateral do portal aberto. */
@container pemd-editor (max-width: 1100px) {
    .ptab-editor-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .ptab-public-options-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .ptab-records-workspace {
        grid-template-columns: 1fr;
    }
    .ptab-records-sidebar {
        border-right: 0;
        border-bottom: 1px solid #e2e8f0;
    }
    .ptab-record-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        max-height: 270px;
    }
    .ptab-import-layout,
    .ptab-editor-bottom-grid {
        grid-template-columns: 1fr;
    }
}
@container pemd-editor (max-width: 820px) {
    .ptab-editor-commandbar__title,
    .ptab-editor-commandbar__actions,
    .ptab-records-toolbar > div:first-child,
    .ptab-records-toolbar > .ptab-actions {
        flex-basis: 100%;
    }
    .ptab-editor-commandbar__actions,
    .ptab-records-toolbar > .ptab-actions {
        justify-content: flex-start;
    }
    .ptab-editor-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .ptab-form-grid .ptab-field--8,
    .ptab-form-grid .ptab-field--7,
    .ptab-form-grid .ptab-field--6,
    .ptab-form-grid .ptab-field--5,
    .ptab-form-grid .ptab-field--4,
    .ptab-form-grid .ptab-field--3 {
        grid-column: span 12;
    }
    .ptab-checkbox-group--cards {
        grid-template-columns: 1fr;
    }
    .ptab-record-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .ptab-record-filterbar {
        grid-template-columns: 1fr;
    }
}
@container pemd-editor (max-width: 560px) {
    .ptab-editor-commandbar,
    .ptab-section-card__body,
    .ptab-record-editor,
    .ptab-records-sidebar,
    .ptab-records-toolbar,
    .ptab-save-bar {
        padding-left: 14px;
        padding-right: 14px;
    }
    .ptab-editor-commandbar__title {
        flex-direction: column;
    }
    .ptab-editor-commandbar__actions,
    .ptab-records-toolbar > .ptab-actions,
    .ptab-save-bar > .ptab-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }
    .ptab-editor-commandbar__actions > *,
    .ptab-records-toolbar > .ptab-actions > *,
    .ptab-save-bar > .ptab-actions > * {
        width: 100%;
    }
    .ptab-editor-stats,
    .ptab-public-options-grid,
    .ptab-record-list,
    .ptab-record-field-grid,
    .ptab-import-mode {
        grid-template-columns: 1fr;
    }
    .ptab-record-field--wide {
        grid-column: span 1;
    }
    .ptab-section-card > summary {
        grid-template-columns: 34px minmax(0, 1fr) 28px;
        gap: 9px;
    }
}

/* Fallback para navegadores sem container queries. */
@media (max-width: 1180px) {
    .ptab-editor-commandbar { position: relative; top: auto; }
    .ptab-save-bar { position: relative; bottom: auto; }
    .ptab-records-toolbar { flex-wrap: wrap; }
}

/* Administração v1.5.14 — correção definitiva dos cartões de origem */
.ptab-compliance-profile-field,
.ptab-origin-scope-field {
    align-self: start;
    min-width: 0;
}
.ptab-origin-scope-field .ptab-checkbox-group--cards {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(170px, 1fr)) !important;
    gap: 12px !important;
    width: 100% !important;
    min-width: 0 !important;
    align-items: stretch !important;
}
.ptab-origin-scope-field .ptab-checkbox-card {
    display: grid !important;
    grid-template-columns: 22px minmax(0, 1fr) !important;
    align-items: center !important;
    justify-content: start !important;
    gap: 10px !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 74px !important;
    padding: 14px 15px !important;
    overflow: hidden !important;
}
.ptab-origin-scope-field .ptab-checkbox-card input[type="checkbox"] {
    position: static !important;
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    margin: 0 !important;
    align-self: center !important;
}
.ptab-origin-scope-field .ptab-checkbox-card > span {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 3px !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
}
.ptab-origin-scope-field .ptab-checkbox-card strong,
.ptab-origin-scope-field .ptab-checkbox-card small {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    line-height: 1.25 !important;
}
.ptab-origin-scope-field .ptab-checkbox-card strong {
    font-size: 15px !important;
}
.ptab-origin-scope-field .ptab-checkbox-card small {
    margin: 0 !important;
    color: #64748b !important;
}

@container pemd-editor (max-width: 920px) {
    .ptab-compliance-profile-field,
    .ptab-origin-scope-field {
        grid-column: span 12 !important;
    }
    .ptab-origin-scope-field .ptab-checkbox-group--cards {
        grid-template-columns: repeat(3, minmax(150px, 1fr)) !important;
    }
}
@container pemd-editor (max-width: 650px) {
    .ptab-origin-scope-field .ptab-checkbox-group--cards {
        grid-template-columns: 1fr !important;
    }
    .ptab-origin-scope-field .ptab-checkbox-card {
        min-height: 62px !important;
    }
}
@media (max-width: 1180px) {
    .ptab-origin-scope-field .ptab-checkbox-card > span,
    .ptab-origin-scope-field .ptab-checkbox-card strong,
    .ptab-origin-scope-field .ptab-checkbox-card small {
        writing-mode: horizontal-tb !important;
        word-break: normal !important;
    }
}

/* Administração v1.5.15 — recursos da página pública organizados por finalidade */
.ptab-subsection-title--resources {
    margin-bottom: 16px !important;
}
.ptab-public-resources-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    min-width: 0;
    align-items: start;
}
.ptab-resource-group {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #dbe4ee;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 5px 16px rgba(15, 23, 42, .04);
}
.ptab-resource-group__header {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 15px 16px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #f8fbff 0%, #f1f5f9 100%);
}
.ptab-resource-group__icon {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: #e8f1ff;
    color: #1d4ed8;
    font-size: 20px;
    font-weight: 800;
}
.ptab-resource-group__header > span:last-child,
.ptab-resource-option > span {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
}
.ptab-resource-group__header strong,
.ptab-resource-group__header small,
.ptab-resource-option strong,
.ptab-resource-option small {
    display: block;
    min-width: 0;
    max-width: 100%;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
}
.ptab-resource-group__header strong {
    color: #0f172a;
    font-size: 15px;
    line-height: 1.3;
}
.ptab-resource-group__header small {
    color: #64748b;
    font-size: 12px;
    line-height: 1.4;
}
.ptab-resource-group__options {
    display: grid;
    min-width: 0;
    padding: 0 16px 8px;
}
.ptab-resource-option {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 28px;
    align-items: center;
    gap: 14px;
    min-width: 0;
    min-height: 67px;
    padding: 12px 2px;
    border-bottom: 1px solid #edf2f7;
    cursor: pointer;
}
.ptab-resource-option:last-child {
    border-bottom: 0;
}
.ptab-resource-option:hover {
    background: #f8fbff;
}
.ptab-resource-option strong {
    color: #1e293b;
    font-size: 14px;
    line-height: 1.3;
}
.ptab-resource-option small {
    color: #64748b;
    font-size: 12px;
    line-height: 1.4;
}
.ptab-resource-option input[type="checkbox"] {
    position: static !important;
    display: block !important;
    width: 19px !important;
    height: 19px !important;
    min-width: 19px !important;
    margin: 0 auto !important;
    accent-color: #2563eb;
}
.ptab-resource-option--number {
    grid-template-columns: minmax(0, 1fr) 96px;
}
.ptab-resource-option--number .ptab-input {
    width: 96px;
    min-width: 0;
    margin: 0;
    padding: 9px 10px;
    text-align: center;
}
.ptab-resource-option:has(input[type="checkbox"]:checked) strong {
    color: #1d4ed8;
}

@container pemd-editor (max-width: 940px) {
    .ptab-public-resources-grid {
        grid-template-columns: 1fr;
    }
}
@container pemd-editor (max-width: 560px) {
    .ptab-resource-group__header {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 10px;
        padding: 14px;
    }
    .ptab-resource-group__icon {
        width: 34px;
        height: 34px;
    }
    .ptab-resource-group__options {
        padding: 0 13px 7px;
    }
    .ptab-resource-option {
        min-height: 62px;
        gap: 10px;
    }
    .ptab-resource-option--number {
        grid-template-columns: minmax(0, 1fr) 82px;
    }
    .ptab-resource-option--number .ptab-input {
        width: 82px;
    }
}
@media (max-width: 1100px) {
    .ptab-public-resources-grid {
        grid-template-columns: 1fr;
    }
}

/* Administração v1.5.16 — importação na própria página reorganizada */
.ptab-import-existing .ptab-section-card__body {
    padding: 20px !important;
}
.ptab-import-existing form,
.ptab-import-existing form * {
    box-sizing: border-box;
}
.ptab-import-intro {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    margin-bottom: 16px;
    padding: 14px 16px;
    border: 1px solid #dbeafe;
    border-radius: 13px;
    background: #f8fbff;
}
.ptab-import-intro strong,
.ptab-import-intro small {
    display: block;
    min-width: 0;
    writing-mode: horizontal-tb !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
}
.ptab-import-intro strong {
    color: #1e3a8a;
    font-size: 15px;
}
.ptab-import-intro small {
    color: #64748b;
    line-height: 1.4;
}
.ptab-import-source-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    min-width: 0;
    align-items: stretch;
}
.ptab-import-source-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #dbe4ee;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(15, 23, 42, .04);
}
.ptab-import-source-card__head {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-width: 0;
    padding: 14px 15px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}
.ptab-import-source-card__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #e8f1ff;
    color: #1d4ed8;
    font-weight: 800;
}
.ptab-import-source-card__head > span:last-child,
.ptab-import-source-card__body,
.ptab-import-source-card .ptab-field {
    min-width: 0;
}
.ptab-import-source-card__head strong,
.ptab-import-source-card__head small,
.ptab-import-source-card .ptab-label,
.ptab-import-source-card .ptab-field small,
.ptab-import-source-card .ptab-file-drop strong,
.ptab-import-source-card .ptab-file-drop small {
    display: block;
    min-width: 0;
    max-width: 100%;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
}
.ptab-import-source-card__head strong {
    color: #0f172a;
    font-size: 15px;
    line-height: 1.3;
}
.ptab-import-source-card__head small {
    margin-top: 2px;
    color: #64748b;
    font-size: 12px;
}
.ptab-import-source-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 12px;
    padding: 15px;
}
.ptab-import-source-card .ptab-field--full {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 7px;
}
.ptab-import-source-card .ptab-input,
.ptab-import-source-card .ptab-textarea {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
}
.ptab-file-drop--compact {
    min-height: 132px !important;
    padding: 16px !important;
}
.ptab-file-drop--compact input[type="file"] {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    font-size: 12px;
}
.ptab-import-model-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.ptab-import-model-actions > * {
    width: 100%;
    min-width: 0;
    justify-content: center;
    text-align: center;
    white-space: normal;
}
.ptab-import-json {
    flex: 1 1 auto;
    min-height: 150px;
    resize: vertical;
}
.ptab-import-apply {
    min-width: 0;
    margin-top: 18px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    background: #f8fafc;
}
.ptab-import-apply__head {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    margin-bottom: 12px;
}
.ptab-import-apply__head strong,
.ptab-import-apply__head small {
    display: block;
    min-width: 0;
    writing-mode: horizontal-tb !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
}
.ptab-import-apply__head strong {
    color: #0f172a;
    font-size: 15px;
}
.ptab-import-apply__head small {
    color: #64748b;
    line-height: 1.4;
}
.ptab-import-mode--organized {
    margin-top: 0 !important;
}
.ptab-radio-card--import {
    display: grid !important;
    grid-template-columns: 22px minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 10px !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 82px;
    overflow: hidden;
}
.ptab-radio-card--import input[type="radio"] {
    position: static !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    margin: 2px 0 0 !important;
}
.ptab-radio-card--import > span,
.ptab-radio-card--import strong,
.ptab-radio-card--import small {
    min-width: 0 !important;
    max-width: 100% !important;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
}
.ptab-radio-card--import strong,
.ptab-radio-card--import small {
    display: block !important;
}
.ptab-radio-card--import small {
    margin-top: 3px;
    line-height: 1.4;
}
.ptab-import-submit-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-width: 0;
    margin-top: 16px;
    padding: 13px 15px;
    border: 1px solid #bfdbfe;
    border-radius: 13px;
    background: #eff6ff;
}
.ptab-import-submit-bar > span {
    flex: 1 1 260px;
    min-width: 0;
    color: #334155;
    writing-mode: horizontal-tb !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
}
.ptab-import-submit-bar .ptab-btn {
    flex: 0 0 auto;
    white-space: normal;
}

@container pemd-editor (max-width: 1120px) {
    .ptab-import-source-grid {
        grid-template-columns: 1fr;
    }
    .ptab-import-source-card__body {
        min-height: 0;
    }
    .ptab-import-json {
        min-height: 130px;
    }
}
@container pemd-editor (max-width: 650px) {
    .ptab-import-existing .ptab-section-card__body {
        padding: 14px !important;
    }
    .ptab-import-model-actions,
    .ptab-import-mode--organized {
        grid-template-columns: 1fr !important;
    }
    .ptab-import-submit-bar {
        align-items: stretch;
        flex-direction: column;
    }
    .ptab-import-submit-bar .ptab-btn {
        width: 100%;
    }
}
@media (max-width: 1180px) {
    .ptab-import-source-card__head strong,
    .ptab-import-source-card__head small,
    .ptab-import-source-card .ptab-label,
    .ptab-import-source-card .ptab-field small,
    .ptab-radio-card--import strong,
    .ptab-radio-card--import small {
        writing-mode: horizontal-tb !important;
        word-break: normal !important;
    }
}


/* Página individual da emenda e impressão — v1.5.17 */
.ptab-detail-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 9px;
}
.ptab-details-title {
    gap: 16px;
    justify-content: space-between;
}
.ptab-emenda-detail-page {
    display: grid;
    gap: 18px;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 20px 28px;
    box-sizing: border-box;
}
.ptab-emenda-detail-page * {
    min-width: 0;
    box-sizing: border-box;
    overflow-wrap: anywhere;
    word-break: normal;
}
.ptab-emenda-detail-hero {
    padding: 24px;
    border-color: #bfdbfe;
    background: linear-gradient(135deg, #ffffff, #eff6ff);
}
.ptab-emenda-detail-hero__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}
.ptab-emenda-detail-hero__head h1 {
    margin: 7px 0 8px;
    color: #0f172a;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.1;
}
.ptab-emenda-detail-hero__head p {
    max-width: 960px;
    margin: 0;
    color: #475569;
    line-height: 1.55;
}
.ptab-emenda-detail-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 9px;
}
.ptab-emenda-detail-summary,
.ptab-emenda-detail-finance {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 11px;
    margin-top: 18px;
}
.ptab-emenda-detail-summary > div,
.ptab-emenda-detail-finance > div {
    padding: 14px;
    border: 1px solid #dbeafe;
    border-radius: 13px;
    background: rgba(255,255,255,.92);
}
.ptab-emenda-detail-summary span,
.ptab-emenda-detail-finance span,
.ptab-emenda-detail-field > span {
    display: block;
    margin-bottom: 6px;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
}
.ptab-emenda-detail-summary strong,
.ptab-emenda-detail-finance strong {
    display: block;
    color: #0f172a;
    font-size: 16px;
}
.ptab-emenda-detail-content {
    display: grid;
    gap: 16px;
}
.ptab-emenda-detail-section {
    padding: 20px;
}
.ptab-emenda-detail-section h2 {
    margin: 0 0 14px;
    color: #1e3a8a;
    font-size: 19px;
}
.ptab-emenda-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 11px;
}
.ptab-emenda-detail-field {
    min-height: 78px;
    padding: 13px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    background: #f8fafc;
}
.ptab-emenda-detail-field > strong {
    display: block;
    color: #0f172a;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.5;
    white-space: normal;
}
.ptab-emenda-detail-field a {
    word-break: break-all;
}
.ptab-emenda-detail-footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 2px;
    color: #64748b;
    font-size: 12px;
}
@media (max-width: 960px) {
    .ptab-emenda-detail-hero__head { flex-direction: column; }
    .ptab-emenda-detail-actions { width: 100%; justify-content: flex-start; }
    .ptab-emenda-detail-summary,
    .ptab-emenda-detail-finance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
    .ptab-emenda-detail-page { padding-right: 12px; padding-left: 12px; }
    .ptab-emenda-detail-summary,
    .ptab-emenda-detail-finance,
    .ptab-emenda-detail-grid { grid-template-columns: 1fr; }
    .ptab-emenda-detail-actions > * { width: 100%; text-align: center; }
    .ptab-emenda-detail-footer { flex-direction: column; }
    .ptab-details-title { align-items: stretch; flex-direction: column; }
    .ptab-detail-actions .ptab-btn { width: 100%; }
}
@media print {
    @page { size: A4 portrait; margin: 12mm; }
    body * { visibility: hidden !important; }
    .ptab-emenda-detail-page,
    .ptab-emenda-detail-page * { visibility: visible !important; }
    .ptab-emenda-detail-page {
        position: absolute !important;
        inset: 0 auto auto 0 !important;
        display: block !important;
        width: 100% !important;
        padding: 0 !important;
        color: #000 !important;
        background: #fff !important;
    }
    .ptab-no-print { display: none !important; }
    .ptab-emenda-detail-hero,
    .ptab-emenda-detail-section {
        margin: 0 0 8mm !important;
        padding: 5mm !important;
        border: 1px solid #bbb !important;
        box-shadow: none !important;
        background: #fff !important;
        break-inside: avoid;
    }
    .ptab-emenda-detail-hero__head h1 { font-size: 22pt !important; }
    .ptab-emenda-detail-summary,
    .ptab-emenda-detail-finance { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 3mm !important; }
    .ptab-emenda-detail-summary > div,
    .ptab-emenda-detail-finance > div,
    .ptab-emenda-detail-field {
        border-color: #ccc !important;
        background: #fff !important;
        break-inside: avoid;
    }
    .ptab-emenda-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 3mm !important; }
    .ptab-emenda-detail-footer { border-top: 1px solid #bbb; }
    a { color: #000 !important; text-decoration: none !important; }
}


/* Impressão compacta da ficha individual — v1.5.18 */
.ptab-emenda-detail-field--wide {
    grid-column: span 2;
}
.ptab-emenda-detail-page--print {
    max-width: 210mm;
    margin-inline: auto;
    padding: 8mm;
    gap: 9px;
    background: #fff;
}
.ptab-emenda-detail-page--print .ptab-emenda-detail-hero {
    padding: 14px;
}
.ptab-emenda-detail-page--print .ptab-emenda-detail-hero__head h1 {
    margin: 4px 0 5px;
    font-size: 26px;
}
.ptab-emenda-detail-page--print .ptab-emenda-detail-hero__head p {
    font-size: 13px;
    line-height: 1.35;
}
.ptab-emenda-detail-page--print .ptab-emenda-detail-summary,
.ptab-emenda-detail-page--print .ptab-emenda-detail-finance {
    gap: 6px;
    margin-top: 8px;
}
.ptab-emenda-detail-page--print .ptab-emenda-detail-summary > div,
.ptab-emenda-detail-page--print .ptab-emenda-detail-finance > div {
    padding: 8px 9px;
    border-radius: 7px;
}
.ptab-emenda-detail-page--print .ptab-emenda-detail-content {
    gap: 8px;
}
.ptab-emenda-detail-page--print .ptab-emenda-detail-section {
    padding: 11px;
}
.ptab-emenda-detail-page--print .ptab-emenda-detail-section h2 {
    margin-bottom: 7px;
    font-size: 15px;
}
.ptab-emenda-detail-page--print .ptab-emenda-detail-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}
.ptab-emenda-detail-page--print .ptab-emenda-detail-field {
    min-height: 0;
    padding: 7px 8px;
    border-radius: 6px;
}
.ptab-emenda-detail-page--print .ptab-emenda-detail-field--wide {
    grid-column: span 3;
}
.ptab-emenda-detail-page--print .ptab-emenda-detail-summary span,
.ptab-emenda-detail-page--print .ptab-emenda-detail-finance span,
.ptab-emenda-detail-page--print .ptab-emenda-detail-field > span {
    margin-bottom: 3px;
    font-size: 9px;
}
.ptab-emenda-detail-page--print .ptab-emenda-detail-summary strong,
.ptab-emenda-detail-page--print .ptab-emenda-detail-finance strong,
.ptab-emenda-detail-page--print .ptab-emenda-detail-field > strong {
    font-size: 12px;
    line-height: 1.3;
}
.ptab-emenda-detail-page--print .ptab-emenda-detail-footer {
    padding-block: 6px;
    font-size: 10px;
}

@media (max-width: 760px) {
    .ptab-emenda-detail-field--wide,
    .ptab-emenda-detail-page--print .ptab-emenda-detail-field--wide {
        grid-column: 1 / -1;
    }
    .ptab-emenda-detail-page--print .ptab-emenda-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media print {
    @page { size: A4 portrait; margin: 7mm; }

    html,
    body {
        margin: 0 !important;
        padding: 0 !important;
        font-size: 8.5pt !important;
        line-height: 1.25 !important;
        background: #fff !important;
    }

    .ptab-emenda-detail-page {
        gap: 0 !important;
        max-width: none !important;
        margin: 0 !important;
        font-size: 8.5pt !important;
        line-height: 1.25 !important;
    }

    .ptab-emenda-detail-hero {
        margin: 0 0 2.5mm !important;
        padding: 3mm !important;
        border-width: .25mm !important;
        border-radius: 0 !important;
        break-inside: auto !important;
    }

    .ptab-kicker {
        font-size: 6.5pt !important;
        letter-spacing: .02em !important;
    }

    .ptab-emenda-detail-hero__head {
        gap: 2mm !important;
    }

    .ptab-emenda-detail-hero__head h1 {
        margin: .8mm 0 1mm !important;
        font-size: 15pt !important;
        line-height: 1.05 !important;
    }

    .ptab-emenda-detail-hero__head p {
        max-width: none !important;
        margin: 0 !important;
        font-size: 8pt !important;
        line-height: 1.2 !important;
    }

    .ptab-emenda-detail-summary,
    .ptab-emenda-detail-finance {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 1.4mm !important;
        margin-top: 1.8mm !important;
    }

    .ptab-emenda-detail-summary > div,
    .ptab-emenda-detail-finance > div {
        min-height: 0 !important;
        padding: 1.4mm 1.6mm !important;
        border-width: .2mm !important;
        border-radius: 0 !important;
    }

    .ptab-emenda-detail-summary span,
    .ptab-emenda-detail-finance span,
    .ptab-emenda-detail-field > span {
        margin-bottom: .6mm !important;
        font-size: 6pt !important;
        line-height: 1.05 !important;
        letter-spacing: .01em !important;
    }

    .ptab-emenda-detail-summary strong,
    .ptab-emenda-detail-finance strong {
        font-size: 8.5pt !important;
        line-height: 1.15 !important;
    }

    .ptab-emenda-detail-content {
        display: block !important;
    }

    .ptab-emenda-detail-section {
        margin: 0 0 2mm !important;
        padding: 2.2mm !important;
        border-width: .25mm !important;
        border-radius: 0 !important;
        break-inside: auto !important;
        page-break-inside: auto !important;
    }

    .ptab-emenda-detail-section h2 {
        margin: 0 0 1.2mm !important;
        padding: 0 0 .8mm !important;
        border-bottom: .2mm solid #bbb !important;
        font-size: 9pt !important;
        line-height: 1.1 !important;
        break-after: avoid !important;
        page-break-after: avoid !important;
    }

    .ptab-emenda-detail-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 1.2mm !important;
    }

    .ptab-emenda-detail-field {
        min-height: 0 !important;
        padding: 1.2mm 1.4mm !important;
        border-width: .2mm !important;
        border-radius: 0 !important;
        break-inside: avoid !important;
        page-break-inside: avoid !important;
    }

    .ptab-emenda-detail-field--wide {
        grid-column: 1 / -1 !important;
    }

    .ptab-emenda-detail-field > strong {
        font-size: 7.5pt !important;
        line-height: 1.18 !important;
        font-weight: 600 !important;
    }

    .ptab-emenda-detail-field a {
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
    }

    .ptab-emenda-detail-footer {
        margin-top: 1.5mm !important;
        padding: 1.5mm 0 0 !important;
        gap: 3mm !important;
        border-top-width: .2mm !important;
        font-size: 6.5pt !important;
        line-height: 1.1 !important;
    }
}


/* v1.5.19 — Acesso temporário por token */
.ptab-temp-access-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 14px;
    padding: 14px 16px;
    border: 1px solid #b9d7ff;
    border-radius: 12px;
    background: #eef6ff;
}
.ptab-temp-access-banner > div { display: grid; gap: 4px; }
.ptab-temp-access-banner strong { color: #153b67; }
.ptab-temp-access-banner small { color: #45637f; line-height: 1.4; }
.ptab-temp-access-banner > span,
.ptab-badge--temporary {
    white-space: nowrap;
    border: 1px solid #9ec6f4;
    background: #fff;
    color: #194b7c;
}
.ptab-access-grid { align-items: start; }
.ptab-access-help { margin-top: 18px; }
.ptab-temp-link-box {
    margin: 16px 0;
    padding: 14px;
    border: 1px solid #b7dfc6;
    border-radius: 12px;
    background: #f0fbf4;
}
.ptab-temp-link-box > strong { display: block; margin-bottom: 10px; color: #176335; }
.ptab-temp-link-row { display: flex; gap: 8px; align-items: center; }
.ptab-temp-link-row .ptab-input { flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
.ptab-temp-link-box small { display: block; margin-top: 8px; color: #52705c; }
.ptab-token-status {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}
.ptab-token-status--ativo { background: #e8f8ee; color: #176335; }
.ptab-token-status--expirado { background: #fff3df; color: #8a5311; }
.ptab-token-status--revogado { background: #fdeaea; color: #8c2a2a; }
.ptab-access-table small { color: #6b7280; }
@media (max-width: 900px) {
    .ptab-temp-access-banner,
    .ptab-temp-link-row { align-items: stretch; flex-direction: column; }
    .ptab-temp-access-banner > span,
    .ptab-badge--temporary { white-space: normal; }
}

.ptab-admin--temporary-existing #ptab-page-settings,
.ptab-admin--temporary-existing #ptab-public-settings,
.ptab-admin--temporary-existing #ptab-compliance-section,
.ptab-admin--temporary-existing .ptab-editor-stat[data-scroll-target="ptab-page-settings"],
.ptab-admin--temporary-existing .ptab-editor-stat[data-scroll-target="ptab-public-settings"],
.ptab-admin--temporary-existing .ptab-editor-stat[data-scroll-target="ptab-compliance-section"] {
    display: none !important;
}
.ptab-admin--temporary-existing .ptab-editor-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* v1.5.21 — Área IA / ChatGPT Work */
.ptab-ai-grid { align-items: start; }
.ptab-ai-permissions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; padding:12px; border:1px solid #e2e8f0; border-radius:12px; background:#f8fafc; }
.ptab-ai-permissions .ptab-checkbox { display:flex; align-items:center; gap:8px; margin:0; }
.ptab-ai-permissions small { color:#6b7280; font-weight:400; }
.ptab-ai-instruction { min-height:145px; resize:vertical; font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; font-size:12px; line-height:1.45; }
.ptab-ai-empty { padding:18px; border:1px dashed #cbd5e1; border-radius:12px; background:#f8fafc; color:#475569; }
.ptab-ai-empty p { margin-bottom:0; }
.ptab-ai-endpoints { display:grid; grid-template-columns:minmax(150px,220px) 1fr; gap:8px 12px; align-items:center; }
.ptab-ai-endpoints code { padding:7px 9px; border-radius:8px; background:#f1f5f9; color:#0f3f72; overflow-wrap:anywhere; }
.ptab-ai-endpoints span { color:#64748b; }
.ptab-ai-created-box .ptab-label { display:block; margin-bottom:6px; }
@media (max-width:760px){.ptab-ai-permissions{grid-template-columns:1fr}.ptab-ai-endpoints{grid-template-columns:1fr}.ptab-ai-endpoints span{margin-bottom:8px}}
