:root{--bg:#061327;--bg-deep:#031021;--panel:#071d33;--panel2:#07172c;--head:#0b2d4b;--border:#1279a2;--line:rgba(76,181,227,.21);--cyan:#12bfe9;--cyan-lt:#61e7ff;--purple:#392479;--blue:#1379d6;--green:#22e4ac;--yellow:#ffd44f;--red:#ff5579;--white:#f4f9ff;--muted:#93adc3;--muted2:#6c8ba7;--shadow:0 10px 35px rgba(0,0,0,.12)}
*{box-sizing:border-box}html{min-height:100%;background:#050e1a}body{margin:0;color:var(--white);font:13px/1.45 Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}body.dashboard-page{background:radial-gradient(ellipse at 50% -20%,#14275a 0,transparent 40%),linear-gradient(145deg,#05142c 0%,#031326 55%,#08122b 100%);min-height:100vh}button,input,select{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline:2px solid var(--cyan-lt);outline-offset:3px}a{color:inherit;text-decoration:none}h1,h2,p{margin:0}.dashboard-shell{max-width:2100px;margin:0 auto;padding:13px 14px 9px}.topbar{background:linear-gradient(115deg,#0a1638,#061e38 58%,#0b1d41);border-bottom:1px solid rgba(53,152,215,.55);min-height:92px;display:flex;align-items:center;gap:24px;padding:10px 24px;border-radius:8px 8px 0 0;box-shadow:0 8px 24px rgba(0,0,0,.16)}.brand{display:flex;align-items:center;min-width:210px;gap:12px;padding-right:24px;border-right:1px solid #4d7690}.brand-word{font-size:29px;letter-spacing:-1.6px;line-height:.93;font-weight:800;color:white;display:flex;flex-direction:column}.brand-word small{font-size:9px;font-weight:800;letter-spacing:3px;color:#35c0ef;margin:7px 0 0 4px}.connect-mark{height:42px;width:48px;position:relative;display:inline-block;flex:none}.connect-mark span{width:29px;height:29px;position:absolute;top:6px;border:9px solid var(--cyan);border-radius:13px;transform:rotate(-42deg)}.connect-mark span:first-child{left:2px;border-right-color:transparent;border-bottom-color:#5a3eb2}.connect-mark span:last-child{right:1px;border-left-color:transparent;border-top-color:#5a3eb2}.head-title{min-width:270px;flex:1}.head-title h1{font-weight:850;font-size:clamp(18px,1.65vw,27px);letter-spacing:.3px;white-space:nowrap}.head-title p{font-size:11px;letter-spacing:4px;color:#91bbd7;margin-top:2px}.health-pill{display:flex;align-items:center;gap:10px;flex:none;padding:9px 16px;background:#073d3e;border:1px solid #05a897;border-radius:100px;white-space:nowrap}.health-check{background:var(--green);color:#063c35;display:grid;place-items:center;border-radius:50%;font-size:18px;font-weight:900;width:29px;height:29px}.health-pill strong{font-size:13px;color:#4df4c7;display:block}.health-pill small{font-size:10px;color:#d6f3eb}.header-stats{display:flex;gap:17px;white-space:nowrap;align-items:center}.header-stats span,.status-strip span{display:flex;align-items:center;gap:5px;font-size:11px}.header-stats b{font-size:15px}.dot{display:inline-block;height:10px;width:10px;border-radius:50%;flex:none;background:var(--muted)}.dot.ok{background:var(--green);box-shadow:0 0 10px #13d99a5a}.dot.warning{background:var(--yellow);box-shadow:0 0 10px #f4ce4c48}.dot.critical{background:var(--red);box-shadow:0 0 10px #ff557944}.dot.paused{background:var(--muted2)}.clock{border-left:1px solid #426c91;padding-left:19px;text-align:right;min-width:118px}.clock b{font-size:25px;letter-spacing:-.6px}.clock small{display:block;color:var(--muted);font-size:10px}.toolstrip{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 10px 12px}.scope,.toolstrip-actions{display:flex;align-items:center;gap:12px}.scope{color:var(--muted);font-size:12px}.scope-icon{display:grid;place-items:center;background:#10354f;width:30px;height:30px;border-radius:8px;color:var(--cyan-lt);font-size:19px}.scope select{border:1px solid #1a6d94;color:white;background:#0b2c45;padding:7px 29px 7px 11px;border-radius:7px;min-width:184px}.scope strong{color:var(--white);font-weight:800}.client-lock{font-size:11px;color:#74d5bc}.btn{background:#0b2846;border:1px solid #1f638a;color:var(--white);padding:7px 12px;border-radius:7px;font-weight:700}.btn:hover{background:#133e61}.btn.primary{background:linear-gradient(90deg,#0a9fcb,#1a6edc);border:0}.profile{font-size:11px;color:#abc1d8}.demo-badge{background:rgba(249,197,55,.11);color:#ffdc7b;border:1px solid rgba(249,197,55,.42);font-size:10px;letter-spacing:.5px;padding:5px 9px;border-radius:6px;font-weight:800}.dashboard-grid{display:grid;grid-template-columns:minmax(280px,1.03fr) minmax(430px,1.52fr) minmax(400px,1.64fr);gap:12px;align-items:stretch}.left-column,.right-column{display:flex;flex-direction:column;gap:12px;min-width:0}.panel{background:linear-gradient(160deg,rgba(7,34,57,.99),rgba(4,21,40,.99));border:1px solid #147eaa;border-radius:8px;overflow:hidden;box-shadow:var(--shadow);min-width:0}.panel-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:58px;padding:7px 12px;background:linear-gradient(105deg,#093c59,#09223b 68%,#071b30);border-bottom:1px solid rgba(62,143,190,.5)}.panel-heading-left{display:flex;align-items:center;gap:10px;min-width:0}.panel-icon{display:grid;place-items:center;flex:none;width:36px;height:36px;border-radius:8px;border:1px solid rgba(45,163,221,.5);font-size:21px;color:#58dcff;background:linear-gradient(135deg,#124a6c,#053c5e)}.panel-heading h2{font-size:14px;font-weight:850;line-height:1.16;letter-spacing:-.15px}.panel-heading small{font-size:9.5px;color:#9ebbd2;display:block;margin-top:3px}.panel-count{color:#a7eaff;background:#0c3955;padding:4px 9px;border:1px solid #1476aa;border-radius:5px;font-weight:850}.status-strip{display:flex;justify-content:space-between;gap:9px;padding:11px 14px;border-bottom:1px solid var(--line)}.status-strip span{font-size:10px;white-space:nowrap}.status-strip b{font-size:14px}.client-table,.servers-table{border-collapse:collapse;width:100%;table-layout:fixed}.client-table th,.servers-table th{font-size:9px;color:#a6bcd0;text-align:left;font-weight:750;padding:9px 8px;border-bottom:1px solid var(--line);white-space:nowrap}.client-table th:nth-child(1){width:48%}.client-table th:nth-child(2){width:22%}.client-table th:nth-child(3){width:15%;text-align:center}.client-table th:nth-child(4){width:15%;text-align:center}.client-table td{padding:8px 7px;border-bottom:1px solid var(--line);font-size:11px}.client-table tr:last-child td,.servers-table tr:last-child td{border-bottom:0}.client-table tbody tr:hover,.servers-table tbody tr:hover{background:#15456470}.client-table td:nth-child(3),.client-table td:nth-child(4){text-align:center}.client-link{display:flex;align-items:center;gap:7px;font-weight:750;max-width:100%}.building-icon{color:#42d2f7;font-size:15px}.client-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.state{font-size:10px;font-weight:800}.state.ok{color:#75f1c8}.state.warning{color:#ffd761}.state.critical{color:#ff7894}.state.paused{color:#a3b9ca}.status-cell{white-space:nowrap}.status-cell .dot{margin-right:4px;width:8px;height:8px}.count-pill{background:#17364d;color:#d4e2ee;padding:2px 7px;border:1px solid #365d78;border-radius:5px;font-weight:800}.count-pill.warning{color:var(--yellow);border-color:#c7aa30;background:#53472150}.count-pill.critical{color:var(--red);border-color:#d44d6d;background:#6d243c40}.clients-panel{min-height:365px;flex:1}.alerts-panel{min-height:280px;flex:1}.alerts-list{padding:7px}.alert{border-bottom:1px solid var(--line);padding:10px 7px 10px 12px;border-left:4px solid var(--muted);display:grid;grid-template-columns:83px 1fr 40px;gap:7px;align-items:center}.alert:last-child{border-bottom:0}.alert.critical{border-left-color:var(--red)}.alert.warning{border-left-color:var(--yellow)}.alert.info{border-left-color:var(--cyan)}.alert-severity{font-size:9px;font-weight:850}.alert-severity.critical{color:var(--red)}.alert-severity.warning{color:var(--yellow)}.alert-severity.info{color:var(--cyan)}.alert-detail{min-width:0}.alert-detail b{font-size:10.5px;display:block;white-space:normal}.alert-detail small{font-size:9px;color:var(--muted);display:block}.alert-time{color:#c4d2e0;font-size:10px;text-align:right}.empty-state{color:#7098b5;padding:27px 15px;text-align:center;font-size:12px}.client-services{padding:18px 16px}.client-services h3{margin:0 0 10px;font-size:12px;color:#d6e7fa}.service-row{display:flex;justify-content:space-between;padding:10px 2px;border-bottom:1px solid var(--line)}.service-row:last-child{border:0}.servers-panel{height:100%;min-height:750px}.server-search{padding:8px 10px;border-bottom:1px solid var(--line)}.server-search input{color:#e5f7ff;background:#0a263c;border:1px solid #215675;border-radius:6px;padding:7px 10px;width:100%;outline:0}.servers-scroll{max-height:920px;overflow:auto}.servers-table th:nth-child(1){width:29%}.servers-table th:nth-child(2){width:15%}.servers-table th:nth-child(3),.servers-table th:nth-child(4),.servers-table th:nth-child(5){width:13%}.servers-table th:nth-child(6){width:17%}.servers-table td{padding:9px 7px;border-bottom:1px solid var(--line);font-size:10.5px;vertical-align:middle}.host-main{font-size:11px;font-weight:800;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.host-sub{font-size:9px;color:var(--muted);display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.metric-cell{text-align:left}.metric-cell>span{font-size:10px;font-weight:750;display:block;margin-bottom:4px}.bar{height:7px;border-radius:10px;background:#123850;overflow:hidden;border:1px solid #1b4966;min-width:30px}.bar i{display:block;height:100%;border-radius:10px;background:var(--green)}.bar i.warning{background:var(--yellow)}.bar i.critical{background:var(--red)}.uptime{color:#bbd2e5;font-size:9.5px;white-space:nowrap}.internet-panel{flex:1;min-height:380px}.links-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;padding:9px}.link-card{background:linear-gradient(150deg,#062b43,#051d31);border:1px solid #19b7cc;border-left:3px solid var(--green);border-radius:8px;min-width:0;padding:9px 9px 7px;display:flex;flex-direction:column;gap:9px}.link-card.warning{border-left-color:var(--yellow)}.link-card.critical{border-left-color:var(--red)}.link-header{display:flex;justify-content:space-between;gap:5px;border-bottom:1px solid var(--line);padding-bottom:9px;min-width:0}.link-name{font-size:11px;font-weight:850;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.link-client{display:block;color:var(--muted);font-size:9px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.online-pill{color:var(--green);background:#073e43;border:1px solid #0c8a78;border-radius:8px;padding:2px 5px;font-size:8px;font-weight:850;white-space:nowrap;align-self:start}.link-speed{display:grid;grid-template-columns:1fr 1fr;gap:6px}.link-speed small{color:#56cde4;font-size:8.5px;display:block}.link-speed>div:last-child small{color:#d4a2ff}.link-speed strong{font-size:15px;line-height:1.35;white-space:nowrap;letter-spacing:-.5px}.link-speed strong em{font-style:normal;font-size:9px;color:#c4d1df}.speed-strip{height:3px;border-radius:5px;background:linear-gradient(90deg,var(--cyan) 52%,#b76aff 52%)}.link-secondary{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}.link-secondary>div{border-right:1px solid var(--line)}.link-secondary>div:last-child{border-right:0}.link-secondary small{font-size:8px;color:#93adc3;display:block}.link-secondary strong{font-size:10px;color:#bff4ff}.link-secondary strong.good{color:var(--green)}.chart-wrap{flex:1;min-height:80px}.chart-wrap .chart-title{font-size:8px;color:#a8c2d4;display:block;text-align:right}.traffic-chart{display:block;width:100%;height:110px;overflow:visible}.chart-grid line{stroke:#2b5870;stroke-width:.6}.chart-down{fill:none;stroke:var(--cyan);stroke-width:1.8;stroke-linejoin:round}.chart-up{fill:none;stroke:#bb85fa;stroke-width:1.6;stroke-linejoin:round}.chart-axis{fill:#709eb8;font-size:7px}.chart-legend{text-align:center;font-size:8px;color:#bed2e1;margin-top:2px}.chart-legend .down{color:var(--cyan)}.chart-legend .up{color:#bb85fa}.metrics-panel{min-height:158px}.metrics-list{padding:9px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.metric-tile{background:#08263b;border:1px solid #18597f;padding:8px 6px;border-radius:7px;text-align:center;min-width:0}.metric-tile small{display:block;color:#bdcede;font-size:9px}.metric-tile strong{color:var(--green);font-size:23px;white-space:nowrap;line-height:1.5}.metric-tile .spark{display:block;margin-top:4px;height:22px;width:100%}.spark polyline{fill:none;stroke:var(--green);stroke-width:2}.overview-panel{min-height:155px}.overview-list{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;padding:10px}.overview-tile{min-width:0;border-radius:6px;background:#062238;border:1px solid #1b5678;padding:11px 5px;text-align:center}.overview-tile .overview-icon{font-size:19px;color:#35cef5;display:block;line-height:1}.overview-tile strong{font-size:25px;line-height:1.3;display:block;margin-top:5px}.overview-tile small{color:#d5e4f2;font-size:9px;line-height:1.1;display:block;min-height:20px}.footer{display:flex;align-items:center;justify-content:space-between;gap:12px;background:linear-gradient(90deg,#111c50,#0e2142);padding:12px 17px;border-radius:7px;margin-top:12px;font-size:11px;color:#bad2e8}.footer strong{color:white}.footer-divider{margin:0 10px;color:#478bb0}.footer-right{display:flex;align-items:center;gap:8px}.error-box{padding:9px 14px;border:1px solid #c75d61;background:#48212c;color:#ffbfc6;margin-bottom:10px;border-radius:6px}
.login-page{min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle at 50% 10%,#1b3376,transparent 45%),linear-gradient(120deg,#040d21,#06233c);padding:20px}.login-card{max-width:420px;width:100%;border:1px solid #246b92;background:linear-gradient(135deg,#0b2d49,#07172e);border-radius:15px;padding:32px 34px;box-shadow:0 25px 80px #0008}.login-brand{display:flex;align-items:center;gap:13px;margin-bottom:30px}.login-brand .connect-mark{height:53px;width:61px}.login-brand .connect-mark span{height:37px;width:37px;border-width:11px}.login-brand .brand-word{font-size:42px}.login-heading .eyebrow{font-size:10px;color:#71c9f6;letter-spacing:2.5px}.login-heading h1{font-size:28px;margin:5px 0}.login-heading p{font-size:13px;color:#a9c5d7;margin-bottom:26px}.login-form{display:flex;flex-direction:column;gap:7px}.login-form label{color:#c6dfed;font-size:12px;font-weight:750}.login-form input{padding:12px;border-radius:7px;border:1px solid #367196;background:#03192c;color:#eafcff;margin-bottom:13px}.login-form .btn{padding:13px;font-size:14px;display:flex;justify-content:space-between}.login-foot{margin-top:27px;text-align:center;color:#759bb7;font-size:11px}.login-foot span{margin:0 5px}.demo-note{font-size:10px;color:#ffda69;letter-spacing:.5px;margin-top:13px}.login-error{color:#ffb0bf;background:#512438;border:1px solid #ad526b;padding:10px;border-radius:7px;margin:0 0 18px}
@media(max-width:1500px){.topbar{gap:14px;padding:10px 16px}.brand{min-width:180px;padding-right:13px}.brand-word{font-size:24px}.head-title{min-width:210px}.head-title p{letter-spacing:2px}.header-stats{gap:10px}.health-pill{padding:8px 10px}.dashboard-grid{grid-template-columns:minmax(240px,.98fr) minmax(380px,1.48fr) minmax(360px,1.6fr);gap:9px}.link-speed strong{font-size:13px}.servers-table td{padding:9px 5px}.panel-heading h2{font-size:12px}.overview-tile small{font-size:8px}.server-search{padding:6px 9px}}
@media(max-width:1230px){.dashboard-grid{grid-template-columns:minmax(280px,1fr) minmax(420px,1.55fr)}.right-column{grid-column:1 / -1;display:grid;grid-template-columns:1.7fr 1fr;align-items:start}.internet-panel{grid-row:span 2;min-height:350px}.metrics-panel,.overview-panel{min-height:0}.links-list{grid-template-columns:repeat(3,minmax(0,1fr))}.header-stats{display:none}.topbar{gap:17px}.servers-panel{min-height:650px}}
@media(max-width:820px){.dashboard-shell{padding:4px}.dashboard-grid{grid-template-columns:1fr}.servers-panel{min-height:450px}.right-column{grid-column:auto;display:flex}.topbar{flex-wrap:wrap;gap:9px;padding:14px}.brand{min-width:0}.head-title{min-width:0;flex:1}.head-title h1{white-space:normal;font-size:17px}.head-title p{font-size:9px;letter-spacing:1px}.health-pill{order:3;flex:1}.clock{order:4;min-width:70px;padding-left:9px}.clock b{font-size:20px}.toolstrip{align-items:flex-start;flex-wrap:wrap}.toolstrip-actions{flex-wrap:wrap}.servers-scroll{max-height:600px}.links-list{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}.footer{flex-wrap:wrap}.profile{display:none}}
@media(max-width:470px){.brand-word{font-size:20px}.connect-mark{transform:scale(.82);width:35px}.brand{gap:6px;padding-right:8px}.head-title h1{font-size:14px}.head-title p{font-size:8px}.health-pill{white-space:normal}.panel-heading{padding:7px}.panel-heading h2{font-size:12px}.client-table td,.client-table th{padding:7px 3px;font-size:9px}.servers-scroll{overflow-x:auto}.servers-table{min-width:620px}.metrics-list{grid-template-columns:repeat(2,1fr)}.overview-list{gap:3px;padding:4px}.overview-tile{padding:10px 2px}.overview-tile strong{font-size:18px}.overview-tile small{font-size:7px}.overview-tile .overview-icon{font-size:16px}.alert{grid-template-columns:65px 1fr 34px}.demo-badge{font-size:9px}}

/* v1.3: estado de link sem verificação dedicada */
.link-card.unknown{border-left-color:#668ba7}
.online-pill.unknown{color:#c8d5e1;background:#1a3447;border-color:#42627b}
.online-pill.warning{color:var(--yellow);background:#40340c;border-color:#897020}
.online-pill.critical{color:var(--red);background:#48212c;border-color:#9b3a51}

/* CONNECT V1.5: LAYOUT LINKS E VOLUMES */
.links-list.links-two{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:12px;align-items:stretch}
.links-list.links-one{grid-template-columns:1fr;padding:12px}
.links-list.links-two .link-card,.links-list.links-one .link-card{padding:14px;min-height:320px;gap:12px}
.links-list.links-two .link-header,.links-list.links-one .link-header{align-items:flex-start;flex-wrap:wrap}
.links-list.links-two .link-name,.links-list.links-one .link-name{font-size:14px;line-height:1.25;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
.links-list.links-two .link-client{font-size:10px;margin-top:4px}
.links-list.links-two .link-speed strong,.links-list.links-one .link-speed strong{font-size:clamp(15px,1.3vw,20px);letter-spacing:-.35px}
.links-list.links-two .link-speed small,.links-list.links-one .link-speed small{font-size:10px}
.links-list.links-two .link-secondary small,.links-list.links-one .link-secondary small{font-size:9px}
.links-list.links-two .link-secondary strong,.links-list.links-one .link-secondary strong{font-size:12px}
.links-list.links-two .traffic-chart,.links-list.links-one .traffic-chart{height:170px}
.links-list.links-two .chart-wrap,.links-list.links-one .chart-wrap{min-height:175px}
.disk-cell{min-width:0}
.disk-details{margin-top:3px;position:relative;color:#9fdef0;font-size:9px}
.disk-details>summary{cursor:pointer;white-space:nowrap;display:list-item;list-style-position:inside}
.disk-details[open]{position:relative;z-index:2}
.disk-volumes{padding:6px 5px;margin-top:4px;background:#102e45;border:1px solid #286d8d;border-radius:5px;min-width:105px}
.disk-volume{display:flex;justify-content:space-between;gap:8px;padding:2px 0;border-bottom:1px solid #25495c}
.disk-volume:last-child{border-bottom:0}
.disk-volume span{overflow-wrap:anywhere}
.disk-volume strong{white-space:nowrap;color:#eafaff}
@media(max-width:1230px){.links-list.links-two{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:660px){.links-list.links-two{grid-template-columns:1fr}.links-list.links-two .link-card{min-height:0}.links-list.links-two .traffic-chart{height:135px}}
/* CONNECT V1.5.1: AJUSTE DOS CARTOES AO BLOCO LINKS */
/* O bloco de links ocupa toda a altura disponível, preservando as bordas e margens. */
.internet-panel {display:flex;flex-direction:column}
.internet-panel > .panel-heading {flex:0 0 auto}
.internet-panel > .links-list.links-two,
.internet-panel > .links-list.links-one {
  flex:1 1 auto;
  min-height:0;
  grid-auto-rows:minmax(0,1fr);
  align-items:stretch;
  gap:12px;
  padding:12px;
}
.internet-panel > .links-list.links-two > .link-card,
.internet-panel > .links-list.links-one > .link-card {
  height:100%;
  min-height:0;
  max-width:100%;
}
.internet-panel > .links-list.links-two .chart-wrap,
.internet-panel > .links-list.links-one .chart-wrap {
  display:flex;
  flex:1 1 auto;
  min-height:140px;
  flex-direction:column;
  justify-content:flex-end;
}
.internet-panel > .links-list.links-two .traffic-chart,
.internet-panel > .links-list.links-one .traffic-chart {
  height:clamp(130px,11vw,185px);
  flex:0 0 auto;
}
/* Telas intermediárias: os cartões crescem conforme o conteúdo, sem corte. */
@media (max-width:1230px) {
  .internet-panel > .links-list.links-two,
  .internet-panel > .links-list.links-one {flex:0 0 auto;grid-auto-rows:auto}
  .internet-panel > .links-list.links-two > .link-card,
  .internet-panel > .links-list.links-one > .link-card {height:auto;min-height:335px}
}
/* Celulares: um cartão por linha, mantendo o mesmo espaçamento interno. */
@media (max-width:660px) {
  .internet-panel > .links-list.links-two {grid-template-columns:1fr}
  .internet-panel > .links-list.links-two > .link-card {height:auto;min-height:315px}
  .internet-panel > .links-list.links-two .traffic-chart {height:140px}
}
/* CONNECT V1.5.2: ALINHAMENTO DE UTILIZACAO CPU / MEMORIA / DISCO */
/* Mantém percentual e barra na mesma altura em cada linha, independente do número de discos. */
.servers-table tbody td {vertical-align:middle}
.servers-table tbody td.metric-cell {vertical-align:middle;min-width:0}
.servers-table tbody td.metric-cell>span,
.servers-table tbody td.metric-cell>.disk-cell>span {
  display:block;
  font-size:10px;
  font-weight:750;
  line-height:13px;
  height:13px;
  margin:0 0 4px;
  white-space:nowrap;
}
.servers-table tbody td.metric-cell>.bar,
.servers-table tbody td.metric-cell>.disk-cell>.bar {
  margin:0;
  height:7px;
  min-width:0;
  width:100%;
}
.servers-table tbody td.metric-cell>.disk-cell {position:relative;min-width:0}
/* O detalhe de volumes é um botão compacto ao lado do percentual, não mais uma linha adicional. */
.servers-table tbody td.metric-cell .disk-details {
  position:absolute;
  right:0;
  top:0;
  margin:0;
  padding:0;
  font-size:9px;
  line-height:13px;
  z-index:20;
}
.servers-table tbody td.metric-cell .disk-details>summary {
  display:block;
  list-style:none;
  padding:0 2px;
  border:1px solid #245a79;
  background:#0b314c;
  border-radius:3px;
  line-height:13px;
  min-width:18px;
  text-align:center;
  white-space:nowrap;
  color:#abe9ff;
  cursor:pointer;
}
.servers-table tbody td.metric-cell .disk-details>summary::-webkit-details-marker {display:none}
.servers-table tbody td.metric-cell .disk-details>summary:focus-visible {outline:2px solid #48c6f2;outline-offset:2px}
.servers-table tbody td.metric-cell .disk-details[open]>summary {color:white;background:#145273}
.servers-table tbody td.metric-cell .disk-details .disk-volumes {
  position:absolute;
  right:0;
  top:18px;
  z-index:21;
  min-width:140px;
  max-width:225px;
  max-height:220px;
  overflow-y:auto;
  margin:0;
  padding:7px 8px;
  border:1px solid #348bb1;
  border-radius:6px;
  background:#102e45;
  box-shadow:0 8px 22px #000a;
}
/* CONNECT V1.5.6: DETALHAMENTO DE VOLUMES EM JANELA MODAL */
.servers-table tbody td.metric-cell>.disk-cell{position:relative;min-width:0}
.servers-table tbody td.metric-cell .disk-open{
  position:absolute;right:0;top:0;min-width:23px;height:16px;padding:0 3px;
  font-size:9px;line-height:14px;font-weight:700;color:#b6eaff;
  border:1px solid #307ea3;border-radius:4px;background:#0a3450;
  cursor:pointer;z-index:1
}
.servers-table tbody td.metric-cell .disk-open:hover{background:#14668a;color:#fff}
.servers-table tbody td.metric-cell .disk-open:focus-visible{outline:2px solid #59d9f6;outline-offset:2px}
body.disk-modal-open{overflow:hidden}
.disk-modal[hidden]{display:none!important}
.disk-modal{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;background:rgba(0,8,23,.82);padding:18px}
.disk-modal-window{width:min(770px,100%);max-height:min(86vh,850px);display:flex;flex-direction:column;background:linear-gradient(155deg,#0b2942,#06182c);border:1px solid #1baad1;border-radius:12px;box-shadow:0 24px 80px #000c;color:#f3f9ff;overflow:hidden}
.disk-modal-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;padding:18px 20px;border-bottom:1px solid rgba(64,173,218,.3)}
.disk-modal-head h2{font-size:18px;margin:0;font-weight:800}
.disk-modal-head p{margin:6px 0 0;font-size:12px;color:#a1bfd4}
.disk-modal-close{width:32px;height:32px;flex:none;border:1px solid #2e83aa;border-radius:7px;background:#143953;color:#e3f8ff;font-size:22px;line-height:1;cursor:pointer}
.disk-modal-close:hover{background:#225c7c}
.disk-modal-body{overflow:auto;min-height:60px;padding:12px 20px;display:grid;gap:10px}
.disk-volume-row{border:1px solid rgba(54,145,186,.4);border-radius:9px;padding:12px 14px;background:#0a2a44}
.disk-volume-primary{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px}
.disk-mount{font-size:14px;font-weight:800;overflow-wrap:anywhere}
.disk-level{font-size:10px;white-space:nowrap;padding:3px 8px;border-radius:6px;border:1px solid #167d70;color:#5cf1c9}
.disk-level.warning{border-color:#a37b18;color:#ffdb67}.disk-level.critical{border-color:#b52d55;color:#ff718b}
.disk-capacity{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.disk-capacity div{min-width:0}.disk-capacity small{display:block;color:#a3bed1;font-size:10px;margin-bottom:3px}.disk-capacity strong{font-size:14px;white-space:nowrap;font-variant-numeric:tabular-nums}
.disk-capacity .disk-pct.ok{color:#5cf1c9}.disk-capacity .disk-pct.warning{color:#ffdb67}.disk-capacity .disk-pct.critical{color:#ff718b}
.disk-modal-meter{height:8px;background:#113f5b;border:1px solid #24516f;border-radius:12px;overflow:hidden;margin-top:12px}
.disk-modal-meter i{display:block;height:100%;border-radius:12px;background:#27e1ac}
.disk-modal-meter i.warning{background:#ffd65b}.disk-modal-meter i.critical{background:#ff5579}
.disk-modal-foot{font-size:11px;color:#9eb8cb;padding:12px 20px 16px;margin:0;border-top:1px solid rgba(64,173,218,.24)}
@media(max-width:620px){.disk-capacity{grid-template-columns:repeat(2,minmax(0,1fr))}.disk-modal-head{padding:14px}.disk-modal-body{padding:10px}.disk-modal-foot{padding:12px}.disk-capacity strong{font-size:12px}}

/* CONNECT V1.5.8: volumes auxiliares SRVTHEO02 */
.disk-volume-auxiliary{border-color:#28627b;background:#092538}
.disk-level.auxiliary{border-color:#4e8298;color:#b3d9eb;background:#14374e}
.disk-capacity .disk-pct.auxiliary{color:#c4e1ef}
.disk-modal-meter i.auxiliary{background:#468aa9}
.disk-volume-note{color:#bad8e8;font-size:11px;line-height:1.4;margin:9px 0 0}

/* CONNECT V1.5.9: DASHBOARD VISIBLE NA ALTURA DO MONITOR (DESKTOP) */
/* Este ajuste aplica-se apenas a telas desktop com altura util >= 780px.
   Em telas pequenas, o fluxo normal da pagina e preservado para evitar cortes. */
@media (min-width:1231px) and (min-height:780px) {
  body.dashboard-page {overflow:hidden}
  body.dashboard-page .dashboard-shell {
    height:100vh;height:100dvh;min-height:0;display:flex;flex-direction:column;
    overflow:visible;
  }
  body.dashboard-page .topbar,
  body.dashboard-page .toolstrip,
  body.dashboard-page .footer {flex:0 0 auto}
  body.dashboard-page .toolstrip {padding-top:7px;padding-bottom:7px}
  body.dashboard-page .footer {margin-top:7px;padding-top:8px;padding-bottom:8px}
  body.dashboard-page .dashboard-grid {flex:1 1 0;min-height:0;max-height:none;align-items:stretch}
  body.dashboard-page .left-column,
  body.dashboard-page .right-column {min-height:0;height:100%;overflow:hidden}
  body.dashboard-page .clients-panel,
  body.dashboard-page .alerts-panel {min-height:0;overflow-y:auto;scrollbar-width:thin}
  body.dashboard-page .clients-panel {flex:1.15 1 0}
  body.dashboard-page .alerts-panel {flex:0.85 1 0}
  body.dashboard-page .servers-panel {height:100%;min-height:0;display:flex;flex-direction:column}
  body.dashboard-page .servers-scroll {flex:1 1 0;min-height:0;max-height:none;overflow:auto;scrollbar-width:thin}
  body.dashboard-page .servers-table thead th {position:sticky;top:0;z-index:3;background:#09243a}
  body.dashboard-page .right-column {gap:8px}
  body.dashboard-page .right-column .panel-heading {min-height:46px;padding:5px 10px}
  body.dashboard-page .right-column .panel-icon {width:31px;height:31px;font-size:18px}
  body.dashboard-page .internet-panel {flex:1 1 0;min-height:0;display:flex;flex-direction:column}
  body.dashboard-page .internet-panel > .links-list {
    flex:1 1 0;min-height:0;overflow-y:auto;scrollbar-width:thin;align-items:stretch;
  }
  body.dashboard-page .internet-panel > .links-list.links-two,
  body.dashboard-page .internet-panel > .links-list.links-one {
    grid-auto-rows:minmax(0,1fr);gap:10px;padding:10px;
  }
  body.dashboard-page .internet-panel > .links-list.links-two > .link-card,
  body.dashboard-page .internet-panel > .links-list.links-one > .link-card {
    height:100%;min-height:0;gap:7px;padding:10px;
  }
  body.dashboard-page .internet-panel > .links-list.links-two .link-header,
  body.dashboard-page .internet-panel > .links-list.links-one .link-header {padding-bottom:6px}
  body.dashboard-page .internet-panel > .links-list.links-two .chart-wrap,
  body.dashboard-page .internet-panel > .links-list.links-one .chart-wrap {
    display:flex;flex:1 1 0;flex-direction:column;justify-content:flex-end;min-height:0;
  }
  body.dashboard-page .internet-panel > .links-list.links-two .traffic-chart,
  body.dashboard-page .internet-panel > .links-list.links-one .traffic-chart {
    flex:0 0 auto;height:clamp(74px,10dvh,110px);
  }
  body.dashboard-page .internet-panel > .links-list:not(.links-two):not(.links-one) {
    grid-auto-rows:auto;align-items:start;
  }
  body.dashboard-page .internet-panel > .links-list:not(.links-two):not(.links-one) > .link-card {
    min-height:310px;
  }
  body.dashboard-page .metrics-panel,
  body.dashboard-page .overview-panel {flex:0 0 auto;min-height:0}
  body.dashboard-page .metrics-list {padding:6px 8px;gap:6px}
  body.dashboard-page .metric-tile {padding:5px 5px}
  body.dashboard-page .metric-tile strong {font-size:19px;line-height:1.3}
  body.dashboard-page .metric-tile .spark {height:13px;margin-top:2px}
  body.dashboard-page .overview-list {padding:6px 8px;gap:6px}
  body.dashboard-page .overview-tile {padding:6px 4px}
  body.dashboard-page .overview-tile .overview-icon {font-size:15px}
  body.dashboard-page .overview-tile strong {font-size:20px;line-height:1.18;margin-top:3px}
  body.dashboard-page .overview-tile small {font-size:8px;min-height:0}
}
/* Em desktops baixos, priorizar legibilidade: permitir rolagem normal da pagina. */
@media (min-width:1231px) and (max-height:779px) {
  body.dashboard-page {overflow-y:auto}
}

/* CONNECT V1.6.1: 2 links por pagina com rotacao horizontal direita -> esquerda. */
body.dashboard-page .internet-panel > .links-list.cc-carousel-enabled {
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  grid-auto-rows:minmax(0,1fr);align-items:stretch;overflow:hidden!important;
  min-height:0;gap:10px;padding:10px;
}
body.dashboard-page .internet-panel > .links-list.cc-carousel-enabled.links-one {
  grid-template-columns:minmax(0,1fr);
}
body.dashboard-page .internet-panel > .links-list.cc-carousel-enabled > .link-card {
  height:100%;min-height:0;min-width:0;max-width:100%;overflow:hidden;
  padding:10px;gap:7px;
}
body.dashboard-page .internet-panel > .links-list.cc-carousel-enabled .link-header {
  align-items:flex-start;flex-wrap:wrap;padding-bottom:6px;
}
body.dashboard-page .internet-panel > .links-list.cc-carousel-enabled .link-name {
  font-size:14px;line-height:1.25;white-space:normal;overflow-wrap:anywhere;
}
body.dashboard-page .internet-panel > .links-list.cc-carousel-enabled .chart-wrap {
  display:flex;flex:1 1 0;flex-direction:column;justify-content:flex-end;min-height:0;
}
body.dashboard-page .internet-panel > .links-list.cc-carousel-enabled .traffic-chart {
  flex:0 0 auto;height:clamp(74px,10dvh,110px);
}
body.dashboard-page .internet-panel > .links-list.cc-carousel-enabled .link-speed strong {
  font-size:clamp(15px,1.3vw,20px);
}
body.dashboard-page .internet-panel > .links-list.cc-carousel-enabled > .empty-state {grid-column:1/-1;justify-self:center;align-self:center;text-align:center}
.cc-links-indicator{font-size:10px;color:#a7cde5;font-weight:700;white-space:nowrap}
.cc-links-indicator[hidden]{display:none!important}
@keyframes ccSlideOutLeft {to{transform:translateX(-52px);opacity:0}}
@keyframes ccSlideInRight {from{transform:translateX(52px);opacity:0}to{transform:translateX(0);opacity:1}}
body.dashboard-page .internet-panel .cc-slide-out{animation:ccSlideOutLeft .22s ease-in forwards}
body.dashboard-page .internet-panel .cc-slide-in{animation:ccSlideInRight .28s ease-out both}
@media (prefers-reduced-motion:reduce) {
  body.dashboard-page .internet-panel .cc-slide-out,
  body.dashboard-page .internet-panel .cc-slide-in{animation:none!important}
}
@media(max-width:660px) {
  body.dashboard-page .internet-panel > .links-list.cc-carousel-enabled.links-two {
    grid-template-columns:1fr;grid-auto-rows:auto;overflow-y:auto!important;
  }
  body.dashboard-page .internet-panel > .links-list.cc-carousel-enabled > .link-card {
    height:auto;min-height:300px;
  }
}



/* CONNECT V1.6.7: card unico na visao admin e ampliado no cliente */
/* Em "Todos os clientes", ocupar somente um slot da grade de dois links. */
@media (min-width: 661px) {
  body.dashboard-page[data-role="admin"][data-client="all"] .internet-panel > .links-list.cc-carousel-enabled.links-one {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
/* Na visao filtrada pelo administrador ou no login do cliente, usar todo o painel. */
body.dashboard-page[data-role="client"] .internet-panel > .links-list.cc-carousel-enabled.links-one,
body.dashboard-page[data-role="admin"]:not([data-client="all"]) .internet-panel > .links-list.cc-carousel-enabled.links-one {
  grid-template-columns:minmax(0,1fr);
}


/* CONNECT V1.6.8 — sites HTTP/HTTPS, com carrossel compacto. */
.sites-panel{min-height:116px;display:flex;flex-direction:column}
.sites-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:7px;min-height:0;flex:1;align-items:stretch}
.sites-list.sites-one{grid-template-columns:repeat(2,minmax(0,1fr))}
body.dashboard-page[data-role="client"] .sites-list.sites-one,
body.dashboard-page[data-role="admin"]:not([data-client="all"]) .sites-list.sites-one{grid-template-columns:minmax(0,1fr)}
.site-card{background:#08263b;border:1px solid #1b6e92;border-left:3px solid var(--green);border-radius:7px;padding:6px 9px;min-width:0;min-height:0;display:flex;flex-direction:column;justify-content:space-between;gap:2px}
.site-card.critical{border-left-color:var(--red)}.site-card.warning{border-left-color:var(--yellow)}.site-card.unknown{border-left-color:#8aacc1}
.site-card-head{display:flex;justify-content:space-between;gap:6px;align-items:start;min-width:0}
.site-card-head>div{min-width:0}.site-card-name{display:block;font-size:11px;font-weight:800;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}
.site-card-client{display:block;font-size:9px;color:#9bb9cd;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.site-pill{color:var(--green);border:1px solid #127d75;border-radius:5px;padding:1px 5px;font-size:8px;font-weight:850;white-space:nowrap}
.site-card.critical .site-pill{color:#ff7795;border-color:#b72d5a}.site-card.unknown .site-pill{color:#bdd0df;border-color:#607e95}
.site-card-details{display:flex;align-items:center;justify-content:space-between;gap:6px;white-space:nowrap;color:#c6dfed;font-size:9px;min-width:0}
.site-card-details strong{font-size:11px;color:#eafcff}.site-card-details span{overflow:hidden;text-overflow:ellipsis}
.site-empty{grid-column:1/-1;align-self:center;text-align:center;color:#8eb2c9;font-size:11px;padding:4px}
.cc-sites-indicator{font-size:10px;color:#a7cde5;font-weight:700;white-space:nowrap}
.cc-sites-indicator[hidden]{display:none!important}
.sites-list.cc-sites-slide .site-card{animation:ccSlideInRight .28s ease-out both}
@media (min-width:1231px) and (min-height:780px) {
  body.dashboard-page .right-column .sites-panel{flex:0 0 111px;min-height:0}
  body.dashboard-page .sites-panel .panel-heading{min-height:42px;padding:4px 10px}
  body.dashboard-page .sites-panel .panel-icon{height:28px;width:28px;font-size:17px}
  body.dashboard-page .sites-list{padding:6px 8px;gap:7px}
  body.dashboard-page .site-card{padding:4px 8px;gap:1px}
  body.dashboard-page .internet-panel > .links-list.cc-carousel-enabled .traffic-chart{height:clamp(46px,7dvh,80px)}
  body.dashboard-page .internet-panel > .links-list.cc-carousel-enabled .chart-wrap{min-height:0}
}
@media(max-width:1230px){.sites-panel{min-height:135px}}
@media(max-width:660px){.sites-list{grid-template-columns:1fr}.sites-list.sites-one{grid-template-columns:1fr}.site-card{min-height:76px}}
@media(prefers-reduced-motion:reduce){.sites-list.cc-sites-slide .site-card{animation:none!important}}

/* Em telas desktop de pouca altura, evitar esconder o final dos graficos de WAN.
   O painel de tela unica permanece para alturas >=900px. */
@media (min-width:1231px) and (min-height:780px) and (max-height:899px) {
  body.dashboard-page{overflow-y:auto}
  body.dashboard-page .dashboard-shell{height:auto;min-height:100vh;display:block;overflow:visible}
  body.dashboard-page .dashboard-grid{height:auto;min-height:770px;max-height:none;display:grid}
  body.dashboard-page .left-column,body.dashboard-page .right-column{height:auto;overflow:visible}
  body.dashboard-page .servers-panel{height:auto;min-height:770px}
  body.dashboard-page .internet-panel{min-height:350px}
  body.dashboard-page .internet-panel > .links-list.cc-carousel-enabled{min-height:292px}
  body.dashboard-page .internet-panel > .links-list.cc-carousel-enabled > .link-card{min-height:272px}
  body.dashboard-page .right-column .sites-panel{flex:0 0 111px}
}

/* CONNECT V1.7.0 — sexto indicador e janela de chamados GLPI */
.overview-list{grid-template-columns:repeat(6,minmax(0,1fr))}
button.overview-tile.overview-glpi{font:inherit;color:inherit;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;min-width:0}
button.overview-tile.overview-glpi:hover{border-color:var(--cyan);background:#104266}
.glpi-modal-window{max-width:850px}
.glpi-modal-list{overflow:auto;max-height:min(60vh,580px);padding:12px 20px}
.glpi-ticket{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:12px;align-items:center;border-bottom:1px solid var(--line);padding:12px 5px;font-size:12px}
.glpi-ticket-name{min-width:0;font-weight:750;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.glpi-ticket-name a{color:var(--white);text-decoration:none}
.glpi-ticket-name a:hover{color:var(--cyan-lt);text-decoration:underline}
.glpi-ticket-status{border:1px solid #276482;border-radius:5px;padding:3px 7px;white-space:nowrap;font-size:10px;color:#aae6ff}
.glpi-ticket small{color:var(--muted);font-size:10px;white-space:nowrap}
@media(max-width:660px){.overview-list{grid-template-columns:repeat(3,minmax(0,1fr))}.glpi-ticket{grid-template-columns:minmax(0,1fr) auto}.glpi-ticket small{grid-column:1/-1}}

/* ==========================================
   CONNECT TECNOLOGIA - SENTINELA
   Fundo personalizado da tela de login
   ========================================== */

body.login-page {
    background-color: #09132e !important;
    background-image: url('./background-login.png') !important;
    background-position: center center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    min-height: 100vh;
}

/* Mantém o cartão de autenticação acima do fundo */
body.login-page .login-card {
    position: relative;
    z-index: 1;
}
