/* SoAssist - Acesso Remoto | Painel de administração
   Cores da Só Automação: azul #007CB8 */
:root {
  --azul: #007CB8; --azul-esc: #005E8C; --azul-noite: #072B40; --azul-noite2: #0B3E5C;
  --azul-claro: #E7F3FA; --azul-borda: #BFE0F1; --ciano: #29A9E1;
  --fundo: #F2F6F9; --card: #fff; --borda: #DCE5EC; --texto: #15232F; --muted: #64778A;
  --ok: #138A52; --ok-bg: #E1F5EB; --erro: #C62E3A; --erro-bg: #FDEBEC; --aviso: #A35F00; --aviso-bg: #FFF2DB;
  --raio: 12px; --sombra: 0 1px 2px rgba(7,43,64,.06), 0 4px 16px rgba(7,43,64,.06);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 14px/1.5 "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; color: var(--texto); background: var(--fundo); -webkit-font-smoothing: antialiased; }
.hidden { display: none !important; }
h1 { font-size: 22px; font-weight: 650; margin: 0 0 16px; letter-spacing: -.2px; }
h2 { font-size: 16px; font-weight: 650; margin: 0; }
h3 { font-size: 13px; font-weight: 650; margin: 22px 0 10px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
a { color: var(--azul); }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mono { font-family: "Cascadia Mono", Consolas, monospace; }
.right { text-align: right; }
.erro { color: var(--erro); min-height: 18px; margin: 6px 0; }
.nowrap { white-space: nowrap; }

/* Marca */
.brand { display: flex; align-items: center; gap: 12px; padding: 22px 20px 18px; }
.brand img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 4px 14px rgba(0,124,184,.35); }
.brand b { display: block; font-size: 15px; font-weight: 700; letter-spacing: .1px; line-height: 1.25; }
.brand span { display: block; font-size: 11px; opacity: .7; }
.brand.big { padding: 0 0 20px; }
.brand.big img { width: 52px; height: 52px; }
.brand.big b { font-size: 19px; }

/* Login */
.login-wrap { min-height: 100%; display: grid; grid-template-columns: 1.1fr 1fr; background: var(--fundo); }
.login-hero { background: radial-gradient(1200px 600px at -10% -20%, #29A9E1 0%, transparent 55%), linear-gradient(150deg, #007CB8 0%, #005E8C 45%, #072B40 100%);
  color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login-hero::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(255,255,255,.06); }
.login-hero .brand { padding: 0; }
.login-hero .brand img { width: 56px; height: 56px; box-shadow: 0 8px 30px rgba(0,0,0,.25); }
.login-hero .brand b { font-size: 22px; }
.login-hero h2 { font-size: 34px; line-height: 1.15; font-weight: 700; max-width: 460px; letter-spacing: -.5px; }
.login-hero ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; max-width: 440px; }
.login-hero li { padding-left: 26px; position: relative; opacity: .92; }
.login-hero li::before { content: ""; position: absolute; left: 0; top: 7px; width: 12px; height: 12px; border-radius: 4px; background: #7FD3F7; }
.login-hero .foot { font-size: 12px; opacity: .7; }
.login-side { display: flex; align-items: center; justify-content: center; padding: 32px; }
.login-card { background: var(--card); width: 380px; max-width: 100%; padding: 34px; border-radius: 16px; box-shadow: var(--sombra); border: 1px solid var(--borda); }
.login-card h1 { font-size: 22px; margin-bottom: 4px; }
.login-card .sub { color: var(--muted); margin: 0 0 22px; }
@media (max-width: 860px) { .login-wrap { grid-template-columns: 1fr; } .login-hero { display: none; } }

/* Layout */
.app { display: flex; min-height: 100%; }
.side { width: 240px; background: linear-gradient(180deg, var(--azul-noite2) 0%, var(--azul-noite) 100%); color: #fff; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.side nav { display: flex; flex-direction: column; padding: 8px 12px; gap: 3px; flex: 1; overflow: auto; }
.side nav a { color: #C9DDEA; text-decoration: none; padding: 9px 12px; border-radius: 9px; display: flex; align-items: center; gap: 11px; font-weight: 500; }
.side nav a svg { width: 18px; height: 18px; flex: none; opacity: .85; }
.side nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.side nav a.ativo { background: var(--azul); color: #fff; box-shadow: 0 4px 14px rgba(0,124,184,.45); }
.side nav a.ativo svg { opacity: 1; }
.side-foot { padding: 14px 20px 20px; border-top: 1px solid rgba(255,255,255,.1); }
.side-foot .btn.link { color: #C9DDEA; padding: 3px 0; display: block; }
.side-foot .btn.link:hover { color: #fff; }
.main { flex: 1; padding: 28px 32px; min-width: 0; }

/* Componentes */
.card { background: var(--card); border: 1px solid var(--borda); border-radius: var(--raio); padding: 18px 20px; margin-bottom: 16px; box-shadow: var(--sombra); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { background: var(--card); border: 1px solid var(--borda); border-radius: var(--raio); padding: 16px 18px; box-shadow: var(--sombra); position: relative; overflow: hidden; }
.stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--azul); }
.stat .n { font-size: 28px; font-weight: 700; color: var(--texto); letter-spacing: -.5px; }
.stat .l { color: var(--muted); font-size: 12px; font-weight: 500; }
.stat.alerta::before { background: #F0A020; }
.stat.alerta .n { color: var(--aviso); }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 14px; }
.toolbar .grow { flex: 1; }
.head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.head h1 { margin: 0; }

label { display: block; font-size: 12px; font-weight: 500; color: var(--muted); margin-bottom: 12px; }
label.inline { display: flex; align-items: center; gap: 8px; color: var(--texto); font-size: 14px; font-weight: 400; }
input, select, textarea { font: inherit; color: inherit; display: block; width: 100%; margin-top: 4px; padding: 8px 11px; border: 1px solid var(--borda); border-radius: 8px; background: #fff; transition: border-color .15s, box-shadow .15s; }
input[type=checkbox] { width: auto; display: inline; margin: 0; accent-color: var(--azul); }
input[type=range] { accent-color: var(--azul); padding: 0; border: 0; }
textarea { min-height: 70px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; box-shadow: 0 0 0 3px rgba(0,124,184,.18); border-color: var(--azul); }
.toolbar label { margin: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 16px; }
.span2 { grid-column: span 2; }

.btn { font: inherit; font-weight: 500; border: 1px solid var(--borda); background: #fff; color: var(--texto); padding: 8px 15px; border-radius: 8px; cursor: pointer; white-space: nowrap; text-decoration: none; display: inline-block; transition: background .15s, border-color .15s; }
.btn:hover { border-color: #AFC3D2; background: #F7FAFC; }
.btn.primary { background: var(--azul); border-color: var(--azul); color: #fff; }
.btn.primary:hover { background: var(--azul-esc); border-color: var(--azul-esc); }
.btn.perigo { color: var(--erro); }
.btn.perigo:hover { background: var(--erro-bg); border-color: #F2B8BD; }
.btn.sm { padding: 4px 10px; font-size: 12px; border-radius: 7px; }
.btn.link { background: none; border: 0; color: var(--azul); padding: 0; }
.btn.full { width: 100%; padding: 11px; font-size: 15px; }

table { width: 100%; border-collapse: collapse; background: var(--card); }
.tbl { border: 1px solid var(--borda); border-radius: var(--raio); overflow: auto; background: var(--card); box-shadow: var(--sombra); }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #EDF2F6; vertical-align: middle; }
th { font-size: 11px; font-weight: 650; color: var(--muted); background: #F7FAFC; position: sticky; top: 0; text-transform: uppercase; letter-spacing: .5px; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #F4F9FD; }
tr.click { cursor: pointer; }
td.acoes { text-align: right; white-space: nowrap; }
td.acoes .btn + .btn { margin-left: 4px; }

.badge { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 11px; font-weight: 650; background: #EEF2F6; color: var(--muted); }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.erro { background: var(--erro-bg); color: var(--erro); }
.badge.aviso { background: var(--aviso-bg); color: var(--aviso); }
.badge.azul { background: var(--azul-claro); color: var(--azul-esc); }
.badge.std { background: var(--azul); color: #fff; }
.badge.free { background: #fff; color: var(--azul-esc); border: 1px solid var(--azul-borda); }
.badge.std { background: var(--azul-claro, #e6f2f8); color: var(--azul-esc); border: 1px solid var(--azul-borda); }
.badge.pro { background: var(--azul-esc); color: #fff; letter-spacing: .3px; }
.pro-aviso { background: var(--azul-claro, #e6f2f8); border: 1px solid var(--azul-borda); border-left: 4px solid var(--azul); border-radius: 8px; padding: 10px 14px; margin-bottom: 12px; }
.pro-aviso a { margin-left: 4px; }
.plan-help { margin: 0; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #B8C4CF; margin-right: 6px; }
.dot.on { background: #20B061; box-shadow: 0 0 0 3px rgba(32,176,97,.18); }

.checklist { max-height: 200px; overflow: auto; border: 1px solid var(--borda); border-radius: 8px; padding: 6px 10px; }
.checklist label { margin: 4px 0; }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: 6px 0 6px 16px; border-left: 2px solid var(--azul-borda); position: relative; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 12px; width: 10px; height: 10px; border-radius: 50%; background: var(--azul); box-shadow: 0 0 0 3px #fff; }
.timeline .t { font-weight: 650; }

.empty { text-align: center; color: var(--muted); padding: 32px; }
dl.info { display: grid; grid-template-columns: 180px 1fr; gap: 8px 14px; margin: 0; }
dl.info dt { color: var(--muted); }
dl.info dd { margin: 0; }

/* Modal */
.modal-back { position: fixed; inset: 0; background: rgba(7,43,64,.5); backdrop-filter: blur(2px); display: flex; align-items: flex-start; justify-content: center; padding: 48px 16px; overflow: auto; z-index: 10; }
.modal { background: #fff; border-radius: 16px; width: 680px; max-width: 100%; box-shadow: 0 20px 60px rgba(7,43,64,.35); overflow: hidden; }
.modal header, .modal footer { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; }
.modal header { border-bottom: 1px solid var(--borda); background: linear-gradient(90deg, var(--azul-claro), #fff); }
.modal footer { border-top: 1px solid var(--borda); justify-content: flex-end; gap: 8px; background: #FAFCFD; }
.modal-body { padding: 18px 22px 6px; }
.modal .erro { padding: 0 22px; }

.toast { position: fixed; right: 24px; bottom: 24px; background: var(--azul-noite); color: #fff; padding: 12px 18px; border-radius: 10px; z-index: 20; box-shadow: 0 10px 30px rgba(0,0,0,.25); border-left: 4px solid var(--ciano); }
.toast.erro { background: var(--erro); border-left-color: #fff; }

/* Faixa de plano */
.plan-note { background: var(--azul-claro); border: 1px solid var(--azul-borda); color: var(--azul-esc); padding: 10px 14px; border-radius: 10px; font-size: 13px; }

/* Player de gravações */
.player canvas { display: block; width: 100%; height: auto; background: #000; border-radius: 10px; }
.pctl { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.pctl .grow { flex: 1; }
.pbar { position: relative; margin-top: 8px; }
.pbar input[type=range] { width: 100%; }
#rec-marks { position: relative; height: 8px; }
.pmark { position: absolute; top: 0; width: 3px; height: 8px; margin-left: -1px; background: #F0A020; border-radius: 1px; }
.timeline li.click { cursor: pointer; border-radius: 6px; }
.timeline li.click:hover { background: var(--azul-claro); }
.pctl select { width: auto; min-width: 70px; }
.pctl #rec-time { white-space: nowrap; }

/* Atualização dos agentes (1.4) */
.card.upd { display: flex; flex-direction: column; gap: 8px; }
.upd-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.upd-bar { height: 8px; border-radius: 6px; background: #e3ecf2; overflow: hidden; }
.upd-bar span { display: block; height: 100%; background: linear-gradient(90deg, #007CB8, #29A9E1); border-radius: 6px; }
.txt-erro { color: #d62839; font-weight: 600; }
#nav a.hidden { display: none; }

/* Armazenamento (1.4) */
.disk-bar { position: relative; height: 22px; border-radius: 8px; background: #e3ecf2; overflow: hidden; margin: 10px 0 6px; }
.disk-bar .used { position: absolute; left: 0; top: 0; bottom: 0; background: #b8c4cf; }
.disk-bar .grav { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #005E8C, #007CB8); }
.legend { display: flex; gap: 16px; margin-top: 6px; color: #64778a; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.lg-rec { background: #007CB8; } .lg-used { background: #b8c4cf; } .lg-free { background: #e3ecf2; border: 1px solid #cfdbe4; }
.mini-bar { height: 8px; border-radius: 4px; background: #e3ecf2; overflow: hidden; }
.mini-bar span { display: block; height: 100%; background: #007CB8; }
svg.chart { width: 100%; height: auto; display: block; }
.card.aviso-atencao { border-left: 4px solid #F0A020; background: #fff8ea; }
.card.aviso-critico { border-left: 4px solid #d62839; background: #fdecee; color: #7a1020; }

/* Conectar por ID (1.4) */
.connect-id { display: flex; gap: 8px; margin-left: auto; margin-right: 8px; }
.connect-id input { width: 220px; font-size: 15px; letter-spacing: .5px; }

/* Acesso remoto pelo navegador (1.4) */
body.rm-open { overflow: hidden; }
#remote { position: fixed; inset: 0; z-index: 900; background: #0e1a24; display: flex; flex-direction: column; color: #15232f; }
#remote:fullscreen { width: 100vw; height: 100vh; }
.rm-bar { display: flex; align-items: center; gap: 12px; background: #fff; border-bottom: 1px solid #dce5ec; padding: 6px 12px; min-height: 54px; box-shadow: 0 2px 8px rgba(7,43,64,.12); }
.rm-title { display: flex; align-items: center; gap: 10px; min-width: 200px; }
.rm-title b { font-size: 14px; }
.rm-sub { font-size: 12px; color: #64778a; display: flex; align-items: center; gap: 6px; }
.rm-dot { width: 10px; height: 10px; border-radius: 50%; background: #b8c4cf; flex: none; }
.rm-dot.on { background: #20b061; box-shadow: 0 0 0 3px rgba(32,176,97,.2); }
.rm-pill { display: inline-block; background: #005E8C; color: #fff; font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 9px; letter-spacing: .5px; }
.rm-tools { display: flex; align-items: center; gap: 2px; flex: 1; justify-content: center; }
.rm-tools button, .rm-chat-h button { position: relative; width: 40px; height: 38px; border: 0; border-radius: 8px; background: transparent; color: #15232f; cursor: pointer; display: grid; place-items: center; }
.rm-tools button svg, .rm-chat-h button svg, .rm-disc svg { width: 20px; height: 20px; }
.rm-tools button:hover:not(:disabled) { background: #e7f3fa; color: #007CB8; }
.rm-tools button.on { background: #cfe8f5; color: #007CB8; }
.rm-tools button[data-rm="rec"].on { color: #d62839; background: #fdecee; }
.rm-tools button:disabled { color: #b8c4cf; cursor: default; }
.rm-sep { width: 1px; height: 24px; background: #dce5ec; margin: 0 6px; }
.rm-badge { position: absolute; top: 3px; right: 3px; min-width: 16px; height: 16px; border-radius: 8px; background: #d62839; color: #fff; font-size: 10px; font-style: normal; font-weight: 700; display: grid; place-items: center; padding: 0 3px; }
.rm-disc { display: flex; align-items: center; gap: 6px; border: 0; background: transparent; color: #d62839; font-weight: 700; font-size: 14px; cursor: pointer; padding: 8px 12px; border-radius: 8px; }
.rm-disc:hover { background: #fdecee; }
.rm-free { background: #005E8C; color: #fff; font-size: 13px; font-weight: 600; padding: 6px 14px; display: flex; align-items: center; gap: 10px; }
.rm-free .rm-pill { background: #fff; color: #005E8C; }
.rm-free.warn { background: #d62839; }
.rm-main { flex: 1; display: flex; min-height: 0; }
.rm-stage { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; outline: none; background: #1d2732; }
.rm-stage.rm-scroll { overflow: auto; align-items: flex-start; justify-content: flex-start; }
.rm-stage:focus-visible { box-shadow: inset 0 0 0 2px #29A9E1; }
.rm-canvas { display: block; background: #000; cursor: default; image-rendering: auto; box-shadow: 0 6px 30px rgba(0,0,0,.45); }
.rm-stage.rm-noinput .rm-canvas { cursor: not-allowed; }
.rm-wait { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; color: #e7f3fa; font-size: 15px; background: #1d2732; }
.rm-wait.hidden { display: none; }
.rm-spin { width: 42px; height: 42px; border-radius: 50%; border: 4px solid rgba(255,255,255,.2); border-top-color: #29A9E1; animation: rmspin 1s linear infinite; }
@keyframes rmspin { to { transform: rotate(360deg); } }
.rm-menu { position: absolute; top: 8px; z-index: 5; background: #fff; border-radius: 10px; box-shadow: 0 10px 30px rgba(7,43,64,.3); padding: 6px; display: flex; flex-direction: column; min-width: 240px; }
.rm-menu.hidden { display: none; }
.rm-menu button { text-align: left; border: 0; background: transparent; padding: 9px 12px; border-radius: 7px; font-size: 14px; cursor: pointer; color: #15232f; }
.rm-menu button:hover { background: #e7f3fa; }
.rm-menu button.on { color: #007CB8; font-weight: 700; }
.rm-menu button.on::before { content: "\2713  "; }
.rm-chat { width: 320px; background: #fff; border-left: 1px solid #dce5ec; display: flex; flex-direction: column; }
.rm-chat.hidden { display: none; }
.rm-chat-h { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 14px; font-weight: 700; border-bottom: 1px solid #dce5ec; }
.rm-chat-log { flex: 1; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 8px; background: #f2f6f9; }
.rm-msg { background: #fff; border: 1px solid #dce5ec; border-radius: 10px; padding: 8px 10px; font-size: 13px; max-width: 90%; }
.rm-msg span { color: #64778a; font-size: 11px; }
.rm-msg.eu { align-self: flex-end; background: #e7f3fa; border-color: #bfe0f1; }
.rm-msg.sys { align-self: center; background: transparent; border: 0; color: #64778a; font-size: 12px; text-align: center; }
.rm-chat-f { display: flex; gap: 6px; padding: 10px; border-top: 1px solid #dce5ec; }
.rm-chat-f input { flex: 1; }
.rm-status { display: flex; gap: 16px; align-items: center; background: #fff; border-top: 1px solid #dce5ec; padding: 5px 14px; font-size: 12px; color: #64778a; }
.rm-rec { color: #d62839; font-weight: 700; }
.rm-rec.hidden { display: none; }
.rm-stats { margin-left: auto; }
.w35 { width: 35%; }

/* Arquivos pelo navegador (1.5) */
.rm-files { width: 400px; background: #fff; border-left: 1px solid #dce5ec; display: flex; flex-direction: column; min-height: 0; }
.rm-files.hidden { display: none; }
.rm-files.drop { box-shadow: inset 0 0 0 3px #29A9E1; background: #f2f9fd; }
.rm-f-bar { display: flex; gap: 4px; padding: 8px; border-bottom: 1px solid #dce5ec; align-items: center; }
.rm-f-bar button, .rm-f-act button { width: 32px; height: 32px; border: 0; border-radius: 7px; background: transparent; cursor: pointer; color: #15232f; display: grid; place-items: center; font-size: 14px; }
.rm-f-bar button svg { width: 18px; height: 18px; }
.rm-f-bar button:hover, .rm-f-act button:hover { background: #e7f3fa; color: #007CB8; }
.rm-f-path { flex: 1; min-width: 0; font-size: 13px; padding: 6px 8px; }
.rm-f-list { flex: 1; overflow-y: auto; min-height: 0; }
.rm-f-empty { padding: 24px 16px; color: #64778a; text-align: center; font-size: 13px; }
.rm-f-empty.erro { color: #d62839; }
.rm-f-row { display: flex; align-items: center; gap: 8px; padding: 5px 10px; border-bottom: 1px solid #f0f4f7; font-size: 13px; cursor: default; user-select: none; }
.rm-f-row:hover { background: #f2f9fd; }
.rm-f-ic svg { width: 18px; height: 18px; color: #007CB8; display: block; }
.rm-f-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rm-f-size { color: #64778a; font-size: 12px; white-space: nowrap; }
.rm-f-act { display: flex; opacity: 0; }
.rm-f-row:hover .rm-f-act { opacity: 1; }
.rm-f-act button { width: 26px; height: 26px; }
.rm-f-act button svg { width: 15px; height: 15px; }
.rm-f-xfers { max-height: 180px; overflow-y: auto; border-top: 1px solid #dce5ec; }
.rm-x { padding: 6px 10px; border-bottom: 1px solid #f0f4f7; font-size: 12px; }
.rm-x-n { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rm-x-bar { height: 5px; border-radius: 3px; background: #e3ecf2; margin: 4px 0; overflow: hidden; }
.rm-x-bar span { display: block; height: 100%; width: 0; background: #007CB8; }
.rm-x.ok .rm-x-bar span { background: #20b061; } .rm-x.erro .rm-x-bar span { background: #d62839; }
.rm-x-s { color: #64778a; } .rm-x.erro .rm-x-s { color: #d62839; }
.rm-f-hint { padding: 6px 10px; font-size: 11px; color: #8796a5; border-top: 1px solid #dce5ec; }

/* Dispositivos estilo LogMeIn (1.5) */
table.devs td, table.devs th { padding-top: 7px; padding-bottom: 7px; vertical-align: middle; }
table.devs .ck { width: 30px; text-align: center; }
table.devs td.c { text-align: center; }
tr.grp td { background: #e8f1f7; border-top: 2px solid #cfe1ec; cursor: pointer; font-size: 14px; }
tr.grp:hover td { background: #deebf4; }
.grp-t { display: inline-flex; align-items: center; gap: 4px; }
.grp-t .caret { width: 16px; height: 16px; transform: rotate(90deg); transition: transform .15s; color: #007CB8; }
tr.grp.fechado .caret { transform: rotate(0); }
.grp-n { color: #64778a; margin: 0 10px; font-size: 13px; }
.grp-edit { float: right; font-size: 13px; }
tr.dev.inativo td { opacity: .55; }
.hl { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-weight: 800; font-size: 13px; color: #fff; }
.hl.ok { background: #20b061; } .hl.warn { background: #F0A020; } .hl.crit { background: #d62839; } .hl.info { background: #007CB8; font-family: Georgia, serif; }
.st svg { width: 22px; height: 22px; color: #9aa8b5; }
.st.on svg { color: #007CB8; }
.dev-nome { font-weight: 700; cursor: pointer; }
.direct { white-space: nowrap; }
.direct button, button.ico { width: 30px; height: 30px; border: 0; border-radius: 7px; background: transparent; color: #007CB8; cursor: pointer; display: inline-grid; place-items: center; }
.direct button svg, button.ico svg { width: 19px; height: 19px; }
.direct button:hover:not(:disabled), button.ico:hover { background: #e7f3fa; }
.direct button:disabled { color: #c5cfd8; cursor: default; }
button.ico { color: #9aa8b5; } button.ico.on { color: #007CB8; }
.txt-ok { color: #20b061; font-weight: 600; }
.lote { position: relative; }
.lote-menu { position: absolute; top: 100%; left: 0; z-index: 20; margin-top: 4px; background: #fff; border-radius: 10px; box-shadow: 0 10px 30px rgba(7,43,64,.25); padding: 6px; min-width: 250px; display: flex; flex-direction: column; }
.lote-menu.hidden { display: none; }
.lote-menu button { text-align: left; border: 0; background: transparent; padding: 9px 12px; border-radius: 7px; cursor: pointer; font-size: 14px; color: #15232f; }
.lote-menu button:hover { background: #e7f3fa; }
.lote-menu button.perigo { color: #d62839; }
.nav-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #F0A020; color: #fff; font-style: normal; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.nav-badge.crit { background: #d62839; }
.nav-badge.hidden { display: none; }
/* Informações do sistema */
.info-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
ul.motivos { margin: 0 0 12px; padding-left: 20px; font-size: 13px; }
ul.motivos li.critico { color: #d62839; font-weight: 600; } ul.motivos li.atencao { color: #a06a00; } ul.motivos li.info { color: #64778a; }
.ibar { margin-bottom: 10px; }
.ibar-l { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 3px; }
.ibar-l span { color: #64778a; }
.mini-bar.warn span { background: #F0A020; } .mini-bar.crit span { background: #d62839; }
.info-acoes { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }
p.nota { white-space: pre-wrap; background: #fff8ea; border: 1px solid #f3dfb2; padding: 8px 10px; border-radius: 8px; font-size: 13px; }
/* Contratos */
.contrato-head { display: flex; gap: 28px; flex-wrap: wrap; background: #f2f6f9; border-radius: 10px; padding: 12px 16px; margin-bottom: 8px; }
.span3 { grid-column: 1 / -1; }
details { margin: 10px 0; } details summary { cursor: pointer; color: #007CB8; }
/* Avisos */
.avisos { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.aviso { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid #dce5ec; border-left: 4px solid #007CB8; border-radius: 10px; padding: 12px 14px; }
.aviso.critico { border-left-color: #d62839; } .aviso.atencao { border-left-color: #F0A020; }
.aviso.novo { box-shadow: 0 2px 10px rgba(7,43,64,.08); }
.aviso-c { flex: 1; min-width: 0; }
.aviso-t { font-weight: 700; }
.aviso-d { font-size: 13px; color: #3b4b59; margin-top: 2px; }
.aviso-m { font-size: 12px; color: #8796a5; margin-top: 4px; }
.aviso-a { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.tabs-mini { display: flex; gap: 4px; background: #e8f1f7; padding: 4px; border-radius: 9px; }
.tabs-mini a { padding: 6px 14px; border-radius: 7px; text-decoration: none; color: #3b4b59; font-weight: 600; font-size: 13px; }
.tabs-mini a.on { background: #fff; color: #007CB8; box-shadow: 0 1px 4px rgba(7,43,64,.12); }
.modal.wide { width: 920px; }

/* Inventário, gráficos e ações remotas (1.5) */
td.load { min-width: 150px; }
.ld { display: flex; align-items: center; gap: 6px; font-size: 11px; line-height: 1.1; margin: 1px 0; }
.ld-l { width: 26px; color: #64778a; font-weight: 600; }
.ld .mini-bar { flex: 1; height: 6px; min-width: 60px; }
.ld-v { width: 30px; text-align: right; color: #15232f; }
.mini-bar.warn span { background: #e08a00; }
.mini-bar.crit span { background: #d62839; }
h2.sec { margin: 26px 0 10px; font-size: 18px; display: flex; align-items: baseline; gap: 10px; }
.stat .n-s { font-size: 60%; color: #64778a; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 4px; }
.chip { background: #e7f3fa; border: 1px solid #cfe8f5; border-radius: 14px; padding: 3px 10px; font-size: 12px; color: #15232f; }
.chip b { color: #005E8C; }
ul.plist { list-style: none; padding: 0; margin: 4px 0 8px; }
ul.plist li { padding: 5px 0; border-bottom: 1px solid #eef3f7; font-size: 13px; }
ul.plist li a, .tbl a[data-act="dev-info"] { cursor: pointer; color: #007CB8; font-weight: 600; }
.chart-head { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.chart-head h3 { margin: 0; }
.lg-mem { background: #e08a00; }
.lg-cpumax { background: rgba(0, 124, 184, .3); }
.info-acoes.top { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; justify-content: flex-start; }
.info-acoes .btn svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; }
.cmd-out { margin-top: 12px; }
.cmd-st { margin-bottom: 6px; }
.cmd-out pre, pre.cmd-pre { background: #0e1a24; color: #d7e6f0; border-radius: 8px; padding: 12px; max-height: 360px; overflow: auto; font-size: 12px; white-space: pre-wrap; word-break: break-word; margin: 0; }
.cmd-quick { margin: 6px 0; color: #64778a; }
.cmd-quick a { color: #007CB8; cursor: pointer; }
td.cmd-txt { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
textarea.mono { font-family: Consolas, "Cascadia Mono", monospace; font-size: 13px; }
table.devs td, table.devs th { padding-left: 8px; padding-right: 8px; }
table.devs th { white-space: nowrap; }
table.devs .dev-nome { white-space: nowrap; }
table.devs td.load { min-width: 130px; }
