/* =============================================================================
   MoveOne — identidade visual MoveAIT (homologação MP-001..009)
   DM Sans na interface, DM Mono só para números/tempo/códigos. Visual leve:
   sem brilho, glow ou fundo com degradê. Gradiente só ciano → teal → esmeralda (90°).
   ============================================================================= */
@font-face { font-family: "DM Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/dm-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url(../fonts/dm-sans-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url(../fonts/dm-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url(../fonts/dm-sans-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 800; font-style: normal; font-display: swap; src: url(../fonts/dm-sans-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "DM Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/dm-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "DM Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url(../fonts/dm-mono-latin-500-normal.woff2) format("woff2"); }

/* ----------------------------------------------------------------------------- tokens */
:root {
  color-scheme: light;
  --brand: linear-gradient(90deg, #0096C7, #00C9C9, #10B981);
  --cyan: #0096C7; --teal: #00C9C9; --emerald: #10B981; --cobalt: #1565C0;

  --bg: #E8EDF5;            /* branco azulado */
  --surface: #FFFFFF;       /* cards, cabeçalho */
  --surface-2: #F5F7FB;     /* faixas internas, cabeçalhos de tabela */
  --line: #C8D0DC;          /* bordas prata */
  --line-soft: #DDE3EC;     /* divisórias internas */
  --ink: #0A1527;           /* títulos */
  --txt: #334155;           /* corpo */
  --muted: #64748B;
  --faint: #94A3B8;
  --hover: #F0F4F9;

  --link: #1565C0;
  --accent: #00A3A3;        /* teal legível sobre branco */
  --accent-bg: #E3F7F7;
  --sel-bg: #E6F4FA;

  /* cores de status (definidas pela MoveAIT) */
  --proj: #0096C7; --proj-ink: #1565C0; --proj-bg: #E3F0FB;
  --sup: #E0A33A;  --sup-ink: #B26A00;  --sup-bg: #FDF2DE;
  --ok: #10B981;   --ok-ink: #0B7F5A;   --ok-bg: #E4F7EF;
  --late: #D93B3B; --late-ink: #C62828; --late-bg: #FDECEC;
  --warn-ink: #B26A00; --warn-bg: #FDF2DE;
  --ferias: #0B7F5A; --ferias-bg: #E4F7EF;
  --folga: #B26A00;  --folga-bg: #FDF2DE;
  --licenca: #6E56CF; --licenca-bg: #EFEBFC;
  --ausencia: #C62828; --ausencia-bg: #FDECEC;
  --neutral-bg: #EEF1F6;

  --r: 12px; --r-sm: 8px;
  --sh: 0 1px 2px rgba(10, 21, 39, .04);
  --sh-pop: 0 12px 32px rgba(10, 21, 39, .16);
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
}
html[data-theme="escuro"] {
  color-scheme: dark;
  --bg: #0A1527;
  --surface: #0D1F3C;
  --surface-2: #10264A;
  --line: rgba(200, 208, 220, .18);
  --line-soft: rgba(200, 208, 220, .10);
  --ink: #FFFFFF;
  --txt: #C8D0DC;
  --muted: #8A9BB5;
  --faint: #5F7393;
  --hover: rgba(255, 255, 255, .04);
  --link: #4FA3F0;
  --accent: #00C9C9;
  --accent-bg: rgba(0, 201, 201, .12);
  --sel-bg: rgba(0, 150, 199, .16);
  --proj: #0096C7; --proj-ink: #5AB4F2; --proj-bg: rgba(21, 101, 192, .22);
  --sup: #E0A33A;  --sup-ink: #F0B755; --sup-bg: rgba(224, 163, 58, .16);
  --ok: #10B981;   --ok-ink: #34D399; --ok-bg: rgba(16, 185, 129, .14);
  --late: #F05252; --late-ink: #F87171; --late-bg: rgba(240, 82, 82, .14);
  --warn-ink: #F0B755; --warn-bg: rgba(224, 163, 58, .16);
  --ferias: #34D399; --ferias-bg: rgba(16, 185, 129, .14);
  --folga: #F0B755;  --folga-bg: rgba(224, 163, 58, .16);
  --licenca: #A99BF0; --licenca-bg: rgba(110, 86, 207, .2);
  --ausencia: #F87171; --ausencia-bg: rgba(240, 82, 82, .14);
  --neutral-bg: rgba(255, 255, 255, .05);
  --sh: none;
  --sh-pop: 0 16px 40px rgba(0, 0, 0, .45);
}

/* ----------------------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); }
body { font: 400 14px/1.5 var(--font); color: var(--txt); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; font-family: var(--font); }
h1 { font-size: 26px; font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: 17px; font-weight: 700; }
h3 { font-size: 15px; font-weight: 700; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
.hidden { display: none !important; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.ic { flex: none; vertical-align: middle; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(100, 116, 139, .28); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }

/* ----------------------------------------------------------------------------- logo oficial */
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo .wm { display: flex; flex-direction: column; line-height: 1; }
.logo .wm b { font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
.logo .wm b span { background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo .wm small { font-size: 7.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.logo svg .box { fill: var(--surface); }

/* ----------------------------------------------------------------------------- botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 0 16px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; text-decoration: none; }
.btn:hover { background: var(--hover); text-decoration: none; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.sm { min-height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn.xs { min-height: 28px; padding: 0 9px; font-size: 12px; border-radius: 7px; }
.btn.primary { background: var(--brand); border: 0; color: #FFFFFF; font-weight: 700; }
.btn.primary:hover { filter: brightness(1.05); background: var(--brand); }
.btn.danger { color: var(--late-ink); border-color: var(--late); background: var(--surface); }
.btn.danger:hover { background: var(--late-bg); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--hover); }
.btn.icon { width: 34px; min-height: 34px; padding: 0; }
.link { background: none; border: 0; padding: 0; color: var(--link); font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.link:hover { text-decoration: underline; }
.link.danger { color: var(--late-ink); }
.iconbtn { width: 30px; height: 30px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: var(--surface);
  color: var(--cobalt); cursor: pointer; padding: 0; }
html[data-theme="escuro"] .iconbtn { color: var(--link); }
.iconbtn:hover { background: var(--hover); }
.iconbtn.run { background: var(--ok); border-color: var(--ok); color: #fff; }
.iconbtn.plain { border-color: transparent; background: none; color: var(--muted); }
.iconbtn.plain:hover { color: var(--ink); background: var(--hover); }

/* ----------------------------------------------------------------------------- campos */
.in { width: 100%; min-height: 38px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); outline: none; }
.in:focus { border-color: var(--cyan); }
.in::placeholder { color: var(--faint); }
.in.err { border-color: var(--late); }
textarea.in { min-height: 80px; resize: vertical; }
select.in { appearance: none; padding-right: 30px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; }
.fld { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.fld > label, .lbl { font-size: 13px; font-weight: 600; color: var(--ink); display: flex; align-items: baseline; gap: 6px; }
.fld > label .req, .req { color: var(--late); }
.fld > label .right, .lbl .right { margin-left: auto; }
.fld .hint { font-size: 12px; color: var(--muted); }
.fld .msg { font-size: 12px; color: var(--late-ink); }
.check { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; font-size: 13px; color: var(--txt); }
.check input { width: 15px; height: 15px; accent-color: var(--cobalt); margin: 0; }
.searchbox { position: relative; display: flex; align-items: center; }
.searchbox .ic { position: absolute; left: 11px; color: var(--faint); pointer-events: none; }
.searchbox .in { padding-left: 33px; }

/* switch (Exibir / Ativo) */
.sw { position: relative; display: inline-block; width: 34px; height: 19px; flex: none; }
.sw input { opacity: 0; width: 0; height: 0; position: absolute; }
.sw span { position: absolute; inset: 0; border-radius: 20px; background: var(--line); transition: background .15s; cursor: pointer; }
.sw span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: #fff; transition: transform .15s; }
.sw input:checked + span { background: var(--ok); }
.sw input:checked + span::after { transform: translateX(15px); }
.sw input:disabled + span { opacity: .5; cursor: not-allowed; }

/* controle segmentado (Todos | Projeto | Suporte) */
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 0; overflow: hidden; flex: none; }
.seg button { border: 0; background: none; padding: 0 14px; min-height: 36px; font-size: 14px; font-weight: 500; color: var(--txt); cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; border-bottom: 2px solid transparent; white-space: nowrap; }
.seg button + button { border-left: 1px solid var(--line-soft); }
.seg button:hover { background: var(--hover); }
.seg button.on { background: var(--sel-bg); color: var(--ink); font-weight: 700; border-bottom-color: var(--teal); }
.seg.sm button { min-height: 30px; padding: 0 11px; font-size: 13px; }
/* abas cinzas (Capacidade | Esteira | Previsibilidade) */
.tabs-soft { display: inline-flex; gap: 2px; padding: 4px; background: var(--neutral-bg); border-radius: 10px; }
.tabs-soft button { border: 0; background: none; padding: 6px 14px; border-radius: 8px; font-weight: 600; font-size: 15px; color: var(--muted); cursor: pointer; }
.tabs-soft button.on { background: var(--surface); color: var(--ink); box-shadow: var(--sh); }
html[data-theme="escuro"] .tabs-soft button.on { background: var(--surface-2); }

/* ----------------------------------------------------------------------------- pílulas, avatar */
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; white-space: nowrap; line-height: 20px; }
.pill.proj { background: var(--proj-bg); color: var(--proj-ink); }
.pill.sup { background: var(--sup-bg); color: var(--sup-ink); }
.pill.estr { background: var(--proj-bg); color: var(--proj-ink); }
.pill.crit { background: var(--late-bg); color: var(--late-ink); }
.pill.ok { background: var(--ok-bg); color: var(--ok-ink); }
.pill.warn { background: var(--warn-bg); color: var(--warn-ink); }
.pill.late { background: var(--late-bg); color: var(--late-ink); }
.pill.neutral { background: var(--neutral-bg); color: var(--txt); }
.pill.tt { background: var(--neutral-bg); color: var(--txt); font-weight: 500; }
.pill.ferias { background: var(--ferias-bg); color: var(--ferias); }
.pill.dayoff { background: var(--folga-bg); color: var(--folga); }
.pill.licenca { background: var(--licenca-bg); color: var(--licenca); }
.pill.ausencia { background: var(--ausencia-bg); color: var(--ausencia); }
.pill.open { background: var(--proj-bg); color: var(--proj-ink); }
.pill.closed { background: var(--ok-bg); color: var(--ok-ink); }
.av { width: 26px; height: 26px; flex: none; border-radius: 50%; display: inline-grid; place-items: center; background: var(--cobalt); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.av.lg { width: 36px; height: 36px; font-size: 13px; }
.av.soft { background: var(--proj-bg); color: var(--proj-ink); }
.av.none { background: var(--neutral-bg); color: var(--faint); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }

/* ----------------------------------------------------------------------------- cards e indicadores */
.card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r); box-shadow: var(--sh); }
.card-h { display: flex; align-items: center; gap: 12px; padding: 16px 18px 12px; flex-wrap: wrap; }
.card-h h2 { font-size: 18px; }
.card-h .sub { color: var(--muted); font-size: 13px; }
.card-h .right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.card-b { padding: 0 18px 18px; }
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); }
.kpi { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 14px 16px; text-align: left; box-shadow: var(--sh);
  display: flex; flex-direction: column; gap: 4px; min-width: 0; cursor: default; }
