/* Hub Microtech — mesmo padrão visual do Portal de Chamados / Portal de Projetos */
:root{
  --sidebar:#061326;--main:#f7f9fc;--card:#fff;--ink:#0f172a;--muted:#667085;--line:#e1e7ef;--line-2:#eef2f7;
  --yellow:#f6c900;--yellow-2:#fff4c7;--teal:#0f766e;--red:#d92d20;--font:Inter,Segoe UI,Arial,sans-serif;
  --c-atendimento:#2563eb;--c-gestao:#7c3aed;--c-ciber:#b89400;--c-ferramentas:#0f766e;
}
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;background:var(--main);font-family:var(--font);color:var(--ink);font-size:14px}
button,input,select,textarea{font-family:inherit;font-size:14px}
button{cursor:pointer}
svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}
a{color:inherit}
.muted{color:var(--muted)}.pad{padding:28px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

/* barra lateral */
.side{position:fixed;left:0;top:0;bottom:0;width:264px;background:linear-gradient(180deg,var(--sidebar),#08182d 62%,#102038);color:#fff;padding:24px 16px;display:flex;flex-direction:column;z-index:20;box-shadow:16px 0 34px rgba(2,8,23,.2)}
.brand{display:flex;align-items:center;gap:12px;padding:0 6px 22px}
.brand img{width:46px;height:46px;object-fit:contain;filter:drop-shadow(0 8px 18px rgba(246,201,0,.2))}
.brand b{display:block;color:#d7d7d7;font-weight:400;font-size:21px;letter-spacing:.15em;line-height:1}
.brand span{display:inline-block;margin-top:7px;font-size:11px;font-weight:800;letter-spacing:.18em;color:#0f172a;background:var(--yellow);border-radius:99px;padding:2px 9px}
.nav{display:grid;gap:4px}
.nav-sep{font-size:11px;font-weight:700;letter-spacing:.1em;color:#8193ad;padding:16px 14px 6px}
.nav a{height:48px;border-radius:10px;color:#e5edf7;display:flex;align-items:center;gap:14px;padding:0 14px;font-size:15px;font-weight:600;text-decoration:none;position:relative}
.nav a:hover{background:rgba(255,255,255,.07)}
.nav a.on{background:linear-gradient(90deg,rgba(255,255,255,.11),rgba(255,255,255,.055));color:var(--yellow)}
.nav a.on::after{content:"";position:absolute;right:0;top:9px;width:4px;height:30px;background:var(--yellow);border-radius:99px}
.nav a em{margin-left:auto;font-style:normal;font-size:12px;font-weight:700;background:rgba(255,255,255,.12);border-radius:99px;padding:1px 8px}
.me{margin-top:auto;display:flex;align-items:center;gap:10px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08);border-radius:12px;padding:10px}
.av{width:38px;height:38px;border-radius:50%;background:var(--yellow);color:#0f172a;display:grid;place-items:center;font-weight:800;font-size:13px;flex:none}
.me div{min-width:0;flex:1}.me b{display:block;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.me small{display:block;color:#aab8cc;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.me button{width:34px;height:34px;border-radius:8px;border:0;background:rgba(255,255,255,.08);color:#e5edf7;display:grid;place-items:center}
.me button:hover{background:rgba(255,255,255,.16)}.me button svg{width:17px;height:17px}

/* área principal */
.main{margin-left:264px;min-height:100vh;padding:30px 36px 48px;max-width:1460px}
.head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:22px}
.head h1{margin:0;font-size:26px;letter-spacing:-.02em}
.head p{margin:4px 0 0;color:var(--muted)}
.busca{position:relative;width:340px;max-width:100%}
.busca svg{position:absolute;left:12px;top:11px;width:18px;height:18px;color:#98a2b3}
.busca input{width:100%;height:42px;border:1px solid #cfd8e5;border-radius:10px;padding:0 12px 0 38px;background:#fff;outline:none}
input:focus,select:focus,textarea:focus{border-color:#caa600;box-shadow:0 0 0 3px rgba(246,201,0,.16);outline:none}

/* avisos */
.avisos{display:grid;gap:10px;margin-bottom:22px}
.aviso{display:flex;gap:12px;align-items:flex-start;background:#eff6ff;border:1px solid #bfdbfe;color:#1e3a8a;border-radius:12px;padding:12px 16px}
.aviso.alerta{background:#fffbeb;border-color:#fde68a;color:#92400e}
.aviso.critico{background:#fef3f2;border-color:#fecdca;color:#912018}
.aviso svg{margin-top:1px}.aviso b{display:block;font-size:14.5px}
.aviso p{margin:3px 0 0;white-space:pre-wrap;line-height:1.45}
.aviso small{display:block;margin-top:4px;opacity:.75;font-size:12px}

/* cards dos sistemas */
.secao{margin-bottom:26px}
.secao h2{font-size:13px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin:0 0 12px;display:flex;align-items:center;gap:8px}
.secao h2 i{width:8px;height:8px;border-radius:50%;background:var(--c)}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:14px}
.sis{display:flex;gap:14px;align-items:flex-start;background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px;text-decoration:none;box-shadow:0 8px 20px rgba(15,23,42,.035);transition:.15s;position:relative;min-height:98px}
.sis:hover{border-color:var(--yellow);box-shadow:0 12px 26px rgba(15,23,42,.07);transform:translateY(-1px)}
.sis:focus-visible{outline:3px solid #0f2742;outline-offset:2px}
.sis .ic{width:46px;height:46px;border-radius:12px;display:grid;place-items:center;background:color-mix(in srgb,var(--c) 12%,#fff);color:var(--c);flex:none}
.sis .ic svg{width:23px;height:23px}
.sis b{display:block;font-size:15.5px;margin:1px 26px 4px 0}
.sis p{margin:0;color:var(--muted);line-height:1.4;font-size:13.5px}
.sis small{display:block;margin-top:8px;font-size:12px;color:#98a2b3}
.sis .seta{position:absolute;right:14px;top:14px;width:16px;height:16px;color:#98a2b3}
.sis:hover .seta{color:#b89400}
.vazio{background:#fff;border:1px dashed #cfd8e5;border-radius:14px;padding:34px;text-align:center;color:var(--muted)}

/* administração */
.card{background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 8px 20px rgba(15,23,42,.035);margin-bottom:18px;overflow:hidden}
.card-h{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;border-bottom:1px solid var(--line-2)}
.card-h h3{margin:0;font-size:16px}
.card-b{padding:16px 18px}
.btn{height:38px;border-radius:9px;border:1px solid #cfd8e5;background:#fff;color:#1f2937;padding:0 14px;display:inline-flex;align-items:center;gap:8px;font-weight:600;white-space:nowrap}
.btn:hover{border-color:#98a2b3}.btn svg{width:16px;height:16px}
.btn.pri{background:var(--yellow);border-color:var(--yellow);color:#111827}.btn.pri:hover{filter:brightness(.96)}
.btn.sm{height:32px;padding:0 10px;font-size:13px}
.btn.dng{color:var(--red);border-color:#fecdca}
.btn:disabled{opacity:.5;cursor:not-allowed}
.tab-wrap{overflow:auto}
table.t{width:100%;border-collapse:collapse}
.t th{font-size:12.5px;text-align:left;color:var(--muted);font-weight:600;padding:10px 14px;border-bottom:1px solid var(--line);background:#fafbfc;white-space:nowrap;position:sticky;top:0;z-index:1}
.t td{padding:10px 14px;border-bottom:1px solid var(--line-2);vertical-align:middle}
.t tr:last-child td{border-bottom:0}
.t tr.off td{color:#98a2b3}
.nw{white-space:nowrap}
.tag{display:inline-block;font-size:12px;font-weight:600;border-radius:6px;padding:2px 8px;background:#f2f4f7;color:#344054;white-space:nowrap}
.tag.y{background:var(--yellow-2);color:#7a5b00}.tag.g{background:#ecfdf3;color:#067647}.tag.r{background:#fef3f2;color:#b42318}.tag.b{background:#eff6ff;color:#1d4ed8}
.acoes{display:flex;gap:6px;justify-content:flex-end;flex-wrap:wrap}
.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12.5px;color:#475467}

/* matriz de acessos */
.matriz th.sis-col{writing-mode:vertical-rl;transform:rotate(180deg);height:200px;vertical-align:bottom;text-align:left;padding:10px 6px;font-size:12.5px;color:#344054}
.matriz td.ck{text-align:center;padding:6px}
.matriz td.ck input{width:18px;height:18px;cursor:pointer;accent-color:#0f766e}
.matriz td.nome{white-space:nowrap;position:sticky;left:0;background:#fff;z-index:1}
.matriz th:first-child{position:sticky;left:0;z-index:2}
.matriz tr:hover td{background:#fafcff}

/* formulários */
.form{display:grid;gap:14px}
.form .l2{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.form .l3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:14px}
.form label{display:grid;gap:6px;font-weight:600;font-size:13.5px}
.form input,.form select,.form textarea{height:40px;border:1px solid #cfd8e5;border-radius:9px;padding:0 12px;background:#fff;font-weight:400}
.form textarea{height:auto;min-height:80px;padding:10px 12px;resize:vertical}
.form .chk{display:flex;align-items:center;gap:8px;font-weight:400}
.form .chk input{width:17px;height:17px;accent-color:#0f766e}
.form .chks{display:flex;flex-wrap:wrap;gap:8px 18px}
.form .fim{display:flex;justify-content:flex-end;gap:8px}
.erro{background:#fef3f2;border:1px solid #fecdca;color:#b42318;border-radius:9px;padding:9px 12px}
.dica{font-size:12.5px;color:var(--muted);font-weight:400}
.ic-prev{display:inline-grid;place-items:center;width:40px;height:40px;border-radius:10px;background:#f2f4f7;color:#344054}

.toast{position:fixed;right:24px;bottom:24px;background:#0f172a;color:#fff;border-radius:10px;padding:12px 16px;font-weight:600;box-shadow:0 14px 30px rgba(0,0,0,.25);opacity:0;transform:translateY(8px);transition:.2s;pointer-events:none;z-index:50;max-width:420px}
.toast.on{opacity:1;transform:none}

@media(max-width:900px){
  .side{position:static;width:auto;flex-direction:row;flex-wrap:wrap;align-items:center;gap:8px;padding:12px}
  .brand{padding:0 8px 0 0}.nav{display:flex;flex-wrap:wrap}.nav-sep{display:none}.nav a{height:38px}.me{margin:0 0 0 auto}
  .main{margin-left:0;padding:20px 16px}.head{flex-direction:column;align-items:stretch}.busca{width:100%}
  .form .l2,.form .l3{grid-template-columns:1fr}
}
.cat-atendimento{--c:var(--c-atendimento)}.cat-gestao{--c:var(--c-gestao)}.cat-ciberseguranca{--c:var(--c-ciber)}.cat-ferramentas{--c:var(--c-ferramentas)}
.hide{display:none!important}
.mt{margin-top:14px}
.acoes{flex-wrap:nowrap}
.head .acoes{align-items:center}
.head select{height:42px;border:1px solid #cfd8e5;border-radius:10px;padding:0 10px;background:#fff}
.head .busca{width:300px}
