/* GrillPro Licensing Manager — padrão visual das 12 referências (docs/license-manager/referencias-layout-12).
   Menu lateral único (referência: Visão Geral), banner superior, área central branca, botões 3D e rodapé.
   Tudo restrito ao painel logado (body.lm-logado); a tela de login mantém o visual aprovado. */
@font-face { font-family: 'LM Condensed'; src: url('/lm-condensed-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'LM Condensed'; src: url('/lm-condensed-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

body.lm-logado {
  --lm-ink: #0d1b33; --lm-muted: #42526b; --lm-line: #d5e0ef; --lm-soft: #f1f5fb;
  --lm-blue: #2369ff; --lm-blue-d: #0a3fc4; --lm-glow: #3d9bff;
  --lm-green: #22b14c; --lm-green-d: #0b7a24; --lm-red: #ef3535; --lm-red-d: #b30f17;
  --lm-orange: #ffa21c; --lm-orange-d: #e06100; --lm-purple: #9a45f5; --lm-purple-d: #5f17c6; --lm-cyan: #19c0d6; --lm-cyan-d: #0a7f9c;
  --lm-cond: 'LM Condensed', 'Roboto Condensed', 'Arial Narrow', Arial, sans-serif;
  --lm-side: 300px; --lm-top: 66px; --lm-foot: 78px;
  min-height: 100dvh;
  background: radial-gradient(ellipse at 20% 0, #0b3a8a 0, transparent 45%), radial-gradient(ellipse at 90% 100%, #0a2c6e 0, transparent 50%), #030d24;
  color: var(--lm-ink);
}

/* ---------- cabeçalho: logo no canto superior esquerdo; proprietário, Alterar Senha e Sair à direita ---------- */
.brand-logo { display: none; }
body.lm-logado .top { position: fixed; inset: 0 0 auto 0; height: var(--lm-top); min-height: 0; padding: 8px 16px 0 0; background: transparent; border: 0; box-shadow: none; z-index: 40; display: flex; justify-content: flex-end; align-items: flex-start; pointer-events: none; }
body.lm-logado .top > * { pointer-events: auto; }
body.lm-logado .brand { position: fixed; left: 6px; top: 2px; width: calc(var(--lm-side) - 4px); }
body.lm-logado .brand-logo { display: block; width: 100%; height: auto; -webkit-mask-image: radial-gradient(ellipse 52% 54% at 50% 50%, #000 72%, transparent 100%); mask-image: radial-gradient(ellipse 52% 54% at 50% 50%, #000 72%, transparent 100%); }
body.lm-logado .brand-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
body.lm-logado .who { gap: 12px; align-items: center; }
body.lm-logado .owner-identity { display: flex; align-items: center; gap: 10px; padding: 4px 14px 4px 4px; border-radius: 14px; background: linear-gradient(180deg, #102c63, #0a1d44); border: 1.5px solid #2f6fd8; box-shadow: 0 0 12px #2369ff55; color: #fff; }
body.lm-logado .owner-avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 0; background: radial-gradient(circle at 50% 35%, #fff 0 18%, transparent 19%), radial-gradient(ellipse at 50% 92%, #fff 0 34%, transparent 35%), linear-gradient(180deg, #3b8cff, #1557e0); border: 2px solid #9cc6ff; }
body.lm-logado .owner-identity small { display: block; color: #cfe0ff; font: 500 14px var(--lm-cond); }
body.lm-logado .owner-identity b { font: 700 19px var(--lm-cond); color: #fff; text-transform: uppercase; letter-spacing: .2px; }
body.lm-logado .who > button { min-height: 44px; padding: 0 18px; border-radius: 13px; font: 700 18px var(--lm-cond); display: inline-flex; align-items: center; gap: 8px; color: #fff; }
body.lm-logado .who > button svg { width: 22px; height: 22px; }
body.lm-logado #changePin { background: linear-gradient(180deg, #23314b, #121b2d); border: 1.5px solid #4d5d79; box-shadow: inset 0 1px 0 #ffffff26, 0 3px 8px #0006; }
body.lm-logado #logout { background: linear-gradient(180deg, #ff4a4a, #c4141b); border: 1.5px solid #ff8d8d; box-shadow: inset 0 1px 0 #ffffff55, 0 3px 10px #b3000066; }

/* ---------- menu lateral único (referência: Visão Geral) ---------- */
body.lm-logado #app > .tabs { position: fixed; top: 198px; left: 14px; bottom: calc(var(--lm-foot) + 28px); width: calc(var(--lm-side) - 30px); display: flex; flex-direction: column; gap: 0; margin: 0; padding: 12px 10px; overflow-y: auto; background: linear-gradient(180deg, #0c2c66 0%, #08214f 55%, #071a3f 100%); border: 2px solid #2b7cff; border-radius: 18px 18px 18px 26px; box-shadow: 0 0 18px #2369ffaa, 0 0 2px #8cc4ff inset, inset 0 0 30px #1f6bff26; z-index: 20; }
body.lm-logado #app > .tabs button { display: flex; align-items: center; gap: 16px; min-height: 76px; margin: 0; padding: 8px 14px; width: 100%; text-align: left; white-space: normal; background: transparent; border: 0; border-bottom: 1px solid #ffffff1a; border-radius: 0; box-shadow: none; color: #fff; font: 700 21px/1.05 var(--lm-cond); letter-spacing: -.2px; text-shadow: 0 1px 2px #0008; transition: background .15s; }
body.lm-logado #app > .tabs button:last-child { border-bottom: 0; }
body.lm-logado #app > .tabs button:hover { background: #ffffff10; }
body.lm-logado #app > .tabs button.active { background: linear-gradient(180deg, #3a8bff 0%, #1d5ff0 48%, #0f45d1 100%); border: 2px solid #8dc4ff; border-radius: 12px; box-shadow: 0 0 16px #3d9bffcc, inset 0 2px 0 #ffffff55, inset 0 -3px 6px #00227a66; margin: 4px 0; }
body.lm-logado #app > .tabs .nav-icon { flex: 0 0 40px; width: 40px; height: 40px; display: grid; place-items: center; color: #fff; }
body.lm-logado #app > .tabs .nav-icon svg { width: 36px; height: 36px; stroke-width: 2; }

/* ---------- conteúdo: banner + área central branca ---------- */
body.lm-logado:has(#app:not(.hidden)) #app { display: block; width: auto; max-width: none; margin: 0 0 0 var(--lm-side); padding: var(--lm-top) 14px calc(var(--lm-foot) + 26px) 0; min-height: 100dvh; background: transparent !important; }
body.lm-logado #app > [data-panel] { max-width: none; margin: 0; }
body.lm-logado .panel-heading { display: block; margin: 0 0 16px; }
body.lm-logado .lm-banner { position: relative; display: flex; align-items: center; gap: 22px; min-height: 108px; padding: 10px 28px; overflow: hidden; border-radius: 18px 18px 18px 18px; background: linear-gradient(100deg, #0a1c40 0%, #0e2a5e 38%, #0b1f47 62%, #091a3c 100%); border: 2px solid #2b7cff; box-shadow: 0 0 16px #2369ff99, inset 0 0 22px #2369ff33; }
body.lm-logado .lm-banner-icon { flex: 0 0 auto; width: 70px; height: 70px; display: grid; place-items: center; color: #36a6ff; filter: drop-shadow(0 0 8px #2b8cffaa); z-index: 1; }
body.lm-logado .lm-banner-icon svg { width: 66px; height: 66px; stroke-width: 2.1; }
body.lm-logado .lm-banner-text { z-index: 1; min-width: 0; }
body.lm-logado .lm-banner h1 { margin: 0; color: #fff; font: 800 44px/1.05 'Segoe UI', Arial, sans-serif; letter-spacing: -.5px; text-shadow: 0 2px 6px #000a; }
body.lm-logado .lm-banner p { margin: 6px 0 0; color: #e8f0ff; font: 500 22px/1.2 var(--lm-cond); text-shadow: 0 1px 3px #000a; }
body.lm-logado .lm-banner-art { position: absolute; top: 0; right: 0; bottom: 0; width: 44%; background: url('/lm-banner-churrasco.jpg') center / cover no-repeat; clip-path: polygon(13% 0, 100% 0, 100% 100%, 0 100%); -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%); mask-image: linear-gradient(90deg, transparent 0, #000 22%); opacity: .98; }
body.lm-logado .lm-banner-art::before { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, #2b7cff 0 1.5%, transparent 4%); }
body.lm-logado .panel-body { position: relative; background: #fff; border-radius: 20px; padding: 26px 30px 30px; border: 2px solid #c9dcff; box-shadow: 0 0 18px #2369ff66, 0 10px 30px #00000055; color: var(--lm-ink); min-height: calc(100dvh - var(--lm-top) - 124px - var(--lm-foot) - 40px); }

/* ---------- rodapé ---------- */
.lm-footer.hidden { display: none !important; }
.lm-footer { position: fixed; left: 10px; right: 10px; bottom: 10px; height: var(--lm-foot, 78px); z-index: 30; display: flex; align-items: center; gap: 0; padding: 0 26px; border-radius: 16px; background: linear-gradient(180deg, #0c2a5f, #071a3f); border: 2px solid #2b7cff; box-shadow: 0 0 16px #2369ffaa, inset 0 1px 0 #ffffff22; color: #fff; font: 500 22px 'LM Condensed', 'Roboto Condensed', Arial, sans-serif; }
.lm-footer > span { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lm-footer svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; flex: 0 0 auto; }
.lm-footer-status { color: #49e35b; padding-right: 28px; border-right: 2px solid #ffffff33; }
.lm-footer-status b { font-weight: 700; }
.lm-footer-status i { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #b8ffbe, #18c22e 55%, #0c7a1c); box-shadow: 0 0 10px #2ee04a; }
.lm-footer-status.off { color: #ff6b6b; }
.lm-footer-status.off i { background: radial-gradient(circle at 35% 30%, #ffc4c4, #e02828 55%, #8a0d0d); box-shadow: 0 0 10px #ff3b3b; }
.lm-footer-version { padding: 0 28px; }
.lm-footer-info { margin-left: auto; }

/* ---------- componentes na área branca ---------- */
body.lm-logado .panel-body h2 { color: var(--lm-ink); }
body.lm-logado .panel-body .hint, body.lm-logado .panel-body small.hint { color: var(--lm-muted); }
body.lm-logado .panel-body .card { background: #fff; border: 1.5px solid var(--lm-line); border-radius: 16px; box-shadow: 0 4px 16px #0b2a5c14; color: var(--lm-ink); }
body.lm-logado .panel-body label { color: var(--lm-ink); }
body.lm-logado .panel-body input:not([type=checkbox]):not([type=radio]):not([type=file]), body.lm-logado .panel-body select, body.lm-logado .panel-body textarea,
body.lm-logado dialog input:not([type=checkbox]):not([type=radio]):not([type=file]), body.lm-logado dialog select, body.lm-logado dialog textarea {
  background: #fff; color: var(--lm-ink); border: 1.5px solid #b7c6db; border-radius: 12px; min-height: 46px; padding: 8px 14px; font: 500 18px var(--lm-cond); box-shadow: inset 0 2px 3px #0b2a5c12;
}
body.lm-logado .panel-body input::placeholder { color: #6a7a92; }
body.lm-logado .panel-body input:focus, body.lm-logado .panel-body select:focus, body.lm-logado dialog input:focus, body.lm-logado dialog select:focus { outline: 2px solid #2369ff66; border-color: var(--lm-blue); }
body.lm-logado .panel-body table, body.lm-logado dialog table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; color: var(--lm-ink); }
body.lm-logado .panel-body th, body.lm-logado dialog th { background: linear-gradient(180deg, #1e62e0, #0c43b8); color: #fff; font: 700 17px/1.1 var(--lm-cond); text-transform: uppercase; letter-spacing: .1px; padding: 14px 12px; border: 0; text-align: left; white-space: nowrap; }
body.lm-logado .panel-body tr:first-child th:first-child, body.lm-logado dialog tr:first-child th:first-child { border-top-left-radius: 12px; }
body.lm-logado .panel-body tr:first-child th:last-child, body.lm-logado dialog tr:first-child th:last-child { border-top-right-radius: 12px; }
body.lm-logado .panel-body td, body.lm-logado dialog td { color: var(--lm-ink); background: #fff; border: 0; border-bottom: 1px solid #e2e9f3; padding: 12px; font: 500 17px/1.25 var(--lm-cond); vertical-align: middle; }
body.lm-logado .panel-body td b, body.lm-logado dialog td b { font-weight: 700; }
body.lm-logado .panel-body .table-scroll { border: 1.5px solid var(--lm-line); border-radius: 14px; background: #fff; box-shadow: 0 3px 12px #0b2a5c12; }

/* botões 3D */
body.lm-logado .panel-body button, body.lm-logado dialog button, body.lm-logado .lm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 20px; border-radius: 14px; cursor: pointer;
  font: 700 19px var(--lm-cond); color: var(--lm-ink); letter-spacing: -.1px; text-transform: none;
  background: linear-gradient(180deg, #ffffff 0%, #eef2f8 55%, #d9e1ec 100%); border: 1.5px solid #b5c3d7; box-shadow: inset 0 1px 0 #fff, 0 3px 6px #0b2a5c2e;
}
body.lm-logado .panel-body button:disabled, body.lm-logado dialog button:disabled { opacity: .55; cursor: not-allowed; }
body.lm-logado .panel-body button.primary, body.lm-logado dialog button.primary, body.lm-logado .lm-btn.azul { color: #fff; background: linear-gradient(180deg, #3d8cff 0%, #1d5ff0 50%, #0b40c0 100%); border-color: #74b0ff; box-shadow: inset 0 2px 0 #ffffff55, inset 0 -3px 6px #00227a55, 0 4px 10px #0b40c066; text-shadow: 0 1px 2px #0006; }
body.lm-logado .panel-body button.danger, body.lm-logado dialog button.danger, body.lm-logado .lm-btn.vermelho { color: #fff; background: linear-gradient(180deg, #ff5a54 0%, #e5262b 50%, #b30f17 100%); border-color: #ff9d98; box-shadow: inset 0 2px 0 #ffffff55, inset 0 -3px 6px #6e000055, 0 4px 10px #b30f1766; text-shadow: 0 1px 2px #0006; }
body.lm-logado .lm-btn.verde, body.lm-logado .panel-body button.verde, body.lm-logado dialog button.verde { color: #fff; background: linear-gradient(180deg, #4fd35f 0%, #22a83a 50%, #0b7a24 100%); border-color: #8cf09a; box-shadow: inset 0 2px 0 #ffffff66, inset 0 -3px 6px #00450f55, 0 4px 10px #0b7a2466; text-shadow: 0 1px 2px #0006; }
body.lm-logado .lm-btn.roxo, body.lm-logado .panel-body button.roxo { color: #fff; background: linear-gradient(180deg, #b26cff, #8236ee 50%, #5a14c0); border-color: #d1a6ff; box-shadow: inset 0 2px 0 #ffffff55, 0 4px 10px #5a14c066; }
body.lm-logado .lm-btn.laranja, body.lm-logado .panel-body button.laranja { color: #fff; background: linear-gradient(180deg, #ffb53d, #ff8d12 50%, #d95f00); border-color: #ffd28a; box-shadow: inset 0 2px 0 #ffffff66, 0 4px 10px #d95f0066; }
body.lm-logado .lm-btn.ciano, body.lm-logado .panel-body button.ciano { color: #fff; background: linear-gradient(180deg, #33d6e8, #10a9c4 50%, #087a95); border-color: #9cf0fb; box-shadow: inset 0 2px 0 #ffffff66, 0 4px 10px #087a9566; }
body.lm-logado .panel-body button svg, body.lm-logado dialog button svg { width: 26px; height: 26px; flex: 0 0 auto; }

/* selos de situação */
body.lm-logado .panel-body .badge, body.lm-logado dialog .badge { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 92px; padding: 6px 14px; border-radius: 12px; font: 700 16px var(--lm-cond); color: #fff; border: 1px solid #ffffff55; background: linear-gradient(180deg, #8fa1bb, #5c6f8c); box-shadow: inset 0 1px 0 #ffffff55, 0 2px 4px #0003; }
body.lm-logado .panel-body .badge.ok, body.lm-logado dialog .badge.ok { background: linear-gradient(180deg, #2ec24c, #108a2a); }
body.lm-logado .panel-body .badge.bad, body.lm-logado dialog .badge.bad { background: linear-gradient(180deg, #ff4b45, #c5141c); }
body.lm-logado .panel-body .badge.warn, body.lm-logado dialog .badge.warn { background: linear-gradient(180deg, #ffb93a, #f08a06); color: #fff; }

/* telas estreitas: o menu vira faixa no topo (sem cortar nem sobrepor) */
@media (max-width: 1100px) {
  body.lm-logado { --lm-side: 0px; --lm-foot: 56px; }
  body.lm-logado .brand { position: static; width: 220px; }
  body.lm-logado .top { position: relative; height: auto; justify-content: space-between; padding: 8px 12px; pointer-events: auto; flex-wrap: wrap; gap: 8px; }
  body.lm-logado:has(#app:not(.hidden)) #app { margin: 0; padding: 8px 10px calc(var(--lm-foot) + 22px); }
  body.lm-logado #app > .tabs { position: static; width: auto; flex-direction: row; flex-wrap: wrap; border-radius: 16px; margin-bottom: 12px; }
  body.lm-logado #app > .tabs button { width: auto; flex: 1 1 200px; min-height: 56px; font-size: 17px; border-bottom: 0; }
  body.lm-logado .lm-banner h1 { font-size: 30px; }
  body.lm-logado .lm-banner p { font-size: 17px; }
  body.lm-logado .lm-banner-art { width: 34%; }
  .lm-footer { font-size: 15px; padding: 0 12px; }
  .lm-footer-info { display: none !important; }
}
@media (max-width: 640px) {
  body.lm-logado .lm-banner-art { display: none; }
  body.lm-logado .lm-banner-icon, body.lm-logado .lm-banner-icon svg { width: 44px; height: 44px; }
  body.lm-logado .panel-body { padding: 16px 12px; }
  body.lm-logado .who > button { font-size: 15px; padding: 0 10px; }
}

/* ---------- 07 · Visão Geral ---------- */
body.lm-logado [data-panel=overview] .ov-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin: 0 0 18px; }
body.lm-logado [data-panel=overview] .ov-kpi { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 150px; padding: 12px 10px; border-radius: 16px; color: #fff; text-align: center; border: 2px solid #ffffff66; box-shadow: inset 0 2px 0 #ffffff55, inset 0 -6px 14px #0003, 0 6px 14px #0b2a5c40; overflow: hidden; }
body.lm-logado [data-panel=overview] .ov-kpi::after { content: ''; position: absolute; inset: 0 0 55% 0; background: linear-gradient(180deg, #ffffff38, transparent); pointer-events: none; }
body.lm-logado [data-panel=overview] .ov-kpi.blue { background: linear-gradient(180deg, #3f8dff, #1554e4 60%, #0b3cb4); }
body.lm-logado [data-panel=overview] .ov-kpi.green { background: linear-gradient(180deg, #43cf55, #18a330 60%, #0b7a22); }
body.lm-logado [data-panel=overview] .ov-kpi.orange { background: linear-gradient(180deg, #ffb340, #ff8a14 60%, #e06800); }
body.lm-logado [data-panel=overview] .ov-kpi.red { background: linear-gradient(180deg, #ff5550, #e3242a 60%, #b3101a); }
body.lm-logado [data-panel=overview] .ov-kpi.purple { background: linear-gradient(180deg, #b569ff, #8a3ef2 60%, #6418cc); }
body.lm-logado [data-panel=overview] .ov-kpi-head { display: flex; align-items: center; gap: 10px; font: 700 21px/1.05 var(--lm-cond); text-shadow: 0 1px 2px #0006; }
body.lm-logado [data-panel=overview] .ov-kpi-head svg { width: 42px; height: 42px; stroke-width: 2; flex: 0 0 auto; }
body.lm-logado [data-panel=overview] .ov-kpi b { font: 800 58px/1 'Segoe UI', Arial, sans-serif; text-shadow: 0 2px 4px #0005; color: #fff; }
body.lm-logado [data-panel=overview] .ov-kpi small { font: 500 17px var(--lm-cond); color: #fff; opacity: .95; }
body.lm-logado [data-panel=overview] .ov-actions { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin: 0 0 20px; }
body.lm-logado [data-panel=overview] .ov-actions button { min-height: 64px; padding: 0 10px; font-size: 20px; border-width: 2px; }
body.lm-logado [data-panel=overview] .ov-actions button svg { width: 32px; height: 32px; }
body.lm-logado [data-panel=overview] .ov-card { padding: 16px 18px 12px; }
body.lm-logado [data-panel=overview] .ov-card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
body.lm-logado [data-panel=overview] .ov-card-head h2 { display: flex; align-items: center; gap: 12px; margin: 0; font: 700 30px 'Segoe UI', Arial, sans-serif; letter-spacing: -.4px; color: var(--lm-ink); }
body.lm-logado .ov-card-ico { display: inline-grid; width: 40px; height: 40px; color: #0e1d3a; }
body.lm-logado .ov-card-ico svg { width: 40px; height: 40px; }
body.lm-logado [data-panel=overview] .ov-tools { display: flex; align-items: center; gap: 14px; flex: 1 1 auto; justify-content: flex-end; }
body.lm-logado .ov-search { position: relative; flex: 0 1 380px; margin: 0; }
body.lm-logado .ov-search svg { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 22px; height: 22px; fill: none; stroke: #0d1b33; stroke-width: 2.4; }
body.lm-logado .panel-body .ov-search input { width: 100%; padding-left: 46px; border-radius: 24px; }
body.lm-logado .ov-chip { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 16px; border-radius: 14px; background: linear-gradient(180deg, #f6f8fb, #e3e9f1); border: 1.5px solid #c3cfdf; color: var(--lm-ink); font: 700 18px var(--lm-cond); white-space: nowrap; }
body.lm-logado .ov-chip svg { width: 24px; height: 24px; fill: none; stroke: #1554e4; stroke-width: 2; }
body.lm-logado [data-panel=overview] .pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
body.lm-logado .ov-pager-tools { display: flex; align-items: center; gap: 8px; }
body.lm-logado .panel-body .ov-pager-tools select { min-height: 42px; width: 220px; }
body.lm-logado .panel-body .ov-pager-tools button { min-height: 42px; padding: 0 14px; font-size: 17px; }
body.lm-logado .panel-body th.col-acoes, body.lm-logado .panel-body td.col-acoes { text-align: center; width: 1%; white-space: nowrap; }
body.lm-logado .acoes-ico { display: inline-flex; gap: 8px; }
body.lm-logado .panel-body button.ico, body.lm-logado dialog button.ico { min-height: 40px; width: 50px; padding: 0; border-radius: 10px; color: #fff; }
body.lm-logado .panel-body button.ico svg { width: 24px; height: 24px; stroke-width: 2.2; }
body.lm-logado .panel-body button.ico.azul { background: linear-gradient(180deg, #3d8cff, #1554e4 55%, #0b3cb4); border-color: #7ab4ff; box-shadow: inset 0 2px 0 #ffffff55, 0 3px 6px #0b3cb455; }
body.lm-logado .panel-body button.ico.vermelho { background: linear-gradient(180deg, #ff5a54, #e3242a 55%, #b3101a); border-color: #ff9d98; box-shadow: inset 0 2px 0 #ffffff55, 0 3px 6px #b3101a55; }
@media (max-width: 1250px) { body.lm-logado [data-panel=overview] .ov-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } body.lm-logado [data-panel=overview] .ov-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); } body.lm-logado [data-panel=overview] .ov-card-head { flex-wrap: wrap; } }
@media (max-width: 640px) { body.lm-logado [data-panel=overview] .ov-kpis, body.lm-logado [data-panel=overview] .ov-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); } body.lm-logado [data-panel=overview] .ov-tools { flex-wrap: wrap; } body.lm-logado [data-panel=overview] .pager { flex-wrap: wrap; } }
body.lm-logado [data-panel=overview] .ov-kpi .ov-kpi-head span { font: 700 20px/1.05 var(--lm-cond); color: #fff; letter-spacing: 0; text-transform: none; opacity: 1; }
body.lm-logado [data-panel=overview] .ov-actions button { font-size: 18px; white-space: nowrap; gap: 8px; }
body.lm-logado [data-panel=overview] .ov-actions button svg { width: 28px; height: 28px; }
body.lm-logado .panel-body .ov-search input[type=search] { padding-left: 46px; }
body.lm-logado [data-panel=overview] #ovTable td { white-space: nowrap; font-size: 16px; padding: 10px; }
body.lm-logado [data-panel=overview] #ovTable th { font-size: 16px; padding: 13px 10px; }
@media (max-width: 1400px) { body.lm-logado [data-panel=overview] .ov-actions button { font-size: 16px; padding: 0 6px; } body.lm-logado [data-panel=overview] .ov-actions button svg { width: 24px; height: 24px; } }

/* icones nunca recebem o clique (o roteador de acoes usa o proprio botao) */
body.lm-logado button svg, body.lm-logado button .nav-icon, body.lm-logado button .nav-label { pointer-events: none; }

/* ---------- 04 · Estabelecimentos e Planos ---------- */
body.lm-logado [data-panel=establishments] .est-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 0 0 22px; }
body.lm-logado .est-kpi { position: relative; display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 120px; padding: 12px 14px; border-radius: 16px; color: #fff; border: 2px solid #ffffff66; box-shadow: inset 0 2px 0 #ffffff55, inset 0 -6px 14px #0003, 0 6px 14px #0b2a5c40; overflow: hidden; }
body.lm-logado .est-kpi::after { content: ""; position: absolute; inset: 0 0 55% 0; background: linear-gradient(180deg, #ffffff38, transparent); pointer-events: none; }
body.lm-logado .est-kpi > svg { width: 58px; height: 58px; flex: 0 0 auto; stroke-width: 2; }
body.lm-logado .est-kpi-txt { display: flex; flex-direction: column; align-items: center; text-align: center; line-height: 1.05; }
body.lm-logado .est-kpi-txt b { font: 800 50px/1 "Segoe UI", Arial, sans-serif; color: #fff; text-shadow: 0 2px 4px #0005; }
body.lm-logado .est-kpi-txt span { font: 700 19px var(--lm-cond); margin-top: 4px; }
body.lm-logado .est-kpi-txt small { font: 500 17px var(--lm-cond); }
body.lm-logado .est-kpi.azul { background: linear-gradient(180deg, #3f8dff, #1554e4 60%, #0b3cb4); }
body.lm-logado .est-kpi.verde { background: linear-gradient(180deg, #43cf55, #18a330 60%, #0b7a22); }
body.lm-logado .est-kpi.laranja { background: linear-gradient(180deg, #ffb340, #ff8a14 60%, #e06800); }
body.lm-logado .est-kpi.vermelho { background: linear-gradient(180deg, #ff5550, #e3242a 60%, #b3101a); }
body.lm-logado .est-filtros { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin: 0 0 18px; }
body.lm-logado .panel-body .est-filtro { display: inline-flex; align-items: center; gap: 12px; margin: 0; font: 700 20px var(--lm-cond); white-space: nowrap; }
body.lm-logado .panel-body .est-filtro select { width: 230px; font-weight: 700; font-size: 20px; }
body.lm-logado .est-busca { margin-left: auto !important; flex: 0 1 330px; }
body.lm-logado [data-panel=establishments] #establishmentsTable td { font-size: 17px; padding: 12px 10px; }
body.lm-logado [data-panel=establishments] #establishmentsTable th { text-align: center; }
body.lm-logado [data-panel=establishments] #establishmentsTable th:first-child { text-align: left; }
body.lm-logado [data-panel=establishments] #establishmentsTable td:nth-child(n+2) { text-align: center; }
body.lm-logado [data-panel=establishments] #establishmentsTable tr[data-est] { cursor: pointer; }
body.lm-logado [data-panel=establishments] #establishmentsTable tr[data-est]:hover td { background: #f3f8ff; }
body.lm-logado [data-panel=establishments] #establishmentsTable tr.selecionado td { background: #e3eeff; box-shadow: inset 0 2px 0 #2369ff, inset 0 -2px 0 #2369ff; }
body.lm-logado .est-who { display: flex; align-items: center; gap: 12px; }
body.lm-logado .est-loja { width: 34px; height: 34px; color: #0d1b33; flex: 0 0 auto; }
body.lm-logado .est-loja svg { width: 34px; height: 34px; }
body.lm-logado .panel-body td.centro { text-align: center; }
body.lm-logado .est-acoes { display: grid; grid-template-columns: 1.15fr 1.1fr .8fr .8fr; gap: 16px; margin-top: 20px; }
body.lm-logado .est-acoes button { min-height: 66px; font-size: 22px; border-width: 2px; }
body.lm-logado .est-acoes button svg { width: 34px; height: 34px; }

/* ---------- 10 · 11 · 08 · Modulos do Sistema (tres abas) ---------- */
body.lm-logado .mods-abas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 0 18px; }
body.lm-logado .mods-abas button { min-height: 62px; font-size: 24px; border-width: 2px; }
body.lm-logado .mods-abas button svg { width: 34px; height: 34px; color: #1554e4; }
body.lm-logado .mods-abas button.active { color: #fff; background: linear-gradient(180deg, #3d8cff 0%, #1d5ff0 50%, #0b40c0 100%); border-color: #8dc4ff; box-shadow: inset 0 2px 0 #ffffff55, 0 0 14px #2369ff88; }
body.lm-logado .mods-abas button.active svg { color: #fff; }
body.lm-logado .mods-cab { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; }
body.lm-logado .mods-cab-ico { width: 52px; height: 52px; color: #1554e4; flex: 0 0 auto; }
body.lm-logado .mods-cab-ico svg { width: 52px; height: 52px; }
body.lm-logado .mods-cab h2 { margin: 0; font: 700 28px "Segoe UI", Arial, sans-serif; letter-spacing: -.4px; }
body.lm-logado .mods-cab .hint { margin: 2px 0 0; font: 500 18px var(--lm-cond); }
body.lm-logado .mods-ferramentas { margin-left: auto; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
body.lm-logado .mods-exibir { display: inline-flex; align-items: center; gap: 10px; font: 700 20px var(--lm-cond); }
body.lm-logado .mods-exibir.hidden, body.lm-logado .mods-categoria.hidden, body.lm-logado .mods-busca.hidden { display: none; }
body.lm-logado .panel-body .mods-exibir button { min-height: 44px; padding: 0 14px; font-size: 17px; }
body.lm-logado .panel-body .mods-exibir button svg { width: 22px; height: 22px; }
body.lm-logado .panel-body .mods-exibir button.active { color: #fff; background: linear-gradient(180deg, #3d8cff, #1554e4 55%, #0b3cb4); border-color: #7ab4ff; }
body.lm-logado .panel-body .mods-categoria { display: inline-flex; align-items: center; gap: 10px; margin: 0; font: 700 18px var(--lm-cond); }
body.lm-logado .panel-body .mods-categoria select { width: 220px; }
body.lm-logado .mods-busca { flex: 0 1 230px; }
body.lm-logado .mods-tabela td { padding: 8px 12px; }
body.lm-logado .mods-tabela th.col-status, body.lm-logado .mods-tabela td.col-status { width: 120px; text-align: center; }
body.lm-logado .mods-nome { display: flex; align-items: center; gap: 14px; }
body.lm-logado .mods-nome small { display: block; color: #3d4c63; font: 500 15px var(--lm-cond); }
body.lm-logado .mods-nome b { font: 700 19px var(--lm-cond); }
body.lm-logado .mods-ico { width: 54px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: linear-gradient(180deg, #2d76ff, #0c45c2); box-shadow: inset 0 1px 0 #ffffff55, 0 2px 4px #0b3cb455; flex: 0 0 auto; }
body.lm-logado .mods-ico svg { width: 26px; height: 26px; stroke-width: 2; }
body.lm-logado .mods-ico.solido { width: 56px; height: 30px; }
body.lm-logado .mods-ico.solido svg { width: 20px; height: 20px; }
body.lm-logado .panel-body td.mods-desc { font-size: 15px; color: #24334b; }
body.lm-logado .mods-cat { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px; border-radius: 10px; font: 700 17px var(--lm-cond); background: #dbe9ff; color: #0c3aa6; border: 1px solid #b9d2ff; white-space: nowrap; }
body.lm-logado .mods-cat svg { width: 20px; height: 20px; }
body.lm-logado .mods-cat.profissional { background: #efdcff; color: #5c1aa8; border-color: #dcbaff; }
body.lm-logado .mods-cat.empresarial, body.lm-logado .mods-cat.cat-fiscal { background: #d8f5df; color: #0d6a26; border-color: #aee8bd; }
body.lm-logado .mods-cat.cat-vendas, body.lm-logado .mods-cat.cat-marketing { background: #ecdcff; color: #5c1aa8; border-color: #d8bcff; }
body.lm-logado .mods-sempre { font: 700 17px var(--lm-cond); color: #0b7a24; }
body.lm-logado .mods-dev { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 8px; background: #fff2d6; color: #8a5300; font: 700 13px var(--lm-cond); }
body.lm-logado .panel-body .mods-sub td { background: #f6f9ff; }
body.lm-logado .mods-sub .mods-nome { padding-left: 34px; }
body.lm-logado .panel-body button.mods-expandir { min-height: 34px; width: 46px; padding: 0; background: transparent; border: 0; box-shadow: none; color: #0d1b33; }
body.lm-logado .panel-body .parametros select { min-height: 40px; font-size: 16px; width: 100%; min-width: 190px; }
body.lm-logado .lm-switch { position: relative; display: inline-block; width: 64px; height: 34px; margin: 0; cursor: pointer; vertical-align: middle; }
body.lm-logado .lm-switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
body.lm-logado .lm-switch span { position: absolute; inset: 0; border-radius: 20px; background: linear-gradient(180deg, #c9d0da, #e9edf2); border: 1.5px solid #aab5c4; box-shadow: inset 0 2px 4px #0003; transition: background .15s; }
body.lm-logado .lm-switch span::after { content: ""; position: absolute; top: 2px; left: 3px; width: 27px; height: 27px; border-radius: 50%; background: linear-gradient(180deg, #fff, #e6eaf0); box-shadow: 0 2px 4px #0005; transition: transform .15s; }
body.lm-logado .lm-switch input:checked + span { background: linear-gradient(180deg, #2d76ff, #0c45c2); border-color: #0b3cb4; }
body.lm-logado .lm-switch input:checked + span::after { transform: translateX(29px); }
body.lm-logado .lm-switch input:disabled + span { opacity: .75; cursor: not-allowed; }
body.lm-logado .lm-switch input:focus-visible + span { outline: 3px solid #2369ff88; outline-offset: 2px; }
body.lm-logado .mods-info { display: flex; align-items: center; gap: 12px; margin: 16px 0 0; padding: 12px 18px; border-radius: 14px; background: linear-gradient(90deg, #e3efff, #d3e6ff); border: 1px solid #b9d4ff; color: #0c2f80; font: 500 19px var(--lm-cond); }
body.lm-logado .mods-info svg { width: 32px; height: 32px; flex: 0 0 auto; fill: #1d5ff0; stroke: #fff; stroke-width: 2.2; }
body.lm-logado .mods-salvo { margin: 10px 0 0; padding: 8px 14px; border-radius: 10px; background: #e3f8e8; color: #0b6a22; font: 700 17px var(--lm-cond); }
body.lm-logado .mods-salvo.hidden { display: none; }
body.lm-logado .mods-salvo.pendente { background: #fff4dc; color: #8a5300; }
body.lm-logado .mods-botoes { display: flex; justify-content: center; gap: 40px; margin-top: 18px; }
body.lm-logado .mods-botoes button { min-height: 66px; min-width: 330px; font-size: 26px; border-width: 2px; }
body.lm-logado .mods-botoes button svg { width: 34px; height: 34px; }
@media (max-width: 1250px) { body.lm-logado [data-panel=establishments] .est-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } body.lm-logado .est-acoes { grid-template-columns: repeat(2, minmax(0, 1fr)); } body.lm-logado .mods-cab { flex-wrap: wrap; } body.lm-logado .mods-ferramentas { margin-left: 0; justify-content: flex-start; } body.lm-logado .mods-botoes button { min-width: 0; flex: 1 1 260px; } }
@media (max-width: 640px) { body.lm-logado .mods-abas { grid-template-columns: 1fr; } body.lm-logado .est-acoes { grid-template-columns: 1fr; } body.lm-logado .mods-botoes { flex-direction: column; gap: 12px; } }
body.lm-logado .lm-banner-art { width: 36%; }
body.lm-logado .lm-banner-text { max-width: 66%; }
body.lm-logado .panel-body .ov-search input { padding-left: 46px !important; }
body.lm-logado .panel-body .est-filtro select { width: 200px; }
body.lm-logado .est-filtros { gap: 18px; flex-wrap: nowrap; }
body.lm-logado .est-busca { flex: 1 1 260px; max-width: 320px; }
body.lm-logado [data-panel=establishments] #establishmentsTable td:nth-child(3), body.lm-logado [data-panel=establishments] #establishmentsTable td:nth-child(5) { white-space: nowrap; }
body.lm-logado .mods-tabela td { padding: 6px 12px; }
body.lm-logado .mods-ico { height: 36px; }
@media (max-width: 1250px) { body.lm-logado .est-filtros { flex-wrap: wrap; } }
body.lm-logado .mods-cab h2 { white-space: nowrap; }
body.lm-logado .mods-cab > div:nth-of-type(1) { flex: 0 0 auto; }

/* ---------- blocos com faixa azul de título (Clientes, Licenças) ---------- */
body.lm-logado .lm-bloco { background: #fff; border: 1.5px solid #c9d8ee; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 14px #0b2a5c1a; }
body.lm-logado .panel-body .lm-bloco-tit { display: flex; align-items: center; gap: 12px; margin: 0; padding: 12px 18px; background: linear-gradient(180deg, #1f63e2, #0b3fb8); color: #fff; font: 700 24px var(--lm-cond); letter-spacing: -.2px; text-shadow: 0 1px 2px #0006; border-bottom: 2px solid #5a9bff; }
body.lm-logado .lm-bloco-tit svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 2; flex: 0 0 auto; }
body.lm-logado .lm-bloco-tit small { font: 500 18px var(--lm-cond); opacity: .9; }

/* ---------- 03 · Clientes e Instalações ---------- */
body.lm-logado .cli-cab { display: flex; align-items: center; gap: 16px; margin: 0 0 18px; flex-wrap: wrap; }
body.lm-logado .cli-cab-ico { width: 54px; height: 54px; color: #1554e4; }
body.lm-logado .cli-cab-ico svg { width: 54px; height: 54px; }
body.lm-logado .panel-body .cli-cab h2 { margin: 0; font: 800 38px "Segoe UI", Arial, sans-serif; letter-spacing: -.8px; }
body.lm-logado .cli-cab-sep { width: 2px; height: 44px; background: #c9d4e3; margin: 0 6px; }
body.lm-logado .cli-cab-sub { display: inline-flex; align-items: center; gap: 12px; font: 500 22px var(--lm-cond); color: var(--lm-ink); }
body.lm-logado .cli-cab-sub svg { width: 34px; height: 34px; fill: none; stroke: #1554e4; stroke-width: 2; }
body.lm-logado .panel-body .cli-cab .ids-preview { margin-left: auto; color: var(--lm-muted); font: 500 15px var(--lm-cond); background: none; border: 0; padding: 0; }
body.lm-logado .cli-form { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 22px; align-items: start; }
body.lm-logado .cli-dados { padding-bottom: 6px; }
body.lm-logado .panel-body .cli-campo { display: grid; grid-template-columns: 210px minmax(0, 1fr); align-items: center; gap: 10px; margin: 0; padding: 9px 16px; border-bottom: 1px solid #e3e9f2; font: 500 20px var(--lm-cond); }
body.lm-logado .panel-body .cli-campo:last-child { border-bottom: 0; }
body.lm-logado .cli-campo > span { display: inline-flex; align-items: center; gap: 12px; }
body.lm-logado .cli-campo > span svg { width: 30px; height: 30px; color: #1554e4; stroke-width: 2; }
body.lm-logado .panel-body .cli-campo input { width: 100%; }
body.lm-logado .cli-direita { display: grid; gap: 18px; }
body.lm-logado .cli-direita .lm-bloco > :not(.lm-bloco-tit) { margin-left: 16px; margin-right: 16px; }
body.lm-logado .panel-body .cli-sel { display: flex; align-items: center; gap: 12px; margin-top: 14px; margin-bottom: 0; font: 500 20px var(--lm-cond); }
body.lm-logado .cli-sel > svg { width: 32px; height: 32px; fill: none; stroke: #1554e4; stroke-width: 2; flex: 0 0 auto; }
body.lm-logado .panel-body .cli-sel select { flex: 1 1 auto; min-width: 0; }
body.lm-logado .cli-periodo span { white-space: nowrap; }
body.lm-logado .cli-periodo select { flex: 0 1 200px !important; }
body.lm-logado .panel-body button.cli-largo { width: calc(100% - 32px); margin-top: 14px; min-height: 54px; font-size: 22px; }
body.lm-logado .cli-mais { margin-top: 12px; margin-bottom: 14px; }
body.lm-logado .cli-mais summary { cursor: pointer; color: #1554e4; font: 700 16px var(--lm-cond); }
body.lm-logado .cli-mais label { display: block; margin-top: 8px; font: 500 16px var(--lm-cond); }
body.lm-logado .cli-mais label input, body.lm-logado .cli-mais label select { width: 100%; }
body.lm-logado .cli-mais .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
body.lm-logado .cli-mais .modules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; max-height: 220px; overflow: auto; padding: 8px; border: 1px solid #dbe4f0; border-radius: 10px; }
body.lm-logado .cli-mais .modules label { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: 15px; }
body.lm-logado .cli-legado { display: grid; gap: 6px; }
body.lm-logado .cli-botoes { grid-column: 1 / -1; display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 26px; margin-top: 6px; }
body.lm-logado .cli-botoes button { min-height: 72px; font-size: 30px; border-width: 2px; }
body.lm-logado .cli-botoes button svg { width: 40px; height: 40px; }
body.lm-logado .panel-body #linkCodeBox, body.lm-logado .panel-body #customerError { grid-column: 1 / -1; }
body.lm-logado .panel-body #linkCodeBox { background: #eef6ff; color: var(--lm-ink); border: 1.5px solid #9cc4ff; border-radius: 14px; padding: 14px 18px; font: 500 18px var(--lm-cond); }
body.lm-logado [data-panel=customers] .panel-body > .card { margin-top: 22px; }
@media (max-width: 1250px) { body.lm-logado .cli-form { grid-template-columns: 1fr; } body.lm-logado .panel-body .cli-campo { grid-template-columns: 1fr; } }
@media (max-width: 640px) { body.lm-logado .cli-botoes { grid-template-columns: 1fr; gap: 10px; } body.lm-logado .cli-botoes button { font-size: 22px; } body.lm-logado .cli-mais .row, body.lm-logado .cli-mais .modules { grid-template-columns: 1fr; } }
body.lm-logado .mods-cab { flex-wrap: wrap; }
body.lm-logado .mods-ferramentas { flex: 1 1 380px; min-width: 0; }
body.lm-logado .lm-banner-text { max-width: 80%; }

/* ---------- 02 · Licenças ---------- */
body.lm-logado .lic-ref { display: block; background: none; border: 0; padding: 0; box-shadow: none; }
body.lm-logado .lic-selecionar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 0 0 20px; }
body.lm-logado .lic-sel-ico { width: 64px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(180deg, #3d8cff, #1554e4 55%, #0b3cb4); box-shadow: inset 0 2px 0 #ffffff55, 0 3px 8px #0b3cb455; }
body.lm-logado .lic-sel-ico svg { width: 40px; height: 40px; fill: none; stroke: #fff; stroke-width: 1.9; }
body.lm-logado .panel-body .lic-selecionar h2 { margin: 0; font: 800 38px "Segoe UI", Arial, sans-serif; letter-spacing: -.8px; color: var(--lm-ink); }
body.lm-logado .panel-body .lic-sel-cliente { flex: 1 1 360px; margin: 0 0 0 auto; max-width: 520px; }
body.lm-logado .panel-body .lic-sel-cliente select { width: 100%; min-height: 54px; font-size: 21px; border-radius: 14px; }
body.lm-logado .panel-body button.lic-buscar { width: 60px; min-height: 54px; border-radius: 14px; }
body.lm-logado .panel-body button.lic-buscar svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 2.6; }
body.lm-logado .lic-busca { flex: 1 1 100%; margin: 0; }
body.lm-logado .lic-busca.hidden { display: none; }
body.lm-logado .panel-body .lic-status-mini { flex: 1 1 100%; margin: 0; padding: 0; background: none; border: 0; color: var(--lm-muted); font: 500 16px var(--lm-cond); text-align: right; }
body.lm-logado .lic-grade { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
body.lm-logado .lic-campos { display: grid; gap: 16px; padding: 22px 22px 18px; }
body.lm-logado .panel-body .lic-campo { display: grid; grid-template-columns: 120px minmax(0, 1fr); align-items: center; gap: 12px; margin: 0; font: 700 21px var(--lm-cond); color: var(--lm-ink); }
body.lm-logado .panel-body .lic-campo select, body.lm-logado .panel-body .lic-campo input { width: 100%; font-size: 20px; }
body.lm-logado .lic-com-ico { position: relative; display: block; }
body.lm-logado .lic-com-ico svg { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 26px; height: 26px; fill: none; stroke: #1554e4; stroke-width: 2; pointer-events: none; }
body.lm-logado .panel-body .lic-com-ico select { padding-left: 52px; }
body.lm-logado .lic-datas { display: grid; gap: 14px; padding: 16px 18px; background: #eef2f8; border: 1px solid #d5deea; border-radius: 14px; }
body.lm-logado .panel-body .lic-datas .lic-campo { grid-template-columns: 150px minmax(0, 1fr); }
body.lm-logado .lic-data-rot { display: inline-flex; align-items: center; gap: 12px; }
body.lm-logado .lic-data-rot svg { width: 32px; height: 32px; fill: none; stroke: #1554e4; stroke-width: 2; }
body.lm-logado .panel-body .license-context { margin: 0 22px 18px; color: var(--lm-muted); font: 500 15px var(--lm-cond); background: none; border: 0; padding: 0; }
body.lm-logado .lic-direita { display: grid; gap: 18px; }
body.lm-logado .panel-body .license-automation { padding: 0; background: #fff; border: 1.5px solid #c9d8ee; }
body.lm-logado .panel-body .lic-regra { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 14px; margin: 0; padding: 12px 18px; border: 0; border-bottom: 1px solid #e3e9f2; border-radius: 0; background: #fff; }
body.lm-logado .panel-body .lic-regra:last-of-type { border-bottom: 0; }
body.lm-logado .panel-body .lic-regra .rule-icon { width: 42px; height: 42px; display: grid; place-items: center; background: none; border: 0; color: #1554e4; }
body.lm-logado .lic-regra .rule-icon svg { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 2; }
body.lm-logado .panel-body .lic-regra b { display: block; font: 700 21px var(--lm-cond); color: var(--lm-ink); }
body.lm-logado .panel-body .lic-regra small { display: block; font: 500 17px var(--lm-cond); color: #3a4a62; }
body.lm-logado .panel-body .license-summary { padding: 0; background: #fff; }
body.lm-logado .panel-body .license-summary-list { margin: 14px 16px 16px; padding: 8px 18px; background: #eef2f8; border-radius: 14px; border: 1px solid #d5deea; display: grid; gap: 6px; }
body.lm-logado .panel-body .license-summary-list > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; gap: 10px; border: 0; padding: 0; background: none; }
body.lm-logado .panel-body .license-summary-list dt { font: 700 21px var(--lm-cond); color: var(--lm-ink); }
body.lm-logado .panel-body .license-summary-list dd { margin: 0; font: 500 20px var(--lm-cond); color: var(--lm-ink); }
body.lm-logado .panel-body .lic-res-destaque .badge { min-width: 180px; font-size: 21px; padding: 7px 16px; }
body.lm-logado .lic-venc { display: inline-flex; align-items: center; gap: 12px; font: 700 21px var(--lm-cond); }
body.lm-logado .lic-venc svg { width: 30px; height: 30px; fill: none; stroke: #1554e4; stroke-width: 2; }
body.lm-logado .panel-body .lic-res-linha dt, body.lm-logado .panel-body .lic-res-linha dd { font-size: 15px; color: #3a4a62; }
body.lm-logado .panel-body .lic-res-linha:nth-of-type(3) { margin-top: 6px; padding-top: 6px; border-top: 1px solid #d5deea; }
body.lm-logado .lic-botoes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; margin-top: 24px; }
body.lm-logado .lic-botoes button { min-height: 72px; font-size: 30px; border-width: 2px; }
body.lm-logado .lic-botoes button svg { width: 40px; height: 40px; }
body.lm-logado .panel-body .license-result { margin-top: 14px; padding: 12px 16px; border-radius: 12px; background: #e3f8e8; color: #0b6a22; font: 700 17px var(--lm-cond); border: 1px solid #a9e3b6; }
body.lm-logado .panel-body .license-result[data-status=pending] { background: #fff4dc; color: #8a5300; border-color: #f2d28e; }
body.lm-logado .panel-body .license-result[data-status=error] { background: #ffe5e5; color: #a40f17; border-color: #f5a3a3; }
body.lm-logado [data-panel=licenses] .license-records { margin-top: 24px; }
@media (max-width: 1250px) { body.lm-logado .lic-grade { grid-template-columns: 1fr; } }
@media (max-width: 640px) { body.lm-logado .lic-botoes { grid-template-columns: 1fr; gap: 10px; } body.lm-logado .lic-botoes button { font-size: 22px; } body.lm-logado .panel-body .lic-campo, body.lm-logado .panel-body .lic-datas .lic-campo { grid-template-columns: 1fr; } }

/* ---------- 01 · Supervisor Master ---------- */
body.lm-logado .sup-ref { padding: 6px 4px 4px; }
body.lm-logado .sup-ref-cab { display: flex; align-items: center; gap: 22px; margin: 0 0 22px; }
body.lm-logado .sup-ref-ico { width: 108px; height: 104px; border-radius: 22px; display: grid; place-items: center; background: linear-gradient(180deg, #3d8cff, #1554e4 55%, #0b3cb4); box-shadow: inset 0 3px 0 #ffffff55, 0 6px 14px #0b3cb466; }
body.lm-logado .sup-ref-ico svg { width: 64px; height: 64px; fill: #fff; stroke: #1554e4; stroke-width: 1.6; }
body.lm-logado .sup-ref-ico svg path:first-of-type { fill: none; stroke: #fff; stroke-width: 2.6; }
body.lm-logado .panel-body .sup-ref-cab h2 { margin: 0; font: 800 46px "Segoe UI", Arial, sans-serif; letter-spacing: -1px; color: var(--lm-ink); }
body.lm-logado .panel-body .sup-ref-cab .hint { margin: 6px 0 0; font: 500 24px var(--lm-cond); color: var(--lm-ink); }
body.lm-logado .sup-ref-acoes { display: grid; grid-template-columns: 1.05fr 1fr 1.05fr; gap: 14px; margin: 0 0 22px; }
body.lm-logado .sup-ref-acoes button { min-height: 80px; font-size: 30px; border-width: 2px; }
body.lm-logado .sup-ref-acoes button svg { width: 40px; height: 40px; }
body.lm-logado .panel-body .sup-ref-acoes button.primary { box-shadow: inset 0 2px 0 #ffffff55, 0 0 0 3px #bfe0ff, 0 0 18px #2369ffaa; }
body.lm-logado .sup-revogar svg { color: #e3242a; }
body.lm-logado .sup-ref-campos { display: grid; gap: 14px; padding: 20px 26px; border-radius: 18px; background: #eef2f8; border: 1px solid #d5deea; }
body.lm-logado .sup-ref-linha { display: grid; grid-template-columns: 330px minmax(0, 1fr); align-items: center; gap: 12px; }
body.lm-logado .sup-ref-rot { display: inline-flex; align-items: center; gap: 18px; font: 700 26px var(--lm-cond); color: var(--lm-ink); }
body.lm-logado .sup-ref-rot svg { width: 40px; height: 40px; fill: #1554e4; stroke: #1554e4; stroke-width: 1.4; }
body.lm-logado .sup-ref-rot svg path, body.lm-logado .sup-ref-rot svg circle { stroke-linecap: round; }
body.lm-logado .sup-ref-val { display: flex; align-items: center; min-height: 56px; padding: 0 22px; border-radius: 14px; background: #fff; border: 1.5px solid #b7c6db; box-shadow: inset 0 2px 3px #0b2a5c12; font: 500 26px var(--lm-cond); color: var(--lm-ink); }
body.lm-logado b.sup-ref-val { font-weight: 500; }
body.lm-logado .sup-pinbox { justify-content: space-between; }
body.lm-logado .panel-body .sup-pinbox .sup-val { font: 700 30px var(--lm-cond); letter-spacing: 8px; color: var(--lm-ink); background: none; border: 0; padding: 0; }
body.lm-logado .panel-body .sup-pinbox button { min-height: 40px; width: 52px; padding: 0; background: none; border: 0; box-shadow: none; color: #1d2b44; }
body.lm-logado .panel-body .sup-pinbox button svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 2; }
body.lm-logado .sup-validade { justify-content: space-between; color: var(--lm-ink); }
body.lm-logado .sup-validade svg { width: 30px; height: 30px; fill: none; stroke: #0d1b33; stroke-width: 2.6; }
body.lm-logado .panel-body .sup-validity-txt { margin: 0; text-align: right; font: 500 16px var(--lm-cond); }
body.lm-logado .sup-ref-info { font-size: 24px; margin-top: 22px; }
body.lm-logado .sup-ref-info svg { width: 40px; height: 40px; }
body.lm-logado .sup-ref-botoes { display: flex; justify-content: center; gap: 56px; margin-top: 26px; }
body.lm-logado .sup-ref-botoes button { min-height: 72px; min-width: 400px; font-size: 32px; border-width: 2px; }
body.lm-logado .sup-ref-botoes button svg { width: 40px; height: 40px; }
body.lm-logado .sup-ref-botoes button:not(.verde) svg { color: #1554e4; }
body.lm-logado .panel-body .sup-ref .sup-info { margin-top: 18px; font: 500 15px var(--lm-cond); }
body.lm-logado [data-panel=supervisor] .panel-body > .card { margin-top: 22px; }
body.lm-logado [data-panel=supervisor] .sup-status, body.lm-logado [data-panel=supervisor] .sup-status * { color: var(--lm-ink); }
@media (max-width: 1250px) { body.lm-logado .sup-ref-linha { grid-template-columns: 1fr; } body.lm-logado .sup-ref-botoes button { min-width: 0; flex: 1 1 260px; font-size: 26px; } body.lm-logado .sup-ref-acoes button { font-size: 24px; } }
@media (max-width: 640px) { body.lm-logado .sup-ref-acoes { grid-template-columns: 1fr; } body.lm-logado .sup-ref-botoes { flex-direction: column; gap: 12px; } body.lm-logado .panel-body .sup-ref-cab h2 { font-size: 32px; } body.lm-logado .sup-ref-ico { width: 70px; height: 70px; } }
body.lm-logado .sup-ref-linha:nth-child(3) .sup-ref-rot svg { fill: none; stroke-width: 2.2; }
body.lm-logado .panel-body .sup-ref .sup-info { background: none; border: 0; padding: 0; color: var(--lm-muted); box-shadow: none; }
body.lm-logado .panel-body .sup-ref .sup-info code { color: #1554e4; background: #e8f0ff; padding: 1px 6px; border-radius: 6px; }

/* ---------- 09 · Histórico de Sincronização ---------- */
body.lm-logado .hist-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0 0 20px; }
body.lm-logado .hist-kpi { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 92px; padding: 10px 16px; border-radius: 16px; border: 2px solid; box-shadow: inset 0 2px 0 #fff, 0 4px 12px #0b2a5c26; }
body.lm-logado .hist-kpi.verde { background: linear-gradient(180deg, #e9fbe9, #c9f0cd); border-color: #8fdc99; }
body.lm-logado .hist-kpi.azul { background: linear-gradient(180deg, #e8f2ff, #c9e0ff); border-color: #8fbaff; }
body.lm-logado .hist-kpi.laranja { background: linear-gradient(180deg, #fff6e0, #ffe2b0); border-color: #ffc66b; }
body.lm-logado .hist-kpi.vermelho { background: linear-gradient(180deg, #ffeceb, #ffcfcc); border-color: #ff9d98; }
body.lm-logado .hist-kpi-ico { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
body.lm-logado .hist-kpi-ico svg { width: 30px; height: 30px; stroke-width: 2.4; }
body.lm-logado .hist-kpi.verde .hist-kpi-ico { background: linear-gradient(180deg, #3fcf55, #129a2c); }
body.lm-logado .hist-kpi.azul .hist-kpi-ico { background: none; color: #1d5ff0; }
body.lm-logado .hist-kpi.azul .hist-kpi-ico svg { width: 44px; height: 44px; }
body.lm-logado .hist-kpi.laranja .hist-kpi-ico { background: none; color: #f08a06; }
body.lm-logado .hist-kpi.laranja .hist-kpi-ico svg { width: 44px; height: 44px; }
body.lm-logado .hist-kpi.vermelho .hist-kpi-ico { background: none; color: #e3242a; }
body.lm-logado .hist-kpi.vermelho .hist-kpi-ico svg { width: 44px; height: 44px; }
body.lm-logado .hist-kpi-rot { font: 700 21px/1.05 var(--lm-cond); color: var(--lm-ink); }
body.lm-logado .hist-kpi b { font: 800 44px/1 "Segoe UI", Arial, sans-serif; color: var(--lm-ink); }
body.lm-logado .hist-kpi.laranja b { color: #c45c00; }
body.lm-logado .hist-kpi.vermelho b { color: #c3141c; }
body.lm-logado .hist-filtros { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin: 0 0 18px; }
body.lm-logado .panel-body .hist-filtro { display: inline-flex; align-items: center; gap: 12px; margin: 0; font: 700 21px var(--lm-cond); white-space: nowrap; }
body.lm-logado .panel-body .hist-filtro select { width: 260px; font-size: 20px; padding-left: 52px; }
body.lm-logado .panel-body button.hist-consultar { margin-left: auto; min-height: 58px; min-width: 200px; font-size: 26px; }
body.lm-logado .panel-body button.hist-consultar svg { width: 30px; height: 30px; }
body.lm-logado .panel-body .hist-tabela td { font-size: 18px; padding: 10px 14px; }
body.lm-logado .panel-body .hist-tabela th { font-size: 19px; text-transform: none; }
body.lm-logado .hist-data { white-space: nowrap; }
body.lm-logado .hist-evento { display: inline-flex; align-items: center; gap: 12px; font: 700 19px var(--lm-cond); white-space: nowrap; }
body.lm-logado .hist-ev-ico { width: 34px; height: 34px; display: grid; place-items: center; }
body.lm-logado .hist-ev-ico svg { width: 30px; height: 30px; stroke-width: 2.4; }
body.lm-logado .hist-ev-ico.verde { color: #18a330; }
body.lm-logado .hist-ev-ico.azul { color: #1d5ff0; }
body.lm-logado .hist-ev-ico.laranja { color: #f08a06; }
body.lm-logado .hist-ev-ico.vermelho { color: #e3242a; }
body.lm-logado .hist-ev-ico.cinza { color: #5c6f8c; }
body.lm-logado .hist-tabela .badge { min-width: 128px; }
body.lm-logado .hist-rodape { display: flex; align-items: center; gap: 18px; margin-top: 18px; }
body.lm-logado .hist-rodape .mods-info { flex: 1 1 auto; margin: 0; }
body.lm-logado .panel-body button.hist-exportar { min-height: 58px; font-size: 22px; flex: 0 0 auto; }
body.lm-logado .panel-body button.hist-exportar svg { width: 30px; height: 30px; }
body.lm-logado .hist-tecnico { margin-top: 20px; }
body.lm-logado .hist-tecnico .card { margin-top: 12px; }
@media (max-width: 1250px) { body.lm-logado .hist-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } body.lm-logado .hist-rodape { flex-wrap: wrap; } body.lm-logado .panel-body button.hist-consultar { margin-left: 0; } }
@media (max-width: 640px) { body.lm-logado .hist-kpis { grid-template-columns: 1fr; } body.lm-logado .panel-body .hist-filtro { flex-wrap: wrap; white-space: normal; } body.lm-logado .panel-body .hist-filtro select { width: 100%; } }

/* ---------- 12 · Configurações do Proprietário ---------- */
body.lm-logado .panel-body .cfg-ref { display: block; background: none; border: 0; padding: 0; box-shadow: none; margin: 0; }
body.lm-logado .cfg-cab { display: flex; align-items: center; gap: 16px; margin: 0 0 16px; }
body.lm-logado .cfg-cab-ico svg { width: 64px; height: 64px; fill: #1554e4; stroke: #c9dcff; stroke-width: 1; filter: drop-shadow(0 3px 6px #0b3cb455); }
body.lm-logado .panel-body .cfg-cab h2 { margin: 0; font: 800 38px "Segoe UI", Arial, sans-serif; letter-spacing: -.8px; color: var(--lm-ink); }
body.lm-logado .panel-body .cfg-cab .hint { margin: 2px 0 0; font: 500 22px var(--lm-cond); color: var(--lm-ink); }
body.lm-logado .cfg-dados { display: grid; grid-template-columns: 250px minmax(0, 1fr); align-items: center; gap: 0; padding: 18px; border-radius: 18px; background: #fff; border: 1.5px solid #d5deea; box-shadow: 0 4px 14px #0b2a5c14; }
body.lm-logado .cfg-avatar { justify-self: center; width: 170px; height: 170px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 800 64px "Segoe UI", Arial, sans-serif; background: radial-gradient(circle at 35% 30%, #4f9bff, #1554e4 60%, #0b3cb4); border: 6px solid #eef4ff; box-shadow: 0 0 0 2px #c7d8f2, 0 8px 18px #0b3cb455; }
body.lm-logado .cfg-campos { display: grid; border-left: 1.5px solid #d5deea; padding-left: 26px; }
body.lm-logado .panel-body .cfg-campo { display: grid; grid-template-columns: 240px minmax(0, 1fr); align-items: center; gap: 12px; margin: 0; padding: 8px 0; border-bottom: 1px solid #e3e9f2; font: 700 22px var(--lm-cond); color: var(--lm-ink); }
body.lm-logado .panel-body .cfg-campo:last-child { border-bottom: 0; }
body.lm-logado .cfg-campo > span { display: inline-flex; align-items: center; gap: 14px; }
body.lm-logado .cfg-campo > span svg { width: 34px; height: 34px; color: #1554e4; stroke-width: 2; }
body.lm-logado .panel-body .cfg-campo input { width: 100%; border-radius: 24px; font-size: 21px; }
body.lm-logado .cfg-cartoes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 22px; }
body.lm-logado .cfg-cartao-corpo { display: grid; gap: 4px; padding: 18px 22px 20px; }
body.lm-logado .cfg-cartao-corpo b { font: 700 24px var(--lm-cond); color: var(--lm-ink); }
body.lm-logado .cfg-cartao-corpo > span { font: 500 20px var(--lm-cond); color: var(--lm-ink); }
body.lm-logado .cfg-cartao-corpo > span.hint { font-size: 15px; color: var(--lm-muted); }
body.lm-logado .panel-body .cfg-cartao-corpo button { justify-self: center; margin-top: 14px; min-height: 62px; min-width: 70%; font-size: 26px; border-width: 2px; }
body.lm-logado .panel-body .cfg-cartao-corpo button svg { width: 34px; height: 34px; }
body.lm-logado .panel-body .cfg-cartao-corpo button:not(.primary) svg { color: #1554e4; }
body.lm-logado .panel-body .cfg-nota { margin: 14px 0 0; font: 500 15px var(--lm-cond); }
body.lm-logado .panel-body .cfg-salvar { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 16px; background: none; border: 0; padding: 0; }
body.lm-logado .panel-body .cfg-salvar button { min-height: 72px; min-width: 480px; font-size: 32px; border-width: 2px; }
body.lm-logado .panel-body .cfg-salvar button svg { width: 40px; height: 40px; }
body.lm-logado .panel-body .cfg-salvar p { margin: 0; font: 700 17px var(--lm-cond); }
body.lm-logado .panel-body .cfg-salvar p.profile-success { color: #0b7a24; }
body.lm-logado [data-panel=settings] .cfg-acessos { margin-top: 22px; }
body.lm-logado [data-panel=settings] .cfg-acessos.hidden { display: none; }
@media (max-width: 1250px) { body.lm-logado .cfg-dados { grid-template-columns: 1fr; gap: 16px; } body.lm-logado .cfg-campos { border-left: 0; padding-left: 0; } body.lm-logado .panel-body .cfg-campo { grid-template-columns: 1fr; } body.lm-logado .panel-body .cfg-salvar button { min-width: 0; width: 100%; } }
@media (max-width: 640px) { body.lm-logado .cfg-cartoes { grid-template-columns: 1fr; } body.lm-logado .cfg-avatar { width: 110px; height: 110px; font-size: 40px; } }
body.lm-logado .cfg-cartao-corpo > span.hint b { font-size: 15px; }

/* ---------- 06 · 05 · diálogos da Central (sobre a área central; menu lateral continua visível) ---------- */
body.lm-logado dialog.lm-dialogo { position: fixed; inset: var(--lm-top) 14px calc(var(--lm-foot) + 26px) var(--lm-side); width: auto; height: auto; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--lm-ink); overflow: auto; box-shadow: none; }
body.lm-logado dialog.lm-dialogo::backdrop { background: #020a1ccc; }
body.lm-logado dialog.lm-dialogo > form { display: block; margin: 0; padding: 0; background: none; border: 0; }
body.lm-logado dialog.lm-dialogo .lm-banner { margin-bottom: 16px; }
body.lm-logado .lm-dialogo-corpo { background: #fff; border-radius: 20px; padding: 26px 30px 30px; border: 2px solid #c9dcff; box-shadow: 0 0 18px #2369ff66, 0 10px 30px #00000055; }
body.lm-logado dialog.lm-dialogo label { color: var(--lm-ink); }
body.lm-logado dialog.lm-dialogo .hint { color: var(--lm-muted); }
body.lm-logado dialog.lm-dialogo .error { color: #c3141c; font: 700 17px var(--lm-cond); }
/* Nova Atualização */
body.lm-logado .upd-novo { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(0, 1.6fr); gap: 26px 34px; align-items: start; background: linear-gradient(135deg, #f7fbff, #e6f0ff); }
body.lm-logado .upd-ilustra { position: relative; display: grid; place-items: center; min-height: 360px; border-radius: 50%; background: radial-gradient(circle, #c9e2ff 0, #e9f3ff 55%, transparent 70%); }
body.lm-logado .upd-monitor { width: 82%; aspect-ratio: 1.25; border-radius: 18px; background: linear-gradient(180deg, #13306b, #081a3f); border: 10px solid #d9e2ee; box-shadow: 0 10px 0 -2px #9fb0c7, 0 18px 24px #0b2a5c55; display: grid; place-items: center; overflow: hidden; }
body.lm-logado .upd-monitor img { width: 92%; height: auto; }
body.lm-logado .upd-sync { position: absolute; right: 8%; bottom: 22%; width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #6ef07e, #18a330 60%, #0b7a22); box-shadow: 0 6px 14px #0b7a2266; border: 4px solid #fff; }
body.lm-logado .upd-sync svg { width: 52px; height: 52px; fill: none; stroke: #fff; stroke-width: 2.6; }
body.lm-logado .upd-barra { position: absolute; left: 14%; right: 14%; bottom: 6%; height: 26px; border-radius: 14px; background: #fff; border: 2px solid #b9c9df; box-shadow: inset 0 2px 4px #0002; overflow: hidden; }
body.lm-logado .upd-barra i { position: absolute; inset: 3px auto 3px 3px; width: 46%; border-radius: 10px; background: linear-gradient(180deg, #5fe06f, #18a330); }
body.lm-logado .upd-lado { display: grid; gap: 14px; }
body.lm-logado .upd-tit { display: flex; align-items: center; gap: 16px; margin-bottom: 6px; }
body.lm-logado .upd-tit svg { width: 66px; height: 66px; fill: none; stroke: #1554e4; stroke-width: 2.2; flex: 0 0 auto; }
body.lm-logado dialog .upd-tit h2 { margin: 0; font: 800 40px "Segoe UI", Arial, sans-serif; letter-spacing: -.8px; color: var(--lm-ink); }
body.lm-logado dialog .upd-tit p { margin: 4px 0 0; font: 500 22px var(--lm-cond); }
body.lm-logado .upd-linha { display: grid; grid-template-columns: 260px minmax(0, 1fr); align-items: center; gap: 14px; margin: 0; padding: 12px 18px; border-radius: 16px; background: linear-gradient(180deg, #fbfdff, #edf3fb); border: 1.5px solid #bcd6ff; box-shadow: 0 0 0 3px #e3eeff, 0 3px 8px #0b2a5c14; }
body.lm-logado .upd-arquivo { grid-template-columns: auto minmax(0, 1fr) auto; }
body.lm-logado .upd-arq-ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #ffd66a, #f5a400 65%, #d17c00); box-shadow: 0 3px 6px #d17c0066; }
body.lm-logado .upd-arq-ico svg { width: 38px; height: 38px; fill: none; stroke: #5a3300; stroke-width: 1.8; }
body.lm-logado .upd-arq-txt b { display: block; font: 700 23px var(--lm-cond); }
body.lm-logado .upd-arq-txt small { display: block; font: 500 18px var(--lm-cond); color: #2b3a52; word-break: break-all; }
body.lm-logado label.upd-escolher { position: relative; min-height: 54px; padding: 0 22px; font-size: 22px; cursor: pointer; }
body.lm-logado label.upd-escolher svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 2; }
body.lm-logado label.upd-escolher input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
body.lm-logado label.upd-escolher:focus-within { outline: 3px solid #2369ff88; outline-offset: 2px; }
body.lm-logado .upd-rot { display: inline-flex; align-items: center; gap: 16px; font: 700 24px var(--lm-cond); }
body.lm-logado .upd-rot svg { width: 40px; height: 40px; fill: none; stroke: #0d1b33; stroke-width: 1.8; }
body.lm-logado dialog .upd-linha select, body.lm-logado dialog .upd-linha input { width: 100%; font-size: 21px; }
body.lm-logado dialog .upd-detalhes { margin: 0; }
body.lm-logado dialog .upd-detalhes .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
body.lm-logado dialog .upd-detalhes textarea { width: 100%; min-height: 60px; }
body.lm-logado .upd-botoes { grid-column: 1 / -1; display: flex; justify-content: center; gap: 36px; }
body.lm-logado dialog .upd-botoes button { min-height: 78px; min-width: 330px; font-size: 34px; border-width: 2px; }
body.lm-logado dialog .upd-botoes button svg { width: 44px; height: 44px; }
/* Publicar Atualização */
body.lm-logado .pub-versao { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; font: 700 26px var(--lm-cond); }
body.lm-logado .pub-versao-ico { width: 56px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(180deg, #3d8cff, #1554e4 55%, #0b3cb4); box-shadow: inset 0 2px 0 #ffffff55; }
body.lm-logado .pub-versao-ico svg { width: 34px; height: 34px; fill: none; stroke: #fff; stroke-width: 2.2; }
body.lm-logado dialog .pub-versao select { flex: 0 1 460px; font-size: 22px; font-weight: 700; }
body.lm-logado .pub-alvo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 14px; padding: 10px 18px; border-radius: 16px; background: linear-gradient(180deg, #f5f8fc, #e7edf5); border: 1px solid #d3dce9; }
body.lm-logado dialog .pub-alvo label.radio { display: inline-flex; align-items: center; gap: 12px; margin: 0; font: 500 22px var(--lm-cond); cursor: pointer; }
body.lm-logado dialog .pub-alvo input[type=radio] { width: 28px; height: 28px; accent-color: #1554e4; }
body.lm-logado dialog .pub-tabela { border: 1.5px solid #d5deea; border-radius: 14px; overflow: hidden; }
body.lm-logado dialog .pub-tabela td { font-size: 18px; padding: 8px 12px; }
body.lm-logado dialog .pub-tabela th { text-align: center; }
body.lm-logado dialog .pub-tabela th:nth-child(2) { text-align: left; }
body.lm-logado dialog .pub-tabela td.centro { text-align: center; }
body.lm-logado dialog .pub-chk { width: 56px; text-align: center; }
body.lm-logado dialog .pub-chk input { width: 26px; height: 26px; accent-color: #1554e4; }
body.lm-logado .pub-lic { font-weight: 700; color: #1d2b44; }
body.lm-logado .pub-lic.ativa { color: #11942c; }
body.lm-logado .pub-seguranca { display: grid; grid-template-columns: repeat(2, minmax(0, 260px)) minmax(0, 1fr); gap: 12px; align-items: end; margin-top: 14px; }
body.lm-logado dialog .pub-seguranca label { display: grid; gap: 4px; font: 700 16px var(--lm-cond); }
body.lm-logado dialog .pub-seguranca .hint { margin: 0; font: 500 14px var(--lm-cond); }
body.lm-logado .pub-botoes { display: grid; grid-template-columns: 1fr 1fr 1.6fr auto; gap: 18px; margin-top: 16px; }
body.lm-logado dialog .pub-botoes button { min-height: 66px; font-size: 24px; border-width: 2px; }
body.lm-logado dialog .pub-botoes button.pub-publicar { font-size: 32px; min-height: 76px; }
body.lm-logado dialog .pub-botoes button svg { width: 34px; height: 34px; }
@media (max-width: 1250px) { body.lm-logado .upd-novo { grid-template-columns: 1fr; } body.lm-logado .upd-ilustra { display: none; } body.lm-logado .upd-linha { grid-template-columns: 1fr; } body.lm-logado dialog .upd-botoes button { min-width: 0; flex: 1 1 200px; font-size: 26px; } body.lm-logado .pub-botoes { grid-template-columns: 1fr 1fr; } body.lm-logado .pub-alvo { grid-template-columns: 1fr; } body.lm-logado .pub-seguranca { grid-template-columns: 1fr; } }
@media (max-width: 1100px) { body.lm-logado dialog.lm-dialogo { inset: 8px 8px calc(var(--lm-foot) + 18px) 8px; } }
body.lm-logado dialog.lm-dialogo::backdrop { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
body.lm-logado dialog.lm-dialogo input[type=radio], body.lm-logado dialog.lm-dialogo input[type=checkbox] { appearance: auto; -webkit-appearance: auto; background: none; border: 0; box-shadow: none; accent-color: #1554e4; }
body.lm-logado dialog.lm-dialogo input[type=file] { width: 100%; color: var(--lm-ink); background: #fff; border: 1.5px dashed #9fb4d3; border-radius: 12px; padding: 8px 10px; font: 500 16px var(--lm-cond); }
body.lm-logado dialog.lm-dialogo input[type=file]::file-selector-button { margin-right: 10px; padding: 6px 14px; border-radius: 10px; border: 1.5px solid #74b0ff; color: #fff; background: linear-gradient(180deg, #3d8cff, #1554e4); font: 700 16px var(--lm-cond); cursor: pointer; }
body.lm-logado .upd-ilustra { min-height: 300px; }
body.lm-logado .upd-detalhes summary small { color: var(--lm-muted); font-weight: 500; }
body.lm-logado .mods-conteudo { overflow-x: auto; max-width: 100%; border-radius: 14px; }
@media (max-width: 640px) { body.lm-logado .mods-exibir { flex-wrap: wrap; } body.lm-logado .panel-body .mods-categoria select { width: 100%; } body.lm-logado .mods-cab h2 { white-space: normal; } }
@media (max-width: 900px) { body.lm-logado .mods-cab > div:nth-of-type(1) { flex: 1 1 calc(100% - 70px); min-width: 0; } body.lm-logado .mods-cab h2 { white-space: normal; } }
body.lm-logado dialog.lm-dialogo[open] > form { display: flex; flex-direction: column; min-height: 100%; }
body.lm-logado dialog.lm-dialogo .lm-dialogo-corpo { flex: 1 1 auto; }
body.lm-logado .upd-novo { align-content: start; }
body.lm-logado [data-panel=overview] .acoes-ico { gap: 5px; }
body.lm-logado [data-panel=overview] .panel-body button.ico { width: 40px; min-height: 36px; }
body.lm-logado [data-panel=overview] #ovTable td, body.lm-logado [data-panel=overview] #ovTable th { padding-left: 8px; padding-right: 8px; }
@media (max-width: 1560px) { body.lm-logado [data-panel=overview] .ov-actions button { font-size: 16px; gap: 6px; padding: 0 6px; } body.lm-logado [data-panel=overview] .ov-actions button svg { width: 24px; height: 24px; } }

/* 2.4.15 — Recursos Opcionais completos e parâmetros do estabelecimento */
body.lm-logado .mods-cat.cat-mobilidade { background: #d8f5df; color: #0d6a26; border-color: #aee8bd; }
body.lm-logado .mods-cat.cat-pagamentos, body.lm-logado .mods-cat.cat-financeiro, body.lm-logado .mods-cat.cat-outros { background: #e6ebf3; color: #1d3157; border-color: #c9d3e3; }
body.lm-logado .mods-dev.mods-dev-status { margin: 0; padding: 4px 10px; font-size: 14px; white-space: nowrap; }
body.lm-logado .panel-body .parametros-est input[type=number], body.lm-logado .panel-body .parametros-est input[type=text] { width: 100%; min-width: 160px; min-height: 40px; font-size: 16px; }
body.lm-logado .panel-body .parametros-est .badge { display: inline-block; margin: 2px 4px 2px 0; }
body.lm-logado .panel-body .parametros-est .badge.ok { background: #d8f5df; color: #0d6a26; border-color: #aee8bd; }
body.lm-logado .panel-body .parametros-est .badge.warn { background: #fff2d6; color: #8a5300; border-color: #f1d49a; }
body.lm-logado .mods-nota { margin: 8px 4px 0; }
body.lm-logado #modsSubtitulo b { color: #0c3aa6; }
body.lm-logado .mods-cab > div:nth-of-type(1) { flex: 0 1 auto; min-width: 0; }
body.lm-logado .mods-cab .hint { overflow-wrap: anywhere; }
/* referência 11: título, Categoria e busca na mesma linha em telas de computador */
@media (min-width: 1251px) {
  body.lm-logado .mods-cab:has(#modsExibir.hidden) { flex-wrap: nowrap; }
  body.lm-logado .mods-cab:has(#modsExibir.hidden) > div:nth-of-type(1) { flex: 1 1 0; }
  body.lm-logado .mods-cab:has(#modsExibir.hidden) .mods-ferramentas { flex: 0 0 auto; flex-wrap: nowrap; }
  body.lm-logado .mods-cab:has(#modsExibir.hidden) .mods-categoria select { width: 200px; }
  body.lm-logado .mods-cab:has(#modsExibir.hidden) .mods-busca { flex: 0 0 210px; }
}