button.kpi { cursor: pointer; font: inherit; color: inherit; }
button.kpi:hover { border-color: var(--line); background: var(--hover); }
button.kpi.on { border-color: var(--teal); box-shadow: inset 0 -2px 0 var(--teal); }
.kpi .l { font-size: 14px; color: var(--muted); }
.kpi .n { font: 700 28px/1.15 var(--mono); color: var(--ink); letter-spacing: -.02em; }
.kpi .s { font-size: 13px; color: var(--muted); }
.kpi .s.up { color: var(--muted); }
.kpi .n.blue { color: var(--proj-ink); } .kpi .n.red { color: var(--late-ink); } .kpi .n.amber { color: var(--sup-ink); }
.kpi .n.green { color: var(--ok-ink); } .kpi .n.cobalt { color: var(--cobalt); }
html[data-theme="escuro"] .kpi .n.cobalt { color: var(--link); }
.kpi .s.red { color: var(--late-ink); font-weight: 600; }

/* tabela compacta */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-weight: 500; color: var(--muted); font-size: 13px; padding: 9px 12px; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: transparent; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line-soft); color: var(--txt); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: var(--hover); }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl td b { color: var(--ink); font-weight: 700; }
.tbl tr.running td { background: var(--ok-bg); }
.empty { padding: 22px 12px; text-align: center; color: var(--muted); font-size: 13px; }

/* ----------------------------------------------------------------------------- cabeçalho do portal / módulo */
.top { background: var(--surface); border-bottom: 1px solid var(--line-soft); position: sticky; top: 0; z-index: 30; }
.top-in { max-width: 1480px; margin: 0 auto; height: 62px; padding: 0 24px; display: flex; align-items: center; gap: 14px; }
.top .crumb { display: flex; align-items: center; gap: 10px; padding-left: 14px; border-left: 1px solid var(--line); height: 28px; font-size: 16px; }
.top .crumb a { color: var(--cobalt); font-weight: 600; }
html[data-theme="escuro"] .top .crumb a { color: var(--link); }
.top .crumb .sep { color: var(--faint); }
.top .crumb b { color: var(--ink); font-weight: 700; }
.top .right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.top .badge-admin { font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 6px; background: var(--neutral-bg); color: var(--txt); }
.themebtn { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; border: 0; background: none; color: var(--muted); cursor: pointer; }
.themebtn:hover { background: var(--hover); color: var(--ink); }
.profile { position: relative; }
.profile > button { display: flex; align-items: center; gap: 8px; border: 0; background: none; cursor: pointer; padding: 3px 6px 3px 3px; border-radius: 22px; color: var(--ink); font-weight: 600; }
.profile > button:hover { background: var(--hover); }
.profile > button .av { width: 32px; height: 32px; font-size: 13px; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 240px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 12px;
  box-shadow: var(--sh-pop); padding: 6px; z-index: 60; }
