/* ============================================================================
   slds-kronos.css — Fundação do redesign SLDS (Salesforce Lightning, clean-room)
   tematizado com o verde Kronos.
   Fonte da verdade: OnTrack/docs/especificacao-frontend-kronos.md (§4 a §11).
   Tudo com prefixo k- para conviver com app.css e com os CSS das telas antigas
   enquanto a migração acontece tela a tela. Tokens em HSL sem hsl(), como na
   spec: usar hsl(var(--x)) e hsl(var(--x) / .4) para alpha.
   ============================================================================ */

:root {
  --bg: 0 0% 95%;            /* #f3f3f3 fundo da página */
  --surface: 0 0% 100%;      /* #ffffff cards, tabelas, modais */
  --surface-2: 60 9% 98%;    /* #fafaf9 thead, headers/footers de card */
  --surface-3: 0 4% 95%;     /* #f3f2f2 hover de linha */
  --line: 0 0% 90%;          /* #e5e5e5 bordas de card/tabela */
  --line-2: 0 0% 94%;        /* #f0f0f0 divisores internos */
  --line-input: 0 0% 79%;    /* #c9c9c9 bordas de inputs e botões neutros */
  --text: 0 0% 9%;           /* #181818 */
  --text-2: 0 0% 27%;        /* #454545 */
  --text-3: 0 0% 45%;        /* #747474 muted / labels */
  --text-4: 0 0% 62%;        /* #9e9e9e placeholder / disabled */
  --brand: 143 100% 29%;     /* #00933c */
  --brand-hover: 145 100% 24%;
  --brand-pressed: 143 100% 17%;
  --brand-tint: 146 47% 94%;     /* #e9f7ef */
  --brand-tint-ink: 154 55% 27%; /* #1f6b4a */
  --brand-dim: 140 40% 86%;
  --brand-ink: 0 0% 100%;
  --success-tint: 107 57% 85%;
  --success-ink: 147 51% 20%;
  --amber: 33 99% 44%;           /* #dd7a01 */
  --amber-tint: 20 96% 91%;
  --amber-ink: 39 96% 19%;
  --red: 352 100% 46%;           /* #ea001e */
  --red-tint: 9 95% 92%;
  --red-ink: 355 96% 28%;
  --blue: 207 99% 42%;           /* #0176d3 */
  --blue-tint: 208 100% 92%;
  --blue-ink: 210 99% 26%;

  --k-font: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --k-mono: 'JetBrains Mono', ui-monospace, monospace;
  --k-shadow-card: 0 2px 2px rgba(0, 0, 0, .05);
  --k-shadow-pop: 0 10px 15px -3px rgba(0, 0, 0, .10), 0 4px 6px -4px rgba(0, 0, 0, .10);
  --k-shadow-modal: 0 8px 24px rgba(0, 0, 0, .28);
}

/* O app já usa data-theme="dark" no <html> (persistido em localStorage
   'kronos-theme'); a spec usa .dark. Os dois valem. */
[data-theme="dark"], .dark {
  --bg: 155 28% 6%;        --surface: 155 21% 9%;    --surface-2: 155 17% 11%;
  --surface-3: 155 19% 14%; --line: 155 15% 17%;     --line-2: 155 16% 12%;
  --line-input: 155 12% 26%;
  --text: 140 19% 92%;     --text-2: 140 10% 69%;    --text-3: 140 7% 46%;  --text-4: 140 8% 32%;
  --brand: 147 100% 42%;   --brand-hover: 147 100% 47%; --brand-pressed: 147 100% 34%;
  --brand-tint: 152 30% 14%; --brand-tint-ink: 146 45% 72%;
  --brand-dim: 143 100% 17%; --brand-ink: 148 85% 9%;
  --success-tint: 147 40% 16%; --success-ink: 130 45% 75%;
  --amber: 38 91% 55%;     --amber-tint: 35 45% 15%; --amber-ink: 38 80% 72%;
  --red: 0 85% 60%;        --red-tint: 0 40% 15%;    --red-ink: 0 75% 78%;
  --blue: 217 91% 68%;     --blue-tint: 215 45% 16%; --blue-ink: 213 85% 78%;
}
/* ---------------------------------------------------------------------------
   Base — escopada ao shell novo (.k-app). Telas antigas dentro dele herdam a
   fonte e o fundo, mas mantêm seus próprios CSS.
   --------------------------------------------------------------------------- */
.k-app {
  display: flex; flex-direction: column; height: 100vh; overflow: hidden;
  background: hsl(var(--bg)); color: hsl(var(--text));
  font-family: var(--k-font); font-size: 13px; line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
}
.k-app *, .k-app *::before, .k-app *::after { box-sizing: border-box; }
.k-main { flex: 1; min-height: 0; overflow: auto; }
/* Padding legado para as telas ainda não convertidas (equivale ao .page-body
   antigo). As telas novas (.k-page) anulam esse padding e usam o próprio. */
.k-main-inner { padding: 25px 30px 30px; }
.k-main-inner > .k-page { margin: -25px -30px -30px; }
/* Telas de altura cheia (Mensagens): a página ocupa a área útil e cada painel rola por dentro. */
.k-main:has(.msg-pagina) { display: flex; flex-direction: column; overflow: hidden; }
.k-main:has(.msg-pagina) > .k-main-inner { flex: 1; min-height: 0; display: flex; flex-direction: column; }

.k-app ::-webkit-scrollbar { width: 10px; height: 10px; }
.k-app ::-webkit-scrollbar-thumb { background: hsl(var(--line)); border: 2px solid hsl(var(--bg)); border-radius: 10px; }
.k-app ::-webkit-scrollbar-thumb:hover { background: hsl(var(--text-4)); }
.k-app ::-webkit-scrollbar-track { background: transparent; }

.k-app :focus-visible { outline: none; box-shadow: 0 0 0 2px hsl(var(--brand) / .4); }

.k-mono { font-family: var(--k-mono); }
.k-tabular { font-variant-numeric: tabular-nums lining-nums; }
.k-text-2 { color: hsl(var(--text-2)); }
.k-text-3 { color: hsl(var(--text-3)); }
.k-text-4 { color: hsl(var(--text-4)); }
.k-strong { font-weight: 600; color: hsl(var(--text)); }
.k-muted { color: hsl(var(--text-3)); }
.k-row { display: flex; align-items: center; gap: 8px; }
.k-grow { flex: 1; min-width: 0; }
.k-right { text-align: right; }
.k-center { text-align: center; }
.k-icon { flex: none; }

/* Fecha popovers/dropdowns ao clicar fora (sem JS). */
.k-backdrop { position: fixed; inset: 0; z-index: 40; background: transparent; }

@keyframes k-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes k-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------------------
   GlobalHeader — 50px (§9.2)
   --------------------------------------------------------------------------- */
.k-gh {
  position: relative; z-index: 60; flex: none;
  display: grid; grid-template-columns: 1fr minmax(320px, 36%) 1fr; align-items: center; gap: 16px;
  height: 50px; padding: 0 16px;
  background: hsl(var(--surface)); border-bottom: 1px solid hsl(var(--line));
}
.k-gh-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.k-gh-waffle {
  display: flex; align-items: center; justify-content: center; width: 32px; height: 32px;
  border: 0; border-radius: 9999px; background: transparent; color: hsl(var(--text-3)); cursor: pointer;
}
.k-gh-waffle:hover { background: hsl(var(--surface-2)); color: hsl(var(--brand)); }
.k-gh-wordmark { display: flex; align-items: center; font-size: 16px; font-weight: 700; letter-spacing: .2px; color: hsl(var(--text)); text-decoration: none; }
.k-gh-wordmark:hover { color: hsl(var(--text)); }
.k-gh-wordmark img { height: 24px; width: auto; }
/* Logo nova em duas versões: o traço verde-escuro some no tema escuro, então cada tema mostra a sua.
   Seletores com "img" para não perderem em especificidade para as regras de tamanho acima. */
