/* iA Comm · Panel de Control de Campaña
 * Paleta y tipografías: guía de construcción, sección 7 (brochure de iA Comm Studio).
 * Lenguaje visual: tarjetas blancas redondeadas, KPIs con borde de color y barras tipo píldora.
 * Todo acotado a .iacd para no chocar con el tema de WordPress. */

.iacd {
  --navy: #1A2B4A; --blue: #2E6EA6; --blue-light: #4A8DC4; --cream: #F5F0E8;
  --page: #EDEAE1; --line: #DCD5C4; --line-soft: #E8E2D4; --track: #EFEAE0;
  --ink: #1A1A1A; --ink-2: #4A4A4A; --ink-3: #8A8578;
  --alert: #B5503A; --alert-bg: #F7E9E4; --good: #3E7A54; --good-bg: #E7F0EA;
  --amber: #B58B2E; --amber-bg: #F7F0DE; --info-bg: #EAF1F7;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(26,43,74,.04), 0 10px 28px rgba(26,43,74,.06);
  background: var(--page); color: var(--ink);
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 14px; line-height: 1.45; padding: 36px 20px 48px;
  -webkit-font-smoothing: antialiased;
}
.iacd *, .iacd *::before, .iacd *::after { box-sizing: border-box; }
.iacd h1, .iacd h2, .iacd h3, .iacd p, .iacd ol, .iacd ul, .iacd table { margin: 0; padding: 0; }
.iacd button, .iacd input, .iacd select { font-family: inherit; }
.iacd .iacd-wrap { max-width: 1120px; margin: 0 auto; }
.iacd .serif { font-family: 'Playfair Display', Georgia, serif; }

/* ---------- Encabezado ---------- */
.iacd .iacd-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.iacd .eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: 2.2px; text-transform: uppercase; color: var(--alert); }
.iacd h1 { font-family: 'Playfair Display', Georgia, serif; font-weight: 500; font-size: 34px; line-height: 1.15; color: var(--navy); margin-top: 8px; }
.iacd .subtitle { font-size: 16px; color: var(--ink-2); margin-top: 8px; max-width: 640px; }
.iacd .pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: rgba(255,255,255,.55); border-radius: 999px; padding: 8px 16px; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.iacd .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); flex-shrink: 0; }
.iacd .dot.stale { background: var(--amber); }

.iacd .toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 26px 0 22px; }
.iacd .toolbar label { font-size: 12px; font-weight: 500; color: var(--ink-3); }
.iacd .field { display: inline-flex; align-items: center; gap: 8px; }
.iacd select, .iacd input[type=date] { font-size: 13px; padding: 8px 12px; border: 1px solid var(--line); background: #fff; color: var(--navy); border-radius: 10px; height: 38px; min-height: 0; max-width: 300px; box-shadow: none; }
.iacd select:focus-visible, .iacd input[type=date]:focus-visible, .iacd .btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.iacd .spacer { flex: 1; }
.iacd .btn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--navy); font-size: 13px; font-weight: 500; cursor: pointer; text-decoration: none; line-height: 1; }
.iacd .btn:hover { border-color: var(--navy); }
.iacd .btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.iacd .btn.primary:hover { background: var(--blue); border-color: var(--blue); }
.iacd .btn[disabled] { opacity: .6; cursor: default; }
.iacd .hint { font-size: 12px; color: var(--ink-3); margin: -8px 0 18px; }

/* ---------- Tarjetas ---------- */
.iacd .card { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 26px; min-width: 0; }
.iacd .card-title { font-size: 15px; font-weight: 700; color: var(--ink-2); margin-bottom: 18px; }
.iacd .grid { display: grid; gap: 22px; margin-bottom: 22px; }
.iacd .grid.cols-2 { grid-template-columns: 1fr 1fr; }
.iacd .grid.kpis { grid-template-columns: repeat(3, 1fr); }
.iacd .note { font-size: 12.5px; color: var(--ink-3); margin-top: 16px; line-height: 1.6; }
.iacd .note.warn { color: var(--alert); }
.iacd .note.ok { color: var(--good); }

/* ---------- KPIs con borde de color ---------- */
.iacd .kpi { position: relative; background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 26px 22px 30px; min-width: 0; overflow: hidden; }
.iacd .kpi::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--accent, var(--navy)); }
.iacd .kpi-value { font-family: 'Playfair Display', Georgia, serif; font-size: 44px; font-weight: 600; line-height: 1; color: var(--navy); letter-spacing: -.5px; }
.iacd .kpi-value.alert { color: var(--alert); }
.iacd .kpi-value small { font-size: 22px; font-weight: 500; margin-left: 2px; }
.iacd .kpi-label { font-size: 15px; font-weight: 700; color: var(--ink-2); margin-top: 14px; }
.iacd .kpi-sub { font-size: 13px; color: var(--ink-3); margin-top: 4px; }
.iacd .kpi-sub .up { color: var(--good); font-weight: 500; }
.iacd .kpi-sub .down { color: var(--alert); font-weight: 500; }

