/* ============================================================
   IWO Design System — v1 (09/11/2026)
   Base visual do produto: tipografia, cores, espaçamento e componentes.
   Vale só em páginas com <body class="ds">, para migrar tela a tela sem
   quebrar as que ainda usam o estilo antigo (iwo-global.css).
   Fonte: Geist (SIL Open Font License — uso comercial livre), hospedada local.
   ============================================================ */
/* 23/11/2026 (Ficha L1): fonte do padrão, Source Sans 3 (licença OFL em /assets/fonts), a mesma do IWO Gestor */
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("/assets/fonts/source-sans-3-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("/assets/fonts/source-sans-3-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("/assets/fonts/geist-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("/assets/fonts/geist-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

.ds {
  /* cor */
  --ds-bg: #F5F8FA;
  --ds-surface: #FFFFFF;
  --ds-surface-2: #F9FAFB;
  --ds-ink: #213343;
  /* 09/11/2026: contraste reforçado — a tela parecia "apagada" (cinzas claros + Geist fino no Windows) */
  --ds-text: #33475B;
  --ds-muted: #516F90;
  --ds-subtle: #5F7A97;
  --ds-line: #DFE3EB;
  --ds-line-strong: #CBD6E2;
  --ds-brand: #0B6BCB;          /* 23/11/2026 (Ficha L1): azul do estilo A (antes, o amarelo da marca IWO) */
  --ds-brand-ink: #08529C;
  --ds-ok: #00705F;    --ds-ok-bg: #E5F8F6;
  --ds-warn: #8F5400;  --ds-warn-bg: #FEF6E7;
  --ds-bad: #C0392B;   --ds-bad-bg: #FDECEA;
  --ds-info: #0B6BCB;  --ds-info-bg: #E8F1FB;
  --ds-focus: #0B6BCB;
  /* forma */
  --ds-r-sm: 6px; --ds-r: 9px; --ds-r-lg: 12px;
  --ds-shadow: 0 1px 2px rgba(14, 23, 38, .05), 0 1px 1px rgba(14, 23, 38, .03);
  --ds-shadow-lg: 0 8px 24px rgba(14, 23, 38, .08);
  /* tipo */
  --ds-font: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-family: var(--ds-font);
  color: var(--ds-text);
  background: var(--ds-bg);
  font-feature-settings: "tnum" 0;
  font-weight: 400;               /* 23/11/2026 (Ficha L1): Source Sans 3 em 400, como no padrão (o 500 era para o Geist) */
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
.ds input, .ds select, .ds button, .ds textarea { font-family: inherit; font-weight: inherit; }
.ds .num, .ds .tnum { font-variant-numeric: tabular-nums; }

/* ---------- cabeçalho da página ---------- */
.ds-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 4px 0 20px; }
.ds-head h1 { margin: 0; font-size: 26px; line-height: 1.15; font-weight: 650; letter-spacing: -.02em; color: var(--ds-ink); }
.ds-head .ds-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ds-subtle); margin-bottom: 4px; }
.ds-head .ds-meta { font-size: 13px; color: var(--ds-muted); margin-top: 6px; font-variant-numeric: tabular-nums; }
.ds-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- botões ---------- */
.ds-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px;
  border-radius: var(--ds-r); border: 1px solid transparent; font-size: 13.5px; font-weight: 600; line-height: 1;
  cursor: pointer; white-space: nowrap; text-decoration: none; transition: background .15s, border-color .15s, color .15s; }
