/* ==========================================================
   JORNAL SECTION — T-LAYOUT
   ========================================================== */

.jornal-section {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ==========================================================
   TOP — KPI CARDS (full width)
   ========================================================== */

.jornal-top {
    width: 100%;
}

/* ==========================================================
   BOTTOM — SPLIT (left: top5+heatmap, right: timeline)
   ========================================================== */

.jornal-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    min-height: 0;
}

.jornal-left {
    display: flex;
    flex-direction: column;
    gap: 24px;
    overflow-y: auto;
}

.jornal-right {
    overflow-y: auto;
    max-height: calc(100vh - 300px);
    min-height: 400px;
    padding-right: 4px;
}

.jornal-right::-webkit-scrollbar {
    width: 5px;
}

.jornal-right::-webkit-scrollbar-track {
    background: transparent;
}

.jornal-right::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.jornal-right::-webkit-scrollbar-thumb:hover {
    background: var(--text-faint);
}

/* ==========================================================
   PANEL (wraps each left-side block)
   ========================================================== */

.jornal-panel {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px;
}

.jornal-panel-title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-dim);
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

/* ==========================================================
   DASHBOARD — CARDS (esquerda) + ANÁLISES (direita)
   ========================================================== */

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    min-height: 0;
}

.dashboard-cards {
    min-width: 0;
    overflow-y: auto;
    max-height: none;
    min-height: 400px;
    padding-right: 4px;
}

.dashboard-cards::-webkit-scrollbar {
    width: 5px;
}

.dashboard-cards::-webkit-scrollbar-track {
    background: transparent;
}

.dashboard-cards::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.dashboard-cards::-webkit-scrollbar-thumb:hover {
    background: var(--text-faint);
}

.dashboard-analytics {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.dashboard-analytics-split {
    display: grid;
    grid-template-columns: minmax(0, 40fr) minmax(0, 60fr);
    gap: 18px;
    align-items: stretch;
    min-width: 0;
}

.dashboard-analytics-split .jornal-panel {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.dashboard-analytics-split .jornal-panel .dash-instrumentos,
.dashboard-analytics-split .jornal-panel .dash-chart {
    flex: 1 1 auto;
}

.dash-chart {
    position: relative;
    width: 100%;
    height: 240px;
}

.dash-chart-tall {
    height: 320px;
}

.dash-chart canvas {
    width: 100% !important;
    height: 100% !important;
}

.dash-instrumentos {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.dash-inst-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 14px;
}

.dash-inst-valor {
    display: block;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--primary);
}

.dash-inst-label {
    display: block;
    margin-top: 0;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-faint);
    text-align: right;
}

/* ==========================================================
   HEATMAP DE PEDIDOS — MATRIZ ANO × MÊS
   ========================================================== */

.jornal-heatmap {
    overflow-x: auto;
}

.hm-matrix {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 520px;
}

.hm-row {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 4px;
    align-items: stretch;
}

.hm-com-anos .hm-row {
    grid-template-columns: 56px repeat(12, 1fr);
}

.hm-label {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--text-faint);
    padding: 2px 0;
    white-space: nowrap;
}

.hm-label-mes {
    color: var(--text-dim);
}

.hm-label-ano {
    justify-content: flex-start;
    color: var(--text-dim);
    font-family: var(--mono);
}

.hm-cell {
    background: var(--primary);
    border-radius: var(--radius);
    aspect-ratio: 1 / 1;
    align-self: center;
    padding: 8px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    transition: transform 0.15s, opacity 0.15s;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
}

.hm-cell:hover {
    transform: scale(1.08);
}

.jornal-heatmap-empty {
    color: var(--text-faint);
    font-size: 13px;
    font-style: italic;
}

/* ==========================================================
   TIMELINE
   ========================================================== */

.timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.timeline-group {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-soft);
}

.timeline-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.timeline-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
    margin-bottom: 10px;
    position: sticky;
    top: 0;
    background: var(--bg);
    z-index: 5;
}

.timeline-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
}

.timeline-mes {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.3px;
}

/* ==========================================================
   CARD DE PUBLICAÇÃO
   ========================================================== */