/* ---------- Barras tipo píldora ---------- */
.iacd .bars { display: flex; flex-direction: column; gap: 2px; }
.iacd .bar-row { display: grid; grid-template-columns: minmax(120px, 34%) 1fr 44px; align-items: center; gap: 16px; padding: 7px 8px; margin: 0 -8px; border-radius: 10px; }
.iacd .bar-label { font-size: 14.5px; font-weight: 500; color: #3F4A5C; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iacd .bar-track { height: 12px; background: var(--track); border-radius: 999px; overflow: hidden; }
.iacd .bar-fill { height: 100%; border-radius: 999px; background: var(--c, var(--blue)); min-width: 12px; transition: width .45s cubic-bezier(.2,.7,.2,1), filter .15s; }
.iacd .bar-fill.zero { min-width: 0; }
.iacd .bar-value { font-size: 15px; font-weight: 700; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.iacd .bar-row.muted .bar-label { color: var(--ink-3); }

/* ---------- Embudo ---------- */
.iacd .funnel { width: 100%; max-width: 560px; display: block; overflow: visible; }
.iacd .funnel .stage polygon { transition: filter .15s; }
.iacd .funnel:hover .stage polygon { filter: saturate(.5) opacity(.55); }
.iacd .funnel .stage:hover polygon, .iacd .funnel .stage:focus-visible polygon { filter: none; }
.iacd .funnel .stage:focus-visible { outline: none; }
.iacd .funnel .stage:focus-visible polygon { stroke: var(--navy); stroke-width: 2; }

/* ---------- Torta / dona con leyenda ---------- */
.iacd .pie-wrap { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.iacd .donut { flex-shrink: 0; overflow: visible; }
.iacd .donut path { transition: transform .15s, opacity .15s; transform-origin: 80px 80px; stroke: #fff; stroke-width: 2; }
.iacd .donut:hover path { opacity: .5; }
.iacd .donut path:hover, .iacd .donut path:focus-visible { opacity: 1; transform: scale(1.04); }
.iacd .donut path:focus-visible { outline: none; stroke: var(--navy); }
.iacd .donut-n { font-family: 'Playfair Display', Georgia, serif; font-size: 26px; font-weight: 600; fill: var(--navy); }
.iacd .donut-l { font-size: 11px; fill: var(--ink-3); }
.iacd .legend { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 200px; }
.iacd .lg { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: none; border: 0; padding: 6px 8px; margin: 0 -8px; font-size: 14px; font-weight: 500; color: #3F4A5C; cursor: pointer; border-radius: 8px; }
.iacd .lg:hover { background: #F6F3EC; }
.iacd .lg:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.iacd .lg .sw { width: 12px; height: 12px; border-radius: 4px; flex-shrink: 0; }
.iacd .lg .lg-t { flex: 1; min-width: 0; }
.iacd .lg .lg-v { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.iacd .lg.off { color: #B3AD9D; }
.iacd .lg.off .sw { background: transparent !important; box-shadow: inset 0 0 0 1.5px #C9C2AC; }
.iacd .lg.off .lg-t { text-decoration: line-through; }
.iacd .lg.off .lg-v { color: #B3AD9D; }

/* ---------- Llamadas por día ---------- */
.iacd .calls-chart { display: flex; align-items: flex-end; gap: 4px; height: 170px; border-bottom: 1px solid var(--line); position: relative; }
.iacd .target-line { position: absolute; left: 0; right: 0; border-top: 1.5px dashed var(--alert); z-index: 1; pointer-events: none; }
.iacd .target-line span { position: absolute; right: 0; top: -20px; font-size: 11px; font-weight: 500; color: var(--alert); background: #fff; padding: 0 4px; }
.iacd .call-col { flex: 1; min-width: 0; height: 100%; display: flex; align-items: flex-end; border-radius: 6px 6px 0 0; }
.iacd .call-bar { width: 100%; border-radius: 6px 6px 2px 2px; background: var(--blue-light); transition: background .12s; }
.iacd .call-bar.low { background: #C9C2AC; }
.iacd .call-bar.out { opacity: .45; }
.iacd .call-col:hover, .iacd .call-col:focus-visible { background: rgba(46,110,166,.07); }
.iacd .call-col:hover .call-bar, .iacd .call-col:focus-visible .call-bar { background: var(--blue); opacity: 1; }
.iacd .call-labels { display: flex; gap: 4px; margin-top: 8px; }
.iacd .call-labels span { flex: 1; min-width: 0; overflow: hidden; font-size: 10px; color: var(--ink-3); text-align: center; }

/* ---------- Tabla de movimientos ---------- */
.iacd table.move-table { width: 100%; border-collapse: collapse; border: 0; font-size: 14px; }
.iacd .move-table th { text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--ink-3); padding: 0 8px 10px; border: 0; border-bottom: 1px solid var(--line); background: none; }
.iacd .move-table td { padding: 11px 8px; border: 0; border-bottom: 1px solid #F1ECE2; color: #3F4A5C; font-weight: 500; background: none; }
.iacd .move-table td.num { text-align: right; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.iacd .move-row { cursor: pointer; }
.iacd .move-row:hover td, .iacd .move-row:focus-visible td { background: #F6F3EC; }

/* ---------- Celdas de email ---------- */
.iacd .cells { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.iacd .cell { background: var(--cream); border-radius: 14px; padding: 16px 12px; text-align: center; }
.iacd .cell .n { font-family: 'Playfair Display', Georgia, serif; font-size: 28px; font-weight: 600; color: var(--navy); line-height: 1.1; }
.iacd .cell .n small { font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.iacd .cell .l { font-size: 12px; font-weight: 500; color: var(--ink-3); margin-top: 6px; }

/* ---------- Medidor de base perfilada ---------- */
.iacd .gauge-num { font-family: 'Playfair Display', Georgia, serif; font-size: 44px; font-weight: 600; color: var(--navy); line-height: 1; }
.iacd .gauge-track { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--track); margin: 16px 0 12px; gap: 2px; }
.iacd .gauge-seg { height: 100%; transition: filter .12s; }
.iacd .gauge-seg.yes { background: var(--navy); }
.iacd .gauge-seg.no { background: #B7AF98; }
.iacd .gauge-seg.empty { background: #E2DCCD; }
.iacd .gauge-seg:hover, .iacd .gauge-seg:focus-visible { filter: brightness(1.18); }
.iacd .gauge-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--ink-2); }
.iacd .gauge-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* ---------- Avisos ---------- */
.iacd .callout { border-radius: 14px; padding: 14px 18px; font-size: 14px; line-height: 1.6; background: var(--amber-bg); border-left: 4px solid var(--amber); }
.iacd .callout b { color: var(--navy); }
.iacd .callout.alert { background: var(--alert-bg); border-left-color: var(--alert); }
.iacd .callout.alert b { color: var(--alert); }
.iacd .callout.good { background: var(--good-bg); border-left-color: var(--good); }
.iacd .callout.good b { color: var(--good); }
.iacd .callout + .callout { margin-top: 10px; }

/* ---------- Decisiones y plan (texto editable desde WordPress) ---------- */
.iacd .decisions { background: #fff; border-radius: var(--radius); border: 1px solid #E9CFC5; box-shadow: var(--shadow); padding: 26px 30px; position: relative; overflow: hidden; margin-bottom: 22px; }
.iacd .decisions::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--alert); }
.iacd .decisions h2, .iacd .plan h2 { font-family: 'Playfair Display', Georgia, serif; font-weight: 500; font-size: 22px; color: var(--navy); margin-bottom: 16px; }
.iacd .rich { font-size: 14px; line-height: 1.65; color: #2E3645; }
.iacd .rich ol, .iacd .rich ul { padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.iacd .rich p + p { margin-top: 10px; }
.iacd .rich b, .iacd .rich strong { color: var(--navy); }
.iacd .rich h3, .iacd .rich h4 { font-size: 15px; font-weight: 700; color: var(--navy); margin: 18px 0 10px; }
.iacd .rich h3:first-child, .iacd .rich h4:first-child { margin-top: 0; }
.iacd .rich blockquote { background: var(--info-bg); border-left: 4px solid var(--blue); border-radius: 12px; padding: 12px 16px; margin: 10px 0; font-style: normal; }
.iacd .notes-date { font-size: 12px; color: var(--ink-3); margin-top: 14px; }
.iacd .plan { margin-bottom: 22px; }
.iacd .tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--ink-3); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; margin-left: 10px; vertical-align: 4px; font-family: 'DM Sans', sans-serif; }

.iacd .iacd-foot { font-size: 12px; color: var(--ink-3); text-align: center; padding-top: 22px; border-top: 1px solid var(--line); margin-top: 8px; }
.iacd .iacd-loading, .iacd .iacd-empty, .iacd .iacd-error { max-width: 1120px; margin: 0 auto; background: #fff; border-radius: var(--radius); padding: 32px; font-size: 14px; color: var(--ink-2); text-align: center; box-shadow: var(--shadow); }
.iacd .iacd-error { color: var(--alert); }
.iacd.is-updating .iacd-wrap { opacity: .55; transition: opacity .2s; }

/* ---------- Interactividad ---------- */
.iacd .iacd-hit { outline: none; }
.iacd .iacd-hit.is-drill { cursor: pointer; }
.iacd .iacd-hit:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.iacd .bar-row.iacd-hit:hover, .iacd .bar-row.iacd-hit:focus-visible { background: #F6F3EC; }
.iacd .bar-row.iacd-hit:hover .bar-fill { filter: brightness(1.12); }
.iacd .kpi.iacd-hit { transition: transform .15s, box-shadow .15s; }
.iacd .kpi.iacd-hit:hover, .iacd .kpi.iacd-hit:focus-visible { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(26,43,74,.05), 0 16px 34px rgba(26,43,74,.1); }
.iacd .kpi.iacd-hit::after { content: '↗'; position: absolute; top: 16px; right: 18px; font-size: 14px; color: var(--ink-3); opacity: 0; transition: opacity .15s; }
.iacd .kpi.iacd-hit:hover::after, .iacd .kpi.iacd-hit:focus-visible::after { opacity: 1; }

.iacd-tip { position: fixed; z-index: 100000; display: none; pointer-events: none; background: #1A2B4A; color: #fff; padding: 10px 13px; border-radius: 10px; box-shadow: 0 10px 24px rgba(26,43,74,.28); font-family: 'DM Sans', system-ui, sans-serif; max-width: 270px; line-height: 1.35; }
.iacd-tip .iacd-tip-v { font-family: 'Playfair Display', Georgia, serif; font-size: 19px; font-weight: 600; }
.iacd-tip .iacd-tip-l { font-size: 12.5px; color: #D5DEEA; margin-top: 2px; }
.iacd-tip .iacd-tip-s { font-size: 11.5px; color: #AFC0D6; margin-top: 3px; }
.iacd-tip .iacd-tip-c { font-size: 10.5px; color: #8FB4DA; margin-top: 7px; padding-top: 6px; border-top: 1px solid rgba(255,255,255,.15); }

/* ---------- Panel de detalle ---------- */
.iacd.iacd-drawer { position: fixed; inset: 0; z-index: 99999; padding: 0; background: none; }
.iacd.iacd-drawer[hidden] { display: none; }
.iacd .iacd-drawer-bg { position: absolute; inset: 0; background: rgba(26,43,74,.35); }
.iacd .iacd-drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(900px, 100%); background: #fff; display: flex; flex-direction: column; box-shadow: -10px 0 34px rgba(26,43,74,.2); border-radius: 18px 0 0 18px; animation: iacd-slide .2s ease-out; }
@keyframes iacd-slide { from { transform: translateX(24px); opacity: .6; } to { transform: none; opacity: 1; } }
.iacd .iacd-dr-head { display: flex; justify-content: space-between; gap: 16px; padding: 24px 26px 16px; border-bottom: 1px solid var(--line); }
.iacd .iacd-dr-kicker { font-size: 11.5px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--alert); }
.iacd .iacd-drawer h2 { font-family: 'Playfair Display', Georgia, serif; font-weight: 500; font-size: 24px; color: var(--navy); margin: 6px 0 4px; }
.iacd .iacd-dr-count { font-size: 13px; color: var(--ink-2); }
.iacd .iacd-dr-close { background: #fff; border: 1px solid var(--line); width: 38px; height: 38px; border-radius: 10px; font-size: 20px; line-height: 1; color: var(--navy); cursor: pointer; flex-shrink: 0; }
.iacd .iacd-dr-close:hover { border-color: var(--navy); }
.iacd .iacd-dr-tools { display: flex; gap: 10px; padding: 14px 26px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.iacd .iacd-dr-search { flex: 1; min-width: 180px; height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; }
.iacd .iacd-dr-search:focus { outline: 2px solid var(--blue); outline-offset: -1px; }
.iacd .iacd-dr-scroll { flex: 1; overflow: auto; padding: 0 26px 26px; }
.iacd table.iacd-dr-table { width: 100%; border-collapse: collapse; font-size: 13px; border: 0; }
.iacd .iacd-dr-table th { position: sticky; top: 0; background: #fff; text-align: left; padding: 12px 8px 10px; border: 0; border-bottom: 1px solid var(--line); z-index: 1; }
.iacd .iacd-dr-table th button { background: none; border: 0; padding: 0; font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--ink-3); cursor: pointer; white-space: nowrap; }
.iacd .iacd-dr-table th button::after { content: attr(data-arrow); margin-left: 4px; color: var(--navy); }
.iacd .iacd-dr-table th button:hover { color: var(--navy); }
.iacd .iacd-dr-table th.num, .iacd .iacd-dr-table td.num { text-align: right; }
.iacd .iacd-dr-table td { padding: 10px 8px; border: 0; border-bottom: 1px solid #F1ECE2; color: var(--ink-2); vertical-align: top; }
.iacd .iacd-dr-table td:first-child { color: var(--navy); font-weight: 600; }
.iacd .iacd-dr-table tbody tr:hover td { background: #FBF9F4; }
.iacd .iacd-dr-empty { padding: 30px 0; text-align: center; color: var(--ink-3); }
html.iacd-noscroll, html.iacd-noscroll body { overflow: hidden; }

/* ---------- Login ---------- */
.iacd.iacd-login { display: flex; justify-content: center; padding: 64px 16px; }
.iacd .iacd-login-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line-soft); padding: 34px; width: 100%; max-width: 420px; }
.iacd .iacd-login-card h1 { margin: 8px 0 22px; font-size: 28px; }
.iacd .iacd-login-card p { margin-bottom: 14px; }
.iacd .iacd-login-card label { display: block; font-size: 12.5px; font-weight: 500; color: var(--ink-2); margin-bottom: 5px; }
.iacd .iacd-login-card input[type=text], .iacd .iacd-login-card input[type=password] { width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; }
.iacd .iacd-login-card .login-remember label { display: flex; gap: 8px; align-items: center; }
.iacd .iacd-login-card input[type=submit] { background: var(--navy); color: #fff; border: 0; height: 44px; border-radius: 10px; font-size: 14px; font-weight: 500; cursor: pointer; width: 100%; }
.iacd .iacd-login-help { font-size: 13px; text-align: center; margin-top: 10px; }
.iacd .iacd-login-help a { color: var(--blue); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .iacd .grid.cols-2 { grid-template-columns: 1fr; }
  .iacd .grid.kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .iacd { padding: 22px 12px 36px; }
  .iacd h1 { font-size: 27px; }
  .iacd .pill { white-space: normal; font-size: 12px; padding: 7px 12px; }
  .iacd .grid { gap: 14px; margin-bottom: 14px; }
  .iacd .grid.kpis { grid-template-columns: 1fr 1fr; }
  .iacd .kpi { padding: 18px 16px 16px 20px; }
  .iacd .kpi-value { font-size: 32px; }
  .iacd .kpi-label { font-size: 13.5px; margin-top: 10px; }
  .iacd .card { padding: 20px 18px; }
  .iacd .bar-row { grid-template-columns: 38% 1fr 32px; gap: 10px; }
  .iacd .bar-label { font-size: 13px; }
  .iacd .cells { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .iacd .cell .n { font-size: 22px; }
  .iacd .call-labels span:nth-child(even) { visibility: hidden; }
  .iacd .iacd-dr-table td:nth-child(4), .iacd .iacd-dr-table th:nth-child(4),
  .iacd .iacd-dr-table td:nth-child(6), .iacd .iacd-dr-table th:nth-child(6) { display: none; }
  .iacd .iacd-dr-head, .iacd .iacd-dr-tools { padding-left: 16px; padding-right: 16px; }
  .iacd .iacd-dr-scroll { padding: 0 16px 16px; }
  .iacd .iacd-drawer-panel { border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .iacd *, .iacd-tip { transition: none !important; animation: none !important; }
}

/* ---------- PDF: A4 apaisado con fondos (guía 3.2 y 6.2) ---------- */
@page { size: A4 landscape; margin: 10mm; }
@media print {
  html, body { background: #EDEAE1 !important; }
  .iacd { padding: 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .iacd .toolbar, .iacd .hint, .iacd .no-print, .iacd-tip, .iacd-drawer { display: none !important; }
  .iacd .card, .iacd .kpi, .iacd .decisions, .iacd .grid { break-inside: avoid; }
  .iacd .card, .iacd .kpi, .iacd .decisions { box-shadow: none; }
  .iacd .iacd-wrap { zoom: .78; max-width: none; }
  .iacd .grid.kpis { grid-template-columns: repeat(6, 1fr); gap: 12px; }
  .iacd .kpi-value { font-size: 34px; }
  .iacd .grid.cols-2 { grid-template-columns: 1fr 1fr; }
}
