
  :root {
    --side: #121b2b;
    --side-soft: #1a263a;
    --side-text: #eef4ff;
    --side-muted: #9dacbf;
    --blue: #1457c5;
    --blue-2: #0d47a1;
    --blue-soft: #e8f1ff;
    --green: #0f8f70;
    --amber: #c78416;
    --red: #df4848;
    --ink: #172033;
    --muted: #667386;
    --line: #d9e2ec;
    --surface: #ffffff;
    --surface-soft: #f3f6fa;
    --background: #eef3f8;
  }

  * { box-sizing: border-box; }
  body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background: var(--background);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
  }
  button, input { font: inherit; }

  .app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    transition: grid-template-columns .22s ease;
  }
  body.sidebar-recolhida .app-shell { grid-template-columns: 92px minmax(0, 1fr); }

  .sidebar {
    background:
      radial-gradient(circle at 42% 12%, rgba(0, 145, 255, .16), transparent 28%),
      linear-gradient(180deg, #071225 0%, #101a2a 58%, #07101f 100%);
    color: var(--side-text);
    padding: 18px 20px;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    gap: 14px;
    border-right: 1px solid rgba(64, 157, 255, .20);
    transition: padding .22s ease;
  }
  .brand {
    min-width: 0;
    padding: 18px 16px;
    display: grid;
    grid-template-columns: 98px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    text-align: left;
    border: 1px solid rgba(64, 157, 255, .22);
    border-radius: 8px;
    background: rgba(2, 12, 27, .56);
    box-shadow: inset 0 0 28px rgba(0, 132, 255, .08);
    cursor: pointer;
    transition: padding .22s ease, grid-template-columns .22s ease;
  }
  .brand-mark {
    width: 98px;
    height: 88px;
    border-radius: 8px;
    display: block;
    background:
      radial-gradient(circle at 50% 50%, rgba(0, 168, 255, .16), transparent 64%),
      rgba(4, 18, 36, .82);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(64, 157, 255, .28);
    flex: none;
  }
  .brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transform: none;
    filter: drop-shadow(0 0 14px rgba(0, 153, 255, .42));
  }
  .brand strong { display: block; font-size: 31px; line-height: 1.05; color: #fff; }
  .brand span { display: block; margin-top: 6px; color: #a9bdd6; font-size: 17px; line-height: 1.3; }
  .brand-text { transition: opacity .16s ease, transform .16s ease; }
  .menu-title {
    padding: 0 6px;
    color: var(--side-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
  }
  .menu { display: grid; gap: 14px; align-content: start; }
  .menu-item {
    min-height: 64px;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0 18px;
    border-radius: 8px;
    color: #b7c9e0;
    font-size: 21px;
    border: 1px solid transparent;
    cursor: pointer;
    user-select: none;
    transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
  }
  .menu-label { white-space: nowrap; transition: opacity .16s ease; }
  .menu-item:hover:not(.active) {
    color: #f4f9ff;
    background: rgba(64, 157, 255, .10);
    border-color: rgba(64, 157, 255, .16);
  }
  .menu-item.active {
    color: white;
    background: linear-gradient(90deg, #0b4fd5 0%, #087cff 100%);
    border-color: rgba(83, 189, 255, .78);
    box-shadow: 0 0 26px rgba(0, 127, 255, .30), inset 0 1px 0 rgba(255, 255, 255, .20);
  }
  .menu-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(0, 100, 210, .12);
    color: inherit;
    flex: none;
  }
  .menu-item.active .menu-icon {
    background: rgba(1, 18, 48, .34);
    color: #66d5ff;
  }
  .menu-icon svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .side-status {
    border: 1px solid rgba(64, 157, 255, .22);
    border-radius: 8px;
    padding: 16px;
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    color: #a9bdd6;
    font-size: 18px;
    background: rgba(2, 12, 27, .58);
  }
  .side-status img {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    object-fit: contain;
    object-position: center;
    background: rgba(0, 132, 255, .12);
    border: 1px solid rgba(64, 157, 255, .28);
  }
  .side-status strong { display: block; color: var(--side-text); font-size: 23px; }
  .side-status span { display: block; }
  .side-status-online {
    margin-top: 5px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #45df91;
    font-weight: 800;
  }
  .sidebar-logout {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(255, 107, 107, .26);
    border-radius: 8px;
    background: rgba(255, 107, 107, .08);
    color: #ffd7d7;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 900;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
  }
  .sidebar-logout:hover {
    background: rgba(255, 107, 107, .16);
    border-color: rgba(255, 107, 107, .42);
    color: #ffffff;
  }
  .sidebar-logout svg {
    width: 21px;
    height: 21px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: none;
  }
  body.sidebar-recolhida .sidebar {
    padding: 14px 12px;
  }
  body.sidebar-recolhida .brand {
    padding: 8px;
    grid-template-columns: 1fr;
  }
  body.sidebar-recolhida .brand-mark {
    width: 58px;
    height: 58px;
  }
  body.sidebar-recolhida .brand-mark img {
    transform: none;
  }
  body.sidebar-recolhida .brand-text,
  body.sidebar-recolhida .menu-title,
  body.sidebar-recolhida .menu-label,
  body.sidebar-recolhida .side-status > div {
    opacity: 0;
    width: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
  }
  body.sidebar-recolhida .menu {
    gap: 10px;
    justify-items: center;
  }
  body.sidebar-recolhida .menu-item {
    width: 58px;
    min-height: 58px;
    padding: 0;
    justify-content: center;
    gap: 0;
  }
  body.sidebar-recolhida .menu-icon {
    width: 44px;
    height: 44px;
  }
  body.sidebar-recolhida .menu-icon svg {
    width: 22px;
    height: 22px;
  }
  body.sidebar-recolhida .side-status {
    padding: 8px;
    grid-template-columns: 1fr;
    justify-items: center;
  }
  body.sidebar-recolhida .side-status img {
    width: 48px;
    height: 48px;
  }
  body.sidebar-recolhida #overlayDetalhe.aberto,
  body.sidebar-recolhida #overlayCotacao.aberto {
    padding-left: 106px;
  }
  body.sidebar-recolhida .painel-detalhe.detalhe-orcamento-opcao-a,
  body.sidebar-recolhida .painel-detalhe.cotacao-painel-lidy,
  body.sidebar-recolhida .painel-detalhe.cotacao-painel-manual {
    width: min(1680px, calc(100vw - 122px));
  }

  .main {
    min-width: 0;
    height: 100vh;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .topbar {
    min-height: 66px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 13px 20px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
  }
  .topbar.topbar-busca {
    justify-content: flex-end;
    background: #020917;
    border-bottom-color: rgba(64, 157, 255, .18);
  }
  .topbar.topbar-busca .topbar-copy { display: none; }
  .topbar.topbar-busca .gasto-linha,
  .topbar.topbar-busca .gasto-detalhes { color: #8fa4bf; }
  .topbar.topbar-busca .gasto-linha strong,
  .topbar.topbar-busca .gasto-detalhes span strong { color: #f2f8ff; }
  .topbar.topbar-busca .gasto-track { background: rgba(139, 169, 205, .18); }
  .topbar.topbar-busca .gear {
    background: rgba(2, 12, 27, .76);
    border-color: rgba(64, 157, 255, .28);
    color: #9ecfff;
  }
  .topbar h1 { margin: 0; font-size: 20px; color: var(--ink); }
  .topbar p { margin: 3px 0 0; font-size: 12px; color: var(--muted); }
  .top-right { display: flex; align-items: center; gap: 12px; }

  .gear {
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    cursor: default;
    color: var(--muted);
    font-size: 16px;
  }
  .gear:hover { color: var(--blue); border-color: var(--blue); }

  .gasto-box { width: 270px; max-width: 30vw; }
  .gasto-linha { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; color: var(--muted); margin-bottom: 5px; }
  .gasto-linha strong { color: var(--ink); white-space: nowrap; }
  .gasto-track { height: 7px; background: #e8eef6; border-radius: 999px; overflow: hidden; }
  .gasto-bar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--blue), #4f8cf0); transition: width .3s ease, background .3s ease; }
  .gasto-bar.alerta { background: linear-gradient(90deg, #c77912, #f5a524); }
  .gasto-bar.limite { background: linear-gradient(90deg, #c23a3a, #df4848); }
  .gasto-detalhes { display: flex; justify-content: space-between; gap: 8px; font-size: 10px; color: var(--muted); margin-top: 6px; }
  .gasto-detalhes span strong { color: #40556e; }

  .workspace {
    min-height: 0;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(360px, .85fr) minmax(420px, 1.15fr);
    gap: 16px;
    padding: 16px;
  }

  .panel {
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
  }
  .panel.resultados { grid-template-rows: auto minmax(0, 1fr); }
  .panel-head {
    min-height: 50px;
    padding: 11px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
  }
  .panel-head h2 { margin: 0; font-size: 15px; color: var(--ink); }
  .panel-head p { margin: 2px 0 0; font-size: 11.5px; color: var(--muted); }

  .chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--muted);
    border: 1px solid var(--line);
    font-size: 11px;
    white-space: nowrap;
  }
  .dot { width: 7px; height: 7px; border-radius: 999px; background: var(--green); }

  .chat {
    min-height: 0;
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: linear-gradient(180deg, #f8fafc 0, #f1f5f9 100%);
  }
  .msg { max-width: 92%; }
  .msg.user { align-self: flex-end; }
  .msg.bot { align-self: flex-start; }
  .bolha {
    padding: 11px 13px;
    border-radius: 13px;
    font-size: 13px;
    line-height: 1.5;
    white-space: pre-wrap;
  }
  .msg.user .bolha { background: var(--blue); color: white; border-bottom-right-radius: 4px; }
  .msg.bot .bolha { background: var(--surface); border: 1px solid var(--line); color: var(--ink); border-bottom-left-radius: 4px; }
  .msg.bot .bolha.erro { border-color: #f2c1c1; background: #fdf2f2; color: #8a2b2b; }
  .msg.bot .bolha.aviso { border-color: #f3d9a6; background: #fef8ec; color: #7a5a12; margin-top: 8px; }

  .resultado-lista {
    min-height: 0;
    overflow-y: auto;
    padding: 14px;
    background: var(--surface-soft);
  }
  .empty-result {
    height: 100%;
    min-height: 260px;
    display: grid;
    place-items: center;
    text-align: center;
    color: var(--muted);
    padding: 28px;
  }
  .empty-result strong { display: block; margin-bottom: 6px; color: var(--ink); }

  .pedido-card {
    margin-bottom: 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
  }
  .pedido-card.nao-orcamento { opacity: .76; }
  .pedido-head {
    padding: 13px 14px;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
  }
  .pedido-head h3 { margin: 0 0 5px; font-size: 14px; color: var(--ink); }
  .pedido-head .meta { font-size: 11.5px; color: var(--muted); line-height: 1.5; }
  .badge { font-size: 10.5px; font-weight: 800; padding: 5px 9px; border-radius: 999px; white-space: nowrap; }
  .badge.ok { background: var(--blue-soft); color: var(--blue); }
  .badge.nao { background: #f1f3f6; color: var(--muted); }
  .tabela-scroll { overflow-x: auto; }
  table.itens { width: 100%; min-width: 1180px; border-collapse: collapse; }
  table.itens th, table.itens td {
    padding: 9px 12px;
    text-align: left;
    font-size: 12px;
    border-top: 1px solid var(--line);
    white-space: nowrap;
    vertical-align: top;
  }
  table.itens td:nth-child(4), table.itens td:nth-child(5) { white-space: normal; min-width: 180px; }
  table.itens th { background: #f8fafc; color: #40556e; font-weight: 800; }
  table.itens td.num { text-align: right; white-space: nowrap; }
  .obs { padding: 10px 14px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); }

  .input-bar {
    padding: 12px;
    display: flex;
    gap: 9px;
    border-top: 1px solid var(--line);
    background: var(--surface);
  }
  .input-bar input {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 13px;
    font-size: 13px;
    background: var(--surface-soft);
  }
  .input-bar input:focus { outline: 2px solid var(--blue); outline-offset: -1px; background: var(--surface); }
  .input-bar button {
    border: 0;
    border-radius: 8px;
    padding: 0 18px;
    background: var(--blue);
    color: white;
    font-weight: 800;
    cursor: pointer;
  }
  .input-bar button:hover { background: var(--blue-2); }
  .input-bar button:disabled { opacity: .55; cursor: wait; }

  .overlay { position: fixed; inset: 0; background: #071d3b66; display: none; align-items: center; justify-content: center; z-index: 10; padding: 16px; }
  .overlay.aberto { display: flex; }
  .painel-config { background: var(--surface); border-radius: 10px; padding: 22px; width: 92%; max-width: 420px; box-shadow: 0 20px 60px #07204066; }
  .painel-config h2 { margin: 0 0 4px; font-size: 16px; color: var(--ink); }
  .painel-config p { margin: 0 0 16px; font-size: 12px; color: var(--muted); }
  .campo { margin-bottom: 12px; }
  .campo label { display: block; font-size: 11.5px; font-weight: 800; color: #40556e; margin-bottom: 5px; }
  .campo input { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px 11px; font-size: 13px; }
  .painel-config .acoes { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
  .btn-secundario { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 9px 15px; cursor: pointer; font-weight: 800; color: var(--muted); }
  .btn-primario { border: 0; border-radius: 8px; padding: 9px 16px; background: var(--blue); color: white; font-weight: 800; cursor: pointer; }
  .status-config { font-size: 11.5px; margin-top: 8px; min-height: 14px; }
  .status-config.erro { color: var(--red); }
  .status-config.ok { color: var(--green); }

  .typing { display: inline-flex; gap: 4px; align-items: center; }
  .typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: pulso 1s infinite ease-in-out; }
  .typing span:nth-child(2) { animation-delay: .15s; }
  .typing span:nth-child(3) { animation-delay: .3s; }
  @keyframes pulso { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

  /* --- Aba Chat: Opção B --- */
  .chat-central {
    min-height: 0;
    overflow-y: auto;
    padding: 10px 14px 14px;
    display: block;
    color: #eef6ff;
    background:
      radial-gradient(circle at 72% 18%, rgba(0, 142, 255, .18), transparent 30%),
      linear-gradient(135deg, #020816 0%, #061326 50%, #020712 100%);
  }
  .chat-central-shell {
    width: 100%;
    max-width: none;
    min-height: calc(100vh - 96px);
    margin: 0;
    padding: 18px;
    border: 1px solid rgba(0, 143, 255, .34);
    border-radius: 8px;
    background:
      linear-gradient(180deg, rgba(5, 19, 38, .94), rgba(2, 10, 22, .98)),
      radial-gradient(circle at 12% 62%, rgba(0, 132, 255, .18), transparent 26%);
    box-shadow: 0 22px 60px rgba(0, 0, 0, .35);
  }
  .chat-central-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    margin-bottom: 16px;
  }
  .chat-radar-badge {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #ffb32c;
    font-size: 30px;
    border: 1px solid rgba(255, 179, 44, .65);
    background:
      repeating-radial-gradient(circle, rgba(255, 179, 44, .20) 0 1px, transparent 1px 12px),
      rgba(12, 23, 36, .8);
    box-shadow: 0 0 32px rgba(255, 179, 44, .22), inset 0 0 18px rgba(255, 179, 44, .12);
  }
  .chat-central-title h2 {
    margin: 0;
    color: #f7fbff;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.05;
  }
  .chat-central-title p {
    margin: 8px 0 0;
    color: #c6d4e7;
    font-size: 14px;
  }
  .chat-central-status {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 13px;
    border: 1px solid rgba(0, 143, 255, .34);
    border-radius: 999px;
    color: #9ed5ff;
    background: rgba(0, 111, 211, .13);
    font-weight: 800;
    font-size: 12px;
  }
  .chat-atalhos {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
  }
  .chat-atalho {
    min-height: 92px;
    border: 1px solid rgba(0, 143, 255, .34);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    color: #edf6ff;
    background:
      radial-gradient(circle at 12% 50%, rgba(0, 144, 255, .18), transparent 34%),
      linear-gradient(180deg, rgba(7, 24, 46, .96), rgba(2, 11, 24, .96));
    cursor: default;
    text-align: left;
  }
  .chat-atalho:hover {
    border-color: rgba(0, 153, 255, .75);
    box-shadow: 0 0 28px rgba(0, 132, 255, .16);
  }
  .chat-atalho-icone {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #9bddff;
    border: 1px solid rgba(0, 150, 255, .72);
    background:
      radial-gradient(circle, rgba(0, 153, 255, .28), rgba(0, 74, 148, .16));
    box-shadow: 0 0 24px rgba(0, 132, 255, .26), inset 0 0 14px rgba(70, 194, 255, .16);
    font-size: 24px;
    line-height: 1;
  }
  .chat-atalho-icone svg {
    width: 25px;
    height: 25px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .chat-atalho strong {
    display: block;
    font-size: 15px;
    color: #fff;
  }
  .chat-atalho-texto {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #9fb2ca;
  }
  .chat-atalho-texto strong {
    display: block;
    margin: 0;
  }
  .chat-atalho-texto span {
    display: block;
    margin-top: 5px;
  }
  .chat-central-grid {
    min-height: 610px;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
    gap: 14px;
  }
  .chat-central .panel {
    min-height: 0;
    border: 1px solid rgba(0, 143, 255, .34);
    background: rgba(1, 12, 27, .90);
    box-shadow: inset 0 0 36px rgba(0, 123, 255, .06);
  }
  .chat-central .panel-head {
    min-height: 68px;
    border-bottom: 1px solid rgba(0, 143, 255, .24);
    background: linear-gradient(180deg, rgba(7, 27, 51, .88), rgba(2, 13, 29, .92));
  }
  .chat-central .panel-head h2 { color: #f8fbff; font-size: 18px; }
  .chat-central .panel-head p { color: #9fb2ca; font-size: 12px; }
  .chat-central .chip {
    border-color: rgba(0, 153, 255, .36);
    color: #9ed5ff;
    background: rgba(0, 109, 211, .12);
  }
  .chat-central .chat {
    padding: 22px;
    background:
      radial-gradient(circle at 18% 32%, rgba(0, 132, 255, .17), transparent 24%),
      linear-gradient(180deg, rgba(1, 10, 22, .90), rgba(2, 10, 22, .98));
  }
  .chat-central .msg {
    max-width: min(760px, 92%);
  }
  .chat-central .msg.bot {
    display: flex;
    align-items: flex-end;
    gap: 12px;
  }
  .chat-central .msg.bot::before {
    content: "";
    width: 70px;
    height: 92px;
    flex: 0 0 70px;
    align-self: flex-start;
    background: url('/static/img/lidy-robo-empresa-login-sem-fundo.png') center bottom / contain no-repeat;
    filter: drop-shadow(0 0 18px rgba(0, 153, 255, .40));
  }
  .chat-central .bolha {
    border-radius: 8px;
    font-size: 13px;
  }
  .chat-central .msg.bot .bolha {
    color: #e9f4ff;
    border-color: rgba(0, 143, 255, .35);
    background: rgba(4, 20, 39, .94);
  }
  .chat-central .msg.user .bolha {
    background: linear-gradient(135deg, #0068ff, #00a2ff);
    color: #fff;
    box-shadow: 0 0 28px rgba(0, 130, 255, .20);
  }
  .chat-central .msg.bot .bolha.erro {
    border-color: rgba(245, 86, 86, .55);
    background: rgba(67, 15, 21, .85);
    color: #ffd6d6;
  }
  .chat-central .msg.bot .bolha.aviso {
    border-color: rgba(255, 179, 44, .55);
    background: rgba(62, 41, 5, .82);
    color: #ffe0a3;
  }
  .chat-central .typing span { background: #61c7ff; }
  .chat-central .input-bar {
    padding: 14px;
    border-top: 1px solid rgba(0, 143, 255, .24);
    background: rgba(1, 11, 24, .98);
  }
  .chat-central .input-bar input {
    min-height: 50px;
    color: #eaf5ff;
    border-color: rgba(0, 143, 255, .34);
    background: rgba(2, 17, 35, .96);
  }
  .chat-central .input-bar input::placeholder { color: #6f86a3; }
  .chat-central .input-bar input:focus {
    outline: 2px solid rgba(0, 153, 255, .85);
    background: rgba(3, 22, 45, .98);
  }
  .chat-central .input-bar button {
    min-width: 138px;
    min-height: 50px;
    border: 1px solid rgba(82, 190, 255, .55);
    background: linear-gradient(180deg, #178eff, #0057df);
    box-shadow: 0 0 26px rgba(0, 120, 255, .24);
  }
  .chat-central .input-bar button:hover { background: linear-gradient(180deg, #2da5ff, #0065f2); }
  .chat-progress-panel {
    grid-template-rows: auto auto minmax(0, 1fr);
  }
  .chat-passos {
    padding: 14px;
    display: grid;
    gap: 10px;
    border-bottom: 1px solid rgba(0, 143, 255, .18);
    background: rgba(2, 12, 27, .76);
  }
  .chat-passo {
    min-height: 40px;
    display: flex;
    align-items: center;
    gap: 11px;
    color: #b8c8dd;
    font-size: 13px;
  }
  .chat-passo span:first-child {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #70c9ff;
    border: 1px solid rgba(0, 153, 255, .55);
    background: rgba(0, 95, 184, .16);
    font-size: 12px;
  }
  .chat-passo.ativo span:first-child {
    color: #fff;
    background: #078fff;
    box-shadow: 0 0 18px rgba(0, 143, 255, .45);
  }
  .chat-passo strong { color: #f3f8ff; }
  .chat-central .resultado-lista {
    background: rgba(1, 10, 22, .96);
  }
  .chat-central .empty-result {
    color: #9fb2ca;
    min-height: 300px;
  }
  .chat-central .empty-result strong { color: #f5faff; }
  .chat-central .pedido-card {
    background: rgba(4, 20, 39, .94);
    border-color: rgba(0, 143, 255, .28);
  }
  .chat-central .pedido-head {
    border-bottom-color: rgba(0, 143, 255, .20);
  }
  .chat-central .pedido-head h3 { color: #f6fbff; }
  .chat-central .pedido-head .meta,
  .chat-central .obs { color: #aebed3; border-top-color: rgba(0, 143, 255, .20); }
  .chat-central table.itens th {
    background: rgba(3, 26, 51, .96);
    color: #9ed5ff;
  }
  .chat-central table.itens th,
  .chat-central table.itens td {
    border-top-color: rgba(0, 143, 255, .18);
    color: #e2eefc;
  }

  /* --- Aba Orçamentos --- */
  .orcamentos-view {
    min-height: 0;
    overflow-y: auto;
    padding: 18px;
    color: #eef6ff;
    background:
      radial-gradient(circle at 80% 14%, rgba(0, 139, 255, .16), transparent 30%),
      linear-gradient(135deg, #020917 0%, #061326 48%, #030913 100%);
  }
  .orc-central {
    width: 100%;
    max-width: none;
    margin: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 14px;
  }
  .orc-main-card,
  .orc-assistente {
    border: 1px solid rgba(64, 157, 255, .3);
    border-radius: 8px;
    background: rgba(4, 16, 33, .84);
    box-shadow: 0 18px 70px rgba(0, 0, 0, .28), inset 0 0 34px rgba(0, 132, 255, .07);
    backdrop-filter: blur(12px);
  }
  .orc-main-card { padding: 16px; min-width: 0; }
  .orc-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
  }
  .orc-header-icone {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #53bdff;
    font-size: 21px;
    border: 1px solid rgba(34, 153, 255, .66);
    box-shadow: 0 0 18px rgba(0, 127, 255, .24);
    background: rgba(0, 81, 178, .28);
  }
  .orc-header h2 { margin: 0; color: #fff; font-size: 26px; line-height: 1.1; }
  .orc-header p { margin: 4px 0 0; color: #bfd0e6; font-size: 13px; }
  .orc-resumo {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
  }
  .orc-resumo-card {
    min-height: 86px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(64, 157, 255, .22);
    border-radius: 8px;
    background: rgba(2, 12, 27, .68);
  }
  .orc-resumo-icone {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #53bdff;
    border: 1px solid rgba(34, 153, 255, .66);
    background: rgba(0, 81, 178, .28);
  }
  .orc-resumo-icone.ok { color: #43e08b; border-color: rgba(67, 224, 139, .45); background: rgba(24, 128, 80, .16); }
  .orc-resumo-icone.aviso { color: #ffbf47; border-color: rgba(255, 191, 71, .42); background: rgba(126, 76, 0, .22); }
  .orc-resumo-icone.erro { color: #ff6b6b; border-color: rgba(255, 107, 107, .45); background: rgba(140, 20, 20, .22); }
  .orc-resumo-card strong { display: block; color: #fff; font-size: 24px; line-height: 1; }
  .orc-resumo-card span { display: block; margin-top: 4px; color: #95a8bf; font-size: 12px; }
  .orc-resumo-card b { display: block; color: #dfeeff; font-size: 13px; }

  /* --- Revisão Necessária: destaque visual proposital, para a apresentação --- */
  .revisao-secao {
    margin: 4px 0 16px;
    padding: 16px;
    border: 1px solid rgba(255, 191, 71, .55);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(126, 76, 0, .22), rgba(2, 12, 27, .68));
  }
  .revisao-secao-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
  .revisao-secao-icone {
    width: 40px; height: 40px; flex: none; display: grid; place-items: center;
    border-radius: 50%; font-size: 18px; color: #ffbf47;
    border: 1px solid rgba(255, 191, 71, .6); background: rgba(126, 76, 0, .3);
  }
  .revisao-secao-head h3 { margin: 0; color: #fff; font-size: 16px; }
  .revisao-secao-head p { margin: 4px 0 0; color: #dfd0ac; font-size: 12.5px; }
  .revisao-secao-head .orc-contagem { margin-left: auto; align-self: center; }
  .revisao-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
  .revisao-card {
    border: 1px solid rgba(255, 191, 71, .35);
    border-left: 4px solid #ffbf47;
    border-radius: 8px;
    padding: 12px 14px;
    background: rgba(2, 12, 27, .82);
  }
  .revisao-card h4 { margin: 0 0 6px; color: #fff; font-size: 14px; line-height: 1.3; }
  .revisao-card .revisao-linha { font-size: 12.5px; color: #c3d2e6; margin-bottom: 4px; line-height: 1.5; }
  .revisao-card .revisao-linha strong { color: #dfeeff; }
  .revisao-card .revisao-mensagem {
    font-style: italic; color: #ffe1a8; background: rgba(126, 76, 0, .2);
    border-radius: 6px; padding: 6px 8px; margin: 6px 0; font-size: 12.5px;
  }
  .revisao-card .btn-primario { margin-top: 8px; width: 100%; }
  .revisao-aviso-offline { font-size: 11.5px; color: #ffbf47; margin-top: 4px; }
  .revisao-vazio { color: #9fb3cc; font-size: 12.5px; padding: 6px 2px; }
  .orc-toolbar {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 132px 132px auto auto;
    gap: 12px;
    align-items: end;
    background: rgba(2, 12, 27, .72);
    border: 1px solid rgba(64, 157, 255, .24);
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 12px;
  }
  .orc-campo { display: flex; flex-direction: column; gap: 5px; }
  .orc-campo label { font-size: 11px; font-weight: 800; color: #88c9ff; }
  .orc-campo.busca { flex: 1; min-width: 220px; }
  .orc-toolbar input {
    min-height: 38px;
    color: #eef6ff;
    border: 1px solid rgba(64, 157, 255, .24);
    border-radius: 8px;
    padding: 9px 11px;
    font-size: 13px;
    background: rgba(0, 8, 20, .62);
  }
  .orc-toolbar input::placeholder { color: #7f93ad; }
  .orc-toolbar input:focus { outline: 2px solid #0b84ff; outline-offset: -1px; background: rgba(2, 12, 27, .9); }
  .orc-toolbar .btn-secundario {
    min-height: 38px;
    color: #9ecfff;
    background: rgba(2, 12, 27, .72);
    border-color: rgba(64, 157, 255, .32);
  }
  .orc-toolbar .btn-secundario:hover { color: white; border-color: #1f98ff; }
  .orc-contagem { font-size: 11.5px; color: #95a8bf; white-space: nowrap; align-self: center; }

  .orc-grid {
    min-height: 0;
    max-height: calc(100vh - 390px);
    overflow-y: auto;
    border: 1px solid rgba(64, 157, 255, .24);
    border-radius: 8px;
    background: rgba(0, 8, 20, .42);
  }
  .orc-grid .empty-result { min-height: 220px; color: #95a8bf; }
  .orc-grid .empty-result strong { color: #fff; }
  .orc-tabela { min-width: 820px; }
  .orc-tabela-head,
  .orc-row {
    display: grid;
    grid-template-columns: minmax(240px, 1.8fr) minmax(120px, .9fr) minmax(132px, 1fr) 94px 54px 94px 70px;
    gap: 10px;
    align-items: center;
  }
  .orc-tabela-head {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 10px 14px;
    color: #88c9ff;
    background: rgba(2, 15, 34, .98);
    border-bottom: 1px solid rgba(64, 157, 255, .24);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
  }
  .orc-card {
    display: grid;
    grid-template-columns: minmax(240px, 1.8fr) minmax(120px, .9fr) minmax(132px, 1fr) 94px 54px 94px 70px;
    gap: 10px;
    align-items: center;
    min-height: 48px;
    padding: 9px 14px;
    min-width: 0;
    color: #dceaff;
    border-bottom: 1px solid rgba(64, 157, 255, .18);
  }
  .orc-card:hover { background: rgba(0, 112, 255, .08); }
  .orc-card h3 { margin: 0; font-size: 12.5px; color: #fff; line-height: 1.35; }
  .orc-cell { min-width: 0; font-size: 12px; color: #b9cce3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .orc-cell.assunto { color: #fff; white-space: normal; }
  .orc-cell.remetente { color: #8fa4bf; }
  .orc-cell.itens { text-align: center; color: #e8f4ff; }
  .orc-card .meta { display: contents; }
  .orc-card .rodape { display: contents; }
  .orc-status-pill {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 25px;
    padding: 0 10px;
    border-radius: 999px;
    color: #43e08b;
    background: rgba(24, 128, 80, .2);
    font-size: 11px;
    font-weight: 900;
  }
  .btn-detalhe {
    min-height: 28px;
    border: 1px solid rgba(35, 151, 255, .72);
    background: rgba(0, 81, 178, .22);
    color: #78c8ff;
    border-radius: 7px;
    padding: 5px 12px;
    font-weight: 800;
    font-size: 12px;
    cursor: pointer;
  }
  .btn-detalhe:hover { background: #0a70ee; color: white; }
  .orc-assistente {
    padding: 16px 14px;
    display: grid;
    align-content: start;
    gap: 12px;
    min-width: 0;
  }
  .orc-assistente h3 { margin: 0; color: #55bfff; font-size: 20px; }
  .orc-assistente p { margin: 0; color: #b9cce3; font-size: 12.5px; line-height: 1.45; }
  .orc-assistente .bot-figure { width: 165px; height: 278px; }
  .orc-assistente-card {
    border: 1px solid rgba(64, 157, 255, .28);
    border-radius: 8px;
    padding: 12px;
    background: rgba(2, 12, 27, .64);
  }
  .orc-assistente-card strong { display: block; color: #fff; font-size: 13px; margin-bottom: 6px; }
  .orc-assistente-card ul { margin: 0; padding-left: 18px; color: #9fb3cc; font-size: 12px; line-height: 1.55; }

  /* Orçamentos no visual claro Belardo. */
  .orcamentos-view {
    color: #17304d;
    background:
      url('/static/img/login-folha-baixo-transparente.png') left bottom / 230px auto no-repeat,
      radial-gradient(circle at 92% 5%, rgba(47, 143, 45, .18) 0 76px, transparent 78px),
      linear-gradient(180deg, #f7faf7 0%, #f4f7fa 100%);
  }
  .orc-central {
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 18px;
  }
  .orc-main-card,
  .orc-assistente {
    border-color: #dfe8dc;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 16px 34px rgba(31, 46, 30, .08);
    backdrop-filter: none;
  }
  .orc-main-card {
    padding: 18px;
    border-top: 4px solid #ff970f;
  }
  .orc-header {
    padding: 2px 4px 8px;
    border-bottom: 1px solid #e5ece3;
  }
  .orc-header-icone {
    color: #2f8f2d;
    border-color: rgba(47, 143, 45, .25);
    background: #eaf6e6;
    box-shadow: none;
  }
  .orc-header h2 {
    color: #1f2831;
    font-size: 30px;
  }
  .orc-header p {
    color: #5e7187;
  }
  .orc-resumo {
    gap: 12px;
    margin-bottom: 14px;
  }
  .orc-resumo-card {
    border-color: #e0e8df;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(31, 46, 30, .06);
  }
  .orc-resumo-icone {
    color: #2f8f2d;
    border-color: rgba(47, 143, 45, .22);
    background: #eaf6e6;
  }
  .orc-resumo-icone.ok {
    color: #2f8f2d;
    border-color: rgba(47, 143, 45, .24);
    background: #eaf6e6;
  }
  .orc-resumo-icone.aviso {
    color: #f59500;
    border-color: rgba(245, 149, 0, .25);
    background: #fff1d2;
  }
  .orc-resumo-icone.erro {
    color: #b33b2f;
    border-color: rgba(179, 59, 47, .22);
    background: #fff0ec;
  }
  .orc-resumo-card strong {
    color: #15365b;
    font-size: 29px;
  }
  .orc-resumo-card span {
    color: #617891;
  }
  .orc-resumo-card b {
    color: #15365b;
  }
  .revisao-secao {
    border-color: #f3c45c;
    background: linear-gradient(180deg, #fff8e8 0%, #ffffff 100%);
    box-shadow: 0 12px 28px rgba(245, 149, 0, .08);
  }
  .revisao-secao-icone {
    color: #f59500;
    border-color: rgba(245, 149, 0, .35);
    background: #fff1d2;
  }
  .revisao-secao-head h3 {
    color: #1f2831;
  }
  .revisao-secao-head p,
  .revisao-vazio {
    color: #5e7187;
  }
  .revisao-card {
    border-color: #f0c86e;
    border-left-color: #ff970f;
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(31, 46, 30, .05);
  }
  .revisao-card h4 {
    color: #15365b;
  }
  .revisao-card .revisao-linha {
    color: #53657c;
  }
  .revisao-card .revisao-linha strong {
    color: #1f2831;
  }
  .revisao-card .revisao-mensagem {
    color: #855600;
    background: #fff2d7;
  }
  .revisao-card .btn-primario {
    background: linear-gradient(180deg, #ffae22, #ff8708);
    border-color: #ff970f;
  }
  .revisao-aviso-offline {
    color: #c97900;
  }
  .orc-toolbar {
    background: #ffffff;
    border-color: #dfe8dc;
    box-shadow: 0 10px 24px rgba(31, 46, 30, .05);
  }
  .orc-campo label {
    color: #2f8f2d;
  }
  .orc-toolbar input {
    color: #17304d;
    border-color: #d8e2dc;
    background: #fbfcfb;
  }
  .orc-toolbar input::placeholder {
    color: #7f8d9c;
  }
  .orc-toolbar input:focus {
    outline: none;
    border-color: #2f8f2d;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(47, 143, 45, .10);
  }
  .orc-toolbar .btn-secundario {
    color: #15365b;
    background: #ffffff;
    border-color: #d8e2dc;
  }
  .orc-toolbar .btn-secundario:hover {
    color: #2f8f2d;
    border-color: #8dc985;
    background: #f3faf0;
  }
  .orc-contagem {
    color: #617891;
  }
  .orc-grid {
    border-color: #dfe8dc;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(31, 46, 30, .05);
  }
  .orc-grid .empty-result {
    color: #617891;
  }
  .orc-grid .empty-result strong {
    color: #15365b;
  }
  .orc-tabela-head {
    color: #31506e;
    background: #f7faf7;
    border-bottom-color: #dfe8dc;
  }
  .orc-card {
    color: #33485f;
    border-bottom-color: #e7eee6;
    background: #ffffff;
  }
  .orc-card:hover {
    background: #f6fbf3;
  }
  .orc-card h3,
  .orc-cell.assunto,
  .orc-cell.itens {
    color: #15365b;
  }
  .orc-cell {
    color: #53657c;
  }
  .orc-cell.remetente {
    color: #6d7f92;
  }
  .orc-status-pill {
    color: #2f8f2d;
    background: #e6f6e2;
  }
  .btn-detalhe {
    color: #2f8f2d;
    border-color: rgba(47, 143, 45, .38);
    background: #ffffff;
  }
  .btn-detalhe:hover {
    color: #ffffff;
    border-color: #2f8f2d;
    background: #2f8f2d;
  }
  .orc-assistente {
    border-top: 4px solid #ff970f;
    padding: 18px 14px;
  }
  .orc-assistente h3 {
    color: #2f8f2d;
  }
  .orc-assistente p {
    color: #617891;
  }
  .orc-assistente .bot-figure {
    width: 185px;
    height: 300px;
    filter: drop-shadow(0 18px 24px rgba(47, 143, 45, .16));
  }
  .orc-assistente .bot-figure img {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .orc-assistente-card {
    border-color: #dfe8dc;
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(31, 46, 30, .05);
  }
  .orc-assistente-card strong {
    color: #15365b;
  }
  .orc-assistente-card ul {
    color: #617891;
  }

  .painel-detalhe {
    background: var(--surface);
    border-radius: 10px;
    padding: 22px;
    width: 94%;
    max-width: 960px;
    max-height: 88vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px #07204066;
  }
  .detalhe-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 4px; }
  .detalhe-head h2 { margin: 0; font-size: 17px; color: var(--ink); }
  .detalhe-meta { font-size: 12.5px; color: var(--muted); line-height: 1.8; margin: 10px 0 4px; }
  .detalhe-meta strong { color: #40556e; }
  .detalhe-secao { margin-top: 18px; }
  .detalhe-secao h4 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: #40556e; }
  .anexos-lista { display: flex; flex-direction: column; gap: 7px; }
  .anexos-lista a {
    font-size: 12.5px;
    color: var(--blue);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  .anexos-lista a:hover { text-decoration: underline; }
  .detalhe-carregando, .detalhe-erro { padding: 20px 0; font-size: 13px; color: var(--muted); }
  .detalhe-erro { color: var(--red); }

  #overlayDetalhe.aberto {
    align-items: flex-start;
    justify-content: flex-start;
    padding: 78px 14px 14px 334px;
    background: rgba(1, 7, 17, .62);
  }
  .painel-detalhe.detalhe-orcamento-opcao-a {
    width: min(1680px, calc(100vw - 350px));
    max-width: none;
    max-height: calc(100vh - 92px);
    padding: 0;
    overflow: hidden;
    color: #eaf4ff;
    border: 1px solid rgba(64, 157, 255, .42);
    border-radius: 8px;
    background:
      radial-gradient(circle at 92% 12%, rgba(0, 142, 255, .18), transparent 28%),
      linear-gradient(180deg, rgba(5, 19, 38, .98), rgba(2, 10, 22, .99));
    box-shadow: 0 26px 80px rgba(0, 0, 0, .48), inset 0 0 44px rgba(0, 132, 255, .08);
  }
  .detalhe-a-scroll {
    max-height: calc(100vh - 92px);
    overflow-y: auto;
  }
  .detalhe-a-header {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 18px 22px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid rgba(64, 157, 255, .22);
    background: rgba(4, 18, 36, .96);
    backdrop-filter: blur(14px);
  }
  .detalhe-a-opcao {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 0 10px;
    margin-bottom: 10px;
    border-radius: 6px;
    border: 1px solid rgba(0, 196, 255, .7);
    color: #42d8ff;
    background: rgba(0, 139, 255, .14);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .04em;
  }
  .detalhe-a-header h2 {
    margin: 0;
    color: #f7fbff;
    font-size: 30px;
    line-height: 1.12;
  }
  .detalhe-a-header p {
    margin: 8px 0 0;
    color: #a9bdd6;
    font-size: 14px;
  }
  .detalhe-a-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 13px;
    border-radius: 8px;
    color: #87c4ff;
    border: 1px solid rgba(0, 143, 255, .35);
    background: rgba(0, 89, 186, .16);
    font-weight: 800;
    white-space: nowrap;
  }
  .detalhe-a-close {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 8px;
    color: #cfe1f6;
    border: 1px solid rgba(139, 169, 205, .26);
    background: rgba(8, 22, 43, .85);
    cursor: pointer;
    font-weight: 800;
  }
  .detalhe-a-close:hover { border-color: rgba(90, 190, 255, .65); color: #fff; }
  .detalhe-a-body {
    padding: 18px 22px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 16px;
  }
  .detalhe-a-main { min-width: 0; }
  .detalhe-a-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
  }
  .detalhe-a-card {
    min-height: 100px;
    padding: 16px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 13px;
    align-items: center;
    border: 1px solid rgba(64, 157, 255, .27);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(9, 29, 54, .82), rgba(3, 13, 28, .92));
  }
  .detalhe-a-card-icone {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #68caff;
    border: 1px solid rgba(0, 150, 255, .66);
    background: rgba(0, 105, 210, .18);
    box-shadow: 0 0 18px rgba(0, 132, 255, .22);
    font-size: 20px;
    font-weight: 900;
  }
  .detalhe-a-card small {
    display: block;
    margin-bottom: 6px;
    color: #9cb3cf;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-weight: 800;
  }
  .detalhe-a-card strong {
    display: block;
    overflow-wrap: anywhere;
    color: #f4f9ff;
    font-size: 15px;
    line-height: 1.3;
  }
  .detalhe-a-card span {
    display: block;
    margin-top: 3px;
    overflow-wrap: anywhere;
    color: #9fb3cc;
    font-size: 12px;
  }
  .detalhe-a-section {
    margin-top: 14px;
    padding: 16px;
    border: 1px solid rgba(64, 157, 255, .26);
    border-radius: 8px;
    background: rgba(2, 13, 29, .76);
  }
  .detalhe-a-section h4 {
    margin: 0 0 13px;
    color: #f2f8ff;
    font-size: 15px;
    text-transform: none;
    letter-spacing: 0;
  }
  .detalhe-a-section-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .detalhe-orcamento-opcao-a .tabela-scroll {
    border: 1px solid rgba(64, 157, 255, .18);
    border-radius: 8px;
    background: rgba(1, 10, 22, .78);
  }
  .detalhe-orcamento-opcao-a table.itens th {
    background: rgba(11, 33, 62, .96);
    color: #a9d7ff;
  }
  .detalhe-orcamento-opcao-a table.itens th,
  .detalhe-orcamento-opcao-a table.itens td {
    border-top-color: rgba(64, 157, 255, .18);
    color: #e6f0fb;
  }
  .detalhe-orcamento-opcao-a .obs,
  .detalhe-orcamento-opcao-a .detalhe-carregando {
    color: #a9bdd6;
  }
  .detalhe-orcamento-opcao-a .anexos-lista a {
    color: #62c5ff;
  }
  .detalhe-a-assistente {
    min-width: 0;
    padding: 16px;
    display: grid;
    align-content: start;
    gap: 12px;
    border: 1px solid rgba(0, 143, 255, .36);
    border-radius: 8px;
    background:
      radial-gradient(circle at 50% 20%, rgba(0, 153, 255, .22), transparent 36%),
      rgba(2, 13, 29, .82);
  }
  .detalhe-a-assistente h3 {
    margin: 0;
    color: #62c5ff;
    font-size: 28px;
    letter-spacing: .02em;
  }
  .detalhe-a-assistente p {
    margin: 0;
    color: #b8c9dd;
    font-size: 13px;
    line-height: 1.45;
  }
  .detalhe-a-lidy {
    width: 100%;
    max-width: 210px;
    justify-self: center;
    filter: drop-shadow(0 0 28px rgba(0, 145, 255, .42));
  }
  .detalhe-a-assistente-card {
    border: 1px solid rgba(64, 157, 255, .26);
    border-radius: 8px;
    padding: 13px;
    background: rgba(1, 10, 22, .66);
  }
  .detalhe-a-assistente-card strong {
    display: block;
    margin-bottom: 8px;
    color: #fff;
    font-size: 13px;
  }
  .detalhe-a-check {
    display: flex;
    gap: 9px;
    color: #b8c9dd;
    font-size: 12.5px;
    line-height: 1.45;
    margin-top: 8px;
  }
  .detalhe-a-check::before {
    content: "✓";
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #078fff;
    font-size: 11px;
    font-weight: 900;
  }
  .detalhe-a-actions {
    position: sticky;
    bottom: 0;
    z-index: 2;
    padding: 16px 22px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-top: 1px solid rgba(64, 157, 255, .22);
    background: rgba(4, 18, 36, .96);
    backdrop-filter: blur(14px);
  }
  .detalhe-a-actions-grupo {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  .detalhe-a-btn {
    min-height: 46px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 8px;
    border: 1px solid rgba(0, 143, 255, .48);
    color: #8fd4ff;
    background: rgba(0, 91, 190, .18);
    text-decoration: none;
    font-weight: 800;
    cursor: pointer;
  }
  .detalhe-a-btn:hover {
    color: #fff;
    border-color: rgba(0, 180, 255, .82);
    background: rgba(0, 111, 222, .28);
  }
  .detalhe-a-btn.primary {
    color: #fff;
    background: linear-gradient(180deg, #168fff, #075bdc);
    box-shadow: 0 0 26px rgba(0, 120, 255, .26);
  }
  .detalhe-orcamento-opcao-a .analise-idle,
  .detalhe-orcamento-opcao-a .cotacao-sem-analise {
    padding: 18px 10px;
    border: 1px dashed rgba(64, 157, 255, .24);
    border-radius: 8px;
    background: rgba(1, 10, 22, .42);
  }
  .detalhe-orcamento-opcao-a .analise-idle p,
  .detalhe-orcamento-opcao-a .analise-obs,
  .detalhe-orcamento-opcao-a .analise-cabecalho span,
  .detalhe-orcamento-opcao-a .comercial-cabecalho span,
  .detalhe-orcamento-opcao-a .comercial-produto small,
  .detalhe-orcamento-opcao-a .comercial-preco-historico {
    color: #a9bdd6;
  }
  .detalhe-orcamento-opcao-a .analise-resumo,
  .detalhe-orcamento-opcao-a .analise-item-card,
  .detalhe-orcamento-opcao-a .analise-candidato-linha {
    color: #e7f1fc;
    border-color: rgba(64, 157, 255, .22);
    background: rgba(1, 10, 22, .50);
  }
  .detalhe-orcamento-opcao-a .analise-resumo strong,
  .detalhe-orcamento-opcao-a .analise-item-head strong,
  .detalhe-orcamento-opcao-a .analise-precos,
  .detalhe-orcamento-opcao-a .analise-faixa,
  .detalhe-orcamento-opcao-a .analise-decisao,
  .detalhe-orcamento-opcao-a .comercial-total-pronto,
  .detalhe-orcamento-opcao-a .comercial-produto strong,
  .detalhe-orcamento-opcao-a .comercial-subtotal {
    color: #f4f9ff;
  }
  .detalhe-orcamento-opcao-a .comercial-tabela th {
    color: #a9d7ff;
    border-bottom-color: rgba(64, 157, 255, .22);
  }
  .detalhe-orcamento-opcao-a .comercial-tabela td {
    color: #e6f0fb;
    border-bottom-color: rgba(64, 157, 255, .16);
  }
  .detalhe-orcamento-opcao-a .comercial-tabela tr.comercial-linha-pendente {
    background: rgba(120, 76, 0, .18);
  }
  .detalhe-orcamento-opcao-a .comercial-input-valor {
    color: #eaf5ff;
    border-color: rgba(64, 157, 255, .32);
    background: rgba(2, 17, 35, .96);
  }
  .detalhe-orcamento-opcao-a .comercial-rodape {
    border-top-color: rgba(64, 157, 255, .22);
  }

  /* Detalhe do orçamento no tema claro Belardo. */
  #overlayDetalhe.aberto {
    background: rgba(31, 46, 30, .18);
    backdrop-filter: blur(4px);
  }
  .painel-detalhe.detalhe-orcamento-opcao-a {
    color: #17304d;
    border-color: #dfe8dc;
    background:
      url('/static/img/login-folha-baixo-transparente.png') left bottom / 260px auto no-repeat,
      radial-gradient(circle at 96% 6%, rgba(47, 143, 45, .14) 0 84px, transparent 86px),
      linear-gradient(180deg, #ffffff 0%, #f7faf7 100%);
    box-shadow: 0 26px 70px rgba(31, 46, 30, .18);
  }
  .detalhe-a-scroll {
    background: transparent;
  }
  .detalhe-a-header {
    border-bottom-color: #dfe8dc;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(10px);
  }
  .detalhe-a-header::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #ff970f, #ffbd12 48%, #2f8f2d);
  }
  .detalhe-a-header h2 {
    color: #1f2831;
  }
  .detalhe-a-header p {
    color: #617891;
  }
  .detalhe-a-opcao {
    color: #2f8f2d;
    border-color: rgba(47, 143, 45, .25);
    background: #eaf6e6;
  }
  .detalhe-a-status {
    color: #2f8f2d;
    border-color: rgba(47, 143, 45, .28);
    background: #eaf6e6;
  }
  .detalhe-a-close {
    color: #15365b;
    border-color: #d8e2dc;
    background: #ffffff;
  }
  .detalhe-a-close:hover {
    color: #2f8f2d;
    border-color: #8dc985;
    background: #f3faf0;
  }
  .detalhe-a-card {
    border-color: #dfe8dc;
    background: #ffffff;
    box-shadow: 0 12px 26px rgba(31, 46, 30, .06);
  }
  .detalhe-a-card-icone {
    color: #2f8f2d;
    border-color: rgba(47, 143, 45, .22);
    background: #eaf6e6;
    box-shadow: none;
  }
  .detalhe-a-card:nth-child(2) .detalhe-a-card-icone,
  .detalhe-a-card:nth-child(4) .detalhe-a-card-icone {
    color: #f59500;
    border-color: rgba(245, 149, 0, .25);
    background: #fff1d2;
  }
  .detalhe-a-card small {
    color: #617891;
  }
  .detalhe-a-card strong {
    color: #15365b;
  }
  .detalhe-a-card span {
    color: #617891;
  }
  .detalhe-a-section {
    border-color: #dfe8dc;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 12px 26px rgba(31, 46, 30, .05);
  }
  .detalhe-a-section h4 {
    color: #15365b;
  }
  .detalhe-orcamento-opcao-a .tabela-scroll {
    border-color: #dfe8dc;
    background: #ffffff;
  }
  .detalhe-orcamento-opcao-a table.itens th {
    background: #f7faf7;
    color: #31506e;
  }
  .detalhe-orcamento-opcao-a table.itens th,
  .detalhe-orcamento-opcao-a table.itens td {
    border-top-color: #e7eee6;
    color: #33485f;
  }
  .detalhe-orcamento-opcao-a table.itens td:first-child,
  .detalhe-orcamento-opcao-a table.itens td:nth-child(2),
  .detalhe-orcamento-opcao-a table.itens td:nth-child(3) {
    color: #15365b;
  }
  .detalhe-orcamento-opcao-a .obs,
  .detalhe-orcamento-opcao-a .detalhe-carregando {
    color: #617891;
  }
  .detalhe-orcamento-opcao-a .anexos-lista a {
    color: #2f8f2d;
  }
  .detalhe-a-assistente {
    border-color: #dfe8dc;
    border-top: 4px solid #ff970f;
    background:
      radial-gradient(circle at 50% 28%, rgba(47, 143, 45, .12), transparent 38%),
      #ffffff;
    box-shadow: 0 12px 26px rgba(31, 46, 30, .06);
  }
  .detalhe-a-assistente h3 {
    color: #2f8f2d;
  }
  .detalhe-a-assistente p {
    color: #617891;
  }
  .detalhe-a-lidy {
    filter: drop-shadow(0 18px 24px rgba(47, 143, 45, .18));
  }
  .detalhe-a-assistente-card {
    border-color: #dfe8dc;
    background: #ffffff;
    box-shadow: 0 10px 20px rgba(31, 46, 30, .04);
  }
  .detalhe-a-assistente-card strong {
    color: #15365b;
  }
  .detalhe-a-check {
    color: #53657c;
  }
  .detalhe-a-check::before {
    background: #2f8f2d;
  }
  .detalhe-a-actions {
    border-top-color: #dfe8dc;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(10px);
  }
  .detalhe-a-btn {
    color: #15365b;
    border-color: #d8e2dc;
    background: #ffffff;
  }
  .detalhe-a-btn:hover {
    color: #2f8f2d;
    border-color: #8dc985;
    background: #f3faf0;
  }
  .detalhe-a-btn.primary {
    color: #ffffff;
    border-color: #ff970f;
    background: linear-gradient(180deg, #ffae22, #ff8708);
    box-shadow: 0 12px 24px rgba(255, 135, 8, .22);
  }
  .detalhe-orcamento-opcao-a .analise-idle,
  .detalhe-orcamento-opcao-a .cotacao-sem-analise {
    border-color: #dfe8dc;
    background: #f7faf7;
  }
  .detalhe-orcamento-opcao-a .analise-idle p,
  .detalhe-orcamento-opcao-a .analise-obs,
  .detalhe-orcamento-opcao-a .analise-cabecalho span,
  .detalhe-orcamento-opcao-a .comercial-cabecalho span,
  .detalhe-orcamento-opcao-a .comercial-produto small,
  .detalhe-orcamento-opcao-a .comercial-preco-historico {
    color: #617891;
  }
  .detalhe-orcamento-opcao-a .analise-resumo,
  .detalhe-orcamento-opcao-a .analise-item-card,
  .detalhe-orcamento-opcao-a .analise-candidato-linha {
    color: #33485f;
    border-color: #dfe8dc;
    background: #ffffff;
  }
  .detalhe-orcamento-opcao-a .analise-resumo strong,
  .detalhe-orcamento-opcao-a .analise-item-head strong,
  .detalhe-orcamento-opcao-a .analise-precos,
  .detalhe-orcamento-opcao-a .analise-faixa,
  .detalhe-orcamento-opcao-a .analise-decisao,
  .detalhe-orcamento-opcao-a .comercial-total-pronto,
  .detalhe-orcamento-opcao-a .comercial-produto strong,
  .detalhe-orcamento-opcao-a .comercial-subtotal {
    color: #15365b;
  }
  .detalhe-orcamento-opcao-a .comercial-tabela th {
    color: #31506e;
    border-bottom-color: #dfe8dc;
  }
  .detalhe-orcamento-opcao-a .comercial-tabela td {
    color: #33485f;
    border-bottom-color: #e7eee6;
  }
  .detalhe-orcamento-opcao-a .comercial-tabela tr.comercial-linha-pendente {
    background: #fff8e8;
  }
  .detalhe-orcamento-opcao-a .comercial-input-valor {
    color: #17304d;
    border-color: #d8e2dc;
    background: #ffffff;
  }
  .detalhe-orcamento-opcao-a .comercial-input-valor:focus {
    outline: none;
    border-color: #2f8f2d;
    box-shadow: 0 0 0 3px rgba(47, 143, 45, .10);
  }
  .detalhe-orcamento-opcao-a .comercial-rodape {
    border-top-color: #dfe8dc;
  }

  /* --- Cotações: visual LIDY, pronto/sem valores --- */
  .cotacoes-view {
    min-height: 0;
    overflow-y: auto;
    padding: 18px;
    color: #eef6ff;
    background:
      radial-gradient(circle at 82% 12%, rgba(0, 139, 255, .16), transparent 28%),
      linear-gradient(135deg, #020917 0%, #061326 48%, #030913 100%);
  }
  .cotacoes-header {
    margin-bottom: 14px;
    padding: 18px;
    border: 1px solid rgba(64, 157, 255, .28);
    border-radius: 8px;
    background: rgba(4, 16, 33, .78);
    box-shadow: inset 0 0 34px rgba(0, 132, 255, .06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
  }
  .cotacoes-header h2 { margin: 0; font-size: 30px; color: #f6fbff; }
  .cotacoes-header p { margin: 6px 0 0; font-size: 13px; color: #a9bdd6; max-width: 820px; line-height: 1.5; }
  .cotacoes-header .btn-primario {
    flex: 0 0 auto;
    min-height: 44px;
    background: linear-gradient(180deg, #ffb019, #ff8614);
    border-color: rgba(255, 183, 47, .72);
  }
  .cotacoes-toolbar {
    padding: 14px;
    border: 1px solid rgba(64, 157, 255, .24);
    border-radius: 8px;
    background: rgba(2, 12, 27, .72);
    display: grid; grid-template-columns: minmax(220px, 1fr) 132px 132px auto;
    gap: 12px; align-items: end; margin-bottom: 14px;
  }
  .cotacoes-campo { display: flex; flex-direction: column; gap: 5px; }
  .cotacoes-campo label { font-size: 11px; font-weight: 800; color: #8ccfff; }
  .cotacoes-campo.busca { min-width: 220px; }
  .cotacoes-toolbar input {
    min-height: 42px; border: 1px solid rgba(64, 157, 255, .30); border-radius: 8px;
    padding: 9px 11px; font-size: 13px; background: rgba(2, 17, 35, .92); color: #eaf5ff;
  }
  .cotacoes-toolbar input:focus { outline: 2px solid rgba(0, 153, 255, .85); outline-offset: -1px; }
  .cotacoes-toolbar .btn-secundario {
    min-height: 42px;
    color: #9ed5ff;
    border-color: rgba(64, 157, 255, .34);
    background: rgba(0, 91, 190, .14);
  }
  .cotacoes-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
  .cotacoes-chip {
    border: 1px solid rgba(64, 157, 255, .28); background: rgba(2, 12, 27, .68); border-radius: 999px;
    padding: 8px 14px; font-size: 12.5px; font-weight: 800; color: #9fb3cc; cursor: pointer;
    display: inline-flex; align-items: center; gap: 7px;
  }
  .cotacoes-chip:hover { border-color: rgba(0, 153, 255, .72); color: #dff3ff; }
  .cotacoes-chip.ativo { border-color: rgba(0, 153, 255, .78); background: rgba(0, 105, 220, .25); color: #6ed1ff; }
  .cotacoes-chip .cotacao-chip-contagem {
    display: inline-flex; min-width: 20px; height: 20px; padding: 0 6px; align-items: center; justify-content: center;
    border-radius: 999px; background: rgba(139, 169, 205, .15); color: #fff; font-size: 11px; font-weight: 800;
  }
  .cotacoes-chip.ativo .cotacao-chip-contagem { background: rgba(0, 153, 255, .26); }
  .cotacoes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
  .cotacoes-grid .empty-result { grid-column: 1 / -1; padding: 40px 0; text-align: center; color: #a9bdd6; }
  .cotacao-card {
    background: rgba(4, 16, 33, .82); border: 1px solid rgba(64, 157, 255, .26); border-radius: 8px;
    padding: 16px; display: flex; flex-direction: column; gap: 8px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, .22), inset 0 0 24px rgba(0, 132, 255, .05);
    cursor: pointer;
  }
  .cotacao-card:hover { border-color: rgba(0, 153, 255, .60); box-shadow: 0 18px 60px rgba(0, 0, 0, .28), 0 0 28px rgba(0, 132, 255, .12); }
  .cotacao-card-topo { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .cotacao-card-data { font-size: 11px; color: #9fb3cc; white-space: nowrap; }
  .cotacao-card h4 { margin: 0; font-size: 15px; color: #f6fbff; line-height: 1.35; }
  .cotacao-card-cliente { font-size: 12.5px; color: #a9bdd6; }
  .cotacao-card-progresso { font-size: 12px; color: #b9cce3; background: rgba(139, 169, 205, .10); border-radius: 6px; padding: 8px 9px; }
  .cotacao-card-btn { margin-top: 4px; width: 100%; background: linear-gradient(180deg, #168fff, #075bdc); }

  /* Cotações no visual claro Belardo. */
  .cotacoes-view {
    color: #17304d;
    background:
      url('/static/img/login-folha-baixo-transparente.png') left bottom / 230px auto no-repeat,
      radial-gradient(circle at 94% 3%, rgba(47, 143, 45, .20) 0 82px, transparent 84px),
      linear-gradient(180deg, #f7faf7 0%, #f4f7fa 100%);
  }
  .cotacoes-header {
    border-color: #dfe8dc;
    border-top: 4px solid #ff970f;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 16px 34px rgba(31, 46, 30, .08);
  }
  .cotacoes-header h2 {
    color: #1f2831;
  }
  .cotacoes-header p {
    color: #5e7187;
  }
  .cotacoes-header .btn-primario {
    background: linear-gradient(180deg, #ffae22, #ff8708);
    border-color: #ff970f;
    box-shadow: 0 12px 24px rgba(255, 135, 8, .22);
  }
  .cotacoes-toolbar {
    border-color: #dfe8dc;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(31, 46, 30, .05);
  }
  .cotacoes-campo label {
    color: #2f8f2d;
  }
  .cotacoes-toolbar input {
    color: #17304d;
    border-color: #d8e2dc;
    background: #fbfcfb;
  }
  .cotacoes-toolbar input::placeholder {
    color: #7f8d9c;
  }
  .cotacoes-toolbar input:focus {
    outline: none;
    border-color: #2f8f2d;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(47, 143, 45, .10);
  }
  .cotacoes-toolbar .btn-secundario {
    color: #15365b;
    background: #ffffff;
    border-color: #d8e2dc;
  }
  .cotacoes-toolbar .btn-secundario:hover {
    color: #2f8f2d;
    border-color: #8dc985;
    background: #f3faf0;
  }
  .cotacoes-chip {
    color: #31506e;
    border-color: #dfe8dc;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(31, 46, 30, .04);
  }
  .cotacoes-chip:hover {
    color: #2f8f2d;
    border-color: rgba(47, 143, 45, .36);
    background: #f7fcf4;
  }
  .cotacoes-chip.ativo {
    color: #2f8f2d;
    border-color: rgba(47, 143, 45, .55);
    background: #eef8e9;
  }
  .cotacoes-chip .cotacao-chip-contagem {
    color: #15365b;
    background: #edf2ec;
  }
  .cotacoes-chip.ativo .cotacao-chip-contagem {
    color: #ffffff;
    background: #2f8f2d;
  }
  .cotacoes-grid .empty-result {
    color: #617891;
  }
  .cotacao-card {
    color: #17304d;
    border-color: #dfe8dc;
    background: #ffffff;
    box-shadow: 0 16px 34px rgba(31, 46, 30, .08);
  }
  .cotacao-card:hover {
    border-color: rgba(47, 143, 45, .36);
    box-shadow: 0 18px 38px rgba(31, 46, 30, .12);
    background: #fbfef9;
  }
  .cotacao-card-data,
  .cotacao-card-cliente {
    color: #617891;
  }
  .cotacao-card h4 {
    color: #15365b;
  }
  .cotacao-card-progresso {
    color: #31506e;
    background: #f1f7ec;
  }
  .cotacao-card-btn {
    background: linear-gradient(180deg, #2f9b38, #27862f);
    border-color: #2f8f2d;
    box-shadow: 0 12px 24px rgba(47, 143, 45, .18);
  }
  .cotacao-card-btn:hover {
    background: linear-gradient(180deg, #35a940, #2f9237);
  }

  .cotacao-preparacao-pendente { text-align: center; padding: 26px 16px; border: 1px dashed var(--line); border-radius: 10px; }
  .cotacao-preparacao-pendente strong { display: block; font-size: 14px; color: var(--ink); margin-bottom: 6px; }
  .cotacao-preparacao-pendente p { margin: 0; font-size: 12.5px; color: var(--muted); }

  #overlayCotacao.aberto {
    align-items: flex-start;
    justify-content: flex-start;
    padding: 78px 14px 14px 334px;
    background: rgba(1, 7, 17, .62);
  }
  .painel-detalhe.cotacao-painel-lidy {
    width: min(1580px, calc(100vw - 350px));
    max-width: none;
    max-height: calc(100vh - 92px);
    padding: 0;
    overflow: hidden;
    color: #eaf4ff;
    border: 1px solid rgba(64, 157, 255, .38);
    border-radius: 8px;
    background:
      radial-gradient(circle at 83% 14%, rgba(0, 142, 255, .18), transparent 28%),
      linear-gradient(180deg, rgba(5, 19, 38, .98), rgba(2, 10, 22, .99));
    box-shadow: 0 26px 80px rgba(0, 0, 0, .48), inset 0 0 44px rgba(0, 132, 255, .08);
  }
  .painel-detalhe.cotacao-painel-manual {
    width: min(1420px, calc(100vw - 370px));
    max-width: none;
    max-height: calc(100vh - 92px);
    padding: 0;
    overflow: hidden;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 26px 80px rgba(19, 36, 55, .22);
  }
  .cotacao-lidy-shell {
    max-height: calc(100vh - 92px);
    overflow-y: auto;
    padding: 22px;
  }
  .cotacao-lidy-shell.pronta {
    background:
      radial-gradient(circle at 78% 10%, rgba(55, 220, 142, .12), transparent 26%),
      radial-gradient(circle at 88% 30%, rgba(0, 142, 255, .16), transparent 30%);
  }
  .cotacao-lidy-shell.pendente {
    background:
      radial-gradient(circle at 18% 18%, rgba(255, 179, 44, .12), transparent 28%),
      radial-gradient(circle at 88% 28%, rgba(0, 142, 255, .12), transparent 30%);
  }
  .cotacao-lidy-topo {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 18px;
    align-items: start;
    margin-bottom: 16px;
  }
  .cotacao-lidy-title {
    display: flex;
    gap: 16px;
    align-items: flex-start;
  }
  .cotacao-lidy-icone {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 30px;
    font-weight: 900;
  }
  .cotacao-lidy-shell.pronta .cotacao-lidy-icone {
    color: #052116;
    background: #43e08b;
    box-shadow: 0 0 26px rgba(67, 224, 139, .38);
  }
  .cotacao-lidy-shell.pendente .cotacao-lidy-icone {
    color: #2a1700;
    background: #ffb22c;
    box-shadow: 0 0 26px rgba(255, 178, 44, .38);
  }
  .cotacao-lidy-title h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(30px, 3.5vw, 48px);
    line-height: 1.05;
  }
  .cotacao-lidy-title p {
    margin: 8px 0 0;
    color: #c6d7ea;
    font-size: 17px;
  }
  .cotacao-lidy-close {
    justify-self: end;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 8px;
    color: #cfe1f6;
    border: 1px solid rgba(139, 169, 205, .26);
    background: rgba(8, 22, 43, .85);
    cursor: pointer;
    font-weight: 800;
  }
  .cotacao-lidy-totalbox {
    max-width: 620px;
    margin-bottom: 16px;
    padding: 22px 26px;
    border: 1px solid rgba(0, 153, 255, .46);
    border-radius: 8px;
    background: rgba(0, 28, 62, .38);
    box-shadow: inset 0 0 28px rgba(0, 132, 255, .08);
  }
  .cotacao-lidy-totalbox span {
    display: block;
    margin-bottom: 8px;
    color: #9ed5ff;
    font-size: 15px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
  }
  .cotacao-lidy-totalbox strong {
    color: #23a8ff;
    font-size: clamp(40px, 6vw, 70px);
    line-height: 1;
    text-shadow: 0 0 24px rgba(0, 153, 255, .36);
  }
  .cotacao-lidy-robo {
    grid-row: span 2;
    justify-self: center;
    width: 270px;
    max-width: 100%;
    filter: drop-shadow(0 0 32px rgba(0, 145, 255, .42));
  }
  .cotacao-lidy-shell.pendente .cotacao-lidy-robo {
    filter: drop-shadow(0 0 28px rgba(255, 178, 44, .28));
  }
  .cotacao-lidy-beneficios {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
  }
  .cotacao-beneficio {
    min-height: 82px;
    padding: 14px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    border-radius: 8px;
    border: 1px solid rgba(255, 178, 44, .34);
    background: rgba(40, 24, 4, .32);
  }
  .cotacao-beneficio-icone {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffbd4a;
    background: rgba(255, 178, 44, .14);
  }
  .cotacao-beneficio strong { display: block; color: #fff; font-size: 13px; }
  .cotacao-beneficio span { display: block; margin-top: 4px; color: #d7c4a5; font-size: 12px; line-height: 1.35; }
  .cotacao-status-meta {
    margin-bottom: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(64, 157, 255, .22);
    border-radius: 8px;
    background: rgba(2, 12, 27, .58);
  }
  .cotacao-status-meta strong {
    display: block;
    color: #fff;
    font-size: 15px;
    margin-bottom: 5px;
  }
  .cotacao-status-meta span {
    display: block;
    color: #a9bdd6;
    font-size: 12px;
    line-height: 1.45;
  }
  .cotacao-status-aguardando {
    font-size: 14px; color: #ffd58a; background: rgba(78, 48, 0, .34); border: 1px solid rgba(255, 178, 44, .54);
    border-radius: 8px; padding: 13px 14px; margin-bottom: 14px;
  }
  .cotacao-status-pronta {
    font-size: 14px; font-weight: 800; color: #a9ffd1; background: rgba(24, 128, 80, .16);
    border: 1px solid rgba(67, 224, 139, .28); border-radius: 8px; padding: 13px 14px; margin-bottom: 14px;
  }
  .cotacao-erro-geral { font-size: 12px; color: var(--red); min-height: 0; }
  .cotacao-erro-geral:not(:empty) { margin-bottom: 8px; }

  .cotacao-tabela-wrap {
    border: 1px solid rgba(64, 157, 255, .34);
    border-radius: 8px;
    overflow-x: auto;
    background: rgba(1, 10, 22, .56);
    margin-bottom: 16px;
  }
  .cotacao-tabela { width: 100%; min-width: 1120px; border-collapse: collapse; font-size: 14px; margin-bottom: 0; }
  .cotacao-tabela th {
    text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .04em;
    color: #9ed5ff; padding: 13px 14px; border-bottom: 1px solid rgba(64, 157, 255, .22);
  }
  .cotacao-tabela td { padding: 14px; border-bottom: 1px solid rgba(64, 157, 255, .16); vertical-align: middle; color: #f3f8ff; }
  .cotacao-tabela tr:last-child td { border-bottom: 0; }
  .cotacao-tabela tr.cotacao-linha-pendente { background: rgba(255, 178, 44, .07); }
  .cotacao-item-numero {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    color: #5ed0ff;
    background: rgba(0, 132, 255, .16);
    font-weight: 900;
  }
  .cotacao-produto { font-weight: 800; color: #fff; }
  .cotacao-total-item { font-weight: 800; color: #fff; white-space: nowrap; }
  .cotacao-valor-final { font-weight: 800; color: #fff; }
  .cotacao-sugestao { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
  .cotacao-sugestao-valor { font-weight: 800; color: #fff; font-size: 13px; }
  .cotacao-sugestao-rotulo { font-size: 10.5px; font-weight: 700; color: #6ed1ff; }
  .cotacao-btn-confirmar { padding: 5px 12px; font-size: 11.5px; min-height: 0; }
  .cotacao-informar { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
  .cotacao-input-valor {
    min-width: 154px; border: 1px solid rgba(255, 178, 44, .85); border-radius: 8px; padding: 9px 11px; font-size: 13px;
    color: #f5fbff; background: rgba(2, 17, 35, .82);
  }
  .cotacao-btn-informar { padding: 5px 12px; font-size: 11.5px; min-height: 0; }
  .cotacao-erro-campo { font-size: 11px; color: var(--red); min-height: 0; }
  .cotacao-comercial-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
    padding: 14px;
    border: 1px solid rgba(64, 157, 255, .24);
    border-radius: 8px;
    background: rgba(2, 12, 27, .62);
  }
  .cotacao-comercial-campo { display: flex; flex-direction: column; gap: 5px; }
  .cotacao-comercial-campo.largo { grid-column: span 2; }
  .cotacao-comercial-campo.justificativa { grid-column: 1 / -1; }
  .cotacao-comercial-campo label { color: #9ed5ff; font-size: 11px; font-weight: 900; text-transform: uppercase; }
  .cotacao-comercial-campo input,
  .cotacao-comercial-campo select,
  .cotacao-comercial-campo textarea,
  .cotacao-manual-form input,
  .cotacao-manual-form select,
  .cotacao-manual-form textarea {
    min-height: 40px;
    border: 1px solid rgba(64, 157, 255, .30);
    border-radius: 8px;
    padding: 9px 11px;
    color: #eef7ff;
    background: rgba(2, 17, 35, .88);
    font: inherit;
  }
  .cotacao-comercial-campo textarea,
  .cotacao-manual-form textarea { min-height: 70px; resize: vertical; }
  .cotacao-comercial-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
  }
  .cotacao-valor-stack { display: grid; gap: 6px; min-width: 160px; }
  .cotacao-input-margem {
    width: 100%;
    border: 1px solid rgba(64, 157, 255, .30);
    border-radius: 8px;
    padding: 7px 9px;
    font-size: 12px;
    color: #eaf5ff;
    background: rgba(2, 17, 35, .74);
  }
  .cotacao-input-custo,
  .cotacao-input-fornecedor {
    width: 100%;
    border: 1px solid rgba(64, 157, 255, .30);
    border-radius: 8px;
    padding: 7px 9px;
    font-size: 12px;
    color: #eaf5ff;
    background: rgba(2, 17, 35, .74);
  }
  .cotacao-log {
    margin-top: 14px;
    border: 1px solid rgba(64, 157, 255, .20);
    border-radius: 8px;
    background: rgba(2, 12, 27, .50);
    padding: 12px 14px;
  }
  .cotacao-log h4 { margin: 0 0 8px; color: #fff; font-size: 14px; }
  .cotacao-log-item { padding: 8px 0; border-top: 1px solid rgba(64, 157, 255, .14); color: #c5d7ec; font-size: 12px; }
  .cotacao-log-item:first-of-type { border-top: 0; }
  .cotacao-log-item strong { color: #fff; }

  /* Modal de cotação no tema claro Belardo. */
  #overlayCotacao.aberto {
    background: rgba(31, 46, 30, .18);
    backdrop-filter: blur(4px);
  }
  .painel-detalhe.cotacao-painel-lidy {
    color: #17304d;
    border-color: #dfe8dc;
    background:
      url('/static/img/login-folha-baixo-transparente.png') left bottom / 260px auto no-repeat,
      radial-gradient(circle at 94% 8%, rgba(47, 143, 45, .14) 0 96px, transparent 98px),
      linear-gradient(180deg, #ffffff 0%, #f7faf7 100%);
    box-shadow: 0 26px 70px rgba(31, 46, 30, .18);
  }
  .cotacao-lidy-shell,
  .cotacao-lidy-shell.pronta,
  .cotacao-lidy-shell.pendente {
    background:
      radial-gradient(circle at 88% 16%, rgba(47, 143, 45, .12), transparent 28%),
      linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(247, 250, 247, .96));
  }
  .cotacao-lidy-topo {
    padding-bottom: 16px;
    border-bottom: 1px solid #dfe8dc;
  }
  .cotacao-lidy-icone,
  .cotacao-lidy-shell.pronta .cotacao-lidy-icone {
    color: #ffffff;
    background: #2f8f2d;
    box-shadow: 0 12px 24px rgba(47, 143, 45, .18);
  }
  .cotacao-lidy-shell.pendente .cotacao-lidy-icone {
    color: #ffffff;
    background: #ff970f;
    box-shadow: 0 12px 24px rgba(255, 151, 15, .18);
  }
  .cotacao-lidy-title h2 {
    color: #1f2831;
    text-shadow: none;
  }
  .cotacao-lidy-title p {
    color: #617891;
  }
  .cotacao-lidy-close {
    color: #15365b;
    border-color: #d8e2dc;
    background: #ffffff;
  }
  .cotacao-lidy-close:hover {
    color: #2f8f2d;
    border-color: #8dc985;
    background: #f3faf0;
  }
  .cotacao-lidy-totalbox {
    border-color: #dfe8dc;
    background: #ffffff;
    box-shadow: 0 16px 34px rgba(31, 46, 30, .08);
  }
  .cotacao-lidy-totalbox span {
    color: #2f8f2d;
  }
  .cotacao-lidy-totalbox strong {
    color: #2f8f2d;
    text-shadow: none;
  }
  .cotacao-lidy-robo,
  .cotacao-lidy-shell.pendente .cotacao-lidy-robo {
    filter: drop-shadow(0 18px 24px rgba(47, 143, 45, .18));
  }
  .cotacao-beneficio {
    border-color: #dfe8dc;
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(31, 46, 30, .05);
  }
  .cotacao-beneficio-icone {
    color: #f59500;
    background: #fff1d2;
  }
  .cotacao-beneficio strong {
    color: #15365b;
  }
  .cotacao-beneficio span {
    color: #617891;
  }
  .cotacao-status-meta,
  .cotacao-log {
    border-color: #dfe8dc;
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(31, 46, 30, .05);
  }
  .cotacao-status-meta strong,
  .cotacao-log h4,
  .cotacao-log-item strong {
    color: #15365b;
  }
  .cotacao-status-meta span,
  .cotacao-log-item {
    color: #617891;
  }
  .cotacao-status-aguardando {
    color: #855600;
    background: #fff2d7;
    border-color: #f3c45c;
  }
  .cotacao-status-pronta {
    color: #23652a;
    background: #edf8e9;
    border-color: #cae8c3;
  }
  .cotacao-tabela-wrap {
    border-color: #dfe8dc;
    background: #ffffff;
    box-shadow: 0 12px 26px rgba(31, 46, 30, .05);
  }
  .cotacao-tabela th {
    color: #31506e;
    background: #f7faf7;
    border-bottom-color: #dfe8dc;
  }
  .cotacao-tabela td {
    color: #33485f;
    border-bottom-color: #e7eee6;
  }
  .cotacao-tabela tr.cotacao-linha-pendente {
    background: #fff8e8;
  }
  .cotacao-item-numero {
    color: #ffffff;
    background: #2f8f2d;
  }
  .cotacao-produto,
  .cotacao-total-item,
  .cotacao-valor-final,
  .cotacao-sugestao-valor {
    color: #15365b;
  }
  .cotacao-sugestao-rotulo {
    color: #2f8f2d;
  }
  .cotacao-comercial-grid {
    border-color: #dfe8dc;
    background: #ffffff;
    box-shadow: 0 12px 26px rgba(31, 46, 30, .05);
  }
  .cotacao-comercial-campo label {
    color: #2f8f2d;
  }
  .cotacao-comercial-campo input,
  .cotacao-comercial-campo select,
  .cotacao-comercial-campo textarea {
    color: #17304d;
    border-color: #d8e2dc;
    background: #ffffff;
  }
  .cotacao-comercial-campo input:focus,
  .cotacao-comercial-campo select:focus,
  .cotacao-comercial-campo textarea:focus,
  .cotacao-input-valor:focus,
  .cotacao-input-margem:focus,
  .cotacao-input-custo:focus,
  .cotacao-input-fornecedor:focus {
    outline: none;
    border-color: #2f8f2d;
    box-shadow: 0 0 0 3px rgba(47, 143, 45, .10);
  }
  .cotacao-input-valor,
  .cotacao-input-margem,
  .cotacao-input-custo,
  .cotacao-input-fornecedor {
    color: #17304d;
    border-color: #d8e2dc;
    background: #ffffff;
  }
  .cotacao-btn-confirmar,
  .cotacao-btn-informar {
    background: linear-gradient(180deg, #2f9b38, #27862f);
    border-color: #2f8f2d;
    color: #ffffff;
  }
  .cotacao-log-item {
    border-top-color: #e7eee6;
  }
  .cotacao-manual-form {
    display: grid;
    gap: 14px;
    padding: 0 22px 22px;
    color: var(--ink);
    background: var(--surface);
    max-height: calc(100vh - 92px);
    overflow-y: auto;
    border-top: 6px solid var(--orange);
  }
  .cotacao-manual-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 0 8px;
    border-bottom: 1px solid var(--line);
  }
  .cotacao-manual-head h2 { margin: 0; color: var(--ink); font-size: 30px; letter-spacing: 0; }
  .cotacao-manual-head p { margin: 6px 0 0; color: var(--muted); }
  .cotacao-manual-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .cotacao-manual-grid .span-2 { grid-column: span 2; }
  .cotacao-manual-grid .span-full { grid-column: 1 / -1; }
  .cotacao-manual-campo { display: flex; flex-direction: column; gap: 5px; }
  .cotacao-manual-campo label { color: #31506e; font-size: 11px; font-weight: 900; text-transform: uppercase; }
  .cotacao-manual-form input,
  .cotacao-manual-form select,
  .cotacao-manual-form textarea {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    color: var(--ink);
    background: #fff;
    border-color: var(--line);
  }
  .cotacao-manual-form input:focus,
  .cotacao-manual-form select:focus,
  .cotacao-manual-form textarea:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(47, 147, 51, .10);
  }
  .cotacao-manual-itens {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
  }
  .cotacao-manual-itens > strong { color: var(--ink); font-size: 15px; }
  .cotacao-manual-item {
    display: grid;
    grid-template-columns: minmax(180px, 1.4fr) minmax(130px, 1fr) minmax(90px, .55fr) minmax(90px, .55fr);
    gap: 8px;
    align-items: end;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
  }
  .cotacao-manual-item .cotacao-manual-campo { min-width: 0; }
  .cotacao-manual-item button { min-height: 40px; justify-self: start; }
  .cotacao-manual-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
  .cotacao-manual-form .btn-primario {
    background: linear-gradient(180deg, #ffae1f, #ff890f);
    border-color: #ff940f;
    color: #fff;
    box-shadow: 0 14px 30px rgba(255, 137, 15, .24);
  }
  .cotacao-manual-form .btn-secundario,
  .painel-detalhe.cotacao-painel-manual .cotacao-lidy-close {
    color: #5a6b7d;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 8px 22px rgba(19, 36, 55, .08);
  }
  .cotacao-manual-form .btn-secundario:hover,
  .painel-detalhe.cotacao-painel-manual .cotacao-lidy-close:hover {
    color: var(--ink);
    border-color: #bdd0e1;
  }
  .cotacao-replicacao {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
  }
  .cotacao-replicacao-topo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
  }
  .cotacao-replicacao-topo strong { color: var(--ink); font-size: 15px; }
  .cotacao-replicacao-topo span { color: var(--muted); font-size: 12px; }
  .cotacao-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--green);
    font-weight: 900;
    font-size: 13px;
  }
  .cotacao-check input { width: 18px; min-height: 18px; accent-color: var(--green); }
  .cotacao-replicacao-lista {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }
  .cotacao-replicacao-card {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
  }
  .cotacao-replicacao-card-topo {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .cotacao-replicacao-card-topo input {
    width: 18px;
    min-height: 18px;
    accent-color: var(--green);
  }
  .cotacao-replicacao-card strong { color: var(--ink); font-size: 13px; line-height: 1.25; }
  .cotacao-replicacao-card label { color: #31506e; font-size: 11px; font-weight: 900; text-transform: uppercase; }
  .cotacao-replicacao-card input {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    box-sizing: border-box;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px 10px;
  }
  .cotacao-replicacao.oculta { display: none; }
  .cotacao-pos-salvar {
    display: grid;
    gap: 18px;
    max-width: 980px;
    margin: 0 auto;
    padding: 32px;
    color: var(--ink);
  }
  .cotacao-pos-salvar-card {
    display: grid;
    gap: 16px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(25, 47, 70, .10);
  }
  .cotacao-pos-salvar-card h2 {
    margin: 0;
    font-size: 30px;
    color: var(--ink);
  }
  .cotacao-pos-salvar-card p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.5;
  }
  .cotacao-pos-salvar-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
  }

  .cotacao-rodape {
    display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 4px;
    padding: 16px; border: 1px solid rgba(64, 157, 255, .22); border-radius: 8px; background: rgba(2, 12, 27, .66);
  }
  .cotacao-total-geral { font-size: 28px; font-weight: 900; color: #23a8ff; }
  .cotacao-total-pendente { font-size: 18px; color: #ffbd4a; font-weight: 900; }
  .cotacao-btn-finalizar { margin-left: auto; }
  .cotacao-download-btn {
    margin-left: auto;
    min-height: 46px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(180deg, #168fff, #075bdc);
    border: 1px solid rgba(82, 190, 255, .55);
    text-decoration: none;
    font-weight: 900;
    box-shadow: 0 0 26px rgba(0, 120, 255, .24);
  }

  .cotacao-resposta-secao { border-top: 1px solid rgba(64, 157, 255, .22); padding-top: 14px; margin-top: 14px; }
  .cotacao-resposta {
    white-space: pre-wrap; font-family: inherit; font-size: 12.5px; line-height: 1.6; color: #eaf4ff;
    background: rgba(2, 12, 27, .74); border: 1px solid rgba(64, 157, 255, .24); border-radius: 8px; padding: 12px 14px; margin: 0 0 10px;
  }

  /* --- Análise Comercial (Fase 2) --- */
  .btn-link { border: 0; background: none; padding: 0; color: var(--blue); font-weight: 800; font-size: 12px; cursor: pointer; }
  .btn-link:hover { text-decoration: underline; }
  .analise-idle { text-align: center; padding: 18px 10px; }
  .analise-idle p { margin: 0 0 12px; font-size: 12.5px; color: var(--muted); }
  .analise-obs { font-size: 12px; color: var(--muted); padding: 8px 0; }
  .analise-aviso {
    background: #fff6e6; border: 1px solid var(--amber); color: #8a5a0d;
    border-radius: 8px; padding: 10px 12px; font-size: 12px; margin-bottom: 12px;
  }
  .analise-cabecalho { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
  .analise-cabecalho span { font-size: 11.5px; color: var(--muted); }
  .analise-resumo {
    display: flex; flex-wrap: wrap; gap: 10px 18px; font-size: 11.5px; color: var(--muted);
    background: var(--surface-soft); border: 1px solid var(--line); border-radius: 8px;
    padding: 10px 14px; margin-bottom: 14px;
  }
  .analise-resumo strong { color: var(--ink); }
  .analise-itens-lista { display: flex; flex-direction: column; gap: 10px; }
  .analise-item-card { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--surface); }
  .analise-item-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 4px; }
  .analise-item-head strong { font-size: 13px; }
  .analise-item-meta { font-size: 11.5px; color: var(--muted); margin-bottom: 8px; }
  .analise-tag-sem-ia {
    display: inline-block; margin-left: 6px; font-size: 10px; font-weight: 800;
    color: var(--green); background: #e6f5f0; border-radius: 999px; padding: 2px 8px;
  }
  .badge-analise { font-size: 10px; font-weight: 800; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
  .badge-analise.ok { background: #e6f5f0; color: var(--green); }
  .badge-analise.info { background: var(--blue-soft); color: var(--blue); }
  .badge-analise.aviso { background: #fff6e6; color: #8a5a0d; }
  .badge-analise.erro { background: #fde8e8; color: var(--red); }
  .badge-analise.neutro { background: #f1f3f6; color: var(--muted); }
  .analise-precos, .analise-faixa { font-size: 12px; color: var(--ink); line-height: 1.7; margin: 4px 0; }
  .analise-precos div, .analise-faixa { }
  .analise-diferencas { font-size: 12px; color: #8a5a0d; margin: 6px 0; }
  .analise-decisao { font-size: 12px; margin: 8px 0 6px; }
  .analise-item-acoes { margin-top: 4px; }
  .analise-candidatos-lista { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 10px; display: flex; flex-direction: column; gap: 10px; }
  .analise-candidato-linha { font-size: 11.5px; background: var(--surface-soft); border-radius: 8px; padding: 8px 10px; }
  .analise-candidato-detalhe { color: var(--muted); margin-top: 3px; }
  .analise-candidato-origem { color: var(--muted); margin-top: 3px; font-size: 11px; }
  .analise-candidato-diferencas { color: #8a5a0d; margin-top: 3px; }

  /* --- Orçamento Comercial (Fase 3) --- */
  .comercial-cabecalho { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
  .comercial-cabecalho span { font-size: 11.5px; color: var(--muted); }
  .comercial-tabela { width: 100%; border-collapse: collapse; font-size: 12.5px; margin-bottom: 12px; }
  .comercial-tabela th {
    text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em;
    color: #40556e; padding: 6px 8px; border-bottom: 1px solid var(--line);
  }
  .comercial-tabela td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
  .comercial-tabela tr.comercial-linha-pendente { background: #fff9ee; }
  .comercial-produto strong { display: block; font-size: 12.5px; }
  .comercial-produto small { color: var(--muted); font-size: 11px; }
  .comercial-preco-historico { font-size: 11.5px; color: var(--muted); }
  .comercial-preco-ausente { font-size: 11.5px; color: #8a5a0d; font-weight: 800; }
  .comercial-input-valor {
    width: 100px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px;
    font-size: 12.5px; text-align: right;
  }
  .comercial-input-valor:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
  .comercial-input-valor.comercial-input-pendente { border-color: var(--amber); background: #fffaf0; }
  .comercial-subtotal { font-weight: 800; white-space: nowrap; }
  .comercial-rodape {
    display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
    padding-top: 10px; border-top: 1px solid var(--line);
  }
  .comercial-total-pronto { font-size: 15px; font-weight: 800; color: var(--ink); }
  .comercial-total-pendente { font-size: 12.5px; color: #8a5a0d; font-weight: 700; }
  .comercial-erro-campo { font-size: 11px; color: var(--red); margin-top: 3px; }
  /* Etapa 3F -- pré-preenchimento visual de sugestão ALTA/MEDIA ainda não
     confirmada (ver montarLinhaItemComercial/montarSecaoOrcamentoComercial). */
  .comercial-tag-confianca { display: inline-block; font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 5px; margin-top: 3px; }
  .comercial-tag-alta { color: var(--green); background: #e5f6f0; }
  .comercial-tag-media { color: var(--amber); background: #fdf2df; }
  .comercial-input-valor.comercial-input-sugestao-alta { border-color: var(--green); background: #f3fbf8; }
  .comercial-btn-confirmar {
    border: 1px solid var(--green); background: #fff; color: var(--green);
    border-radius: 7px; padding: 6px 12px; font-size: 12px; font-weight: 800; cursor: pointer;
  }
  .comercial-btn-confirmar:disabled { opacity: .6; cursor: default; }
  .comercial-btn-confirmar-item { padding: 3px 9px; font-size: 11px; margin-top: 4px; display: inline-block; }

  /* --- Aba Buscar E-mails --- */
  .busca-view {
    min-height: 0;
    overflow-y: auto;
    padding: 18px;
    color: #eef6ff;
    background:
      radial-gradient(circle at 68% 38%, rgba(0, 139, 255, .18), transparent 30%),
      radial-gradient(circle at 22% 84%, rgba(0, 82, 180, .18), transparent 34%),
      linear-gradient(135deg, #020917 0%, #061326 48%, #030913 100%);
  }
  .busca-view::before {
    content: "";
    position: fixed;
    inset: 66px 0 0 240px;
    pointer-events: none;
    opacity: .38;
    background:
      linear-gradient(90deg, transparent 0 18%, rgba(37, 146, 255, .18) 18.2%, transparent 18.4% 45%, rgba(37, 146, 255, .15) 45.2%, transparent 45.4%),
      linear-gradient(180deg, transparent 0 28%, rgba(37, 146, 255, .12) 28.2%, transparent 28.4% 66%, rgba(37, 146, 255, .1) 66.2%, transparent 66.4%);
    mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  }
  .busca-idle,
  .busca-execucao {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
  }
  .busca-idle { display: block; }
  .busca-idle-card,
  .busca-radar-shell {
    border: 1px solid rgba(64, 157, 255, .32);
    border-radius: 8px;
    background: rgba(4, 16, 33, .84);
    box-shadow: 0 18px 70px rgba(0, 0, 0, .32), inset 0 0 34px rgba(0, 132, 255, .08);
    backdrop-filter: blur(12px);
  }
  .busca-idle-card {
    min-height: calc(100vh - 126px);
    padding: 20px 28px;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 14px;
  }
  .busca-radar-topo {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
    align-items: center;
  }
  .busca-radar-alerta {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #ffba3c;
    font-size: 30px;
    background:
      radial-gradient(circle, rgba(255, 182, 44, .24), transparent 58%),
      repeating-radial-gradient(circle, rgba(255, 182, 44, .42) 0 1px, transparent 1px 13px);
    border: 1px solid rgba(255, 177, 38, .28);
  }
  .busca-opcao {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 176, 39, .36);
    background: rgba(126, 76, 0, .34);
    color: #ffbf47;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
  }
  .busca-idle-card h2,
  .busca-radar-shell h2 {
    margin: 10px 0 4px;
    color: #ffffff;
    font-size: 30px;
    line-height: 1.08;
  }
  .busca-idle-card p,
  .busca-radar-shell p {
    margin: 0;
    max-width: 720px;
    color: #bfd0e6;
    font-size: 14px;
    line-height: 1.55;
  }
  .busca-idle-info { font-weight: 800; color: #e6f3ff !important; }
  .busca-metricas {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }
  .busca-metrica {
    min-height: 74px;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(64, 157, 255, .22);
    border-radius: 8px;
    background: rgba(2, 12, 27, .68);
  }
  .busca-metrica-icone {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #53bdff;
    font-size: 20px;
    border: 1px solid rgba(34, 153, 255, .66);
    box-shadow: 0 0 18px rgba(0, 127, 255, .24);
    background: rgba(0, 81, 178, .28);
  }
  .busca-metrica strong { display: block; color: #fff; font-size: 14px; }
  .busca-metrica span { display: block; margin-top: 4px; color: #95a8bf; font-size: 12px; line-height: 1.35; }
  .busca-radar-palco {
    min-height: 300px;
    display: grid;
    grid-template-columns: minmax(190px, 250px) minmax(280px, 1fr) minmax(230px, 290px);
    gap: 18px;
    align-items: center;
    padding: 18px;
    border: 1px solid rgba(0, 133, 255, .42);
    border-radius: 8px;
    background: radial-gradient(circle at 52% 50%, rgba(0, 112, 255, .17), transparent 42%), rgba(0, 11, 25, .56);
  }
  .busca-robo-card {
    display: grid;
    justify-items: center;
    gap: 12px;
  }
  .busca-robo-card .lidy-robo { width: 210px; height: 290px; }
  .bot-figure {
    position: relative;
    width: 190px;
    height: 318px;
    margin: 0 auto;
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .36));
  }
  .bot-figure img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    -webkit-mask-image: radial-gradient(ellipse at 50% 47%, #000 0 58%, rgba(0, 0, 0, .94) 70%, transparent 91%);
    mask-image: radial-gradient(ellipse at 50% 47%, #000 0 58%, rgba(0, 0, 0, .94) 70%, transparent 91%);
  }
  .bot-head {
    position: absolute;
    left: 21px;
    top: 4px;
    width: 108px;
    height: 82px;
    border-radius: 45% 45% 40% 40%;
    background:
      radial-gradient(circle at 28% 18%, #ffffff 0 11%, transparent 12%),
      linear-gradient(145deg, #f7fbff 0%, #bfc9d5 54%, #7f8da0 100%);
    border: 1px solid rgba(168, 202, 241, .58);
    box-shadow: inset -10px -12px 20px rgba(40, 58, 79, .32), inset 10px 8px 18px rgba(255, 255, 255, .58);
  }
  .bot-face {
    position: absolute;
    left: 18px;
    right: 18px;
    top: 24px;
    height: 38px;
    border-radius: 18px;
    background: linear-gradient(180deg, #050b14, #0d1624);
    border: 1px solid rgba(116, 196, 255, .28);
    box-shadow: inset 0 0 14px rgba(0, 140, 255, .22), 0 0 18px rgba(0, 138, 255, .16);
  }
  .bot-eye {
    position: absolute;
    top: 15px;
    width: 21px;
    height: 7px;
    border-radius: 999px;
    background: #35c4ff;
    box-shadow: 0 0 12px #35c4ff, 0 0 20px rgba(53, 196, 255, .52);
  }
  .bot-eye.esq { left: 18px; }
  .bot-eye.dir { right: 18px; }
  .bot-smile {
    position: absolute;
    left: 42px;
    bottom: 7px;
    width: 24px;
    height: 8px;
    border-bottom: 2px solid rgba(255, 255, 255, .55);
    border-radius: 0 0 18px 18px;
  }
  .bot-ear {
    position: absolute;
    top: 27px;
    width: 20px;
    height: 34px;
    border-radius: 999px;
    background: linear-gradient(180deg, #62d5ff, #075bd3);
    box-shadow: 0 0 18px rgba(40, 173, 255, .55);
  }
  .bot-ear.esq { left: -9px; }
  .bot-ear.dir { right: -9px; }
  .bot-ear::after {
    content: "";
    position: absolute;
    inset: 5px;
    border-radius: inherit;
    border: 2px solid rgba(192, 240, 255, .62);
  }
  .bot-neck {
    position: absolute;
    left: 62px;
    top: 79px;
    width: 28px;
    height: 24px;
    border-radius: 8px;
    background: linear-gradient(180deg, #202b3a, #0b1220);
  }
  .bot-body {
    position: absolute;
    left: 36px;
    top: 96px;
    width: 80px;
    height: 64px;
    border-radius: 28px 28px 22px 22px;
    background: linear-gradient(145deg, #f5f9ff, #b7c2cf 58%, #697789);
    border: 1px solid rgba(169, 207, 248, .46);
    box-shadow: inset -9px -10px 18px rgba(32, 48, 68, .3), inset 8px 8px 16px rgba(255, 255, 255, .55);
  }
  .bot-chest {
    position: absolute;
    left: 18px;
    top: 24px;
    width: 44px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #68d8ff;
    background: linear-gradient(180deg, #092548, #03101d);
    box-shadow: inset 0 0 11px rgba(35, 184, 255, .42), 0 0 12px rgba(35, 184, 255, .18);
    font-size: 11px;
    font-weight: 900;
  }
  .bot-arm {
    position: absolute;
    top: 110px;
    width: 22px;
    height: 48px;
    border-radius: 999px;
    background: linear-gradient(145deg, #e7eef8, #748294);
    border: 1px solid rgba(155, 198, 244, .36);
  }
  .bot-arm.esq { left: 20px; transform: rotate(12deg); }
  .bot-arm.dir { right: 20px; transform: rotate(-12deg); }
  .bot-figure .lidy-badge {
    position: absolute;
    right: 21px;
    top: 88px;
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    transform: scale(0);
  }
  .bot-figure .lidy-badge-check { background: var(--green); }
  .bot-figure .lidy-badge-alerta { background: var(--amber); }
  .bot-figure .lidy-badge-erro { background: var(--red); }
  .busca-status-texto {
    max-width: 250px;
    padding: 16px;
    border: 1px solid rgba(64, 157, 255, .22);
    border-radius: 8px;
    color: #d7e8ff;
    background: rgba(2, 12, 27, .64);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    text-align: left;
  }
  .busca-radar-centro {
    display: grid;
    justify-items: center;
    gap: 18px;
  }
  .radar-circulo {
    position: relative;
    width: min(26vw, 260px);
    min-width: 220px;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1px solid rgba(0, 152, 255, .72);
    overflow: hidden;
    background:
      repeating-radial-gradient(circle, rgba(0, 144, 255, .22) 0 1px, transparent 1px 54px),
      linear-gradient(90deg, transparent calc(50% - 1px), rgba(0, 144, 255, .42) 50%, transparent calc(50% + 1px)),
      linear-gradient(0deg, transparent calc(50% - 1px), rgba(0, 144, 255, .42) 50%, transparent calc(50% + 1px)),
      radial-gradient(circle, rgba(0, 139, 255, .18), transparent 62%);
    box-shadow: 0 0 45px rgba(0, 125, 255, .18);
  }
  .radar-circulo::before {
    content: "";
    position: absolute;
    inset: 50% 50% 0 0;
    transform-origin: 100% 0;
    background: linear-gradient(45deg, rgba(0, 187, 255, .78), rgba(0, 187, 255, .22) 42%, transparent 68%);
    animation: radarSweep 4s linear infinite;
  }
  .radar-circulo::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    left: calc(50% - 8px);
    top: calc(50% - 8px);
    border-radius: 50%;
    background: #22c8ff;
    box-shadow: 0 0 20px #22c8ff;
  }
  .radar-envelope {
    position: absolute;
    width: 42px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    color: #8bd7ff;
    border: 1px solid rgba(66, 182, 255, .5);
    background: rgba(0, 90, 188, .35);
    box-shadow: 0 0 16px rgba(0, 138, 255, .22);
  }
  .radar-envelope:nth-child(1) { left: 26%; top: 30%; }
  .radar-envelope:nth-child(2) { right: 22%; top: 25%; }
  .radar-envelope:nth-child(3) { left: 36%; bottom: 28%; }
  .radar-envelope:nth-child(4) { right: 18%; bottom: 30%; }
  .radar-envelope:nth-child(5) { left: 18%; bottom: 40%; }
  .busca-seguranca {
    color: #8da2bd;
    font-size: 11.5px;
  }
  .btn-buscar-grande {
    width: min(100%, 420px);
    min-height: 52px;
    border: 1px solid rgba(91, 185, 255, .7);
    border-radius: 8px;
    padding: 15px 26px;
    background: linear-gradient(180deg, #087cff, #0753d3);
    color: white;
    font-weight: 900;
    font-size: 17px;
    cursor: pointer;
    box-shadow: 0 14px 36px rgba(0, 93, 255, .28), inset 0 1px 0 rgba(255, 255, 255, .28);
  }
  .btn-buscar-grande:hover { background: linear-gradient(180deg, #1689ff, #075fe8); }
  .btn-buscar-grande:disabled { opacity: .6; cursor: wait; }

  .busca-resumo-final {
    background: rgba(2, 12, 27, .78); border: 1px solid rgba(64, 157, 255, .26); border-radius: 8px; padding: 18px;
    text-align: center;
  }
  .busca-resumo-texto div { font-size: 13px; color: #dbeaff; margin-bottom: 4px; line-height: 1.6; }
  .busca-resumo-texto strong { font-size: 15px; }

  .busca-resumo-titulo { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #88c9ff; margin-bottom: 10px; }
  .busca-resumo-destaque {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 8px;
    font-size: 14.5px; color: #dceaff; margin-bottom: 14px; line-height: 1.7;
  }
  .busca-resumo-destaque strong { font-size: 16.5px; color: #45b8ff; }
  .busca-resumo-destaque .busca-resumo-custo { font-size: 16.5px; color: #43e08b; font-weight: 800; }
  .busca-resumo-seta { color: #6d829c; font-weight: 400; }
  .busca-resumo-aviso {
    font-size: 12.5px; color: #a9ffd1; background: rgba(24, 128, 80, .16); border: 1px solid rgba(67, 224, 139, .28);
    border-radius: 8px; padding: 9px 12px; margin-bottom: 14px; text-align: left;
  }
  .busca-resumo-lista { text-align: left; display: grid; gap: 6px; margin-bottom: 4px; }
  .busca-resumo-lista div { font-size: 12.5px; color: #95a8bf; display: flex; justify-content: space-between; gap: 10px; }
  .busca-resumo-lista strong { color: #ffffff; }
  .busca-resumo-lista .linha-custo strong { color: #43e08b; }

  .busca-resumo-final .btn-primario {
    margin-top: 12px; border: 0; border-radius: 8px; padding: 10px 18px;
    background: var(--blue); color: white; font-weight: 800; cursor: pointer;
  }
  .busca-resumo-final .btn-primario:hover { background: var(--blue-2); }

  .busca-execucao {
    display: grid;
    gap: 14px;
  }
  .busca-radar-shell {
    min-height: calc(100vh - 126px);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 14px;
    padding: 20px;
  }
  .busca-progresso-bloco { background: rgba(2, 12, 27, .76); border: 1px solid rgba(64, 157, 255, .26); border-radius: 8px; padding: 14px 16px; }
  .busca-progresso-linha { display: flex; justify-content: space-between; font-size: 12.5px; color: #93a8c2; margin-bottom: 8px; }
  .busca-progresso-linha span:first-child { font-weight: 800; color: #dceaff; }
  .busca-progresso-track { height: 10px; background: rgba(139, 169, 205, .18); border-radius: 999px; overflow: hidden; }
  .busca-progresso-bar { height: 100%; width: 0%; background: linear-gradient(90deg, #008cff, #45c9ff); box-shadow: 0 0 18px rgba(0, 140, 255, .45); transition: width .35s ease; }

  .busca-contadores { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
  .busca-contador {
    background: rgba(2, 12, 27, .74); border: 1px solid rgba(64, 157, 255, .24); border-radius: 8px;
    padding: 10px 6px; text-align: center;
  }
  .busca-contador strong { display: block; font-size: 18px; color: #ffffff; }
  .busca-contador span { font-size: 10.5px; color: #95a8bf; }
  .busca-contador.ok strong { color: #43e08b; }
  .busca-contador.erro strong { color: #ff6b6b; }

  .busca-log-titulo { font-size: 11.5px; font-weight: 800; color: #88c9ff; text-transform: uppercase; letter-spacing: .05em; }
  .busca-log {
    background: rgba(2, 12, 27, .78); border: 1px solid rgba(64, 157, 255, .26); border-radius: 8px;
    padding: 10px 12px; max-height: 260px; overflow-y: auto;
    font-size: 12.5px; font-family: "SFMono-Regular", Consolas, monospace;
    display: flex; flex-direction: column; gap: 3px;
  }
  .busca-log-linha { color: #95a8bf; line-height: 1.5; }
  .busca-log-linha.linha-ok { color: #43e08b; }
  .busca-log-linha.linha-andamento { color: #45b8ff; }
  .busca-log-linha.linha-erro { color: #ff6b6b; }
  .busca-log-linha.linha-alerta { color: #ffbf47; }

  @keyframes radarSweep {
    from { transform: rotate(0deg) skewX(-16deg); }
    to { transform: rotate(360deg) skewX(-16deg); }
  }

  /* Animação da LIDY (robô + documento), 100% CSS/SVG, sem dependência. */
  .lidy-robo { width: 170px; height: 130px; margin: 0 auto; }
  .lidy-robo svg { width: 100%; height: 100%; overflow: visible; }
  .lidy-robo .lidy-corpo { animation: lidyBob 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
  .lidy-robo .lidy-olho { fill: var(--blue); transition: fill .3s ease; }
  .lidy-robo .lidy-feixe { opacity: 0; }
  .lidy-robo .lidy-doc-borda { stroke: var(--line); stroke-width: 2; stroke-opacity: 1; transition: stroke .3s ease; }
  .lidy-robo .lidy-doc-linha rect { fill: #c7d3e0; }
  .lidy-robo .lidy-robo-corpo-forma { fill: var(--blue-soft); stroke: var(--blue); stroke-width: 2; }
  .lidy-robo .lidy-robo-cabeca { fill: var(--blue); }
  .lidy-robo .lidy-robo-antena { stroke: var(--blue); }
  .lidy-robo .lidy-robo-antena-ponta { fill: var(--blue); }
  .lidy-robo .lidy-robo-braco { fill: var(--blue); }
  .lidy-robo .lidy-badge-fundo-ok { fill: var(--green); }
  .lidy-robo .lidy-badge-fundo-alerta { fill: var(--amber); }
  .lidy-robo .lidy-badge-fundo-erro { fill: var(--red); }
  .lidy-robo .lidy-grad-meio { stop-color: var(--blue); stop-opacity: .55; }
  .lidy-robo .lidy-grad-borda { stop-color: var(--blue); stop-opacity: 0; }
  .lidy-robo .lidy-badge { transform: scale(0); transform-box: fill-box; transform-origin: center; }

  @keyframes lidyBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
  @keyframes lidyPulseEye { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
  @keyframes lidyScan { 0% { transform: translateY(0); opacity: .85; } 90% { opacity: .85; } 100% { transform: translateY(64px); opacity: 0; } }
  @keyframes lidyDocGlow { 0%, 100% { stroke-opacity: .45; } 50% { stroke-opacity: 1; } }
  @keyframes lidyPop { 0% { transform: scale(0); } 60% { transform: scale(1.2); } 100% { transform: scale(1); } }
  @keyframes lidyShake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-3px); } 40% { transform: translateX(3px); } 60% { transform: translateX(-2px); } 80% { transform: translateX(2px); } }

  .lidy-robo[data-estado="analisando"] .lidy-olho { animation: lidyPulseEye 1.1s ease-in-out infinite; }
  .lidy-robo[data-estado="analisando"] .bot-eye { animation: lidyPulseEye 1.1s ease-in-out infinite; }
  .lidy-robo[data-estado="analisando"] .lidy-feixe { animation: lidyScan 1.7s linear infinite; }
  .lidy-robo[data-estado="analisando"] .lidy-doc-borda { stroke: var(--blue); animation: lidyDocGlow 1.7s ease-in-out infinite; }

  .lidy-robo[data-estado="concluido"] .lidy-olho { fill: var(--green); }
  .lidy-robo[data-estado="concluido"] .bot-eye { background: #43e08b; box-shadow: 0 0 12px #43e08b, 0 0 20px rgba(67, 224, 139, .45); }
  .lidy-robo[data-estado="concluido"] .lidy-doc-borda { stroke: var(--green); stroke-opacity: 1; }
  .lidy-robo[data-estado="concluido"] .lidy-badge-check { animation: lidyPop .4s ease-out forwards; }

  .lidy-robo[data-estado="limite"] .lidy-olho { fill: var(--amber); }
  .lidy-robo[data-estado="limite"] .bot-eye { background: #ffbf47; box-shadow: 0 0 12px #ffbf47, 0 0 20px rgba(255, 191, 71, .45); }
  .lidy-robo[data-estado="limite"] .lidy-doc-borda { stroke: var(--amber); stroke-opacity: 1; }
  .lidy-robo[data-estado="limite"] .lidy-badge-alerta { animation: lidyPop .4s ease-out forwards; }

  .lidy-robo[data-estado="erro"] .lidy-olho { fill: var(--red); }
  .lidy-robo[data-estado="erro"] .bot-eye { background: #ff6b6b; box-shadow: 0 0 12px #ff6b6b, 0 0 20px rgba(255, 107, 107, .45); }
  .lidy-robo[data-estado="erro"] .lidy-doc-borda { stroke: var(--red); stroke-opacity: 1; }
  .lidy-robo[data-estado="erro"] .lidy-corpo { animation: lidyShake .5s ease-in-out; }
  .lidy-robo[data-estado="erro"] .lidy-badge-erro { animation: lidyPop .4s ease-out forwards; }

  /* Buscar e-mails no tema claro da Belardo. */
  .busca-view {
    color: var(--ink);
    background:
      url('/static/img/login-folha-baixo-transparente.png') left bottom / 260px auto no-repeat,
      url('/static/img/login-folha-direita-transparente.png') right top / 300px auto no-repeat,
      radial-gradient(circle at 18% 0%, rgba(255, 179, 20, .24), transparent 30%),
      linear-gradient(135deg, #fffaf0 0%, #ffffff 46%, #f4faed 100%);
  }
  .busca-view::before {
    inset: 76px 0 0 84px;
    opacity: .32;
    background:
      radial-gradient(circle at 18% 20%, rgba(255, 171, 17, .36), transparent 2px),
      radial-gradient(circle at 70% 32%, rgba(50, 147, 52, .28), transparent 2px),
      linear-gradient(90deg, transparent 0 18%, rgba(50, 147, 52, .12) 18.2%, transparent 18.4% 45%, rgba(255, 158, 12, .12) 45.2%, transparent 45.4%),
      linear-gradient(180deg, transparent 0 28%, rgba(50, 147, 52, .1) 28.2%, transparent 28.4% 66%, rgba(255, 158, 12, .1) 66.2%, transparent 66.4%);
  }
  .busca-idle-card,
  .busca-radar-shell {
    border-color: #dfe8d9;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 18px 55px rgba(15, 37, 26, .12);
    backdrop-filter: blur(10px);
  }
  .busca-idle-card {
    min-height: calc(100vh - 142px);
    border-top: 4px solid #ff970f;
  }
  .busca-radar-shell {
    min-height: calc(100vh - 142px);
    border-top: 4px solid #ff970f;
  }
  .busca-radar-alerta {
    color: #ff970f;
    background:
      radial-gradient(circle, rgba(255, 179, 20, .2), transparent 58%),
      #fff6dc;
    border-color: rgba(255, 151, 15, .35);
    box-shadow: 0 10px 22px rgba(255, 151, 15, .16);
  }
  .busca-opcao {
    border-color: rgba(255, 151, 15, .32);
    background: #fff4d8;
    color: #d87500;
  }
  .busca-idle-card h2,
  .busca-radar-shell h2 {
    color: #172033;
  }
  .busca-idle-card p,
  .busca-radar-shell p,
  .busca-seguranca {
    color: #53657c;
  }
  .busca-idle-info { color: #243448 !important; }
  .busca-metrica {
    border-color: #dfe8d9;
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 10px 24px rgba(15, 37, 26, .08);
  }
  .busca-metrica-icone {
    color: #2f9237;
    border-color: rgba(47, 146, 55, .28);
    background: #eaf6e6;
    box-shadow: none;
  }
  .busca-metrica:nth-child(2) .busca-metrica-icone,
  .busca-metrica:nth-child(4) .busca-metrica-icone {
    color: #f59500;
    border-color: rgba(245, 149, 0, .28);
    background: #fff2d7;
  }
  .busca-metrica strong { color: #172033; }
  .busca-metrica span { color: #5f6f83; }
  .busca-radar-palco {
    border-color: #dfe8d9;
    background:
      radial-gradient(circle at 50% 50%, rgba(50, 147, 52, .1), transparent 42%),
      rgba(255, 255, 255, .68);
  }
  .busca-robo-card .lidy-robo {
    width: 250px;
    height: 360px;
  }
  .busca-robo-card .bot-figure {
    width: 250px;
    height: 360px;
    filter: drop-shadow(0 20px 22px rgba(42, 82, 34, .16));
  }
  .busca-robo-card .bot-figure img {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .busca-status-texto {
    color: #26384d;
    border-color: #dfe8d9;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 37, 26, .08);
  }
  .radar-circulo {
    border-color: rgba(47, 146, 55, .48);
    background:
      repeating-radial-gradient(circle, rgba(47, 146, 55, .13) 0 1px, transparent 1px 54px),
      linear-gradient(90deg, transparent calc(50% - 1px), rgba(47, 146, 55, .24) 50%, transparent calc(50% + 1px)),
      linear-gradient(0deg, transparent calc(50% - 1px), rgba(255, 151, 15, .2) 50%, transparent calc(50% + 1px)),
      radial-gradient(circle, rgba(255, 151, 15, .14), transparent 62%);
    box-shadow: 0 18px 40px rgba(47, 146, 55, .12);
  }
  .radar-circulo::before {
    background: linear-gradient(45deg, rgba(255, 151, 15, .52), rgba(47, 146, 55, .16) 42%, transparent 68%);
  }
  .radar-circulo::after {
    background: #ff970f;
    box-shadow: 0 0 18px rgba(255, 151, 15, .55);
  }
  .radar-envelope {
    color: #2f9237;
    border-color: rgba(47, 146, 55, .28);
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 10px 20px rgba(47, 146, 55, .12);
  }
  .btn-buscar-grande {
    border-color: #ff970f;
    background: linear-gradient(180deg, #ffae22, #ff8708);
    box-shadow: 0 14px 30px rgba(255, 135, 8, .28);
  }
  .btn-buscar-grande:hover { background: linear-gradient(180deg, #ffb936, #ff9416); }
  .busca-resumo-final,
  .busca-progresso-bloco,
  .busca-contador,
  .busca-log {
    color: #26384d;
    border-color: #dfe8d9;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 10px 24px rgba(15, 37, 26, .08);
  }
  .busca-resumo-texto div,
  .busca-resumo-destaque,
  .busca-log-linha,
  .busca-contador span {
    color: #53657c;
  }
  .busca-resumo-texto strong,
  .busca-resumo-lista strong,
  .busca-contador strong,
  .busca-progresso-linha span:first-child {
    color: #172033;
  }
  .busca-resumo-titulo,
  .busca-log-titulo {
    color: #2f9237;
  }
  .busca-resumo-destaque strong { color: #2f9237; }
  .busca-resumo-destaque .busca-resumo-custo,
  .busca-resumo-lista .linha-custo strong,
  .busca-contador.ok strong,
  .busca-log-linha.linha-ok { color: #269432; }
  .busca-resumo-seta { color: #9aa9b9; }
  .busca-resumo-aviso {
    color: #23652a;
    background: #edf8e9;
    border-color: #cae8c3;
  }
  .busca-resumo-lista div { color: #53657c; }
  .busca-resumo-final .btn-primario {
    background: linear-gradient(180deg, #2f9b38, #27862f);
  }
  .busca-resumo-final .btn-primario:hover {
    background: linear-gradient(180deg, #35a940, #2f9237);
  }
  .busca-progresso-linha { color: #53657c; }
  .busca-progresso-track { background: #edf1e9; }
  .busca-progresso-bar {
    background: linear-gradient(90deg, #2f9237, #ff970f);
    box-shadow: 0 0 16px rgba(47, 146, 55, .28);
  }
  .busca-contador.erro strong,
  .busca-log-linha.linha-erro { color: #c94532; }
  .busca-log-linha.linha-andamento { color: #f28c00; }
  .busca-log-linha.linha-alerta { color: #d87500; }

  @media (max-width: 1280px) {
    .painel-detalhe.detalhe-orcamento-opcao-a { width: min(1160px, calc(100vw - 350px)); }
    .painel-detalhe.cotacao-painel-lidy,
    .painel-detalhe.cotacao-painel-manual { width: min(1160px, calc(100vw - 350px)); }
    .cotacao-lidy-topo { grid-template-columns: minmax(0, 1fr) 220px; }
    .cotacao-lidy-beneficios { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cotacao-lidy-robo { width: 210px; }
    .cotacao-replicacao-lista { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cotacao-comercial-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cotacao-manual-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cotacao-manual-item { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .detalhe-a-body { grid-template-columns: 1fr; }
    .detalhe-a-assistente { grid-template-columns: 180px minmax(0, 1fr); align-items: center; }
    .detalhe-a-assistente h3, .detalhe-a-assistente > div:first-child { grid-column: 1 / -1; }
    .detalhe-a-lidy { max-width: 170px; }
    .chat-central-grid { grid-template-columns: 1fr; }
    .chat-atalhos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .orc-central { grid-template-columns: 1fr; }
    .orc-assistente { display: none; }
    .orc-toolbar { grid-template-columns: minmax(240px, 1fr) 132px 132px; }
    .orc-grid { max-height: calc(100vh - 390px); }
  }

  @media (max-width: 640px) {
    .busca-contadores { grid-template-columns: repeat(2, 1fr); }
    .busca-view { padding: 10px; }
    .busca-idle-card, .busca-radar-shell { min-height: auto; padding: 14px; }
    .busca-radar-topo { grid-template-columns: 1fr; }
    .busca-radar-alerta { width: 54px; height: 54px; }
    .busca-idle-card h2, .busca-radar-shell h2 { font-size: 28px; }
    .busca-metricas { grid-template-columns: 1fr; }
    .busca-radar-palco { grid-template-columns: 1fr; padding: 16px; }
    .radar-circulo { width: 100%; min-width: 0; }
    .busca-status-texto { max-width: none; width: 100%; }
  }

  @media (max-width: 980px) {
    .app-shell { grid-template-columns: 1fr; }
    body.sidebar-recolhida .app-shell { grid-template-columns: 1fr; }
    body.sidebar-recolhida .brand-text,
    body.sidebar-recolhida .menu-title,
    body.sidebar-recolhida .menu-label,
    body.sidebar-recolhida .side-status > div {
      opacity: 1;
      width: auto;
      height: auto;
      overflow: visible;
      pointer-events: auto;
    }
    #overlayDetalhe.aberto { padding: 12px; }
    #overlayCotacao.aberto { padding: 12px; }
    .painel-detalhe.detalhe-orcamento-opcao-a { width: 100%; max-height: calc(100vh - 24px); }
    .painel-detalhe.cotacao-painel-lidy,
    .painel-detalhe.cotacao-painel-manual { width: 100%; max-height: calc(100vh - 24px); }
    .detalhe-a-scroll { max-height: calc(100vh - 24px); }
    .cotacao-lidy-shell { max-height: calc(100vh - 24px); }
    .detalhe-a-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sidebar { grid-template-rows: auto auto auto; }
    .brand { grid-template-columns: 70px minmax(0, 1fr); text-align: left; justify-items: start; }
    .brand-mark { width: 70px; height: 70px; }
    body.sidebar-recolhida .brand { grid-template-columns: 70px minmax(0, 1fr); }
    body.sidebar-recolhida .brand-mark { width: 70px; height: 70px; }
    .brand strong { font-size: 26px; }
    .brand span { font-size: 13px; }
    .menu-item { font-size: 15px; min-height: 48px; }
    .menu-icon { width: 38px; height: 38px; }
    .menu-icon svg { width: 20px; height: 20px; }
    .side-status { grid-template-columns: 48px minmax(0, 1fr); }
    .side-status img { width: 48px; height: 48px; }
    .side-status strong { font-size: 15px; }
    .menu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.sidebar-recolhida .menu { grid-template-columns: repeat(2, minmax(0, 1fr)); justify-items: stretch; }
    body.sidebar-recolhida .menu-item { width: auto; min-height: 48px; padding: 0 12px; justify-content: flex-start; gap: 13px; }
    .topbar.topbar-busca { justify-content: flex-end; }
    .topbar.topbar-busca .topbar-copy { display: none; }
    .main { height: auto; min-height: 100vh; }
    .workspace { grid-template-columns: 1fr; }
    .chat-central-shell { min-height: auto; }
    .chat-central-header { grid-template-columns: auto minmax(0, 1fr); }
    .chat-central-status { grid-column: 1 / -1; justify-self: start; }
    .gasto-box { max-width: none; width: 240px; }
    .busca-view::before { inset: 120px 0 0 0; }
    .busca-metricas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .busca-radar-palco { grid-template-columns: 1fr; }
    .busca-log { max-height: 220px; }
    .orc-central { grid-template-columns: 1fr; }
    .orc-assistente { display: none; }
    .orc-resumo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .orc-toolbar { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 640px) {
    .topbar, .top-right, .pedido-head { align-items: stretch; flex-direction: column; }
    .gasto-box { width: 100%; }
    .workspace { padding: 10px; gap: 10px; }
    .detalhe-a-header, .detalhe-a-actions { align-items: stretch; flex-direction: column; }
    .detalhe-a-header h2 { font-size: 22px; }
    .detalhe-a-body { padding: 12px; }
    .detalhe-a-cards, .detalhe-a-section-grid, .detalhe-a-assistente { grid-template-columns: 1fr; }
    .detalhe-a-lidy { max-width: 150px; }
    .cotacao-lidy-shell { padding: 12px; }
    .cotacao-lidy-topo { grid-template-columns: 1fr; }
    .cotacao-lidy-robo { display: none; }
    .cotacao-lidy-title h2 { font-size: 28px; }
    .cotacao-lidy-title p { font-size: 14px; }
    .cotacao-lidy-beneficios { grid-template-columns: 1fr; }
    .cotacao-lidy-totalbox strong { font-size: 38px; }
    .cotacao-replicacao-lista { grid-template-columns: 1fr; }
    .cotacao-rodape { align-items: stretch; flex-direction: column; }
    .cotacoes-header { align-items: stretch; flex-direction: column; }
    .cotacao-comercial-grid,
    .cotacao-manual-grid,
    .cotacao-manual-item { grid-template-columns: 1fr; }
    .cotacao-comercial-campo.largo,
    .cotacao-manual-grid .span-2 { grid-column: 1 / -1; }
    .chat-central { padding: 10px; }
    .chat-central-shell { padding: 12px; }
    .chat-central-header { gap: 12px; align-items: start; }
    .chat-radar-badge { width: 54px; height: 54px; font-size: 24px; }
    .chat-central-title h2 { font-size: 25px; }
    .chat-atalhos { grid-template-columns: 1fr; }
    .chat-central-grid { min-height: auto; }
    .chat-central .chat { padding: 14px; }
    .chat-central .msg.bot::before { width: 48px; height: 66px; flex-basis: 48px; }
    .panel { min-height: 420px; }
    .input-bar { flex-direction: column; }
    .input-bar button { min-height: 42px; }
    .menu { grid-template-columns: 1fr; }
    body.sidebar-recolhida .menu { grid-template-columns: 1fr; }
    .brand { grid-template-columns: 58px minmax(0, 1fr); }
    .brand-mark { width: 58px; height: 58px; }
    .brand strong { font-size: 22px; }
    .menu-item { min-height: 44px; }
    .menu-icon { width: 34px; height: 34px; }
    .orcamentos-view { padding: 10px; }
    .orc-main-card { padding: 12px; }
    .orc-header { align-items: flex-start; }
    .orc-header h2 { font-size: 22px; }
    .orc-resumo { grid-template-columns: 1fr; }
    .orc-toolbar { grid-template-columns: 1fr; }
    .cotacoes-toolbar { grid-template-columns: 1fr; }
    .cotacoes-grid { grid-template-columns: 1fr; }
  }
  /* Login, painel principal e usuarios no tema Belardo */
  body.auth-pendente { background: #f6f8fb; color: #17304d; }
  body.auth-pendente .app-shell { display: none; }
  body:not(.auth-pendente) .login-screen { display: none; }
  .login-screen {
    height: 100vh;
    min-height: 0;
    display: grid;
    place-items: center;
    padding: 44px 24px;
    background:
      radial-gradient(circle at 0% 0%, rgba(255, 184, 16, .95) 0 9%, rgba(255, 230, 137, .55) 26%, transparent 48%),
      radial-gradient(circle at 95% 100%, rgba(184, 221, 142, .22) 0 16%, transparent 34%),
      linear-gradient(135deg, #fff1a8 0%, #fff9e8 35%, #fbfff0 100%);
    position: relative;
    overflow: hidden;
  }
  .login-screen:before,
  .login-screen:after {
    content: "";
    position: absolute;
    pointer-events: none;
    opacity: .42;
  }
  .login-screen:before {
    width: 760px;
    height: 760px;
    left: 120px;
    top: -330px;
    border: 3px solid rgba(255,255,255,.42);
    border-radius: 50%;
  }
  .login-screen:after {
    width: 380px;
    height: 215px;
    left: 10px;
    top: 240px;
    border: 6px solid rgba(255,255,255,.34);
    border-radius: 30px 12px 30px 12px;
    transform: rotate(-15deg);
  }
  .login-leaf,
  .login-leaf-soft {
    position: absolute;
    pointer-events: none;
    z-index: 0;
  }
  .login-leaf-left-a {
    width: min(365px, 23vw);
    height: min(520px, 52vh);
    left: 0;
    bottom: 0;
    background: url("/static/img/login-folhas-esquerda-transparente.png") left bottom / contain no-repeat;
    transform: translate3d(0, 0, 0);
    transform-origin: left bottom;
    animation: loginLeafLeftA 5.8s ease-in-out infinite;
  }
  .login-leaf-left-b {
    display: none;
  }
  .login-leaf-right-a {
    width: min(340px, 20vw);
    height: min(690px, 73vh);
    right: 0;
    top: 82px;
    background: url("/static/img/login-folha-direita-transparente.png") right center / contain no-repeat;
    transform: translate3d(0, 0, 0);
    transform-origin: right center;
    animation: loginLeafRight 7.4s ease-in-out infinite;
  }
  .login-leaf-right-b {
    display: none;
  }
  .login-leaf-soft {
    width: min(590px, 35vw);
    height: min(190px, 18vh);
    right: 17vw;
    bottom: 0;
    background: url("/static/img/login-folha-baixo-transparente.png") center bottom / contain no-repeat;
    opacity: .5;
    animation: loginLeafSoft 8.8s ease-in-out infinite;
  }
  @keyframes loginLeafLeftA {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(10px, -11px, 0) scale(1.018); }
  }
  @keyframes loginLeafLeftB {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(70deg); }
    50% { transform: translate3d(-8px, -10px, 0) rotate(73deg); }
  }
  @keyframes loginLeafRight {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(-12px, 7px, 0) scale(1.012); }
  }
  @keyframes loginLeafSoft {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(-8px, -5px, 0) scale(1.01); }
  }
  .login-card-shell {
    width: min(1010px, 78vw);
    height: min(665px, calc(100vh - 48px));
    min-height: 0;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 68% 32%;
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(255,255,255,.92);
    border-radius: 28px;
    box-shadow: 0 24px 70px rgba(68, 84, 41, .18);
    overflow: hidden;
  }
  .login-panel {
    position: relative;
    padding: 28px 74px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: transparent;
    border-right: 1px solid #dde5dc;
  }
  .belardo-logo { display: block; width: 132px; height: 150px; object-fit: contain; }
  .login-copy { display: block; text-align: center; }
  .login-copy h1 { margin: 0; font-size: 58px; line-height: 1.02; color: #202936; letter-spacing: 0; }
  .login-copy p { margin: 8px 0 0; color: #59a64b; font-size: 24px; font-weight: 800; line-height: 1.25; }
  .login-card {
    position: static;
    width: min(560px, 100%);
    display: grid;
    gap: 13px;
  }
  .usuario-form { display: grid; gap: 16px; }
  .login-field {
    position: relative;
    width: 100%;
    height: auto;
    display: grid;
    gap: 6px;
  }
  .login-field:nth-child(1) { top: auto; }
  .login-field:nth-child(2) { top: auto; }
  .login-field label {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    font-weight: 900;
    color: #253143;
    font-size: 17px;
  }
  .login-input-wrap { position: relative; }
  .login-input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #62ae50;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
  }
  .login-eye {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #62ae50;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
  }
  .login-input-icon svg,
  .login-eye svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .login-field input {
    width: 100%;
    height: 58px;
    border: 2px solid #66b65a;
    border-radius: 8px;
    padding: 0 56px;
    background: #fff;
    color: #1d3048;
    outline: none;
  }
  .usuario-form input, .usuario-form select {
    width: 100%;
    border: 1px solid #cfdce8;
    border-radius: 8px;
    padding: 14px 15px;
    background: #fff;
    color: #1d3048;
    outline: none;
  }
  .login-field input:focus, .usuario-form input:focus, .usuario-form select:focus {
    border-color: #f2a900;
    box-shadow: 0 0 0 3px rgba(242,169,0,.16);
  }
  .login-actions {
    position: static;
    width: 100%;
    display: grid;
    gap: 12px;
    margin: 12px 0 0;
  }
  .belardo-primary, .belardo-secondary {
    border-radius: 8px;
    min-height: 48px;
    padding: 0 22px;
    font-weight: 900;
    cursor: pointer;
  }
  .belardo-primary {
    color: #fff;
    border: 0;
    background: linear-gradient(135deg, #f9b51d 0%, #f58220 100%);
    box-shadow: 0 10px 24px rgba(245,130,32,.24);
  }
  .login-card .belardo-primary {
    width: 100%;
    min-height: 58px;
    font-size: 28px;
    color: #fff;
    background: linear-gradient(135deg, #ffb80d 0%, #ff850f 100%);
    border: 0;
    box-shadow: 0 15px 28px rgba(245,130,32,.24);
  }
  .belardo-secondary {
    color: #0f8f70;
    border: 1px solid rgba(15,143,112,.32);
    background: #fff;
  }
  .login-helper {
    position: static;
    width: 100%;
    color: #74869a;
    font-size: 13px;
    text-align: center;
  }
  .login-helper.erro { color: #d33f2f; font-weight: 800; }
  .login-hero {
    position: relative;
    overflow: hidden;
    padding: 38px 28px 28px;
    display: grid;
    align-content: center;
    justify-items: center;
    background: linear-gradient(160deg, #ffffff 0%, #ffffff 66%, #eef8df 100%);
    color: #202936;
  }
  .login-hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 10px;
    justify-items: center;
    text-align: center;
  }
  .login-lidy-card {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .login-lidy-card h2 { margin: 0; font-size: 32px; color: #58a348; }
  .login-lidy-card p { margin: 12px 0 0; color: #202936; line-height: 1.22; font-size: 25px; }
  .login-lidy-img {
    width: min(330px, 100%);
    max-height: min(410px, 56vh);
    object-fit: contain;
    justify-self: center;
    filter: drop-shadow(0 20px 28px rgba(43, 71, 93, .16));
  }
  .login-kpis { display: none; }

  .sidebar {
    background: radial-gradient(circle at 50% 0%, rgba(249,181,29,.12), transparent 30%), linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
    color: #17304d;
    border-right: 1px solid #d9e5ed;
  }
  .brand, .side-status { background: #fff; border-color: #d9e5ed; box-shadow: 0 12px 26px rgba(23,48,77,.06); }
  .brand-mark { background: #fff; border-color: #e2ebf2; }
  .brand-mark img { filter: none; object-fit: contain; padding: 4px; }
  .brand strong, .side-status strong { color: #15365b; }
  .brand span, .side-status span, .menu-title { color: #617891; }
  .menu-item { color: #294662; font-size: 18px; min-height: 58px; }
  .menu-icon { background: #eef5f2; color: #0f8f70; }
  .menu-item:hover:not(.active) { color: #15365b; background: rgba(249,181,29,.12); border-color: rgba(249,181,29,.24); }
  .menu-item.active {
    color: #15365b;
    background: linear-gradient(90deg, rgba(249,181,29,.22), rgba(15,143,112,.12));
    border-color: rgba(249,181,29,.75);
    box-shadow: inset 4px 0 0 #f9b51d, 0 10px 22px rgba(23,48,77,.06);
  }
  .menu-item.active .menu-icon { background: #f9b51d; color: #fff; }
  .main { background: #f4f7fa; }
  .topbar { background: #fff; border-bottom: 1px solid #d9e5ed; }
  .sidebar-logout {
    background: #fff;
    border-color: #f1d9d4;
    color: #b33b2f;
    box-shadow: 0 10px 22px rgba(179, 59, 47, .07);
  }
  .sidebar-logout:hover {
    background: #fff4f1;
    border-color: #e9b8ae;
    color: #8f2d24;
  }

  .belardo-dashboard, .usuarios-view, .empresa-view { padding: 22px; overflow: auto; background: #f4f7fa; color: #17304d; }
  .principal-shell, .usuarios-shell { display: grid; gap: 18px; }
  .principal-hero, .usuarios-hero {
    border-radius: 8px;
    padding: 26px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #fff8e6 100%);
    border: 1px solid #e2e9ef;
    box-shadow: 0 14px 35px rgba(23,48,77,.07);
  }
  .principal-eyebrow, .usuarios-eyebrow { margin: 0 0 8px; color: #0f8f70; font-weight: 900; text-transform: uppercase; font-size: 12px; letter-spacing: .08em; }
  .principal-hero h2, .usuarios-hero h2 { margin: 0; font-size: 34px; color: #15365b; }
  .principal-hero p, .usuarios-hero p { margin: 10px 0 0; color: #5e7187; line-height: 1.5; }
  .principal-lidy { display: flex; align-items: center; gap: 14px; min-width: 260px; border-radius: 8px; background: #fff; border: 1px solid #e2e9ef; padding: 14px; }
  .principal-lidy img { width: 86px; height: 86px; object-fit: contain; }
  .principal-lidy strong { color: #15365b; font-size: 18px; display:block; }
  .principal-lidy span { color: #0f8f70; font-weight: 800; font-size: 13px; }
  .principal-kpis { display: grid; grid-template-columns: repeat(4, minmax(160px, 1fr)); gap: 16px; }
  .principal-kpi, .principal-card, .usuario-card { border-radius: 8px; background: #fff; border: 1px solid #e0e8ef; box-shadow: 0 12px 28px rgba(23,48,77,.06); }
  .principal-kpi { padding: 20px; display: flex; gap: 16px; align-items: center; }
  .principal-kpi-icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 8px; color: #fff; background: #0f8f70; font-size: 22px; }
  .principal-kpi:nth-child(2) .principal-kpi-icon { background: #f9b51d; }
  .principal-kpi:nth-child(3) .principal-kpi-icon { background: #f58220; }
  .principal-kpi:nth-child(4) .principal-kpi-icon { background: #15365b; }
  .principal-kpi strong { display:block; color: #15365b; font-size: 31px; line-height: 1; }
  .principal-kpi span { color: #657b91; font-weight: 700; }
  .principal-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr); gap: 18px; }
  .principal-card, .usuario-card { padding: 22px; }
  .principal-card h3, .usuario-card h3 { margin: 0 0 14px; color: #15365b; font-size: 21px; }
  .atividade-lista, .acoes-lista, .usuario-lista { display: grid; gap: 10px; }
  .atividade-item, .acao-item, .usuario-item { border-radius: 8px; border: 1px solid #e3ebf2; background: #f9fbfd; padding: 14px; }
  .atividade-item strong, .acao-item strong, .usuario-item strong { color: #15365b; display: block; }
  .atividade-item span, .acao-item span, .usuario-item span { color: #617891; font-size: 13px; }
  .acao-item { width: 100%; text-align: left; cursor: pointer; }
  .usuarios-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr) 380px; gap: 18px; }
  .usuario-item { cursor: pointer; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
  .usuario-item.active { border-color: #f9b51d; background: #fff8e6; }
  .usuario-status { border-radius: 999px; padding: 5px 9px; background: #e9f8f1; color: #0f8f70; font-weight: 900; font-size: 11px; }
  .permissoes-grid { display: grid; grid-template-columns: repeat(2, minmax(180px, 1fr)); gap: 12px; }
  .permissao { display: flex; align-items: flex-start; gap: 10px; border: 1px solid #e1eaf1; border-radius: 8px; padding: 14px; background: #fbfcfe; }
  .permissao input { margin-top: 3px; }
  .permissao strong { color: #15365b; display:block; }
  .permissao span { color: #667b91; font-size: 13px; display:block; margin-top: 3px; }
  .usuario-selecionado { padding: 16px; border-radius: 8px; background: #eef5f2; border: 1px solid rgba(15,143,112,.20); color: #294662; margin-bottom: 14px; }
  .usuario-selecionado strong { display: block; color: #15365b; font-size: 22px; }

  /* Painel principal inspirado no menu escolhido */
  .login-eye {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
  }
  .login-eye:focus-visible {
    outline: 3px solid rgba(90, 172, 74, .35);
    outline-offset: 3px;
    border-radius: 999px;
  }
  body:not(.auth-pendente) .sidebar {
    padding: 26px 12px 16px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfb 62%, #f4f8f3 100%);
    border-right: 1px solid #e6e9e6;
    box-shadow: 12px 0 26px rgba(31, 46, 30, .08);
    color: #20252b;
  }
  body:not(.auth-pendente) .brand {
    padding: 0 8px 22px;
    display: flex;
    justify-content: center;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  body:not(.auth-pendente) .brand-mark {
    width: 150px;
    height: 150px;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  body:not(.auth-pendente) .brand-mark img {
    object-fit: contain;
    padding: 0;
    filter: none;
  }
  body:not(.auth-pendente) .brand-text { display: none; }
  body:not(.auth-pendente) .menu-title {
    padding: 0 18px;
    color: #8b949e;
    letter-spacing: .08em;
  }
  body:not(.auth-pendente) .menu { gap: 8px; }
  .menu-atalhos-ocultos { display: none; }
  body:not(.auth-pendente) .menu-item {
    min-height: 61px;
    padding: 0 20px;
    gap: 16px;
    color: #23272d;
    font-size: 18px;
    border-radius: 8px;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
  }
  body:not(.auth-pendente) .menu-item:hover:not(.active) {
    color: #2f8f2d;
    background: #f1f7ec;
    border-color: transparent;
  }
  body:not(.auth-pendente) .menu-icon {
    width: 39px;
    height: 39px;
    border-radius: 8px;
    background: transparent;
    color: #242a31;
  }
  body:not(.auth-pendente) .menu-icon svg {
    width: 29px;
    height: 29px;
    stroke-width: 1.8;
  }
  body:not(.auth-pendente) .menu-item.active {
    color: #2f8f2d;
    background: #eef8e9;
    border-color: transparent;
    box-shadow: none;
  }
  body:not(.auth-pendente) .menu-item.active .menu-icon {
    width: 45px;
    height: 45px;
    background: #dfeeda;
    color: #2f8f2d;
  }
  body:not(.auth-pendente) .side-status { display: none; }
  body.sidebar-recolhida:not(.auth-pendente) .sidebar-logout {
    min-height: 54px;
    width: 58px;
    padding: 0;
    justify-self: center;
  }
  body.sidebar-recolhida:not(.auth-pendente) .sidebar-logout span {
    display: none;
  }
  body.sidebar-recolhida:not(.auth-pendente) .sidebar {
    padding: 18px 10px;
  }
  body.sidebar-recolhida:not(.auth-pendente) .brand {
    padding: 0 0 18px;
  }
  body.sidebar-recolhida:not(.auth-pendente) .brand-mark {
    width: 64px;
    height: 64px;
  }
  body.sidebar-recolhida:not(.auth-pendente) .menu-item {
    width: 58px;
    min-height: 58px;
    padding: 0;
    justify-content: center;
  }
  body.sidebar-recolhida:not(.auth-pendente) .menu-icon {
    width: 44px;
    height: 44px;
  }
  body.view-dashboard .topbar {
    min-height: 82px;
    padding: 0 56px;
    background:
      radial-gradient(circle at calc(100% - 14px) 6px, rgba(47,143,45,.95) 0 72px, transparent 74px),
      linear-gradient(90deg, #ffb100 0%, #ffbd12 58%, #ffad00 100%);
    border-bottom: 0;
  }
  body.view-dashboard .topbar h1 {
    font-size: 34px;
    color: #1f2831;
    font-weight: 500;
  }
  body.view-dashboard .topbar p,
  body.view-dashboard .top-right { display: none; }
  body.view-dashboard .main,
  body.view-dashboard .belardo-dashboard {
    background:
      radial-gradient(circle at 99% 2%, rgba(126, 190, 58, .10) 0 85px, transparent 88px),
      #f6f7f6;
  }
  body.view-dashboard .belardo-dashboard {
    display: block;
    padding: 28px 38px 118px;
    overflow: auto;
  }
  body.view-dashboard .principal-shell {
    max-width: none;
    gap: 22px;
    position: relative;
    padding-bottom: 120px;
  }
  body.view-dashboard .principal-hero {
    display: block;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  body.view-dashboard .principal-eyebrow,
  body.view-dashboard .principal-hero p {
    display: none;
  }
  body.view-dashboard .principal-hero h2 {
    margin: 0;
    font-size: 48px;
    line-height: 1.08;
    color: #22272d;
    font-weight: 600;
  }
  body.view-dashboard .principal-lidy {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 8;
    min-width: 244px;
    min-height: 84px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 18px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #cfe1f5;
    box-shadow: 0 8px 24px rgba(31, 46, 30, .16);
  }
  body.view-dashboard .principal-lidy img {
    width: 76px;
    height: 60px;
    object-fit: contain;
  }
  body.view-dashboard .principal-lidy strong {
    color: #20252b;
    font-size: 20px;
    font-weight: 700;
  }
  body.view-dashboard .principal-lidy span {
    font-size: 0;
    color: #2f8f2d;
  }
  body.view-dashboard .principal-lidy span:before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 4px;
    border-radius: 50%;
    background: #2f8f2d;
    box-shadow: 0 0 0 4px rgba(47,143,45,.12);
  }
  body.view-dashboard .principal-kpis {
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 26px;
  }
  body.view-dashboard .principal-kpi,
  body.view-dashboard .principal-card {
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e2e2e2;
    box-shadow: 0 10px 24px rgba(31,46,30,.11);
  }
  body.view-dashboard .principal-kpi {
    min-height: 236px;
    padding: 24px 18px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  body.view-dashboard .principal-kpi:after {
    content: "";
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 16px;
    height: 7px;
    border-radius: 99px;
    background: #2f8f2d;
  }
  body.view-dashboard .principal-kpi:nth-child(2):after,
  body.view-dashboard .principal-kpi:nth-child(3):after {
    background: #ffad00;
  }
  body.view-dashboard .principal-kpi-icon {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: #e9f3e6;
    color: #2f8f2d;
    font-size: 34px;
  }
  body.view-dashboard .principal-kpi-icon svg {
    width: 40px;
    height: 40px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  body.view-dashboard .principal-kpi:nth-child(2) .principal-kpi-icon,
  body.view-dashboard .principal-kpi:nth-child(3) .principal-kpi-icon {
    background: #fff0ce;
    color: #ffad00;
  }
  body.view-dashboard .principal-kpi strong {
    display: block;
    order: 2;
    color: #2f8f2d;
    font-size: 58px;
    line-height: .95;
    font-weight: 800;
  }
  body.view-dashboard .principal-kpi:nth-child(2) strong,
  body.view-dashboard .principal-kpi:nth-child(3) strong {
    color: #ff9400;
  }
  body.view-dashboard .principal-kpi span {
    order: 1;
    color: #22272d;
    font-size: 21px;
    line-height: 1.2;
    font-weight: 500;
  }
  body.view-dashboard .principal-kpi > div:last-child {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }
  body.view-dashboard .principal-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.28fr) minmax(320px, .72fr);
    gap: 28px;
  }
  body.view-dashboard .principal-card {
    padding: 28px;
    min-height: 435px;
  }
  body.view-dashboard .principal-card h3 {
    margin: 0 0 22px;
    color: #20252b;
    font-size: 27px;
    font-weight: 700;
  }
  body.view-dashboard .atividade-lista {
    display: grid;
    gap: 0;
  }
  body.view-dashboard .atividade-item {
    min-height: 72px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 13px 4px;
    border: 0;
    border-bottom: 1px solid #e4e4e4;
    border-radius: 0;
    background: transparent;
  }
  body.view-dashboard .atividade-item:before {
    content: none;
  }
  body.view-dashboard .atividade-icone {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #339533;
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: inset 0 0 0 2px rgba(0,0,0,.06);
  }
  body.view-dashboard .atividade-item .atividade-icone {
    justify-self: center;
    color: #fff;
    text-align: center;
  }
  body.view-dashboard .atividade-icone svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  body.view-dashboard .atividade-item strong {
    color: #303238;
    font-size: 16px;
    font-weight: 500;
  }
  body.view-dashboard .atividade-item span {
    justify-self: end;
    color: #686f76;
    font-size: 15px;
    text-align: right;
  }
  body.view-dashboard .acoes-lista {
    display: grid;
    gap: 16px;
  }
  body.view-dashboard .acao-item {
    min-height: 74px;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 8px;
    border: 1px solid #ececec;
    background: #fff;
    box-shadow: 0 5px 14px rgba(31,46,30,.09);
  }
  body.view-dashboard .acao-item:before {
    content: none;
  }
  body.view-dashboard .acao-icone {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    justify-self: center;
    color: #2f8f2d;
  }
  body.view-dashboard .acao-item .acao-icone {
    display: grid !important;
  }
  body.view-dashboard .acao-icone svg {
    width: 36px;
    height: 36px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  body.view-dashboard .acao-item:first-child {
    color: #fff;
    background: linear-gradient(180deg, #43a33a 0%, #268520 100%);
    box-shadow: 0 8px 18px rgba(47,143,45,.26);
  }
  body.view-dashboard .acao-item:first-child .acao-icone {
    color: #fff;
  }
  body.view-dashboard .acao-item strong {
    color: #22272d;
    font-size: 22px;
    font-weight: 600;
    white-space: nowrap;
    min-width: 0;
  }
  body.view-dashboard .acao-item:first-child strong {
    color: #fff;
  }
  body.view-dashboard .acao-item > span:not(.acao-icone) {
    display: none;
  }

  /* Tela Usuarios e Perfis no estilo Belardo */
  body.view-usuarios .topbar {
    min-height: 6px;
    padding: 0;
    background: #ff9f10;
    border: 0;
  }
  body.view-usuarios .topbar-copy,
  body.view-usuarios .top-right {
    display: none;
  }
  body.view-usuarios .main,
  body.view-usuarios .usuarios-view {
    background: #f7f7f5;
  }
  body.view-usuarios .usuarios-view {
    display: block;
    padding: 24px;
    overflow: hidden;
  }
  body.view-usuarios .usuarios-shell {
    height: calc(100vh - 30px);
    display: block;
    max-width: none;
    padding-left: 0;
    position: relative;
  }
  body.view-usuarios .usuarios-hero {
    position: static;
    width: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 24px 0 28px;
    border: 0;
    box-shadow: none;
    background: transparent;
  }
  body.view-usuarios .usuarios-hero h2 {
    margin: 0 0 22px;
    color: #20252b;
    font-size: 30px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 16px;
  }
  body.view-usuarios .usuarios-hero h2:before {
    content: "";
    width: 34px;
    height: 34px;
    background: #329334;
    border-radius: 50%;
    -webkit-mask: radial-gradient(circle at 35% 35%, #000 0 18%, transparent 19%), radial-gradient(circle at 68% 35%, #000 0 18%, transparent 19%), linear-gradient(#000 0 0) center 72% / 88% 36% no-repeat;
    mask: radial-gradient(circle at 35% 35%, #000 0 18%, transparent 19%), radial-gradient(circle at 68% 35%, #000 0 18%, transparent 19%), linear-gradient(#000 0 0) center 72% / 88% 36% no-repeat;
  }
  .usuarios-busca {
    width: min(360px, 100%);
    height: 44px;
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: center;
    border: 1px solid #d7dce1;
    border-radius: 8px;
    background: #fff;
  }
  .usuarios-busca svg {
    width: 21px;
    height: 21px;
    justify-self: center;
    stroke: #606975;
    fill: none;
    stroke-width: 2;
  }
  .usuarios-busca input,
  .usuario-busca-campo {
    border: 0;
    outline: 0;
    min-width: 0;
    height: 100%;
    background: transparent;
    color: #20252b;
    display: flex;
    align-items: center;
    overflow: hidden;
    white-space: nowrap;
  }
  .usuario-busca-campo:empty:before {
    content: attr(data-placeholder);
    color: #7b8794;
  }
  .usuarios-novo {
    min-width: 150px;
    height: 44px;
    border-radius: 8px;
    background: linear-gradient(180deg, #ffa31a, #ff8d0a);
    box-shadow: 0 8px 18px rgba(255, 146, 12, .24);
  }
  .usuarios-novo span {
    display: inline-grid;
    place-items: center;
    margin-left: 8px;
    width: 18px;
    height: 18px;
    border: 2px solid #fff;
    border-radius: 50%;
    line-height: 1;
  }
  body.view-usuarios .usuarios-grid {
    min-height: 0;
    height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.42fr) minmax(0, .88fr) minmax(270px, .58fr);
    gap: 0;
  }
  body.view-usuarios .usuarios-grid.sem-detalhe {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  }
  body.view-usuarios .usuarios-grid.sem-criar {
    grid-template-columns: minmax(0, 1.35fr) minmax(360px, .75fr);
  }
  body.view-usuarios .usuarios-grid.sem-detalhe.sem-criar {
    grid-template-columns: minmax(0, 1fr);
  }
  body.view-usuarios .usuario-card {
    min-height: 0;
    border-radius: 0;
    border: 0;
    border-left: 1px solid #e1e4e7;
    background: #fff;
    box-shadow: 0 0 22px rgba(31, 46, 30, .08);
    padding: 28px;
    overflow: auto;
  }
  body.view-usuarios .usuarios-lista-card {
    border-top-left-radius: 8px;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    padding-top: 0;
  }
  body.view-usuarios .usuario-lista {
    display: grid;
    gap: 0;
    border: 1px solid #e2e5e8;
    border-radius: 8px;
    overflow: hidden;
    align-content: start;
  }
  body.view-usuarios .usuario-lista:before {
    content: "Nome                         Perfil              Status              Último acesso";
    display: block;
    padding: 17px 22px;
    color: #38414d;
    font-weight: 600;
    border-bottom: 1px solid #e2e5e8;
    white-space: pre;
  }
  body.view-usuarios .usuario-item {
    min-height: 72px;
    display: grid;
    grid-template-columns: minmax(180px, 1.2fr) 104px 78px minmax(94px, 120px) 16px;
    align-items: center;
    gap: 14px;
    padding: 10px 18px;
    border: 0;
    border-bottom: 1px solid #edf0f2;
    border-radius: 0;
    background: #fff;
    text-align: left;
  }
  body.view-usuarios .usuario-item:after {
    content: "⋮";
    color: #5d6670;
    font-size: 22px;
  }
  body.view-usuarios .usuario-item.active {
    background: #f2f9ee;
    box-shadow: inset 4px 0 0 #329334;
  }
  .usuario-avatar {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #def2d6;
    color: #329334;
    font-size: 18px;
    font-weight: 800;
    flex: none;
  }
  .usuario-identidade {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
  }
  .usuario-identidade strong {
    color: #2c333b;
    font-size: 14px;
    font-weight: 700;
  }
  .usuario-identidade span {
    color: #5f6974;
    font-size: 12px;
  }
  .usuario-perfil-col,
  .usuario-acesso-col {
    color: #333b45;
    font-size: 13px;
    white-space: nowrap;
  }
  body.view-usuarios .usuario-status {
    justify-self: start;
    border-radius: 6px;
    padding: 7px 12px;
    background: #dff3d8;
    color: #2f8f2d;
    font-size: 12px;
    font-weight: 800;
  }
  .usuarios-paginacao {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 16px 20px 0;
    color: #5f6974;
    font-size: 13px;
  }
  .usuarios-paginacao div { display: flex; gap: 8px; }
  .usuarios-paginacao button {
    width: 38px;
    height: 38px;
    border: 1px solid #d9dee3;
    border-radius: 8px;
    background: #fff;
    color: #303741;
  }
  .usuarios-paginacao button.active {
    color: #fff;
    background: #329334;
    border-color: #329334;
  }
  body.view-usuarios .usuarios-detalhe-card,
  body.view-usuarios .usuarios-criar-card {
    position: relative;
  }
  .usuarios-fechar {
    position: absolute;
    right: 24px;
    top: 20px;
    border: 0;
    background: transparent;
    color: #252b31;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
  }
  body.view-usuarios .usuarios-detalhe-card.fechado,
  body.view-usuarios .usuarios-criar-card.fechado {
    display: none;
  }
  body.view-usuarios .usuario-selecionado {
    margin: 18px 0 24px;
    padding: 0;
    border: 0;
    background: transparent;
    display: grid;
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 18px;
    color: #5f6974;
  }
  body.view-usuarios .usuario-selecionado:before {
    content: attr(data-iniciais);
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #def2d6;
    color: #329334;
    font-size: 24px;
    font-weight: 800;
  }
  body.view-usuarios .usuario-selecionado strong {
    color: #20252b;
    font-size: 24px;
    margin-top: 8px;
  }
  body.view-usuarios .usuario-selecionado span {
    display: inline-block;
    margin-top: 7px;
    color: #2f8f2d;
    background: #dff3d8;
    border-radius: 6px;
    padding: 7px 11px;
    font-weight: 800;
  }
  body.view-usuarios .usuario-selecionado p {
    margin: 10px 0 0;
    color: #66707b;
    font-size: 13px;
  }
  .usuario-edicao {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 0 0 20px;
  }
  .usuario-edicao label {
    display: grid;
    gap: 7px;
    color: #20252b;
    font-size: 12px;
    font-weight: 800;
  }
  .usuario-edicao input,
  .usuario-edicao select {
    height: 42px;
    border: 1px solid #d7dce1;
    border-radius: 8px;
    padding: 0 12px;
    background: #fff;
    color: #20252b;
  }
  .usuario-edicao .usuario-senha-wrap input {
    width: 100%;
    padding-right: 44px;
  }
  .usuario-ativo-linha {
    grid-column: 1 / -1;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    grid-template-columns: none !important;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid #d7dce1;
    border-radius: 8px;
    background: #fbfcfe;
  }
  .usuario-ativo-linha input {
    width: 42px;
    height: 23px;
    padding: 0;
    appearance: none;
    border: 0;
    border-radius: 999px;
    background: #b8bcc0;
    position: relative;
  }
  .usuario-ativo-linha input:before {
    content: "";
    position: absolute;
    width: 19px;
    height: 19px;
    left: 2px;
    top: 2px;
    border-radius: 50%;
    background: #fff;
    transition: transform .16s ease;
  }
  .usuario-ativo-linha input:checked {
    background: #329334;
  }
  .usuario-ativo-linha input:checked:before {
    transform: translateX(19px);
  }
  .usuarios-linha {
    border: 0;
    border-top: 1px solid #dfe3e7;
    margin: 0 0 18px;
  }
  body.view-usuarios .usuario-card h3 {
    margin: 0 0 6px;
    color: #20252b;
    font-size: 19px;
    font-weight: 800;
  }
  .usuarios-ajuda {
    margin: 0 0 18px;
    color: #69737e;
    font-size: 13px;
  }
  body.view-usuarios .permissoes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  body.view-usuarios .permissao {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
    border: 0;
    background: transparent;
  }
  body.view-usuarios .permissao input {
    grid-column: 3;
    grid-row: 1;
    appearance: none;
    width: 40px;
    height: 22px;
    border-radius: 999px;
    background: #b8bcc0;
    position: relative;
    margin: 0;
  }
  body.view-usuarios .permissao input:before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    left: 2px;
    top: 2px;
    border-radius: 50%;
    background: #fff;
    transition: transform .16s ease;
  }
  body.view-usuarios .permissao input:checked {
    background: #329334;
  }
  body.view-usuarios .permissao input:checked:before {
    transform: translateX(18px);
  }
  body.view-usuarios .permissao:before {
    content: "";
    width: 18px;
    height: 18px;
    background: #3b4652;
    -webkit-mask: linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0);
  }
  body.view-usuarios .permissao > span {
    grid-column: 2;
  }
  body.view-usuarios .permissao strong {
    color: #2b333c;
    font-size: 14px;
  }
  body.view-usuarios .permissao span span {
    color: #69737e;
    font-size: 12px;
  }
  .usuarios-acoes {
    display: grid;
    grid-template-columns: 1fr 1fr 1.35fr;
    gap: 12px;
    margin-top: 28px;
  }
  .usuarios-acoes .belardo-primary {
    background: linear-gradient(180deg, #3ca33c, #238828);
  }
  .belardo-danger {
    border: 1px solid #f1b4a7;
    border-radius: 8px;
    background: #fff5f2;
    color: #b5371f;
    font-weight: 900;
    cursor: pointer;
  }
  body.view-usuarios .usuarios-criar-card h3 {
    margin: 6px 0 28px;
    font-size: 19px;
  }
  body.view-usuarios .usuario-form {
    display: grid;
    gap: 18px;
  }
  body.view-usuarios .usuario-form label {
    display: grid;
    gap: 8px;
    color: #20252b;
    font-size: 14px;
    font-weight: 700;
  }
  body.view-usuarios .usuario-form input,
  body.view-usuarios .usuario-form select {
    height: 46px;
    border: 1px solid #d7dce1;
    border-radius: 8px;
    padding: 0 14px;
    color: #20252b;
    background: #fff;
  }
  .usuario-senha-wrap {
    position: relative;
    display: block;
  }
  body.view-usuarios .usuario-form .usuario-senha-wrap input {
    width: 100%;
    padding-right: 46px;
  }
  .usuario-senha-eye {
    position: absolute;
    right: 13px;
    top: 50%;
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #329334;
    cursor: pointer;
  }
  .usuario-senha-eye svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  body.view-usuarios .usuario-form input:invalid {
    box-shadow: none;
  }
  body.view-usuarios .usuario-form input.campo-erro {
    border-color: #ff8d0a;
    box-shadow: 0 0 0 3px rgba(255, 141, 10, .16);
  }
  .usuario-senha-ajuda {
    margin: -6px 0 0;
    color: #69737e;
    font-size: 12px;
    line-height: 1.35;
  }
  .usuario-senha-ajuda.erro {
    color: #c45100;
    font-weight: 800;
  }
  body.view-usuarios .usuario-form .belardo-primary {
    height: 48px;
    margin-top: 8px;
    border-radius: 8px;
    background: linear-gradient(180deg, #ffa31a, #ff8d0a);
  }
  body.view-usuarios .usuario-form .belardo-primary:disabled,
  .usuarios-acoes .belardo-primary:disabled {
    opacity: .68;
    cursor: wait;
  }
  .usuarios-lidy-online {
    position: static;
    margin-top: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid #cfe1f5;
    background: #fff;
    box-shadow: 0 8px 20px rgba(31, 46, 30, .12);
  }
  .usuarios-lidy-online img {
    width: 58px;
    height: 44px;
    object-fit: contain;
  }
  .usuarios-lidy-online strong {
    color: #252b31;
    font-size: 17px;
  }
  .usuarios-lidy-online span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #329334;
  }
  .lidy-toast {
    position: fixed;
    right: 26px;
    bottom: 26px;
    z-index: 50;
    min-width: 280px;
    max-width: 360px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 16px 18px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #dbe8d4;
    box-shadow: 0 18px 45px rgba(31, 46, 30, .20);
    color: #20252b;
    opacity: 0;
    transform: translateY(18px) scale(.96);
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
  }
  .lidy-toast.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  .lidy-toast:before {
    content: "✓";
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #329334;
    color: #fff;
    font-weight: 900;
    font-size: 22px;
  }
  .lidy-toast.erro {
    border-color: #ffd5cf;
  }
  .lidy-toast.erro:before {
    content: "!";
    background: #ff8d0a;
  }
  .lidy-toast strong {
    display: block;
    color: #20252b;
    font-size: 15px;
  }
  .lidy-toast span {
    display: block;
    margin-top: 3px;
    color: #66707b;
    font-size: 13px;
  }

  /* Tela Empresa - Opcao A no mesmo padrao Belardo */
  body.view-empresa .topbar {
    min-height: 6px;
    padding: 0;
    background: #ff9f10;
    border: 0;
  }
  body.view-empresa .topbar-copy,
  body.view-empresa .top-right {
    display: none;
  }
  body.view-empresa .main,
  body.view-empresa .empresa-view {
    background: #f7f7f5;
  }
  body.view-empresa .empresa-view {
    display: block;
    padding: 24px;
    overflow: hidden;
  }
  body.view-empresa .empresa-shell {
    height: calc(100vh - 30px);
    display: block;
    max-width: none;
  }
  body.view-empresa .empresa-grid {
    min-height: 0;
    height: 100%;
    display: grid;
    grid-template-columns: minmax(420px, 1.08fr) minmax(340px, .78fr) minmax(300px, .56fr);
    gap: 0;
  }
  body.view-empresa .empresa-grid.sem-detalhe {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  }
  body.view-empresa .empresa-grid.sem-criar {
    grid-template-columns: minmax(0, 1.35fr) minmax(360px, .72fr);
  }
  body.view-empresa .empresa-grid.sem-detalhe.sem-criar {
    grid-template-columns: minmax(0, 1fr);
  }
  body.view-empresa .empresa-card {
    min-width: 0;
    min-height: 0;
    border: 0;
    border-left: 1px solid #e1e4e7;
    background: #fff;
    box-shadow: 0 0 22px rgba(31, 46, 30, .08);
    padding: 28px;
    overflow: auto;
    position: relative;
  }
  body.view-empresa .empresa-lista-card {
    border-top-left-radius: 8px;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    padding-top: 0;
  }
  body.view-empresa .empresa-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 24px 0 28px;
  }
  body.view-empresa .empresa-hero h2 {
    margin: 0 0 22px;
    color: #20252b;
    font-size: 30px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 16px;
  }
  body.view-empresa .empresa-hero h2:before {
    content: "";
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #329334;
    -webkit-mask: linear-gradient(#000 0 0) left 6px bottom 3px / 8px 18px no-repeat, linear-gradient(#000 0 0) center bottom 3px / 8px 26px no-repeat, linear-gradient(#000 0 0) right 6px bottom 3px / 8px 22px no-repeat;
    mask: linear-gradient(#000 0 0) left 6px bottom 3px / 8px 18px no-repeat, linear-gradient(#000 0 0) center bottom 3px / 8px 26px no-repeat, linear-gradient(#000 0 0) right 6px bottom 3px / 8px 22px no-repeat;
  }
  .empresa-busca {
    width: min(360px, 100%);
    height: 44px;
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: center;
    border: 1px solid #d7dce1;
    border-radius: 8px;
    background: #fff;
  }
  .empresa-busca svg {
    width: 21px;
    height: 21px;
    justify-self: center;
    stroke: #606975;
    fill: none;
    stroke-width: 2;
  }
  .empresa-busca-campo {
    min-width: 0;
    height: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
    white-space: nowrap;
    outline: 0;
    color: #20252b;
  }
  .empresa-busca-campo:empty:before {
    content: attr(data-placeholder);
    color: #7b8794;
  }
  .empresa-nova {
    min-width: 150px;
    height: 44px;
    border-radius: 8px;
    background: linear-gradient(180deg, #ffa31a, #ff8d0a);
    box-shadow: 0 8px 18px rgba(255, 146, 12, .24);
  }
  .empresa-nova span {
    display: inline-grid;
    place-items: center;
    margin-left: 8px;
    width: 18px;
    height: 18px;
    border: 2px solid #fff;
    border-radius: 50%;
  }
  body.view-empresa .empresa-lista {
    display: grid;
    gap: 0;
    border: 1px solid #e2e5e8;
    border-radius: 8px;
    overflow: hidden;
    align-content: start;
  }
  body.view-empresa .empresa-lista:before {
    content: "Empresa                      CNPJ               Status           Cidade";
    display: block;
    padding: 17px 22px;
    color: #38414d;
    font-weight: 600;
    border-bottom: 1px solid #e2e5e8;
    white-space: pre;
    min-width: 0;
  }
  body.view-empresa .empresa-item {
    min-height: 76px;
    display: grid;
    grid-template-columns: minmax(170px, 1.2fr) minmax(120px, 142px) 76px minmax(70px, 100px) 16px;
    align-items: center;
    gap: 14px;
    padding: 10px 18px;
    border: 0;
    border-bottom: 1px solid #edf0f2;
    background: #fff;
    text-align: left;
  }
  @media (max-width: 1460px) {
    body.view-empresa .empresa-grid,
    body.view-empresa .empresa-grid.sem-detalhe,
    body.view-empresa .empresa-grid.sem-criar,
    body.view-empresa .empresa-grid.sem-detalhe.sem-criar {
      grid-template-columns: minmax(0, 1fr);
      overflow: auto;
    }
    body.view-empresa .empresa-card {
      min-height: 380px;
    }
    body.view-empresa .empresa-lista:before {
      content: "Empresa";
      white-space: normal;
    }
    body.view-empresa .empresa-item {
      grid-template-columns: minmax(0, 1fr) auto;
    }
    body.view-empresa .empresa-cnpj-col,
    body.view-empresa .empresa-status,
    body.view-empresa .empresa-cidade-col {
      display: none;
    }
  }
  body.view-empresa .empresa-item:after {
    content: "...";
    color: #5d6670;
    font-size: 18px;
    letter-spacing: 2px;
  }
  body.view-empresa .empresa-item.active {
    background: #f2f9ee;
    box-shadow: inset 4px 0 0 #329334;
  }
  .empresa-identidade {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
  }
  .empresa-avatar {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #def2d6;
    color: #329334;
    font-size: 15px;
    font-weight: 900;
    flex: none;
  }
  .empresa-identidade strong {
    color: #2c333b;
    font-size: 14px;
    font-weight: 800;
  }
  .empresa-identidade span,
  .empresa-cnpj-col,
  .empresa-cidade-col {
    color: #5f6974;
    font-size: 12px;
  }
  body.view-empresa .empresa-status {
    justify-self: start;
    border-radius: 6px;
    padding: 7px 12px;
    background: #dff3d8;
    color: #2f8f2d;
    font-size: 12px;
    font-weight: 800;
  }
  body.view-empresa .empresa-status.inativo {
    background: #efefef;
    color: #777;
  }
  .empresa-paginacao {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 16px 20px 0;
    color: #5f6974;
    font-size: 13px;
  }
  .empresa-paginacao div { display: flex; gap: 8px; }
  .empresa-paginacao button {
    width: 38px;
    height: 38px;
    border: 1px solid #d9dee3;
    border-radius: 8px;
    background: #fff;
    color: #303741;
  }
  .empresa-paginacao button.active {
    color: #fff;
    background: #329334;
    border-color: #329334;
  }
  .empresa-fechar {
    position: absolute;
    right: 24px;
    top: 20px;
    border: 0;
    background: transparent;
    color: #252b31;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
  }
  body.view-empresa .empresa-detalhe-card.fechado,
  body.view-empresa .empresa-criar-card.fechado {
    display: none;
  }
  body.view-empresa .empresa-selecionada {
    margin: 18px 0 24px;
    display: grid;
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 18px;
    color: #5f6974;
  }
  body.view-empresa .empresa-selecionada:before {
    content: attr(data-iniciais);
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #def2d6;
    color: #329334;
    font-size: 22px;
    font-weight: 900;
  }
  body.view-empresa .empresa-selecionada strong {
    color: #20252b;
    font-size: 24px;
  }
  body.view-empresa .empresa-selecionada span {
    display: inline-block;
    margin-top: 7px;
    color: #2f8f2d;
    background: #dff3d8;
    border-radius: 6px;
    padding: 7px 11px;
    font-weight: 800;
  }
  body.view-empresa .empresa-selecionada p {
    margin: 10px 0 0;
    color: #66707b;
    font-size: 13px;
  }
  .empresa-edicao {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 0 0 22px;
  }
  .empresa-edicao label,
  body.view-empresa .empresa-form label {
    display: grid;
    gap: 7px;
    color: #20252b;
    font-size: 13px;
    font-weight: 800;
  }
  .empresa-edicao input,
  .empresa-edicao textarea,
  .empresa-edicao select,
  body.view-empresa .empresa-form input,
  body.view-empresa .empresa-form select,
  body.view-empresa .empresa-form textarea {
    width: 100%;
    border: 1px solid #d7dce1;
    border-radius: 8px;
    padding: 0 12px;
    background: #fff;
    color: #20252b;
  }
  .empresa-edicao input,
  .empresa-edicao select,
  body.view-empresa .empresa-form select,
  body.view-empresa .empresa-form input {
    height: 42px;
  }
  .empresa-edicao textarea,
  body.view-empresa .empresa-form textarea {
    min-height: 72px;
    padding-top: 10px;
    resize: vertical;
  }
  .empresa-campo-largo {
    grid-column: 1 / -1;
  }
  .empresa-ativo-linha {
    grid-column: 1 / -1;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid #d7dce1;
    border-radius: 8px;
    background: #fbfcfe;
  }
  .empresa-ativo-linha input {
    width: 42px;
    height: 23px;
    padding: 0;
    appearance: none;
    border: 0;
    border-radius: 999px;
    background: #b8bcc0;
    position: relative;
  }
  .empresa-ativo-linha input:before {
    content: "";
    position: absolute;
    width: 19px;
    height: 19px;
    left: 2px;
    top: 2px;
    border-radius: 50%;
    background: #fff;
    transition: transform .16s ease;
  }
  .empresa-ativo-linha input:checked { background: #329334; }
  .empresa-ativo-linha input:checked:before { transform: translateX(19px); }
  .empresa-acoes {
    display: grid;
    grid-template-columns: 1fr 1fr 1.35fr;
    gap: 12px;
    margin-top: 20px;
  }
  .empresa-acoes .belardo-primary {
    background: linear-gradient(180deg, #3ca33c, #238828);
  }
  body.view-empresa .empresa-criar-card h3 {
    margin: 6px 0 26px;
    color: #20252b;
    font-size: 19px;
    font-weight: 800;
  }
  body.view-empresa .empresa-form {
    display: grid;
    gap: 16px;
  }
  body.view-empresa .empresa-form .belardo-primary {
    height: 48px;
    margin-top: 6px;
    border-radius: 8px;
    background: linear-gradient(180deg, #ffa31a, #ff8d0a);
  }
  body.view-empresa .empresa-form .belardo-primary:disabled,
  .empresa-acoes .belardo-primary:disabled {
    opacity: .68;
    cursor: wait;
  }
  .empresa-hero-acoes {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .cliente-importar-btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    cursor: pointer;
    font-weight: 900;
  }
  .cliente-importar-btn input {
    display: none;
  }
  .empresa-acoes button:disabled {
    opacity: .55;
    cursor: not-allowed;
  }
  body.view-clientes .clientes-lista:before {
    content: "Cliente                         Documento          Status           Cidade";
    white-space: pre;
  }
  body.view-clientes .clientes-lista .cliente-vazio {
    grid-template-columns: minmax(0, 1fr);
    min-height: 118px;
    justify-items: center;
    text-align: center;
    color: #647180;
  }
  body.view-clientes .clientes-lista .cliente-vazio:after {
    display: none;
  }
  body.view-clientes .clientes-lista .cliente-vazio .empresa-identidade {
    justify-content: center;
  }
  body.view-clientes .clientes-lista .cliente-vazio .empresa-identidade > span:last-child {
    display: grid;
    gap: 4px;
  }
  body.view-clientes .cliente-campo-pj.oculto {
    display: none;
  }
  .cliente-resumo-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0 12px;
  }
  .cliente-resumo-kpis div {
    padding: 12px;
    border: 1px solid #e1eadf;
    border-radius: 8px;
    background: #f8fcf6;
  }
  .cliente-resumo-kpis span {
    display: block;
    color: #66737e;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
  }
  .cliente-resumo-kpis strong {
    color: #2f8f2d;
    font-size: 22px;
  }
  .cliente-mini-bloco {
    display: grid;
    gap: 8px;
    margin: 12px 0;
    padding: 13px;
    border: 1px solid #e6ece6;
    border-radius: 8px;
    background: #fff;
  }
  .cliente-mini-bloco h4 {
    margin: 0;
    color: #20252b;
    font-size: 14px;
  }
  .cliente-mini-bloco p {
    margin: 0;
    color: #546575;
    font-size: 13px;
    line-height: 1.35;
  }
  .cliente-historico-lista {
    display: grid;
    gap: 8px;
  }
  .cliente-historico-item {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border: 1px solid #e8ece8;
    border-radius: 8px;
    background: #fbfcfb;
  }
  .cliente-historico-item span {
    color: #61717e;
    font-size: 12px;
    font-weight: 800;
  }
  .cliente-historico-item strong {
    color: #20252b;
    font-size: 13px;
  }
  .cliente-historico-item em {
    padding: 5px 8px;
    border-radius: 999px;
    background: #eef8e9;
    color: #2f8f2d;
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
    white-space: nowrap;
  }
  body.view-fornecedores .fornecedores-lista:before {
    content: "Fornecedor                    Documento          Status           Categoria";
    white-space: pre;
  }
  body.view-fornecedores .fornecedores-lista .fornecedor-vazio {
    grid-template-columns: minmax(0, 1fr);
    min-height: 118px;
    justify-items: center;
    text-align: center;
    color: #647180;
  }
  body.view-fornecedores .fornecedores-lista .fornecedor-vazio:after {
    display: none;
  }
  body.view-fornecedores .fornecedores-lista .fornecedor-vazio .empresa-identidade {
    justify-content: center;
  }
  body.view-fornecedores .fornecedores-lista .fornecedor-vazio .empresa-identidade > span:last-child {
    display: grid;
    gap: 4px;
  }
  body.view-fornecedores .fornecedor-campo-pj.oculto {
    display: none;
  }
  body.view-produtos .produtos-lista:before {
    content: "Produto                       Código/ref.        Status           Categoria";
    white-space: pre;
  }
  body.view-produtos .produtos-lista .produto-vazio {
    grid-template-columns: minmax(0, 1fr);
    min-height: 118px;
    justify-items: center;
    text-align: center;
    color: #647180;
  }
  body.view-produtos .produtos-lista .produto-vazio:after {
    display: none;
  }
  body.view-produtos .produtos-lista .produto-vazio .empresa-identidade {
    justify-content: center;
  }
  body.view-produtos .produtos-lista .produto-vazio .empresa-identidade > span:last-child {
    display: grid;
    gap: 4px;
  }
  .produto-filtros-status {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 18px 0 0;
    padding: 0 8px;
    border-bottom: 1px solid #e4e9e3;
    flex-wrap: wrap;
  }
  .produto-filtros-status button {
    width: auto;
    min-width: 0;
    height: 44px;
    min-height: 44px;
    padding: 0 0 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #415366;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    box-shadow: none;
    position: relative;
  }
  .produto-filtros-status button:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    border-radius: 99px 99px 0 0;
    background: transparent;
  }
  .produto-filtros-status button.active {
    background: transparent;
    color: #2f8f2d;
    box-shadow: none;
  }
  .produto-filtros-status button.active:after {
    background: #2f8f2d;
  }
  .produto-unidade-combo {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 8px;
  }
  .produto-unidade-add {
    border: 0;
    border-radius: 8px;
    background: linear-gradient(180deg, #ffa31a, #ff8d0a);
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    cursor: pointer;
  }
  .produto-historico-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0 12px;
  }
  .produto-historico-kpis div,
  .produto-historico-item {
    padding: 12px;
    border: 1px solid #e1eadf;
    border-radius: 8px;
    background: #f8fcf6;
  }
  .produto-historico-kpis span {
    display: block;
    color: #66737e;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
  }
  .produto-historico-kpis strong {
    color: #2f8f2d;
    font-size: 20px;
  }
  .produto-historico-lista {
    display: grid;
    gap: 8px;
  }
  .produto-historico-item {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
  }
  .produto-historico-item span {
    color: #61717e;
    font-size: 12px;
    font-weight: 800;
  }
  .produto-historico-item strong {
    color: #20252b;
    font-size: 13px;
  }
  .produto-historico-item em {
    padding: 5px 8px;
    border-radius: 999px;
    background: #eef8e9;
    color: #2f8f2d;
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
    white-space: nowrap;
  }
  .modal-unidade {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(22, 31, 40, .34);
    backdrop-filter: blur(3px);
  }
  .modal-unidade-card {
    width: min(420px, 100%);
    position: relative;
    padding: 26px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 22px 60px rgba(28, 38, 48, .22);
  }
  .modal-unidade-card h3 {
    margin: 0 0 8px;
    color: #20252b;
    font-size: 24px;
  }
  .modal-unidade-card p {
    margin: 0 0 18px;
    color: #5d6c78;
  }
  .modal-unidade-card form,
  .modal-unidade-card label {
    display: grid;
    gap: 10px;
  }
  .modal-unidade-card label {
    color: #20252b;
    font-weight: 900;
  }
  .modal-unidade-card input {
    min-height: 46px;
    border: 1px solid #cfd9e2;
    border-radius: 8px;
    padding: 0 14px;
    text-transform: uppercase;
  }
  /* Auditoria e histórico no tema claro Belardo. */
  body.view-auditoria .topbar {
    min-height: 82px;
    padding: 0 56px;
    background:
      radial-gradient(circle at calc(100% - 14px) 6px, rgba(47,143,45,.95) 0 72px, transparent 74px),
      linear-gradient(90deg, #ffb100 0%, #ffbd12 58%, #ffad00 100%);
    border-bottom: 0;
  }
  body.view-auditoria .topbar h1 {
    color: #1f2831;
    font-size: 34px;
    font-weight: 600;
  }
  body.view-auditoria .topbar p,
  body.view-auditoria .top-right {
    display: none;
  }
  .auditoria-view {
    padding: 28px 38px 80px;
    overflow: auto;
    background: #f6f7f6;
    color: #17304d;
  }
  .auditoria-shell {
    display: grid;
    gap: 20px;
  }
  .auditoria-hero,
  .auditoria-filtros,
  .auditoria-card,
  .auditoria-kpi {
    background: #fff;
    border: 1px solid #e2e5e2;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(31,46,30,.08);
  }
  .auditoria-hero {
    padding: 26px 28px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
  }
  .auditoria-tag {
    display: inline-flex;
    color: #2f8f2d;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 8px;
  }
  .auditoria-hero h2 {
    margin: 0;
    color: #20252b;
    font-size: 42px;
    line-height: 1.06;
    font-weight: 700;
  }
  .auditoria-hero p {
    margin: 8px 0 0;
    color: #5f6e7a;
    font-size: 17px;
    line-height: 1.45;
  }
  .auditoria-filtros {
    padding: 18px;
    display: grid;
    grid-template-columns: minmax(260px, 1fr) repeat(4, minmax(150px, 190px));
    gap: 14px;
  }
  .auditoria-filtros label {
    display: grid;
    gap: 7px;
    color: #20252b;
    font-size: 13px;
    font-weight: 900;
  }
  .auditoria-filtros input,
  .auditoria-filtros select {
    width: 100%;
    min-height: 46px;
    border: 1px solid #cfd9e2;
    border-radius: 8px;
    padding: 0 14px;
    background: #fff;
    color: #20252b;
    outline: none;
  }
  .auditoria-filtros input:focus,
  .auditoria-filtros select:focus {
    border-color: #ffad00;
    box-shadow: 0 0 0 3px rgba(255,173,0,.16);
  }
  .auditoria-kpis {
    display: grid;
    grid-template-columns: repeat(5, minmax(140px, 1fr));
    gap: 16px;
  }
  .auditoria-kpi {
    min-height: 118px;
    padding: 18px;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
  }
  .auditoria-kpi:after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 14px;
    height: 6px;
    border-radius: 99px;
    background: #2f8f2d;
  }
  .auditoria-kpi:nth-child(3):after,
  .auditoria-kpi:nth-child(4):after,
  .auditoria-kpi:nth-child(5):after {
    background: #ffad00;
  }
  .auditoria-kpi span {
    color: #20252b;
    font-size: 16px;
    font-weight: 600;
  }
  .auditoria-kpi strong {
    color: #2f8f2d;
    font-size: 40px;
    line-height: 1;
  }
  .auditoria-kpi:nth-child(3) strong,
  .auditoria-kpi:nth-child(4) strong,
  .auditoria-kpi:nth-child(5) strong {
    color: #ff9400;
  }
  .auditoria-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, .55fr);
    gap: 20px;
  }
  .auditoria-card {
    padding: 22px;
    min-height: 300px;
  }
  .auditoria-card-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin-bottom: 16px;
  }
  .auditoria-card h3 {
    margin: 0;
    color: #20252b;
    font-size: 25px;
  }
  .auditoria-card-head span {
    color: #61717e;
    font-weight: 700;
  }
  .auditoria-lista,
  .auditoria-monitores {
    display: grid;
    gap: 10px;
  }
  .auditoria-evento {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr) 150px;
    gap: 16px;
    padding: 15px;
    border: 1px solid #e4e8e4;
    border-left: 5px solid #2f8f2d;
    border-radius: 8px;
    background: #fbfcfb;
  }
  .auditoria-evento.orcamento {
    border-left-color: #ffad00;
  }
  .auditoria-evento.seguranca {
    border-left-color: #15365b;
  }
  .auditoria-data {
    color: #61717e;
    font-size: 13px;
    font-weight: 800;
  }
  .auditoria-info strong {
    display: block;
    color: #20252b;
    font-size: 16px;
  }
  .auditoria-info p {
    margin: 5px 0 0;
    color: #4c5d68;
    line-height: 1.38;
  }
  .auditoria-info small {
    display: block;
    margin-top: 7px;
    color: #7a8790;
  }
  .auditoria-modulo {
    justify-self: end;
    align-self: start;
    padding: 7px 10px;
    border-radius: 999px;
    background: #eef8e9;
    color: #2f8f2d;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
  }
  .auditoria-evento.orcamento .auditoria-modulo {
    background: #fff0ce;
    color: #e08100;
  }
  .auditoria-evento.seguranca .auditoria-modulo {
    background: #e9eef5;
    color: #15365b;
  }
  .auditoria-monitores {
    margin-top: 16px;
  }
  .auditoria-monitor {
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e4e8e4;
    background: #fbfcfb;
  }
  .auditoria-monitor strong {
    display: block;
    color: #20252b;
    font-size: 16px;
  }
  .auditoria-monitor p {
    margin: 6px 0 10px;
    color: #5f6e7a;
    line-height: 1.4;
  }
  .auditoria-monitor span {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: #e9f8e4;
    color: #2f8f2d;
    font-size: 12px;
    font-weight: 900;
  }
  .auditoria-monitor.atencao span {
    background: #fff0ce;
    color: #e08100;
  }
  .auditoria-vazio {
    padding: 30px;
    text-align: center;
    color: #66737e;
    border: 1px dashed #d4ded5;
    border-radius: 8px;
    background: #fbfcfb;
  }
  .relatorios-view,
  .configuracoes-view {
    padding: 28px 38px 80px;
    overflow: auto;
    background: #f6f7f6;
    color: #17304d;
  }
  body.view-relatorios .topbar,
  body.view-configuracoes .topbar {
    min-height: 82px;
    padding: 0 56px;
    background:
      radial-gradient(circle at calc(100% - 14px) 6px, rgba(47,143,45,.95) 0 72px, transparent 74px),
      linear-gradient(90deg, #ffb100 0%, #ffbd12 58%, #ffad00 100%);
    border-bottom: 0;
  }
  body.view-relatorios .topbar h1,
  body.view-configuracoes .topbar h1 {
    color: #1f2831;
    font-size: 34px;
    font-weight: 600;
  }
  body.view-relatorios .topbar p,
  body.view-relatorios .top-right,
  body.view-configuracoes .topbar p,
  body.view-configuracoes .top-right {
    display: none;
  }
  .relatorios-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(260px, 1fr));
    gap: 20px;
  }
  .relatorios-atividades-card {
    grid-column: 1 / -1;
  }
  .relatorios-atividades-card .auditoria-lista {
    gap: 12px;
  }
  .relatorios-atividades-card .auditoria-evento {
    grid-template-columns: 170px minmax(0, 1fr) auto;
    align-items: start;
  }
  .relatorios-atividades-card .auditoria-info {
    min-width: 0;
  }
  .relatorios-atividades-card .auditoria-info p,
  .relatorios-atividades-card .auditoria-info small {
    overflow-wrap: anywhere;
  }
  .relatorio-lista {
    display: grid;
    gap: 10px;
    margin-top: 14px;
  }
  .relatorio-linha {
    min-height: 54px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 13px 14px;
    border: 1px solid #e4e8e4;
    border-radius: 8px;
    background: #fbfcfb;
  }
  .relatorio-linha strong {
    color: #20252b;
    font-size: 15px;
  }
  .relatorio-linha span {
    color: #2f8f2d;
    font-size: 20px;
    font-weight: 900;
  }
  .configuracoes-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(260px, 1fr));
    gap: 20px;
    align-items: start;
  }
  .configuracoes-card {
    display: grid;
    gap: 16px;
  }
  .configuracoes-card label {
    display: grid;
    gap: 7px;
    color: #20252b;
    font-size: 13px;
    font-weight: 900;
  }
  .configuracoes-card input,
  .configuracoes-card select {
    width: 100%;
    min-height: 46px;
    border: 1px solid #cfd9e2;
    border-radius: 8px;
    padding: 0 14px;
    background: #fff;
    color: #20252b;
    outline: none;
  }
  .configuracoes-card input:focus,
  .configuracoes-card select:focus {
    border-color: #ffad00;
    box-shadow: 0 0 0 3px rgba(255,173,0,.16);
  }
  .config-info {
    margin: 0;
    padding: 12px 14px;
    border-radius: 8px;
    background: #eef8e9;
    color: #2f8f2d;
    font-weight: 800;
  }
  .config-toggle {
    min-height: 58px;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 14px;
    border: 1px solid #e4e8e4;
    border-radius: 8px;
    background: #fbfcfb;
  }
  .config-toggle input {
    appearance: none;
    width: 46px;
    height: 25px;
    min-height: 25px;
    border: 0;
    border-radius: 999px;
    background: #b9c1c8;
    padding: 0;
    position: relative;
    cursor: pointer;
  }
  .config-toggle input:before {
    content: "";
    position: absolute;
    width: 19px;
    height: 19px;
    left: 3px;
    top: 3px;
    border-radius: 50%;
    background: #fff;
    transition: transform .16s ease;
  }
  .config-toggle input:checked {
    background: #2f8f2d;
  }
  .config-toggle input:checked:before {
    transform: translateX(21px);
  }
  .config-salvar-area {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 8px;
  }
  @media (max-width: 1180px) {
    .login-card-shell, .login-hero-content, .principal-grid, .usuarios-grid, .empresa-grid, .auditoria-filtros, .auditoria-kpis, .auditoria-grid, .relatorios-grid, .configuracoes-grid { grid-template-columns: 1fr; }
    .relatorios-atividades-card { grid-column: auto; }
    .relatorios-atividades-card .auditoria-evento { grid-template-columns: 1fr; }
    .login-panel { border-right: 0; border-bottom: 1px solid #dce4dd; }
    .principal-kpis { grid-template-columns: repeat(2, minmax(160px, 1fr)); }
    .auditoria-evento { grid-template-columns: 1fr; }
    .auditoria-modulo { justify-self: start; }
  }
  @media (max-width: 720px) {
    .login-screen { padding: 18px; }
    .login-card-shell { border-radius: 22px; }
    .login-panel, .login-hero { padding: 28px; }
    .login-copy h1 { font-size: 38px; }
    .login-copy p { font-size: 18px; }
    .login-lidy-card h2 { font-size: 32px; }
    .login-lidy-card p { font-size: 20px; }
    .login-kpis, .principal-kpis, .permissoes-grid { grid-template-columns: 1fr; }
    .principal-hero, .usuarios-hero, .empresa-hero { grid-template-columns: 1fr; }
  }