.timeline-card {
    /* Superfície (fundo, sombra, cor e espaçamento) vem da regra
       .br-card do DSGov — ver static/css/cards.css. Aqui fica apenas
       o posicionamento específico da timeline. */
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    margin-left: 20px;
    position: relative;
}

.timeline-card::before {
    content: "";
    position: absolute;
    left: -15px;
    top: 18px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-faint);
}

.timeline-card:hover {
    /* Hover padrão do card DSGov (mesmo gradiente de .br-card.hover). */
    background-image: linear-gradient(
        rgba(var(--color-rgb), var(--hover)),
        rgba(var(--color-rgb), var(--hover))
    );
    transform: translateX(4px);
}

/* ==========================================================
   HEADER DO CARD
   ========================================================== */

.jc-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.jc-date {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
}

.jc-instrumento {
    display: flex;
    align-items: center;
    gap: 6px;
}

.jc-inst-num {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-dim);
    background: var(--bg-elevated);
    padding: 2px 7px;
    border-radius: 5px;
}

.jc-subtipo {
    font-size: 10px;
    font-weight: 700;
    color: var(--text);
    background: var(--primary-dim);
    border: 1px solid var(--primary);
    padding: 2px 8px;
    border-radius: 5px;
    white-space: nowrap;
}

.jc-inst-num-link {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.15s, background 0.15s;
}

.jc-inst-num-link:hover {
    color: var(--text);
    background: var(--primary-dim);
}

/* ==========================================================
   VALORES
   ========================================================== */

.jc-values {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.jc-val {
    text-align: center;
    padding: 6px 4px;
    background: var(--bg-elevated);
    border-radius: var(--radius);
}

.jc-val-label {
    display: block;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-faint);
    letter-spacing: 0.4px;
    margin-bottom: 3px;
}

.jc-val-valor {
    display: block;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

.jc-val-sup .jc-val-valor {
    color: var(--success);
}

.jc-val-can .jc-val-valor {
    color: var(--danger);
}

.jc-val-sal .jc-val-valor {
    color: var(--primary);
}

/* ==========================================================
   ENTIDADES — FAVORECIDOS / CONTRAPARTE
   ========================================================== */

.jc-entidades {
    margin-top: 10px;
}

.jc-entidades-collapsed .jc-entidades-detalhe {
    display: none;
}

.jc-entidades:not(.jc-entidades-collapsed) .jc-entidades-resumo {
    display: none;
}

.jc-entidades:not(.jc-entidades-collapsed) .jc-entidades-bar {
    justify-content: flex-end;
    border-color: transparent;
    background: transparent;
    padding: 0;
}

.jc-entidades-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    cursor: pointer;
    padding: 6px 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-elevated);
    transition: border-color 0.15s, background 0.15s;
}

.jc-entidades-bar:hover {
    border-color: var(--primary-dim);
}

.jc-entidades-resumo {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
}

.jc-resumo-bloco {
    display: inline;
}

.jc-resumo-titulo {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-right: 4px;
}

.jc-resumo-orgaos {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--text);
}

.jc-resumo-orgaos strong {
    font-weight: 800;
    color: var(--primary);
}

.jc-entidades-toggle {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-elevated);
    color: var(--text-faint);
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.jc-entidades-toggle:hover {
    color: var(--primary);
    border-color: var(--primary-dim);
}

.jc-entidades-toggle svg {
    transition: transform 0.15s;
}

.jc-entidades:not(.jc-entidades-collapsed) .jc-entidades-toggle svg {
    transform: rotate(180deg);
}

