/* Marktech Cobranças: ajustes locais sobre o kit do design system (marktech/bundle.css).
   Só tokens --mk-*; nenhuma cor solta. Classes locais usam o prefixo mkc-. */

[hidden] { display: none !important; }
:where(button.mk-side__item) { width: calc(100% - 24px); border: 0; background: transparent; text-align: left; cursor: pointer; font: inherit; }
.mk-topbar__client .mk-i { width: 11px; height: 11px; color: var(--mk-muted); }
.mk-tabletools { margin-bottom: 12px; }
@media (min-width: 992px) {
  .mk-shell { align-items: start; }
  .mk-shell > .mk-side { position: sticky; top: 0; height: 100vh; min-height: 0; overflow-y: auto; }
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--mk-line-strong); border-radius: var(--mk-radius-pill); border: 2px solid transparent; background-clip: padding-box; }
* { scrollbar-color: var(--mk-line-strong) transparent; }

/* Marca no menu e na entrada */
.mkc-brand { display: flex; align-items: center; gap: 12px; color: var(--mk-white); text-decoration: none; }
.mkc-brand img { height: 22px; width: auto; filter: brightness(0) invert(1); }
.mkc-brand span { font-size: 14px; font-weight: 700; padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, .18); line-height: 22px; }
.mkc-entry-brand { display: inline-flex; align-items: center; gap: 14px; color: var(--mk-white); text-decoration: none; }
.mkc-entry-brand img { height: 32px; width: auto; }
.mkc-entry-brand span { font-size: 18px; font-weight: 700; padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, .24); line-height: 32px; }
.mkc-user { display: flex; align-items: center; gap: 12px; justify-content: flex-end; }
.mkc-user__name { font-size: 12.5px; color: var(--mk-muted); text-align: right; line-height: 1.25; }
.mkc-user__name strong { display: block; color: var(--mk-ink); font-weight: 600; font-size: 13px; }
@media (max-width: 767px) { .mkc-user__name { display: none; } }

/* Utilitários */
.mkc-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.mkc-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mkc-soft { background: var(--mk-soft); border-radius: var(--mk-radius-block); padding: 16px 18px; }
.mkc-muted { color: var(--mk-muted); }
.mkc-small { font-size: 12.5px; }
.mkc-num { font-variant-numeric: tabular-nums; }
.mkc-left { text-align: left !important; }
.mkc-wrap { white-space: normal !important; }
.mkc-stack { display: flex; flex-direction: column; gap: 20px; }
.mkc-grid2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@container (min-width: 900px) { .mkc-grid2 { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }

/* Texto longo de instrução (quebras de linha preservadas) */
.mkc-pre { white-space: pre-wrap; word-break: break-word; font-size: 13px; line-height: 1.55; color: var(--mk-body); margin: 0; }
.mkc-pre--box { background: var(--mk-soft); border-radius: var(--mk-radius-block); padding: 14px 16px; }

/* Lista de dados: rótulo em cima, valor embaixo */
.mkc-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px 24px; margin: 0; }
.mkc-facts dt { font-size: 12px; font-weight: 600; color: var(--mk-muted); margin-bottom: 3px; }
.mkc-facts dd { margin: 0; font-size: 13px; font-weight: 600; color: var(--mk-ink); word-break: break-word; }

/* Blocos de instrução da cobrança */
.mkc-steps { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; list-style: none; }
.mkc-step { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 8px 20px; padding: 14px 0; border-top: 1px solid var(--mk-line-soft); }
.mkc-step:first-child { border-top: 0; padding-top: 0; }
.mkc-step__label { font-size: 12.5px; font-weight: 700; color: var(--mk-ink); display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
@media (max-width: 767px) { .mkc-step { grid-template-columns: minmax(0, 1fr); } }

/* Botão copiar */
.mkc-copy.is-done { color: var(--mk-good); border-color: var(--mk-good); }

/* Checklist do mês */
.mkc-tasks { list-style: none; margin: 0; padding: 0; }
.mkc-task { display: flex; flex-direction: column; gap: 10px; padding: 14px 0; border-top: 1px solid var(--mk-line-soft); }
.mkc-task:first-child { border-top: 0; padding-top: 4px; }
.mkc-task__title { font-size: 14px; font-weight: 700; color: var(--mk-ink); margin: 0 0 4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mkc-task__title a { color: inherit; text-decoration: none; }
.mkc-task__title a:hover { text-decoration: underline; }
.mkc-task__meta { font-size: 12.5px; color: var(--mk-muted); margin: 0; }
.mkc-task__note { font-size: 12.5px; color: var(--mk-body); margin: 6px 0 0; white-space: pre-wrap; }
.mkc-task.is-done .mkc-task__title { color: var(--mk-muted); }
.mkc-task__form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mkc-task__form form { display: contents; }
.mkc-task__form select.mk-input { width: 210px; flex: 0 0 auto; }
.mkc-task__form input.mk-input { flex: 1 1 220px; min-width: 0; }
@container (min-width: 1000px) {
  .mkc-task { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 10px 24px; align-items: start; }
  .mkc-task__form { justify-content: flex-end; }
}
@media (max-width: 575px) { .mkc-task__form select.mk-input { width: 100%; } }
a.mk-seg__btn { text-decoration: none; }

/* Formulários */
.mkc-form { display: flex; flex-direction: column; gap: 16px; }
.mkc-form .mk-input { width: 100%; }
.mkc-form textarea.mk-input { min-height: 72px; resize: vertical; }
.mkc-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--mk-line-soft); padding-top: 16px; }
.mkc-file { font: inherit; font-size: 13px; }
.mk-check input { accent-color: var(--mk-navy); }
.mkc-errors { margin: 0; }

/* Mensagens */
.mkc-messages { display: flex; flex-direction: column; gap: 8px; }
.mkc-kpi-sub { font-size: 12.5px; color: var(--mk-muted); margin: 2px 0 0; }
.mkc-totals { display: flex; gap: 6px 18px; flex-wrap: wrap; font-size: 13px; font-weight: 600; }

/* Para o Claude */
.mkc-agent ol { margin: 8px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.mkc-mt { margin-top: 12px !important; }

/* Navegador de mês com links (o kit estiliza botões) */
.mk-monthnav { flex: 0 0 auto; }
a.mk-monthnav__nav, a.mk-monthnav__label { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
a.mk-monthnav__nav .mk-i { width: 13px; height: 13px; }

/* Passo a passo no topo da cobrança */
.mkc-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; counter-reset: flow; }
.mkc-flow li { counter-increment: flow; background: var(--mk-soft); border-radius: var(--mk-radius-block); padding: 12px 14px; font-size: 12.5px; color: var(--mk-body); }
.mkc-flow li::before { content: counter(flow); display: inline-flex; width: 20px; height: 20px; border-radius: var(--mk-radius-pill); background: var(--mk-navy); color: var(--mk-white); font-size: 11px; font-weight: 700; align-items: center; justify-content: center; margin-right: 8px; }
.mkc-flow strong { color: var(--mk-ink); }
.mkc-entry-links { display: flex; justify-content: center; margin-top: 16px; }
