/* A2 Social V19.0.9 — quadro editorial aprovado. APENAS na aba Quadro de produção.
   Carrega após todo CSS legado para manter o Dashboard e demais telas intactos. */
@media screen {
  html body.a2-ux80-page-dashboard .a2-db-v2[data-dashboard-view="quadro"] {
    --a2e-line:var(--a2-line,#e3e8f0);
    --a2e-text:var(--a2-text-strong,#17243e);
    --a2e-subtle:var(--a2-muted,#65758d);
    --a2e-white:var(--a2-surface,#fff);
  }
  html body.a2-ux80-page-dashboard .a2-db-v2[data-dashboard-view="quadro"] .trello-board.a2-editorial-board {
    display:grid!important;
    grid-template-columns:repeat(6,minmax(208px,1fr))!important;
    grid-auto-flow:row!important;
    grid-auto-columns:auto!important;
    align-items:stretch!important;
    gap:10px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    max-width:100%!important;
    padding:3px 2px 15px!important;
    scroll-snap-type:x proximity!important;
    scrollbar-width:thin;
    box-sizing:border-box;
  }
  html body.a2-ux80-page-dashboard .a2-db-v2[data-dashboard-view="quadro"] .trello-board.a2-editorial-board .trello-list.a2-editorial-column,
  html body.a2-premium .a2-db-v2[data-dashboard-view="quadro"] .trello-board.a2-editorial-board .trello-list.a2-editorial-column:has(.empty-list) {
    display:flex!important;
    flex-direction:column!important;
    min-width:208px!important;
    min-height:535px!important;
    height:535px!important;
    max-height:535px!important;
    padding:9px!important;
    border:1px solid var(--a2e-line)!important;
    border-top:3px solid var(--a2e-stage,#b6c0d4)!important;
    border-radius:11px!important;
    background:var(--a2e-surface,var(--a2-surface-2,#f8fafc))!important;
    color:var(--a2e-text)!important;
    box-shadow:none!important;
    overflow:hidden!important;
    scroll-snap-align:start;
    align-self:stretch!important;
    position:relative;
  }
  html body.a2-ux80-page-dashboard .a2-db-v2[data-dashboard-view="quadro"] .a2-editorial-column::before {display:none!important}
  html body.a2-ux80-page-dashboard .a2-db-v2[data-dashboard-view="quadro"] .a2-editorial-column.status-a-fazer {
    --a2e-stage:#e33442;
    --a2e-surface:#fff2f3;
    border-color:#ffccd1!important;
    background:#fff2f3!important;
  }
  html body.a2-ux80-page-dashboard .a2-db-v2[data-dashboard-view="quadro"] .a2-editorial-column.status-em-criacao {--a2e-stage:#8794a9;--a2e-surface:#f6f8fb}
  html body.a2-ux80-page-dashboard .a2-db-v2[data-dashboard-view="quadro"] .a2-editorial-column.status-aguardando-aprovacao {--a2e-stage:#d79b24;--a2e-surface:#fffaf0}
  html body.a2-ux80-page-dashboard .a2-db-v2[data-dashboard-view="quadro"] .a2-editorial-column.status-revisao {--a2e-stage:#7667de;--a2e-surface:#f7f6ff}
  html body.a2-ux80-page-dashboard .a2-db-v2[data-dashboard-view="quadro"] .a2-editorial-column.status-aprovado {--a2e-stage:#149d7b;--a2e-surface:#f1fbf7}
  html body.a2-ux80-page-dashboard .a2-db-v2[data-dashboard-view="quadro"] .a2-editorial-column.status-publicado {--a2e-stage:#315cf5;--a2e-surface:#f1f5ff}

  html body.a2-ux80-page-dashboard .a2-db-v2[data-dashboard-view="quadro"] .a2-editorial-column-head {
    display:flex!important;justify-content:space-between!important;align-items:center!important;
    flex:0 0 auto;gap:3px!important;min-height:39px!important;margin:0 0 8px!important;padding:0 2px!important;
    background:transparent!important;border:0!important;
  }
  html body.a2-ux80-page-dashboard .a2-db-v2[data-dashboard-view="quadro"] .a2-editorial-column-head h3,
  html body.a2-unified-v1905 .a2-db-v2[data-dashboard-view="quadro"] .a2-editorial-column-head h3 {
    display:flex!important;align-items:center!important;gap:6px!important;
    min-width:0!important;margin:0!important;
    font-size:11px!important;line-height:1.2!important;letter-spacing:-.01em!important;font-weight:650!important;
    color:var(--a2e-text)!important;white-space:normal!important;
  }
  html body.a2-ux80-page-dashboard .a2-db-v2[data-dashboard-view="quadro"] .a2-editorial-status-icon {
    flex:0 0 23px;height:23px;display:grid;place-items:center;
    border-radius:50%;color:white;background:var(--a2e-stage,#64748b);
    font-size:13px;font-weight:750;line-height:1;
  }
  html body.a2-ux80-page-dashboard .a2-db-v2[data-dashboard-view="quadro"] .a2-editorial-column-head>span,
  html body.a2-unified-v1905 .a2-db-v2[data-dashboard-view="quadro"] .a2-editorial-column-head>span {
    min-width:26px!important;height:26px!important;display:grid!important;place-items:center!important;
    font-size:11px!important;font-weight:700!important;border-radius:50%!important;
    background:var(--a2e-white)!important;border:1px solid var(--a2e-line)!important;color:var(--a2e-text)!important;
  }
  html body.a2-ux80-page-dashboard .a2-db-v2[data-dashboard-view="quadro"] .a2-editorial-column.status-a-fazer .a2-editorial-column-head>span {
    background:#fff!important;color:#b91c2c!important;border-color:#ffcbd0!important;
  }
  html body.a2-ux80-page-dashboard .a2-db-v2[data-dashboard-view="quadro"] .trello-dropzone.a2-editorial-dropzone {
    flex:1 1 auto!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;
    gap:8px!important;min-height:0!important;max-height:none!important;height:auto!important;
    padding:0 2px 2px 0!important;overflow-y:auto!important;overflow-x:hidden!important;
    overscroll-behavior:contain;scrollbar-width:thin;
  }
  html body.a2-unified-v1905 .a2-db-v2[data-dashboard-view="quadro"] .a2-editorial-dropzone .trello-card.a2-editorial-post {
    position:relative;flex:0 0 auto!important;display:block!important;min-width:0!important;
    width:100%!important;max-width:100%!important;padding:9px!important;margin:0!important;
    background:var(--a2e-white)!important;
    border:1px solid var(--a2e-line)!important;
    border-left:1px solid var(--a2e-line)!important;
    border-radius:10px!important;box-shadow:0 2px 6px rgba(18,36,64,.045)!important;
    cursor:pointer!important;box-sizing:border-box!important;
    transition:border-color .12s ease,box-shadow .12s ease;
  }
  html body .a2-db-v2[data-dashboard-view="quadro"] .a2-editorial-post:hover,
  html body .a2-db-v2[data-dashboard-view="quadro"] .a2-editorial-post:focus-visible {
    border-color:#8ca4ff!important;box-shadow:0 4px 14px rgba(49,92,245,.12)!important;outline:2px solid transparent;
  }
  html body .a2-db-v2[data-dashboard-view="quadro"] .a2-editorial-post:focus-visible {outline:2px solid #315cf5!important;outline-offset:2px}
  html body .a2-db-v2[data-dashboard-view="quadro"] .a2-editorial-post-body {display:flex;align-items:flex-start;gap:8px;min-width:0}
  html body .a2-db-v2[data-dashboard-view="quadro"] .a2-editorial-thumb {
    width:57px;height:66px;flex:0 0 57px;overflow:hidden;position:relative;
    background:#eaf0fb;border-radius:8px;display:grid;place-items:center;
    color:#8a9db8;
  }
  html body .a2-db-v2[data-dashboard-view="quadro"] .a2-editorial-thumb>img {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;display:block;z-index:1;border-radius:inherit}
  html body .a2-db-v2[data-dashboard-view="quadro"] .a2-editorial-thumb-fallback {font-size:27px;font-weight:400;line-height:1;color:#92a6c1}
  html body .a2-db-v2[data-dashboard-view="quadro"] .a2-editorial-post-info{min-width:0;flex:1;display:flex;flex-direction:column;align-items:flex-start;gap:3px}
  html body .a2-db-v2[data-dashboard-view="quadro"] .a2-editorial-post-info .type-badge {
    display:inline-block!important;max-width:100%!important;line-height:1.1!important;
    padding:4px 6px!important;border-radius:6px!important;font-size:9px!important;
    font-weight:650!important;background:#ecf2ff!important;color:#315cf5!important;border:1px solid #dbe6ff!important;
    white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
  }
  html body .a2-db-v2[data-dashboard-view="quadro"] .a2-editorial-post-info h4 {
    display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:3;
    margin:1px 0 0!important;font-size:11.5px!important;line-height:1.34!important;
    color:var(--a2e-text)!important;font-weight:650!important;overflow:hidden!important;white-space:normal!important;
    overflow-wrap:anywhere;
  }
  html body .a2-db-v2[data-dashboard-view="quadro"] .a2-editorial-post-num {color:var(--a2e-subtle);font-size:9.5px;line-height:1.3}
  html body .a2-db-v2[data-dashboard-view="quadro"] .a2-editorial-post-meta{display:flex;align-items:center;gap:5px;flex-wrap:wrap;font-size:9.5px;color:var(--a2e-subtle);line-height:1.3}
  html body .a2-db-v2[data-dashboard-view="quadro"] .a2-editorial-post-meta span+span::before {content:'·';margin-right:5px}
  html body .a2-db-v2[data-dashboard-view="quadro"] .a2-editorial-post-footer {
    display:flex;justify-content:space-between;gap:6px;align-items:center;
    border-top:1px solid var(--a2e-line);padding-top:7px;margin-top:8px;min-width:0;
  }
  html body .a2-db-v2[data-dashboard-view="quadro"] .a2-editorial-post-client {
    display:inline-flex;align-items:center;gap:5px;min-width:0;max-width:55%;
    color:var(--a2e-subtle);font-size:9.5px;font-weight:400!important;line-height:1.3;
  }
  html body .a2-db-v2[data-dashboard-view="quadro"] .a2-editorial-post-client .a2-client-identity-logo {--a2-logo-size:19px;flex-shrink:0;border-radius:5px}
  html body .a2-db-v2[data-dashboard-view="quadro"] .a2-editorial-post-client>span:last-child {white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:400!important}
  html body .a2-db-v2[data-dashboard-view="quadro"] .a2-editorial-post-open {font-weight:600;white-space:nowrap;font-size:9.5px;color:var(--a2-brand,#315cf5)}
  html body .a2-db-v2[data-dashboard-view="quadro"] .a2-editorial-media-count {position:absolute;top:3px;right:4px;font-size:8px;background:#fff;border-radius:5px;padding:2px 4px;color:#59687c}
  html body .a2-db-v2[data-dashboard-view="quadro"] .a2-editorial-empty {
    display:flex!important;align-items:center!important;justify-content:center!important;flex-direction:column!important;
    gap:9px!important;flex:1 0 auto!important;min-height:125px!important;padding:22px 9px!important;
    background:rgba(255,255,255,.47)!important;border:1px dashed #d6deea!important;
    border-radius:9px!important;line-height:1.5!important;text-align:center!important;
  }
  html body .a2-db-v2[data-dashboard-view="quadro"] .a2-editorial-empty>span {font-size:31px;color:#8393ac}
  html body .a2-db-v2[data-dashboard-view="quadro"] .a2-editorial-empty>strong{font-size:11px;font-weight:650;color:var(--a2e-text)}
  html body .a2-db-v2[data-dashboard-view="quadro"] .a2-editorial-empty>small{font-size:10px;color:var(--a2e-subtle)}
  html body .a2-db-v2[data-dashboard-view="quadro"] .trello-list.drag-over {outline:2px solid #315cf5!important;outline-offset:-2px}

  @media(max-width:1480px){
    html body .a2-db-v2[data-dashboard-view="quadro"] .trello-board.a2-editorial-board{grid-template-columns:repeat(6,minmax(218px,1fr))!important}
  }
  @media(max-width:780px){
    html body.a2-ux80-page-dashboard .a2-db-v2[data-dashboard-view="quadro"] .trello-board.a2-editorial-board {grid-template-columns:repeat(6,280px)!important;scroll-snap-type:x mandatory!important}
    html body .a2-db-v2[data-dashboard-view="quadro"] .a2-editorial-column-head h3{font-size:12px!important}
    html body .a2-db-v2[data-dashboard-view="quadro"] .a2-editorial-post-info h4{font-size:12.5px!important}
    html body .a2-db-v2[data-dashboard-view="quadro"] .a2-editorial-thumb{width:64px;height:76px;flex-basis:64px}
  }
}
/* Tema escuro sem fundos claros obrigatórios fora do aviso vermelho. */
@media screen {
  html[data-a2-theme="dark"] body.a2-ux80-page-dashboard.a2-premium .a2-db-v2[data-dashboard-view="quadro"] .trello-board.a2-editorial-board .a2-editorial-column.status-a-fazer {background:#38272d!important;border-color:#86464f!important}
  html[data-a2-theme="dark"] body.a2-ux80-page-dashboard.a2-premium .a2-db-v2[data-dashboard-view="quadro"] .trello-board.a2-editorial-board .a2-editorial-column:not(.status-a-fazer) {background:var(--a2-surface-2,#222e42)!important}
  html[data-a2-theme="dark"] body .a2-db-v2[data-dashboard-view="quadro"] .a2-editorial-empty{background:rgba(32,44,65,.5)!important;border-color:#455269!important}
  html[data-a2-theme="dark"] body .a2-db-v2[data-dashboard-view="quadro"] .a2-editorial-thumb {background:#2d3c56}
}

/* V19.0.10 — ícones SVG locais. Sobrescreve CSS legado que pode reduzir ou ocultar <i>. */
@media screen {
  html body.a2-ux80-page-dashboard .a2-db-v2[data-dashboard-view="quadro"] .a2-editorial-column-head h3 .a2-editorial-status-icon {
    display:inline-grid!important;place-items:center!important;flex:0 0 26px!important;
    width:26px!important;height:26px!important;min-width:26px!important;
    border-radius:50%!important;background:var(--a2e-stage,#64748b)!important;
    color:#fff!important;line-height:1!important;font-style:normal!important;
    margin:0!important;padding:0!important;opacity:1!important;visibility:visible!important;
    overflow:visible!important;
  }
  html body .a2-db-v2[data-dashboard-view="quadro"] .a2-editorial-status-icon svg {
    display:block!important;position:static!important;width:15px!important;height:15px!important;
    flex-shrink:0!important;fill:none!important;stroke:currentColor!important;stroke-width:2.25!important;
    opacity:1!important;visibility:visible!important;
  }
  html body .a2-db-v2[data-dashboard-view="quadro"] .a2-editorial-empty>.a2-editorial-empty-icon {
    display:grid!important;place-items:center!important;width:46px!important;height:46px!important;
    padding:0!important;border-radius:14px!important;background:rgba(131,147,172,.10)!important;
    line-height:1!important;color:#8191aa!important;
  }
  html body .a2-db-v2[data-dashboard-view="quadro"] .a2-editorial-empty-icon svg {
    display:block!important;width:23px!important;height:23px!important;fill:none!important;
    stroke:currentColor!important;stroke-width:1.7!important;
  }
  html body .a2-db-v2[data-dashboard-view="quadro"] .a2-editorial-thumb-fallback {display:grid;place-items:center}
  html body .a2-db-v2[data-dashboard-view="quadro"] .a2-editorial-thumb-fallback svg {
    width:26px;height:26px;display:block;fill:none;stroke:currentColor;stroke-width:1.5;
  }
  html body .a2-db-v2[data-dashboard-view="quadro"] .a2-editorial-post-meta .a2-editorial-post-date {
    display:inline-flex;align-items:center;gap:3px;
  }
  html body .a2-db-v2[data-dashboard-view="quadro"] .a2-editorial-post-meta .a2-editorial-post-date svg {
    display:block;flex:0 0 12px;width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.75;
  }
  html body .a2-db-v2[data-dashboard-view="quadro"] .a2-editorial-post-open {
    display:inline-flex;align-items:center;gap:2px;
  }
  html body .a2-db-v2[data-dashboard-view="quadro"] .a2-editorial-post-open svg {
    display:block;width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:2;
  }
}
@media screen {
  html[data-a2-theme="dark"] body.a2-ux80-page-dashboard.a2-premium .a2-db-v2[data-dashboard-view="quadro"] .trello-board.a2-editorial-board .trello-list.a2-editorial-column.status-a-fazer {
    background:#38272d!important;border-color:#86464f!important;border-top-color:#e33442!important;
  }
  html[data-a2-theme="dark"] body.a2-ux80-page-dashboard.a2-premium .a2-db-v2[data-dashboard-view="quadro"] .trello-board.a2-editorial-board .trello-list.a2-editorial-column:not(.status-a-fazer) {
    background:var(--a2-surface-2,#222e42)!important;
  }
}
