/* ── Wrapper ── */
.scal-outer {
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .scal-wrapper {
    width: 100%;
    max-width: 1200px;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 28px;
  }

  /* ── Título ── */
  .scal-header { text-align: center; }
  .scal-titulo { font-size: 40px; font-weight: 600; color: #434A54; margin: 0; }

  /* ── Filtros ── */
  .scal-filtros {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #F5F7FA;
    border-radius: 12px;
    padding: 20px 24px;
  }

  /* Linha 1: selects + toggle */
  .scal-filtros-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
  }
  .scal-selects {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
  }
  .scal-select {
    padding: 7px 32px 7px 12px;
    border-radius: 8px;
    border: 1.5px solid #C8D1E0;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='%2358606E' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right 8px center;
    -webkit-appearance: none;
    appearance: none;
    color: #58606E;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.15s;
    min-width: 140px;
  }
  .scal-select:focus { outline: none; border-color: #007D7A; }

  /* ── Dropdown de áreas ── */
  .scal-area-dropdown { position: relative; }
  .scal-area-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 8px;
    border: 1.5px solid #C8D1E0;
    background: #fff;
    color: #58606E;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    min-width: 140px;
    white-space: nowrap;
    transition: border-color 0.15s;
  }
  .scal-area-btn:focus { outline: none; border-color: #007D7A; }
  .scal-area-panel {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 100;
    background: #fff;
    border: 1.5px solid #C8D1E0;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    min-width: 220px;
    max-height: 260px;
    overflow-y: auto;
    padding: 6px 0;
  }

  /* ── Dropdown de meses e anos ── */
  .scal-mes-dropdown, .scal-ano-dropdown { position: relative; }
  .scal-ano-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 8px;
    border: 1.5px solid #C8D1E0;
    background: #fff;
    color: #58606E;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    min-width: 140px;
    white-space: nowrap;
    transition: border-color 0.15s;
  }
  .scal-ano-btn:focus { outline: none; border-color: #007D7A; }
  .scal-ano-panel {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 100;
    background: #fff;
    border: 1.5px solid #C8D1E0;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    min-width: 140px;
    max-height: 240px;
    overflow-y: auto;
    padding: 6px 0;
  }
  .scal-ano-radio { accent-color: #007D7A; width: 15px; height: 15px; cursor: pointer; flex-shrink: 0; }

  .scal-mes-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 8px;
    border: 1.5px solid #C8D1E0;
    background: #fff;
    color: #58606E;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    min-width: 140px;
    white-space: nowrap;
    transition: border-color 0.15s;
  }
  .scal-mes-btn:focus { outline: none; border-color: #007D7A; }
  .scal-mes-panel {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 100;
    background: #fff;
    border: 1.5px solid #C8D1E0;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    min-width: 180px;
    max-height: 240px;
    overflow-y: auto;
    padding: 6px 0;
  }
  .scal-mes-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 13px;
    color: #58606E;
    font-weight: 500;
    transition: background 0.1s;
    white-space: nowrap;
  }
  .scal-mes-item:hover { background: #F5F7FA; }
  .scal-mes-item--oculta { display: none !important; }
  .scal-mes-check { accent-color: #007D7A; width: 15px; height: 15px; cursor: pointer; flex-shrink: 0; }
  .scal-mes-item-ano { color: #9AA3AF; }
  .scal-mes-panel--ano-filtrado .scal-mes-item-ano { display: none; }

  /* View toggle */
  .scal-view-toggle {
    display: flex;
    gap: 4px;
    background: white;
    border: 1.5px solid #C8D1E0;
    border-radius: 8px;
    padding: 4px;
    flex-shrink: 0;
    color: #58606E;
  }
  .scal-view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: #007D7A;
    cursor: pointer;
  }
  .scal-view-btn:hover { background: #007D7A; color: white; }
  .scal-view-btn--ativo { background: #025257; color:white; box-shadow: 0 1px 4px rgba(0,0,0,0.12);display: flex;
    align-items: center;
    justify-content: center; }
  .scal-view-btn .material-symbols-outlined { font-size: 20px; margin: 0; font-weight: 600; color: inherit;}

  /* Botão PDF */
  .scal-pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px 7px 10px;
    border-radius: 8px;
    border: 1.5px solid #C8D1E0;
    background: #fff;
    color: #58606E;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    white-space: nowrap;
  }
  .scal-pdf-btn:hover { background: #006969; color:white; }
  .scal-pdf-btn .material-symbols-outlined { font-size: 18px; }

  .scal-filtros-chips--right { margin-left: auto; }

  /* Remove borda/padding dos chips que estão dentro da linha de topo (dropdowns) */
  .scal-filtros-top .scal-filtros-chips,
  .scal-filtros-top .scal-filtros-chips--right {
    border-top: none;
    padding-top: 0;
  }

  /* Linha 2: chips */
  .scal-filtros-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    border-top: 1px solid #E2E8F0;
    padding-top: 16px;
  }
  .scal-filtro-grupo { display: flex; gap: 10px; flex-direction: column; }
  .scal-filtro-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #9AA3AF;
    letter-spacing: 0.8px;
    white-space: nowrap;
  }
  .scal-chips { display: flex; flex-wrap: wrap; gap: 8px; }
  .scal-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 24px;
    border: 1.5px solid #C8D1E0;
    background: #fff;
    color: #58606E;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
  }
  .scal-chip:hover { background: #006969; color: white; }
  .scal-chip--ativo { border-color: #024248; background: #024248; color: #fff; }
  .scal-chip--ativo:hover { background: #006969; color: white; }
  .scal-chip-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
  .scal-dot--aberto   { background: #2E7D32; }
  .scal-dot--previsto { background: #9E9E9E; }
  .scal-chip-icon { font-size: 14px; line-height: 1; color: inherit; }

  /* ══════════════════════════════════════════
     VIEW: KANBAN
  ══════════════════════════════════════════ */
  .scal-board-wrapper {
    position: relative;
  }
  .scal-board-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 4px;
    background-color: #007D7A;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s, opacity 0.25s;
  }
  .scal-board-nav:hover { background-color: #006969; }
  .scal-board-nav:active { background-color: #025257; }
  .scal-board-nav--prev { left: 0; box-shadow: 2px 5px 8px rgba(0,0,0,0.25); }
  .scal-board-nav--next { right: 0; box-shadow: -1px 4px 7px rgba(0,0,0,0.25); }
  .scal-board-nav--oculto { opacity: 0; pointer-events: none; }
  .scal-board-nav .material-symbols-outlined { font-size: 28px; font-weight: 900; }
  @media (max-width: 640px) { .scal-board-nav { display: none; } }
  .scal-board {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 16px;
    align-items: flex-start;
    scrollbar-width: thin;
    scrollbar-color: #C8D1E0 transparent;
  }
  .scal-board::-webkit-scrollbar { height: 6px; }
  .scal-board::-webkit-scrollbar-track { background: transparent; }
  .scal-board::-webkit-scrollbar-thumb { background: #C8D1E0; border-radius: 3px; }

  .scal-coluna {
    flex: 0 0 260px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .scal-coluna--vazia-total { opacity: 0.4; }

  .scal-coluna-header {
    position: sticky;
    top: 0;
    background: #024248;
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 1;
  }
  .scal-coluna-titulo {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    text-transform: capitalize;
    flex: 1;
  }
  .scal-coluna-ano { font-size: 13px; color: rgba(255,255,255,0.7); font-weight: 400; }
  .scal-coluna-count {
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 22px;
    text-align: center;
  }
  .scal-coluna-itens { display: flex; flex-direction: column; gap: 8px; }

  .scal-card {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    position: relative;
    transition: box-shadow 0.15s, transform 0.15s;
  }
  .scal-card:hover { box-shadow: 0 4px 16px rgba(0,125,122,0.12); color: #006969; background-color: #EBEFF5; text-decoration: none;}
  .scal-card:has(.scal-card-link) { cursor: pointer; }
  .scal-card--oculto { display: none; }

  .scal-card-data {
    flex-shrink: 0;
    width: 52px;
    background: #F5F7FA;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 4px;
    gap: 1px;
    border-right: 1px solid #E2E8F0;
    text-align: center;
  }
  .scal-card-dia { font-size: 30px; font-weight: 700; color: #007D7A; line-height: 1; }
  .scal-card-mes-abr {
    font-size: 14px;
    font-weight: 300;
    color: #58606E;
    letter-spacing: 0.5px;
  }
  .scal-card-badges-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    gap: 8px;
  }
  .scal-card-body {
    flex: 1;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
  }
  .scal-card-badges { display: flex; flex-wrap: wrap; gap: 4px; }
  .scal-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
  }
  .scal-badge--evento    { border: 1px solid #D1441F; color: #D1441F; background: #FFFFFF; }
  .scal-badge--curso     { border: 1px solid #024248; color: #024248; background: #FFFFFF; }
  .scal-badge--aberto    { background: #2E7D32; border: 1px solid #2E7D32; color: #fff; font-weight: 700; }
  .scal-badge--previsto  { border: 1px solid #313E36; color: #313E36; background: #FFFFFF; }
  .scal-badge--modalidade { border: 1px solid #8250BD; color: #8250BD; background: #FFFFFF; }
  .scal-badge--presencial { border: 1px solid #E65100; color: #E65100; background: #FFF3E0; }
  .scal-badge--ead        { border: 1px solid #0277BD; color: #0277BD; background: #E1F5FE; }
  .scal-badge--hibrido    { border: 1px solid #00695C; color: #00695C; background: #E0F2F1; }
  .scal-badge--online     { border: 1px solid #6A1B9A; color: #6A1B9A; background: #F3E5F5; }
  /* situacao_inscricao */
  .scal-badge--situacao        { display: inline-flex; align-items: center; gap: 4px; }
  .scal-badge--abertas         { border: 1px solid #2E7D32; color: #2E7D32; background: #F1F8F1; }
  .scal-badge--em_breve        { border: 1px solid #1565C0; color: #1565C0; background: #E3F0FF; }
  .scal-badge--em_andamento    { border: 1px solid #E65100; color: #E65100; background: #FFF3E0; }
  .scal-badge--encerradas      { border: 1px solid #757575; color: #757575; background: #F5F5F5; }
  .scal-badge-icon { font-size: 11px; line-height: 1; color: inherit; }

  .scal-card-titulo {
    font-size: 16px;
    font-weight: 600;
    color: #434A54;
    margin: 0;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
  }

  .wrapper-tag-title{
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .scal-card-link { color: #007D7A; text-decoration: none; }
  .scal-card-link:hover { text-decoration: underline; }
  .scal-card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }

  .scal-card-meta { display: flex; flex-wrap: wrap; gap: 8px; }
  .scal-meta-item { display: inline-flex; align-items: center; gap: 3px; font-size: 14px; color: #58606E; }
  .scal-meta-icon { font-size: 13px; line-height: 1; }

  .scal-coluna-vazia {
    text-align: center;
    padding: 24px 12px;
    color: #C8D1E0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    border: 2px dashed #EBEFF5;
    border-radius: 10px;
  }
  .scal-coluna-vazia .material-symbols-outlined { font-size: 28px; }
  .scal-coluna-vazia p { font-size: 12px; margin: 0; }

  /* ══════════════════════════════════════════
     VIEW: LISTA
  ══════════════════════════════════════════ */
  .scal-lista { display: flex; flex-direction: column; gap: 20px; }

  .scal-lista-grupo { display: flex; flex-direction: column; }

  .scal-lista-mes-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: #024248;
    border-radius: 10px 10px 0 0;
  }
  .scal-lista-mes-titulo { font-size: 18px; font-weight: 700; color: #fff; text-transform: capitalize; }
  .scal-lista-mes-count {
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.15);
    padding: 2px 10px;
    border-radius: 10px;
  }

  .scal-lista-itens {
    border: 1px solid #E2E8F0;
    border-top: none;
    border-radius: 0 0 10px 10px;
    overflow: hidden;
  }

  .scal-lista-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 16px;
    border-bottom: 1px solid #F0F4F8;
    transition: background 0.12s;
    position: relative;
  }
  .scal-lista-row:last-child { border-bottom: none; }
  .scal-lista-row:hover { color: #006969; background-color: #EBEFF5; }

  .scal-lista-data {
    flex-shrink: 0;
    width: 44px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .scal-lista-dia { font-size: 18px; font-weight: 700; color: #007D7A; line-height: 1; }
  .scal-lista-mes-abr {
    font-size: 14px;
    font-weight: 600;
    color: #58606E;
    letter-spacing: 0.5px;
  }

  .scal-lista-badges { flex-shrink: 0; display: flex; gap: 4px; align-items: center; }

  .scal-lista-nome {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: #434A54;
    margin: 0;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .scal-lista-meta {
    flex-shrink: 0;
    display: flex;
    gap: 12px;
    align-items: center;
  }

  /* ══════════════════════════════════════════
     VIEW: GRID DE CARDS
  ══════════════════════════════════════════ */
  .scal-grid-cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  .scal-grid-grupo {
    display: flex;
    flex-direction: column;
  }
  .scal-grid-mes-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    margin-bottom: 12px;
    color: 004248;
    border-top: 1px solid #58616E;
  }
  .scal-grid-mes-titulo { font-size: 18px; font-weight: 700; color: #004248; }
  .scal-grid-mes-count {
    font-size: 14px;
    color: #004248;
    background: #D6F9F8;
    padding: 2px 10px;
    border-radius: 10px;
  }
  .scal-grid-mes-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
  .scal-grid-mes-cards .scal-card {
    height: 100%;
  }
  @media (max-width: 960px) {
    .scal-grid-mes-cards { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 640px) {
    .scal-grid-mes-cards { grid-template-columns: 1fr; }
  }

  /* ── Estado vazio geral ── */
  .scal-vazio-filtro {
    text-align: center;
    padding: 48px 20px;
    color: #9AA3AF;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .scal-vazio-icon { font-size: 48px; color: #C8D1E0; }
  .scal-limpar-filtros {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 24px;
    border: 1.5px solid #007D7A;
    background: #fff;
    color: #007D7A;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
  }
  .scal-limpar-filtros:hover { background: #007D7A; color: #fff; }
  .scal-limpar-filtros--inline { align-self: center; margin-left: auto; }

  /* ── Paginação ── */
  .scal-card--paginado { display: none !important; }
  .scal-lista-row--paginado { display: none !important; }
  .scal-paginacao {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 8px 0 4px;
  }
  .scal-ver-mais-btn, .scal-ver-menos-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 22px;
    border-radius: 8px;
    border: 1.5px solid #007D7A;
    background: #fff;
    color: #007D7A;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
  }
  .scal-ver-mais-btn:hover, .scal-ver-menos-btn:hover { background: #007D7A; color: #fff; }
  .scal-ver-mais-btn .material-symbols-outlined, .scal-ver-menos-btn .material-symbols-outlined { font-size: 18px; }

  /* ── Destaque: Inscrições abertas ── */
  .scal-dot--aberto {
    background: #2E7D32;
    animation: scal-pulse 1.5s ease-in-out infinite;
  }
  @keyframes scal-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.65); }
  }

  /* ── Export buttons ── */
  .scal-card-actions {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 2;
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.15s;
  }
  .scal-card:hover .scal-card-actions { opacity: 1; }
  .scal-lista-export {
    flex-shrink: 0;
    display: flex;
    gap: 4px;
    z-index: 2;
    position: relative;
  }
  .scal-export-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid #007D7A;
    background: #007D7A;
    color: #fff;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    flex-shrink: 0;
  }
  .scal-export-btn:hover { background: #024248; color: #fff; border-color: #024248; }
  .scal-export-btn .material-symbols-outlined { font-size: 15px; line-height: 1; display: flex; margin: 0; color: white; }
  #scal-export-popup {
    position: fixed;
    background: #fff;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,.15);
    min-width: 168px;
    z-index: 9999;
    overflow: hidden;
  }
  .scal-export-option {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 14px;
    background: none;
    border: none;
    font-size: 13px;
    color: #1a1a1a;
    cursor: pointer;
    text-align: left;
    white-space: nowrap;
  }
  .scal-export-option:hover { background: #f0f4f8; }
  .scal-export-option .material-symbols-outlined { font-size: 15px; color: #007D7A; }

  /* ── Dia da semana ── */
  .scal-card-semana {
    font-size: 14px;
    font-weight: 300;
    color: #58606E;
    letter-spacing: 0.4px;
    margin-top: 2px;
  }

  /* ── Loading cache ── */
  .scal-loading-cache {
    text-align: center;
    padding: 64px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  /* ── Lazy loading sentinel ── */
  .scal-sentinel { display: flex; justify-content: center; padding: 32px 20px; }
  .scal-loading-spinner {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #024248;
    font-size: 14px;
  }
  .scal-loading-icon {
    font-size: 22px;
    animation: scal-spin 0.9s linear infinite;
  }
  .scal-loading-icon--lg {
    font-size: 48px;
    color: #C8D1E0;
  }
  .scal-loading-titulo {
    margin: 12px 0 4px;
    font-size: 16px;
    font-weight: 600;
    color: #434A54;
  }
  .scal-loading-subtitulo {
    font-size: 13px;
    color: #9AA3AF;
    margin: 0;
  }
  @keyframes scal-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
  }

  /* ── Responsivo ── */
  @media (max-width: 640px) {
    .scal-wrapper { padding: 24px 16px; gap: 20px; }
    .scal-titulo { font-size: 28px; }
    .scal-filtros { padding: 16px; }
    .scal-filtros-top { flex-direction: column; align-items: flex-start; }
    .scal-selects { width: 100%; }
    .scal-select { flex: 1; min-width: 100px; }
    .scal-coluna { flex: 0 0 220px; }
    .scal-cal-dia, .scal-cal-dia-empty { min-height: 72px; padding: 4px; }
    .scal-cal-titulo-mes { font-size: 15px; min-width: 160px; }
    .scal-lista-meta { display: none; }
    .scal-lista-nome { white-space: normal; -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
  }

  /* ── Print / PDF ── */
  .scal-print-frame { display: none; }

  @media print {
    body * { visibility: hidden !important; }
    .scal-print-frame, .scal-print-frame * { visibility: visible !important; }
    .scal-print-frame {
      position: fixed !important;
      inset: 0 !important;
      z-index: 99999 !important;
      background: #fff !important;
      padding: 12mm 14mm !important;
      overflow: visible !important;
      display: block !important;
    }
    /* Garante que cores de fundo apareçam */
    * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
    /* Remove interações no print */
    .scal-print-frame .scal-card-actions { display: none !important; }
    .scal-print-frame .scal-card-link::after { display: none !important; }
    .scal-print-frame .scal-card:hover { box-shadow: none !important; transform: none !important; background: #fff !important; }
    /* Grid de 3 colunas no print (melhor para A4) */
    .scal-print-frame .scal-grid-mes-cards { grid-template-columns: repeat(3, 1fr) !important; }
    /* Quebra de página entre meses */
    .scal-print-frame .scal-print-mes { break-inside: avoid; }
  }

  /* Cabeçalho do PDF */
  .scal-print-cabecalho {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 2px solid #024248;
    padding-bottom: 10px;
    margin-bottom: 20px;
  }
  .scal-print-cabecalho-titulo {
    font-size: 20px;
    font-weight: 700;
    color: #024248;
    margin: 0 0 4px;
  }
  .scal-print-cabecalho-filtros {
    font-size: 11px;
    color: #666;
    margin: 0;
  }
  .scal-print-cabecalho-data {
    font-size: 11px;
    color: #666;
    text-align: right;
    white-space: nowrap;
    line-height: 1.6;
  }
  .scal-print-mes { margin-bottom: 24px; }

  /* ── Mês atual ── */
  .scal-tag-mes-atual {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 10px;
    background: #007D7A;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
  }
  /* Tag sobre fundo escuro (kanban e lista) */
  .scal-coluna-header .scal-tag-mes-atual,
  .scal-lista-mes-header .scal-tag-mes-atual {
    background: rgba(255,255,255,0.18);
    color: #fff;
  }

  /* ── Separador "O que já fizemos" ── */
  .scal-historico-divisor {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    color: #9AA3AF;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
  }
  .scal-historico-divisor::before,
  .scal-historico-divisor::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #C8D1E0;
  }
  /* Kanban: divisor vertical entre colunas */
  .scal-board .scal-historico-divisor {
    flex: 0 0 auto;
    flex-direction: column;
    padding: 8px 16px;
    align-self: stretch;
    min-height: 60px;
  }
  .scal-board .scal-historico-divisor::before,
  .scal-board .scal-historico-divisor::after {
    flex: 1;
    height: auto;
    width: 1px;
  }
  .scal-board .scal-historico-divisor span {
    writing-mode: vertical-lr;
    transform: rotate(180deg);
  }