/* Funil de execução de obras da Volt (/volt/obras).
   Base visual: modelo "Funil_Execucao_Obra.html" do Pedro (29/10/2026).
   Acréscimos: login da Volt, filtro de cidades, tabela, funil por local,
   confirmação dupla da remoção, obras removidas e estados de carregamento;
   em 30/10/2026, ficha mais larga com anexos e subgrupos, linha do tempo à
   direita e a tela "Campos da ficha"; em 06/11/2026, três etapas (a
   quantidade vem de --phase-count, definida pelo JS), ficha em grade, edição
   no tamanho do conteúdo, mover etapa na ficha, dados do Sunhub só consulta
   e a janela do layout da planilha do Excel. */

:root {
  --navy-950: #0c1c43;
  --navy-900: #12265a;
  --navy-800: #1d356f;
  --navy-700: #2a4380;
  --orange-600: #ef5e1b;
  --orange-500: #f4712c;
  --orange-100: #fff0e8;
  --volt-amber: #f9a825;
  --ink: #17213a;
  --muted: #66718a;
  --line: #dfe4ed;
  --surface: #ffffff;
  --canvas: #f1f3f8;
  --green: #10a66a;
  --red: #d9483b;
  --shadow: 0 18px 60px rgba(21, 36, 75, 0.18);
  --small-shadow: 0 6px 18px rgba(24, 38, 75, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--canvas); overflow-x: hidden; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid rgba(244, 113, 44, 0.32);
  outline-offset: 2px;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- shell */
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 220px minmax(0, 1fr); transition: grid-template-columns .2s ease; }
.app-shell.collapsed { grid-template-columns: 76px minmax(0, 1fr); }
.sidebar {
  position: sticky; top: 0; height: 100vh; z-index: 10;
  display: flex; flex-direction: column; color: #fff;
  background: linear-gradient(180deg, #263b79 0%, #1e326d 100%);
  box-shadow: 6px 0 22px rgba(17, 34, 78, 0.13);
}
.brand { min-height: 132px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px; padding: 18px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand-logo { width: 150px; max-width: 100%; height: auto; display: block; }
.brand-symbol { display: none; width: 40px; height: 40px; }
.brand-caption { color: var(--orange-500); font-weight: 900; letter-spacing: 2.2px; font-size: 8px; }
.side-nav { flex: 1; overflow: auto; padding: 14px 10px; scrollbar-width: thin; }
.nav-item {
  width: 100%; height: 44px; display: flex; align-items: center; gap: 12px; padding: 0 12px;
  border: 0; border-radius: 8px; background: transparent; color: inherit; text-decoration: none;
  font-size: 13px; text-align: left; margin: 2px 0;
}
.nav-item > span { font-size: 18px; color: #d7def5; width: 20px; text-align: center; flex: 0 0 auto; }
.nav-item b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-item i { margin-left: auto; font-style: normal; min-width: 23px; height: 23px; padding: 0 5px; border: 1px solid rgba(255,255,255,.4); border-radius: 6px; display: grid; place-items: center; font-size: 11px; }
.nav-item:hover { background: rgba(255,255,255,.07); }
.nav-item.active { background: rgba(255,255,255,.12); box-shadow: inset 3px 0 0 var(--orange-500); font-weight: 800; }
.side-footer { padding: 12px 10px; border-top: 1px solid rgba(255,255,255,.1); display: grid; gap: 4px; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 6px 8px 10px; min-width: 0; }
.side-user > span:last-child { min-width: 0; display: grid; }
.side-user b { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user small { font-size: 10px; color: #c3cceb; }
.side-avatar { width: 32px; height: 32px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; background: var(--orange-500); color: #fff; font-size: 12px; font-weight: 900; }
.side-link { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: #e6ebfa; text-decoration: none; font-size: 12px; text-align: left; }
.side-link span { width: 20px; text-align: center; }
.side-link b { font-weight: 600; }
.side-link:hover { background: rgba(255,255,255,.08); }
.collapse-button { margin: 10px; height: 42px; color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.25); border-radius: 8px; text-align: left; padding: 0 16px; }
.app-shell.collapsed .brand-logo, .app-shell.collapsed .brand-caption, .app-shell.collapsed .nav-item b,
.app-shell.collapsed .nav-item i, .app-shell.collapsed .side-user > span:last-child, .app-shell.collapsed .side-link b,
.app-shell.collapsed .collapse-button span { display: none; }
.app-shell.collapsed .brand-symbol { display: block; }
.app-shell.collapsed .nav-item, .app-shell.collapsed .side-link { justify-content: center; padding: 0; }
.app-shell.collapsed .side-user { justify-content: center; padding: 6px 0; }
.app-shell.collapsed .collapse-button { text-align: center; padding: 0; }

.preview-bar { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; padding: 9px 16px; background: #fff4d6; color: #5c4300; border-bottom: 1px solid #f2d27c; font-size: 12px; }
.preview-bar button { border: 1px solid #c99a1c; border-radius: 7px; background: #fff; color: #5c4300; padding: 6px 10px; font-weight: 700; font-size: 12px; }

/* -------------------------------------------------------------- topbar */
.workspace { min-width: 0; padding: 0 26px 28px; }
.topbar { min-height: 128px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 4px solid var(--orange-500); }
.eyebrow { color: var(--orange-600); font-size: 11px; font-weight: 900; letter-spacing: 1.5px; }
.topbar h1 { margin: 6px 0 4px; color: var(--navy-950); font-size: clamp(24px, 2vw, 34px); letter-spacing: -.7px; }
.topbar p { margin: 0; color: var(--muted); font-size: 13px; }
.header-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

.button { min-height: 44px; border-radius: 9px; padding: 0 18px; border: 1px solid transparent; font-weight: 800; font-size: 13px; transition: .18s ease; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; }
.button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: var(--small-shadow); }
.button:disabled { opacity: .45; cursor: not-allowed; }
.button-primary { background: var(--navy-950); color: #fff; }
.button-primary:hover:not(:disabled) { background: var(--navy-800); }
.button-ghost { background: #fff; color: var(--navy-900); border-color: var(--line); }
.button-orange { min-height: 38px; background: var(--orange-500); color: #fff; font-size: 12px; }
.button-orange:hover:not(:disabled) { background: var(--orange-600); }
.button-danger { background: var(--red); color: #fff; }
.button-danger:hover:not(:disabled) { background: #bf3529; }
.button.is-busy { pointer-events: none; opacity: .7; }
.link-button { border: 0; background: transparent; color: var(--orange-600); font-weight: 800; font-size: 11px; padding: 4px 2px; }
.link-button:hover:not(:disabled) { text-decoration: underline; }
.link-button:disabled { opacity: .45; cursor: default; }
/* "Exportar Excel" + engrenagem do layout, colados como um botão só. */
.split-button { display: inline-flex; }
.split-button > .button:first-child { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.split-button > .split-gear { padding: 0 13px; border-left: 0; border-top-left-radius: 0; border-bottom-left-radius: 0; font-size: 15px; }

/* ------------------------------------------------------------- resumo */
.summary-strip { display: grid; grid-template-columns: minmax(250px, 1.25fr) 3fr; gap: 12px; margin-bottom: 16px; }
.summary-card { min-height: 102px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--small-shadow); }
.summary-total { display: flex; align-items: center; gap: 16px; padding: 18px; background: linear-gradient(135deg, var(--navy-950), var(--navy-700)); color: #fff; border: none; }
.summary-icon { width: 48px; height: 48px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 14px; background: rgba(255,255,255,.1); color: var(--orange-500); font-size: 25px; }
.summary-card small { display: block; font-size: 9px; letter-spacing: 1.2px; font-weight: 900; opacity: .75; text-transform: uppercase; }
.summary-card strong { display: block; margin-top: 3px; font-size: 25px; letter-spacing: -.6px; }
.summary-card p { margin: 3px 0 0; font-size: 11px; opacity: .72; }
.summary-phases { display: grid; grid-template-columns: repeat(var(--phase-count, 3), minmax(135px, 1fr)); gap: 12px; }
.phase-stat { padding: 17px 16px; position: relative; overflow: hidden; }
.phase-stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--phase-color); }
.phase-stat strong { font-size: 21px; }
.phase-stat p { color: var(--muted); }

/* ------------------------------------------------------------- quadro */
.board-panel { background: #e8ebf2; border: 1px solid #d8dde8; border-radius: 16px; overflow: hidden; min-height: 560px; box-shadow: 0 10px 34px rgba(31,45,82,.08); }
.board-toolbar { min-height: 68px; background: #fff; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: auto minmax(200px, 360px) auto 1fr; align-items: center; gap: 14px; padding: 12px 16px; }
.view-tabs { display: inline-flex; padding: 4px; background: #eef1f6; border-radius: 9px; }
.view-tabs button { height: 32px; padding: 0 15px; border: none; border-radius: 7px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 800; }
.view-tabs button.active { color: #fff; background: var(--navy-950); box-shadow: 0 3px 8px rgba(12,28,67,.22); }
.board-search, .project-search { display: flex; align-items: center; height: 42px; background: #f7f8fb; border: 1px solid var(--line); border-radius: 9px; padding: 0 12px; gap: 8px; color: var(--muted); }
.board-search input, .project-search input { width: 100%; border: 0; background: transparent; outline: 0; color: var(--ink); font-size: 13px; }
.sync-status { justify-self: end; display: flex; align-items: center; color: var(--muted); font-size: 10px; text-align: right; }
.sync-status span { display: inline-block; flex: 0 0 auto; width: 7px; height: 7px; margin-right: 6px; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 4px rgba(16,166,106,.1); }
.sync-status.stale span { background: #e6a23c; box-shadow: 0 0 0 4px rgba(230,162,60,.14); }

/* Filtro de cidades */
.city-filter { position: relative; }
.city-filter-button { height: 42px; display: inline-flex; align-items: center; gap: 8px; max-width: 280px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--navy-900); font-size: 12px; }
.city-filter-button b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 800; }
.city-filter-button i { font-style: normal; color: var(--muted); font-size: 10px; }
.city-filter-button.has-selection { border-color: var(--orange-500); background: var(--orange-100); }
.city-popover { position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; width: min(360px, 88vw); padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.popover-search { margin-bottom: 8px; background: #fff; }
.city-check-list { max-height: 300px; overflow: auto; margin: 0 -4px; padding: 0 4px; }
.city-check { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; cursor: pointer; }
.city-check:hover { background: #f6f7fb; }
.city-check input { accent-color: var(--orange-600); width: 16px; height: 16px; }
.city-check strong { display: block; font-size: 12px; color: var(--navy-950); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.city-check small { display: block; font-size: 10px; color: var(--muted); }
.city-check em { font-style: normal; font-size: 10px; font-weight: 800; color: var(--navy-700); background: #eef2fb; padding: 3px 7px; border-radius: 999px; }
.popover-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px solid #eef0f5; }
.uf-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.uf-chip { min-width: 34px; height: 26px; padding: 0 8px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: #536078; font-size: 10px; font-weight: 800; }
.uf-chip.active { border-color: var(--orange-500); background: var(--orange-500); color: #fff; }
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 16px; background: #fbfbfd; border-bottom: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.filter-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 6px 0 10px; border-radius: 999px; background: var(--orange-100); border: 1px solid #f6c3a6; color: var(--navy-900); font-size: 11px; font-weight: 700; }
.filter-chip button { width: 20px; height: 20px; border: 0; border-radius: 50%; background: rgba(239,94,27,.14); color: var(--orange-600); font-size: 13px; line-height: 1; }

/* Funil (kanban) */
.phase-ribbon { display: grid; grid-template-columns: repeat(var(--phase-count, 3), minmax(290px, 1fr)); min-width: calc(var(--phase-count, 3) * 290px); height: 36px; background: var(--orange-600); color: #fff; font-size: 9px; font-weight: 900; text-align: center; letter-spacing: .3px; }
.phase-ribbon span { position: relative; display: flex; align-items: center; justify-content: center; border-right: 1px solid rgba(255,255,255,.22); }
.phase-ribbon span:not(:last-child)::after { content: ""; position: absolute; right: -10px; z-index: 1; width: 18px; height: 18px; border-top: 1px solid rgba(255,255,255,.27); border-right: 1px solid rgba(255,255,255,.27); background: var(--orange-600); transform: rotate(45deg); }
.kanban-wrap { overflow-x: auto; }
.kanban { min-width: calc(var(--phase-count, 3) * 290px); min-height: 600px; display: grid; grid-template-columns: repeat(var(--phase-count, 3), minmax(290px, 1fr)); }
.kanban-column { min-width: 0; border-right: 1px solid #d7dce5; background: rgba(255,255,255,.24); transition: background .15s; }
.kanban-column:last-child { border-right: 0; }
.kanban-column.drag-over { background: rgba(244,113,44,.11); }
.column-header { position: sticky; top: 0; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; min-height: 74px; padding: 15px 14px 12px; background: rgba(250,251,253,.95); border-bottom: 1px solid #dce1ea; backdrop-filter: blur(8px); }
.column-header h2 { margin: 0; font-size: 13px; color: var(--navy-950); text-transform: uppercase; }
.column-header p { margin: 5px 0 0; font-size: 11px; color: var(--muted); }
.column-count { min-width: 28px; height: 28px; display: grid; place-items: center; border-radius: 999px; background: var(--navy-950); color: #fff; font-size: 11px; font-weight: 900; }
.card-list { min-height: 500px; padding: 12px; }
.work-card { position: relative; background: #fff; border: 1px solid #dfe3ea; border-left: 4px solid var(--card-accent); border-radius: 11px; box-shadow: 0 3px 9px rgba(22,35,67,.08); margin-bottom: 11px; padding: 13px; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, opacity .15s; }
.work-card[draggable="true"] { cursor: grab; }
.work-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(22,35,67,.13); }
.work-card.dragging { opacity: .42; transform: rotate(1deg) scale(.98); }
.work-card.is-moving { opacity: .55; pointer-events: none; }
.card-top { display: flex; align-items: flex-start; gap: 8px; }
.card-number { flex: 0 0 auto; min-width: 23px; height: 23px; padding: 0 5px; border-radius: 6px; display: grid; place-items: center; background: var(--orange-100); color: var(--orange-600); font-size: 11px; font-weight: 900; }
.card-title { margin: 0; color: var(--navy-950); font-size: 12px; line-height: 1.35; text-transform: uppercase; flex: 1; overflow-wrap: anywhere; }
.card-delete { flex: 0 0 auto; border: 0; color: #8a94a9; background: transparent; width: 25px; height: 25px; border-radius: 6px; font-size: 16px; }
.card-delete:hover { color: var(--red); background: #fff0ef; }
.card-city { margin: 8px 0 10px; color: #7c869a; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .25px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.stage-tag { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; background: #eef2fb; color: var(--navy-700); padding: 4px 8px; font-size: 9px; font-weight: 800; max-width: 100%; }
.stage-tag::before { content: ""; flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 10px; }
.metric { background: #f7f8fb; border-radius: 7px; padding: 7px 8px; }
.metric span { display: block; min-height: 22px; color: #7b8496; font-size: 9px; line-height: 1.25; }
.metric strong { display: block; color: var(--navy-950); font-size: 13px; }
.card-footer { display: flex; align-items: center; gap: 7px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #edf0f5; }
.card-footer label { font-size: 9px; color: var(--muted); }
.card-footer select { min-width: 0; flex: 1; height: 28px; padding: 0 5px; border: 1px solid var(--line); border-radius: 6px; color: var(--navy-900); background: #fff; font-size: 9px; font-weight: 700; }
.card-footer .card-spacer { flex: 1; }
.open-detail { border: 0; background: transparent; color: var(--orange-600); font-size: 10px; font-weight: 900; padding: 4px; white-space: nowrap; }
.column-empty { border: 1px dashed #bac3d4; border-radius: 10px; color: #8a94a8; padding: 24px 18px; text-align: center; font-size: 11px; }

/* Funil por local */
.city-lanes { padding: 14px; display: grid; gap: 12px; }
.city-lane { background: #fff; border: 1px solid #dde2eb; border-radius: 12px; overflow: hidden; }
.city-lane-header { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 14px; border: 0; background: #fbfbfd; text-align: left; }
.city-lane-header .lane-pin { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: var(--orange-100); color: var(--orange-600); font-size: 16px; }
.city-lane-header h3 { margin: 0; font-size: 14px; color: var(--navy-950); }
.city-lane-header p { margin: 2px 0 0; font-size: 11px; color: var(--muted); }
.lane-meters { display: flex; gap: 6px; align-items: center; }
.lane-meter { display: grid; justify-items: center; min-width: 44px; padding: 4px 6px; border-radius: 8px; background: #f3f5f9; font-size: 9px; color: var(--muted); }
.lane-meter b { font-size: 13px; color: var(--navy-950); }
.lane-meter::before { content: ""; width: 18px; height: 3px; border-radius: 3px; background: var(--phase-color); margin-bottom: 3px; }
.lane-toggle { margin-left: 4px; color: var(--muted); font-size: 12px; transition: transform .15s; }
.city-lane.collapsed .lane-toggle { transform: rotate(-90deg); }
.city-lane.collapsed .lane-body { display: none; }
.lane-body { overflow-x: auto; border-top: 1px solid #edf0f5; }
.lane-grid { min-width: calc(var(--phase-count, 3) * 245px); display: grid; grid-template-columns: repeat(var(--phase-count, 3), minmax(240px, 1fr)); }
.lane-col { padding: 10px; border-right: 1px solid #eef0f5; min-height: 90px; background: #fafbfd; }
.lane-col:last-child { border-right: 0; }
.lane-col h4 { margin: 0 0 8px; font-size: 9px; color: var(--navy-700); letter-spacing: .4px; display: flex; justify-content: space-between; }
.lane-col h4::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--phase-color); margin-right: 6px; align-self: center; }
.lane-col h4 span { flex: 1; }
.mini-card { width: 100%; display: block; text-align: left; margin-bottom: 7px; padding: 9px 10px; border: 1px solid #e1e5ec; border-left: 3px solid var(--card-accent); border-radius: 8px; background: #fff; }
.mini-card:hover { box-shadow: 0 6px 14px rgba(22,35,67,.1); }
.mini-card strong { display: block; font-size: 11px; color: var(--navy-950); text-transform: uppercase; line-height: 1.3; }
.mini-card span { display: block; margin-top: 4px; font-size: 10px; color: var(--muted); }
.lane-empty { font-size: 10px; color: #a0a8b8; padding: 6px 2px; }

/* Tabela */
.table-wrap { overflow: auto; background: #fff; }
.works-table { width: 100%; border-collapse: collapse; font-size: 12px; min-width: 980px; }
.works-table th { position: sticky; top: 0; z-index: 1; background: #f7f8fb; color: #536078; font-size: 10px; text-transform: uppercase; letter-spacing: .4px; text-align: left; padding: 0; border-bottom: 1px solid var(--line); }
.works-table th button { width: 100%; display: flex; align-items: center; gap: 4px; padding: 12px; border: 0; background: transparent; color: inherit; font: inherit; font-weight: 800; text-transform: inherit; letter-spacing: inherit; text-align: left; }
.works-table th button[aria-sort="ascending"]::after { content: "▲"; font-size: 8px; color: var(--orange-600); }
.works-table th button[aria-sort="descending"]::after { content: "▼"; font-size: 8px; color: var(--orange-600); }
.works-table td { padding: 11px 12px; border-bottom: 1px solid #eef0f5; color: #34405a; vertical-align: middle; }
.works-table tbody tr { cursor: pointer; }
.works-table tbody tr:hover { background: #fffaf7; }
.works-table td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.works-table .t-name { font-weight: 800; color: var(--navy-950); text-transform: uppercase; }
.phase-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; background: #f2f4f8; color: var(--navy-900); font-size: 10px; font-weight: 800; white-space: nowrap; }
.phase-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--phase-color); }
.table-actions { display: flex; gap: 6px; justify-content: flex-end; }
.table-actions button { border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--navy-900); padding: 5px 8px; font-size: 10px; font-weight: 700; }
.works-table tfoot td { font-weight: 900; color: var(--navy-950); background: #fbfbfd; }

.board-loading, .board-error { display: grid; place-items: center; align-content: center; gap: 12px; min-height: 420px; color: var(--muted); font-size: 12px; text-align: center; padding: 30px; }
.board-loading span { width: 34px; height: 34px; border: 3px solid #d6dbe6; border-top-color: var(--orange-500); border-radius: 50%; animation: spin .8s linear infinite; }
.board-error strong { color: var(--navy-950); font-size: 15px; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty-board { display: grid; place-items: center; text-align: center; min-height: 360px; padding: 30px; color: var(--muted); }
.empty-board span { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: #fff; font-size: 24px; margin: 0 auto 10px; }
.empty-board h3 { margin: 0 0 6px; color: var(--navy-950); }
.empty-board p { margin: 0; font-size: 12px; }

/* --------------------------------------------------------------- modais */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(9, 20, 50, .58); backdrop-filter: blur(4px); animation: fadeIn .16s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal { width: min(1100px, 96vw); max-height: 92vh; display: flex; flex-direction: column; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); animation: rise .22s ease; }
@keyframes rise { from { opacity: .6; transform: translateY(14px) scale(.99); } to { opacity: 1; transform: none; } }
.modal-header { flex: 0 0 auto; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 20px 24px; color: #fff; background: linear-gradient(135deg, var(--navy-900), var(--navy-800)); border-bottom: 3px solid var(--orange-500); }
.danger-header { background: linear-gradient(135deg, #5b1a14, #8c2a20); border-bottom-color: var(--red); }
.modal-kicker { display: block; margin-bottom: 4px; color: var(--orange-500); font-size: 9px; font-weight: 900; letter-spacing: 1.4px; }
.danger-header .modal-kicker { color: #ffb4a8; }
.modal-header h2, .detail-header h2 { margin: 0; font-size: 21px; }
.modal-header p { margin: 5px 0 0; color: #d4dcf1; font-size: 11px; }
.icon-button { flex: 0 0 auto; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; border: 1px solid rgba(255,255,255,.28); color: #fff; background: rgba(255,255,255,.08); font-size: 22px; }
.icon-button:hover { background: rgba(255,255,255,.16); }
.modal-footer { flex: 0 0 auto; display: flex; justify-content: flex-end; align-items: center; gap: 10px; padding: 14px 24px; border-top: 1px solid var(--line); background: #fff; }
.footer-hint { margin: 0 auto 0 0; font-size: 11px; color: var(--muted); max-width: 520px; }

/* Adicionar obra */
.add-modal { width: min(1280px, 97vw); }
.add-flow { flex: 1; min-height: 0; overflow: auto; padding: 18px 24px; }
.flow-steps { display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.flow-step { display: flex; align-items: center; gap: 8px; color: #9199aa; font-size: 10px; font-weight: 800; }
.flow-step b { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: #e4e7ee; }
.flow-step.active { color: var(--navy-900); }
.flow-step.active b { background: var(--orange-500); color: #fff; }
.flow-steps i { width: 74px; height: 1px; background: #dfe3ea; margin: 0 10px; }
.add-grid { display: grid; grid-template-columns: minmax(230px, .8fr) minmax(0, 1.25fr) minmax(0, 1fr); gap: 10px; }
.selection-pane { min-width: 0; height: min(520px, calc(92vh - 290px)); min-height: 360px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fafbfc; }
.selected-pane { border-color: #f2b08d; background: #fffaf7; }
.pane-header { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; background: #fff; border-bottom: 1px solid var(--line); }
.pane-header h3 { margin: 3px 0 0; font-size: 14px; color: var(--navy-950); }
.pane-sub { display: block; margin-top: 2px; font-size: 10px; color: var(--muted); }
.step-label { color: var(--orange-600); font-size: 8px; font-weight: 900; letter-spacing: 1px; }
.count-pill { min-width: 25px; height: 25px; display: grid; place-items: center; padding: 0 6px; background: var(--navy-950); color: #fff; border-radius: 99px; font-size: 10px; font-weight: 900; }
.count-pill.orange { background: var(--orange-500); }
.city-pane .project-search, .pane-tools .project-search { margin: 10px 10px 8px; flex: 0 0 auto; background: #fff; height: 38px; }
.city-pane .uf-chips { padding: 0 10px; margin-bottom: 6px; max-height: 64px; overflow: auto; }
.city-list { flex: 1; overflow: auto; padding: 0 8px 10px; outline: none; }
.city-option { width: 100%; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; margin-top: 6px; padding: 9px 10px; border: 1px solid transparent; border-radius: 10px; background: #fff; color: var(--navy-900); text-align: left; }
.city-option > span:first-child { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: #eef1f8; font-size: 13px; }
.city-option strong { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.city-option small { display: block; color: var(--muted); font-size: 10px; }
.city-option em { font-style: normal; min-width: 26px; text-align: center; padding: 3px 7px; border-radius: 999px; background: #eef2fb; color: var(--navy-700); font-size: 10px; font-weight: 900; }
.city-option:hover, .city-option.focused { border-color: #f2ad87; background: #fffaf7; }
.city-option.active { border-color: var(--orange-500); background: var(--orange-100); box-shadow: 0 0 0 2px rgba(244,113,44,.1); }
.city-option.active em { background: var(--orange-500); color: #fff; }
.city-option.all > span:first-child { background: var(--navy-950); color: #fff; }
.pane-tools { flex: 0 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding-bottom: 6px; border-bottom: 1px solid #eef0f5; }
.pane-tools .project-search { flex: 1 1 100%; margin-bottom: 2px; }
.pane-tools .toggle, .pane-tools .link-button { margin-left: 10px; }
.toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: #536078; font-weight: 700; }
.toggle input { accent-color: var(--orange-600); }
.project-list { flex: 1; overflow: auto; padding: 0 10px 10px; }
.project-option { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 9px; align-items: flex-start; margin-top: 8px; padding: 10px; border: 1px solid #e0e4eb; border-radius: 9px; background: #fff; transition: .14s; }
.project-option:hover { border-color: #edaa86; box-shadow: 0 4px 12px rgba(24,38,75,.07); }
.project-option input { margin-top: 3px; accent-color: var(--orange-600); }
.project-info h4 { margin: 0; color: var(--navy-950); font-size: 11px; line-height: 1.35; text-transform: uppercase; overflow-wrap: anywhere; }
.project-info > p { margin: 3px 0 7px; color: var(--muted); font-size: 9px; text-transform: uppercase; }
.option-meta { display: flex; flex-wrap: wrap; gap: 4px; }
.option-meta span { border-radius: 5px; background: #f0f2f7; color: #536078; padding: 4px 6px; font-size: 9px; }
.option-meta span.ready { background: #e6f6ef; color: #0b7a4d; }
.option-meta b { color: var(--navy-950); }
.transfer-action { width: 26px; height: 26px; border: 0; border-radius: 7px; color: #fff; background: var(--navy-900); font-size: 15px; }
.remove-selection { background: #fff0ea; color: var(--orange-600); }
.select-city-empty, .selection-empty { height: 100%; display: grid; place-content: center; justify-items: center; text-align: center; color: #929bac; padding: 26px; font-size: 11px; }
.select-city-empty span, .selection-empty span { width: 48px; height: 48px; display: grid; place-items: center; background: #eef1f6; border-radius: 50%; font-size: 22px; }
.list-note { margin: 10px 4px 0; font-size: 10px; color: var(--muted); text-align: center; }
.selection-totals { display: grid; grid-template-columns: .75fr 1.25fr 1.25fr; flex: 0 0 auto; border-top: 1px solid #efcfbd; background: #fff; }
.selection-totals div { padding: 10px; border-right: 1px solid #edf0f4; }
.selection-totals div:last-child { border: 0; }
.selection-totals span { display: block; color: var(--muted); font-size: 9px; }
.selection-totals strong { display: block; margin-top: 3px; color: var(--navy-950); font-size: 12px; }

/* Ficha da obra */
.detail-modal { width: min(1480px, 98vw); height: 94vh; max-height: 94vh; }
.detail-header { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 20px; color: #fff; background: var(--navy-950); }
.detail-title-wrap { display: flex; align-items: center; gap: 12px; min-width: 0; }
.detail-title-wrap > div { min-width: 0; }
.detail-symbol { flex: 0 0 auto; width: 42px; height: 42px; display: grid; place-items: center; color: var(--orange-500); border: 1px solid rgba(255,255,255,.18); border-radius: 10px; font-size: 20px; }
.detail-header h2 { font-size: 17px; }
.detail-header p { margin: 3px 0 0; color: #cdd6ed; font-size: 9px; text-transform: uppercase; letter-spacing: .3px; }
.detail-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
/* Mover etapa (06/11/2026): botão no cabeçalho com o menu das etapas. */
.move-menu { position: relative; }
.button-move { min-height: 38px; color: #fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.3); font-size: 12px; }
.button-move:hover:not(:disabled) { background: rgba(255,255,255,.16); }
.button-move i { font-style: normal; font-size: 9px; opacity: .8; }
.move-popover { position: absolute; top: calc(100% + 8px); right: 0; z-index: 20; min-width: 264px; display: grid; gap: 2px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); color: var(--ink); }
.move-popover button { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--navy-950); font-size: 12px; font-weight: 800; text-align: left; }
.move-popover button:hover:not(:disabled), .move-popover button:focus-visible { background: #fff3ea; }
.move-popover button:disabled { cursor: default; background: #f5f6f9; color: #69748a; }
.move-popover small { color: var(--muted); font-size: 10px; font-weight: 700; }
.move-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--phase-color); }
.detail-stage-ribbon { display: grid; grid-template-columns: repeat(var(--phase-count, 3), 1fr); flex: 0 0 38px; color: #fff; background: #e6e9f0; }
.detail-stage { position: relative; display: grid; place-items: center; color: #7b8496; background: #eceef3; font-size: 9px; font-weight: 900; }
.detail-stage.complete, .detail-stage.current { color: #fff; background: var(--orange-600); }
.detail-stage.current { background: var(--orange-500); }
.detail-stage:not(:last-child)::after { content: ""; position: absolute; right: -11px; z-index: 1; width: 22px; height: 22px; border-top: 1px solid rgba(255,255,255,.4); border-right: 1px solid rgba(255,255,255,.4); background: inherit; transform: rotate(45deg); }
/* Faixa clicável: clicar numa etapa move o cartão para ela. */
button.detail-stage { width: 100%; height: 100%; padding: 0; border: 0; font-family: inherit; letter-spacing: inherit; cursor: pointer; transition: background .12s, color .12s; }
button.detail-stage:hover, button.detail-stage:focus-visible { background: #dde2ec; color: var(--navy-900); }
button.detail-stage.complete:hover, button.detail-stage.complete:focus-visible { background: #d65216; color: #fff; }
button.detail-stage:focus-visible { outline-offset: -3px; }
/* Pedido de 30/10/2026: a ficha (esquerda) ficou com ~60% da largura e a
   linha do tempo foi para a direita. A linha da grade fica presa à altura
   da janela (minmax(0, 1fr)) e cada coluna rola sozinha. */
.detail-body { min-height: 0; flex: 1; display: grid; grid-template-columns: minmax(0, 3fr) minmax(340px, 2fr); grid-template-rows: minmax(0, 1fr); }
.sunhub-fields { min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 0 22px 28px; border-right: 1px solid var(--line); background: #fbfbfc; }
.fields-head { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 -22px; padding: 14px 22px 12px; background: rgba(251,251,252,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.fields-head > div { display: grid; gap: 2px; min-width: 0; }
.fields-kicker { color: var(--orange-600); font-size: 10px; font-weight: 900; letter-spacing: 1.3px; }
.fields-head small { color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fields-config { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--navy-900); font-size: 12px; font-weight: 800; }
.fields-config:hover { border-color: var(--orange-500); color: var(--orange-600); }
.field-section { border-bottom: 1px solid #dfe3ea; }
.field-section > summary, .field-subsection > summary { list-style: none; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.field-section > summary { position: sticky; top: 61px; z-index: 2; padding: 18px 4px 12px; background: #fbfbfc; color: var(--navy-950); font-size: 11px; font-weight: 900; letter-spacing: .4px; text-transform: uppercase; }
.field-section > summary::-webkit-details-marker, .field-subsection > summary::-webkit-details-marker { display: none; }
.field-section > summary > span, .field-subsection > summary > span { flex: 1; min-width: 0; }
.field-section > summary em, .field-subsection > summary em { font-style: normal; padding: 2px 8px; border-radius: 999px; background: #eef1f6; color: #536078; font-size: 10px; font-weight: 800; letter-spacing: 0; }
.field-section > summary::after, .field-subsection > summary::after { content: "⌄"; color: var(--muted); }
.field-section:not([open]) > summary::after, .field-subsection:not([open]) > summary::after { content: "›"; }
.field-subsection { margin: 4px 0 14px 10px; padding-left: 12px; border-left: 2px solid #e4e8f0; }
.field-subsection > summary { padding: 10px 4px 8px; color: var(--navy-700); font-size: 11px; font-weight: 800; }
.field-empty-group { margin: 4px 4px 8px; color: #a0a8b8; font-size: 11px; font-style: italic; }
/* Pedido de 06/11/2026: a ficha aberta vira uma grade — rótulo em cima e
   valor embaixo, quantos campos couberem por linha (texto longo, arquivos e
   valores compridos ocupam a linha inteira) — com um pouco mais de espaço
   acima e abaixo de cada campo. */
.field-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 14px; padding: 0 0 16px; }
.field-grid > .field-empty-group { grid-column: 1 / -1; }
.field-row { min-width: 0; display: grid; grid-template-columns: 12px minmax(0, 1fr); grid-template-areas: "status label" ". cell"; column-gap: 8px; row-gap: 5px; align-content: start; padding: 11px 12px 12px; border: 1px solid transparent; border-radius: 10px; font-size: 12px; line-height: 1.45; transition: background .12s, border-color .12s, box-shadow .12s; }
.field-row:hover { background: #fff; border-color: #e6e9f0; }
.field-row.wide { grid-column: 1 / -1; }
.field-status { grid-area: status; width: 10px; height: 10px; margin-top: 2px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: #fff; font-size: 7px; }
.field-status.empty { background: #c3c9d4; }
.field-label { grid-area: label; min-width: 0; color: #536078; font-size: 11px; font-weight: 800; line-height: 1.35; overflow-wrap: anywhere; }
.field-mark { margin-left: 5px; font-style: normal; font-size: 10px; opacity: .7; }
.field-cell { grid-area: cell; min-width: 0; display: grid; gap: 6px; justify-items: start; }
.field-value { color: var(--navy-950); font-size: 13px; overflow-wrap: anywhere; white-space: pre-line; }
.field-value.empty { color: #a39a92; font-size: 12px; font-style: italic; }
.field-value a { color: var(--orange-600); font-weight: 700; }
/* Ficha editável: o valor vira botão; vazio mostra "Adicionar ..." em laranja. */
.field-value.editable { cursor: pointer; border-radius: 5px; margin: -2px -5px; padding: 2px 5px; transition: background .12s; }
.field-value.editable:hover, .field-value.editable:focus-visible { background: #fff3ea; }
.field-value.editable.empty { color: var(--orange-600); font-style: normal; font-weight: 700; }
/* Dado do Sunhub: só consulta (o valor não é clicável). */
.field-row.is-readonly .field-value { color: #34405a; }
.field-row.is-readonly .field-value.empty { color: #a0a8b8; }
.field-origin { display: inline-block; margin-left: 6px; padding: 1px 5px; border-radius: 4px; background: var(--orange-100); color: var(--orange-600); font-size: 8px; font-style: normal; font-weight: 900; letter-spacing: .4px; text-transform: uppercase; vertical-align: 1px; }
/* Edição no tamanho do conteúdo: o campo fica onde está na grade, com
   "Salvar" e "✕" ao lado; Sim/Não e listas curtas viram botões pequenos. */
.field-row.editing { background: #fff; border-color: #f2c4a8; box-shadow: 0 4px 14px rgba(239,94,27,.1); }
.field-row.editing .field-editor { grid-area: cell; min-width: 0; display: grid; gap: 6px; color: var(--ink); white-space: normal; }
.field-editor-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.field-editor :is(input[type="text"], input[type="date"], select, textarea) { max-width: 100%; min-height: 34px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink); font-size: 13px; }
.field-editor .fi-date { width: 158px; }
.field-editor .fi-number { width: 130px; }
.field-editor .fi-doc { width: 200px; }
.field-editor .fi-text { flex: 1 1 160px; min-width: 0; width: auto; max-width: 420px; }
.field-editor .fi-select { width: auto; min-width: 150px; }
.field-editor .fi-long { flex: 1 1 100%; width: 100%; min-height: 76px; resize: vertical; line-height: 1.45; }
.field-choice { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.field-choice label { position: relative; display: inline-flex; }
.field-choice input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.field-choice span { min-width: 46px; height: 30px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: #34405a; font-size: 12px; font-weight: 800; cursor: pointer; transition: background .12s, border-color .12s; }
.field-choice label:hover span { border-color: #f2ad87; }
.field-choice input:checked + span { border-color: var(--orange-500); background: var(--orange-100); color: var(--navy-950); box-shadow: inset 0 0 0 1px var(--orange-500); }
.field-choice input:focus-visible + span { outline: 3px solid rgba(244,113,44,.32); outline-offset: 2px; }
.field-checks { display: flex; flex-wrap: wrap; gap: 6px; }
.field-checks label { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 12px; cursor: pointer; }
.field-checks label:has(input:checked) { border-color: var(--orange-500); background: var(--orange-100); color: var(--navy-950); font-weight: 700; }
.field-checks input { accent-color: var(--orange-600); }
.field-editor-checks .field-editor-line { align-items: flex-start; }
.field-editor-actions { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; }
.field-editor-actions .mini-save { padding: 0 11px; }
.mini-cancel { width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: #6b7488; font-size: 12px; }
.mini-cancel:hover { border-color: #f1c8bf; color: var(--red); }
.field-editor-extra { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; }
.link-button.muted { color: #6b7488; font-weight: 700; text-align: left; }
/* Arquivos anexados ao campo ("Projeto" e campos com anexos ligados). */
.field-row.accepts-files.drop-over { background: var(--orange-100); box-shadow: inset 0 0 0 2px var(--orange-500); }
.field-files { width: 100%; display: grid; gap: 6px; justify-items: start; }
.field-files ul { width: 100%; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px; }
.file-chip { display: flex; align-items: center; gap: 4px; max-width: 100%; padding: 4px 4px 4px 6px; border: 1px solid #e1e5ec; border-radius: 9px; background: #fff; }
.file-chip.confirming { border-color: #f1c8bf; background: #fff7f5; }
.file-chip a { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; color: var(--navy-950); text-decoration: none; }
.file-chip a:hover b { color: var(--orange-600); text-decoration: underline; }
.file-ext { flex: 0 0 auto; min-width: 34px; height: 30px; padding: 0 4px; display: grid; place-items: center; border-radius: 6px; background: var(--navy-950); color: #fff; font-size: 9px; font-weight: 900; letter-spacing: .3px; }
.file-text { min-width: 0; display: grid; }
.file-text b { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-text small { color: var(--muted); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-x { flex: 0 0 auto; width: 28px; height: 28px; border: 0; border-radius: 6px; background: transparent; color: #8a94a9; font-size: 16px; }
.file-x:hover { background: #fff0ef; color: var(--red); }
.file-confirm { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; color: #6d2a20; font-size: 11px; font-weight: 700; }
.file-confirm button { height: 26px; padding: 0 9px; border: 1px solid #e3a99c; border-radius: 6px; background: #fff; color: #6d2a20; font-size: 11px; font-weight: 800; }
.file-confirm button:first-child { border-color: var(--red); background: var(--red); color: #fff; }
.file-add { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border: 1px dashed #e9a47e; border-radius: 7px; background: #fffaf7; color: var(--orange-600); font-size: 11px; font-weight: 800; }
.file-add:hover:not(:disabled) { border-style: solid; background: var(--orange-100); }
.file-add:disabled { opacity: .6; cursor: wait; }
.field-skeleton { height: 12px; margin: 10px 4px; border-radius: 6px; background: linear-gradient(90deg, #eef0f4, #f7f8fa, #eef0f4); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
/* Linha do tempo (direita) */
.detail-main { min-width: 0; min-height: 0; display: flex; flex-direction: column; background: #f5f6f8; }
.timeline-head { flex: 0 0 auto; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 14px 22px 12px; background: #fff; border-bottom: 1px solid var(--line); }
.timeline-head h3 { margin: 0; color: var(--orange-600); font-size: 12px; font-weight: 900; letter-spacing: .6px; text-transform: uppercase; }
.timeline-head span { color: var(--muted); font-size: 11px; }
.tab-panel { min-height: 0; flex: 1; overflow: auto; padding: 18px 22px; }
.composer { background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 3px 10px rgba(24,38,75,.04); }
.composer-tools { display: flex; align-items: center; gap: 8px; padding: 10px 12px 6px; color: #6f788a; font-size: 10px; }
.composer-tools b { color: var(--navy-900); }
.composer textarea { width: calc(100% - 24px); min-height: 66px; margin: 0 12px; resize: vertical; border: 1px solid #e0e4ea; border-radius: 5px; padding: 10px; font-size: 12px; }
.composer-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 12px 12px; font-size: 10px; color: var(--muted); }
.mini-save { height: 30px; padding: 0 13px; border: 0; border-radius: 5px; color: #fff; background: var(--orange-600); font-size: 10px; font-weight: 900; }
.mini-save:disabled { opacity: .5; cursor: not-allowed; }
.history-tabs { display: flex; gap: 22px; margin-top: 18px; border-bottom: 1px solid #e3e6ec; }
.history-tabs button { border: 0; background: transparent; color: #59647a; font-size: 11px; padding: 0 0 8px; border-bottom: 2px solid transparent; }
.history-tabs button[aria-pressed="true"] { color: var(--orange-600); border-bottom-color: var(--orange-500); font-weight: 900; }
.timeline { position: relative; margin: 18px 0 0 9px; padding-left: 28px; border-left: 2px solid #d5dae4; }
.timeline-entry { position: relative; padding: 12px 14px; margin-bottom: 12px; background: #fff; border: 1px solid #e3e6ec; border-radius: 9px; }
.timeline-entry::before { content: "✓"; position: absolute; left: -40px; top: 12px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--orange-500); color: #fff; font-size: 9px; border: 3px solid #f5f6f8; }
.timeline-entry.is-note::before { content: "•"; background: var(--navy-700); font-size: 14px; }
.timeline-entry h4 { margin: 0 0 4px; font-size: 11px; color: var(--navy-950); text-transform: uppercase; }
.timeline-entry p { margin: 2px 0; color: #69748a; font-size: 11px; white-space: pre-line; overflow-wrap: anywhere; }
.timeline-entry .entry-title { color: #34405a; font-weight: 700; }
.timeline-empty { margin: 16px 0; font-size: 11px; color: var(--muted); }
.generic-empty { display: grid; place-items: center; min-height: 220px; color: var(--muted); text-align: center; padding: 30px; }
.generic-empty span { font-size: 28px; }
.generic-empty h4 { margin: 10px 0 4px; color: var(--navy-950); }
.generic-empty p { margin: 0; font-size: 11px; max-width: 460px; }

/* Campos da ficha (configuração) */
.fields-modal { width: min(1180px, 97vw); height: 92vh; }
.cfg-alert { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 24px; background: #fdecea; color: #a8322a; font-size: 12px; font-weight: 700; border-bottom: 1px solid #f3c3bc; }
.cfg-alert button { flex: 0 0 auto; height: 30px; padding: 0 12px; border: 1px solid #a8322a; border-radius: 7px; background: #fff; color: #a8322a; font-weight: 800; font-size: 11px; }
.cfg-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, 1fr); }
.cfg-tree-pane { min-height: 0; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: #f5f6f9; }
.cfg-toolbar { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--line); }
.cfg-toolbar .button { min-height: 36px; font-size: 12px; }
.cfg-toolbar span { margin-left: auto; color: var(--muted); font-size: 11px; }
.cfg-tree { flex: 1; min-height: 0; overflow: auto; padding: 14px 16px 24px; display: grid; align-content: start; gap: 12px; }
.cfg-box { border: 1px solid #dde2eb; border-radius: 11px; background: #fff; }
.cfg-box.selected > .cfg-box-head { background: var(--orange-100); }
.cfg-sub { margin: 4px 10px 8px 22px; border-style: dashed; background: #fbfcfd; }
.cfg-box-head { display: flex; align-items: center; gap: 6px; padding: 6px 8px 6px 10px; border-radius: 10px 10px 0 0; }
.cfg-group > .cfg-box-head { border-bottom: 1px solid #eef0f5; }
.cfg-pick { flex: 1; min-width: 0; display: grid; gap: 1px; padding: 6px 4px; border: 0; background: transparent; color: var(--navy-950); text-align: left; }
.cfg-box-head .cfg-pick { display: flex; align-items: center; gap: 8px; }
.cfg-box-head .cfg-pick b { font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cfg-sub > .cfg-box-head .cfg-pick b { text-transform: none; letter-spacing: 0; color: var(--navy-700); }
.cfg-box-head .cfg-pick em { font-style: normal; padding: 1px 7px; border-radius: 999px; background: #eef1f6; color: #536078; font-size: 10px; font-weight: 800; }
.cfg-steps { flex: 0 0 auto; display: inline-flex; gap: 2px; }
.cfg-steps button { width: 26px; height: 26px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #7b8496; font-size: 12px; }
.cfg-steps button:hover, .cfg-steps button:focus-visible { border-color: var(--line); background: #fff; color: var(--navy-900); }
.cfg-fields { list-style: none; margin: 0; padding: 6px 8px; display: grid; gap: 4px; min-height: 40px; border-radius: 8px; transition: background .12s; }
.cfg-fields.drop-over { background: var(--orange-100); box-shadow: inset 0 0 0 2px #f6c3a6; }
.cfg-field { display: flex; align-items: center; gap: 4px; padding: 0 4px 0 6px; border: 1px solid #e6e9f0; border-radius: 8px; background: #fff; cursor: grab; }
.cfg-field:hover { border-color: #f2ad87; }
.cfg-field.selected { border-color: var(--orange-500); box-shadow: 0 0 0 2px rgba(244,113,44,.14); }
.cfg-field.dragging { opacity: .4; }
.cfg-field .cfg-pick b { font-size: 12px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cfg-field .cfg-pick small, .cfg-hidden .cfg-pick small { color: var(--muted); font-size: 10px; }
.cfg-grip { flex: 0 0 auto; color: #a6aec0; font-size: 14px; cursor: grab; user-select: none; }
.cfg-empty { padding: 10px; border: 1px dashed #cfd5e1; border-radius: 8px; color: #8a94a8; font-size: 11px; text-align: center; }
.cfg-box-actions { display: flex; gap: 6px; padding: 2px 10px 10px; }
.cfg-box-actions button { height: 28px; padding: 0 10px; border: 1px dashed #c8cfdc; border-radius: 7px; background: transparent; color: var(--navy-700); font-size: 11px; font-weight: 800; }
.cfg-box-actions button:hover { border-style: solid; border-color: var(--orange-500); color: var(--orange-600); background: #fff; }
.cfg-hidden { padding: 12px 14px; border: 1px solid #dde2eb; border-radius: 11px; background: #fff; }
.cfg-hidden h4 { margin: 0; display: flex; align-items: center; gap: 8px; color: #536078; font-size: 11px; text-transform: uppercase; letter-spacing: .4px; }
.cfg-hidden h4 em { font-style: normal; padding: 1px 7px; border-radius: 999px; background: #eef1f6; font-size: 10px; }
.cfg-hidden > p { margin: 4px 0 8px; color: var(--muted); font-size: 11px; }
.cfg-hidden ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.cfg-hidden li { display: flex; align-items: center; gap: 6px; padding: 0 6px; border-radius: 8px; }
.cfg-hidden li.selected { background: var(--orange-100); }
.cfg-hidden .cfg-pick b { color: #69748a; font-size: 12px; font-weight: 700; }
.cfg-show { flex: 0 0 auto; height: 26px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--navy-900); font-size: 11px; font-weight: 800; }
.cfg-editor-pane { min-height: 0; overflow: auto; padding: 20px 24px 28px; display: grid; align-content: start; gap: 14px; background: #fff; }
.cfg-editor-head { display: grid; gap: 4px; padding-bottom: 10px; border-bottom: 1px solid #eef0f5; }
.cfg-kicker { color: var(--orange-600); font-size: 9px; font-weight: 900; letter-spacing: 1.3px; }
.cfg-editor-head h3 { margin: 0; color: var(--navy-950); font-size: 18px; overflow-wrap: anywhere; }
.cfg-label { display: grid; gap: 6px; color: #536078; font-size: 11px; font-weight: 800; }
.cfg-label input, .cfg-label select { height: 40px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 500; }
.cfg-label select:disabled { background: #f3f5f8; color: #69748a; }
.cfg-note { margin: -6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.cfg-options { margin: 0; padding: 12px 14px; border: 1px solid #f2d3c1; border-radius: 10px; background: #fffaf7; }
.cfg-options legend { padding: 0 6px; color: var(--orange-600); font-size: 10px; font-weight: 900; letter-spacing: .8px; text-transform: uppercase; }
.cfg-options ol { margin: 0 0 6px; padding: 0 0 0 20px; display: grid; gap: 6px; color: #8a94a8; font-size: 11px; }
.cfg-options li { padding-left: 4px; }
.cfg-options li > * { vertical-align: middle; }
.cfg-options input { width: calc(100% - 96px); height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink); font-size: 13px; }
.cfg-options li button { width: 28px; height: 28px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #7b8496; }
.cfg-options li button:hover { border-color: var(--line); background: #fff; }
.cfg-options .cfg-option-x:hover { color: var(--red); }
.cfg-check { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.cfg-check:has(input:checked) { border-color: #f2b08d; background: #fffaf7; }
.cfg-check input { margin-top: 2px; width: 17px; height: 17px; accent-color: var(--orange-600); }
.cfg-check b { display: block; color: var(--navy-950); font-size: 12px; }
.cfg-check small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.cfg-editor-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cfg-editor-actions .button { min-height: 38px; font-size: 12px; }
.cfg-danger { display: grid; gap: 10px; margin-top: 8px; padding-top: 14px; border-top: 1px dashed #e3e6ec; }
.cfg-danger .cfg-note { margin: 0; }
.button-danger-ghost { justify-self: start; min-height: 36px; background: #fff; color: var(--red); border-color: #f1c8bf; font-size: 12px; }
.button-danger-ghost:hover:not(:disabled) { background: #fff0ef; }
.cfg-placeholder { display: grid; place-items: center; align-content: center; gap: 8px; min-height: 260px; color: var(--muted); text-align: center; font-size: 12px; }
.cfg-placeholder span { font-size: 28px; }

/* Layout da planilha do Excel (06/11/2026): colunas na ordem | campos fora. */
.export-modal { width: min(980px, 96vw); height: min(88vh, 780px); }
.export-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, 1fr); }
.export-pane { min-width: 0; min-height: 0; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: #f5f6f9; }
.export-available { border-right: 0; background: #fff; }
.export-pane-head { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 62px; padding: 10px 16px; background: #fff; border-bottom: 1px solid var(--line); }
.export-pane-head h3 { margin: 3px 0 0; color: var(--navy-950); font-size: 14px; }
.export-columns { flex: 1; min-height: 0; overflow: auto; list-style: none; margin: 0; padding: 10px 12px 18px; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 5px; }
.export-column { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 6px 0 8px; border: 1px solid #e3e7ef; border-radius: 9px; background: #fff; cursor: grab; }
.export-column:hover { border-color: #f2ad87; }
.export-column.dragging { opacity: .4; }
.export-column.drop-before { box-shadow: inset 0 3px 0 var(--orange-500); }
.export-index { flex: 0 0 auto; min-width: 24px; height: 22px; display: grid; place-items: center; border-radius: 6px; background: #eef1f6; color: #536078; font-size: 10px; font-weight: 900; }
.export-name { flex: 1; min-width: 0; color: var(--navy-950); font-size: 12px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.export-tag { flex: 0 0 auto; padding: 2px 7px; border-radius: 999px; font-size: 9px; font-style: normal; font-weight: 900; letter-spacing: .3px; text-transform: uppercase; }
.export-tag.ploomes { background: #eef2fb; color: var(--navy-700); }
.export-tag.site { background: var(--orange-100); color: var(--orange-600); }
.cfg-steps button:disabled { opacity: .3; cursor: default; }
.cfg-steps .export-x { font-size: 15px; }
.cfg-steps .export-x:hover { border-color: #f1c8bf; background: #fff0ef; color: var(--red); }
.export-search { flex: 0 0 auto; height: 38px; margin: 10px 12px 4px; background: #fff; }
.export-available-list { flex: 1; min-height: 0; overflow: auto; padding: 0 12px 18px; }
.export-available-list h4 { margin: 14px 4px 6px; color: #536078; font-size: 10px; letter-spacing: .6px; text-transform: uppercase; }
.export-available-list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.export-add { width: 100%; min-height: 36px; display: flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px dashed #d3d9e4; border-radius: 8px; background: #fbfcfd; color: var(--navy-900); font-size: 12px; font-weight: 700; text-align: left; }
.export-add span { color: var(--orange-600); font-weight: 900; }
.export-add:hover { border-style: solid; border-color: var(--orange-500); background: #fffaf7; }

/* Remoção com confirmação dupla */
.confirm-modal { width: min(560px, 96vw); }
.confirm-body { padding: 20px 24px; display: grid; gap: 14px; font-size: 13px; color: #34405a; }
.confirm-body p { margin: 0; line-height: 1.5; }
.confirm-work { padding: 12px 14px; border: 1px solid #f1c8bf; border-left: 4px solid var(--red); border-radius: 10px; background: #fff7f5; }
.confirm-work strong { display: block; color: var(--navy-950); text-transform: uppercase; font-size: 13px; }
.confirm-work span { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.confirm-reason { display: grid; gap: 6px; font-size: 11px; font-weight: 800; color: #536078; }
.confirm-reason input { height: 40px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
.confirm-check { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px dashed #e3a99c; border-radius: 10px; background: #fffaf9; font-size: 12px; font-weight: 700; color: #6d2a20; cursor: pointer; }
.confirm-check input { margin-top: 2px; width: 17px; height: 17px; accent-color: var(--red); }

/* Obras removidas */
.removed-modal { width: min(760px, 96vw); }
.removed-list { overflow: auto; padding: 14px 18px 20px; min-height: 160px; }
.removed-item { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.removed-item strong { display: block; font-size: 12px; text-transform: uppercase; color: var(--navy-950); }
.removed-item span { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; }

/* Toasts */
.toast-region { position: fixed; right: 22px; bottom: 22px; z-index: 200; display: grid; gap: 8px; }
.toast { min-width: 280px; max-width: min(460px, 92vw); display: flex; align-items: center; gap: 10px; padding: 12px 14px; color: #fff; background: var(--navy-950); border-left: 4px solid var(--orange-500); border-radius: 8px; box-shadow: var(--shadow); font-size: 12px; animation: slideIn .2s ease; }
.toast::before { content: "✓"; flex: 0 0 auto; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--green); font-size: 10px; }
.toast.error { border-left-color: var(--red); }
.toast.error::before { content: "!"; background: var(--red); font-weight: 900; }
.toast span { flex: 1; }
.toast button { border: 1px solid rgba(255,255,255,.35); border-radius: 6px; background: transparent; color: #fff; font-weight: 800; font-size: 11px; padding: 5px 9px; }
@keyframes slideIn { from { transform: translateX(25px); opacity: 0; } }

/* Login da Volt */
.volt-login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background:
  radial-gradient(circle at 15% 15%, rgba(249,168,37,.18), transparent 40%),
  linear-gradient(160deg, #0c1c43 0%, #1d356f 100%); }
.volt-login { width: 100%; display: grid; place-items: center; }
.volt-login-card { width: min(420px, 100%); padding: 34px 30px 28px; border-radius: 18px; background: #fff; box-shadow: 0 30px 80px rgba(5, 12, 35, .45); text-align: center; }
.volt-login-logo { width: 210px; max-width: 80%; height: auto; margin: 0 auto 18px; display: block; }
.volt-login-card h1 { margin: 8px 0 6px; font-size: 22px; color: var(--navy-950); }
.volt-login-card > p { margin: 0 0 20px; color: var(--muted); font-size: 13px; }
.volt-login-card form { display: grid; gap: 12px; text-align: left; }
.volt-login-card label { display: grid; gap: 6px; font-size: 12px; font-weight: 800; color: #536078; }
.volt-login-card input { height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; font-size: 14px; }
.volt-login-card .button { width: 100%; margin-top: 4px; }
.volt-login-card small { display: block; margin-top: 16px; color: var(--muted); font-size: 11px; }
.volt-login-erro { margin: 0; padding: 9px 11px; border-radius: 8px; background: #fdecea; color: #a8322a; font-size: 12px; }

/* ---------------------------------------------------------- responsivo */
@media (max-width: 1250px) {
  .add-grid { grid-template-columns: minmax(210px, .8fr) minmax(0, 1.2fr) minmax(0, 1fr); }
}
@media (max-width: 1150px) {
  .app-shell, .app-shell.collapsed { grid-template-columns: 76px minmax(0, 1fr); }
  .brand-logo, .brand-caption, .nav-item b, .nav-item i, .side-user > span:last-child, .side-link b, .collapse-button span { display: none; }
  .brand-symbol { display: block; }
  .nav-item, .side-link { justify-content: center; padding: 0; }
  .side-user { justify-content: center; padding: 6px 0; }
  .collapse-button { display: none; }
  .summary-strip { grid-template-columns: 1fr; }
  .summary-phases { grid-template-columns: repeat(var(--phase-count, 3), 1fr); }
  .board-toolbar { grid-template-columns: auto minmax(200px, 1fr) auto; }
  .sync-status { grid-column: 1 / -1; justify-self: start; }
  .add-grid { grid-template-columns: 1fr 1fr; }
  .city-pane { grid-column: 1 / -1; height: 300px; min-height: 0; }
  .detail-body { grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr); }
  .field-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}
@media (max-width: 820px) {
  .app-shell, .app-shell.collapsed { display: block; }
  .sidebar { position: static; height: auto; flex-direction: row; align-items: center; justify-content: space-between; padding: 8px 12px; box-shadow: none; }
  .brand { min-height: 0; padding: 0; border: 0; flex-direction: row; }
  .brand-logo { display: block; width: 92px; }
  .brand-symbol, .brand-caption { display: none; }
  .side-nav { display: flex; flex: 0 1 auto; gap: 4px; padding: 0; overflow: visible; }
  .side-nav .nav-item { width: 40px; height: 40px; margin: 0; }
  .side-footer { display: flex; border: 0; padding: 0; gap: 4px; }
  .side-user { display: none; }
  .side-link { width: 40px; justify-content: center; padding: 0; }
  .workspace { padding: 0 12px 18px; }
  .topbar { align-items: flex-start; flex-direction: column; padding: 20px 2px; min-height: 0; }
  .header-actions { width: 100%; }
  .header-actions .button { flex: 1; }
  .header-actions .split-button { flex: 1; }
  .header-actions .split-button > .split-gear { flex: 0 0 auto; }
  .summary-phases { grid-template-columns: repeat(var(--phase-count, 3), minmax(0, 1fr)); }
  .board-toolbar { grid-template-columns: 1fr; }
  .view-tabs { width: 100%; }
  .view-tabs button { flex: 1; }
  .board-search, .city-filter-button { width: 100%; max-width: none; }
  .city-popover { width: 100%; }
  .modal-backdrop { padding: 8px; }
  .modal { width: 100%; max-height: 97vh; }
  .add-grid { grid-template-columns: 1fr; }
  .city-pane { height: 260px; }
  .selection-pane { height: 360px; }
  .modal-footer { flex-wrap: wrap; }
  .footer-hint { flex: 1 1 100%; }
  .detail-modal { height: 97vh; }
  /* No celular as colunas ficam uma embaixo da outra e a ficha rola inteira:
     cada parte volta à altura do próprio conteúdo (min-height: auto). */
  .detail-body { grid-template-columns: 1fr; grid-template-rows: none; overflow: auto; }
  .sunhub-fields, .detail-main { min-height: auto; }
  .sunhub-fields { border-right: 0; border-bottom: 1px solid var(--line); overflow: visible; }
  .detail-stage-ribbon { overflow: hidden; }
  .detail-stage { font-size: 7px; }
  .fields-head { position: static; }
  .field-section > summary { top: 0; }
  .fields-modal, .export-modal { height: 97vh; }
  .cfg-body { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1.2fr) minmax(0, 1fr); }
  .cfg-tree-pane { border-right: 0; border-bottom: 1px solid var(--line); }
  .export-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1.25fr) minmax(0, 1fr); }
  .export-pane { border-right: 0; border-bottom: 1px solid var(--line); }
  .detail-header { flex-wrap: wrap; }
  .detail-actions { flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .topbar h1 { font-size: 24px; }
  .header-actions { flex-direction: column-reverse; }
  .summary-phases { gap: 8px; }
  .phase-stat { min-height: 78px; padding: 12px 10px; }
  .phase-stat strong { font-size: 15px; }
  .phase-stat small { letter-spacing: .4px; }
  .flow-step span { display: none; }
  .flow-steps i { width: 45px; }
  .add-flow { padding: 14px; }
  .modal-header, .modal-footer { padding-left: 16px; padding-right: 16px; }
  .selection-totals { grid-template-columns: 1fr; }
  .selection-totals div { border-right: 0; border-bottom: 1px solid #edf0f4; }
  .detail-header { padding: 10px 12px; flex-wrap: wrap; }
  .detail-symbol { display: none; }
  .detail-header h2 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
  .detail-actions { width: 100%; justify-content: space-between; }
  .move-popover { left: 0; right: auto; }
  .tab-panel { padding: 12px; }
  .toast-region { left: 12px; right: 12px; }
  .toast { min-width: 0; }
}