.ds-btn:focus-visible { outline: 2px solid var(--ds-focus); outline-offset: 2px; }
/* ação principal: azul-marinho (09/11/2026) — a mesma cor em todas as telas */
/* 23/11/2026 (Ficha L1): ação principal laranja do estilo A (5,2:1 com texto branco) */
.ds-btn-primary { background: #C2410C; color: #fff; }
.ds-btn-primary:hover { background: #9A3412; }
.ds-btn-secondary { background: var(--ds-surface); color: var(--ds-ink); border-color: var(--ds-line-strong); }
.ds-btn-secondary:hover { background: var(--ds-surface-2); }
.ds-btn-ghost { background: transparent; color: var(--ds-muted); }
.ds-btn-ghost:hover { background: #EEF0F3; color: var(--ds-ink); }
.ds-btn-danger { background: var(--ds-surface); color: var(--ds-bad); border-color: #F2C2BE; }
.ds-btn-danger:hover { background: var(--ds-bad-bg); }
.ds-btn-sm { height: 30px; padding: 0 11px; font-size: 12.5px; border-radius: var(--ds-r-sm); }
/* 14/11/2026 (celular): seletores dos filtros ocupam a linha toda em vez de cortar o texto ("Ordenar: mais atras…") */
@media (max-width: 760px) { select.ds-input, select.ds-select { flex: 1 1 100%; min-width: 0; max-width: 100%; } }
/* 14/11/2026: tela de toque (celular/tablet) — alvo mínimo de 44 px para o dedo; no computador nada muda */
@media (pointer: coarse) {
  .ds-btn, .ds-btn-sm { min-height: 44px; }
  .ds-btn-sm { padding: 0 14px; font-size: 13.5px; }
  .ds-icon-btn { min-width: 44px; min-height: 44px; }
  .ds-tab, .ds-chip { min-height: 44px; }   /* l08d-e: 40 → 44 (regra do dedo no celular) */
  /* 15/11/2026: campos de busca/filtro com 32–36 px no celular — mesma altura de dedo dos botões */
  .ds-input, .ds-select { min-height: 44px; }
}
.ds-icon-btn { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: var(--ds-r-sm);
  color: var(--ds-subtle); background: transparent; border: 0; cursor: pointer; text-decoration: none; }
.ds-icon-btn:hover { background: #EEF0F3; color: var(--ds-ink); }
.ds-icon-btn:focus-visible { outline: 2px solid var(--ds-focus); outline-offset: 1px; }
.ds-link { all: unset; cursor: pointer; font-size: 12.5px; font-weight: 500; color: var(--ds-muted); }
.ds-link:hover { color: var(--ds-bad); text-decoration: underline; }
.ds-link:focus-visible { outline: 2px solid var(--ds-focus); outline-offset: 2px; border-radius: 3px; }

/* ---------- abas com contagem (filas) ---------- */
.ds-tabs { display: flex; flex-direction: row; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--ds-line); margin-bottom: 16px; }
.ds-tab { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 12px 11px; font-size: 13.5px; font-weight: 550; color: var(--ds-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.ds-tab:hover { color: var(--ds-ink); }
.ds-tab:focus-visible { outline: 2px solid var(--ds-focus); outline-offset: -2px; border-radius: 6px; }
.ds-tab[aria-selected="true"] { color: var(--ds-ink); border-bottom-color: var(--ds-ink); }
.ds-count { min-width: 22px; height: 20px; padding: 0 7px; border-radius: 999px; display: inline-grid; place-items: center;
  font-size: 12px; font-weight: 650; background: #EEF0F3; color: var(--ds-text); font-variant-numeric: tabular-nums; }
.ds-tab.urg .ds-count { background: var(--ds-bad-bg); color: var(--ds-bad); }
.ds-tab.ok .ds-count { background: var(--ds-ok-bg); color: var(--ds-ok); }
.ds-tab.info .ds-count { background: var(--ds-info-bg); color: var(--ds-info); }

/* ---------- painel ---------- */
.ds-panel { background: var(--ds-surface); border: 1px solid var(--ds-line); border-radius: var(--ds-r-lg); box-shadow: var(--ds-shadow); }
.ds-toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 14px; border-bottom: 1px solid var(--ds-line); }
.ds-toolbar.sub { background: var(--ds-surface-2); align-items: flex-end; }
.ds-field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--ds-muted); }
.ds-input, .ds-select { height: 36px; border: 1px solid var(--ds-line-strong); border-radius: var(--ds-r); background: var(--ds-surface);
  color: var(--ds-ink); font-size: 13.5px; padding: 0 11px; outline: none; transition: border-color .15s, box-shadow .15s; }
.ds-select { padding-right: 30px; appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235E6878' stroke-width='2.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; }
.ds-input:focus, .ds-select:focus { border-color: var(--ds-focus); box-shadow: 0 0 0 3px rgba(36, 87, 197, .15); }
.ds-search { position: relative; flex: 1 1 260px; min-width: 200px; }
.ds-search .ds-input { width: 100%; padding-left: 34px; }
.ds-search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--ds-subtle); pointer-events: none; }
.ds-check { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ds-text); cursor: pointer; white-space: nowrap; user-select: none; }
.ds-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--ds-ink); cursor: pointer; }
.ds-statusbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 14px; font-size: 12.5px; color: var(--ds-muted); }
.ds-chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 4px 0 10px; border-radius: 999px;
  background: var(--ds-ink); color: #fff; font-size: 12px; font-weight: 600; }