.jc-entidades-detalhe {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.jc-entidade-titulo {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 4px;
}

.jc-entidade-titulo-fav {
    color: var(--success);
}

.jc-entidade-titulo-can {
    color: var(--danger);
}

.jc-entidade-lista {
    display: flex;
    flex-direction: column;
    gap: 3px;
    max-height: 120px;
    overflow-y: auto;
}

.jc-entidade-lista::-webkit-scrollbar {
    width: 4px;
}

.jc-entidade-lista::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.jc-entidade-linha {
    font-size: 11px;
    font-weight: 600;
    background: var(--bg-elevated);
    border-radius: var(--radius);
    padding: 4px 8px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 6px;
}

.jc-entidade-linha-fav {
    color: var(--success);
}

.jc-entidade-linha-can {
    color: var(--danger);
}

.jc-entidade-linha-sel {
    background: var(--primary-dim);
    border: 1px solid var(--primary);
    font-weight: 700;
}

.jc-entidade-linha-sel .jc-entidade-nome {
    font-weight: 900;
}

.jc-entidade-nome {
    font-family: var(--mono);
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.jc-entidade-esq {
    display: flex;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
    flex: 1 1 auto;
}

.jc-entidade-rp {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    color: var(--text-faint);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0 4px;
    white-space: nowrap;
}

.jc-entidade-valor {
    font-family: var(--mono);
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ==========================================================
   TABELA (CONSTRUTOR) EM CADA CARD
   ========================================================== */

.jc-tabela {
    margin-top: 10px;
}

.jc-tabela-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    cursor: pointer;
    padding: 6px 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-elevated);
    transition: border-color 0.15s, background 0.15s;
}

.jc-tabela-bar:hover {
    border-color: var(--primary-dim);
}

.jc-tabela-titulo {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-dim);
}

.jc-tabela-acoes {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.jc-tabela-toggle {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-elevated);
    color: var(--text-faint);
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}

.jc-tabela-toggle:hover {
    color: var(--primary);
    border-color: var(--primary-dim);
}

/* ==========================================================
   TOGGLE POR CARD — "APENAS OS ÓRGÃOS SELECIONADOS"
   ========================================================== */

.jc-card-ajustes {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border-soft);
}

.jc-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 12px;
    color: var(--text-dim);
    user-select: none;
}

.jc-toggle input {
    display: none;
}

.jc-toggle-track {
    position: relative;
    width: 34px;
    height: 18px;
    flex-shrink: 0;
    border-radius: 999px;
    background: var(--border);
    transition: background .15s;
}

.jc-toggle-track::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--text-faint);
    transition: left .15s, background .15s;
}

.jc-toggle input:checked + .jc-toggle-track {
    background: var(--primary-dim);
}

.jc-toggle input:checked + .jc-toggle-track::after {
    left: 18px;
    background: var(--primary);
}

.jc-toggle:hover {
    color: var(--text);
}

.jc-toggle-mini {
    font-size: 11px;
    gap: 7px;
}

.jc-toggle-mini .jc-toggle-track {
    width: 28px;
    height: 15px;
}

.jc-toggle-mini .jc-toggle-track::after {
    width: 11px;
    height: 11px;
    top: 2px;
    left: 2px;
}

.jc-toggle-mini input:checked + .jc-toggle-track::after {
    left: 15px;
}

/* ==========================================================
   POPUP (MODAL) DO DETALHAMENTO DOS CARDS
   ========================================================== */

.jc-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jc-modal[hidden] {
    display: none;
}

.jc-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.jc-modal-box {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(900px, 94vw);
    max-width: 94vw;
    max-height: 86vh;
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.jc-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-elevated);
}

.jc-modal-titulo {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
}

.jc-modal-nome {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-faint);
    white-space: nowrap;
}

.jc-modal-sub {
    font-family: var(--mono);
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jc-modal-close {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--text-dim);
    cursor: pointer;
    transition: color .15s, background-color .15s;
}

.jc-modal-close:hover {
    color: var(--primary);
    background: var(--row-hover);
}

.jc-modal-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-elevated);
    position: relative;
    z-index: 40;
}

.jc-modal-corpo {
    flex: 1 1 auto;
    overflow: auto;
    padding: 14px 16px;
    min-height: 0;
}