.menu .who { padding: 8px 10px 10px; border-bottom: 1px solid var(--line-soft); margin-bottom: 4px; }
.menu .who b { display: block; color: var(--ink); }
.menu .who small { color: var(--muted); }
.menu button, .menu a { display: flex; align-items: center; gap: 9px; width: 100%; border: 0; background: none; padding: 8px 10px; border-radius: 8px; text-align: left;
  color: var(--txt); cursor: pointer; font-size: 14px; text-decoration: none; }
.menu button:hover, .menu a:hover { background: var(--hover); text-decoration: none; }
.menu .ic { color: var(--muted); }
.menu hr { border: 0; border-top: 1px solid var(--line-soft); margin: 4px 0; }

/* menu do módulo */
.modnav { background: var(--surface); border-bottom: 1px solid var(--line-soft); }
.modnav-in { max-width: 1480px; margin: 0 auto; padding: 0 24px; display: flex; gap: 6px; }
.modnav a { padding: 12px 12px 11px; font-size: 16px; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; text-decoration: none; }
.modnav a:hover { color: var(--ink); text-decoration: none; }
.modnav a.on { color: var(--ink); font-weight: 700; border-bottom-color: var(--teal); }

/* barra de filtros superiores (fixa logo abaixo do menu) */
.filters { background: var(--surface-2); border-bottom: 1px solid var(--line-soft); position: sticky; top: 62px; z-index: 25; }
.filters-in { max-width: 1480px; margin: 0 auto; padding: 9px 24px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface);
  color: var(--txt); font-size: 14px; cursor: pointer; }
.fbtn:hover { background: var(--hover); }
.fbtn b { color: var(--ink); font-weight: 700; }
.fbtn.on { border-color: var(--cyan); background: var(--sel-bg); }
.fbtn:disabled { opacity: .5; cursor: not-allowed; }
.fbtn .ic { color: var(--muted); }
.drop { position: absolute; z-index: 70; min-width: 230px; max-width: 320px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 12px; box-shadow: var(--sh-pop); padding: 6px; }
.drop .opt { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 9px; border: 0; background: none; border-radius: 7px; text-align: left; cursor: pointer; color: var(--txt); font-size: 14px; }
.drop .opt:hover, .drop .opt.hi { background: var(--hover); }
.drop .opt.on { color: var(--ink); font-weight: 700; }
.drop .opt input { accent-color: var(--cobalt); margin: 0; }
.drop .opt small { margin-left: auto; color: var(--muted); font-weight: 400; }
.drop .list { max-height: 280px; overflow: auto; }
.drop .in { min-height: 32px; margin-bottom: 4px; }
.drop .foot { display: flex; justify-content: space-between; padding: 6px 4px 2px; border-top: 1px solid var(--line-soft); margin-top: 4px; }
.drop .sec { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); padding: 6px 9px 3px; }

/* conteúdo */
.page { max-width: 1480px; margin: 0 auto; padding: 22px 24px 48px; display: flex; flex-direction: column; gap: 16px; }
.page-h { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.page-h h1 { font-size: 26px; }
.page-h .right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bar .grow { flex: 1 1 260px; min-width: 200px; }
.foot-ver { text-align: center; padding: 18px 0 28px; font: 500 11px var(--mono); letter-spacing: .12em; color: var(--faint); }

/* ----------------------------------------------------------------------------- toast, modal, painel lateral */
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 400; background: var(--ink); color: var(--surface); padding: 11px 16px;
  border-radius: 10px; font-weight: 500; box-shadow: var(--sh-pop); display: flex; align-items: center; gap: 12px; max-width: min(640px, 92vw); }