.ds-chip button { all: unset; cursor: pointer; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.18); }
.ds-chip button:focus-visible { outline: 2px solid #fff; }

/* ---------- tabela ---------- */
.ds-table-wrap { overflow-x: auto; }
.ds-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.ds-table thead th { position: sticky; top: 0; z-index: 2; background: var(--ds-surface-2); color: var(--ds-muted);
  font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; text-align: left;
  padding: 10px 12px; border-bottom: 1px solid var(--ds-line); white-space: nowrap; }
.ds-table thead th.num, .ds-table td.num { text-align: right; }
.ds-table thead th.center, .ds-table td.center { text-align: center; }
.ds-table th.sort { cursor: pointer; user-select: none; }
.ds-table th.sort:hover { color: var(--ds-ink); }
.ds-table tbody td { padding: 14px 12px; border-bottom: 1px solid var(--ds-line); vertical-align: top; color: var(--ds-text); }
.ds-table tbody tr:hover td { background: #FAFBFC; }
.ds-table tbody tr:last-child td { border-bottom: 0; }
.ds-table tbody tr.focada td { background: #FFF8E6; }
.ds-table tbody tr.focada td:first-child { box-shadow: inset 3px 0 0 var(--ds-brand); }
.ds-table .vazio { text-align: center; color: var(--ds-muted); padding: 48px 16px; }

/* ---------- selos ---------- */
.ds-pill { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 999px;
  font-size: 12px; font-weight: 600; white-space: nowrap; }
.ds-pill.ok { background: var(--ds-ok-bg); color: var(--ds-ok); }
.ds-pill.warn { background: var(--ds-warn-bg); color: var(--ds-warn); }
.ds-pill.bad { background: var(--ds-bad-bg); color: var(--ds-bad); }
.ds-pill.info { background: var(--ds-info-bg); color: var(--ds-info); }
.ds-pill.muted { background: #EEF0F3; color: var(--ds-muted); }
.ds-score { display: inline-grid; place-items: center; min-width: 30px; height: 20px; padding: 0 6px; border-radius: 6px;
  font-size: 12px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.ds-score.alta { background: var(--ds-ok); }
.ds-score.media { background: #C98A0B; }
.ds-score.baixa { background: #9AA3B2; }
.ds-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; vertical-align: 1px; }

/* ---------- paginação ---------- */
.ds-pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px;
  border-top: 1px solid var(--ds-line); font-size: 13px; color: var(--ds-muted); }
.ds-kbd { display: inline-block; min-width: 18px; padding: 0 5px; border: 1px solid var(--ds-line-strong); border-bottom-width: 2px;
  border-radius: 4px; font-size: 12px; line-height: 17px; text-align: center; color: var(--ds-muted); background: var(--ds-surface); }
.ds-hint { font-size: 12px; color: var(--ds-subtle); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* l08d-e (25/11/2026): tela estreita também conta como celular (nem todo navegador de celular informa "pointer: coarse") */
@media (max-width: 640px) {
  .ds-tab, .ds-chip { min-height: 44px; }
  .ds-input, .ds-select { min-height: 44px; }
}
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { .ds * { transition: none !important; } }


/* ===== Cor com significado (09/11/2026) =====
   A mesma cor de status em todas as telas (era a das páginas antigas,
   licitacoes-shared.css .bs-*). Fundo suave + texto forte; a cor nunca vem
   sozinha — sempre acompanha texto. */
.ds {
  --st-analise: #B45309;  --st-analise-bg: #FEF3C7;   /* em análise — amarelo  */
  --st-envio: #C2410C;    --st-envio-bg: #FFEDD5;     /* envio de doc. — laranja */
  --st-amanha: #6D28D9;   --st-amanha-bg: #EDE9FE;    /* pregão amanhã — roxo  */
  --st-hoje: #C0322B;     --st-hoje-bg: #FDECEA;      /* disputa hoje — vermelho */
  --st-aguard: #C2410C;   --st-aguard-bg: #FFEDD5;    /* aguardando resultado — laranja */
  --st-ganha: #15803D;    --st-ganha-bg: #DCFCE7;     /* ganha — verde */
  --st-perdida: #B91C1C;  --st-perdida-bg: #FEE2E2;   /* perdida — vermelho */
  --st-adiada: #4338CA;   --st-adiada-bg: #E0E7FF;    /* adiada — índigo */
  --st-neutro: #475569;   --st-neutro-bg: #E2E8F0;    /* não participamos / outros */
}
.ds-status { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
.ds-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ds-status.em_analise { color: var(--st-analise); background: var(--st-analise-bg); }
.ds-status.participando { color: var(--st-envio); background: var(--st-envio-bg); }
.ds-status.pregao_andamento { color: var(--st-amanha); background: var(--st-amanha-bg); }
.ds-status.ganha { color: var(--st-ganha); background: var(--st-ganha-bg); }
.ds-status.perdida { color: var(--st-perdida); background: var(--st-perdida-bg); }
.ds-status.adiada { color: var(--st-adiada); background: var(--st-adiada-bg); }
.ds-status.nao_participamos, .ds-status.outro { color: var(--st-neutro); background: var(--st-neutro-bg); }
.ds-portal { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #fff; white-space: nowrap; text-decoration: none; }
a.ds-portal:hover { filter: brightness(.92); }

/* 13/11/2026: etapas das licitações — mesma barra, mesmo lugar nas 4 telas (Triagem, Preparação, Em andamento, Resultados) */
.lic-etapas { display: flex; flex-wrap: wrap; gap: 3px; align-items: center; margin: 0 0 10px; font-size: 12px; font-weight: 600; line-height: 1.4; }
.lic-etapas a, .lic-etapas span { padding: 3px 9px; border-radius: 999px; border: 1px solid var(--ds-line); background: var(--ds-surface); color: var(--ds-muted); text-decoration: none; }
.lic-etapas a:hover { color: var(--ds-ink); border-color: var(--ds-line-strong); }
.lic-etapas .on { background: var(--ds-ink); color: #fff; border-color: var(--ds-ink); }
html.tema-escuro .lic-etapas .on { background: var(--tm-tinta, #2F86E0); border-color: var(--tm-tinta, #2F86E0); color: #fff; }   /* 25/11/2026 (l24c): já escura no 1º quadro */
.lic-etapas i { font-style: normal; color: var(--ds-line-strong); }
.lic-etapas-tri { margin: 0; padding: 30px 40px 0; flex: none; }

/* =====================================================
   24/11/2026 (Ficha L7, "pode" do Daniel: "as outras telas também iguais ao Gestor").
   Só no produto Licita (html.estilo-a). Peças que se repetem nas telas: título, cartões de
   números ("...-ind-c" e "dc-kpi"), pílulas de filtro ("...-aba"), negrito e botões.
   ===================================================== */
html.estilo-a main.iwo-main h1 { font-size: 22px !important; font-weight: 600 !important; letter-spacing: 0 !important; }
html.estilo-a main.iwo-main .ini-saud { font-size: 26px !important; font-weight: 500 !important; }
html.estilo-a [class*="-ind-c"] .r, html.estilo-a .dc-kpi h4 { text-transform: none !important; letter-spacing: 0 !important; font-weight: 400 !important; font-size: 13px !important; color: var(--ds-muted) !important; }
html.estilo-a [class*="-ind-c"] > b, html.estilo-a .dc-kpi .v { font-size: 26px !important; font-weight: 500 !important; }
/* 25/11/2026 (l25b-1): no celular o número dos quadros nunca é cortado ("R..."): menor e quebrando a linha */
@media (max-width: 760px) { html.estilo-a [class*="-ind-c"] > b, html.estilo-a .dc-kpi .v { font-size: 20px !important; white-space: normal !important; overflow: visible !important; text-overflow: clip !important; } }
html.estilo-a main.iwo-main :is(b, strong, th, h2, h3, h4) { font-weight: 600; }
html.estilo-a button[class*="-aba"] { min-height: 36px; }
html.estilo-a:not(.tema-escuro) button[class*="-aba"][aria-pressed="true"] { background: #0b6bcb !important; border-color: #0b6bcb !important; color: #ffffff !important; }
html.estilo-a.tema-escuro button[class*="-aba"][aria-pressed="true"] { background: #2f86e0 !important; border-color: #2f86e0 !important; color: #ffffff !important; }
html.estilo-a .ds-btn { min-height: 36px; }
html.estilo-a .ds-btn-sm { height: auto; min-height: 36px; }
html.estilo-a .ds-btn-ghost { border: 1px solid var(--ds-line-strong); background: var(--ds-surface); color: var(--ds-brand); }
@media (max-width: 768px) {
    html.estilo-a .ds-btn, html.estilo-a button[class*="-aba"] { min-height: 44px; }
}

/* 24/11/2026 (Ficha L8, "pode" do Daniel): área Vendas igual ao Gestor. Só no produto Licita. */
html.estilo-a .col-head { border-bottom: 1px solid var(--ds-line) !important; }
html.estilo-a .col-head .titulo { text-transform: none !important; letter-spacing: 0 !important; font-weight: 600 !important; font-size: 14px !important; }
html.estilo-a .col-head .qtd { background: transparent !important; color: var(--ds-muted) !important; padding: 0 !important; font-size: 13px !important; }
html.estilo-a .col-head .total { font-weight: 600 !important; }
html.estilo-a #btnRetornos, html.estilo-a #btnCrm { display: none !important; }
html.estilo-a .rt-ind-c small { display: none !important; }

/* 24/11/2026 (Ficha L9, "pode" do Daniel): área Clientes igual ao Gestor. Só no produto Licita.
   "+ Novo cliente" e "+ Novo fornecedor" (#btnNovo) são a ação principal laranja; o "+ Orçamento" de cada linha
   vira contorno (um laranja por tela); sem a faixa colorida à esquerda das linhas; títulos de caixas sem maiúsculas. */
html.estilo-a main.iwo-main #btnNovo { background: #c2410c !important; border-color: #c2410c !important; color: #ffffff !important; font-weight: 600; }
html.estilo-a .cl-linha button[data-orc] { background: var(--ds-surface) !important; border: 1px solid var(--ds-line-strong) !important; color: var(--ds-brand) !important; }
html.estilo-a .cl-linha { border-left-width: 1px !important; border-left-color: var(--ds-line) !important; }
html.estilo-a .cl-alerta-btn { background: var(--ds-surface) !important; border: 1px solid var(--ds-line-strong) !important; color: var(--ds-text) !important; min-height: 36px; }
html.estilo-a main.iwo-main :is(h2, h3, h4) { text-transform: none !important; letter-spacing: 0 !important; }

/* 24/11/2026 (Ficha L10, "pode" do Daniel): área Produtos no padrão. Só no produto Licita.
   Rótulos dos cartões (span.r) e cabeçalhos de tabela sem maiúsculas, como no Gestor; sem os botões que repetem o menu;
   na Entrada, só "Registrar entrada" fica laranja. */
html.estilo-a main.iwo-main span.r { text-transform: none !important; letter-spacing: 0 !important; font-weight: 400 !important; font-size: 13px !important; color: var(--ds-muted) !important; }
html.estilo-a main.iwo-main th { text-transform: none !important; letter-spacing: 0 !important; }
html.prod-licita main.iwo-main a.ds-btn[href="/pages/almoxarifado/entrada.html"], html.prod-licita main.iwo-main a.ds-btn[href="/pages/almoxarifado/inventario.html"] { display: none !important; }
html.estilo-a main.iwo-main button[onclick="impAbrir()"] { background: var(--ds-surface) !important; border: 1px solid var(--ds-line-strong) !important; color: var(--ds-brand) !important; }

/* 24/11/2026 (Ficha L11, "pode" do Daniel): Financeiro igual ao Gestor. Só no produto Licita.
   Números dos cartões na cor do texto (a situação fica dita pela palavra do rótulo); rótulos do mês no Fluxo sem maiúsculas. */
html.estilo-a [class*="-ind-c"] > b, html.estilo-a .dc-kpi .v { color: var(--ds-ink) !important; }
html.estilo-a .fx-mes-t span { text-transform: none !important; letter-spacing: 0 !important; }

/* 24/11/2026 (Ficha L12, "pode" do Daniel): Licitações e Suporte no padrão. Só no produto Licita.
   Triagem: grupos e rótulos do edital sem maiúsculas, valores em 600; dias do Calendário e nomes das certidões em 600;
   rótulos de formulário em peso normal; chips e filtros com 36 px (44 no celular). */
html.estilo-a .tri-grupo span, html.estilo-a .fato .rot { text-transform: none !important; letter-spacing: 0 !important; }
html.estilo-a .fato .val, html.estilo-a .tri-grupo .num, html.estilo-a .num-dia, html.estilo-a main.iwo-main .nome { font-weight: 600 !important; }
html.estilo-a main.iwo-main label { font-weight: 400 !important; }
html.estilo-a .tri-chip, html.estilo-a .tri-mais-btn, html.estilo-a .prep-chip, html.estilo-a .tri-urg-btn { min-height: 36px; }
@media (max-width: 768px) {
    html.estilo-a .tri-chip, html.estilo-a .tri-mais-btn, html.estilo-a .prep-chip { min-height: 44px; }
}

/* 24/11/2026 (Ficha L13, "pode" do Daniel): Configurações por dentro iguais ao Gestor. Só no produto Licita.
   Rótulos de formulário e etiquetas de situação sem maiúsculas; um laranja por tela; ícones das tabelas com 36 px; valores em 600. */
html.estilo-a main.iwo-main label { text-transform: none !important; letter-spacing: 0 !important; }
html.estilo-a main.iwo-main :is(.badge, .badge-nivel, .badge-voce, .cf-tag, .cor-tag, .wa-status, .gd-st, .mp-chip) { text-transform: none !important; letter-spacing: 0 !important; font-weight: 600 !important; }
html.estilo-a main.iwo-main :is(#btnAplicarCores, #btBaixar, #btIASalvar) { background: var(--ds-surface) !important; border: 1px solid var(--ds-line-strong) !important; color: var(--ds-brand) !important; }
html.estilo-a main.iwo-main .mp-lk { min-height: 36px; }   /* .al-ic fica como estava: ver a ficha l11m (menu ⋯) */
html.estilo-a main.iwo-main :is(.valor, .v, .mp-nome) { font-weight: 600 !important; }
@media (max-width: 768px) {
    html.estilo-a main.iwo-main .mp-lk { min-height: 44px; }
}
/* 24/11/2026 (Ficha L13): tabelas das Configurações mais compactas, porque o painel da L6 ocupa a esquerda (Usuários: 999 → 885 px, todas as ações à vista) */
html.estilo-a.tem-cfg-painel main.iwo-main table :is(th, td) { padding-left: 6px !important; padding-right: 6px !important; }
html.estilo-a.tem-cfg-painel main.iwo-main table td { max-width: 190px; overflow: hidden; text-overflow: ellipsis; }


/* =====================================================
   24/11/2026 (Ficha l11m, "pode" do Daniel): listas em tabela como no Gestor (Clientes, Fornecedores) e o "⋯" na linha
   (também em Produtos e Usuários). Botão da linha com contorno e 36 px (44 no celular). Só no produto Licita.
   ===================================================== */
html.estilo-a .lt-wrap { margin-top: 8px; background: var(--ds-surface); border: 1px solid var(--ds-line); border-radius: 8px; overflow-x: auto; position: relative; }   /* 24/11/2026 (l11l): o rótulo invisível "Ações" ficava solto e alargava a página no celular */
html.estilo-a .lt-tab { width: 100%; border-collapse: collapse; font-size: 14px; }
html.estilo-a .lt-tab th { text-align: left; font-size: 13px; font-weight: 600; color: var(--ds-muted); background: var(--ds-surface-2); padding: 10px 12px; border-bottom: 1px solid var(--ds-line); white-space: nowrap; }
html.estilo-a .lt-tab td { padding: 10px 12px; border-bottom: 1px solid var(--ds-line); vertical-align: middle; color: var(--ds-text); }
html.estilo-a .lt-tab tbody tr:last-child td { border-bottom: 0; }
html.estilo-a .lt-tab tbody tr:hover td { background: var(--ds-surface-2); }
html.estilo-a .lt-tab .n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
html.estilo-a .lt-tab .det { display: block; font-size: 12px; color: var(--ds-muted); margin-top: 2px; }
html.estilo-a .lt-tab .lt-nome { font-weight: 600; color: var(--ds-ink); }
html.estilo-a .lt-tab tr.inativo .lt-nome { color: var(--ds-muted); }
html.estilo-a .lt-falta { color: #b45309; }
html.estilo-a.tema-escuro .lt-falta { color: #f0b45a; }
html.estilo-a .lt-st { display: inline-flex; align-items: center; height: 22px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--ds-surface-2); color: var(--ds-text); }
html.estilo-a .lt-st.ok { background: #e5f5ec; color: #1f7a4a; }
html.estilo-a .lt-st.azul { background: #e8f1fb; color: #0b6bcb; }
html.estilo-a .lt-st.amarelo { background: #fff4d6; color: #8a5a00; }
html.estilo-a.tema-escuro .lt-st.ok { background: #16352a; color: #5fd39a; }
html.estilo-a.tema-escuro .lt-st.azul { background: #16283a; color: #4a9ff5; }
html.estilo-a.tema-escuro .lt-st.amarelo { background: #3a2f12; color: #f0c45a; }
html.estilo-a .lt-cat::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--cor, var(--ds-muted)); margin-right: 6px; }
html.estilo-a .lt-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html.estilo-a .lt-ac { white-space: nowrap; text-align: right; }
html.estilo-a .lt-ac > *, html.estilo-a .pr-acoes > .lt-mais { vertical-align: middle; }
html.estilo-a .lt-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 12px; border: 1px solid var(--ds-line-strong); border-radius: 6px; background: var(--ds-surface); color: var(--ds-brand); font: inherit; font-size: 14px; cursor: pointer; white-space: nowrap; }
html.estilo-a .lt-btn:hover { background: var(--ds-surface-2); }
html.estilo-a .lt-mais { display: inline-block; position: static; margin-left: 4px; }
html.estilo-a .lt-mais > summary { list-style: none; display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 36px; border-radius: 6px; cursor: pointer; font-size: 18px; color: var(--ds-text); }
html.estilo-a .lt-mais > summary::-webkit-details-marker { display: none; }
html.estilo-a .lt-mais > summary:hover, html.estilo-a .lt-mais[open] > summary { background: var(--ds-surface-2); }
html.estilo-a :is(.lt-btn, .lt-mais > summary, .lt-menu > button, .lt-menu > a):focus-visible { outline: 2px solid var(--ds-focus); outline-offset: 2px; }
html.estilo-a .lt-menu { position: fixed; z-index: 1000; min-width: 200px; overflow-y: auto; display: grid; padding: 4px; text-align: left; background: var(--ds-surface); border: 1px solid var(--ds-line); border-radius: 8px; box-shadow: 0 10px 28px rgba(15, 23, 42, .16); }
html.estilo-a .lt-menu > :is(button, a) { all: unset; box-sizing: border-box; display: flex; align-items: center; min-height: 36px; padding: 0 10px; border-radius: 6px; cursor: pointer; font-size: 14px; color: var(--ds-text); white-space: nowrap; }
html.estilo-a .lt-menu > :is(button, a):hover { background: var(--ds-surface-2); color: var(--ds-ink); }
html.estilo-a .lt-menu > button[disabled] { opacity: .45; cursor: default; }
html.estilo-a .lt-menu > .del { color: #b91c1c; }
html.estilo-a.tema-escuro .lt-menu > .del { color: #f87171; }
html.estilo-a .lt-menu > .lt-sep { height: 1px; background: var(--ds-line); margin: 4px 2px; }
html.estilo-a .lt-menu > .lt-tit { font-size: 12px; color: var(--ds-muted); padding: 6px 10px 2px; }
html.estilo-a #irUrgentes { height: auto; min-height: 36px; }
@media (max-width: 768px) {
    html.estilo-a .lt-btn, html.estilo-a .lt-mais > summary, html.estilo-a .lt-menu > :is(button, a), html.estilo-a #irUrgentes { min-height: 44px; }
    html.estilo-a .lt-mais > summary { min-width: 44px; }
}

/* =====================================================
   24/11/2026 (Ficha l11l, "pode" do Daniel): CRM com Quadro e Lista e pílulas por etapa, como no Gestor. Só no produto Licita.
   ===================================================== */
html.estilo-a .lt-alt { display: inline-flex; gap: 6px; margin-right: 6px; }
html.estilo-a .lt-alt[hidden], html.estilo-a .lt-etapas[hidden], html.estilo-a #ltLista[hidden], html.estilo-a .pipeline[hidden] { display: none; }
html.estilo-a .lt-etapas { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 12px; }
html.estilo-a .lt-aba { display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--ds-line-strong); background: var(--ds-surface); color: var(--ds-text); font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; }
html.estilo-a .lt-aba:hover { border-color: var(--ds-ink); }
html.estilo-a .lt-aba b { font-weight: 600; }
html.estilo-a .lt-aba:focus-visible { outline: 2px solid var(--ds-focus); outline-offset: 2px; }
html.estilo-a .pipeline.lt-uma { grid-auto-columns: minmax(0, 360px); }
html.estilo-a .lt-vazio { padding: 32px; text-align: center; color: var(--ds-muted); }
html.estilo-a .lt-pag { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 2px; font-size: 13px; color: var(--ds-muted); }
html.estilo-a .lt-pag .lt-btn[disabled] { opacity: .45; cursor: default; }
@media (max-width: 768px) {
    html.estilo-a .lt-alt { width: 100%; margin: 0 0 6px; }
}

/* 25/11/2026 (l25b-2, "pode" do Daniel): dedo e leitura no celular com toque. Só no Licita; o computador fica igual.
   - o que se toca tem pelo menos 44 px de altura;
   - texto miúdo sobe para 12 px;
   - a busca ocupa a linha inteira. */
@media (max-width: 760px) and (pointer: coarse) {
    html.estilo-a main.iwo-main :is(button, select, textarea, summary, [role="button"], input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]):not([type="color"]):not([type="file"])) { min-height: 44px !important; }
    html.estilo-a main.iwo-main :is(input, select):not([type="checkbox"]):not([type="radio"]) { height: auto !important; }
    html.estilo-a main.iwo-main a:not(p a, li a, td a, small a, span a) { min-height: 44px; }
    html.estilo-a main.iwo-main a:is(:not([class]), .on, .fx-lk, .so-admin, .at-link, .no-voltar):not(p a, li a, td a, small a, span a) { display: inline-flex; align-items: center; }
    html.estilo-a main.iwo-main small { font-size: max(12px, .8333em) !important; }
    html.estilo-a main.iwo-main :is(th, [class*="badge"], [class*="-chip"], .cf-tag, .per-tit, .per-limpar, .pdfm-tit, .tp, [class*="selo-"], .sub, #info_atualizado, .bs-total span, .emp-disp span) { font-size: 12px !important; }
    html.estilo-a main.iwo-main label { font-size: max(12px, 1em); }
    html.estilo-a main.iwo-main svg text { font-size: 12px; }
    html.estilo-a main.iwo-main .iwo-filtros > input[type="search"], html.estilo-a main.iwo-main .and-barra > .and-busca { flex: 1 1 100%; width: 100%; }
}

/* 25/11/2026 (l25b-4a, "pode" do Daniel): no celular os seletores das listas ficam no botão "Filtros" (iwo-marca-cedo.js) */
html.estilo-a .flt-botao { display: none; }
@media (max-width: 760px) {
    html.estilo-a .flt-botao { display: inline-flex; align-items: center; gap: 8px; }
    html.estilo-a .flt-recolhe:not(.flt-aberto) > .flt-item { display: none !important; }
    html.estilo-a .flt-recolhe > :is([class*="busca"], input[type="search"]) { flex: 1 1 100% !important; width: 100%; max-width: none; min-width: 0; }
    html.estilo-a .flt-botao .flt-n { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #0b6bcb; color: #ffffff; font-size: 12px; font-weight: 600; }
    html.estilo-a .flt-botao .flt-n[hidden] { display: none; }
}
