*{box-sizing:border-box}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:#f4f7fb;color:#172033}a{text-decoration:none;color:inherit}.shell{min-height:100vh;display:grid;grid-template-columns:250px 1fr}.sidebar{background:#101827;color:#fff;padding:26px 18px}.brand{font-size:1.25rem;font-weight:750;margin:0 8px 28px}.brand span{color:#61d9b4}.sidebar nav{display:grid;gap:8px}.sidebar nav a{padding:12px 14px;border-radius:12px;color:#bdc7d8}.sidebar nav a:hover,.sidebar nav a.active{background:#1b2639;color:#fff}.content{padding:34px;max-width:1450px;width:100%;margin:auto}header{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:26px}header h1{font-size:1.875rem;margin:4px 0 0}small,.eyebrow{color:#718096;font-weight:650}.badge,.status{display:inline-flex;align-items:center;padding:7px 11px;border-radius:999px;background:#e8eef7;font-size:0.75rem;font-weight:750}.status.ok{background:#ddf8ee;color:#0d7a57}.hero{background:linear-gradient(135deg,#101827,#223453);border-radius:22px;padding:34px;color:white;display:flex;justify-content:space-between;gap:24px;align-items:center}.hero h2{font-size:2rem;max-width:680px;margin:8px 0}.hero p{color:#ccd5e4;max-width:760px}.btn{border:0;border-radius:12px;padding:12px 17px;background:#28b98a;color:#fff;font-weight:750;cursor:pointer;display:inline-flex;justify-content:center}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:20px 0}.card,.panel,.product-card{background:#fff;border:1px solid #e4e9f1;border-radius:18px;box-shadow:0 10px 30px rgba(20,32,55,.05)}.card{padding:22px}.card p{margin:5px 0;color:#708096}.metric{font-size:1.875rem;font-weight:800}.panel{padding:24px}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:20px}.panel h3{margin:5px 0}.updates{display:grid;gap:12px;margin-top:18px}.update-row{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:17px;border:1px solid #e8edf4;border-radius:14px}.update-row p{margin:5px 0 0;color:#718096}.catalog{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.product-card{padding:22px;display:flex;gap:16px}.product-icon{width:52px;height:52px;border-radius:15px;background:#edf9f5;display:grid;place-items:center;font-size:1.5625rem;flex:0 0 auto}.product-card h3{margin:5px 0}.product-card p{color:#718096;line-height:1.5}@media(max-width:900px){.shell{display:block}.sidebar{padding:16px}.sidebar nav{display:flex;overflow:auto}.content{padding:20px}.grid,.catalog{grid-template-columns:1fr}.hero,.update-row{align-items:flex-start;flex-direction:column}header{align-items:flex-start}.btn{width:100%}}@media(max-width:520px){.content{padding:14px}.hero{padding:24px}.hero h2{font-size:1.5625rem}.sidebar nav a{white-space:nowrap}}
.login-wrap{min-height:100vh;display:grid;place-items:center;padding:20px}.login-card{width:min(460px,100%);background:#fff;border:1px solid #e4e9f1;border-radius:22px;padding:30px;box-shadow:0 20px 50px rgba(20,32,55,.10)}.login-card h1{margin:8px 0}.login-card p{color:#718096;line-height:1.6}.login-card .btn{width:100%;margin-top:12px}.btn.secondary{background:#e8eef7;color:#1a2942}.brand.dark{color:#172033;margin-left:0}

/* ===== Hospeda Master CRM - UI refinement 0.0.1.1 ===== */
:root{
  --hm-bg:#f5f7fb;
  --hm-surface:#ffffff;
  --hm-border:#e7ebf2;
  --hm-text:#172033;
  --hm-muted:#738095;
  --hm-primary:#5b5bd6;
  --hm-primary-dark:#4646c3;
  --hm-accent:#28b98a;
  --hm-danger:#dc4c64;
  --hm-shadow:0 24px 70px rgba(24,36,58,.14);
}
body{background:linear-gradient(180deg,#f7f9fc 0%,#eef3f8 100%);font-weight:400}
.login-wrap{min-height:100vh;display:grid;place-items:center;padding:22px}
.login-card{
  width:min(470px,100%);
  background:rgba(255,255,255,.98);
  border:1px solid rgba(226,232,240,.9);
  border-radius:28px;
  padding:34px;
  box-shadow:var(--hm-shadow)
}
.login-card .brand{font-size:1.375rem;letter-spacing:-.35px;margin-bottom:24px}
.login-card small{display:block;text-transform:uppercase;letter-spacing:.08em;font-size:0.6875rem;color:#8995a8}
.login-card h1{font-size:1.875rem;line-height:1.15;letter-spacing:-.6px;margin:8px 0 12px}
.login-card p{font-size:0.875rem;color:var(--hm-muted);margin:0 0 22px}
.login-card .btn{min-height:46px;border-radius:13px;font-size:0.875rem;box-shadow:none}
.login-card .btn.secondary{background:#eef1f6;color:#445066}
.login-card .btn.secondary:hover{background:#e6eaf1}

.hm-swal-popup{
  border-radius:24px !important;
  padding:28px 28px 24px !important;
  box-shadow:0 28px 85px rgba(15,23,42,.22) !important;
  width:min(520px,calc(100vw - 28px)) !important;
}
.hm-swal-title{
  font-size:1.5rem !important;
  font-weight:700 !important;
  color:var(--hm-text) !important;
  letter-spacing:-.4px !important;
  padding:0 !important;
  margin:2px 0 6px !important;
}
.hm-swal-html{margin:0 !important;padding:0 !important}
.hm-swal-actions{margin:22px 0 0 !important;gap:10px !important}
.hm-swal-confirm,.hm-swal-cancel{
  min-width:135px !important;
  min-height:44px !important;
  border-radius:12px !important;
  font-size:0.875rem !important;
  font-weight:650 !important;
  box-shadow:none !important;
  margin:0 !important;
}
.hm-swal-confirm{background:var(--hm-primary) !important}
.hm-swal-confirm:hover{background:var(--hm-primary-dark) !important}
.hm-swal-cancel{background:#eef1f6 !important;color:#4f5b6d !important}
.hm-form{display:grid;gap:14px;margin-top:18px;text-align:left}
.hm-field{display:grid;gap:7px}
.hm-label{font-size:0.75rem;font-weight:650;color:#465267}
.hm-input{
  width:100%;
  height:46px;
  border:1px solid #dce2eb;
  border-radius:12px;
  padding:0 13px;
  font:inherit;
  font-size:0.875rem;
  color:var(--hm-text);
  background:#fbfcfe;
  outline:none;
  transition:.18s ease;
}
.hm-input::placeholder{color:#a4adba}
.hm-input:focus{
  border-color:#8f93f3;
  background:#fff;
  box-shadow:0 0 0 4px rgba(91,91,214,.10)
}
.hm-form-note{
  display:flex;
  gap:9px;
  align-items:flex-start;
  padding:11px 12px;
  border-radius:12px;
  background:#f3f6fb;
  color:#667388;
  font-size:0.75rem;
  line-height:1.45;
}
.hm-form-note strong{color:#455166}
@media(max-width:520px){
  .login-card{padding:26px 20px;border-radius:22px}
  .login-card h1{font-size:1.625rem}
  .hm-swal-popup{padding:24px 18px 20px !important;border-radius:20px !important}
  .hm-swal-actions{display:grid !important;grid-template-columns:1fr !important;width:100% !important}
  .hm-swal-confirm,.hm-swal-cancel{width:100% !important}
}


/* ===== Atualização 0.0.2: espaçamento consistente + responsividade ===== */
:root{
  --hm-gap:16px;
  --hm-radius:18px;
}
html,body{max-width:100%;overflow-x:hidden}
body{min-width:0}
.shell{
  min-height:100vh;
  display:grid;
  grid-template-columns:250px minmax(0,1fr);
  gap:0;
}
.content{
  width:100%;
  max-width:none;
  min-width:0;
  margin:0;
  padding:var(--hm-gap);
  overflow-x:hidden;
}
.content > *{min-width:0}
header{
  margin:0 0 var(--hm-gap);
}
.hero{
  margin:0;
  border-radius:var(--hm-radius);
}
.grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:var(--hm-gap);
  margin:var(--hm-gap) 0;
}
.catalog{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:var(--hm-gap);
}
.panel + .panel,
.panel + .catalog,
.catalog + .panel{
  margin-top:var(--hm-gap);
}
.card,.panel,.product-card{
  min-width:0;
  border-radius:var(--hm-radius);
}
.updates{
  gap:var(--hm-gap);
}
.update-row{
  min-width:0;
}
img,svg,video,canvas{max-width:100%;height:auto}
table{max-width:100%}

@media(max-width:900px){
  .shell{
    display:block;
    min-height:100vh;
  }
  .sidebar{
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    top:auto;
    width:100%;
    padding:8px max(10px,env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));
    background:rgba(16,24,39,.98);
    backdrop-filter:blur(14px);
    z-index:1000;
    border-top:1px solid rgba(255,255,255,.08);
  }
  .sidebar .brand{display:none}
  .sidebar nav{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px;
    overflow:visible;
  }
  .sidebar nav a{
    min-width:0;
    padding:10px 8px;
    border-radius:12px;
    text-align:center;
    white-space:normal;
    font-size:0.75rem;
    line-height:1.2;
  }
  .content{
    padding:var(--hm-gap);
    padding-bottom:calc(82px + env(safe-area-inset-bottom));
  }
  .grid,.catalog{
    grid-template-columns:1fr;
    gap:var(--hm-gap);
  }
  .hero{
    display:grid;
    gap:var(--hm-gap);
  }
  .hero .btn{width:100%}
  .update-row{
    display:grid;
    gap:12px;
  }
  .panel-head{
    align-items:flex-start;
    flex-wrap:wrap;
  }
}
@media(max-width:520px){
  :root{--hm-gap:14px}
  header h1{font-size:1.5625rem}
  .hero{padding:22px}
  .hero h2{font-size:1.5rem}
  .card,.panel,.product-card{border-radius:16px}
  .content{padding-left:var(--hm-gap);padding-right:var(--hm-gap)}
}

.hm-install-box{text-align:center;padding-top:8px}
.hm-install-box p{color:#667388;line-height:1.6;margin:12px auto 0;max-width:390px;font-size:0.875rem}
.hm-install-icon{width:66px;height:66px;border-radius:20px;display:grid;place-items:center;margin:0 auto;background:#101827;color:#61d9b4;font-weight:800;font-size:1.3125rem;letter-spacing:-.5px;box-shadow:0 10px 26px rgba(16,24,39,.18)}
.hm-install-tip{margin-top:14px;padding:11px 12px;border-radius:12px;background:#f3f6fb;color:#6b778a;font-size:0.75rem;line-height:1.5}


/* ===== Atualização 0.0.2.1: refinamento do modal de instalação ===== */
.hm-install-popup{
  border-radius:26px !important;
}
.hm-install-title{
  font-size:1.5625rem !important;
  letter-spacing:-.5px !important;
}
.hm-install-html{margin:0 !important}
.hm-install-actions{
  margin-top:18px !important;
  display:grid !important;
  grid-template-columns:1fr 1fr;
  gap:12px !important;
  width:100%;
}
.hm-install-confirm,
.hm-install-cancel{
  width:100% !important;
  min-height:48px !important;
  border-radius:14px !important;
  font-size:0.875rem !important;
  font-weight:700 !important;
  margin:0 !important;
  transition:all .18s ease !important;
  border:1px solid transparent !important;
  box-shadow:none !important;
}
.hm-install-confirm{
  background:linear-gradient(135deg,#5b5bd6 0%,#4d7df0 100%) !important;
  color:#fff !important;
}
.hm-install-confirm:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 20px rgba(77,125,240,.22) !important;
}
.hm-install-cancel{
  background:#ffffff !important;
  color:#556274 !important;
  border-color:#dbe3ee !important;
}
.hm-install-cancel:hover{
  background:#f8fafc !important;
  border-color:#cfd8e5 !important;
}
.hm-install-box{
  text-align:center;
  padding-top:6px;
}
.hm-install-box p{
  color:#667388;
  line-height:1.65;
  margin:12px auto 0;
  max-width:390px;
  font-size:0.875rem;
}
.hm-install-icon{
  width:72px;
  height:72px;
  border-radius:22px;
  display:grid;
  place-items:center;
  margin:0 auto;
  background:linear-gradient(180deg,#111a2b 0%,#1e3355 100%);
  color:#61d9b4;
  font-weight:800;
  font-size:1.375rem;
  letter-spacing:-.5px;
  box-shadow:0 16px 28px rgba(16,24,39,.18);
}
.hm-install-tip{
  margin-top:14px;
  padding:12px 13px;
  border-radius:14px;
  background:#f5f8fc;
  color:#6b778a;
  font-size:0.75rem;
  line-height:1.55;
  border:1px solid #e7edf5;
}
@media(max-width:520px){
  .hm-install-actions{
    grid-template-columns:1fr !important;
  }
  .hm-install-confirm,
  .hm-install-cancel{
    min-height:46px !important;
  }
}



/* ===== Atualização 0.0.3: modal PWA profissional ===== */
.hm-install-popup.swal2-popup{
  width:min(470px,calc(100vw - 28px)) !important;
  padding:30px 28px 24px !important;
  border:1px solid rgba(226,232,240,.9) !important;
  border-radius:28px !important;
  background:#fff !important;
  box-shadow:0 30px 90px rgba(15,23,42,.24) !important;
}
.hm-install-title.swal2-title{
  margin:0 !important;
  padding:0 !important;
  color:#172033 !important;
  font-size:1.5625rem !important;
  line-height:1.2 !important;
  font-weight:750 !important;
  letter-spacing:-.55px !important;
}
.hm-install-html.swal2-html-container{
  margin:0 !important;
  padding:0 !important;
}
.hm-install-box{padding-top:18px;text-align:center}
.hm-install-icon{
  width:76px;height:76px;margin:0 auto 16px;
  display:grid;place-items:center;
  border-radius:23px;
  background:linear-gradient(145deg,#101827,#22395e);
  box-shadow:0 14px 30px rgba(16,24,39,.20);
}
.hm-install-icon span{
  color:#67e0bb;font-size:1.4375rem;font-weight:850;letter-spacing:-1px
}
.hm-install-box p{
  max-width:380px;margin:0 auto;
  color:#647187;font-size:0.875rem;line-height:1.65
}
.hm-install-benefits{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin-top:18px;
}
.hm-install-benefits span{
  min-width:0;
  padding:9px 8px;
  border:1px solid #e7edf5;
  border-radius:12px;
  background:#f8fafc;
  color:#536176;
  font-size:0.6875rem;
  font-weight:650;
}
.hm-install-tip{
  margin-top:16px;padding:12px 13px;
  border:1px solid #e4eaf2;border-radius:13px;
  background:#f6f8fb;color:#667388;
  font-size:0.75rem;line-height:1.55
}
.hm-install-actions.swal2-actions{
  width:100% !important;
  margin:22px 0 0 !important;
  padding:0 !important;
  display:grid !important;
  grid-template-columns:minmax(0,1.35fr) minmax(0,.85fr) !important;
  gap:10px !important;
}
.hm-install-actions .swal2-styled{
  margin:0 !important;
}
.hm-install-confirm.swal2-confirm,
.hm-install-cancel.swal2-cancel{
  width:100% !important;
  min-width:0 !important;
  min-height:48px !important;
  padding:0 16px !important;
  border-radius:13px !important;
  font-family:inherit !important;
  font-size:0.8125rem !important;
  font-weight:750 !important;
  line-height:1 !important;
  outline:none !important;
  box-shadow:none !important;
  transition:transform .16s ease,box-shadow .16s ease,background .16s ease !important;
}
.hm-install-confirm.swal2-confirm{
  border:1px solid #5358da !important;
  background:linear-gradient(135deg,#5d61dd,#4b7ded) !important;
  color:#fff !important;
  box-shadow:0 9px 20px rgba(78,99,226,.20) !important;
}
.hm-install-confirm.swal2-confirm:hover{
  transform:translateY(-1px);
  box-shadow:0 13px 25px rgba(78,99,226,.28) !important;
}
.hm-install-cancel.swal2-cancel{
  border:1px solid #d8e0eb !important;
  background:#fff !important;
  color:#566377 !important;
}
.hm-install-cancel.swal2-cancel:hover{
  background:#f7f9fc !important;
  border-color:#c9d3df !important;
}
@media(max-width:520px){
  .hm-install-popup.swal2-popup{padding:25px 18px 20px !important;border-radius:22px !important}
  .hm-install-title.swal2-title{font-size:1.4375rem !important}
  .hm-install-benefits{grid-template-columns:1fr}
  .hm-install-actions.swal2-actions{grid-template-columns:1fr !important}
  .hm-install-confirm.swal2-confirm,.hm-install-cancel.swal2-cancel{min-height:47px !important}
}



/* ===== Atualização 0.0.4: padrão global de botões ===== */
:root{
  --hm-btn-height:46px;
  --hm-btn-radius:12px;
  --hm-btn-font-size:0.8125rem;
  --hm-btn-font-weight:700;
  --hm-btn-primary:#5661d8;
  --hm-btn-primary-hover:#4853c5;
  --hm-btn-secondary-bg:#eef2f7;
  --hm-btn-secondary-text:#4f5d72;
  --hm-btn-secondary-border:#dce3ec;
  --hm-btn-danger:#d95362;
  --hm-btn-danger-hover:#c74655;
  --hm-btn-success:#24a77c;
  --hm-btn-success-hover:#1f916c;
}

/* Botões comuns */
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
.btn,
.hm-btn,
.swal2-styled{
  min-height:var(--hm-btn-height);
  border-radius:var(--hm-btn-radius) !important;
  padding:0 18px !important;
  font-family:inherit !important;
  font-size:var(--hm-btn-font-size) !important;
  font-weight:var(--hm-btn-font-weight) !important;
  line-height:1 !important;
  letter-spacing:0 !important;
  border:1px solid transparent;
  box-shadow:none !important;
  cursor:pointer;
  transition:background .16s ease,border-color .16s ease,color .16s ease,transform .16s ease !important;
}

/* Primário */
.btn,
.hm-btn-primary,
.swal2-confirm{
  background:var(--hm-btn-primary) !important;
  color:#fff !important;
  border-color:var(--hm-btn-primary) !important;
}
.btn:hover,
.hm-btn-primary:hover,
.swal2-confirm:hover{
  background:var(--hm-btn-primary-hover) !important;
  border-color:var(--hm-btn-primary-hover) !important;
  transform:translateY(-1px);
}

/* Secundário / cancelar */
.btn.secondary,
.hm-btn-secondary,
.swal2-cancel{
  background:var(--hm-btn-secondary-bg) !important;
  color:var(--hm-btn-secondary-text) !important;
  border-color:var(--hm-btn-secondary-border) !important;
}
.btn.secondary:hover,
.hm-btn-secondary:hover,
.swal2-cancel:hover{
  background:#e6ebf2 !important;
  border-color:#cfd8e4 !important;
  transform:translateY(-1px);
}

/* Sucesso */
.hm-btn-success{
  background:var(--hm-btn-success) !important;
  color:#fff !important;
  border-color:var(--hm-btn-success) !important;
}
.hm-btn-success:hover{
  background:var(--hm-btn-success-hover) !important;
  border-color:var(--hm-btn-success-hover) !important;
}

/* Perigo */
.hm-btn-danger,
.swal2-deny{
  background:var(--hm-btn-danger) !important;
  color:#fff !important;
  border-color:var(--hm-btn-danger) !important;
}
.hm-btn-danger:hover,
.swal2-deny:hover{
  background:var(--hm-btn-danger-hover) !important;
  border-color:var(--hm-btn-danger-hover) !important;
}

/* Tamanhos padronizados */
.hm-btn-sm{
  min-height:38px !important;
  padding:0 14px !important;
  font-size:0.75rem !important;
}
.hm-btn-lg{
  min-height:50px !important;
  padding:0 22px !important;
  font-size:0.875rem !important;
}

/* Estado desabilitado */
button:disabled,
.btn:disabled,
.hm-btn:disabled,
.swal2-styled:disabled{
  opacity:.55 !important;
  cursor:not-allowed !important;
  transform:none !important;
}

/* SweetAlert: todos usam o mesmo sistema */
.swal2-actions{
  gap:10px !important;
}
.swal2-actions .swal2-styled{
  margin:0 !important;
}

/* PWA também segue o mesmo padrão global */
.hm-install-confirm.swal2-confirm,
.hm-install-cancel.swal2-cancel{
  min-height:var(--hm-btn-height) !important;
  border-radius:var(--hm-btn-radius) !important;
  font-size:var(--hm-btn-font-size) !important;
  font-weight:var(--hm-btn-font-weight) !important;
  box-shadow:none !important;
}
.hm-install-confirm.swal2-confirm{
  background:var(--hm-btn-primary) !important;
  border-color:var(--hm-btn-primary) !important;
}
.hm-install-confirm.swal2-confirm:hover{
  background:var(--hm-btn-primary-hover) !important;
  border-color:var(--hm-btn-primary-hover) !important;
}
.hm-install-cancel.swal2-cancel{
  background:var(--hm-btn-secondary-bg) !important;
  color:var(--hm-btn-secondary-text) !important;
  border-color:var(--hm-btn-secondary-border) !important;
}
.hm-install-cancel.swal2-cancel:hover{
  background:#e6ebf2 !important;
  border-color:#cfd8e4 !important;
}

/* Mobile */
@media(max-width:520px){
  button,
  input[type="button"],
  input[type="submit"],
  input[type="reset"],
  .btn,
  .hm-btn,
  .swal2-styled{
    min-height:46px;
  }
}



/* ===== Atualização 0.0.5: botões do acesso sem largura forçada ===== */
.login-card .btn{
  width:auto !important;
  margin-top:0 !important;
}

.login-actions{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  flex-wrap:wrap;
  gap:10px;
  margin-top:20px;
}

.login-actions .btn{
  min-width:138px;
  width:auto !important;
  min-height:46px !important;
  padding:0 18px !important;
}

.login-actions #setupBtn{
  min-width:176px;
}

@media(max-width:430px){
  .login-actions{
    display:grid;
    grid-template-columns:1fr;
    width:100%;
  }

  .login-actions .btn,
  .login-actions #setupBtn{
    width:100% !important;
    min-width:0;
  }
}



/* ===== Atualização 0.0.6: refinamento final dos botões do acesso Supremo ===== */
.login-actions{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  flex-wrap:wrap;
  gap:12px !important;
  margin-top:22px !important;
}

.login-actions .btn{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
  white-space:nowrap !important;
  width:188px !important;
  min-width:188px !important;
  max-width:188px !important;
  min-height:46px !important;
  height:46px !important;
  padding:0 16px !important;
  line-height:1.2 !important;
  font-size:0.8125rem !important;
  font-weight:700 !important;
  letter-spacing:0 !important;
  vertical-align:middle !important;
}

.login-actions #loginBtn{
  background:#5661d8 !important;
  border-color:#5661d8 !important;
  color:#ffffff !important;
}

.login-actions #setupBtn{
  background:#eef2f7 !important;
  border-color:#d7e0ea !important;
  color:#425166 !important;
}

.login-actions #setupBtn:hover{
  background:#e7ecf3 !important;
  border-color:#ccd7e4 !important;
  color:#344258 !important;
}

@media(max-width:460px){
  .login-actions{
    display:grid !important;
    grid-template-columns:1fr !important;
    width:100% !important;
  }

  .login-actions .btn{
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
  }
}



/* ===== Atualização 0.0.8: centralização visual dos botões ===== */
.update-row{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto !important;
  align-items:center !important;
  gap:16px !important;
}

.update-row > .btn,
.update-row > button,
.update-row .js-update{
  justify-self:center !important;
  align-self:center !important;
  text-align:center !important;
}

.panel .btn,
.card .btn,
.hero .btn,
.login-actions .btn{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
}

.actions-center,
.hm-actions-center{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:12px !important;
  flex-wrap:wrap !important;
}

.actions-center .btn,
.hm-actions-center .btn{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
}

@media(max-width:900px){
  .update-row{
    grid-template-columns:1fr !important;
  }
  .update-row > .btn,
  .update-row > button,
  .update-row .js-update{
    justify-self:center !important;
  }
}



/* ===== Atualizações 0.0.9 / 0.1.0 ===== */
.grid{
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr)) !important;
}
.update-row{
  grid-template-columns:1fr !important;
}
.update-row > div:first-child{
  text-align:left;
}
.update-row > .btn,
.update-row > button,
.update-row > .status{
  justify-self:center !important;
}
.settings-grid,
.module-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:var(--hm-gap);
}
.setting-card,
.module-card{
  background:#fff;
  border:1px solid #e4e9f1;
  border-radius:var(--hm-radius);
  padding:22px;
  min-width:0;
  box-shadow:0 10px 30px rgba(20,32,55,.05);
}
.setting-card h3,
.module-card h3{margin:6px 0}
.setting-card p,
.module-card p{color:#718096;line-height:1.55;margin:7px 0 0}
.setting-value{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:72px;
  min-height:38px;
  padding:0 12px;
  border-radius:12px;
  background:#eef2f7;
  color:#344258;
  font-weight:750;
}
.font-preview{
  margin-top:18px;
  padding:18px;
  border:1px dashed #d7e0ea;
  border-radius:14px;
  background:#fbfcfe;
}
.font-preview strong{display:block;margin-bottom:6px}
.module-card .status{margin-top:14px}
.product-actions{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-top:16px;
}
.pet-shell-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:var(--hm-gap);
}
.pet-intro{
  background:linear-gradient(135deg,#101827,#223453);
  color:#fff;
  border-radius:22px;
  padding:28px;
  margin-bottom:var(--hm-gap);
}
.pet-intro p{color:#ccd5e4;max-width:760px;line-height:1.6}
@media(max-width:700px){
  .pet-shell-header{flex-direction:column}
}



/* ===== Atualização 0.1.1 ===== */
.hm-remember{
  display:grid;
  grid-template-columns:20px 1fr;
  gap:10px;
  align-items:flex-start;
  padding:12px;
  border:1px solid #e1e7ef;
  border-radius:13px;
  background:#f8fafc;
  cursor:pointer;
}
.hm-remember input{position:absolute;opacity:0;pointer-events:none}
.hm-check{
  width:20px;height:20px;border:1px solid #cbd5e1;border-radius:6px;
  background:#fff;display:grid;place-items:center;margin-top:1px;
}
.hm-remember input:checked + .hm-check{
  background:#5661d8;border-color:#5661d8;
}
.hm-remember input:checked + .hm-check:after{
  content:'✓';color:#fff;font-size:.75rem;font-weight:800;
}
.hm-remember strong{display:block;color:#344258;font-size:.8rem}
.hm-remember small{display:block;color:#7a8799;font-size:.7rem;line-height:1.4;margin-top:2px}

.table-wrap{width:100%;overflow-x:auto}
.hm-table{width:100%;border-collapse:collapse;min-width:900px}
.hm-table th,.hm-table td{padding:13px 12px;border-bottom:1px solid #e8edf4;text-align:left;vertical-align:top}
.hm-table th{font-size:.72rem;color:#718096;text-transform:uppercase;letter-spacing:.04em}
.hm-table td{font-size:.82rem}
.row-note{display:block;color:#8490a1;margin-top:4px;line-height:1.35}
.status.fail{background:#fee2e2;color:#a33143}

.pagination{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:7px;
  flex-wrap:wrap;
  margin-top:20px;
}
.pagination a{
  min-width:38px;height:38px;padding:0 10px;
  border:1px solid #dce3ec;border-radius:10px;
  display:inline-flex;align-items:center;justify-content:center;
  background:#fff;color:#526075;font-weight:700;font-size:.78rem;
}
.pagination a.active{background:#5661d8;color:#fff;border-color:#5661d8}

@media(max-width:900px){
  .sidebar nav{
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    align-items:stretch;
  }
  .sidebar nav > a.hm-mobile-extra{display:none !important}
  .hm-mobile-more{
    min-width:0 !important;
    width:100% !important;
    min-height:52px !important;
    padding:7px 5px !important;
    border:0 !important;
    border-radius:12px !important;
    background:transparent !important;
    color:#dbe4f1 !important;
    display:flex !important;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:4px;
  }
  .hm-mobile-more:hover{background:#1b2639 !important;transform:none !important}
  .hm-mobile-more small{font-size:.65rem;font-weight:650}
  .hm-hamburger{display:grid;gap:3px;width:18px}
  .hm-hamburger i{display:block;height:2px;background:currentColor;border-radius:2px}
  .hm-mobile-menu-overlay{
    position:fixed;inset:0;z-index:2000;
    background:rgba(15,23,42,.42);
    display:flex;align-items:flex-end;
    opacity:0;visibility:hidden;
    transition:.18s ease;
  }
  .hm-mobile-menu-overlay.open{opacity:1;visibility:visible}
  .hm-mobile-menu-sheet{
    width:100%;
    max-height:78vh;
    overflow:auto;
    background:#fff;
    border-radius:24px 24px 0 0;
    padding:16px 16px calc(18px + env(safe-area-inset-bottom));
    transform:translateY(16px);
    transition:.18s ease;
  }
  .hm-mobile-menu-overlay.open .hm-mobile-menu-sheet{transform:translateY(0)}
  .hm-mobile-menu-head{
    display:flex;align-items:center;justify-content:space-between;
    gap:12px;padding:4px 2px 14px;
  }
  .hm-mobile-menu-head strong{font-size:1rem;color:#172033}
  .hm-mobile-close{
    width:38px !important;min-width:38px !important;height:38px !important;min-height:38px !important;
    padding:0 !important;border-radius:50% !important;background:#eef2f7 !important;color:#425166 !important;
    font-size:1.2rem !important;
  }
  .hm-mobile-menu-list{display:grid;gap:8px}
  .hm-mobile-menu-list a{
    display:flex;align-items:center;
    min-height:46px;padding:0 14px;border:1px solid #e4e9f1;border-radius:12px;
    color:#344258;background:#fff;font-weight:650;font-size:.8rem;
  }
  .hm-mobile-menu-list a.active{background:#eef2ff;border-color:#d9dcff;color:#4d57c9}
  body.hm-menu-open{overflow:hidden}
}



/* ===== Atualização 0.1.2: notificações ===== */
.hm-textarea{min-height:110px !important;height:auto !important;padding:12px 13px !important;resize:vertical}
.hm-header-actions{display:flex;align-items:center;gap:10px;margin-left:auto}
.hm-notification-bell{
  position:relative;width:44px;height:44px;border:1px solid #dde5ef;border-radius:13px;
  background:#fff;display:grid;place-items:center;font-size:1rem;box-shadow:0 7px 18px rgba(20,32,55,.06)
}
.hm-notification-count{
  position:absolute;right:-5px;top:-5px;min-width:20px;height:20px;padding:0 5px;
  border-radius:999px;background:#d95362;color:#fff;border:2px solid #fff;
  display:inline-flex;align-items:center;justify-content:center;font-size:.62rem;font-weight:800
}
.notification-item{
  padding:16px 0;border-bottom:1px solid #e7edf4;cursor:pointer
}
.notification-item:last-child{border-bottom:0}
.notification-item.unread{padding-left:14px;border-left:3px solid #5661d8}
.notification-item > div{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}
.notification-item strong{color:#263247}
.notification-item small{color:#8a95a5;font-size:.68rem;white-space:nowrap}
.notification-item p{color:#667388;line-height:1.55;margin:7px 0 10px}
@media(max-width:600px){
  .content > header{flex-wrap:wrap}
  .hm-header-actions{margin-left:0}
  .notification-item > div{display:grid;gap:4px}
}



/* ===== Atualização 0.1.3: ZERO rolagem horizontal ===== */
html{
  width:100%;
  max-width:100%;
  overflow-x:hidden;
}
body{
  width:100%;
  max-width:100%;
  overflow-x:hidden !important;
}
*,
*::before,
*::after{
  box-sizing:border-box;
}
.shell,
.content,
main,
section,
article,
header,
footer,
aside,
nav,
form,
fieldset,
div{
  min-width:0;
  max-width:100%;
}
img,
picture,
svg,
video,
canvas,
iframe{
  max-width:100% !important;
}
img,
video{
  height:auto;
}
pre,
code{
  max-width:100%;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  word-break:break-word;
}
input,
select,
textarea,
button{
  max-width:100%;
  min-width:0;
}
.hm-input,
.swal2-input,
.swal2-select,
.swal2-textarea{
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
}
.swal2-popup,
.hm-swal-popup,
.hm-install-popup{
  max-width:calc(100vw - 24px) !important;
}
.swal2-html-container,
.hm-swal-html,
.hm-install-html{
  max-width:100% !important;
  overflow-x:hidden !important;
}
.hm-form,
.hm-field{
  min-width:0;
  max-width:100%;
}
.grid,
.catalog,
.settings-grid,
.module-grid{
  min-width:0;
}
.grid > *,
.catalog > *,
.settings-grid > *,
.module-grid > *{
  min-width:0;
  max-width:100%;
}
.card,
.panel,
.product-card,
.setting-card,
.module-card,
.update-row{
  min-width:0;
  max-width:100%;
  overflow-wrap:anywhere;
}
.hero,
.pet-intro{
  min-width:0;
  max-width:100%;
}
.hero > *,
.pet-intro > *{
  min-width:0;
  max-width:100%;
}
.sidebar{
  max-width:100%;
}
.sidebar nav,
.sidebar nav a{
  min-width:0;
  max-width:100%;
}
.hm-mobile-menu-sheet,
.hm-mobile-menu-list,
.hm-mobile-menu-list a{
  min-width:0;
  max-width:100%;
}

/* Tabelas nunca geram barra horizontal */
.table-wrap{
  width:100% !important;
  max-width:100% !important;
  overflow-x:hidden !important;
}
.hm-table{
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  table-layout:fixed;
  border-collapse:collapse;
}
.hm-table th,
.hm-table td{
  min-width:0;
  max-width:100%;
  white-space:normal !important;
  overflow-wrap:anywhere;
  word-break:break-word;
}
.hm-table th{
  hyphens:auto;
}

/* Paginação sempre quebra linha sem ultrapassar a tela */
.pagination{
  max-width:100%;
  overflow:hidden;
}
.pagination a{
  flex:0 0 auto;
}

/* Botões e grupos nunca estouram */
.login-actions,
.actions-center,
.hm-actions-center,
.product-actions,
.hm-header-actions,
.hm-swal-actions,
.hm-install-actions{
  min-width:0;
  max-width:100%;
}
.login-actions .btn,
.actions-center .btn,
.hm-actions-center .btn,
.product-actions .btn,
.hm-header-actions .btn{
  max-width:100% !important;
}

/* MOBILE: tabelas viram cartões verticais */
@media(max-width:900px){
  .content{
    width:100% !important;
    max-width:100% !important;
    overflow-x:hidden !important;
  }

  .table-wrap{
    overflow:visible !important;
  }

  .hm-table{
    display:block;
    width:100% !important;
  }

  .hm-table thead{
    display:none;
  }

  .hm-table tbody{
    display:grid;
    gap:var(--hm-gap);
    width:100%;
  }

  .hm-table tr{
    display:block;
    width:100%;
    max-width:100%;
    background:#fff;
    border:1px solid #e4e9f1;
    border-radius:16px;
    padding:8px 14px;
    box-shadow:0 7px 18px rgba(20,32,55,.04);
  }

  .hm-table td{
    display:grid;
    grid-template-columns:minmax(92px,34%) minmax(0,1fr);
    gap:12px;
    width:100%;
    max-width:100%;
    padding:10px 0 !important;
    border-bottom:1px solid #edf1f6 !important;
    text-align:left !important;
    overflow-wrap:anywhere;
    word-break:break-word;
  }

  .hm-table td:last-child{
    border-bottom:0 !important;
  }

  .hm-table td::before{
    content:attr(data-label);
    color:#7a8799;
    font-size:.68rem;
    font-weight:750;
    text-transform:uppercase;
    letter-spacing:.04em;
    overflow-wrap:anywhere;
  }

  .hm-table td[colspan]{
    display:block;
  }

  .hm-table td[colspan]::before{
    display:none;
  }

  .row-note{
    white-space:normal !important;
    overflow-wrap:anywhere;
    word-break:break-word;
  }

  .notification-item,
  .notification-item > div{
    min-width:0;
    max-width:100%;
  }

  .notification-item p,
  .notification-item strong,
  .notification-item small{
    overflow-wrap:anywhere;
    word-break:break-word;
  }
}

@media(max-width:520px){
  .content{
    padding-left:var(--hm-gap) !important;
    padding-right:var(--hm-gap) !important;
  }

  .hm-table td{
    grid-template-columns:1fr;
    gap:4px;
  }

  .hm-table td::before{
    margin-bottom:1px;
  }

  .swal2-popup,
  .hm-swal-popup,
  .hm-install-popup{
    width:calc(100vw - 20px) !important;
    max-width:calc(100vw - 20px) !important;
    margin:10px !important;
  }

  .hm-install-benefits,
  .settings-grid,
  .module-grid,
  .grid,
  .catalog{
    grid-template-columns:1fr !important;
  }
}



/* ===== Atualização 0.1.4: SweetAlert com botão fechar ===== */
.swal2-popup,
.hm-swal-popup,
.hm-install-popup{
  position:relative;
}

.swal2-close,
.hm-swal-popup .swal2-close,
.hm-install-popup .swal2-close{
  position:absolute !important;
  top:12px !important;
  right:12px !important;
  width:36px !important;
  min-width:36px !important;
  height:36px !important;
  min-height:36px !important;
  border-radius:999px !important;
  border:1px solid #dce3ec !important;
  background:#f8fafc !important;
  color:#607086 !important;
  font-size:1.5rem !important;
  line-height:1 !important;
  font-weight:400 !important;
  display:grid !important;
  place-items:center !important;
  padding:0 !important;
  margin:0 !important;
  box-shadow:none !important;
  transition:background .16s ease,border-color .16s ease,color .16s ease,transform .16s ease !important;
}

.swal2-close:hover,
.hm-swal-popup .swal2-close:hover,
.hm-install-popup .swal2-close:hover{
  background:#eef2f7 !important;
  border-color:#cfd8e4 !important;
  color:#344258 !important;
  transform:scale(1.03);
}

.swal2-close:focus{
  outline:none !important;
  box-shadow:0 0 0 3px rgba(86,97,216,.12) !important;
}

.swal2-title,
.hm-swal-title,
.hm-install-title{
  padding-right:46px !important;
}

@media(max-width:520px){
  .swal2-close,
  .hm-swal-popup .swal2-close,
  .hm-install-popup .swal2-close{
    top:10px !important;
    right:10px !important;
    width:34px !important;
    min-width:34px !important;
    height:34px !important;
    min-height:34px !important;
  }
  .swal2-title,
  .hm-swal-title,
  .hm-install-title{
    padding-right:40px !important;
  }
}



/* ===== Atualização 0.1.5: botão fixo de instalação no topo ===== */
.hm-top-install{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:7px !important;
  white-space:nowrap !important;
  width:auto !important;
  min-width:0 !important;
  max-width:100% !important;
}
.hm-top-install-icon{
  display:inline-grid;
  place-items:center;
  width:18px;
  height:18px;
  font-size:.85rem;
  font-weight:800;
}
.content > header .hm-header-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
  max-width:100%;
}
@media(max-width:600px){
  .content > header .hm-header-actions{
    width:100%;
    justify-content:center;
  }
  .hm-top-install{
    width:auto !important;
  }
}



/* ===== Atualização 0.1.6: alinhamento global do texto dos botões ===== */
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
.btn,
.hm-btn,
.swal2-styled,
.swal2-confirm,
.swal2-cancel,
.swal2-deny,
.hm-top-install,
.hm-mobile-more,
a.btn{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
  vertical-align:middle !important;
  white-space:normal !important;
  line-height:1.2 !important;
  gap:8px !important;
}

button > span,
.btn > span,
.hm-btn > span,
.swal2-styled > span,
a.btn > span{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
}

button *,
.btn *,
.hm-btn *,
.swal2-styled *,
a.btn *{
  text-align:center !important;
}

.login-actions .btn,
.actions-center .btn,
.hm-actions-center .btn,
.product-actions .btn,
.hm-header-actions .btn,
.update-row > .btn,
.update-row > button,
.update-row .js-update,
.pagination a,
.hm-mobile-menu-list a,
.sidebar nav a,
.content > header .btn{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
}

@media(max-width:520px){
  button,
  .btn,
  .hm-btn,
  .swal2-styled,
  a.btn{
    padding-left:14px !important;
    padding-right:14px !important;
  }
}



/* ===== Atualização 0.1.7: linha do tempo de atualizações ===== */
.hm-update-timeline{
  position:relative;
  display:grid;
  gap:0;
  margin-top:20px;
  max-width:100%;
}

.hm-update-timeline::before{
  content:'';
  position:absolute;
  left:16px;
  top:18px;
  bottom:18px;
  width:2px;
  background:#e3e9f1;
}

.hm-timeline-item{
  position:relative;
  display:grid;
  grid-template-columns:34px minmax(0,1fr);
  gap:12px;
  padding-bottom:16px;
  min-width:0;
  max-width:100%;
}

.hm-timeline-item:last-child{
  padding-bottom:0;
}

.hm-timeline-marker{
  position:relative;
  z-index:1;
  display:flex;
  justify-content:center;
  padding-top:21px;
}

.hm-timeline-marker span{
  width:14px;
  height:14px;
  border-radius:50%;
  border:3px solid #fff;
  background:#a8b3c3;
  box-shadow:0 0 0 2px #d8e0ea;
}

.hm-timeline-item.is-installed .hm-timeline-marker span{
  background:#24a77c;
  box-shadow:0 0 0 2px #bfeadb;
}

.hm-timeline-item.is-pending .hm-timeline-marker span{
  background:#5661d8;
  box-shadow:0 0 0 2px #d8dcff;
}

.hm-timeline-card{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:20px;
  width:100%;
  max-width:100%;
  min-width:0;
  padding:18px 20px;
  border:1px solid #e4e9f1;
  border-radius:16px;
  background:#fff;
}

.hm-timeline-main{
  min-width:0;
}

.hm-timeline-version{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.hm-timeline-version strong{
  color:#172033;
  font-size:.95rem;
}

.hm-timeline-main p{
  margin:8px 0 0;
  color:#647187;
  line-height:1.5;
  overflow-wrap:anywhere;
}

.hm-timeline-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px 18px;
  margin-top:10px;
  color:#8793a5;
  font-size:.72rem;
}

.hm-timeline-meta strong{
  color:#627085;
}

.hm-timeline-action{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  min-width:150px;
}

.hm-timeline-action .btn{
  margin-left:auto !important;
  width:auto !important;
  min-width:142px !important;
  text-align:center !important;
}

.hm-timeline-check{
  width:36px;
  height:36px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#ddf8ee;
  color:#16805f;
  font-weight:850;
  font-size:1rem;
}

.status.pending{
  background:#eef0ff;
  color:#4e57c7;
}

@media(max-width:700px){
  .hm-update-timeline::before{
    left:10px;
  }

  .hm-timeline-item{
    grid-template-columns:22px minmax(0,1fr);
    gap:8px;
  }

  .hm-timeline-marker{
    padding-top:22px;
  }

  .hm-timeline-marker span{
    width:12px;
    height:12px;
  }

  .hm-timeline-card{
    grid-template-columns:1fr;
    gap:14px;
    padding:16px;
  }

  .hm-timeline-action{
    width:100%;
    min-width:0;
    justify-content:flex-end;
  }

  .hm-timeline-action .btn{
    margin-left:auto !important;
    width:auto !important;
    min-width:142px !important;
  }

  .hm-timeline-check{
    margin-left:auto;
  }
}

@media(max-width:420px){
  .hm-timeline-action .btn{
    width:100% !important;
    min-width:0 !important;
  }
}



/* ===== Atualização 0.1.8: menu à esquerda + ícones contextuais ===== */
.sidebar nav{
  align-items:stretch !important;
}

.sidebar nav > a{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:10px !important;
  width:100% !important;
  text-align:left !important;
  line-height:1.2 !important;
}

.hm-nav-icon{
  width:20px;
  min-width:20px;
  height:20px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 20px;
  color:currentColor;
}

.hm-nav-icon svg{
  display:block;
  width:18px;
  height:18px;
  stroke:currentColor;
  fill:none;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.hm-nav-label{
  min-width:0;
  overflow-wrap:anywhere;
}

.sidebar nav > a.active .hm-nav-icon{
  color:#7be3c3;
}

@media(max-width:900px){
  .sidebar nav > a{
    min-height:54px !important;
    padding:7px 5px !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:center !important;
    gap:4px !important;
    text-align:center !important;
  }

  .sidebar nav > a .hm-nav-icon{
    width:20px;
    min-width:20px;
    height:20px;
  }

  .sidebar nav > a .hm-nav-label{
    width:100%;
    text-align:center !important;
    font-size:.66rem;
    line-height:1.05;
  }

  .hm-mobile-menu-list a{
    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:10px !important;
    text-align:left !important;
  }

  .hm-mobile-menu-list a .hm-nav-label{
    text-align:left !important;
    font-size:.8rem;
  }
}



/* ===== Atualização 0.1.9: sem botão No/Não + menu Supremo permanente ===== */
.swal2-deny,
button.swal2-deny,
.hm-swal-popup .swal2-deny,
.hm-install-popup .swal2-deny{
  display:none !important;
  visibility:hidden !important;
  width:0 !important;
  min-width:0 !important;
  height:0 !important;
  min-height:0 !important;
  padding:0 !important;
  margin:0 !important;
  border:0 !important;
}

body[data-actor="supremo"] .sidebar nav{
  display:grid;
  grid-template-columns:1fr;
  gap:8px;
  align-items:stretch;
}

body[data-actor="supremo"] .sidebar nav > a{
  width:100% !important;
  justify-content:flex-start !important;
  text-align:left !important;
}

@media(max-width:900px){
  body[data-actor="supremo"] .sidebar nav{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:8px;
  }
  body[data-actor="supremo"] .sidebar nav > a{
    justify-content:center !important;
    text-align:center !important;
  }
  body[data-actor="supremo"] .hm-mobile-menu-list a{
    justify-content:flex-start !important;
    text-align:left !important;
  }
}



/* ===== Atualização 0.2.0: loading sem botões ===== */
.swal2-popup.hm-loading-state .swal2-actions,
.swal2-popup.swal2-loading .swal2-actions{
  display:none !important;
}
.swal2-loader{
  margin:18px auto 8px !important;
}



/* ===== Atualização 0.2.1: comportamento standalone ===== */
html[data-pwa-standalone="1"] .hm-top-install{
  display:none !important;
}


/* ===== Atualização 0.2.2: instalação PWA Android ===== */
.hm-top-install{touch-action:manipulation}


/* ===== Atualização 0.2.3: barra inferior essencial + menu lateral + sino no topo ===== */
.content > header{
  position:relative;
}

.content > header.hm-header-has-bell{
  padding-right:58px;
}

.content > header .hm-notification-bell{
  position:absolute !important;
  top:0 !important;
  right:0 !important;
  margin:0 !important;
  z-index:20;
}

.content > header .hm-header-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  min-width:0;
  max-width:100%;
}

@media(max-width:900px){
  .sidebar nav{
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    align-items:stretch !important;
  }

  .sidebar nav > a.hm-mobile-extra{
    display:none !important;
  }

  .hm-mobile-more{
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:center !important;
    gap:4px !important;
    width:100% !important;
    min-width:0 !important;
    min-height:54px !important;
    padding:7px 5px !important;
    border:0 !important;
    background:transparent !important;
    color:#dbe4f1 !important;
  }

  .hm-mobile-more small{
    font-size:.66rem !important;
    line-height:1 !important;
    color:inherit;
  }

  .hm-mobile-drawer-overlay{
    position:fixed;
    inset:0;
    z-index:2500;
    background:rgba(15,23,42,.46);
    opacity:0;
    visibility:hidden;
    transition:opacity .18s ease,visibility .18s ease;
    overflow:hidden;
  }

  .hm-mobile-drawer-overlay.open{
    opacity:1;
    visibility:visible;
  }

  .hm-mobile-drawer{
    position:absolute;
    top:0;
    left:0;
    bottom:0;
    width:min(320px,calc(100% - 42px));
    max-width:calc(100% - 42px) !important;
    background:#101827;
    color:#fff;
    padding:18px 14px calc(18px + env(safe-area-inset-bottom));
    transform:translateX(-102%);
    transition:transform .2s ease;
    overflow-y:auto;
    overflow-x:hidden;
    box-shadow:18px 0 42px rgba(15,23,42,.24);
  }

  .hm-mobile-drawer-overlay.open .hm-mobile-drawer{
    transform:translateX(0);
  }

  .hm-mobile-drawer-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:4px 4px 18px;
    border-bottom:1px solid rgba(255,255,255,.09);
    margin-bottom:12px;
  }

  .hm-mobile-drawer-head > div{
    min-width:0;
  }

  .hm-mobile-drawer-head strong{
    display:block;
    font-size:.95rem;
    color:#fff;
  }

  .hm-mobile-drawer-head small{
    display:block;
    margin-top:3px;
    color:#94a3b8;
    font-size:.68rem;
  }

  .hm-mobile-drawer .hm-mobile-close{
    width:38px !important;
    min-width:38px !important;
    height:38px !important;
    min-height:38px !important;
    padding:0 !important;
    border:1px solid rgba(255,255,255,.10) !important;
    border-radius:50% !important;
    background:#1b2639 !important;
    color:#fff !important;
  }

  .hm-mobile-drawer .hm-mobile-menu-list{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:7px !important;
  }

  .hm-mobile-drawer .hm-mobile-menu-list a{
    width:100% !important;
    min-height:46px !important;
    padding:0 12px !important;
    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:10px !important;
    border:0 !important;
    border-radius:11px !important;
    background:transparent !important;
    color:#c8d2e1 !important;
    text-align:left !important;
  }

  .hm-mobile-drawer .hm-mobile-menu-list a.active{
    background:#1b2639 !important;
    color:#fff !important;
  }

  .hm-mobile-drawer .hm-mobile-menu-list a .hm-nav-icon{
    color:#7be3c3;
  }

  .hm-mobile-drawer .hm-mobile-menu-list a .hm-nav-label{
    color:inherit !important;
    text-align:left !important;
    font-size:.8rem !important;
  }

  body.hm-menu-open{
    overflow:hidden !important;
  }

  .content > header.hm-header-has-bell{
    padding-right:54px !important;
  }

  .content > header .hm-notification-bell{
    top:0 !important;
    right:0 !important;
  }
}

@media(max-width:420px){
  .hm-mobile-drawer{
    width:calc(100% - 28px);
    max-width:calc(100% - 28px) !important;
  }
}



/* ===== Atualização 0.2.4: controles tipográficos por categoria ===== */
.hm-typography-card{
  grid-column:1 / -1;
}
.hm-font-controls{
  display:grid;
  gap:10px;
  margin-top:18px;
}
.hm-font-row{
  display:grid;
  grid-template-columns:42px minmax(0,1fr) auto auto;
  align-items:center;
  gap:12px;
  padding:12px;
  border:1px solid #e5eaf1;
  border-radius:14px;
  background:#fbfcfe;
  min-width:0;
}
.hm-font-row-icon{
  width:42px;
  height:42px;
  border-radius:12px;
  display:grid;
  place-items:center;
  background:#eef2f7;
  color:#49586d;
  font-weight:800;
  font-size:.78rem;
}
.hm-font-row-copy{
  min-width:0;
}
.hm-font-row-copy strong{
  display:block;
  color:#344258;
  font-size:.84rem;
}
.hm-font-row-copy small{
  display:block;
  margin-top:3px;
  color:#7e899a;
  line-height:1.4;
  overflow-wrap:anywhere;
}
.hm-font-row .setting-value{
  min-width:66px;
}
.hm-font-row .btn{
  min-width:86px !important;
  width:auto !important;
}
@media(max-width:700px){
  .hm-font-row{
    grid-template-columns:42px minmax(0,1fr) auto;
  }
  .hm-font-row .btn{
    grid-column:1 / -1;
    width:100% !important;
  }
}
@media(max-width:430px){
  .hm-font-row{
    grid-template-columns:38px minmax(0,1fr);
  }
  .hm-font-row-icon{
    width:38px;
    height:38px;
  }
  .hm-font-row .setting-value{
    grid-column:2;
    justify-self:start;
  }
  .hm-font-row .btn{
    grid-column:1 / -1;
  }
}



/* ===== Atualização 0.2.5: sino = notificações não lidas ===== */
.hm-notification-bell{
  border:1px solid #dde5ef;
  cursor:pointer;
  color:#263247;
}

.hm-notification-dropdown{
  position:absolute;
  top:54px;
  right:0;
  z-index:250;
  width:min(390px,calc(100vw - 32px));
  max-width:100%;
  overflow:hidden;
  border:1px solid #e0e6ee;
  border-radius:16px;
  background:#fff;
  box-shadow:0 18px 48px rgba(20,32,55,.16);
}

.hm-notification-dropdown[hidden]{
  display:none !important;
}

.hm-notification-dropdown-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:15px 15px 12px;
  border-bottom:1px solid #edf0f4;
}

.hm-notification-dropdown-head > div{
  min-width:0;
}

.hm-notification-dropdown-head strong{
  display:block;
  color:#263247;
  font-size:.88rem;
}

.hm-notification-dropdown-head small{
  display:block;
  margin-top:3px;
  color:#8893a3;
  font-size:.68rem;
  line-height:1.35;
}

.hm-notification-dropdown-close{
  flex:0 0 34px !important;
  width:34px !important;
  min-width:34px !important;
  height:34px !important;
  min-height:34px !important;
  padding:0 !important;
  border:0 !important;
  border-radius:50% !important;
  background:#eef2f6 !important;
  color:#536074 !important;
  font-size:1.1rem !important;
}

.hm-notification-dropdown-list{
  max-height:390px;
  overflow-y:auto;
  overflow-x:hidden;
  overscroll-behavior:contain;
}

.hm-notification-preview{
  display:grid;
  grid-template-columns:9px minmax(0,1fr);
  gap:10px;
  padding:13px 15px;
  border-bottom:1px solid #edf0f4;
  text-decoration:none;
  color:inherit;
  min-width:0;
}

.hm-notification-preview:last-child{
  border-bottom:0;
}

.hm-notification-preview-dot{
  width:8px;
  height:8px;
  margin-top:6px;
  border-radius:50%;
  background:#5661d8;
}

.hm-notification-preview-content{
  display:grid;
  gap:4px;
  min-width:0;
}

.hm-notification-preview-content strong{
  color:#263247;
  font-size:.78rem;
  line-height:1.35;
  overflow-wrap:anywhere;
}

.hm-notification-preview-content > span{
  color:#68758a;
  font-size:.72rem;
  line-height:1.45;
  overflow-wrap:anywhere;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.hm-notification-preview-content small{
  color:#929cab;
  font-size:.64rem;
}

.hm-notification-empty{
  margin:0 !important;
  padding:20px 15px !important;
  text-align:center !important;
  color:#8390a2 !important;
  font-size:.75rem !important;
}

.hm-notification-dropdown-foot{
  padding:10px 14px;
  border-top:1px solid #edf0f4;
  text-align:center;
  background:#fbfcfd;
}

.hm-notification-dropdown-foot a{
  color:#5661d8;
  font-weight:750;
  font-size:.72rem;
  text-decoration:none;
}

.notification-item.is-selected{
  border-radius:14px;
  padding:14px;
  background:#f7f8ff;
  outline:2px solid rgba(86,97,216,.18);
}

.notification-item.is-selected-visible{
  outline-color:rgba(86,97,216,.38);
}

.notification-item-actions{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  flex-wrap:wrap;
  gap:8px;
}

.notification-unread-label{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:28px;
  padding:0 10px;
  border-radius:999px;
  background:#eef0ff;
  color:#4e57c7;
  font-size:.66rem;
  font-weight:800;
}

@media(max-width:600px){
  .hm-notification-dropdown{
    top:52px;
    right:0;
    width:min(360px,calc(100vw - 24px));
  }

  .hm-notification-dropdown-list{
    max-height:330px;
  }
}



/* ===== Atualização 0.2.6: aparência global em colunas + cores ===== */
.hm-appearance-columns{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:var(--hm-gap);
  align-items:start;
  margin-bottom:var(--hm-gap);
}

.hm-appearance-panel{
  min-width:0;
}

.hm-setting-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:6px;
}

.hm-setting-head > div{
  min-width:0;
}

.hm-setting-head h3{
  margin:4px 0 0;
}

.hm-font-controls,
.hm-color-controls{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
  margin-top:18px;
}

.hm-font-row,
.hm-color-row{
  display:grid;
  grid-template-columns:42px minmax(0,1fr) auto auto;
  align-items:center;
  gap:11px;
  min-width:0;
  padding:11px 12px;
  border:1px solid var(--hm-border,#e5eaf1);
  border-radius:14px;
  background:color-mix(in srgb,var(--hm-surface,#fff) 94%,var(--hm-bg,#f5f7fb));
}

.hm-color-swatch{
  width:42px;
  height:42px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.10);
  background:var(--swatch,#5661d8);
  box-shadow:inset 0 0 0 2px rgba(255,255,255,.3);
}

.hm-color-copy{
  min-width:0;
}

.hm-color-copy strong{
  display:block;
  color:var(--hm-text,#344258);
  font-size:.84rem;
}

.hm-color-copy small{
  display:block;
  margin-top:3px;
  color:var(--hm-muted,#7e899a);
  line-height:1.35;
  overflow-wrap:anywhere;
}

.hm-color-value{
  min-width:76px;
  padding:5px 8px;
  border-radius:8px;
  background:var(--hm-bg,#f2f5f8);
  color:var(--hm-text,#465267);
  text-align:center;
  font-size:.7rem;
}

.hm-color-row .btn,
.hm-font-row .btn{
  width:auto !important;
  min-width:82px !important;
}

.hm-color-picker-wrap{
  display:flex;
  align-items:flex-end;
  gap:12px;
}

.hm-color-picker{
  width:64px;
  height:46px;
  min-height:46px;
  padding:3px !important;
  border:1px solid var(--hm-border,#dce2eb);
  border-radius:12px;
  background:var(--hm-surface,#fff);
  cursor:pointer;
}

.hm-color-preview{
  min-height:58px;
  margin-top:8px;
  border-radius:12px;
  display:grid;
  place-items:center;
  background:var(--preview-color,#5661d8);
  color:#fff;
  font-weight:800;
}

.hm-appearance-extra{
  margin-top:0 !important;
}

@media(max-width:1100px){
  .hm-appearance-columns{
    grid-template-columns:1fr;
  }
}

@media(max-width:700px){
  .hm-font-row,
  .hm-color-row{
    grid-template-columns:42px minmax(0,1fr) auto;
  }

  .hm-font-row .btn,
  .hm-color-row .btn{
    grid-column:1 / -1;
    width:100% !important;
  }

  .hm-color-picker-wrap{
    align-items:stretch;
  }
}

@media(max-width:430px){
  .hm-font-row,
  .hm-color-row{
    grid-template-columns:38px minmax(0,1fr);
  }

  .hm-font-row-icon,
  .hm-color-swatch{
    width:38px;
    height:38px;
  }

  .hm-font-row .setting-value,
  .hm-color-row .hm-color-value{
    grid-column:2;
    justify-self:start;
  }

  .hm-color-picker-wrap{
    display:grid;
    grid-template-columns:1fr;
  }

  .hm-color-picker{
    width:100%;
  }
}



/* ===== Atualização 0.2.8: atualizações mais recentes primeiro ===== */
.hm-update-order-note{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin:14px 0 12px;
  padding:10px 12px;
  border:1px solid var(--hm-border,#e4e9f1);
  border-radius:12px;
  background:var(--hm-surface,#fff);
}

.hm-update-order-note strong{
  color:var(--hm-text,#172033);
  font-size:.78rem;
}

.hm-update-order-note span{
  color:var(--hm-muted,#738095);
  font-size:.7rem;
}

@media(max-width:600px){
  .hm-update-order-note{
    align-items:flex-start;
    flex-direction:column;
  }
}



/* ===== Atualização 0.2.9: contraste do título do menu ===== */
.sidebar .brand{
  color:var(--hm-sidebar-text,#dbe4f0) !important;
  font-weight:800 !important;
  opacity:1 !important;
}

.sidebar .brand span{
  color:var(--hm-accent,#24a77c) !important;
  opacity:1 !important;
}

@media(max-width:900px){
  .sidebar .brand{
    color:var(--hm-sidebar-text,#dbe4f0) !important;
  }
}



/* ===== Atualização 0.3.0: contraste global em fundos escuros ===== */
:root{
  --hm-on-dark:#ffffff;
  --hm-on-dark-muted:#d4deeb;
}

.hero,
.pet-intro,
.hm-dark-surface,
.hm-colored-surface{
  color:var(--hm-on-dark) !important;
}

.hero h1,
.hero h2,
.hero h3,
.hero h4,
.hero h5,
.hero h6,
.hero .metric,
.hero .setting-value,
.pet-intro h1,
.pet-intro h2,
.pet-intro h3,
.pet-intro h4,
.pet-intro h5,
.pet-intro h6,
.pet-intro .metric,
.pet-intro .setting-value,
.hm-dark-surface h1,
.hm-dark-surface h2,
.hm-dark-surface h3,
.hm-dark-surface h4,
.hm-dark-surface h5,
.hm-dark-surface h6,
.hm-colored-surface h1,
.hm-colored-surface h2,
.hm-colored-surface h3,
.hm-colored-surface h4,
.hm-colored-surface h5,
.hm-colored-surface h6{
  color:var(--hm-on-dark) !important;
  opacity:1 !important;
}

.hero p,
.hero small,
.hero .eyebrow,
.pet-intro p,
.pet-intro small,
.pet-intro .eyebrow,
.hm-dark-surface p,
.hm-dark-surface small,
.hm-dark-surface .eyebrow,
.hm-colored-surface p,
.hm-colored-surface small,
.hm-colored-surface .eyebrow{
  color:var(--hm-on-dark-muted) !important;
  opacity:1 !important;
}

.hero a:not(.btn),
.pet-intro a:not(.btn),
.hm-dark-surface a:not(.btn),
.hm-colored-surface a:not(.btn){
  color:var(--hm-on-dark) !important;
}



/* ===== Atualização 0.3.1: CRM Pet - Tutores e Pets ===== */
.hm-module-toolbar{
  margin-bottom:var(--hm-gap);
  padding:16px;
  border:1px solid var(--hm-border,#e4e9f1);
  border-radius:16px;
  background:var(--hm-surface,#fff);
}

.hm-filter-grid{
  display:grid;
  grid-template-columns:minmax(220px,1.7fr) minmax(180px,1fr) minmax(150px,.75fr) auto;
  gap:12px;
  align-items:end;
  min-width:0;
}

.hm-filter-grid-4{
  grid-template-columns:minmax(210px,1.6fr) repeat(3,minmax(145px,.8fr));
}

.hm-filter-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  min-width:0;
}

.hm-filter-actions .btn{
  width:auto !important;
  min-width:104px !important;
}

.hm-col-all{
  grid-column:1 / -1;
}

.hm-list-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:0 0 10px;
}

.hm-list-heading > div{
  display:flex;
  align-items:baseline;
  gap:7px;
}

.hm-list-heading strong{
  color:var(--hm-text,#172033);
  font-size:1rem;
}

.hm-list-heading span{
  color:var(--hm-muted,#738095);
  font-size:.76rem;
}

.hm-row-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:6px;
}

.hm-row-actions .btn{
  width:auto !important;
  min-width:78px !important;
}

.hm-table td > strong,
.hm-table td small{
  display:block;
}

.hm-table td small{
  margin-top:3px;
  color:var(--hm-muted,#738095);
}

.hm-empty-state{
  padding:30px 20px;
  border:1px dashed var(--hm-border,#dce3ed);
  border-radius:16px;
  background:var(--hm-surface,#fff);
  text-align:center;
}

.hm-empty-state h3{
  margin:0 0 7px;
}

.hm-empty-state p{
  margin:0 auto 16px;
  max-width:560px;
}

.hm-empty-state .btn{
  width:auto !important;
  min-width:150px;
}

.hm-swal-wide{
  max-width:min(920px,calc(100vw - 24px)) !important;
}

.hm-swal-form-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px 14px;
  text-align:left;
  min-width:0;
}

.hm-swal-form-grid .hm-field{
  min-width:0;
}

.hm-swal-form-grid .hm-col-2{
  grid-column:1 / -1;
}

.hm-swal-form-grid .hm-input,
.hm-swal-form-grid input,
.hm-swal-form-grid select,
.hm-swal-form-grid textarea{
  width:100%;
  max-width:100%;
  box-sizing:border-box;
}

.hm-switch-line{
  min-height:46px;
  display:flex;
  align-items:center;
  gap:9px;
  padding:0 12px;
  border:1px solid var(--hm-border,#dce3ed);
  border-radius:12px;
  background:var(--hm-surface,#fff);
  color:var(--hm-text,#172033);
}

.hm-switch-line input{
  width:18px !important;
  height:18px !important;
  flex:0 0 18px;
}

.hm-pet-name-cell{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.hm-pet-thumb{
  width:42px;
  height:42px;
  flex:0 0 42px;
  border-radius:12px;
  object-fit:cover;
  border:1px solid var(--hm-border,#e4e9f1);
  background:var(--hm-bg,#f5f7fb);
}

.hm-pet-thumb-empty{
  display:grid;
  place-items:center;
  font-size:1.15rem;
}

.hm-current-photo{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:8px;
}

.hm-current-photo img{
  width:58px;
  height:58px;
  border-radius:14px;
  object-fit:cover;
  border:1px solid var(--hm-border,#e4e9f1);
}

.hm-current-photo span{
  color:var(--hm-muted,#738095);
  font-size:.72rem;
}

.hm-module-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:10px;
  margin-top:14px;
}

.hm-module-actions .btn{
  width:auto !important;
}

.hm-module-ready{
  border-color:color-mix(in srgb,var(--hm-accent,#24a77c) 30%,var(--hm-border,#e4e9f1));
}

@media(max-width:1050px){
  .hm-filter-grid,
  .hm-filter-grid-4{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .hm-filter-actions{
    grid-column:1 / -1;
  }
}

@media(max-width:700px){
  .hm-module-toolbar{
    padding:13px;
  }

  .hm-filter-grid,
  .hm-filter-grid-4{
    grid-template-columns:1fr;
  }

  .hm-filter-actions,
  .hm-col-all{
    grid-column:auto;
  }

  .hm-filter-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
  }

  .hm-filter-actions .btn{
    width:100% !important;
    min-width:0 !important;
  }

  .hm-swal-form-grid{
    grid-template-columns:1fr;
  }

  .hm-swal-form-grid .hm-col-2{
    grid-column:auto;
  }

  .hm-row-actions{
    justify-content:flex-start;
  }

  .hm-row-actions .btn{
    flex:1 1 110px;
  }
}

@media(max-width:420px){
  .hm-filter-actions{
    grid-template-columns:1fr;
  }

  .hm-module-actions{
    align-items:stretch;
    flex-direction:column;
  }

  .hm-module-actions .btn{
    width:100% !important;
  }
}



/* ===== Atualização 0.3.2: cobranças + sair global ===== */
.hm-cron-box{
  display:flex;
  align-items:flex-start;
  gap:8px;
  flex-wrap:wrap;
  margin-top:14px;
  padding:11px 12px;
  border:1px solid var(--hm-border,#e4e9f1);
  border-radius:12px;
  background:var(--hm-bg,#f5f7fb);
}
.hm-cron-box code{
  max-width:100%;
  overflow-wrap:anywhere;
  color:var(--hm-text,#172033);
  font-size:.72rem;
}
.sidebar nav a[href$="/logout.php"]{
  margin-top:8px;
  border-top:1px solid rgba(255,255,255,.08);
}
@media(max-width:900px){
  .hm-mobile-menu-list a[href$="/logout.php"]{
    margin-top:8px;
    border-top:1px solid var(--hm-border,#e4e9f1);
  }
}



/* ===== Atualização 0.3.3: acesso do cliente e isolamento ===== */
.login-page{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:20px;
  background:var(--hm-bg,#f5f7fb);
}
.login-card{
  width:min(470px,100%);
  padding:28px;
}
.login-card > .brand{
  margin-bottom:20px;
}
.login-card h1{
  margin:5px 0 10px;
}
.login-card > p{
  margin:0 0 20px;
}
select[multiple].hm-input{
  min-height:180px;
  padding:8px;
}
select[multiple].hm-input option{
  padding:7px 8px;
}
@media(max-width:520px){
  .login-page{padding:12px;}
  .login-card{padding:20px 16px;}
}



/* ===== Atualização 0.3.4: diagnóstico do webhook ===== */
.hm-webhook-history{
  display:grid;
  gap:8px;
  margin-top:14px;
  padding:13px;
  border:1px solid var(--hm-border,#e4e9f1);
  border-radius:12px;
  background:var(--hm-surface,#fff);
}
.hm-webhook-history > strong{
  color:var(--hm-text,#172033);
  font-size:.78rem;
}
.hm-webhook-history > p{
  margin:0 !important;
}
.hm-webhook-log{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  align-items:center;
  gap:10px;
  padding:9px 0;
  border-top:1px solid var(--hm-border,#e4e9f1);
}
.hm-webhook-log > div{
  min-width:0;
}
.hm-webhook-log > div strong,
.hm-webhook-log > div small{
  display:block;
  overflow-wrap:anywhere;
}
.hm-webhook-log > div strong{
  color:var(--hm-text,#172033);
  font-size:.74rem;
}
.hm-webhook-log > div small{
  margin-top:3px;
  color:var(--hm-muted,#738095);
  font-size:.66rem;
}



/* ===== Atualização 0.3.5: gestão da instância do WhatsApp ===== */
.hm-instance-summary{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin:14px 0;
}
.hm-instance-summary > div{
  min-width:0;
  padding:12px;
  border:1px solid var(--hm-border,#e4e9f1);
  border-radius:12px;
  background:var(--hm-bg,#f5f7fb);
}
.hm-instance-summary small,
.hm-instance-summary strong{
  display:block;
}
.hm-instance-summary small{
  color:var(--hm-muted,#738095);
  font-size:.66rem;
}
.hm-instance-summary strong{
  margin-top:4px;
  color:var(--hm-text,#172033);
  font-size:.82rem;
  overflow-wrap:anywhere;
}
.hm-instance-actions{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
}
.hm-instance-actions .btn{
  width:auto !important;
}
.hm-instance-actions .btn:disabled{
  opacity:.45;
  cursor:not-allowed;
}
.hm-instance-note{
  margin:14px 0 0 !important;
}
.hm-qr-connect{
  display:grid;
  justify-items:center;
  gap:12px;
}
.hm-qr-connect img{
  width:min(320px,100%);
  aspect-ratio:1;
  object-fit:contain;
  padding:10px;
  border:1px solid var(--hm-border,#e4e9f1);
  border-radius:16px;
  background:#fff;
}
.hm-qr-connect p{
  margin:0 !important;
  max-width:520px;
  text-align:center !important;
}
@media(max-width:700px){
  .hm-instance-summary{
    grid-template-columns:1fr;
  }
  .hm-instance-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
  }
  .hm-instance-actions .btn{
    width:100% !important;
  }
}
@media(max-width:430px){
  .hm-instance-actions{
    grid-template-columns:1fr;
  }
}