html[data-theme="escuro"] .toast { background: #FFFFFF; color: #0A1527; }
.toast.err { background: var(--late-ink); color: #fff; }
.toast .acts { display: flex; gap: 8px; margin-left: 6px; }
.toast .acts button { border: 1px solid rgba(255, 255, 255, .45); background: none; color: inherit; border-radius: 7px; padding: 3px 9px; font-weight: 600; cursor: pointer; font-size: 13px; }
html[data-theme="escuro"] .toast .acts button { border-color: rgba(10, 21, 39, .3); }
.ov { position: fixed; inset: 0; background: rgba(10, 21, 39, .42); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
html[data-theme="escuro"] .ov { background: rgba(0, 0, 0, .55); }
.modal { width: min(520px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: var(--surface); border-radius: 14px; box-shadow: var(--sh-pop); border: 1px solid var(--line-soft); }
.modal.lg { width: min(760px, 100%); }
.modal-h { display: flex; align-items: center; gap: 10px; padding: 18px 20px 12px; }
.modal-h h2 { font-size: 20px; }
.modal-h .x { margin-left: auto; }
.modal-b { padding: 0 20px 18px; display: flex; flex-direction: column; gap: 12px; }
.modal-f { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line-soft); background: var(--surface-2); border-radius: 0 0 14px 14px; }
.ov.side { justify-content: flex-end; padding: 0; align-items: stretch; }
.drawer { width: min(820px, 100vw); height: 100vh; background: var(--surface); display: flex; flex-direction: column; box-shadow: var(--sh-pop); border-left: 1px solid var(--line-soft); }
.drawer.wide { width: min(900px, 100vw); }
.drawer-h { display: flex; align-items: center; gap: 10px; padding: 18px 22px 14px; border-bottom: 1px solid var(--line-soft); }
.drawer-h h2 { font-size: 22px; font-weight: 800; }
.drawer-h .x { margin-left: auto; }
.drawer-b { flex: 1; overflow: auto; }
.drawer-f { display: flex; align-items: center; gap: 10px; padding: 12px 22px; border-top: 1px solid var(--line-soft); background: var(--surface-2); }
.drawer-f .hint { color: var(--muted); font-size: 13px; margin-right: auto; }
.confirm .modal-b p { margin: 0; color: var(--txt); }

/* ----------------------------------------------------------------------------- login (igual ao do MoveLead) e hub */
.auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--bg); }
.auth-in { width: 100%; max-width: 400px; }
.auth .logo-c { display: flex; justify-content: center; margin-bottom: 26px; }
.auth .box { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 14px; padding: 30px 28px; box-shadow: 0 10px 30px rgba(10, 21, 39, .08); }
html[data-theme="escuro"] .auth .box { box-shadow: 0 20px 50px rgba(0, 0, 0, .4); }
.auth h1 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.auth .lead { color: var(--muted); margin: 0 0 22px; font-size: 15px; }
.auth form { display: flex; flex-direction: column; gap: 16px; }
.auth .cap { font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.auth .in { min-height: 44px; border-radius: 10px; font-size: 15px; background: var(--surface-2); }
.auth .btn.primary { min-height: 44px; margin-top: 4px; font-size: 15px; }
.auth .err { color: var(--late-ink); font-size: 13px; margin: 0; }
.auth .help { margin-top: 18px; text-align: center; font-size: 13px; color: var(--muted); }
.auth .theme-corner { position: fixed; top: 16px; right: 16px; }

.hub { max-width: 1180px; margin: 0 auto; padding: 36px 24px; }
.hub .eyebrow { font: 500 12px var(--font); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.hub h1 { font-size: 32px; margin: 4px 0 4px; }
.hub .lead { color: var(--muted); margin: 0 0 26px; font-size: 16px; }
.mods { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.mod { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--sh); }
.mod .mi { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--accent); color: var(--accent); }
.mod h2 { font-size: 20px; }
.mod p { margin: 0 0 8px; color: var(--muted); font-size: 15px; flex: 1; }
.mod .btn { width: 100%; }
.mod.soon { opacity: .75; }

/* ----------------------------------------------------------------------------- painel */
.destaque td:first-child, .tarefas td:first-child { font-family: var(--mono); }
.timecell { font-family: var(--mono); font-weight: 500; }
.running .timecell { color: var(--ok-ink); }
.apontar { display: flex; gap: 6px; justify-content: flex-end; }
.notif { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid var(--sup); background: var(--sup-bg); border-radius: var(--r); color: var(--txt); }
.notif .ic { color: var(--sup-ink); margin-top: 2px; }
.notif .acts { margin-left: auto; display: flex; gap: 8px; }

/* ----------------------------------------------------------------------------- kanban */
.kb { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 6px; align-items: start; }
.kcol { background: var(--neutral-bg); border-radius: var(--r); padding: 10px; min-height: 220px; display: flex; flex-direction: column; gap: 10px; }
.kcol.over { outline: 2px dashed var(--cyan); outline-offset: -2px; }
.kcol-h { display: flex; align-items: center; gap: 8px; padding: 2px 4px 2px; }
.kcol-h b { color: var(--ink); font-size: 15px; font-weight: 700; }
.kcol-h small { color: var(--muted); font-size: 12px; }
.kcol-h .cnt { margin-left: auto; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; background: var(--surface); display: inline-grid; place-items: center;
  font: 600 12px var(--mono); color: var(--txt); border: 1px solid var(--line-soft); }
.kcard { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 10px; padding: 11px 12px; display: flex; flex-direction: column; gap: 6px; cursor: pointer; box-shadow: var(--sh); }
.kcard:hover { border-color: var(--line); }
.kcard.drag { opacity: .45; }
.kcard.running { border: 2px solid var(--ok); background: var(--ok-bg); }
.kcard .r1 { display: flex; align-items: center; gap: 8px; }
.kcard .num { font: 500 13px var(--mono); color: var(--muted); }
.kcard .r1 .pill { margin-left: auto; }
.kcard .t { font-weight: 700; color: var(--ink); font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.kcard .r3 { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); min-height: 26px; }
.kcard .r3 .who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kcard .r3 .right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.kcard .prazo { font-family: var(--mono); font-size: 12.5px; }
.kcard .prazo.late { color: var(--late-ink); font-weight: 600; }
.kcol .none { text-align: center; color: var(--muted); font-size: 13px; padding: 16px 0; }
.lane { border: 1px solid var(--line-soft); border-radius: var(--r); background: var(--surface); }
.lane + .lane { margin-top: 12px; }
.lane-h { display: flex; align-items: center; gap: 10px; padding: 11px 14px; cursor: pointer; user-select: none; }
.lane-h b { color: var(--ink); font-size: 15px; }
.lane-h small { color: var(--muted); }
.lane-h .ic.chev { transition: transform .15s; color: var(--muted); }
.lane.closed .lane-h .ic.chev { transform: rotate(-90deg); }
.lane.closed .lane-b { display: none; }
.lane-b { padding: 0 12px 12px; }

/* ----------------------------------------------------------------------------- detalhe do chamado (painel lateral) */
.dt-top { padding: 18px 22px 14px; border-bottom: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 8px; }
.dt-top .r1 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dt-top .r1 .num { font: 600 15px var(--mono); color: var(--muted); }
.dt-top h2 { font-size: 22px; font-weight: 800; line-height: 1.25; }
.dt-top .acts { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.dt-sec { padding: 16px 22px; border-bottom: 1px solid var(--line-soft); }
.dt-sec h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 15px; }
.dt-sec h3 .ic { color: var(--accent); }
.dt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 18px; }
.dt-grid .k { font-size: 12px; color: var(--muted); }
.dt-grid .v { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.dt-desc { color: var(--txt); line-height: 1.6; overflow-wrap: anywhere; }
.dt-desc img { max-width: 100%; border-radius: 6px; }
.note { display: flex; gap: 10px; padding: 10px 0; }
.note + .note { border-top: 1px solid var(--line-soft); }
.note .body { min-width: 0; flex: 1; }
.note .meta { font-size: 12.5px; color: var(--muted); }
.note .meta b { color: var(--ink); font-weight: 600; }
.note .txt { overflow-wrap: anywhere; }
.note .txt p { margin: 4px 0; }
.note .files { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.note.sys .txt { color: var(--muted); font-size: 13px; }
.filechip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border: 1px solid var(--line); border-radius: 7px; font-size: 12.5px; background: var(--surface); cursor: pointer; color: var(--txt); }

/* editor rico */
.rte { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.rte:focus-within { border-color: var(--cyan); }
.rte-tb { display: flex; gap: 2px; padding: 4px; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.rte-tb button { width: 28px; height: 28px; border: 0; background: none; border-radius: 6px; cursor: pointer; color: var(--muted); display: grid; place-items: center; }
.rte-tb button:hover { background: var(--hover); color: var(--ink); }
.rte-area { min-height: 70px; max-height: 300px; overflow: auto; padding: 9px 11px; outline: none; color: var(--ink); }
.rte-area:empty::before { content: attr(data-ph); color: var(--faint); }
.rte-area img { max-width: 100%; }

/* ----------------------------------------------------------------------------- novo chamado */
.nc-sec { padding: 16px 22px; border-bottom: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 12px; }
.nc-sec > h3 { display: flex; align-items: center; gap: 8px; font-size: 17px; }
.nc-sec > h3 .ic { color: var(--cobalt); }
html[data-theme="escuro"] .nc-sec > h3 .ic { color: var(--link); }
.nc-sec > h3 small { font-weight: 400; color: var(--muted); font-size: 13px; }
.nc-sec > h3 .right { margin-left: auto; }
.nc-sec.plan { background: var(--surface-2); }
.nc-sub { font-size: 13px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 7px; margin-top: 4px; }
.nc-sub .ic { color: var(--muted); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips button { border: 1px solid var(--line); background: var(--surface); color: var(--ink); min-height: 34px; padding: 0 12px; border-radius: 8px; cursor: pointer; font-weight: 500; }
.chips button.on { border-color: var(--teal); background: var(--accent-bg); font-weight: 700; }
.picker { position: relative; }
.picker .val { display: flex; align-items: center; gap: 9px; min-height: 40px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); cursor: pointer; color: var(--ink); }
.picker .val .ph { color: var(--faint); }
.picker .val .x { margin-left: auto; }

/* ----------------------------------------------------------------------------- tarefas */
.tk-top { display: grid; grid-template-columns: minmax(230px, .8fr) minmax(360px, 1.45fr) minmax(250px, 1fr); gap: 14px; }
.tk-card { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.tk-card > h2 { display: flex; align-items: center; gap: 8px; font-size: 17px; }
.tk-card > h2 .ic { color: var(--cobalt); }
html[data-theme="escuro"] .tk-card > h2 .ic { color: var(--link); }
.clock { font: 500 36px/1.1 var(--mono); color: var(--ink); text-align: center; letter-spacing: .02em; padding: 4px 0; }
.clock.run { color: var(--ok-ink); }
.btn.stop { border-color: var(--late); color: var(--late-ink); }
.btn.stop:hover { background: var(--late-bg); }
.mm-big { display: flex; align-items: baseline; gap: 6px; }
.mm-big b { font: 700 28px var(--mono); color: var(--ink); }
.mm-big span { color: var(--muted); }
.splitbar { height: 8px; border-radius: 6px; background: var(--neutral-bg); overflow: hidden; display: flex; }
.splitbar i { display: block; height: 100%; }
.splitbar .p { background: var(--proj); }
.splitbar .s { background: var(--sup); }
.mm-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.mm-row b { color: var(--ink); }
.mm-pct { color: var(--cobalt); font-weight: 700; font-size: 16px; }
html[data-theme="escuro"] .mm-pct { color: var(--link); }
.mm-miss { color: var(--late-ink); font-size: 13px; font-weight: 500; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.mm-miss:hover { text-decoration: underline; }
.lh-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; }
.lh-grid2 { display: grid; grid-template-columns: 1.3fr .5fr .5fr; gap: 10px; }
.lh-foot { display: flex; align-items: center; gap: 10px; }
.lh-foot .check { margin-right: auto; }

/* calendário */
.cal-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cal-h h2 { font-size: 20px; }
.cal-h .right { margin-left: auto; color: var(--muted); }
.cal-h .right b { color: var(--ink); }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.cal .wd { text-align: center; font-weight: 500; color: var(--muted); font-size: 14px; padding: 2px 0; }
.day { min-height: 96px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 10px; padding: 8px 9px; display: flex; flex-direction: column; gap: 4px;
  cursor: pointer; min-width: 0; position: relative; }
.day:hover { border-color: var(--line); }
.day.off { background: var(--surface-2); }
.day.out { opacity: .45; }
.day.future { background: var(--surface-2); }
.day.miss { border-color: var(--late); }
.day.today { border: 2px solid var(--teal); }
.day.over { outline: 2px dashed var(--cyan); }
.day .dh { display: flex; align-items: center; gap: 6px; }
.day .dn { font-weight: 700; color: var(--ink); }
.day.off .dn, .day.future .dn { color: var(--faint); font-weight: 500; }
.day .tot { margin-left: auto; font: 500 12px var(--mono); padding: 0 6px; border-radius: 5px; color: var(--faint); }
.day .tot.has { background: var(--ok-bg); color: var(--ok-ink); }
.day .tot.miss { background: var(--late-bg); color: var(--late-ink); }
.day .plus { width: 20px; height: 20px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); display: grid; place-items: center; color: var(--cobalt); cursor: pointer; padding: 0; }
.day .hol { color: var(--cobalt); font-size: 12.5px; font-weight: 500; line-height: 1.3; }
html[data-theme="escuro"] .day .hol { color: var(--link); }
.day .ent { font-size: 12px; background: var(--proj-bg); color: var(--proj-ink); border-radius: 5px; padding: 1px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.day .ent.s { background: var(--sup-bg); color: var(--sup-ink); }
.day .ent.fail { background: var(--late-bg); color: var(--late-ink); }
.day .more { font-size: 12px; color: var(--muted); }
.day .abs { font-size: 12px; font-weight: 600; }
.cal-legend { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.cal-legend .sq { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 4px; }

/* ----------------------------------------------------------------------------- gestão */
.cap-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.hpc { display: grid; grid-template-columns: minmax(120px, 1.1fr) minmax(90px, 1fr) minmax(130px, 1.15fr) 52px; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.hpc .nm b { display: block; color: var(--ink); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hpc .nm small { color: var(--muted); }
.hbar { position: relative; height: 8px; border-radius: 5px; background: var(--neutral-bg); display: flex; overflow: visible; }
.hbar i { height: 100%; display: block; }
.hbar i:first-child { border-radius: 5px 0 0 5px; }
.hbar .p { background: var(--proj); } .hbar .s { background: var(--sup); }
.hbar .mk { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); border-radius: 1px; }
.hpc .ps { font: 400 12.5px var(--mono); color: var(--muted); line-height: 1.45; }
.hpc .ps .late { color: var(--late-ink); }
.hpc .tt { font: 700 15px var(--mono); color: var(--ink); text-align: right; }
.legend { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.legend .sq { display: inline-block; width: 11px; height: 11px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.hm { display: grid; gap: 4px; align-items: center; font-size: 12.5px; }
.hm .nm { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm .dn { font: 400 10px var(--mono); color: var(--muted); text-align: center; }
.hm .c { aspect-ratio: 1; border-radius: 3px; border: 1px solid transparent; min-width: 0; cursor: default; }
.hm .c.com { background: var(--proj); }
.hm .c.sem { border-color: var(--late); background: var(--surface); }
.hm .c.ausencia { border-color: var(--ok); background: var(--surface); }
.hm .c.off { background: var(--neutral-bg); }
.hm .c.futuro { background: var(--neutral-bg); opacity: .5; }
.owe { display: flex; gap: 8px; flex-wrap: wrap; }
.owe button { border: 0; background: var(--late-bg); color: var(--late-ink); border-radius: 7px; padding: 4px 10px; font-weight: 600; font-size: 13px; cursor: pointer; }
.owe button:hover { filter: brightness(.97); }
.tl { display: grid; align-items: center; row-gap: 0; font-size: 13px; }
.tl .nm { color: var(--ink); padding: 6px 0; border-top: 1px solid var(--line-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl .cell { border-top: 1px solid var(--line-soft); height: 100%; position: relative; }
.tl .bar { position: absolute; top: 7px; height: 16px; border-radius: 6px; border: 1.5px solid; font-size: 11px; padding: 0 6px; line-height: 13px; overflow: hidden; white-space: nowrap; }
.tl .bar.ferias { border-color: var(--ferias); color: var(--ferias); background: var(--ferias-bg); }
.tl .bar.dayoff { border-color: var(--folga); color: var(--folga); background: var(--folga-bg); }
.tl .bar.licenca { border-color: var(--licenca); color: var(--licenca); background: var(--licenca-bg); }
.tl .bar.ausencia { border-color: var(--ausencia); color: var(--ausencia); background: var(--ausencia-bg); }
.tl .bar.hol { border-color: var(--faint); background: var(--neutral-bg); }
.acc-h { display: flex; align-items: center; gap: 10px; padding: 14px 18px; cursor: pointer; }
.acc-h b { color: var(--ink); font-size: 16px; }
.acc-h .ic.sp { color: var(--cobalt); }
.acc-h .right { margin-left: auto; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.fasebar { display: flex; height: 26px; border-radius: 7px; overflow: hidden; }
.fasebar button { border: 0; color: #fff; font-weight: 700; font-size: 12.5px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 8px; min-width: 0; }
.fasebar button:hover { filter: brightness(1.08); }
.mx th, .mx td { white-space: nowrap; }
.mx td.fase { color: var(--cobalt); font-weight: 700; }
html[data-theme="escuro"] .mx td.fase { color: var(--link); }
.mx td.cellnum { cursor: pointer; font-family: var(--mono); text-align: right; }
.mx td.cellnum:hover { background: var(--hover); }
.mx tr.total td { background: var(--surface-2); font-weight: 700; color: var(--ink); }
.mx .tot { font-weight: 700; color: var(--ink); font-family: var(--mono); text-align: right; }
.svc { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.svc .s { border: 1px solid var(--line-soft); border-left: 4px solid var(--c); border-radius: 10px; padding: 12px 14px; }
.svc .s .l { color: var(--muted); font-size: 14px; }
.svc .s .n { font: 700 26px var(--mono); color: var(--c); }
.svc .s .d { color: var(--muted); font-size: 13px; }
.prev { position: relative; }
.prev-row { display: grid; grid-template-columns: 260px 1fr; align-items: center; min-height: 27px; border-top: 1px solid var(--line-soft); font-size: 13px; }
.prev-row .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); padding-right: 10px; cursor: pointer; }
.prev-row .nm:hover { text-decoration: underline; }
.prev-row .tr { position: relative; height: 26px; }
.prev-axis { display: grid; grid-template-columns: 260px 1fr; font-size: 12.5px; color: var(--muted); }
.prev-axis .ticks { position: relative; height: 18px; }
.prev-axis .ticks span { position: absolute; transform: translateX(-50%); }
.prev .grid-v { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line-soft); }
.prev .today { position: absolute; top: 18px; bottom: 0; border-left: 1.5px dashed var(--ink); }
.prev .dotp { position: absolute; top: 8px; width: 11px; height: 11px; border-radius: 50%; transform: translateX(-50%); }
.prev .dotp.ok { background: var(--ok); } .prev .dotp.late { background: var(--late); }
.prev .seg-l { position: absolute; top: 11px; height: 4px; background: var(--ok-bg); border-radius: 2px; }
html[data-theme="escuro"] .prev .seg-l { background: rgba(16, 185, 129, .3); }
.prev .lab { position: absolute; top: 4px; font: 500 12px var(--mono); white-space: nowrap; }
.prev .lab.ok { color: var(--ok-ink); } .prev .lab.late { color: var(--late-ink); }

/* ----------------------------------------------------------------------------- configurações */
.cfg { display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: calc(100vh - 62px); max-width: 1480px; margin: 0 auto; }
.cfg-nav { border-right: 1px solid var(--line-soft); padding: 18px 12px; background: var(--surface-2); }
.cfg-nav .grp { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding: 12px 10px 6px; }
.cfg-nav .grp:first-child { padding-top: 2px; }
.cfg-nav a { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 8px; color: var(--txt); font-size: 14px; text-decoration: none; border-left: 3px solid transparent; }
.cfg-nav a:hover { background: var(--hover); text-decoration: none; }
.cfg-nav a .ic { color: var(--cobalt); }
html[data-theme="escuro"] .cfg-nav a .ic { color: var(--link); }
.cfg-nav a.on { background: var(--accent-bg); color: var(--ink); font-weight: 700; border-left-color: var(--teal); }
.cfg-main { padding: 22px 26px 50px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.cfg-h { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.cfg-h h1 { font-size: 22px; font-weight: 800; }
.cfg-h p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.cfg-h .right { margin-left: auto; }
.saved { color: var(--ok-ink); font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.cfg-row { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-top: 1px solid var(--line-soft); min-height: 46px; }
.cfg-row:first-child { border-top: 0; }
.cfg-row .grip { color: var(--faint); cursor: grab; }
.cfg-row .ord { font: 500 12px var(--mono); color: var(--muted); width: 18px; }
.cfg-row b { color: var(--ink); }
.cfg-row .right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.cfg-row.dim { opacity: .55; }
.cfg-row.drag { opacity: .4; }
.cfg-row.over { box-shadow: inset 0 2px 0 var(--cyan); }
.pc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; }
.pc { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.pc .hd { display: flex; align-items: center; gap: 10px; }
.pc .hd b { color: var(--ink); display: block; }
.pc .hd small { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.pc .hd .right { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ok-ink); font-weight: 600; }
.pc .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.pc .fld > label { font-size: 12px; font-weight: 500; color: var(--muted); }
.pc .in { min-height: 34px; padding: 5px 9px; }
.areas-cols { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: start; }
.areas-cols .col { border: 1px dashed var(--line); border-radius: 10px; padding: 8px; min-height: 160px; display: flex; flex-direction: column; gap: 6px; }
.areas-cols .col.in-area { border-color: var(--cyan); }
.areas-cols .col.over { background: var(--sel-bg); }
.areas-cols .ttl { display: flex; align-items: center; font-weight: 700; color: var(--ink); font-size: 13px; padding: 0 2px 4px; }
.areas-cols .ttl .cnt { margin-left: auto; font: 500 11px var(--mono); background: var(--neutral-bg); padding: 0 7px; border-radius: 10px; }
.areas-cols .person { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--surface); cursor: grab; font-size: 14px; color: var(--ink); }
.areas-cols .person .ic { color: var(--faint); }
.areas-cols .swap { align-self: center; color: var(--cyan); }
.matrix th { text-align: center; }
.matrix td { text-align: center; }
.matrix td:first-child, .matrix th:first-child { text-align: left; }
.matrix input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--cobalt); }
.list-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.list-card { border: 1px solid var(--line-soft); border-radius: 10px; padding: 10px 12px; background: var(--surface); cursor: pointer; text-align: left; display: flex; align-items: center; gap: 8px; }
.list-card:hover { border-color: var(--line); }
.list-card.on { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); }
.list-card b { color: var(--ink); display: block; font-size: 14px; }
.list-card small { color: var(--muted); font-size: 12px; }
.list-card .ic.chev { margin-left: auto; color: var(--faint); }
.grp-title { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 6px 0 -4px; }
.log-item { padding: 9px 14px; border-top: 1px solid var(--line-soft); font-size: 13px; }
.log-item .meta { color: var(--muted); font-family: var(--mono); font-size: 12px; }
.log-item pre { white-space: pre-wrap; margin: 4px 0 0; font: 12px var(--mono); color: var(--txt); max-height: 160px; overflow: auto; }

/* ----------------------------------------------------------------------------- impressão (Exportar relatório) */
@media print {
  .top, .modnav, .filters, .no-print, .foot-ver { display: none !important; }
  body, html { background: #fff !important; }
  .card, .kpi { box-shadow: none !important; break-inside: avoid; }
}

/* ----------------------------------------------------------------------------- responsivo */
@media (max-width: 1180px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tk-top { grid-template-columns: 1fr 1fr; }
  .tk-top > :nth-child(2) { grid-column: 1 / -1; order: 3; }
  .cap-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .top-in, .modnav-in, .filters-in, .page { padding-left: 14px; padding-right: 14px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tk-top { grid-template-columns: 1fr; }
  .grid2, .grid3, .grid4, .dt-grid { grid-template-columns: 1fr; }
  .cfg { grid-template-columns: 1fr; }
  .cfg-nav { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .top .crumb { font-size: 14px; }
  .logo .wm small { display: none; }
}

/* ----------------------------------------------------------------------------- complementos das telas */
button.picker { display: block; width: 100%; border: 0; background: none; padding: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; }
button.picker:disabled { cursor: default; }
button.picker > .ic { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.picker .val { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding-right: 30px; }
.fld.span2 { grid-column: span 2; }
.saved { opacity: 0; transition: opacity .2s; }
.saved.on { opacity: 1; }
.pc.dim, .list-card.dim, .cfg-row.dim { opacity: .6; }
.seg button .ic { vertical-align: -3px; }
.nc { display: flex; flex-direction: column; }
.filechip .iconbtn { width: 18px; height: 18px; min-height: 0; }
.drawer-b .dt-top, .drawer-b .dt-sec { padding-left: 22px; padding-right: 22px; }
@media print { body.print-exec .cap-grid, body.print-exec .mx, body.print-exec #gIa, body.print-exec .prev-row:nth-child(n+12) { display: none !important; } }
.kcard .r1 .pill { margin-left: 0; }
.page > .cfg { width: 100%; }
.areas-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }

/* ============================================================================= ajustes da homologação (rodada 2) */
/* respiro interno: nenhum texto colado na borda do card */
.card-b { padding: 18px 22px 22px; }
.card-h + .card-b, .card-h + div > .card-b { padding-top: 2px; }
.card-h { padding: 18px 22px 12px; }
.tbl th:first-child, .tbl td:first-child { padding-left: 22px; }
.tbl th:last-child, .tbl td:last-child { padding-right: 22px; }
.cfg-main { padding: 26px 30px 50px; gap: 16px; }

/* kanban: colunas e cards com mais contraste (cinza) e rolagem lateral em vez de cortar */
.kb { grid-auto-columns: 268px; grid-template-columns: none; overflow-x: auto; padding-bottom: 12px; scrollbar-width: thin; }
.kb::-webkit-scrollbar { height: 10px; }
.kb::-webkit-scrollbar-thumb { background: #B8C2D1; border-radius: 6px; }
.kcol { background: #DCE2EB; border: 1px solid #CDD5E1; }
html[data-theme="escuro"] .kcol { background: #0B1A33; border-color: rgba(200, 208, 220, .12); }
.kcard { border-color: #C8D0DC; box-shadow: 0 1px 2px rgba(10, 21, 39, .06); }
.kcard:hover { border-color: var(--cyan); }
html[data-theme="escuro"] .kcard { border-color: rgba(200, 208, 220, .18); background: #10264A; }
/* coluna vazia fica estreita (só o título na vertical) para caber mais etapas na tela */
.kcol.vazia { width: 52px; min-width: 52px; padding: 10px 6px; align-items: center; cursor: default; }
.kcol.vazia .kcol-h { writing-mode: vertical-rl; transform: rotate(180deg); padding: 4px 0; gap: 10px; }
.kcol.vazia .kcol-h .cnt { margin: 0; transform: rotate(180deg); }
.kcol.vazia .none { display: none; }
.kb.ajusta { grid-auto-columns: auto; grid-auto-flow: column; display: flex; }
.kb.ajusta > .kcol:not(.vazia) { width: 268px; min-width: 268px; }
.kb-hint { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }

/* card de tarefa em colunas: nº e título alinhados; prazo, horas e ações sempre no mesmo lugar */
.kcard.tk { gap: 8px; }
.tk-r1 { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 6px; }
.tk-r1 .num { font: 500 13px var(--mono); color: var(--muted); }
.tk-r1 .pill { justify-self: end; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-t { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 6px; }
.tk-t b { grid-column: 2; color: var(--ink); font-weight: 700; line-height: 1.3; }
.tk-f { display: grid; grid-template-columns: 46px 52px 68px minmax(0, 1fr) auto auto; align-items: center; gap: 6px; font: 500 12.5px var(--mono); color: var(--muted); }
.tk-f .pz { grid-column: 2; }
.tk-f .pz.late { color: var(--late-ink); font-weight: 700; }
.tk-f .hr { grid-column: 3; color: var(--ink); }
.kcard.running .tk-f .hr { color: var(--ok-ink); font-weight: 700; }
.tk-f .av { grid-column: 5; }
.tk-f .iconbtn { grid-column: 6; }

/* seletores (picker) com texto longo: corta com reticências */
button.picker .val { display: flex; min-width: 0; }
button.picker .val .tx { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* editor de texto: amostra de cor pequena */
.rte-tb label { position: relative; display: inline-flex; align-items: center; cursor: pointer; padding: 0 6px; }
.rte-tb label input[type=color] { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.rte-tb .colorbar { display: block; height: 3px; border-radius: 2px; margin-top: 1px; }

/* modal grande centralizado (Novo chamado) */
.ov.center { align-items: center; justify-content: center; padding: 20px; }
.drawer.center { width: min(900px, 96vw); height: auto; max-height: calc(100vh - 40px); border-radius: 14px; border: 1px solid var(--line-soft); overflow: hidden; }
.nc-sec { padding: 16px 22px; border-bottom: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 12px; }
.nc-sec.plan { background: var(--surface-2); padding-top: 12px; padding-bottom: 12px; }
.nc-sec.plan > h3 { margin: 0; cursor: pointer; }
.nc-att { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 0; color: var(--cobalt); font-weight: 600; font-size: 13.5px; cursor: pointer; }
html[data-theme="escuro"] .nc-att { color: var(--link); }

/* Configurações: cards de pessoa, linhas de lista e afins */
.pc { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r); box-shadow: var(--sh); padding: 16px 18px; }
.pc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pc .hd .av { width: 34px; height: 34px; }
.pc .hd .right .sw + span { color: var(--ok-ink); }
.cfg-foot { font-size: 12.5px; color: var(--ok-ink); display: flex; align-items: center; gap: 6px; }
.cfg-note { font-size: 12.5px; color: var(--muted); }
.lrow { display: grid; grid-template-columns: 18px 26px minmax(0, 1fr) auto auto auto auto; align-items: center; gap: 10px; padding: 10px 22px; border-top: 1px solid var(--line-soft); min-height: 46px; }
.lrow:first-child { border-top: 0; }
.lrow.dim { opacity: .55; }
.lrow.drag { opacity: .4; }
.lrow .grip { color: var(--faint); cursor: grab; display: grid; }
.lrow .n { font: 500 12.5px var(--mono); color: var(--muted); }
.lrow b { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lrow .in { min-height: 32px; }
.lrow .meta { color: var(--muted); font-size: 13px; white-space: nowrap; }
.ladd { display: flex; gap: 10px; padding: 12px 22px 16px; border-top: 1px solid var(--line-soft); }
.ladd .in { flex: 1; }
.lgrp { font: 600 11px var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 6px 0 -4px; }
.lcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.secpill { border: 1px solid var(--line); background: var(--surface); border-radius: 6px; padding: 3px 10px; font-size: 12.5px; color: var(--txt); cursor: pointer; }
.secpill:hover { border-color: var(--cyan); }
.st-pill { border: 0; border-radius: 6px; padding: 3px 10px; font-size: 12px; font-weight: 600; cursor: pointer; }
.st-pill.open { background: var(--proj-bg); color: var(--proj-ink); }
.st-pill.closed { background: var(--ok-bg); color: var(--ok-ink); }
.when { color: var(--muted); font-size: 12.5px; }
.when.now { color: var(--accent); font-weight: 600; }

/* calendário pop-up (feriados e ausências) */
.dp { padding: 12px; min-width: 268px; }
.dp-h { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.dp-h b { flex: 1; text-align: center; color: var(--ink); text-transform: capitalize; }
.dp-g { display: grid; grid-template-columns: repeat(7, 34px); gap: 2px; }
.dp-g .wd { font-size: 11px; color: var(--muted); text-align: center; padding: 2px 0; }
.dp-g button { height: 32px; border: 0; background: none; border-radius: 8px; color: var(--txt); font: 500 13px var(--mono); cursor: pointer; position: relative; }
.dp-g button:hover { background: var(--hover); }
.dp-g button.out { color: var(--faint); }
.dp-g button.wk { color: var(--muted); }
.dp-g button.today { box-shadow: inset 0 0 0 1.5px var(--teal); }
.dp-g button.sel, .dp-g button.edge { background: var(--brand); color: #fff; font-weight: 700; }
.dp-g button.mid { background: var(--accent-bg); border-radius: 0; }
.dp-g button.hol::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--sup); }
.dp-g button.busy::before { content: ""; position: absolute; left: 6px; right: 6px; top: 3px; height: 3px; border-radius: 2px; background: var(--late); opacity: .7; }
.dp-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.dp-quick button { border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 3px 10px; font-size: 12.5px; cursor: pointer; color: var(--txt); }
.dp-quick button:hover { border-color: var(--cyan); }
.datebtn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--txt); font: inherit; cursor: pointer; min-width: 170px; justify-content: space-between; }
.datebtn .ph { color: var(--faint); }
.datebtn:hover { border-color: var(--cyan); }
.range2 { display: grid; grid-template-columns: repeat(2, auto); gap: 22px; justify-content: center; }
.ovl { display: flex; flex-direction: column; gap: 6px; }
.ovl .it { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line-soft); border-radius: 8px; font-size: 13.5px; }
.ovl .it.warn { border-color: var(--sup); background: var(--sup-bg); }

/* log técnico */
.log-item { padding: 12px 22px; border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 4px; }
.log-item:first-child { border-top: 0; }
.log-item .meta { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.log-item pre { margin: 4px 0 0; padding: 10px 12px; background: var(--surface-2); border-radius: 8px; font: 12px/1.5 var(--mono); white-space: pre-wrap; word-break: break-word; max-height: 220px; overflow: auto; color: var(--txt); }

/* IA */
.chiplist { display: flex; flex-wrap: wrap; gap: 8px; }
.chiplist .chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 6px 5px 12px; border-radius: 16px; background: var(--accent-bg); color: var(--ink); font-size: 13.5px; font-weight: 500; }
.chiplist .chip button { border: 0; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; }
.chiplist .chip button:hover { background: var(--hover); color: var(--late-ink); }
.areas-cols .person { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--surface); cursor: grab; font-size: 13.5px; color: var(--ink); }
.areas-cols .person:hover { border-color: var(--cyan); }
.areas-cols .person > svg { color: var(--faint); flex: none; }
.list-card > span { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.list-card b { color: var(--ink); font-weight: 700; }
.list-card small { color: var(--muted); font-size: 12px; }
.list-card .chev { margin-left: auto; color: var(--faint); }
button.picker { min-width: 0; max-width: 100%; }
button.picker .val { flex: 1; overflow: hidden; align-items: center; gap: 6px; }
#tkTimer, #tkTimer > * { min-width: 0; }
#tkTimer button.picker { width: 100%; }
/* card de tarefa (ajuste): título em largura total, rodapé em colunas fixas */
.tk-r1 { grid-template-columns: minmax(0, auto) 1fr auto; }
.tk-t { display: block; }
.tk-t b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tk-f { grid-template-columns: 50px 60px minmax(0, 1fr) auto auto; }
.tk-f .pz { grid-column: 1; }
.tk-f .hr { grid-column: 2; }
.tk-f .av { grid-column: 4; }
.tk-f .iconbtn, .tk-f > span:last-child { grid-column: 5; }
.tk-f .iconbtn { width: 28px; height: 28px; }
.tk-f > span:last-child:empty { width: 28px; }
.dp-yr { border: 1px solid transparent; background: none; color: var(--ink); font: 700 14px var(--font); padding: 1px 2px; border-radius: 6px; cursor: pointer; }
.dp-yr:hover { border-color: var(--line); }
.drop { z-index: 320; }
/* log técnico */
.lg { border-top: 1px solid var(--line-soft); border-left: 3px solid var(--late); }
.lg:first-child { border-top: 0; border-top-left-radius: var(--r); }
.lg:last-child { border-bottom-left-radius: var(--r); }
.lg.warn { border-left-color: var(--sup); }
.lg-h { display: flex; align-items: flex-start; gap: 12px; padding: 14px 22px 14px 19px; cursor: pointer; }
.lg-h:hover { background: var(--hover); }
.lg-ic { color: var(--late-ink); display: grid; padding-top: 1px; }
.lg.warn .lg-ic { color: var(--sup-ink); }
.lg-m { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.lg-m > b { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.lg-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 12.5px; color: var(--muted); }
.lg-tags .tag { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 6px; background: var(--neutral-bg); color: var(--txt); }
.lg-n { font: 700 12.5px var(--mono); background: var(--late-bg); color: var(--late-ink); padding: 2px 8px; border-radius: 10px; align-self: center; }
.lg.warn .lg-n { background: var(--sup-bg); color: var(--sup-ink); }
.lg-chev { color: var(--faint); align-self: center; }
.lg-b { padding: 0 22px 16px 49px; display: flex; flex-direction: column; gap: 8px; }
.lg-b pre { margin: 0; padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: 8px; font: 12px/1.55 var(--mono); white-space: pre-wrap; word-break: break-word; max-height: 300px; overflow: auto; color: var(--txt); }
