.push-fab{position:fixed;right:22px;bottom:22px;z-index:1200;width:54px;height:54px;border:0;border-radius:18px;background:#0b5ed7;color:#fff;font-size:23px;box-shadow:0 12px 34px rgba(0,0,0,.28);cursor:pointer}.push-fab[data-state="enabled"]{background:#17894c}.push-fab[data-state="blocked"]{background:#b42318}.push-panel{position:fixed;right:22px;bottom:88px;z-index:1201;width:min(410px,calc(100vw - 28px));background:#fff;color:#172033;border-radius:18px;box-shadow:0 24px 70px rgba(0,0,0,.3);padding:20px;display:none}.push-panel.open{display:block}.push-panel h3{margin:0 0 5px}.push-panel p{margin:0 0 14px;color:#667085;line-height:1.45}.push-status{padding:10px 12px;border-radius:12px;background:#f2f4f7;margin-bottom:14px;font-weight:700}.push-actions{display:flex;gap:9px;flex-wrap:wrap}.push-actions button{border:0;border-radius:10px;padding:10px 13px;cursor:pointer;font-weight:700}.push-enable{background:#0b5ed7;color:#fff}.push-disable{background:#fee4e2;color:#b42318}.push-test{background:#e8f1ff;color:#175cd3}.push-close{position:absolute;right:12px;top:10px;background:transparent!important;color:#667085;font-size:20px}.push-central-link{display:block;margin-top:14px;padding:10px 12px;border-radius:10px;background:#f8fafc;color:#175cd3;text-decoration:none;font-weight:800;text-align:center}.push-devices{margin-top:14px;max-height:170px;overflow:auto;font-size:13px}.push-device{border-top:1px solid #eaecf0;padding:9px 0}.push-device b{display:block}.push-device span{color:#667085}.push-toast{position:fixed;right:22px;bottom:150px;z-index:1300;background:#101828;color:#fff;padding:12px 16px;border-radius:10px;box-shadow:0 12px 30px rgba(0,0,0,.25)}
.device-center{display:grid;gap:18px}.device-hero{display:flex;justify-content:space-between;gap:24px;align-items:center;padding:25px;border-radius:22px;background:linear-gradient(135deg,#0f2344,#0b63e5);color:#fff;box-shadow:0 18px 45px rgba(11,99,229,.2)}.device-hero h2{margin:5px 0 8px;font-size:30px}.device-hero p{margin:0;max-width:720px;color:#d9e8ff}.device-kicker{font-size:12px;font-weight:900;letter-spacing:.14em;text-transform:uppercase;color:#9ec5ff}.device-hero-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}.device-btn{border:1px solid rgba(255,255,255,.28);background:rgba(255,255,255,.12);color:#fff;border-radius:11px;padding:11px 15px;font-weight:800;cursor:pointer}.device-btn-primary{background:#fff;color:#0b5ed7}.device-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.device-summary article{background:#fff;border:1px solid #dae4f1;border-radius:17px;padding:18px}.device-summary strong{display:block;font-size:28px;color:#0f2344}.device-summary span{color:#66758f;font-weight:700}.device-warning{padding:14px 16px;border-radius:12px;background:#fff4d6;color:#8a5700;border:1px solid #f2d48a}.device-warning a{font-weight:900;color:inherit}.device-list-card{background:#fff;border:1px solid #dae4f1;border-radius:20px;padding:20px}.device-list-head{display:flex;justify-content:space-between;gap:18px;align-items:center;margin-bottom:18px}.device-list-head h3{margin:0 0 4px;color:#0f2344}.device-list-head p{margin:0;color:#66758f}.device-list-head input{width:min(360px,100%);padding:11px 13px;border:1px solid #cbd8ea;border-radius:11px}.device-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.device-card{border:1px solid #dbe5f2;border-radius:16px;padding:17px;background:#fbfdff}.device-card.is-online{border-color:#92d5b1;box-shadow:inset 0 3px 0 #2da56b}.device-card.is-disabled{opacity:.66}.device-card-top{display:flex;align-items:center;gap:12px}.device-icon{width:44px;height:44px;display:grid;place-items:center;border-radius:13px;background:#eaf2ff;font-size:22px}.device-title{min-width:0;flex:1}.device-title strong,.device-title span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.device-title span{color:#66758f;font-size:13px;margin-top:3px}.device-state{font-size:12px;font-weight:900;padding:6px 9px;border-radius:999px;background:#eef2f6;color:#66758f}.device-state.online{background:#dcfce7;color:#166534}.device-state.offline{background:#f1f5f9;color:#475569}.device-card dl{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:16px 0}.device-card dl div{background:#f4f7fb;border-radius:10px;padding:10px}.device-card dt{font-size:11px;text-transform:uppercase;color:#7b879b;font-weight:900}.device-card dd{margin:4px 0 0;color:#1f2f48;font-weight:700;font-size:13px}.device-options{display:flex;gap:14px;flex-wrap:wrap;border-top:1px solid #e7edf5;padding-top:13px}.device-options label{font-size:13px;font-weight:800;color:#40516c}.device-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:13px}.device-actions button{border:0;background:#e8f1ff;color:#175cd3;border-radius:9px;padding:9px 11px;font-weight:800;cursor:pointer}.device-actions button:disabled{opacity:.5;cursor:not-allowed}.device-actions .danger{background:#fee4e2;color:#b42318}.device-error{margin:10px 0;padding:9px 11px;background:#fff0ef;color:#b42318;border-radius:9px;font-size:12px}.device-empty{grid-column:1/-1;padding:28px;text-align:center;color:#66758f;background:#f8fafc;border-radius:13px}.device-deliveries{display:grid;gap:8px}.delivery-row{display:grid;grid-template-columns:90px 1.5fr 1fr 90px 150px;gap:10px;align-items:center;padding:11px 12px;border:1px solid #e2e8f0;border-radius:10px;font-size:13px}.delivery-status{display:inline-flex;justify-content:center;padding:5px 8px;border-radius:999px;font-weight:900}.delivery-status.sent{background:#dcfce7;color:#166534}.delivery-status.error{background:#fee2e2;color:#991b1b}.delivery-status.pending{background:#fef3c7;color:#92400e}@media(max-width:980px){.device-hero{align-items:flex-start;flex-direction:column}.device-hero-actions{justify-content:flex-start}.device-summary{grid-template-columns:repeat(2,1fr)}.device-grid{grid-template-columns:1fr}.delivery-row{grid-template-columns:80px 1fr;}.delivery-row span:nth-child(n+3),.delivery-row time{display:none}}@media(max-width:620px){.push-fab{right:14px;bottom:14px}.push-panel{right:14px;bottom:76px}.device-summary{grid-template-columns:1fr 1fr}.device-list-head{align-items:stretch;flex-direction:column}.device-list-head input{width:100%}.device-card dl{grid-template-columns:1fr}.device-hero{padding:20px}.device-hero h2{font-size:25px}}

/* Central de Dispositivos: layout mobile sem overflow horizontal.
 * Ajuste exclusivamente visual; nenhuma rotina Push/API e alterada.
 */
@media(max-width:800px){
  .device-center{min-width:0;width:100%;max-width:100%;overflow-x:hidden;padding-bottom:104px;box-sizing:border-box}
  .device-center>*{min-width:0;max-width:100%;box-sizing:border-box}

  .device-hero{width:100%;min-width:0;align-items:stretch!important;flex-direction:column!important;gap:16px!important;padding:18px!important;border-radius:20px!important;overflow:hidden}
  .device-hero>div:first-child{min-width:0;width:100%}
  .device-kicker{display:block;max-width:100%;overflow-wrap:anywhere}
  .device-hero h2{font-size:clamp(25px,8vw,32px)!important;line-height:1.08;margin:7px 0 8px!important;overflow-wrap:anywhere;word-break:break-word}
  .device-hero p{max-width:100%!important;font-size:14px;line-height:1.42;overflow-wrap:anywhere;word-break:break-word}
  .device-hero-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px!important;width:100%;min-width:0;justify-content:stretch!important}
  .device-hero-actions .device-btn{width:100%;min-width:0;min-height:46px;padding:10px 8px;white-space:normal;line-height:1.15;text-align:center}
  .device-hero-actions .device-btn-primary{grid-column:1/-1}

  .device-summary{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;width:100%;min-width:0}
  .device-summary article{min-width:0;padding:14px!important;border-radius:16px!important;overflow:hidden}
  .device-summary strong{font-size:27px!important;line-height:1}
  .device-summary span{display:block;margin-top:7px;font-size:12px;line-height:1.25;overflow-wrap:anywhere;word-break:break-word}

  .device-warning{min-width:0;max-width:100%;overflow-wrap:anywhere}
  .device-list-card{width:100%;min-width:0;padding:14px!important;border-radius:18px!important;overflow:hidden;box-sizing:border-box}
  .device-list-head{min-width:0;align-items:stretch!important;flex-direction:column!important;gap:11px!important;margin-bottom:14px!important}
  .device-list-head>div{min-width:0}
  .device-list-head h3,.device-list-head p{max-width:100%;overflow-wrap:anywhere;word-break:break-word}
  .device-list-head h3{font-size:20px;line-height:1.15}
  .device-list-head p{font-size:13px;line-height:1.35}
  .device-list-head input{width:100%!important;max-width:100%;min-width:0;box-sizing:border-box;font-size:16px}

  .device-grid{grid-template-columns:1fr!important;width:100%;min-width:0;gap:11px!important}
  .device-card{width:100%;min-width:0;max-width:100%;padding:14px!important;border-radius:15px!important;overflow:hidden;box-sizing:border-box}
  .device-card-top{display:grid!important;grid-template-columns:44px minmax(0,1fr)!important;gap:10px!important;align-items:start!important;min-width:0}
  .device-icon{width:44px;height:44px;flex:0 0 44px}
  .device-title{min-width:0;width:100%}
  .device-title strong,.device-title span{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;max-width:100%;overflow-wrap:anywhere;word-break:break-word;line-height:1.25}
  .device-title strong{font-size:16px}
  .device-title span{font-size:12px!important}
  .device-state{grid-column:1/-1;justify-self:start;max-width:100%;white-space:normal;overflow-wrap:anywhere}

  .device-card dl{grid-template-columns:1fr!important;gap:8px!important;margin:12px 0!important;min-width:0}
  .device-card dl div{min-width:0;padding:10px!important}
  .device-card dd{max-width:100%;overflow-wrap:anywhere;word-break:break-word;line-height:1.3}

  .device-options{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px!important;width:100%;min-width:0;padding-top:11px!important}
  .device-options label{display:flex;align-items:center;justify-content:center;gap:5px;min-width:0;font-size:12px!important;white-space:normal;text-align:center}
  .device-options input{flex:0 0 auto}

  .device-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px!important;width:100%;min-width:0;margin-top:11px!important}
  .device-actions button{width:100%;min-width:0;min-height:43px;padding:9px 7px!important;white-space:normal;line-height:1.12;text-align:center}
  .device-actions .danger{grid-column:1/-1}

  .device-error{max-width:100%;overflow-wrap:anywhere;word-break:break-word}
  .device-deliveries,.delivery-row{min-width:0;max-width:100%}
  .delivery-row{grid-template-columns:minmax(72px,auto) minmax(0,1fr)!important;overflow:hidden}
  .delivery-row strong{min-width:0;overflow-wrap:anywhere;word-break:break-word}
}

@media(max-width:420px){
  .device-hero{padding:16px!important}
  .device-summary article{padding:12px!important}
  .device-list-card,.device-card{padding:12px!important}
  .device-options{grid-template-columns:1fr 1fr!important}
  .device-options label:last-child{grid-column:1/-1;justify-self:center}
}