.jc-modal-corpo .jc-tabela-wrap {
    overflow-x: auto;
    overflow-y: visible;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.jc-modal-corpo .jc-tabela-table thead th {
    position: sticky;
    top: 0;
}

body.jc-modal-aberto {
    overflow: hidden;
}

/* Construtor de colunas dentro do popup: painel ancorado abaixo do botão.
   O JS reposiciona com position:fixed (limitado à viewport) para nunca ser
   cortado pelo box da tabela; o painel rola por inteiro quando necessário. */

.modal-construtor .jc-construtor-panel {
    right: auto;
    left: 0;
    max-height: none;
    overflow-y: auto;
    z-index: 1200;
}

/* Popup de filtro de coluna exibido dentro do modal (acima dele) */

.construtor-filter-popup.jc-filter-popup {
    z-index: 1200;
}

/* ==========================================================
   EMPTY STATE
   ========================================================== */

.jc-tabela-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.jc-tabela-table th,
.jc-tabela-table td {
    padding: var(--spacing-sm) var(--spacing-md);
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
    white-space: nowrap;
}

.jc-tabela-table thead th {
    background: var(--thead-bg);
    color: var(--text-dim);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    position: sticky;
    top: 0;
    z-index: 2;
}

.jc-th-text {
    display: inline-block;
    vertical-align: middle;
}

.jc-th-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-left: 3px;
    vertical-align: middle;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--text-faint);
    cursor: pointer;
    flex: none;
    transition: color .15s, background-color .15s;
}

.jc-th-filter:hover {
    color: var(--primary);
    background: var(--row-hover);
}

.jc-th-filter.active {
    color: var(--primary);
}

.jc-tabela-table tbody tr:hover {
    background: var(--row-hover);
}

.jc-tabela-table .numeric {
    text-align: right;
    font-family: var(--mono);
}

.jc-tabela-total td {
    font-weight: 700;
    color: var(--text);
    background: rgba(var(--primary-rgb), 0.10);
    border-top: 1px solid var(--border);
    border-bottom: none;
}

.jc-tabela-carregando,
.jc-tabela-vazio {
    color: var(--text-faint);
    font-size: 12px;
    font-style: italic;
    text-align: center;
    padding: 12px 8px;
}

/* ==========================================================
   SELETOR DE COLUNAS (construtor) DO CARD
   ========================================================== */

.jc-construtor {
    position: relative;
}

.jc-construtor-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 32px;
    padding: 0 16px;
    border: 1px solid var(--primary);
    border-radius: 100em;
    background: transparent;
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .15s, color .15s;
}

.jc-construtor-btn:hover {
    color: var(--primary-hover);
    background: var(--primary-soft);
}

/* Divisor entre ícone e rótulo (padrão de botão "médio" do DS) */

.jc-construtor-btn svg + span {
    border-left: 1px solid currentColor;
    margin-left: 8px;
    padding-left: 8px;
}

.jc-construtor-panel {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 30;
    min-width: 240px;
    max-width: 340px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.jc-construtor-panel.open {
    display: block;
}

.jc-construtor-lista {
    display: flex;
    flex-direction: column;
    gap: 3px;
    max-height: none;
    overflow-y: visible;
}

.jc-construtor-opt {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-dim);
    padding: 3px 4px;
    border-radius: var(--radius);
    cursor: pointer;
}

.jc-construtor-opt:hover {
    background: var(--bg-elevated);
}

/* ==========================================================
   EMPTY STATE
   ========================================================== */

.jornal-empty {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-faint);
    font-size: 14px;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 1024px) {
    .jornal-bottom {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-cards {
        max-height: 620px;
    }

    .jornal-right {
        max-height: calc(100vh - 280px);
    }
}

@media (max-width: 768px) {

    .dashboard-analytics-split {
        grid-template-columns: 1fr;
    }

    .hm-matrix {
        min-width: 460px;
    }

    .hm-row {
        grid-template-columns: repeat(12, 1fr);
    }

    .hm-com-anos .hm-row {
        grid-template-columns: 48px repeat(12, 1fr);
    }

    .timeline-card {
        margin-left: 12px;
    }

    /* O padding do card vem de .br-card .card-content (DSGov);
       em telas pequenas reduzimos apenas o espaçamento interno. */
    .timeline-card > .card-content {
        padding: 12px;
    }

    .jc-values {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .jc-entidades-detalhe {
        grid-template-columns: 1fr;
    }

    .jc-header {
        flex-direction: column;
        gap: 4px;
    }
}

@media (max-width: 560px) {

    .jc-modal-box {
        width: 96vw;
        max-width: 96vw;
        max-height: 92vh;
    }

    .jc-modal-toolbar {
        gap: 6px;
        padding: 8px 10px;
    }

    .jc-modal-corpo {
        padding: 10px;
    }
}