img.k-logo-dark { display: none; }
[data-theme="dark"] img.k-logo-light, .dark img.k-logo-light { display: none; }
[data-theme="dark"] img.k-logo-dark, .dark img.k-logo-dark { display: block; }
.k-gh-center { position: relative; min-width: 0; }
.k-gh-search {
  display: flex; align-items: center; gap: 8px; width: 100%; height: 32px; padding: 0 14px;
  border: 1px solid hsl(var(--line-input)); border-radius: 9999px; background: hsl(var(--surface));
  color: hsl(var(--text-3)); font: inherit; font-size: 13px; text-align: left; cursor: pointer;
}
.k-gh-search:hover { border-color: hsl(var(--brand)); }
.k-gh-search > span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.k-gh-kbd {
  margin-left: auto; padding: 0 4px; border: 1px solid hsl(var(--line)); border-radius: 4px;
  background: hsl(var(--surface-2)); color: hsl(var(--text-3)); font-family: var(--k-mono); font-size: 10px;
}
.k-gh-right { display: flex; align-items: center; justify-content: flex-end; gap: 2px; }
.k-gh-icon {
  position: relative; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px;
  border: 0; border-radius: 4px; background: transparent; color: hsl(var(--text-3)); cursor: pointer; text-decoration: none;
}
.k-gh-icon:hover { background: hsl(var(--surface-2)); color: hsl(var(--text)); }
.k-gh-sync { display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; font-size: 11px; font-weight: 600; color: hsl(var(--text-3)); white-space: nowrap; }
.k-gh-sync-dot { width: 8px; height: 8px; border-radius: 9999px; background: hsl(var(--brand)); box-shadow: 0 0 6px hsl(var(--brand)); animation: k-pulse 2s ease-in-out infinite; }
.k-gh-avatar {
  margin-left: 6px; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0;
  border: 0; border-radius: 9999px; background: hsl(var(--brand)); color: #fff; font-size: 11px; font-weight: 700; cursor: pointer; overflow: hidden;
}
.k-gh-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Popover utilitário (§9.6) */
.k-popwrap { position: relative; }
.k-pop {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; min-width: 210px; padding: 4px 0;
  border: 1px solid hsl(var(--line)); border-radius: 4px; background: hsl(var(--surface)); box-shadow: var(--k-shadow-pop);
}
.k-pop--wide { width: 360px; }
.k-pop-head { padding: 6px 14px 8px; border-bottom: 1px solid hsl(var(--line-2)); }
.k-pop-name { font-size: 13px; font-weight: 600; color: hsl(var(--text)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-pop-role { font-family: var(--k-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: hsl(var(--text-4)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-pop-item {
  display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 14px; border: 0; background: transparent;
  color: hsl(var(--text-2)); font: inherit; font-size: 12.5px; text-align: left; text-decoration: none; cursor: pointer;
}
.k-pop-item:hover { background: hsl(var(--surface-2)); color: hsl(var(--text)); }
.k-pop-item--danger:hover { color: hsl(var(--red)); }
.k-pop-sep { height: 1px; margin: 4px 0; background: hsl(var(--line-2)); }
.k-pop-empty { padding: 18px 14px; text-align: center; font-family: var(--k-mono); font-size: 11px; color: hsl(var(--text-3)); }

/* Busca global (§9.5, versão popover) */
.k-search-pop {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 50; overflow: hidden;
  border: 1px solid hsl(var(--line)); border-radius: 8px; background: hsl(var(--surface)); box-shadow: var(--k-shadow-pop);
}
.k-search-input { width: 100%; padding: 12px 16px; border: 0; border-bottom: 1px solid hsl(var(--line)); background: transparent; font: inherit; font-size: 14px; color: hsl(var(--text)); outline: none; }
.k-search-input::placeholder { color: hsl(var(--text-4)); }
.k-search-list { max-height: 340px; overflow-y: auto; padding: 4px; }
.k-search-item { display: flex; align-items: center; gap: 12px; padding: 6px 12px; border-radius: 4px; color: hsl(var(--text-2)); font-size: 13px; text-decoration: none; cursor: pointer; }
.k-search-item:hover { background: hsl(var(--surface-2)); color: hsl(var(--text)); }
.k-search-item b { font-weight: 600; color: hsl(var(--text)); }
.k-search-item small { font-family: var(--k-mono); font-size: 10.5px; color: hsl(var(--text-3)); }
.k-search-foot { display: flex; gap: 16px; padding: 8px 16px; border-top: 1px solid hsl(var(--line)); font-family: var(--k-mono); font-size: 10px; color: hsl(var(--text-4)); }

/* ---------------------------------------------------------------------------
   AppNav — 42px (§9.3)
   --------------------------------------------------------------------------- */
.k-nav {
  position: relative; z-index: 50; flex: none; display: flex; align-items: stretch; height: 42px; padding: 0 16px;
  background: hsl(var(--surface)); border-bottom: 1px solid hsl(var(--line));
}
.k-nav-brand { display: flex; align-items: center; gap: 8px; padding-right: 16px; flex: none; color: hsl(var(--text)); text-decoration: none; }
.k-nav-brand:hover { color: hsl(var(--text)); }
.k-nav-tile { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; flex: none; border: 1px solid hsl(var(--brand) / .25); border-radius: 4px; background: hsl(var(--surface)); }
.k-nav-tile img { width: 20px; height: 20px; object-fit: contain; }
[data-theme="dark"] .k-nav-tile img, .dark .k-nav-tile img { filter: none; }
.k-nav-brandname { font-size: 14px; font-weight: 700; white-space: nowrap; }
.k-nav-tabs { display: flex; align-items: stretch; margin: 0; padding: 0; list-style: none; }
.k-nav-tabs > li { position: relative; display: flex; align-items: stretch; }
.k-tab {
  position: relative; display: flex; align-items: center; gap: 4px; padding: 0 12px; border: 0; background: transparent;
  font: inherit; font-size: 13px; color: hsl(var(--text-2)); white-space: nowrap; text-decoration: none; cursor: pointer; transition: color .12s;
}
.k-tab:hover { color: hsl(var(--brand-tint-ink)); }
.k-tab--active { font-weight: 600; color: hsl(var(--brand-tint-ink)); }
.k-tab-underline { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 2px 2px 0 0; background: hsl(var(--brand)); }
.k-tab-chev { opacity: .5; transition: transform .12s; }
.k-tab--active .k-tab-chev { opacity: 1; }
.k-tab--open .k-tab-chev { transform: rotate(180deg); }
.k-dd {
  position: absolute; left: 0; top: calc(100% + 4px); z-index: 50; min-width: 220px; padding: 4px 0;
  border: 1px solid hsl(var(--line)); border-radius: 4px; background: hsl(var(--surface)); box-shadow: var(--k-shadow-pop);
}
.k-dd-item { display: flex; align-items: center; gap: 8px; padding: 7px 14px; font-size: 13px; color: hsl(var(--text-2)); text-decoration: none; white-space: nowrap; }
.k-dd-item:hover { background: hsl(var(--surface-2)); color: hsl(var(--brand-tint-ink)); }
.k-dd-item--active { font-weight: 600; color: hsl(var(--text)); }
.k-dd-check { display: inline-flex; width: 14px; flex: none; color: hsl(var(--brand)); }
.k-nav-ctx { display: flex; flex-direction: column; justify-content: center; margin-left: auto; padding-left: 16px; text-align: right; font-size: 11px; line-height: 1.3; color: hsl(var(--text-3)); white-space: nowrap; }
.k-nav-ctx b { font-weight: 600; color: hsl(var(--text-2)); }
@media (max-width: 1100px) { .k-nav-ctx { display: none; } }
/* ---------------------------------------------------------------------------
   Página (§11.1)
   --------------------------------------------------------------------------- */
.k-page { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 16px 16px 32px; animation: k-in .18s ease-out; }

/* PageHeader (§10.5) + EntityTile (§10.4) */
.k-page-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px;
  border: 1px solid hsl(var(--line)); border-radius: 4px; background: hsl(var(--surface)); box-shadow: var(--k-shadow-card);
}
.k-page-header-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.k-tile { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex: none; border-radius: 8px; background: hsl(var(--brand)); color: #fff; }
.k-tile--orange { background: hsl(var(--amber)); }
.k-tile--purple { background: #9050e9; }
.k-tile--teal { background: #0b827c; }
.k-tile--gray { background: hsl(var(--text-3)); }
.k-page-header-col { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.k-page-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; color: hsl(var(--text-3)); }
.k-page-title { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.2; color: hsl(var(--text)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-page-meta { font-size: 12px; color: hsl(var(--text-3)); }
.k-page-actions { display: flex; align-items: center; gap: 8px; flex: none; }

/* Toolbar de filtros (§11.2) */
.k-toolbar {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; padding: 10px 16px;
  border: 1px solid hsl(var(--line)); border-radius: 4px; background: hsl(var(--surface)); box-shadow: var(--k-shadow-card);
}
.k-field { display: flex; flex-direction: column; gap: 3px; }
.k-label { font-size: 12px; color: hsl(var(--text-3)); }
.k-toolbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 12px; color: hsl(var(--text-3)); white-space: nowrap; }

/* Controles (§10.1, §10.2) */
.k-select, .k-input {
  height: 32px; padding: 0 10px; border: 1px solid hsl(var(--line-input)); border-radius: 4px;
  background: hsl(var(--surface)); font: inherit; font-size: 13px; color: hsl(var(--text)); outline: none;
}
.k-select {
  padding-right: 28px; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23747474' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right 8px center;
}
.k-select:focus, .k-input:focus { border-color: hsl(var(--brand)); box-shadow: 0 0 3px hsl(var(--brand)); }
.k-input::placeholder { color: hsl(var(--text-4)); }
.k-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 12px;
  border: 1px solid hsl(var(--line-input)); border-radius: 4px; background: hsl(var(--surface));
  font: inherit; font-size: 13px; font-weight: 500; color: hsl(var(--brand)); white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: background-color .12s, color .12s;
}
.k-btn:hover { background: hsl(var(--surface-3)); color: hsl(var(--brand)); }
.k-btn:disabled { opacity: .5; pointer-events: none; }
.k-btn--primary { border-color: transparent; background: hsl(var(--brand)); color: #fff; }
.k-btn--primary:hover { background: hsl(var(--brand-hover)); color: #fff; }
.k-btn--primary:active { background: hsl(var(--brand-pressed)); }
.k-btn--ghost { border-color: transparent; background: transparent; }
.k-btn--danger { border-color: transparent; background: hsl(var(--red)); color: #fff; }
.k-btn--sm { height: 28px; padding: 0 10px; font-size: 12px; }
.k-btn--icon { width: 32px; padding: 0; }
.k-btn--sm.k-btn--icon { width: 28px; }
.k-spin { animation: k-spin 1s linear infinite; }
@keyframes k-spin { to { transform: rotate(360deg); } }

/* Switch (auto-refresh) */
.k-switch { position: relative; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: hsl(var(--text-2)); cursor: pointer; user-select: none; }
.k-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.k-switch-track { position: relative; width: 30px; height: 16px; flex: none; border-radius: 9999px; background: hsl(var(--line-input)); transition: background .12s; }
.k-switch-track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 9999px; background: #fff; transition: transform .12s; }
.k-switch input:checked + .k-switch-track { background: hsl(var(--brand)); }
.k-switch input:checked + .k-switch-track::after { transform: translateX(14px); }

/* Pills (§10.3) — sempre par tint/ink, nunca branco sobre cor cheia */
.k-pill { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 9999px; font-size: 11px; font-weight: 500; white-space: nowrap; background: hsl(var(--surface-3)); color: hsl(var(--text-2)); }
.k-pill--warn { background: hsl(var(--amber-tint)); color: hsl(var(--amber-ink)); }
.k-pill--done { background: hsl(var(--success-tint)); color: hsl(var(--success-ink)); }
.k-pill--danger { background: hsl(var(--red-tint)); color: hsl(var(--red-ink)); }
.k-pill--info { background: hsl(var(--blue-tint)); color: hsl(var(--blue-ink)); }
.k-pill--brand { background: hsl(var(--brand-tint)); color: hsl(var(--brand-tint-ink)); }
.k-count { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 9999px; background: hsl(var(--brand-tint)); color: hsl(var(--brand-tint-ink)); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.k-dot { display: inline-block; width: 8px; height: 8px; flex: none; border-radius: 9999px; background: hsl(var(--text-4)); }
.k-dot--brand { background: hsl(var(--brand)); }
.k-dot--amber { background: hsl(var(--amber)); }
.k-dot--red { background: hsl(var(--red)); }
.k-dot--blue { background: hsl(var(--blue)); }

/* KPI strip (§10.6) — um card único dividido, não N cards; sem hover */
.k-kpi-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; overflow: hidden; border: 1px solid hsl(var(--line)); border-radius: 4px; background: hsl(var(--surface)); box-shadow: var(--k-shadow-card); }
.k-kpi { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 12px 16px; }
.k-kpi + .k-kpi { border-left: 1px solid hsl(var(--line)); }
.k-kpi-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: hsl(var(--text-3)); white-space: nowrap; }
.k-kpi-value { font-size: 22px; font-weight: 700; line-height: 1.2; color: hsl(var(--text)); font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.k-kpi-value small { font-size: 13px; font-weight: 500; color: hsl(var(--text-3)); }
.k-kpi-value--red { color: hsl(var(--red)); }
.k-kpi-value--amber { color: hsl(var(--amber)); }
.k-kpi-value--brand { color: hsl(var(--brand)); }
.k-kpi-value--blue { color: hsl(var(--blue)); }
.k-kpi-value--muted { color: hsl(var(--text-3)); }
.k-kpi-caption { font-size: 11px; color: hsl(var(--text-3)); }

/* Panel */
.k-panel { display: flex; flex-direction: column; min-width: 0; border: 1px solid hsl(var(--line)); border-radius: 4px; background: hsl(var(--surface)); box-shadow: var(--k-shadow-card); }
.k-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 16px; border-bottom: 1px solid hsl(var(--line)); background: hsl(var(--surface-2)); }
.k-panel-title { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: hsl(var(--text-3)); }
.k-panel-title small { font-weight: 400; text-transform: none; letter-spacing: 0; color: hsl(var(--text-4)); }
.k-panel-body { padding: 12px 16px; }
.k-panel-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 16px; border-top: 1px solid hsl(var(--line)); font-size: 12px; color: hsl(var(--text-3)); }
.k-panel--muted { opacity: .72; }

/* Grids */
.k-grid { display: grid; gap: 12px; }
.k-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.k-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.k-grid--auto { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
/* Tabela de programações precisa de mais largura que o mapa (7 colunas sem quebra). */
.k-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 12px; align-items: stretch; }
@media (max-width: 1200px) { .k-split, .k-grid--2, .k-grid--3 { grid-template-columns: 1fr; } }
/* Tela estreita: os indicadores quebram em duas colunas em vez de se sobreporem. */
@media (max-width: 700px) {
    .k-kpi-strip { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .k-kpi-strip .k-kpi { border-left: 0; border-top: 1px solid hsl(var(--line)); }
    .k-kpi-strip .k-kpi:nth-child(-n+2) { border-top: 0; }
    .k-kpi-strip .k-kpi:nth-child(even) { border-left: 1px solid hsl(var(--line)); }
    .k-kpi-label { white-space: normal; }
}

/* Tabela (§11.3) — thead cinza-claro, sem zebra, sem sombra própria */
.k-table-wrap { overflow: auto; }
.k-table { width: 100%; border-collapse: collapse; }
.k-table thead th {
  position: sticky; top: 0; z-index: 1; padding: 8px 12px; border-bottom: 1px solid hsl(var(--line)); background: hsl(var(--surface-2));
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: hsl(var(--text-3)); text-align: left; white-space: nowrap;
}
.k-table tbody td { padding: 8px 12px; border-bottom: 1px solid hsl(var(--line-2)); font-size: 12px; color: hsl(var(--text-2)); vertical-align: middle; }
.k-table tbody tr:last-child td { border-bottom: 0; }
.k-table tbody tr.k-row--click { cursor: pointer; transition: background-color .12s; }
.k-table tbody tr.k-row--click:hover td { background: hsl(var(--surface-3)); }
.k-table tbody tr.k-row--muted td { color: hsl(var(--text-4)); }
.k-table .k-num { font-variant-numeric: tabular-nums; color: hsl(var(--text)); }
.k-table .k-code { font-family: var(--k-mono); font-size: 12px; font-weight: 600; color: hsl(var(--text)); }
.k-table .k-center { text-align: center; }
.k-table .k-right { text-align: right; }

/* Lista de itens clicáveis (seções de alerta) */
.k-list { display: flex; flex-direction: column; }
.k-list-item { display: flex; align-items: center; gap: 10px; padding: 8px 16px; border-bottom: 1px solid hsl(var(--line-2)); font-size: 12.5px; color: hsl(var(--text-2)); cursor: pointer; }
.k-list-item:last-child { border-bottom: 0; }
.k-list-item:hover { background: hsl(var(--surface-3)); }
.k-list-item b { font-weight: 600; color: hsl(var(--text)); }
.k-list-item .k-spacer { flex: 1; }
.k-list-item--muted { color: hsl(var(--text-4)); }

/* Alertas / banner (§11.6) */
.k-alert { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid; border-radius: 4px; font-size: 13px; }
.k-alert--danger { border-color: hsl(var(--red) / .3); background: hsl(var(--red-tint)); color: hsl(var(--red-ink)); }
.k-alert--warn { border-color: hsl(var(--amber) / .3); background: hsl(var(--amber-tint)); color: hsl(var(--amber-ink)); }
.k-alert--info { border-color: hsl(var(--blue) / .3); background: hsl(var(--blue-tint)); color: hsl(var(--blue-ink)); }
.k-alert-body { flex: 1; min-width: 0; }
.k-alert small { display: block; font-size: 11px; opacity: .85; }

/* Empty state (§10.10) — micro-copy seca */
.k-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 40px 20px; text-align: center; }
.k-empty-title { font-size: 13px; font-weight: 600; color: hsl(var(--text-2)); }
.k-empty-sub { font-size: 12px; color: hsl(var(--text-3)); }

@media (prefers-reduced-motion: reduce) {
  .k-page { animation: none; }
  .k-gh-sync-dot { animation: none; }
}

/* ---------------------------------------------------------------------------
   Tempo Real — regras de layout da tela (mapa, frota por tipo). O container do
   mapa precisa de altura fixa, senão o Leaflet colapsa a 0px; o modo tela cheia
   replica o comportamento antigo (fixed + flex) com as classes novas.
   --------------------------------------------------------------------------- */
.k-map { min-height: 0; }
.k-map-canvas { height: 460px; background: hsl(var(--surface-3)); }
/* O Leaflet põe os painéis em z-index 400 e os controles em 1000, acima do cabeçalho (60), do
   menu (50) e dos dropdowns. Isolar o contêiner cria um contexto de empilhamento próprio: esses
   z-index passam a valer só dentro do mapa, e o menu volta a ficar por cima. */
.leaflet-container { isolation: isolate; }
.k-map--full { position: fixed; inset: 0; z-index: 9999; display: flex; flex-direction: column; border: 0; border-radius: 0; }
.k-map--full .k-map-canvas { flex: 1; height: auto; min-height: 0; }
.k-wrap { display: flex; flex-wrap: wrap; gap: 6px 14px; }
/* Caixa fixa para os três tipos: com altura fixa e largura livre, o guindauto
   (imagem mais comprida) ficava bem maior que cesto e linha viva. */
/* Caixa 72x28: o guindauto (256x79, largo e baixo) é limitado pela largura e
   chega a 72x22; cesto e linha viva (256x113) são limitados pela altura e ficam
   em 63x28. Massa visual parecida, alinhados na mesma célula. */
.k-frota-icone { width: 72px; height: 28px; object-fit: contain; object-position: center; flex: none; }
.k-list-item--red .k-icon { color: hsl(var(--red)); }
.k-table .k-num--zero { color: hsl(var(--text-4)); }

/* Densidade extra para tabelas de dashboard; nowrap/ellipsis para células que
   não podem quebrar (código de equipe, obra, status). */
.k-table--dense thead th { padding: 6px 8px; }
.k-table--dense tbody td { padding: 6px 8px; }
.k-nowrap { white-space: nowrap; }
.k-ellipsis { display: inline-block; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.k-table td.k-tone--brand { color: hsl(var(--brand)); font-weight: 600; }
.k-table td.k-tone--amber { color: hsl(var(--amber)); font-weight: 600; }
.k-table td.k-tone--red { color: hsl(var(--red)); font-weight: 600; }
.k-list--dense .k-list-item { padding: 6px 16px; font-size: 12.5px; }
.k-toolbar--tight { padding: 8px 16px; }
.k-list--scroll { max-height: 300px; overflow: auto; }

/* Régua de fluxo (§2.6, versão CSS): 5 nós, linha de progresso que percorre
   os 18s e descansa 2s; sem movimento com prefers-reduced-motion. */
@keyframes k-regua-fill { 0% { width: 0; } 90% { width: 100%; } 100% { width: 100%; } }
@keyframes k-no-1 { 0%, 100% { background: hsl(var(--brand)); border-color: hsl(var(--brand)); } }
@keyframes k-no-2 { 0%, 22.4% { background: hsl(var(--surface)); border-color: hsl(var(--brand) / .55); } 22.5%, 100% { background: hsl(var(--brand)); border-color: hsl(var(--brand)); } }
@keyframes k-no-3 { 0%, 44.9% { background: hsl(var(--surface)); border-color: hsl(var(--brand) / .55); } 45%, 100% { background: hsl(var(--brand)); border-color: hsl(var(--brand)); } }
@keyframes k-no-4 { 0%, 67.4% { background: hsl(var(--surface)); border-color: hsl(var(--brand) / .55); } 67.5%, 100% { background: hsl(var(--brand)); border-color: hsl(var(--brand)); } }
@keyframes k-no-5 { 0%, 89.9% { background: hsl(var(--surface)); border-color: hsl(var(--brand) / .55); } 90%, 100% { background: hsl(var(--brand)); border-color: hsl(var(--brand)); } }
@keyframes k-lbl-1 { 0%, 100% { color: hsl(var(--text)); } }
@keyframes k-lbl-2 { 0%, 22.4% { color: hsl(var(--text-4)); } 22.5%, 100% { color: hsl(var(--text)); } }
@keyframes k-lbl-3 { 0%, 44.9% { color: hsl(var(--text-4)); } 45%, 100% { color: hsl(var(--text)); } }
@keyframes k-lbl-4 { 0%, 67.4% { color: hsl(var(--text-4)); } 67.5%, 100% { color: hsl(var(--text)); } }
@keyframes k-lbl-5 { 0%, 89.9% { color: hsl(var(--text-4)); } 90%, 100% { color: hsl(var(--text)); } }
/* ---------------------------------------------------------------------------
   Modal (§11.4), acordeão, timeline, lista de definição, assinaturas — usados
   pelo painel de equipe e pelos modais de APR do Tempo Real.
   --------------------------------------------------------------------------- */
.k-modal-overlay { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(0, 0, 0, .6); }
.k-modal { display: flex; flex-direction: column; width: 1000px; max-width: 95vw; max-height: 90vh; overflow: hidden; border: 1px solid hsl(var(--line)); border-radius: 8px; background: hsl(var(--surface)); box-shadow: var(--k-shadow-modal); color: hsl(var(--text)); font-family: var(--k-font); font-size: 13px; line-height: 1.45; animation: k-modal-in .18s ease-out; }
.k-modal *, .k-modal *::before, .k-modal *::after { box-sizing: border-box; }
.k-modal--md { width: 640px; }
.k-modal--lg { width: 820px; }
.k-modal-head { position: relative; padding: 14px 48px 14px 20px; border-bottom: 1px solid hsl(var(--line)); }
.k-modal-label { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: hsl(var(--text-3)); }
.k-modal-title { margin: 2px 0 0; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; color: hsl(var(--text)); }
.k-modal-close { position: absolute; right: 12px; top: 12px; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 0; border-radius: 4px; background: transparent; color: hsl(var(--text-3)); cursor: pointer; }
.k-modal-close:hover { background: hsl(var(--surface-3)); color: hsl(var(--text)); }
.k-modal-body { flex: 1; min-height: 0; overflow: auto; padding: 16px 20px; }
.k-modal-foot { display: flex; align-items: center; gap: 8px; padding: 12px 20px; border-top: 1px solid hsl(var(--line)); background: hsl(var(--surface-2)); font-size: 12.5px; color: hsl(var(--text-2)); }
@keyframes k-modal-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.k-acc { overflow: hidden; border: 1px solid hsl(var(--line)); border-radius: 4px; }
.k-acc-head { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 12px; border: 0; background: hsl(var(--surface-2)); font: inherit; font-size: 13px; font-weight: 600; color: hsl(var(--text)); text-align: left; cursor: pointer; }
.k-acc-head:hover { background: hsl(var(--surface-3)); }
.k-acc-chev { color: hsl(var(--text-3)); transition: transform .12s; }
.k-acc--closed .k-acc-chev { transform: rotate(-90deg); }
.k-acc--closed .k-acc-body { display: none; }
.k-acc-body { display: flex; flex-direction: column; }
.k-acc-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 12px; border-top: 1px solid hsl(var(--line-2)); font-size: 12.5px; color: hsl(var(--text-2)); }
.k-acc-row--col { flex-direction: column; align-items: stretch; gap: 6px; }
.k-acc-texto { display: flex; align-items: center; gap: 6px; }
.k-acc-obs { display: flex; align-items: center; gap: 6px; padding: 0 12px 8px 30px; font-size: 11.5px; color: hsl(var(--text-3)); }
.k-medidas { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding-left: 20px; }

.k-section-title { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; font-size: 11px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: hsl(var(--text-3)); }
.k-section-title--danger { color: hsl(var(--red)); }
.k-dl { display: flex; flex-direction: column; border: 1px solid hsl(var(--line)); border-radius: 4px; }
.k-dl-row { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 7px 12px; border-top: 1px solid hsl(var(--line-2)); font-size: 12.5px; }
.k-dl-row:first-child { border-top: 0; }
.k-dl-k { color: hsl(var(--text-3)); }
.k-dl-v { color: hsl(var(--text)); }
.k-croqui img { max-width: 100%; border: 1px solid hsl(var(--line)); border-radius: 4px; background: #fff; }
.k-sig-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.k-sig-card { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 10px 12px; border: 1px solid hsl(var(--line)); border-radius: 4px; font-size: 12px; }
.k-sig-selos { flex-wrap: wrap; gap: 4px; }
.k-sig-card img { align-self: flex-start; max-height: 56px; width: auto; border: 1px solid hsl(var(--line-2)); border-radius: 4px; background: #fff; }

.k-timeline { display: flex; flex-direction: column; padding: 6px 0; }
.k-timeline-item { display: flex; align-items: center; gap: 10px; padding: 5px 16px; font-size: 12.5px; color: hsl(var(--text-2)); }
.k-timeline-item--atual { font-weight: 600; color: hsl(var(--text)); }
.k-timeline-hora { width: 40px; flex: none; font-family: var(--k-mono); font-size: 11px; color: hsl(var(--text-3)); }
.k-timeline-mais { padding: 6px 16px 8px 66px; font-size: 11px; color: hsl(var(--text-4)); }
.k-avatar-sm { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; flex: none; border-radius: 9999px; background: hsl(var(--brand-tint)); color: hsl(var(--brand-tint-ink)); font-size: 10.5px; font-weight: 700; }
.k-sub { font-size: 11px; color: hsl(var(--text-3)); }
.k-progress { display: block; height: 4px; margin: 4px 0 2px; overflow: hidden; border-radius: 9999px; background: hsl(var(--surface-3)); }
.k-progress-fill { display: block; height: 100%; background: hsl(var(--brand)); }
.k-kpi--on .k-kpi-label, .k-kpi--on .k-kpi-value { color: hsl(var(--brand)); }
.k-kpi--on { box-shadow: inset 0 -3px 0 hsl(var(--brand)); }
.k-map-canvas--sm { height: 280px; }
.k-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.k-stack { display: flex; flex-direction: column; gap: 8px; }
.k-page-back { padding: 0; border: 0; background: none; font: inherit; font-size: 11px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: hsl(var(--text-3)); text-align: left; cursor: pointer; }
.k-page-back:hover { color: hsl(var(--brand)); text-decoration: underline; }
.k-list--static .k-list-item, .k-list-item--static { cursor: default; }
.k-list--static .k-list-item:hover, .k-list-item--static:hover { background: transparent; }
.k-tone-red { color: hsl(var(--red)); }
.k-alert--done { border-color: hsl(var(--brand) / .3); background: hsl(var(--success-tint)); color: hsl(var(--success-ink)); }
.k-table tfoot td { padding: 8px 12px; border-top: 1px solid hsl(var(--line)); background: hsl(var(--surface-2)); font-size: 12px; font-weight: 600; color: hsl(var(--text)); }
/* Corpo do modal tem altura limitada (90vh): sem isto, o flex encolhe os
   acordeões e corta as linhas em vez de rolar. */
.k-modal-body > *, .k-acc, .k-acc-body > * { flex-shrink: 0; }

/* ---------------------------------------------------------------------------
   Onda 3 (Turnos): leadtime horizontal, barra empilhada com meta, medidor,
   notas, miniaturas de fotos, estados de carregamento e utilitários de tom.
   --------------------------------------------------------------------------- */
.k-field--grow { flex: 1; min-width: 200px; }
.k-loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 48px 20px; font-size: 13px; color: hsl(var(--text-3)); }
.k-spinner { display: inline-block; width: 22px; height: 22px; flex: none; border: 2px solid hsl(var(--line)); border-top-color: hsl(var(--brand)); border-radius: 50%; animation: k-spin .8s linear infinite; }
.k-spinner--sm { width: 14px; height: 14px; }
.k-c-brand { color: hsl(var(--brand)); }
.k-c-amber { color: hsl(var(--amber)); }
.k-c-red { color: hsl(var(--red)); }
.k-c-blue { color: hsl(var(--blue)); }
.k-big { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; }
.k-p { margin: 0; font-size: 13px; color: hsl(var(--text-2)); }
.k-frota-icone--sm { width: 40px; height: 20px; }
.k-code--xs { font-size: 10.5px; }
.k-code--warn { background: hsl(var(--amber-tint)); color: hsl(var(--amber-ink)); }
.k-input--ok { border-color: hsl(var(--brand)); box-shadow: 0 0 0 1px hsl(var(--brand)); }
.k-btn--warn { border-color: hsl(var(--amber) / .5); background: hsl(var(--amber-tint)); color: hsl(var(--amber-ink)); }
.k-btn--warn:hover { background: hsl(var(--amber) / .25); }
.k-btn--ok { border-color: hsl(var(--brand) / .4); background: hsl(var(--success-tint)); color: hsl(var(--success-ink)); }
.k-btn--ok:hover { background: hsl(var(--brand-dim)); }
.k-pop-item--static, .k-pop-item--static:hover { cursor: default; background: transparent; color: hsl(var(--text-2)); }
.k-modal-foot--end { justify-content: flex-end; }
.k-panel--flat { box-shadow: none; }
.k-stack--lg { gap: 12px; }
.k-list-item--col { flex-direction: column; align-items: stretch; gap: 6px; }
.k-list-item--col > .k-row { width: 100%; }
.k-list-item--ok { border-left: 3px solid hsl(var(--brand)); }

/* medidor: barra + valor */
.k-meter { display: flex; align-items: center; gap: 8px; min-width: 110px; }
.k-meter .k-progress { flex: 1; margin: 0; min-width: 48px; height: 6px; }
.k-meter-val { width: 36px; flex: none; text-align: right; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.k-progress { position: relative; }
.k-progress--meta { overflow: visible; }
.k-progress--meta .k-progress-fill { border-radius: 9999px; }
.k-progress--meta::after { content: ""; position: absolute; left: 74%; top: -2px; bottom: -2px; width: 2px; border-radius: 1px; background: hsl(var(--text-2)); }
.k-progress-fill--brand { background: hsl(var(--brand)); }
.k-progress-fill--amber { background: hsl(var(--amber)); }
.k-progress-fill--red { background: hsl(var(--red)); }
.k-progress-fill--blue { background: hsl(var(--blue)); }

/* barra empilhada com marcador de meta */
.k-bar { position: relative; height: 12px; margin: 4px 0 20px; border-radius: 9999px; background: hsl(var(--surface-3)); }
.k-bar-stack { display: flex; height: 100%; overflow: hidden; border-radius: 9999px; }
.k-bar-seg { height: 100%; }
.k-bar-seg + .k-bar-seg { border-left: 2px solid hsl(var(--surface)); }
.k-bar-seg--brand { background: hsl(var(--brand)); }
.k-bar-seg--amber { background: hsl(var(--amber)); }
.k-bar-seg--blue { background: hsl(var(--blue)); }
.k-bar-seg--red { background: hsl(var(--red)); }
.k-bar-meta { position: absolute; top: -3px; bottom: -3px; width: 2px; border-radius: 1px; background: hsl(var(--text)); }
.k-bar-meta-lbl { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 3px; white-space: nowrap; font-family: var(--k-mono); font-size: 10px; color: hsl(var(--text-3)); }
.k-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: hsl(var(--text-2)); }
.k-legend-item { display: inline-flex; align-items: center; gap: 6px; }

/* leadtime horizontal */
.k-lead { position: relative; display: flex; align-items: flex-start; padding: 4px 0 2px; }
.k-lead::before { content: ""; position: absolute; left: 24px; right: 24px; top: 30px; height: 2px; background: hsl(var(--line)); }
.k-lead-pt { position: relative; z-index: 1; display: flex; flex: 1; flex-direction: column; align-items: center; gap: 4px; min-width: 0; text-align: center; }
.k-lead-time { font-family: var(--k-mono); font-size: 12px; font-weight: 600; color: hsl(var(--text)); }
.k-lead-dot { width: 12px; height: 12px; box-sizing: border-box; border-radius: 50%; background: hsl(var(--brand)); box-shadow: 0 0 0 3px hsl(var(--surface)); }
.k-lead-dot--amber { background: hsl(var(--amber)); }
.k-lead-dot--blue { background: hsl(var(--blue)); }
.k-lead-dot--red { background: hsl(var(--red)); }
.k-lead-dot--text { background: hsl(var(--text-2)); }
.k-lead-lbl { font-size: 11px; color: hsl(var(--text-3)); }
.k-lead-pt--empty .k-lead-time { font-weight: 400; color: hsl(var(--text-4)); }
.k-lead-pt--empty .k-lead-dot { background: hsl(var(--surface)); border: 2px solid hsl(var(--line-input)); }
.k-lead-pt--almoco .k-lead-dot { background: hsl(var(--amber)); }
.k-lead-pt--almoco .k-lead-time { color: hsl(var(--amber-ink)); }
.k-lead-seg { flex: .8; align-self: flex-start; margin-top: 22px; text-align: center; }
.k-lead-seg-lbl { display: inline-block; padding: 1px 6px; border: 1px solid hsl(var(--line)); border-radius: 9999px; background: hsl(var(--surface-2)); font-family: var(--k-mono); font-size: 10.5px; color: hsl(var(--text-2)); }

/* nota / observação */
.k-note { border: 1px solid hsl(var(--line)); border-left: 3px solid hsl(var(--text-4)); border-radius: 4px; background: hsl(var(--surface-2)); }
.k-note--brand { border-left-color: hsl(var(--brand)); }
.k-note--blue { border-left-color: hsl(var(--blue)); }
.k-note--red { border-left-color: hsl(var(--red)); }
.k-note-head { display: flex; align-items: center; gap: 6px; padding: 8px 12px 0; font-size: 11px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: hsl(var(--text-3)); }
.k-note-body { padding: 6px 12px 10px; font-size: 12.5px; color: hsl(var(--text-2)); white-space: pre-wrap; word-break: break-word; }

/* miniaturas de fotos */
.k-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.k-thumb { display: block; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid hsl(var(--line)); border-radius: 4px; background: hsl(var(--surface-2)); }
.k-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .15s; }
.k-thumb:hover img { transform: scale(1.04); }

/* ---------------------------------------------------------------------------
   Formulários (§11.5): grade de campos, estados de validação, autocomplete,
   chips e linhas de tabela em edição.
   --------------------------------------------------------------------------- */
.k-form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.k-form-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.k-form-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.k-span-2 { grid-column: span 2; }
.k-span-all { grid-column: 1 / -1; }
@media (max-width: 900px) {
  .k-form-grid, .k-form-grid--2, .k-form-grid--4 { grid-template-columns: 1fr; }
  .k-span-2, .k-span-all { grid-column: auto; }
}
.k-req { color: hsl(var(--red)); }
.k-input--invalid, .k-select--invalid { border-color: hsl(var(--red)) !important; box-shadow: 0 0 0 1px hsl(var(--red)); }
.k-field-error { font-size: 11.5px; color: hsl(var(--red-ink)); }
.k-form-error { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid hsl(var(--red) / .3); border-radius: 4px; background: hsl(var(--red-tint)); font-size: 12px; color: hsl(var(--red-ink)); }
.k-input--sm, .k-select--sm { height: 28px; padding: 0 8px; font-size: 12px; }
.k-input--num { width: 90px; text-align: center; font-variant-numeric: tabular-nums; }
.k-w-sm { width: 170px; }
.k-hint { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: hsl(var(--text-3)); }
.k-ac { position: relative; }
.k-ac-list { position: absolute; top: calc(100% + 2px); left: 0; right: 0; z-index: 60; max-height: 240px; overflow: auto; border: 1px solid hsl(var(--line)); border-radius: 4px; background: hsl(var(--surface)); box-shadow: var(--k-shadow-pop); }
.k-ac-item { display: flex; flex-direction: column; gap: 2px; padding: 7px 12px; border-bottom: 1px solid hsl(var(--line-2)); font-size: 12.5px; color: hsl(var(--text-2)); cursor: pointer; }
.k-ac-item:last-child { border-bottom: 0; }
.k-ac-item:hover { background: hsl(var(--surface-2)); }
.k-ac-item--row { flex-direction: row; align-items: center; gap: 10px; }
.k-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-width: 0; padding: 2px 4px 2px 8px; border-radius: 9999px; background: hsl(var(--surface-3)); font-size: 12px; color: hsl(var(--text-2)); }
.k-chip--brand { background: hsl(var(--brand-tint)); color: hsl(var(--brand-tint-ink)); }
.k-chip--blue { background: hsl(var(--blue-tint)); color: hsl(var(--blue-ink)); }
.k-chip--amber { background: hsl(var(--amber-tint)); color: hsl(var(--amber-ink)); }
.k-chip-x { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; flex: none; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
.k-chip-x:hover { background: hsl(var(--surface)); color: hsl(var(--red)); }
.k-table tr.k-row--new td { background: hsl(var(--brand-tint) / .6); }
.k-table tr.k-row--del td { background: hsl(var(--red-tint) / .6); color: hsl(var(--red-ink)); text-decoration: line-through; }
.k-table tr.k-row--del td input, .k-table tr.k-row--del td button { text-decoration: none; }
.k-table tr.k-row--custeio td { background: hsl(var(--amber-tint) / .45); }
.k-num-badge { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; flex: none; border-radius: 6px; background: hsl(var(--brand)); color: #fff; font-size: 11.5px; font-weight: 700; }
.k-list-item--lider { background: hsl(var(--amber-tint) / .5); }
.k-table-wrap--visible { overflow: visible; }
.k-ac > .k-input { width: 100%; }
.k-field > .k-input, .k-field > .k-select { width: 100%; }
/* ---------------------------------------------------------------------------
   Onda 4 (Obras): KPIs clicáveis, cabeçalho ordenável, paginação, abas de
   página, grade chave/valor, calendário, linha do tempo vertical, cartões de
   mídia, funil e barras proporcionais, modal de mapa com painel lateral.
   --------------------------------------------------------------------------- */
a.k-page-back { display: inline-block; text-decoration: none; }
.k-select--narrow { width: 90px; }
.k-kpi-value--sm { font-size: 17px; }
.k-kpi--click { cursor: pointer; }
.k-kpi--click:hover { background: hsl(var(--surface-2)); }
.k-kpi-strip--mini .k-kpi { padding: 8px 10px; }
.k-kpi-strip--mini .k-kpi-value { font-size: 18px; }
.k-wrap--tight { gap: 4px; }
.k-section-title small { font-weight: 400; letter-spacing: 0; text-transform: none; color: hsl(var(--text-4)); }
.k-center-text { text-align: center; }
.k-th--sort { cursor: pointer; user-select: none; white-space: nowrap; }
.k-th--sort:hover { color: hsl(var(--text)); }
.k-pager { display: flex; align-items: center; gap: 4px; }
.k-row--l-brand td:first-child { box-shadow: inset 3px 0 0 hsl(var(--brand)); }
.k-row--l-blue td:first-child { box-shadow: inset 3px 0 0 hsl(var(--blue)); }
.k-row--l-amber td:first-child { box-shadow: inset 3px 0 0 hsl(var(--amber)); }
.k-row--l-red td:first-child { box-shadow: inset 3px 0 0 hsl(var(--red)); }
.k-row--l-gray td:first-child { box-shadow: inset 3px 0 0 hsl(var(--text-4)); }
.k-table tr.k-row--group td { background: hsl(var(--surface-2)); font-size: 12px; font-weight: 600; color: hsl(var(--text)); }
.k-table tr.k-row--subtotal td { background: hsl(var(--surface-2)); font-weight: 600; color: hsl(var(--text)); }
.k-table tr.k-row--total td { background: hsl(var(--brand-tint)); font-weight: 700; color: hsl(var(--brand-tint-ink)); }
.k-dl--kv .k-dl-row { grid-template-columns: 1fr auto; }
.k-dl--kv .k-dl-v { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.k-dl--flush { border: 0; border-radius: 0; }
.k-dl--flush .k-dl-row { padding: 8px 16px; }
.k-toolbar--inner { border: 0; border-radius: 0; border-bottom: 1px solid hsl(var(--line)); box-shadow: none; }

/* medidor em linha (rótulo + barra + valores) */
.k-meter-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: hsl(var(--text-2)); }
.k-meter-row .k-progress { flex: 1; margin: 0; min-width: 80px; }
.k-meter-row--lg .k-progress { height: 8px; }
.k-meter-lbl { width: 70px; flex: none; color: hsl(var(--text-3)); }
.k-meter-lbl--w { width: 140px; font-weight: 600; color: hsl(var(--text)); }
.k-meter-pct { width: 36px; flex: none; text-align: right; font-size: 11px; color: hsl(var(--text-4)); }
.k-meter-status { width: 120px; flex: none; font-size: 10.5px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; }
.k-meter-vals { width: 150px; flex: none; text-align: right; font-size: 11.5px; color: hsl(var(--text-3)); font-variant-numeric: tabular-nums; }
.k-progress--lg { height: 10px; }
.k-progress-fill--gray { background: hsl(var(--text-4)); }
.k-progress-over { position: absolute; right: 0; top: 0; bottom: 0; width: 4px; background: hsl(var(--red)); }
.k-legend--center { justify-content: center; padding-top: 8px; border-top: 1px solid hsl(var(--line-2)); }
.k-sq { display: inline-block; width: 10px; height: 10px; flex: none; border-radius: 2px; }
.k-bg-brand { background: hsl(var(--brand)); }
.k-bg-amber { background: hsl(var(--amber)); }
.k-bg-red { background: hsl(var(--red)); }
.k-bg-blue { background: hsl(var(--blue)); }
.k-bg-gray { background: hsl(var(--text-4)); }
.k-flexbar { display: flex; height: 22px; overflow: hidden; border-radius: 4px; background: hsl(var(--surface-3)); }
.k-flexbar > div { display: flex; align-items: center; justify-content: center; min-width: 0; overflow: hidden; white-space: nowrap; font-size: 10.5px; font-weight: 600; color: #fff; }
.k-flexbar > div + div { border-left: 2px solid hsl(var(--surface)); }
.k-flexbar--thin { height: 6px; }

/* funil e pipeline */
.k-funnel { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.k-funnel-box { width: 100%; padding: 12px 16px; border: 1px solid hsl(var(--line)); border-radius: 4px; background: hsl(var(--surface-2)); text-align: center; }
.k-funnel-box--top { max-width: 460px; }
.k-funnel-box--on { border-color: hsl(var(--brand) / .5); background: hsl(var(--brand-tint)); }
.k-funnel-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; }
.k-funnel-num { font-size: 24px; font-weight: 700; line-height: 1.1; color: hsl(var(--text)); font-variant-numeric: tabular-nums; }
.k-funnel-num small { font-size: 13px; font-weight: 600; color: hsl(var(--text-3)); }
.k-funnel-lbl { margin-top: 2px; font-size: 11px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: hsl(var(--text-3)); }
.k-funnel-sub { margin-top: 4px; font-size: 11.5px; color: hsl(var(--text-3)); }
.k-pipe { display: flex; gap: 8px; width: 100%; }
.k-pipe-stage { min-width: 0; padding: 10px 12px; border: 1px solid hsl(var(--line)); border-top: 3px solid hsl(var(--text-4)); border-radius: 4px; background: hsl(var(--surface)); text-align: center; }
.k-pipe-stage--red { border-top-color: hsl(var(--red)); }
.k-pipe-stage--amber { border-top-color: hsl(var(--amber)); }
.k-pipe-stage--brand { border-top-color: hsl(var(--brand)); }

/* modal grande com mapa e painel lateral */
.k-modal--xl { width: 95vw; max-width: none; height: 90vh; }
.k-modal-body--flush { display: flex; padding: 0; }
.k-map-modal-map { position: relative; flex: 1; min-width: 0; background: hsl(var(--surface-3)); }
.k-map-fill { position: absolute; inset: 0; }
.k-map-loading { position: absolute; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; gap: 10px; background: hsl(var(--surface) / .9); color: hsl(var(--text-3)); }
.k-map-side { display: flex; flex-direction: column; width: 384px; flex: none; border-left: 1px solid hsl(var(--line)); background: hsl(var(--surface)); }
.k-map-side-head { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-bottom: 1px solid hsl(var(--line)); background: hsl(var(--surface-2)); font-size: 12.5px; color: hsl(var(--text-2)); }
.k-map-side-head .k-input { width: 100%; }
.k-map-side-list { display: flex; flex: 1; flex-direction: column; gap: 8px; min-height: 0; overflow: auto; padding: 12px; }
.k-map-item { padding: 10px 12px; border: 1px solid hsl(var(--line)); border-radius: 4px; cursor: pointer; }
.k-map-item:hover { background: hsl(var(--surface-2)); }
.k-map-item--on { border-color: hsl(var(--brand)); background: hsl(var(--brand-tint)); }
.k-map-item-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; font-weight: 600; color: hsl(var(--text)); }
.k-map-host { position: relative; display: flex; flex-direction: column; min-height: 0; }
.k-map--full .k-map-host { flex: 1; }
.k-map-canvas--md { height: 420px; }
.k-map-legend { position: absolute; left: 10px; bottom: 10px; z-index: 1000; display: flex; flex-direction: column; gap: 4px; padding: 8px 10px; border: 1px solid hsl(var(--line)); border-radius: 4px; background: hsl(var(--surface) / .95); box-shadow: var(--k-shadow-card); font-size: 11px; color: hsl(var(--text-2)); }
.k-map-legend b { font-size: 11px; color: hsl(var(--text)); }

/* abas de página */
.k-ptabs { display: flex; gap: 2px; overflow-x: auto; padding: 0 12px; border-bottom: 1px solid hsl(var(--line)); background: hsl(var(--surface-2)); }
.k-ptab { display: inline-flex; align-items: center; gap: 6px; margin-bottom: -1px; padding: 10px 12px; border: 0; border-bottom: 2px solid transparent; background: none; font: inherit; font-size: 13px; color: hsl(var(--text-3)); white-space: nowrap; cursor: pointer; }
.k-ptab:hover { color: hsl(var(--text)); }
.k-ptab--active { border-bottom-color: hsl(var(--brand)); font-weight: 600; color: hsl(var(--brand)); }

/* grade chave/valor */
.k-kv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px 16px; }
.k-kv { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.k-kv-k { font-size: 11px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: hsl(var(--text-3)); }
.k-kv-v { font-size: 13px; color: hsl(var(--text)); overflow-wrap: anywhere; }

/* calendário mensal */
.k-cal { display: flex; flex-direction: column; gap: 4px; }
.k-cal-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.k-cal-day { position: relative; display: flex; align-items: flex-start; justify-content: space-between; height: 40px; padding: 4px 6px; border: 1px solid hsl(var(--line)); border-radius: 4px; background: hsl(var(--surface)); font-size: 11px; color: hsl(var(--text-2)); cursor: pointer; }
.k-cal-day:hover { border-color: hsl(var(--text-4)); }
.k-cal-day--other { opacity: .4; }
.k-cal-day--indisp { background: hsl(var(--surface-3)); color: hsl(var(--text-4)); }
.k-cal-day--prog { border-color: hsl(var(--blue)); background: hsl(var(--blue-tint)); color: hsl(var(--blue-ink)); font-weight: 600; }
.k-cal-day--executado { border-color: hsl(var(--brand)); background: hsl(var(--brand-tint)); color: hsl(var(--brand-tint-ink)); }
.k-cal-day--cancelado, .k-cal-day--nao-executado { border-color: hsl(var(--red)); background: hsl(var(--red-tint)); color: hsl(var(--red-ink)); }
.k-cal-mes { min-width: 130px; text-align: center; font-size: 12.5px; font-weight: 600; text-transform: capitalize; color: hsl(var(--text)); }

/* linha do tempo vertical */
.k-vt { position: relative; display: flex; flex-direction: column; gap: 14px; margin-left: 6px; padding-left: 20px; border-left: 2px solid hsl(var(--line)); }
.k-vt-item { position: relative; }
.k-vt-dot { position: absolute; left: -27px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: hsl(var(--text-4)); box-shadow: 0 0 0 3px hsl(var(--surface)); }
.k-vt-dot--brand { background: hsl(var(--brand)); }
.k-vt-dot--blue { background: hsl(var(--blue)); }
.k-vt-dot--amber { background: hsl(var(--amber)); }
.k-vt-date { font-family: var(--k-mono); font-size: 11px; color: hsl(var(--text-3)); }
.k-vt-title { font-size: 13px; font-weight: 600; color: hsl(var(--text)); }
.k-vt-sub { font-size: 12px; color: hsl(var(--text-3)); }

/* cartões de mídia (as-built, evidências) */
.k-media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.k-media-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid hsl(var(--line)); border-radius: 4px; background: hsl(var(--surface)); }
.k-media-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: hsl(var(--surface-2)); cursor: pointer; }
.k-media-body { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; font-size: 12px; color: hsl(var(--text-2)); }
.k-media-actions { display: flex; gap: 6px; padding: 0 10px 10px; }
.k-dist { flex: none; font-family: var(--k-mono); font-size: 14px; font-weight: 700; color: hsl(var(--brand)); text-align: right; }
.k-dist small { font-size: 10px; font-weight: 400; color: hsl(var(--text-3)); }
.k-table td.k-cell-ellipsis { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------------------------------------------------------------------
   Onda 6 (Operação e sistema): mestre-detalhe, cartões de equipe, avatares,
   seleção em cartões, textarea, exibição de valor, lista com caixa, checkbox,
   permissões com interruptor, toast, grupo de input.
   --------------------------------------------------------------------------- */
.k-modal--sm { width: 460px; }
button.k-pop-item { width: 100%; border: 0; background: none; font: inherit; text-align: left; }
.k-list--box { border: 1px solid hsl(var(--line)); border-radius: 4px; }
.k-list--box .k-list-item:last-child { border-bottom: 0; }
.k-avatar-sm { overflow: hidden; }
.k-avatar-sm img, .k-avatar-lg img { display: block; width: 100%; height: 100%; object-fit: cover; }
.k-avatar-sm--blue { background: hsl(var(--blue-tint)); color: hsl(var(--blue-ink)); }
.k-avatar--off { background: hsl(var(--surface-3)); color: hsl(var(--text-4)); }
.k-avatar-lg { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; flex: none; overflow: hidden; border-radius: 9999px; background: hsl(var(--brand-tint)); color: hsl(var(--brand-tint-ink)); font-size: 20px; font-weight: 700; }
.k-avatar-xl { width: 80px; height: 80px; font-size: 28px; }
.k-card-title { font-size: 14px; font-weight: 600; color: hsl(var(--text)); }
.k-tile--sm { width: 30px; height: 30px; border-radius: 6px; }
.k-tile--amber { background: hsl(var(--amber)); }
.k-tile--blue { background: hsl(var(--blue)); }
.k-tile--red { background: hsl(var(--red)); }
.k-tile--muted { background: hsl(var(--text-4)); }

/* mestre-detalhe */
.k-md { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 12px; height: calc(100vh - 150px); min-height: 520px; }
.k-md > .k-panel { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.k-md-scroll { flex: 1; min-height: 0; overflow: auto; }
.k-md-filters { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border-bottom: 1px solid hsl(var(--line)); }
.k-md-filters .k-input, .k-md-filters .k-select { width: 100%; min-width: 0; }
.k-md-filters .k-row > .k-select { flex: 1; }
@media (max-width: 992px) { .k-md { grid-template-columns: 1fr; height: auto; } }
.k-list-item--on { background: hsl(var(--brand-tint)); box-shadow: inset 3px 0 0 hsl(var(--brand)); }
.k-list-item--on:hover { background: hsl(var(--brand-tint)); }
.k-list-item--cur { box-shadow: inset 3px 0 0 hsl(var(--amber)); }
.k-toast { position: fixed; top: 64px; right: 20px; z-index: 1100; max-width: 440px; box-shadow: var(--k-shadow-pop); }
.k-toast .k-btn { margin-left: auto; }

/* seleção em cartões */
.k-choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.k-choice { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 70px; padding: 10px 8px; border: 1px solid hsl(var(--line)); border-radius: 4px; background: hsl(var(--surface)); font-size: 12px; line-height: 1.25; text-align: center; color: hsl(var(--text-2)); cursor: pointer; }
.k-choice:hover { border-color: hsl(var(--text-4)); }
.k-choice--on { border-color: hsl(var(--brand)); background: hsl(var(--brand-tint)); color: hsl(var(--brand-tint-ink)); font-weight: 600; }

/* campos extras */
.k-textarea { display: block; width: 100%; min-height: 90px; padding: 8px 10px; border: 1px solid hsl(var(--line-input)); border-radius: 4px; background: hsl(var(--surface)); font: inherit; font-size: 13px; color: hsl(var(--text)); resize: vertical; }
.k-textarea:focus { outline: none; border-color: hsl(var(--brand)); box-shadow: 0 0 3px hsl(var(--brand)); }
.k-display { min-height: 32px; padding: 7px 10px; border-radius: 4px; background: hsl(var(--surface-2)); font-size: 13px; color: hsl(var(--text)); white-space: pre-wrap; word-break: break-word; }
.k-file-input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.k-check { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-bottom: 1px solid hsl(var(--line-2)); font-size: 12.5px; color: hsl(var(--text-2)); cursor: pointer; }
.k-check:last-child { border-bottom: 0; }
.k-check:hover { background: hsl(var(--surface-2)); }
.k-check input { accent-color: hsl(var(--brand)); }
.k-input-group { display: flex; }
.k-input-group .k-input { flex: 1; min-width: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.k-input-group .k-btn { margin-left: -1px; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.k-req-list { display: flex; flex-direction: column; gap: 3px; font-size: 11.5px; color: hsl(var(--text-3)); }
.k-req-list span { display: inline-flex; align-items: center; gap: 6px; }
.k-ptab:disabled { opacity: .5; cursor: not-allowed; }
.k-switch input:disabled + .k-switch-track { opacity: .5; cursor: not-allowed; }

/* permissões */
.k-perm-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-top: 1px solid hsl(var(--line-2)); font-size: 12.5px; }
.k-perm-item--on { background: hsl(var(--brand-tint) / .45); }
.k-perm-item--inh { opacity: .85; }
.k-perm-name { display: flex; align-items: center; gap: 6px; font-weight: 600; color: hsl(var(--text)); }
.k-perm-desc { font-size: 11.5px; color: hsl(var(--text-3)); }

/* ---------------------------------------------------------------------------
   Onda 6b (sistema): área de upload, log, número de destaque, seleção
   segmentada, cartão-link, páginas centradas (404/erro).
   --------------------------------------------------------------------------- */
.k-log { max-height: 260px; margin: 0; padding: 10px 12px; overflow: auto; border-radius: 0 0 4px 4px; background: hsl(var(--text)); color: #d6f5e3; font-family: var(--k-mono); font-size: 11.5px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.k-hero-num { font-size: 30px; font-weight: 700; line-height: 1.1; text-align: center; color: hsl(var(--text)); font-variant-numeric: tabular-nums; }
.k-hero-num small { margin-left: 4px; font-size: 13px; font-weight: 500; color: hsl(var(--text-3)); }
.k-panel--tone-brand { border-color: hsl(var(--brand)); }
.k-panel--tone-amber { border-color: hsl(var(--amber)); }
.k-panel--tone-red { border-color: hsl(var(--red)); }
.k-panel--on { border-color: hsl(var(--brand)); box-shadow: 0 0 0 1px hsl(var(--brand)); }
.k-seg-group { display: inline-flex; overflow: hidden; border: 1px solid hsl(var(--line-input)); border-radius: 4px; }
.k-seg { position: relative; padding: 5px 10px; background: hsl(var(--surface)); font-size: 12px; color: hsl(var(--text-2)); white-space: nowrap; cursor: pointer; }
.k-seg + .k-seg { border-left: 1px solid hsl(var(--line-input)); }
.k-seg input { position: absolute; width: 0; height: 0; opacity: 0; }
.k-seg--on { background: hsl(var(--brand)); color: #fff; }
.k-chip-x:disabled { opacity: .4; cursor: not-allowed; }
.k-input--xs { width: 56px; padding: 0 4px; text-align: center; }
.k-page--center { display: flex; align-items: center; justify-content: center; min-height: 60vh; }
.k-center-card { max-width: 480px; padding: 32px; text-align: center; }
.k-code-big { font-size: 56px; font-weight: 800; line-height: 1; color: hsl(var(--brand)); }

/* ---------------------------------------------------------------------------
   Onda 7 (Programar): variável de altura do shell usada pelo CSS isolado do
   Gantt/wizard, stepper, segmentos em botão, título clicável, tom roxo.
   --------------------------------------------------------------------------- */
.k-app { --header-height: 90px; }
button.k-seg { border: 0; font: inherit; }
.k-page-title--link { cursor: pointer; }
.k-page-title--link:hover { color: hsl(var(--brand)); }
.k-dot--purple { background: hsl(262 52% 55%); }
.k-pill--purple { background: hsl(262 52% 92%); color: hsl(262 45% 30%); }
.k-steps { display: flex; align-items: center; gap: 8px; }
.k-step { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: hsl(var(--text-3)); cursor: pointer; white-space: nowrap; }
.k-step-no { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; flex: none; border: 1px solid hsl(var(--line-input)); border-radius: 50%; background: hsl(var(--surface)); font-size: 11.5px; font-weight: 700; }
.k-step--active .k-step-no { border-color: hsl(var(--brand)); color: hsl(var(--brand)); }
.k-step--done .k-step-no { border-color: hsl(var(--brand)); background: hsl(var(--brand-tint)); color: hsl(var(--brand-tint-ink)); }
.k-step--current { font-weight: 600; color: hsl(var(--text)); }
.k-step--current .k-step-no { border-color: hsl(var(--brand)); background: hsl(var(--brand)); color: #fff; }
.k-step-line { width: 28px; height: 2px; flex: none; background: hsl(var(--line)); }
.k-step-line--done { background: hsl(var(--brand)); }
.k-modal--full { width: 96vw; max-width: none; height: 92vh; }
.k-map-canvas--modal { height: 500px; }
/* Faixas de KPI lado a lado dentro de uma grade ficam com a mesma altura */
.k-grid > .k-stack > .k-kpi-strip { flex: 1; }
.k-kpi-strip .k-kpi { justify-content: flex-start; }
/* ---------------------------------------------------------------------------
   Ondas 2 e 5 — MOP e Relatórios
   --------------------------------------------------------------------------- */
.k-check--inline { padding: 0; border: 0; background: none; white-space: nowrap; }
.k-check--inline:hover { background: none; }
.k-toolbar-right .k-check--inline + .k-check--inline { margin-left: 6px; }
.k-chart { position: relative; height: 240px; padding: 12px 16px; }
.k-chart--sm { height: 200px; }
.k-ptab .k-count { margin-left: 2px; }
/* linhas expansíveis / detalhe dentro da tabela */
.k-table tr.k-row--x { cursor: pointer; }
.k-table tr.k-row--x:hover td { background: hsl(var(--surface-2)); }
.k-table tr.k-row--on td { background: hsl(var(--brand-tint) / .45); }
.k-table tr.k-row--fds td { background: hsl(var(--surface-2)); }
.k-table tr.k-row--empty td { color: hsl(var(--text-4)); }
.k-table td.k-cell-detail { padding: 12px 16px 16px 40px; background: hsl(var(--surface-2)); }
.k-table td.k-cell-detail .k-table thead th { position: static; }
.k-table tr.k-row--neg td { background: hsl(var(--red-tint) / .5); }
/* tooltip de ajuda (hover) */
.k-tip { position: relative; display: inline-flex; align-items: center; margin-left: 4px; cursor: help; color: hsl(var(--text-4)); }
.k-tip-body {
  visibility: hidden; opacity: 0; position: absolute; top: calc(100% + 8px); left: 50%; z-index: 1000; width: 280px; transform: translateX(-50%);
  padding: 10px 12px; border-radius: 6px; background: hsl(var(--text)); color: hsl(var(--surface)); box-shadow: 0 4px 12px rgba(0,0,0,.3);
  font-size: 11px; font-weight: 400; line-height: 1.5; letter-spacing: 0; text-align: left; text-transform: none; white-space: normal; transition: opacity .15s;
}
.k-tip:hover .k-tip-body { visibility: visible; opacity: 1; }
.k-tip-sec + .k-tip-sec { margin-top: 8px; padding-top: 8px; border-top: 1px solid hsl(var(--surface) / .2); }
.k-tip-body b { color: hsl(var(--blue) / 1); filter: brightness(1.4); }
/* barra empilhada com rótulo dentro dos segmentos */
.k-bar--lg { height: 24px; margin: 4px 0 8px; }
.k-bar--lg .k-bar-seg { display: flex; align-items: center; justify-content: center; overflow: hidden; font-size: 10.5px; font-weight: 600; color: #fff; white-space: nowrap; }
.k-bar--sm { height: 8px; margin: 0; }
.k-meter-row .k-bar--sm { flex: 1; }

.k-bar-seg--gray { background: hsl(var(--text-4)); }
/* posição no ranking */
.k-num-badge--red { background: hsl(var(--red)); }
/* linha expansível de material (simulação de consumo) */
.k-xrow { display: flex; align-items: center; gap: 16px; padding: 10px 16px; border-bottom: 1px solid hsl(var(--line-2)); cursor: pointer; }
.k-xrow:hover { background: hsl(var(--surface-2)); }
.k-xrow--on { background: hsl(var(--brand-tint) / .4); }
.k-xrow-main { display: flex; flex: 1; align-items: center; gap: 8px; min-width: 0; font-size: 12.5px; color: hsl(var(--text-2)); }
.k-xrow-main .k-mono { font-weight: 600; color: hsl(var(--text)); }
.k-xrow-main .k-ellipsis { min-width: 0; }
.k-xrow-metrics { display: flex; flex: none; gap: 16px; }
.k-xrow-prog { display: flex; flex: none; align-items: center; gap: 8px; width: 150px; }
.k-xrow-prog .k-progress { flex: 1; margin: 0; }
.k-xrow-detail { padding: 8px 16px 14px 40px; background: hsl(var(--surface-2)); border-bottom: 1px solid hsl(var(--line-2)); }
/* calendário de consumo (materiais) */
.k-cal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px; }
.k-cal-cell { display: flex; flex-direction: column; gap: 4px; min-height: 64px; padding: 6px 8px; border: 1px solid hsl(var(--line)); border-radius: 4px; background: hsl(var(--surface)); font-size: 11px; color: hsl(var(--text-3)); cursor: pointer; }
.k-cal-cell:hover { border-color: hsl(var(--text-4)); }
.k-cal-cell-head { display: flex; align-items: baseline; justify-content: space-between; }
.k-cal-cell-num { font-size: 15px; font-weight: 600; color: hsl(var(--text)); }
.k-cal-cell--has { border-color: hsl(var(--brand)); }
.k-cal-cell--amber { border-color: hsl(var(--amber)); background: hsl(var(--amber-tint)); }
.k-cal-cell--red { border-color: hsl(var(--red)); background: hsl(var(--red-tint)); }
.k-cal-cell--on { box-shadow: 0 0 0 2px hsl(var(--brand)); }
.k-cal-cell .k-row { gap: 4px; }
/* lista de materiais do dia */
.k-mat-day { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border: 1px solid hsl(var(--line)); border-left-width: 3px; border-radius: 4px; background: hsl(var(--surface)); }
.k-mat-day--ok { border-left-color: hsl(var(--brand)); }
.k-mat-day--amber { border-left-color: hsl(var(--amber)); }
.k-mat-day--red { border-left-color: hsl(var(--red)); }
.k-mat-day-progs { display: flex; flex-direction: column; gap: 2px; padding-left: 22px; font-size: 12px; color: hsl(var(--text-2)); }
.k-mat-day-progs > div { display: flex; flex-wrap: wrap; gap: 4px 14px; }
/* ícone de equipe em tabela */
.k-tipo-ico { width: 22px; height: 22px; flex: none; object-fit: contain; }
.k-xrow-main .k-ellipsis { flex: 1; max-width: none; }
.k-tipo-ico { width: 26px; height: 26px; }
.k-table tr.k-row--empty .k-strong { color: hsl(var(--text-3)); }
.k-table tr.k-row--more td { padding: 6px 12px; text-align: center; background: hsl(var(--surface-2)); }
.k-table tr.k-row--more .k-btn + .k-btn { margin-left: 6px; }
.k-modal-title small { font-size: 13px; font-weight: 400; }

/* ---------------------------------------------------------------------------
   Diagnóstico de Capitalização (v1)
   Paleta dos segmentos da jornada como tokens HSL (mesma convenção dos demais).
   --------------------------------------------------------------------------- */
:root {
  --seg-plat: 33 99% 44%;      /* plataforma / pré-campo (amber) */
  --seg-odi: 143 100% 29%;     /* ODI (brand) */
  --seg-odd: 177 84% 28%;      /* ODD (teal #0b827c) */
  --seg-custeio: 14 85% 48%;   /* custeio (laranja queimado) */
  --seg-retorno: 262 78% 62%;  /* retorno (#9050e9) */
  --seg-pos: 262 45% 74%;      /* pós-campo (lilás) */
  --seg-sem: 207 99% 42%;      /* sem apontamento (blue) */
  --seg-naoexec: 355 96% 28%;  /* não executado (red-ink) */
}
[data-theme="dark"], .dark { --seg-pos: 262 40% 60%; --seg-naoexec: 352 80% 45%; }
.k-c-purple { color: hsl(var(--seg-retorno)); }
.k-kpi-unit { margin-left: 4px; font-size: 12px; font-weight: 500; color: hsl(var(--text-3)); }
.k-self-end { align-self: flex-end; margin-bottom: 6px; }

/* resumo executivo */
.k-hero { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: center; padding: 18px 20px; }
.k-gauge { position: relative; width: 210px; margin: 0 auto; }
.k-gauge svg { display: block; width: 100%; height: auto; overflow: visible; }
.k-gauge-track { fill: none; stroke: hsl(var(--surface-3)); stroke-width: 10; stroke-linecap: round; }
.k-gauge-fill { fill: none; stroke-width: 10; stroke-linecap: round; transition: stroke-dasharray .5s ease; }
.k-gauge-fill--brand { stroke: hsl(var(--brand)); }
.k-gauge-fill--red { stroke: hsl(var(--red)); }
.k-gauge-meta { stroke: hsl(var(--text)); stroke-width: 2; stroke-linecap: round; }
.k-gauge-meta-txt { font-family: var(--k-font); font-size: 7px; font-weight: 600; fill: hsl(var(--text-3)); }
.k-gauge-axis-txt { font-family: var(--k-font); font-size: 6.5px; fill: hsl(var(--text-4)); }
.k-gauge-center { position: absolute; left: 0; right: 0; bottom: 21%; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.k-gauge-val { font-size: 28px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.k-gauge-lbl { font-size: 10px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: hsl(var(--text-3)); }
.k-narrative { margin: 0; font-size: 13.5px; line-height: 1.65; color: hsl(var(--text-2)); }
.k-narrative strong { font-weight: 600; color: hsl(var(--text)); }
.k-narrative strong.k-c-brand { color: hsl(var(--brand)); }
.k-narrative strong.k-c-red { color: hsl(var(--red)); }
.k-jornada .k-bar-seg { min-width: 0; }
.k-kpi--tone-red { box-shadow: inset 0 3px 0 hsl(var(--red)); }
.k-kpi--tone-orange { box-shadow: inset 0 3px 0 hsl(var(--seg-custeio)); }
.k-kpi--tone-amber { box-shadow: inset 0 3px 0 hsl(var(--amber)); }
.k-kpi--tone-brand { box-shadow: inset 0 3px 0 hsl(var(--brand)); }

/* ranking de gargalos */
.k-rank-head, .k-rank-row { display: grid; grid-template-columns: 36px 210px minmax(0, 1fr) 90px 80px 200px; gap: 12px; align-items: center; padding: 10px 16px; border-bottom: 1px solid hsl(var(--line-2)); }
.k-rank-head { padding: 8px 16px; font-size: 11px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: hsl(var(--text-3)); background: hsl(var(--surface-2)); border-bottom-color: hsl(var(--line)); }
.k-rank-row--x { cursor: pointer; }
.k-rank-row--x:hover { background: hsl(var(--surface-2)); }
.k-rank-row--sub { padding: 6px 16px; background: hsl(var(--surface-2)); }
.k-rank-no { display: flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 700; color: hsl(var(--text-3)); font-variant-numeric: tabular-nums; }
.k-rank-name { font-size: 13px; font-weight: 600; color: hsl(var(--text)); }
.k-rank-name small { display: block; font-size: 11.5px; font-weight: 400; color: hsl(var(--text-3)); }
.k-rank-name--sub { padding-left: 14px; font-weight: 500; font-size: 12.5px; }
.k-rank-bar { height: 22px; overflow: hidden; border-radius: 4px; background: hsl(var(--surface-3)); }
.k-rank-fill { display: flex; align-items: center; height: 100%; min-width: 38px; padding-left: 8px; border-radius: 4px; font-size: 11px; font-weight: 600; color: #fff; white-space: nowrap; }
.k-rank-hours { font-weight: 600; color: hsl(var(--text)); font-variant-numeric: tabular-nums; }
.k-rank-sim { font-size: 12px; color: hsl(var(--text-2)); white-space: nowrap; }
.k-rank-sim strong { color: hsl(var(--brand)); }

/* dia da semana */
.k-day-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.k-day-card { position: relative; padding: 16px 12px 14px; border: 1px solid hsl(var(--line)); border-bottom-width: 3px; border-radius: 4px; background: hsl(var(--surface)); text-align: center; }
.k-day-card--best { border-bottom-color: hsl(var(--brand)); }
.k-day-card--worst { border-bottom-color: hsl(var(--red)); }
.k-day-tag { position: absolute; top: 8px; right: 8px; }
.k-day-name { font-size: 11px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: hsl(var(--text-3)); }
.k-day-val { margin: 6px 0 2px; font-size: 26px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.k-day-sub { font-size: 11.5px; color: hsl(var(--text-3)); }

/* ofensores */
.k-ofensor-no { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; flex: none; border-radius: 50%; background: hsl(var(--surface-3)); font-size: 11px; font-weight: 700; color: hsl(var(--text-3)); }
.k-ofensor-no--top { background: hsl(var(--red-tint)); color: hsl(var(--red-ink)); }
.k-list-item--static { cursor: default; }

/* dicas */
.k-dica { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border: 1px solid hsl(var(--line)); border-radius: 4px; background: hsl(var(--surface)); }
.k-dica-ico { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; flex: none; border-radius: 8px; font-size: 15px; }
.k-dica-ico--red { background: hsl(var(--red-tint)); color: hsl(var(--red-ink)); }
.k-dica-ico--amber { background: hsl(var(--amber-tint)); color: hsl(var(--amber-ink)); }
.k-dica-ico--blue { background: hsl(var(--blue-tint)); color: hsl(var(--blue-ink)); }
.k-dica-ico--brand { background: hsl(var(--brand-tint)); color: hsl(var(--brand-tint-ink)); }
.k-dica-ico--muted { background: hsl(var(--surface-3)); color: hsl(var(--text-3)); }
.k-dica h4 { margin: 0 0 4px; font-size: 13.5px; font-weight: 600; color: hsl(var(--text)); }
.k-dica p { margin: 0 0 8px; font-size: 12.5px; line-height: 1.5; color: hsl(var(--text-2)); }

/* calendário de capitalização (gantt) */
.k-gantt-wrap { max-height: 600px; overflow: auto; }
.k-gantt { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 11px; }
.k-gantt thead th { position: sticky; top: 0; z-index: 5; padding: 4px 1px; border-bottom: 1px solid hsl(var(--line)); background: hsl(var(--surface-2)); text-align: center; font-size: 10px; font-weight: 600; color: hsl(var(--text-3)); }
.k-gantt .k-gantt-nome-col { width: 190px; min-width: 190px; position: sticky; left: 0; z-index: 6; padding-left: 10px; text-align: left; text-transform: uppercase; letter-spacing: .5px; }
.k-gantt .k-gantt-media-col { width: 62px; min-width: 62px; }
.k-gantt-dnum { display: block; font-size: 10.5px; line-height: 1.1; }
.k-gantt-dsem { display: block; font-size: 8.5px; font-weight: 400; line-height: 1; color: hsl(var(--text-4)); }
/* cabeçalho: sáb/dom/feriado do calendário civil — só referência; a célula é quem diz se é folga (6x3 trabalha no sábado) */
.k-gantt thead th.gantt-header-fds { background: hsl(262 40% 97%); }
.k-gantt thead th.gantt-header-fds .k-gantt-dnum { color: hsl(262 30% 55%); }
.k-gantt tbody tr { border-bottom: 1px solid hsl(var(--line-2)); }
.k-gantt tbody tr:hover .k-gantt-nome { background: hsl(var(--surface-2)); }
.k-gantt-nome { position: sticky; left: 0; z-index: 2; padding: 4px 10px; overflow: hidden; border-right: 1px solid hsl(var(--line)); background: hsl(var(--surface)); font-size: 11.5px; font-weight: 500; color: hsl(var(--text-2)); white-space: nowrap; text-overflow: ellipsis; }
/* Só o nome encolhe: a escala permanece visível na coluna fixa. */
.k-gantt-identidade { display: flex; align-items: center; gap: 6px; min-width: 0; }
.k-gantt-nome-texto { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.k-gantt-identidade > .k-pill { flex: 0 0 auto; }
.k-gantt td.gantt-cel { padding: 5px 0; border-left: 1px solid hsl(var(--surface) / .7); text-align: center; font-size: 9.5px; font-weight: 600; color: #fff; }
.k-gantt td.gantt-cel--x { cursor: pointer; }
.k-gantt td.gantt-media { padding: 4px; border-left: 2px solid hsl(var(--line)); text-align: center; font-size: 11px; font-weight: 700; color: #fff; }
.gantt-meta { background: hsl(var(--brand)); }
.gantt-medio { background: hsl(var(--amber)); }
.gantt-baixo { background: hsl(var(--seg-custeio)); }
.gantt-zero { background: hsl(var(--red)); }
.gantt-nao-exec { background: hsl(var(--seg-naoexec)); }
.k-gantt td.gantt-sem, .k-sq.gantt-sem { background: hsl(var(--surface-3)); color: hsl(var(--text-4)); }
.k-gantt td.gantt-justificado, .k-sq.gantt-justificado { background: hsl(var(--blue-tint)); color: hsl(var(--blue-ink)); box-shadow: inset 0 0 0 1px hsl(var(--blue) / .45); }
.k-gantt td.gantt-folga, .k-sq.gantt-folga { background: hsl(262 52% 94%); color: hsl(262 45% 55%); }
[data-theme="dark"] .k-gantt td.gantt-folga, [data-theme="dark"] .k-sq.gantt-folga { background: hsl(262 30% 22%); }
/* folga do ciclo 6x3 — cor própria, senão ninguém entende a terça-feira cinza */
.k-gantt td.gantt-folga-ciclo, .k-sq.gantt-folga-ciclo { background: hsl(200 45% 92%); color: hsl(200 40% 45%); }
[data-theme="dark"] .k-gantt td.gantt-folga-ciclo, [data-theme="dark"] .k-sq.gantt-folga-ciclo { background: hsl(200 30% 22%); color: hsl(200 40% 70%); }
[data-theme="dark"] .k-gantt thead th.gantt-header-fds { background: hsl(262 20% 18%); }
.k-pill--x { cursor: pointer; }

/* simulador */
.k-scen { padding: 14px 16px; border: 1px solid; border-radius: 4px; }
.k-scen--a { border-color: hsl(var(--brand) / .35); background: hsl(var(--brand-tint)); }
.k-scen--b { border-color: hsl(var(--blue) / .35); background: hsl(var(--blue-tint)); }
[data-theme="dark"] .k-scen--a { background: hsl(var(--brand) / .12); }
[data-theme="dark"] .k-scen--b { background: hsl(var(--blue) / .12); }
.k-scen-title { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.k-scen-big { margin-bottom: 10px; text-align: center; }
.k-scen-big--pad { padding: 18px 8px; }
.k-scen-big-lbl { font-size: 10px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: hsl(var(--text-3)); }
.k-scen-big-val { font-size: 34px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.k-scen-big-sub { font-size: 11.5px; font-weight: 600; }
.k-scen-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.k-sim-card { padding: 8px; border: 1px solid hsl(var(--line)); border-radius: 4px; background: hsl(var(--surface)); text-align: center; }
.k-sim-card-val { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.k-sim-card-lbl { font-size: 10px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: hsl(var(--text-3)); }
.k-tl { display: flex; height: 26px; overflow: hidden; border-radius: 4px; background: hsl(var(--surface-3)); font-size: 10px; font-weight: 600; color: #fff; }
.k-tl > div { display: flex; align-items: center; justify-content: center; overflow: hidden; white-space: nowrap; }
.k-tl > div + div { border-left: 1px solid hsl(var(--surface) / .7); }
.k-tl-axis { display: flex; justify-content: space-between; margin-top: 2px; font-family: var(--k-mono); font-size: 9.5px; color: hsl(var(--text-4)); }
.k-scen-text { margin-top: 8px; font-size: 12px; line-height: 1.5; color: hsl(var(--text-2)); }
.k-scen-text strong { color: hsl(var(--text)); }

/* justificativa */
.k-motivos { max-height: 280px; overflow: auto; border: 1px solid hsl(var(--line)); border-radius: 4px; }
.k-motivos-cat { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-bottom: 1px solid hsl(var(--line-2)); background: hsl(var(--surface-2)); font-size: 10.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.k-motivos-cat.k-c-muted { color: hsl(var(--text-3)); }
.k-motivo { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid hsl(var(--line-2)); font-size: 13px; color: hsl(var(--text-2)); cursor: pointer; }
.k-motivo:last-child { border-bottom: 0; }
.k-motivo:hover { background: hsl(var(--surface-2)); }
.k-motivo--on { background: hsl(var(--brand-tint)); color: hsl(var(--brand-tint-ink)); font-weight: 600; }
.k-radio { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; flex: none; border: 2px solid hsl(var(--line-input)); border-radius: 50%; }
.k-motivo--on .k-radio { border-color: hsl(var(--brand)); }
.k-radio i { width: 8px; height: 8px; border-radius: 50%; background: hsl(var(--brand)); }
.k-ml-auto { margin-left: auto; }
/* gantt: as cores das células precisam vencer a regra genérica de td do tema escuro */
.k-gantt td.gantt-meta, html[data-theme="dark"] .k-gantt td.gantt-meta { background: hsl(var(--brand)); color: #fff; }
.k-gantt td.gantt-medio, html[data-theme="dark"] .k-gantt td.gantt-medio { background: hsl(var(--amber)); color: #fff; }
.k-gantt td.gantt-baixo, html[data-theme="dark"] .k-gantt td.gantt-baixo { background: hsl(var(--seg-custeio)); color: #fff; }
.k-gantt td.gantt-zero, html[data-theme="dark"] .k-gantt td.gantt-zero { background: hsl(var(--red)); color: #fff; }
.k-gantt td.gantt-nao-exec, html[data-theme="dark"] .k-gantt td.gantt-nao-exec { background: hsl(var(--seg-naoexec)); color: #fff; }
html[data-theme="dark"] .k-gantt td.gantt-sem { background: hsl(var(--surface-3)); color: hsl(var(--text-4)); }
html[data-theme="dark"] .k-gantt td.gantt-justificado { background: hsl(var(--blue) / .18); color: hsl(var(--blue-tint)); box-shadow: inset 0 0 0 1px hsl(var(--blue) / .5); }
html[data-theme="dark"] .k-gantt td.gantt-folga { background: hsl(262 30% 22%); color: hsl(262 45% 70%); }
/* app.css antigo força `table tbody td { background: var(--theme-card-bg) !important }` no tema escuro;
   as células do calendário precisam do mesmo peso para manter a cor. */
html[data-theme="dark"] .k-gantt td.gantt-meta { background: hsl(var(--brand)) !important; }
html[data-theme="dark"] .k-gantt td.gantt-medio { background: hsl(var(--amber)) !important; }
html[data-theme="dark"] .k-gantt td.gantt-baixo { background: hsl(var(--seg-custeio)) !important; }
html[data-theme="dark"] .k-gantt td.gantt-zero { background: hsl(var(--red)) !important; }
html[data-theme="dark"] .k-gantt td.gantt-nao-exec { background: hsl(var(--seg-naoexec)) !important; }
html[data-theme="dark"] .k-gantt td.gantt-sem { background: hsl(var(--surface-3)) !important; }
html[data-theme="dark"] .k-gantt td.gantt-justificado { background: hsl(var(--blue) / .18) !important; }
html[data-theme="dark"] .k-gantt td.gantt-folga { background: hsl(262 30% 22%) !important; }
html[data-theme="dark"] .k-gantt td.gantt-folga-ciclo { background: hsl(200 30% 22%) !important; }
.k-pill svg { margin-right: 3px; vertical-align: -1px; }
/* ---------------------------------------------------------------------------
   Barra de filtros com uma linha de base (§11.2)

   Empresa e Etiqueta são multi-seleção: o <select> escolhe e cada valor vira um
   chip logo abaixo dele. Com o `align-items: flex-end` da barra padrão isso
   desalinhava tudo — o chip empurrava o select do campo para cima, enquanto o
   <select> crescia até o tamanho da maior opção ("NEOENERGIA - COELBA" dá mais
   de 300px) e jogava o campo para outra linha.

   Aqui a barra alinha pelo topo: todo rótulo tem a mesma altura (16px) e todo
   controle a mesma (32px), então os controles caem todos na mesma linha de base
   e o campo que tem chip cresce só para baixo, sem mexer nos vizinhos.
   --------------------------------------------------------------------------- */
.k-toolbar--filtros { align-items: flex-start; }
.k-toolbar--filtros .k-label, .k-filtro-grupo .k-label { display: block; min-height: 16px; line-height: 16px; }

/* Campo de multi-seleção: largura de um select normal, não a da maior opção. A base é a
   largura mínima, porque o flex quebra a linha pela base e não pelo tamanho já encolhido —
   com 190px os dois campos e os botões ainda cabem lado a lado nos 566px do modal de busca
   do Programar (lá ficam com ~199px cada). Sobrando espaço, crescem até 260px. */
.k-field--multi { flex: 1 1 190px; min-width: 190px; max-width: 260px; }
.k-field--multi > .k-wrap { max-width: 100%; }

/* Botões do filtro (Padrão/Limpar) na linha de base dos controles, sem rótulo
   fantasma: 16px do rótulo + 3px do gap do .k-field. `align-self: flex-end` não
   serve porque a linha do flex fica com a altura do campo que tem chip — os
   botões desceriam junto com o chip. */
.k-field-actions { display: flex; align-items: flex-end; gap: 6px; padding-top: 19px; }

/* Grupo de filtros que anda junto: ou cabe na linha inteiro, ou quebra inteiro
   (Empresa + Etiqueta + botões; Status + o interruptor da Carteira). */
.k-filtro-grupo { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; min-width: 0; }
.k-toolbar--filtros .k-switch, .k-filtro-grupo .k-switch { min-height: 32px; margin-top: 19px; }
/* Botão solto na barra de filtros (Buscar, Limpar): a barra alinha pelo topo, e sem o rótulo o botão
   subia 19 px em relação aos campos — foi o que acontecia no Previsão do Tempo. */
.k-toolbar--filtros > .k-btn, .k-toolbar--filtros > .k-seg-group { margin-top: 19px; }

/* ---------------------------------------------------------------------------
   Previsão do tempo — mapa de radar (wm-*)
   Antes essas regras eram injetadas pelo weather-map.js com cores fixas
   (#1e293b, #64748b, gradientes radiais, raios de 6/10px): não seguiam o tema
   escuro e contrariavam a §13 da spec. Agora vivem aqui, com os tokens.
   --------------------------------------------------------------------------- */
/* Altura útil: cresce com a janela sem empurrar a tabela para fora nem criar
   uma segunda barra de rolagem dentro do painel. */
.k-map-canvas--clima { height: clamp(320px, 52vh, 560px); }
/* O mapa base é claro; no tema escuro ele ofusca radar e marcas. */
[data-theme="dark"] .wm-base, .dark .wm-base { filter: brightness(.68) saturate(.5) contrast(1.05); }
/* A máscara "sem radar" é um tile preto sobre o que está fora do alcance dos radares;
   escurecer funciona nos dois temas, então ela não precisa de regra por tema. */

/* barra de controle do radar */
.wm-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.wm-time { font-family: var(--k-mono); font-size: 11.5px; color: hsl(var(--text-2)); font-variant-numeric: tabular-nums; }
.wm-range { width: 140px; height: 4px; accent-color: hsl(var(--brand)); cursor: pointer; }
.wm-range:disabled { cursor: default; opacity: .5; }

/* marcas das programações — o tom é o risco, o mesmo dos KPIs e da coluna Risco */
.wm-pin { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 2px solid hsl(var(--surface)); border-radius: 9999px; box-shadow: var(--k-shadow-card); color: #fff; font-size: 12px; cursor: pointer; }
.wm-pin--alto { background: hsl(var(--red)); }
.wm-pin--medio { background: hsl(var(--amber)); }
.wm-pin--baixo { background: hsl(var(--brand)); }
.wm-pin--sem { background: hsl(var(--text-4)); }
/* amostra redonda da legenda, do mesmo formato da marca no mapa */
.k-sq--pin { border-radius: 9999px; }

/* Escala de intensidade do eco. As dez faixas são as cores publicadas do esquema
   "Universal Blue" do RainViewer (o /2/ na URL do tile), de 15 a 60 dBZ:
   https://www.rainviewer.com/files/rainviewer_api_colors_table.csv — ou seja, valores
   do dado, não escolhas de design, e por isso fixas. Ficam em faixas sólidas porque a
   tabela do RainViewer é discreta; um degradê inventaria tons que o mapa não desenha
   (entre o azul-escuro de 30 dBZ e o amarelo de 35 não há verde nenhum). */
.wm-escala { display: inline-flex; align-items: center; gap: 6px; }
.wm-escala-lbl { font-size: 11px; color: hsl(var(--text-3)); }
.wm-ramp { display: inline-flex; width: 96px; height: 8px; overflow: hidden; border: 1px solid hsl(var(--line)); border-radius: 2px; }
.wm-ramp i { flex: 1; }
.wm-ramp i:nth-child(1) { background: #88ddee; }  /* 15 dBZ */
.wm-ramp i:nth-child(2) { background: #00a3e0; }  /* 20 */
.wm-ramp i:nth-child(3) { background: #0077aa; }  /* 25 */
.wm-ramp i:nth-child(4) { background: #005588; }  /* 30 */
.wm-ramp i:nth-child(5) { background: #ffee00; }  /* 35 */
.wm-ramp i:nth-child(6) { background: #ffaa00; }  /* 40 */
.wm-ramp i:nth-child(7) { background: #ff4400; }  /* 45 */
.wm-ramp i:nth-child(8) { background: #c10000; }  /* 50 */
.wm-ramp i:nth-child(9) { background: #ffaaff; }  /* 55 */
.wm-ramp i:nth-child(10) { background: #ff77ff; } /* 60 */

/* balão */
.wm-pop-wrap .leaflet-popup-content-wrapper { padding: 0; border: 1px solid hsl(var(--line)); border-radius: 4px; background: hsl(var(--surface)); color: hsl(var(--text)); box-shadow: var(--k-shadow-pop); }
.wm-pop-wrap .leaflet-popup-content { margin: 0; width: auto !important; font-family: var(--k-font); }
.wm-pop-wrap .leaflet-popup-tip { background: hsl(var(--surface)); border: 1px solid hsl(var(--line)); }
.wm-pop-wrap .leaflet-popup-close-button { color: hsl(var(--text-3)) !important; }
.wm-pop { min-width: 220px; font-size: 12px; color: hsl(var(--text-2)); }
.wm-pop-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 8px 26px 8px 12px; border-bottom: 1px solid hsl(var(--line)); background: hsl(var(--surface-2)); font-size: 12.5px; font-weight: 600; color: hsl(var(--text)); }
.wm-pop-data { font-family: var(--k-mono); font-size: 11px; font-weight: 500; color: hsl(var(--text-3)); }
.wm-pop-clima { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.wm-pop-icone { font-size: 22px; color: hsl(var(--text-3)); }
.wm-pop-temp { font-size: 15px; font-weight: 600; color: hsl(var(--text)); font-variant-numeric: tabular-nums; }
.wm-pop-cond { padding: 0 12px 8px; font-weight: 500; color: hsl(var(--text-2)); }
.wm-pop-clima .wm-pop-cond { padding: 0; }
.wm-pop-det { font-size: 11px; color: hsl(var(--text-3)); }
.wm-pop-risco { padding: 0 12px 10px; font-size: 11px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; }
.wm-pop-risco--alto { color: hsl(var(--red)); }
.wm-pop-risco--medio { color: hsl(var(--amber)); }
.wm-pop-risco--baixo { color: hsl(var(--brand)); }
.wm-pop-risco--sem { color: hsl(var(--text-3)); }
.wm-pop-dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; margin: 0; padding: 8px 12px; border-top: 1px solid hsl(var(--line-2)); font-size: 11.5px; }
.wm-pop-dl dt { color: hsl(var(--text-3)); }
.wm-pop-dl dd { margin: 0; overflow: hidden; text-overflow: ellipsis; color: hsl(var(--text)); }

/* Controles do Leaflet no tema do app, escopados a este mapa: o weather-map.js
   injetava as mesmas regras sem escopo e elas ficavam valendo para os mapas das
   outras telas depois de uma visita a esta. */
#mapaClima .leaflet-control-zoom a { border: 1px solid hsl(var(--line)); background: hsl(var(--surface)); color: hsl(var(--text-2)); }
#mapaClima .leaflet-control-zoom a:hover { background: hsl(var(--surface-3)); color: hsl(var(--brand)); }
#mapaClima .leaflet-control-attribution { background: hsl(var(--surface) / .85); color: hsl(var(--text-3)); font-size: 10px; }
#mapaClima .leaflet-control-attribution a { color: hsl(var(--text-2)); }

/* ===== bases: modal de municípios (UX-BASES) ===== */

/* ===== tempo real: mapa protagonista (UX-HOME) ===== */
/* O mapa passou a ocupar a largura toda logo abaixo dos filtros, com a faixa de
   KPIs e os controles de atualização dentro do próprio cartão. As duas listas do
   dia ficam abaixo: abas até 1439px, lado a lado a partir daí. */

/* Mapa herói: alto o bastante para valer como protagonista, mas limitado para o
   resto da tela continuar alcançável no 1366x768. Em tela cheia a regra
   .k-map--full .k-map-canvas (mais específica) continua vencendo. */
.k-map-canvas--hero { height: clamp(420px, 62vh, 760px); }
.k-map--hero .k-map-host { min-height: 0; }

/* Faixa de KPIs embutida no topo do cartão do mapa: sem borda/sombra próprias,
   só a linha que a separa do cabeçalho. */
.k-kpi-strip--embutida { border: 0; border-bottom: 1px solid hsl(var(--line)); border-radius: 4px 4px 0 0; box-shadow: none; }
.k-kpi-strip--embutida .k-kpi-caption { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* KPI que leva a uma lista: continua sendo texto, só ganha alvo de clique. */
.k-kpi-strip button.k-kpi { border: 0; background: none; font: inherit; color: inherit; text-align: left; }
/* ...e por isso o hover do .k-kpi--click precisa vir depois, com a mesma especificidade:
   sem esta regra o KPI clicável não dá nenhum retorno ao passar o mouse. */
.k-kpi-strip button.k-kpi--click:hover { background: hsl(var(--surface-2)); }

/* Cabeçalho da página numa linha só nesta tela: tile menor, tudo na mesma linha e as ações de
   atualização à direita. São 21 px a menos que o cabeçalho padrão — e, com o cartão do mapa
   sem cabeçalho próprio, o mapa inteiro passa a caber acima da dobra no 1366x768. */
.k-page-header--compacta { padding: 7px 16px; }
.k-page-header--compacta .k-page-header-left { flex-wrap: wrap; gap: 4px 10px; }
.k-page-header--compacta .k-page-label { line-height: 1.2; }

/* Controles por cima do mapa (legenda + tela cheia), no canto superior direito. A legenda vira
   estática aqui dentro: quem posiciona é a faixa. */
.k-map-controles { position: absolute; top: 10px; right: 10px; z-index: 1000; display: flex; align-items: center; gap: 8px; }
.k-map-controles .k-map-legend { position: static; }
.k-map-controles .k-btn { background: hsl(var(--surface) / .95); }

/* Legenda no canto do mapa — discreta, não é um cartão. */
/* Canto superior direito: no 1366x768 a base do mapa fica abaixo da dobra, e a
   legenda precisa aparecer sem rolar. O zoom fica à esquerda; a atribuição, embaixo. */
.k-map-legend--linha { top: 10px; right: 10px; bottom: auto; left: auto; flex-direction: row; align-items: center; gap: 4px 14px; padding: 5px 10px; border-color: hsl(var(--line-2)); box-shadow: none; }

/* Botão "Ver detalhes" no popup do marcador. */
.popup-detalhes {
  width: 100%; margin-top: 8px; padding: 5px 10px; border: 1px solid hsl(var(--line-input)); border-radius: 4px; background: hsl(var(--surface));
  font: inherit; font-size: 12px; font-weight: 600; color: hsl(var(--brand)); cursor: pointer;
}
.popup-detalhes:hover { background: hsl(var(--surface-3)); }

/* ===== automação: parâmetros (UX-PARAMETROS) ===== */
/* A aba "Parâmetros e consultas" era duas colunas altas de formulário. Estas regras dão as
   linhas compactas do recorte e do de-para, a faixa de resumo da execução e o cartão de cada
   consulta SQL. Só arranjo: nenhum comportamento depende delas. */
.k-parm-campos { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 12px 20px; align-items: start; }
.k-parm-status { gap: 6px 16px; }
.k-parm-add { width: 240px; }
.k-parm-utep { width: 150px; }

/* blocos de lista (recorte, de-para) */
.k-parm-bloco { display: flex; flex-direction: column; gap: 6px; }
.k-parm-titulo { font-size: 12px; font-weight: 600; color: hsl(var(--text-2)); }
.k-parm-lista { display: flex; flex-direction: column; border: 1px solid hsl(var(--line)); border-radius: 4px; }
.k-parm-linha { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 5px 10px; border-top: 1px solid hsl(var(--line-2)); font-size: 12.5px; color: hsl(var(--text-2)); }
.k-parm-linha:first-child { border-top: 0; }
.k-parm-num { flex: none; width: 18px; font-size: 11px; font-variant-numeric: tabular-nums; color: hsl(var(--text-3)); }
.k-parm-criterios { display: flex; flex: 1; flex-wrap: wrap; align-items: center; gap: 4px 14px; min-width: 0; }
.k-parm-criterio { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.k-parm-campo { font-size: 11px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: hsl(var(--text-3)); }
.k-parm-linha .k-chip--plano { padding: 2px 8px; }
.k-parm-depara { display: inline-flex; align-items: center; gap: 8px; color: hsl(var(--text)); }

/* faixa de resumo da execução: linhas de texto, não tabela */
.k-parm-resumo { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; color: hsl(var(--text-2)); }
.k-parm-resumo b { font-weight: 600; font-variant-numeric: tabular-nums; color: hsl(var(--text)); }

/* um cartão por consulta */
.k-parm-sql { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border: 1px solid hsl(var(--line)); border-radius: 4px; background: hsl(var(--surface-2)); }
.k-parm-sql-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }

/* larguras dos campos das tabelas que continuam editáveis na linha */
.k-parm-termos { min-width: 200px; }
.k-parm-excecoes { min-width: 140px; }
.k-parm-resultado { min-width: 120px; }

@media (max-width: 1100px) {
  .k-parm-campos { grid-template-columns: minmax(0, 1fr); }
}

/* ===== serviços e US (US-EDITOR) ===== */

/* Valor só de leitura dentro de um k-field (a descrição do SAP no modal de /servicos): a
   altura de linha de um k-input, sem a moldura. Um input desabilitado alinharia igual, mas
   convidaria ao clique num texto que ninguém edita por ali. */
.k-servico-valor { display: flex; align-items: center; min-height: 32px; font-size: 13px; color: hsl(var(--text-2)); }

/* Rodapé do modal com uma ação à esquerda ("Voltar ao valor da planilha", que carrega o
   número de minutos no rótulo): em tela estreita ele quebra para cima em vez de espremer
   Cancelar e Salvar. */
.k-servico-foot { flex-wrap: wrap; row-gap: 8px; }

/* Pill "Editado à mão" ao lado do nome na lista: ela substituiu a coluna "Origem", que era um
   traço em 514 das 515 linhas. Só o respiro entre o nome e a pill. */
.k-servico-pill { margin-left: 8px; }

/* ===== tempo real: frota por tipo sob os KPIs (UX-HOME-2) ===== */

/* ---------------------------------------------------------------------------
   Desligamentos e PES (/desligamentos) — acompanhamento ao vivo
   --------------------------------------------------------------------------- */
/* Marcador de SI estourada no mapa: ponto vermelho com halo pulsante (Leaflet cria o elemento fora
   do escopo do componente, por isso a classe é global). */
.k-pin-halo { position: relative; width: 14px; height: 14px; border-radius: 50%; background: hsl(var(--red)); border: 2px solid #fff; box-shadow: 0 0 0 1px hsl(var(--red)); }
.k-pin-halo::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 2px solid hsl(var(--red)); animation: k-pin-pulse 1.2s ease-out infinite; }
@keyframes k-pin-pulse { 0% { transform: scale(.55); opacity: 1; } 100% { transform: scale(1.7); opacity: 0; } }

/* Cards das SIs em atendimento: cronômetro grande, barra da janela prevista, local e empresa. */
.k-desl-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 10px; padding: 12px 16px 16px; }
.k-desl-card { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border: 1px solid hsl(var(--line)); border-radius: 4px; background: hsl(var(--surface)); cursor: pointer; text-align: left; font: inherit; color: inherit; }
.k-desl-card:hover { background: hsl(var(--surface-2)); }
.k-desl-card--estourou { border-color: hsl(var(--red)); }
.k-desl-card-top { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 12px; color: hsl(var(--text-2)); }
.k-desl-card-top .k-code { font-size: 13px; }
.k-desl-crono { display: flex; align-items: baseline; gap: 8px; }
.k-desl-crono-label { font-size: 10px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; }
.k-desl-crono-valor { font-size: 22px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.k-desl-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; color: hsl(var(--text-3)); font-variant-numeric: tabular-nums; }
.k-desl-foot { display: flex; justify-content: space-between; gap: 8px; min-width: 0; padding-top: 6px; border-top: 1px solid hsl(var(--line-2)); font-size: 11px; color: hsl(var(--text-2)); }
.k-desl-foot span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.k-c-amber { color: hsl(var(--amber)); }
.k-c-muted { color: hsl(var(--text-3)); }

/* Painel por cima do mapa (canto direito, abaixo da legenda) com as SIs estouradas e em atendimento. */
.k-map-painel { position: absolute; top: 52px; right: 10px; z-index: 1000; display: flex; flex-direction: column; width: 280px; max-height: calc(100% - 62px); overflow: hidden; border: 1px solid hsl(var(--line)); border-radius: 4px; background: hsl(var(--surface)); box-shadow: var(--k-shadow-modal); }
.k-map-painel-head { padding: 8px 12px; border-bottom: 1px solid hsl(var(--line)); font-size: 10px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: hsl(var(--text-3)); }
.k-map-painel-head b { display: block; font-size: 13px; letter-spacing: 0; text-transform: none; }
.k-map-painel-lista { overflow: auto; }
.k-map-painel-item { display: flex; gap: 8px; width: 100%; padding: 8px 12px; border: 0; border-bottom: 1px solid hsl(var(--line-2)); background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.k-map-painel-item:hover { background: hsl(var(--surface-2)); }
.k-map-painel-item--on { background: hsl(var(--brand-tint)); }
.k-map-painel-item .k-dot { margin-top: 4px; }
.k-map-painel-item > div { min-width: 0; flex: 1; }
.k-map-painel-item .k-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
